Skip to content
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
2 changes: 1 addition & 1 deletion storage/resource-manager/v2016_01_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<version>0.0.2-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion storage/resource-manager/v2017_10_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<version>0.0.2-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion storage/resource-manager/v2018_02_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<version>0.0.2-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion storage/resource-manager/v2018_03_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<version>0.0.2-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion storage/resource-manager/v2018_07_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<version>0.0.2-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
/**
* 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.v2018_07_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.storage.v2018_07_01.implementation.BlobServicePropertiesInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager;

/**
* Type representing BlobServiceProperties.
*/
public interface BlobServiceProperties extends HasInner<BlobServicePropertiesInner>, Indexable, Refreshable<BlobServiceProperties>, Updatable<BlobServiceProperties.Update>, HasManager<StorageManager> {
/**
* @return the cors value.
*/
CorsRules cors();

/**
* @return the defaultServiceVersion value.
*/
String defaultServiceVersion();

/**
* @return the deleteRetentionPolicy value.
*/
DeleteRetentionPolicy deleteRetentionPolicy();

/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the BlobServiceProperties definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithStorageAccount, DefinitionStages.WithCreate {
}

/**
* Grouping of BlobServiceProperties definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a BlobServiceProperties definition.
*/
interface Blank extends WithStorageAccount {
}

/**
* The stage of the blobserviceproperties definition allowing to specify StorageAccount.
*/
interface WithStorageAccount {
/**
* Specifies resourceGroupName, accountName.
*/
WithCreate withExistingStorageAccount(String resourceGroupName, String accountName);
}

/**
* The stage of the blobserviceproperties definition allowing to specify Cors.
*/
interface WithCors {
/**
* Specifies cors.
*/
WithCreate withCors(CorsRules cors);
}

/**
* The stage of the blobserviceproperties definition allowing to specify DefaultServiceVersion.
*/
interface WithDefaultServiceVersion {
/**
* Specifies defaultServiceVersion.
*/
WithCreate withDefaultServiceVersion(String defaultServiceVersion);
}

/**
* The stage of the blobserviceproperties definition allowing to specify DeleteRetentionPolicy.
*/
interface WithDeleteRetentionPolicy {
/**
* Specifies deleteRetentionPolicy.
*/
WithCreate withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<BlobServiceProperties>, DefinitionStages.WithCors, DefinitionStages.WithDefaultServiceVersion, DefinitionStages.WithDeleteRetentionPolicy {
}
}
/**
* The template for a BlobServiceProperties update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<BlobServiceProperties>, UpdateStages.WithCors, UpdateStages.WithDefaultServiceVersion, UpdateStages.WithDeleteRetentionPolicy {
}

/**
* Grouping of BlobServiceProperties update stages.
*/
interface UpdateStages {
/**
* The stage of the blobserviceproperties update allowing to specify Cors.
*/
interface WithCors {
/**
* Specifies cors.
*/
Update withCors(CorsRules cors);
}

/**
* The stage of the blobserviceproperties update allowing to specify DefaultServiceVersion.
*/
interface WithDefaultServiceVersion {
/**
* Specifies defaultServiceVersion.
*/
Update withDefaultServiceVersion(String defaultServiceVersion);
}

/**
* The stage of the blobserviceproperties update allowing to specify DeleteRetentionPolicy.
*/
interface WithDeleteRetentionPolicy {
/**
* Specifies deleteRetentionPolicy.
*/
Update withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* 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.v2018_07_01;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Observable;
import com.microsoft.azure.management.storage.v2018_07_01.implementation.BlobServicesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing BlobServices.
*/
public interface BlobServices extends SupportsCreating<BlobServiceProperties.DefinitionStages.Blank>, HasInner<BlobServicesInner> {
/**
* Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BlobServiceProperties> getServicePropertiesAsync(String resourceGroupName, String accountName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
/**
* 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.v2018_07_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specifies a CORS rule for the Blob service.
*/
public class CorsRule {
/**
* Required if CorsRule element is present. A list of origin domains that
* will be allowed via CORS, or "*" to allow all domains.
*/
@JsonProperty(value = "allowedOrigins", required = true)
private List<String> allowedOrigins;

/**
* Required if CorsRule element is present. A list of HTTP methods that are
* allowed to be executed by the origin.
*/
@JsonProperty(value = "allowedMethods", required = true)
private List<String> allowedMethods;

/**
* Required if CorsRule element is present. The number of seconds that the
* client/browser should cache a preflight response.
*/
@JsonProperty(value = "maxAgeInSeconds", required = true)
private int maxAgeInSeconds;

/**
* Required if CorsRule element is present. A list of response headers to
* expose to CORS clients.
*/
@JsonProperty(value = "exposedHeaders", required = true)
private List<String> exposedHeaders;

/**
* Required if CorsRule element is present. A list of headers allowed to be
* part of the cross-origin request.
*/
@JsonProperty(value = "allowedHeaders", required = true)
private List<String> allowedHeaders;

/**
* Get required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.
*
* @return the allowedOrigins value
*/
public List<String> allowedOrigins() {
return this.allowedOrigins;
}

/**
* Set required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.
*
* @param allowedOrigins the allowedOrigins value to set
* @return the CorsRule object itself.
*/
public CorsRule withAllowedOrigins(List<String> allowedOrigins) {
this.allowedOrigins = allowedOrigins;
return this;
}

/**
* Get required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
*
* @return the allowedMethods value
*/
public List<String> allowedMethods() {
return this.allowedMethods;
}

/**
* Set required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
*
* @param allowedMethods the allowedMethods value to set
* @return the CorsRule object itself.
*/
public CorsRule withAllowedMethods(List<String> allowedMethods) {
this.allowedMethods = allowedMethods;
return this;
}

/**
* Get required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
*
* @return the maxAgeInSeconds value
*/
public int maxAgeInSeconds() {
return this.maxAgeInSeconds;
}

/**
* Set required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
*
* @param maxAgeInSeconds the maxAgeInSeconds value to set
* @return the CorsRule object itself.
*/
public CorsRule withMaxAgeInSeconds(int maxAgeInSeconds) {
this.maxAgeInSeconds = maxAgeInSeconds;
return this;
}

/**
* Get required if CorsRule element is present. A list of response headers to expose to CORS clients.
*
* @return the exposedHeaders value
*/
public List<String> exposedHeaders() {
return this.exposedHeaders;
}

/**
* Set required if CorsRule element is present. A list of response headers to expose to CORS clients.
*
* @param exposedHeaders the exposedHeaders value to set
* @return the CorsRule object itself.
*/
public CorsRule withExposedHeaders(List<String> exposedHeaders) {
this.exposedHeaders = exposedHeaders;
return this;
}

/**
* Get required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
*
* @return the allowedHeaders value
*/
public List<String> allowedHeaders() {
return this.allowedHeaders;
}

/**
* Set required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
*
* @param allowedHeaders the allowedHeaders value to set
* @return the CorsRule object itself.
*/
public CorsRule withAllowedHeaders(List<String> allowedHeaders) {
this.allowedHeaders = allowedHeaders;
return this;
}

}
Loading