Skip to content

Commit 49d2106

Browse files
author
SDK Automation
committed
Update from master
1 parent 936685d commit 49d2106

22 files changed

+731
-70
lines changed

sdk/storage/mgmt-v2018_02_01/pom.xml

Lines changed: 6 additions & 4 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>
14+
<version>1.1.0</version>
1515
<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_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_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_02_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_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_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
*

sdk/storage/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/CustomDomain.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class CustomDomain {
2626
* Indicates whether indirect CName validation is enabled. Default value is
2727
* false. This should only be set on updates.
2828
*/
29-
@JsonProperty(value = "useSubDomain")
30-
private Boolean useSubDomain;
29+
@JsonProperty(value = "useSubDomainName")
30+
private Boolean useSubDomainName;
3131

3232
/**
3333
* Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
@@ -52,20 +52,20 @@ public CustomDomain withName(String name) {
5252
/**
5353
* Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
5454
*
55-
* @return the useSubDomain value
55+
* @return the useSubDomainName value
5656
*/
57-
public Boolean useSubDomain() {
58-
return this.useSubDomain;
57+
public Boolean useSubDomainName() {
58+
return this.useSubDomainName;
5959
}
6060

6161
/**
6262
* Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
6363
*
64-
* @param useSubDomain the useSubDomain value to set
64+
* @param useSubDomainName the useSubDomainName value to set
6565
* @return the CustomDomain object itself.
6666
*/
67-
public CustomDomain withUseSubDomain(Boolean useSubDomain) {
68-
this.useSubDomain = useSubDomain;
67+
public CustomDomain withUseSubDomainName(Boolean useSubDomainName) {
68+
this.useSubDomainName = useSubDomainName;
6969
return this;
7070
}
7171

sdk/storage/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Dimension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import com.fasterxml.jackson.annotation.JsonProperty;
1212

1313
/**
14-
* Dimension of blobs, possiblly be blob type or access tier.
14+
* Dimension of blobs, possibly be blob type or access tier.
1515
*/
1616
public class Dimension {
1717
/**

sdk/storage/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ImmutabilityPolicy.java

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public interface ImmutabilityPolicy extends HasInner<ImmutabilityPolicyInner>, I
5555
/**
5656
* The entirety of the ImmutabilityPolicy definition.
5757
*/
58-
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithContainer, DefinitionStages.WithImmutabilityPeriodSinceCreationInDays, DefinitionStages.WithCreate {
58+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithContainer, DefinitionStages.WithIfMatch, DefinitionStages.WithImmutabilityPeriodSinceCreationInDays, DefinitionStages.WithCreate {
5959
}
6060

6161
/**
@@ -74,8 +74,24 @@ interface Blank extends WithContainer {
7474
interface WithContainer {
7575
/**
7676
* Specifies resourceGroupName, accountName, containerName.
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+
* @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
80+
* @return the next definition stage
7781
*/
78-
WithImmutabilityPeriodSinceCreationInDays withExistingContainer(String resourceGroupName, String accountName, String containerName);
82+
WithIfMatch withExistingContainer(String resourceGroupName, String accountName, String containerName);
83+
}
84+
85+
/**
86+
* The stage of the immutabilitypolicy definition allowing to specify IfMatch.
87+
*/
88+
interface WithIfMatch {
89+
/**
90+
* Specifies ifMatch.
91+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied
92+
* @return the next definition stage
93+
*/
94+
WithImmutabilityPeriodSinceCreationInDays withIfMatch(String ifMatch);
7995
}
8096

8197
/**
@@ -84,6 +100,8 @@ interface WithContainer {
84100
interface WithImmutabilityPeriodSinceCreationInDays {
85101
/**
86102
* Specifies immutabilityPeriodSinceCreationInDays.
103+
* @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days
104+
* @return the next definition stage
87105
*/
88106
WithCreate withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays);
89107
}
@@ -99,19 +117,33 @@ interface WithCreate extends Creatable<ImmutabilityPolicy> {
99117
/**
100118
* The template for a ImmutabilityPolicy update operation, containing all the settings that can be modified.
101119
*/
102-
interface Update extends Appliable<ImmutabilityPolicy>, UpdateStages.WithImmutabilityPeriodSinceCreationInDays {
120+
interface Update extends Appliable<ImmutabilityPolicy>, UpdateStages.WithIfMatch, UpdateStages.WithImmutabilityPeriodSinceCreationInDays {
103121
}
104122

105123
/**
106124
* Grouping of ImmutabilityPolicy update stages.
107125
*/
108126
interface UpdateStages {
127+
/**
128+
* The stage of the immutabilitypolicy update allowing to specify IfMatch.
129+
*/
130+
interface WithIfMatch {
131+
/**
132+
* Specifies ifMatch.
133+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied
134+
* @return the next update stage
135+
*/
136+
Update withIfMatch(String ifMatch);
137+
}
138+
109139
/**
110140
* The stage of the immutabilitypolicy update allowing to specify ImmutabilityPeriodSinceCreationInDays.
111141
*/
112142
interface WithImmutabilityPeriodSinceCreationInDays {
113143
/**
114144
* Specifies immutabilityPeriodSinceCreationInDays.
145+
* @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days
146+
* @return the next update stage
115147
*/
116148
Update withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays);
117149
}

0 commit comments

Comments
 (0)