Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR storage/resource-manager] [Storage] Support Management policy on new api version 2018-03-01-preview #200

Merged
merged 1 commit into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The parameters to list SAS credentials of a storage account.
*/
public class AccountSasParameters {
/**
* The signed services accessible with the account SAS. Possible values
* include: Blob (b), Queue (q), Table (t), File (f). Possible values
* include: 'b', 'q', 't', 'f'.
*/
@JsonProperty(value = "signedServices", required = true)
private Services services;

/**
* The signed resource types that are accessible with the account SAS.
* Service (s): Access to service-level APIs; Container (c): Access to
* container-level APIs; Object (o): Access to object-level APIs for blobs,
* queue messages, table entities, and files. Possible values include: 's',
* 'c', 'o'.
*/
@JsonProperty(value = "signedResourceTypes", required = true)
private SignedResourceTypes resourceTypes;

/**
* The signed permissions for the account SAS. Possible values include:
* Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update
* (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a',
* 'c', 'u', 'p'.
*/
@JsonProperty(value = "signedPermission", required = true)
private Permissions permissions;

/**
* An IP address or a range of IP addresses from which to accept requests.
*/
@JsonProperty(value = "signedIp")
private String iPAddressOrRange;

/**
* The protocol permitted for a request made with the account SAS. Possible
* values include: 'https,http', 'https'.
*/
@JsonProperty(value = "signedProtocol")
private HttpProtocol protocols;

/**
* The time at which the SAS becomes valid.
*/
@JsonProperty(value = "signedStart")
private DateTime sharedAccessStartTime;

/**
* The time at which the shared access signature becomes invalid.
*/
@JsonProperty(value = "signedExpiry", required = true)
private DateTime sharedAccessExpiryTime;

/**
* The key to sign the account SAS token with.
*/
@JsonProperty(value = "keyToSign")
private String keyToSign;

/**
* Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'.
*
* @return the services value
*/
public Services services() {
return this.services;
}

/**
* Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'.
*
* @param services the services value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withServices(Services services) {
this.services = services;
return this;
}

/**
* Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'.
*
* @return the resourceTypes value
*/
public SignedResourceTypes resourceTypes() {
return this.resourceTypes;
}

/**
* Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'.
*
* @param resourceTypes the resourceTypes value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes) {
this.resourceTypes = resourceTypes;
return this;
}

/**
* Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
*
* @return the permissions value
*/
public Permissions permissions() {
return this.permissions;
}

/**
* Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
*
* @param permissions the permissions value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withPermissions(Permissions permissions) {
this.permissions = permissions;
return this;
}

/**
* Get an IP address or a range of IP addresses from which to accept requests.
*
* @return the iPAddressOrRange value
*/
public String iPAddressOrRange() {
return this.iPAddressOrRange;
}

/**
* Set an IP address or a range of IP addresses from which to accept requests.
*
* @param iPAddressOrRange the iPAddressOrRange value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange) {
this.iPAddressOrRange = iPAddressOrRange;
return this;
}

/**
* Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
*
* @return the protocols value
*/
public HttpProtocol protocols() {
return this.protocols;
}

/**
* Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
*
* @param protocols the protocols value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withProtocols(HttpProtocol protocols) {
this.protocols = protocols;
return this;
}

/**
* Get the time at which the SAS becomes valid.
*
* @return the sharedAccessStartTime value
*/
public DateTime sharedAccessStartTime() {
return this.sharedAccessStartTime;
}

/**
* Set the time at which the SAS becomes valid.
*
* @param sharedAccessStartTime the sharedAccessStartTime value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withSharedAccessStartTime(DateTime sharedAccessStartTime) {
this.sharedAccessStartTime = sharedAccessStartTime;
return this;
}

/**
* Get the time at which the shared access signature becomes invalid.
*
* @return the sharedAccessExpiryTime value
*/
public DateTime sharedAccessExpiryTime() {
return this.sharedAccessExpiryTime;
}

/**
* Set the time at which the shared access signature becomes invalid.
*
* @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpiryTime) {
this.sharedAccessExpiryTime = sharedAccessExpiryTime;
return this;
}

/**
* Get the key to sign the account SAS token with.
*
* @return the keyToSign value
*/
public String keyToSign() {
return this.keyToSign;
}

/**
* Set the key to sign the account SAS token with.
*
* @param keyToSign the keyToSign value to set
* @return the AccountSasParameters object itself.
*/
public AccountSasParameters withKeyToSign(String keyToSign) {
this.keyToSign = keyToSign;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for CreateOrUpdateImmutabilityPolicy operation.
*/
public class BlobContainersCreateOrUpdateImmutabilityPolicyHeaders {
/**
* The ETag HTTP response header. This is an opaque string. You can use it
* to detect whether the resource has changed between requests. In
* particular, you can pass the ETag to one of the If-Match or
* If-None-Match headers.
*/
@JsonProperty(value = "ETag")
private String eTag;

/**
* Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @return the eTag value
*/
public String eTag() {
return this.eTag;
}

/**
* Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @param eTag the eTag value to set
* @return the BlobContainersCreateOrUpdateImmutabilityPolicyHeaders object itself.
*/
public BlobContainersCreateOrUpdateImmutabilityPolicyHeaders withETag(String eTag) {
this.eTag = eTag;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for DeleteImmutabilityPolicy operation.
*/
public class BlobContainersDeleteImmutabilityPolicyHeaders {
/**
* The ETag HTTP response header. This is an opaque string. You can use it
* to detect whether the resource has changed between requests. In
* particular, you can pass the ETag to one of the If-Match or
* If-None-Match headers.
*/
@JsonProperty(value = "ETag")
private String eTag;

/**
* Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @return the eTag value
*/
public String eTag() {
return this.eTag;
}

/**
* Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @param eTag the eTag value to set
* @return the BlobContainersDeleteImmutabilityPolicyHeaders object itself.
*/
public BlobContainersDeleteImmutabilityPolicyHeaders withETag(String eTag) {
this.eTag = eTag;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for ExtendImmutabilityPolicy operation.
*/
public class BlobContainersExtendImmutabilityPolicyHeaders {
/**
* The ETag HTTP response header. This is an opaque string. You can use it
* to detect whether the resource has changed between requests. In
* particular, you can pass the ETag to one of the If-Match or
* If-None-Match headers.
*/
@JsonProperty(value = "ETag")
private String eTag;

/**
* Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @return the eTag value
*/
public String eTag() {
return this.eTag;
}

/**
* Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.
*
* @param eTag the eTag value to set
* @return the BlobContainersExtendImmutabilityPolicyHeaders object itself.
*/
public BlobContainersExtendImmutabilityPolicyHeaders withETag(String eTag) {
this.eTag = eTag;
return this;
}

}
Loading