Skip to content
Draft
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
6 changes: 3 additions & 3 deletions sdk/azurestack/mgmt-v2017_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-azurestack</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for AzureStack Management</name>
<description>This package contains Microsoft AzureStack Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/**
* 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.azurestack.v2017_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Cloud specific manifest data for AzureStack deployment.
*/
@JsonFlatten
public class CloudManifestFileDeploymentData {
/**
* Dsms external certificates.
*/
@JsonProperty(value = "externalDsmsCertificates")
private String externalDsmsCertificates;

/**
* Signing verification public key.
*/
@JsonProperty(value = "customCloudVerificationKey")
private String customCloudVerificationKey;

/**
* ARM endpoint.
*/
@JsonProperty(value = "customEnvironmentEndpoints.customCloudArmEndpoint")
private String customCloudArmEndpoint;

/**
* Dsms endpoint.
*/
@JsonProperty(value = "customEnvironmentEndpoints.externalDsmsEndpoint")
private String externalDsmsEndpoint;

/**
* Get dsms external certificates.
*
* @return the externalDsmsCertificates value
*/
public String externalDsmsCertificates() {
return this.externalDsmsCertificates;
}

/**
* Set dsms external certificates.
*
* @param externalDsmsCertificates the externalDsmsCertificates value to set
* @return the CloudManifestFileDeploymentData object itself.
*/
public CloudManifestFileDeploymentData withExternalDsmsCertificates(String externalDsmsCertificates) {
this.externalDsmsCertificates = externalDsmsCertificates;
return this;
}

/**
* Get signing verification public key.
*
* @return the customCloudVerificationKey value
*/
public String customCloudVerificationKey() {
return this.customCloudVerificationKey;
}

/**
* Set signing verification public key.
*
* @param customCloudVerificationKey the customCloudVerificationKey value to set
* @return the CloudManifestFileDeploymentData object itself.
*/
public CloudManifestFileDeploymentData withCustomCloudVerificationKey(String customCloudVerificationKey) {
this.customCloudVerificationKey = customCloudVerificationKey;
return this;
}

/**
* Get aRM endpoint.
*
* @return the customCloudArmEndpoint value
*/
public String customCloudArmEndpoint() {
return this.customCloudArmEndpoint;
}

/**
* Set aRM endpoint.
*
* @param customCloudArmEndpoint the customCloudArmEndpoint value to set
* @return the CloudManifestFileDeploymentData object itself.
*/
public CloudManifestFileDeploymentData withCustomCloudArmEndpoint(String customCloudArmEndpoint) {
this.customCloudArmEndpoint = customCloudArmEndpoint;
return this;
}

/**
* Get dsms endpoint.
*
* @return the externalDsmsEndpoint value
*/
public String externalDsmsEndpoint() {
return this.externalDsmsEndpoint;
}

/**
* Set dsms endpoint.
*
* @param externalDsmsEndpoint the externalDsmsEndpoint value to set
* @return the CloudManifestFileDeploymentData object itself.
*/
public CloudManifestFileDeploymentData withExternalDsmsEndpoint(String externalDsmsEndpoint) {
this.externalDsmsEndpoint = externalDsmsEndpoint;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Cloud specific manifest JSON properties.
*/
public class CloudManifestFileProperties {
/**
* Cloud specific manifest data.
*/
@JsonProperty(value = "deploymentData")
private CloudManifestFileDeploymentData deploymentData;

/**
* Signature of the cloud specific manifest data.
*/
@JsonProperty(value = "signature")
private String signature;

/**
* Get cloud specific manifest data.
*
* @return the deploymentData value
*/
public CloudManifestFileDeploymentData deploymentData() {
return this.deploymentData;
}

/**
* Set cloud specific manifest data.
*
* @param deploymentData the deploymentData value to set
* @return the CloudManifestFileProperties object itself.
*/
public CloudManifestFileProperties withDeploymentData(CloudManifestFileDeploymentData deploymentData) {
this.deploymentData = deploymentData;
return this;
}

/**
* Get signature of the cloud specific manifest data.
*
* @return the signature value
*/
public String signature() {
return this.signature;
}

/**
* Set signature of the cloud specific manifest data.
*
* @param signature the signature value to set
* @return the CloudManifestFileProperties object itself.
*/
public CloudManifestFileProperties withSignature(String signature) {
this.signature = signature;
return this;
}

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.AzureStackManager;
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.CloudManifestFileResponseInner;

/**
* Type representing CloudManifestFileResponse.
*/
public interface CloudManifestFileResponse extends HasInner<CloudManifestFileResponseInner>, HasManager<AzureStackManager> {
/**
* @return the etag value.
*/
String etag();

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

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

/**
* @return the properties value.
*/
CloudManifestFileProperties properties();

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

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

import rx.Observable;
import com.microsoft.azure.management.azurestack.v2017_06_01.implementation.CloudManifestFilesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing CloudManifestFiles.
*/
public interface CloudManifestFiles extends HasInner<CloudManifestFilesInner> {
/**
* Returns a cloud specific manifest JSON file.
*
* @param verificationVersion Signing verification key version.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<CloudManifestFileResponse> getAsync(String verificationVersion);

/**
* Returns a cloud specific manifest JSON file with latest version.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<CloudManifestFileResponse> listAsync();

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface Products extends HasInner<ProductsInner> {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ProductList> getProductsAsync(String resourceGroup, String registrationName, DeviceConfiguration deviceConfiguration);
Observable<ProductList> getProductsAsync(String resourceGroup, String registrationName);

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

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

/**
* Returns the specified product.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,24 @@ interface WithCreate extends Creatable<Registration>, Resource.DefinitionWithTag
/**
* The template for a Registration update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<Registration>, Resource.UpdateWithTags<Update> {
interface Update extends Appliable<Registration>, Resource.UpdateWithTags<Update>, UpdateStages.WithRegistrationToken {
}

/**
* Grouping of Registration update stages.
*/
interface UpdateStages {
/**
* The stage of the registration update allowing to specify RegistrationToken.
*/
interface WithRegistrationToken {
/**
* Specifies registrationToken.
* @param registrationToken The token identifying registered Azure Stack
* @return the next update stage
*/
Update withRegistrationToken(String registrationToken);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ public class RegistrationParameter {
private String registrationToken;

/**
* Location of the resource. Possible values include: 'global'.
* Location of the resource.
*/
@JsonProperty(value = "location")
private Location location;
@JsonProperty(value = "location", required = true)
private String location;

/**
* Creates an instance of RegistrationParameter class.
* @param registrationToken the token identifying registered Azure Stack.
*/
public RegistrationParameter() {
location = "global";
}

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

/**
* Get location of the resource. Possible values include: 'global'.
* Get location of the resource.
*
* @return the location value
*/
public Location location() {
public String location() {
return this.location;
}

/**
* Set location of the resource. Possible values include: 'global'.
* Set location of the resource.
*
* @param location the location value to set
* @return the RegistrationParameter object itself.
*/
public RegistrationParameter withLocation(Location location) {
public RegistrationParameter withLocation(String location) {
this.location = location;
return this;
}
Expand Down
Loading