Skip to content

Commit 37d007b

Browse files
author
SDK Automation
committed
Generated from 9bb89e6b2919a42994312b5a340971392c88a5ab
1 parent 15b8e62 commit 37d007b

File tree

52 files changed

+3237
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3237
-231
lines changed

sdk/storage/mgmt-v2018_07_01/pom.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-storage</artifactId>
1818
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for Storage Management</name>
2121
<description>This package contains Microsoft Storage Management SDK.</description>
22-
<url>https://github.com/Azure/azure-libraries-for-java</url>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323
<licenses>
2424
<license>
2525
<name>The MIT License (MIT)</name>
@@ -28,8 +28,8 @@
2828
</license>
2929
</licenses>
3030
<scm>
31-
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
32-
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
3333
<tag>HEAD</tag>
3434
</scm>
3535
<properties>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>

sdk/storage/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainer.java

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import com.microsoft.azure.arm.model.Creatable;
1717
import com.microsoft.azure.arm.resources.models.HasManager;
1818
import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager;
19-
import org.joda.time.DateTime;
2019
import java.util.Map;
20+
import org.joda.time.DateTime;
2121

2222
/**
2323
* Type representing BlobContainer.
@@ -96,7 +96,7 @@ public interface BlobContainer extends HasInner<BlobContainerInner>, Indexable,
9696
/**
9797
* The entirety of the BlobContainer definition.
9898
*/
99-
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithBlobService, DefinitionStages.WithCreate {
99+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithBlobService, DefinitionStages.WithPublicAccess, DefinitionStages.WithMetadata, DefinitionStages.WithCreate {
100100
}
101101

102102
/**
@@ -115,8 +115,35 @@ interface Blank extends WithBlobService {
115115
interface WithBlobService {
116116
/**
117117
* Specifies resourceGroupName, accountName.
118+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive
119+
* @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
120+
* @return the next definition stage
121+
*/
122+
WithPublicAccess withExistingBlobService(String resourceGroupName, String accountName);
123+
}
124+
125+
/**
126+
* The stage of the blobcontainer definition allowing to specify PublicAccess.
127+
*/
128+
interface WithPublicAccess {
129+
/**
130+
* Specifies publicAccess.
131+
* @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'
132+
* @return the next definition stage
133+
*/
134+
WithMetadata withPublicAccess(PublicAccess publicAccess);
135+
}
136+
137+
/**
138+
* The stage of the blobcontainer definition allowing to specify Metadata.
139+
*/
140+
interface WithMetadata {
141+
/**
142+
* Specifies metadata.
143+
* @param metadata A name-value pair to associate with the container as metadata
144+
* @return the next definition stage
118145
*/
119-
WithCreate withExistingBlobService(String resourceGroupName, String accountName);
146+
WithCreate withMetadata(Map<String, String> metadata);
120147
}
121148

122149
/**
@@ -130,12 +157,36 @@ interface WithCreate extends Creatable<BlobContainer> {
130157
/**
131158
* The template for a BlobContainer update operation, containing all the settings that can be modified.
132159
*/
133-
interface Update extends Appliable<BlobContainer> {
160+
interface Update extends Appliable<BlobContainer>, UpdateStages.WithPublicAccess, UpdateStages.WithMetadata {
134161
}
135162

136163
/**
137164
* Grouping of BlobContainer update stages.
138165
*/
139166
interface UpdateStages {
167+
/**
168+
* The stage of the blobcontainer update allowing to specify PublicAccess.
169+
*/
170+
interface WithPublicAccess {
171+
/**
172+
* Specifies publicAccess.
173+
* @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'
174+
* @return the next update stage
175+
*/
176+
Update withPublicAccess(PublicAccess publicAccess);
177+
}
178+
179+
/**
180+
* The stage of the blobcontainer update allowing to specify Metadata.
181+
*/
182+
interface WithMetadata {
183+
/**
184+
* Specifies metadata.
185+
* @param metadata A name-value pair to associate with the container as metadata
186+
* @return the next update stage
187+
*/
188+
Update withMetadata(Map<String, String> metadata);
189+
}
190+
140191
}
141192
}

sdk/storage/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainers.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@ public interface BlobContainers {
8686
*/
8787
Observable<LegalHold> clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List<String> tags);
8888

89+
/**
90+
* The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
91+
*
92+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
93+
* @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.
94+
* @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
95+
* @throws IllegalArgumentException thrown if parameters fail the validation
96+
* @return the observable for the request
97+
*/
98+
Observable<LeaseContainerResponse> leaseAsync(String resourceGroupName, String accountName, String containerName);
99+
89100
/**
90101
* Gets the existing immutability policy along with the corresponding ETag in response headers and body.
91102
*
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.storage.v2018_07_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.storage.v2018_07_01.implementation.BlobServicePropertiesInner;
13+
import com.microsoft.azure.arm.model.Indexable;
14+
import com.microsoft.azure.arm.model.Refreshable;
15+
import com.microsoft.azure.arm.model.Updatable;
16+
import com.microsoft.azure.arm.model.Appliable;
17+
import com.microsoft.azure.arm.model.Creatable;
18+
import com.microsoft.azure.arm.resources.models.HasManager;
19+
import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager;
20+
21+
/**
22+
* Type representing BlobServiceProperties.
23+
*/
24+
public interface BlobServiceProperties extends HasInner<BlobServicePropertiesInner>, Indexable, Refreshable<BlobServiceProperties>, Updatable<BlobServiceProperties.Update>, HasManager<StorageManager> {
25+
/**
26+
* @return the cors value.
27+
*/
28+
CorsRules cors();
29+
30+
/**
31+
* @return the defaultServiceVersion value.
32+
*/
33+
String defaultServiceVersion();
34+
35+
/**
36+
* @return the deleteRetentionPolicy value.
37+
*/
38+
DeleteRetentionPolicy deleteRetentionPolicy();
39+
40+
/**
41+
* @return the id value.
42+
*/
43+
String id();
44+
45+
/**
46+
* @return the name value.
47+
*/
48+
String name();
49+
50+
/**
51+
* @return the type value.
52+
*/
53+
String type();
54+
55+
/**
56+
* The entirety of the BlobServiceProperties definition.
57+
*/
58+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithStorageAccount, DefinitionStages.WithCreate {
59+
}
60+
61+
/**
62+
* Grouping of BlobServiceProperties definition stages.
63+
*/
64+
interface DefinitionStages {
65+
/**
66+
* The first stage of a BlobServiceProperties definition.
67+
*/
68+
interface Blank extends WithStorageAccount {
69+
}
70+
71+
/**
72+
* The stage of the blobserviceproperties definition allowing to specify StorageAccount.
73+
*/
74+
interface WithStorageAccount {
75+
/**
76+
* Specifies resourceGroupName, accountName.
77+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive
78+
* @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
79+
* @return the next definition stage
80+
*/
81+
WithCreate withExistingStorageAccount(String resourceGroupName, String accountName);
82+
}
83+
84+
/**
85+
* The stage of the blobserviceproperties definition allowing to specify Cors.
86+
*/
87+
interface WithCors {
88+
/**
89+
* Specifies cors.
90+
* @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
91+
* @return the next definition stage
92+
*/
93+
WithCreate withCors(CorsRules cors);
94+
}
95+
96+
/**
97+
* The stage of the blobserviceproperties definition allowing to specify DefaultServiceVersion.
98+
*/
99+
interface WithDefaultServiceVersion {
100+
/**
101+
* Specifies defaultServiceVersion.
102+
* @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
103+
* @return the next definition stage
104+
*/
105+
WithCreate withDefaultServiceVersion(String defaultServiceVersion);
106+
}
107+
108+
/**
109+
* The stage of the blobserviceproperties definition allowing to specify DeleteRetentionPolicy.
110+
*/
111+
interface WithDeleteRetentionPolicy {
112+
/**
113+
* Specifies deleteRetentionPolicy.
114+
* @param deleteRetentionPolicy The blob service properties for soft delete
115+
* @return the next definition stage
116+
*/
117+
WithCreate withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
118+
}
119+
120+
/**
121+
* The stage of the definition which contains all the minimum required inputs for
122+
* the resource to be created (via {@link WithCreate#create()}), but also allows
123+
* for any other optional settings to be specified.
124+
*/
125+
interface WithCreate extends Creatable<BlobServiceProperties>, DefinitionStages.WithCors, DefinitionStages.WithDefaultServiceVersion, DefinitionStages.WithDeleteRetentionPolicy {
126+
}
127+
}
128+
/**
129+
* The template for a BlobServiceProperties update operation, containing all the settings that can be modified.
130+
*/
131+
interface Update extends Appliable<BlobServiceProperties>, UpdateStages.WithCors, UpdateStages.WithDefaultServiceVersion, UpdateStages.WithDeleteRetentionPolicy {
132+
}
133+
134+
/**
135+
* Grouping of BlobServiceProperties update stages.
136+
*/
137+
interface UpdateStages {
138+
/**
139+
* The stage of the blobserviceproperties update allowing to specify Cors.
140+
*/
141+
interface WithCors {
142+
/**
143+
* Specifies cors.
144+
* @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
145+
* @return the next update stage
146+
*/
147+
Update withCors(CorsRules cors);
148+
}
149+
150+
/**
151+
* The stage of the blobserviceproperties update allowing to specify DefaultServiceVersion.
152+
*/
153+
interface WithDefaultServiceVersion {
154+
/**
155+
* Specifies defaultServiceVersion.
156+
* @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
157+
* @return the next update stage
158+
*/
159+
Update withDefaultServiceVersion(String defaultServiceVersion);
160+
}
161+
162+
/**
163+
* The stage of the blobserviceproperties update allowing to specify DeleteRetentionPolicy.
164+
*/
165+
interface WithDeleteRetentionPolicy {
166+
/**
167+
* Specifies deleteRetentionPolicy.
168+
* @param deleteRetentionPolicy The blob service properties for soft delete
169+
* @return the next update stage
170+
*/
171+
Update withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
172+
}
173+
174+
}
175+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.storage.v2018_07_01;
10+
11+
import com.microsoft.azure.arm.collection.SupportsCreating;
12+
import rx.Observable;
13+
import com.microsoft.azure.management.storage.v2018_07_01.implementation.BlobServicesInner;
14+
import com.microsoft.azure.arm.model.HasInner;
15+
16+
/**
17+
* Type representing BlobServices.
18+
*/
19+
public interface BlobServices extends SupportsCreating<BlobServiceProperties.DefinitionStages.Blank>, HasInner<BlobServicesInner> {
20+
/**
21+
* Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
22+
*
23+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
24+
* @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.
25+
* @throws IllegalArgumentException thrown if parameters fail the validation
26+
* @return the observable for the request
27+
*/
28+
Observable<BlobServiceProperties> getServicePropertiesAsync(String resourceGroupName, String accountName);
29+
30+
}

0 commit comments

Comments
 (0)