Skip to content

Commit 603451e

Browse files
author
SDK Automation
committed
Generated from 62b1f2b65991dd7eac896cde29df03b7beaf0ac2
Prettier fixes
1 parent a992970 commit 603451e

18 files changed

+864
-102
lines changed

sdk/azurestack/mgmt-v2017_06_01/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
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-azurestack</artifactId>
18-
<version>1.0.0-beta-1</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for AzureStack Management</name>
2121
<description>This package contains Microsoft AzureStack Management SDK.</description>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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.azurestack.v2017_06_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.rest.serializer.JsonFlatten;
13+
14+
/**
15+
* Cloud specific manifest data for AzureStack deployment.
16+
*/
17+
@JsonFlatten
18+
public class CloudManifestFileDeploymentData {
19+
/**
20+
* Dsms external certificates.
21+
*/
22+
@JsonProperty(value = "externalDsmsCertificates")
23+
private String externalDsmsCertificates;
24+
25+
/**
26+
* Signing verification public key.
27+
*/
28+
@JsonProperty(value = "customCloudVerificationKey")
29+
private String customCloudVerificationKey;
30+
31+
/**
32+
* ARM endpoint.
33+
*/
34+
@JsonProperty(value = "customEnvironmentEndpoints.customCloudArmEndpoint")
35+
private String customCloudArmEndpoint;
36+
37+
/**
38+
* Dsms endpoint.
39+
*/
40+
@JsonProperty(value = "customEnvironmentEndpoints.externalDsmsEndpoint")
41+
private String externalDsmsEndpoint;
42+
43+
/**
44+
* Get dsms external certificates.
45+
*
46+
* @return the externalDsmsCertificates value
47+
*/
48+
public String externalDsmsCertificates() {
49+
return this.externalDsmsCertificates;
50+
}
51+
52+
/**
53+
* Set dsms external certificates.
54+
*
55+
* @param externalDsmsCertificates the externalDsmsCertificates value to set
56+
* @return the CloudManifestFileDeploymentData object itself.
57+
*/
58+
public CloudManifestFileDeploymentData withExternalDsmsCertificates(String externalDsmsCertificates) {
59+
this.externalDsmsCertificates = externalDsmsCertificates;
60+
return this;
61+
}
62+
63+
/**
64+
* Get signing verification public key.
65+
*
66+
* @return the customCloudVerificationKey value
67+
*/
68+
public String customCloudVerificationKey() {
69+
return this.customCloudVerificationKey;
70+
}
71+
72+
/**
73+
* Set signing verification public key.
74+
*
75+
* @param customCloudVerificationKey the customCloudVerificationKey value to set
76+
* @return the CloudManifestFileDeploymentData object itself.
77+
*/
78+
public CloudManifestFileDeploymentData withCustomCloudVerificationKey(String customCloudVerificationKey) {
79+
this.customCloudVerificationKey = customCloudVerificationKey;
80+
return this;
81+
}
82+
83+
/**
84+
* Get aRM endpoint.
85+
*
86+
* @return the customCloudArmEndpoint value
87+
*/
88+
public String customCloudArmEndpoint() {
89+
return this.customCloudArmEndpoint;
90+
}
91+
92+
/**
93+
* Set aRM endpoint.
94+
*
95+
* @param customCloudArmEndpoint the customCloudArmEndpoint value to set
96+
* @return the CloudManifestFileDeploymentData object itself.
97+
*/
98+
public CloudManifestFileDeploymentData withCustomCloudArmEndpoint(String customCloudArmEndpoint) {
99+
this.customCloudArmEndpoint = customCloudArmEndpoint;
100+
return this;
101+
}
102+
103+
/**
104+
* Get dsms endpoint.
105+
*
106+
* @return the externalDsmsEndpoint value
107+
*/
108+
public String externalDsmsEndpoint() {
109+
return this.externalDsmsEndpoint;
110+
}
111+
112+
/**
113+
* Set dsms endpoint.
114+
*
115+
* @param externalDsmsEndpoint the externalDsmsEndpoint value to set
116+
* @return the CloudManifestFileDeploymentData object itself.
117+
*/
118+
public CloudManifestFileDeploymentData withExternalDsmsEndpoint(String externalDsmsEndpoint) {
119+
this.externalDsmsEndpoint = externalDsmsEndpoint;
120+
return this;
121+
}
122+
123+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.azurestack.v2017_06_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Cloud specific manifest JSON properties.
15+
*/
16+
public class CloudManifestFileProperties {
17+
/**
18+
* Cloud specific manifest data.
19+
*/
20+
@JsonProperty(value = "deploymentData")
21+
private CloudManifestFileDeploymentData deploymentData;
22+
23+
/**
24+
* Signature of the cloud specific manifest data.
25+
*/
26+
@JsonProperty(value = "signature")
27+
private String signature;
28+
29+
/**
30+
* Get cloud specific manifest data.
31+
*
32+
* @return the deploymentData value
33+
*/
34+
public CloudManifestFileDeploymentData deploymentData() {
35+
return this.deploymentData;
36+
}
37+
38+
/**
39+
* Set cloud specific manifest data.
40+
*
41+
* @param deploymentData the deploymentData value to set
42+
* @return the CloudManifestFileProperties object itself.
43+
*/
44+
public CloudManifestFileProperties withDeploymentData(CloudManifestFileDeploymentData deploymentData) {
45+
this.deploymentData = deploymentData;
46+
return this;
47+
}
48+
49+
/**
50+
* Get signature of the cloud specific manifest data.
51+
*
52+
* @return the signature value
53+
*/
54+
public String signature() {
55+
return this.signature;
56+
}
57+
58+
/**
59+
* Set signature of the cloud specific manifest data.
60+
*
61+
* @param signature the signature value to set
62+
* @return the CloudManifestFileProperties object itself.
63+
*/
64+
public CloudManifestFileProperties withSignature(String signature) {
65+
this.signature = signature;
66+
return this;
67+
}
68+
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.azurestack.v2017_06_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.arm.resources.models.HasManager;
13+
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.AzureStackManager;
14+
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.CloudManifestFileResponseInner;
15+
16+
/**
17+
* Type representing CloudManifestFileResponse.
18+
*/
19+
public interface CloudManifestFileResponse extends HasInner<CloudManifestFileResponseInner>, HasManager<AzureStackManager> {
20+
/**
21+
* @return the etag value.
22+
*/
23+
String etag();
24+
25+
/**
26+
* @return the id value.
27+
*/
28+
String id();
29+
30+
/**
31+
* @return the name value.
32+
*/
33+
String name();
34+
35+
/**
36+
* @return the properties value.
37+
*/
38+
CloudManifestFileProperties properties();
39+
40+
/**
41+
* @return the type value.
42+
*/
43+
String type();
44+
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.azurestack.v2017_06_01;
10+
11+
import rx.Observable;
12+
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.CloudManifestFilesInner;
13+
import com.microsoft.azure.arm.model.HasInner;
14+
15+
/**
16+
* Type representing CloudManifestFiles.
17+
*/
18+
public interface CloudManifestFiles extends HasInner<CloudManifestFilesInner> {
19+
/**
20+
* Returns a cloud specific manifest JSON file.
21+
*
22+
* @param verificationVersion Signing verification key version.
23+
* @throws IllegalArgumentException thrown if parameters fail the validation
24+
* @return the observable for the request
25+
*/
26+
Observable<CloudManifestFileResponse> getAsync(String verificationVersion);
27+
28+
/**
29+
* Returns a cloud specific manifest JSON file with latest version.
30+
*
31+
* @throws IllegalArgumentException thrown if parameters fail the validation
32+
* @return the observable for the request
33+
*/
34+
Observable<CloudManifestFileResponse> listAsync();
35+
36+
}

sdk/azurestack/mgmt-v2017_06_01/src/main/java/com/microsoft/azure/management/azurestack/v2017_06_01/Products.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface Products extends HasInner<ProductsInner> {
3535
* @throws IllegalArgumentException thrown if parameters fail the validation
3636
* @return the observable for the request
3737
*/
38-
Observable<ProductList> getProductsAsync(String resourceGroup, String registrationName, DeviceConfiguration deviceConfiguration);
38+
Observable<ProductList> getProductsAsync(String resourceGroup, String registrationName);
3939

4040
/**
4141
* Returns the specified product.
@@ -46,7 +46,7 @@ public interface Products extends HasInner<ProductsInner> {
4646
* @throws IllegalArgumentException thrown if parameters fail the validation
4747
* @return the observable for the request
4848
*/
49-
Observable<Product> getProductAsync(String resourceGroup, String registrationName, String productName, DeviceConfiguration deviceConfiguration);
49+
Observable<Product> getProductAsync(String resourceGroup, String registrationName, String productName);
5050

5151
/**
5252
* Returns the specified product.
@@ -57,7 +57,7 @@ public interface Products extends HasInner<ProductsInner> {
5757
* @throws IllegalArgumentException thrown if parameters fail the validation
5858
* @return the observable for the request
5959
*/
60-
Observable<ProductLog> uploadLogAsync(String resourceGroup, String registrationName, String productName, MarketplaceProductLogUpdate marketplaceProductLogUpdate);
60+
Observable<ProductLog> uploadLogAsync(String resourceGroup, String registrationName, String productName);
6161

6262
/**
6363
* Returns the specified product.

sdk/azurestack/mgmt-v2017_06_01/src/main/java/com/microsoft/azure/management/azurestack/v2017_06_01/Registration.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,24 @@ interface WithCreate extends Creatable<Registration>, Resource.DefinitionWithTag
8989
/**
9090
* The template for a Registration update operation, containing all the settings that can be modified.
9191
*/
92-
interface Update extends Appliable<Registration>, Resource.UpdateWithTags<Update> {
92+
interface Update extends Appliable<Registration>, Resource.UpdateWithTags<Update>, UpdateStages.WithRegistrationToken {
9393
}
9494

9595
/**
9696
* Grouping of Registration update stages.
9797
*/
9898
interface UpdateStages {
99+
/**
100+
* The stage of the registration update allowing to specify RegistrationToken.
101+
*/
102+
interface WithRegistrationToken {
103+
/**
104+
* Specifies registrationToken.
105+
* @param registrationToken The token identifying registered Azure Stack
106+
* @return the next update stage
107+
*/
108+
Update withRegistrationToken(String registrationToken);
109+
}
110+
99111
}
100112
}

sdk/azurestack/mgmt-v2017_06_01/src/main/java/com/microsoft/azure/management/azurestack/v2017_06_01/RegistrationParameter.java

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ public class RegistrationParameter {
2323
private String registrationToken;
2424

2525
/**
26-
* Location of the resource. Possible values include: 'global'.
26+
* Location of the resource.
2727
*/
28-
@JsonProperty(value = "location")
29-
private Location location;
28+
@JsonProperty(value = "location", required = true)
29+
private String location;
30+
31+
/**
32+
* Creates an instance of RegistrationParameter class.
33+
* @param registrationToken the token identifying registered Azure Stack.
34+
*/
35+
public RegistrationParameter() {
36+
location = "global";
37+
}
3038

3139
/**
3240
* Get the token identifying registered Azure Stack.
@@ -49,21 +57,21 @@ public RegistrationParameter withRegistrationToken(String registrationToken) {
4957
}
5058

5159
/**
52-
* Get location of the resource. Possible values include: 'global'.
60+
* Get location of the resource.
5361
*
5462
* @return the location value
5563
*/
56-
public Location location() {
64+
public String location() {
5765
return this.location;
5866
}
5967

6068
/**
61-
* Set location of the resource. Possible values include: 'global'.
69+
* Set location of the resource.
6270
*
6371
* @param location the location value to set
6472
* @return the RegistrationParameter object itself.
6573
*/
66-
public RegistrationParameter withLocation(Location location) {
74+
public RegistrationParameter withLocation(String location) {
6775
this.location = location;
6876
return this;
6977
}

0 commit comments

Comments
 (0)