forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 2cdafd8c5be6c90dd1660ac6972874bc1b462411
- Loading branch information
SDK Automation
committed
Oct 6, 2020
1 parent
61e8c15
commit 276efda
Showing
52 changed files
with
3,237 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 175 additions & 0 deletions
175
...c/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobServiceProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
/** | ||
* 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. | ||
* @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 | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withExistingStorageAccount(String resourceGroupName, String accountName); | ||
} | ||
|
||
/** | ||
* The stage of the blobserviceproperties definition allowing to specify Cors. | ||
*/ | ||
interface WithCors { | ||
/** | ||
* Specifies cors. | ||
* @param cors Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withCors(CorsRules cors); | ||
} | ||
|
||
/** | ||
* The stage of the blobserviceproperties definition allowing to specify DefaultServiceVersion. | ||
*/ | ||
interface WithDefaultServiceVersion { | ||
/** | ||
* Specifies defaultServiceVersion. | ||
* @param defaultServiceVersion DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withDefaultServiceVersion(String defaultServiceVersion); | ||
} | ||
|
||
/** | ||
* The stage of the blobserviceproperties definition allowing to specify DeleteRetentionPolicy. | ||
*/ | ||
interface WithDeleteRetentionPolicy { | ||
/** | ||
* Specifies deleteRetentionPolicy. | ||
* @param deleteRetentionPolicy The blob service properties for soft delete | ||
* @return the next definition stage | ||
*/ | ||
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. | ||
* @param cors Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service | ||
* @return the next update stage | ||
*/ | ||
Update withCors(CorsRules cors); | ||
} | ||
|
||
/** | ||
* The stage of the blobserviceproperties update allowing to specify DefaultServiceVersion. | ||
*/ | ||
interface WithDefaultServiceVersion { | ||
/** | ||
* Specifies defaultServiceVersion. | ||
* @param defaultServiceVersion DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions | ||
* @return the next update stage | ||
*/ | ||
Update withDefaultServiceVersion(String defaultServiceVersion); | ||
} | ||
|
||
/** | ||
* The stage of the blobserviceproperties update allowing to specify DeleteRetentionPolicy. | ||
*/ | ||
interface WithDeleteRetentionPolicy { | ||
/** | ||
* Specifies deleteRetentionPolicy. | ||
* @param deleteRetentionPolicy The blob service properties for soft delete | ||
* @return the next update stage | ||
*/ | ||
Update withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy); | ||
} | ||
|
||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
..._07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobServices.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} |
Oops, something went wrong.