Skip to content

Commit

Permalink
CodeGen from PR 11637 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 69a0233534b09406e10057292e14ae7c1e424bda into 5dd83515fbfd160197f06703f626b1d96ac4d3f4
  • Loading branch information
SDKAuto committed Nov 12, 2020
1 parent 0f17ee1 commit 5403deb
Show file tree
Hide file tree
Showing 35 changed files with 1,744 additions and 254 deletions.
14 changes: 8 additions & 6 deletions sdk/resources/mgmt-v2018_02_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<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-resources</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Resources Management</name>
<description>This package contains Microsoft Resources Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ interface Blank extends WithResourceGroupName {
interface WithResourceGroupName {
/**
* Specifies resourceGroupName.
* @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist
* @return the next definition stage
*/
WithProperties withResourceGroupName(String resourceGroupName);
}
Expand All @@ -69,6 +71,8 @@ interface WithResourceGroupName {
interface WithProperties {
/**
* Specifies properties.
* @param properties The deployment properties
* @return the next definition stage
*/
WithCreate withProperties(DeploymentProperties properties);
}
Expand Down Expand Up @@ -97,6 +101,8 @@ interface UpdateStages {
interface WithProperties {
/**
* Specifies properties.
* @param properties The deployment properties
* @return the next update stage
*/
Update withProperties(DeploymentProperties properties);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DeploymentPropertiesExtended {
private DateTime timestamp;

/**
* Key/value pairs that represent deploymentoutput.
* Key/value pairs that represent deployment output.
*/
@JsonProperty(value = "outputs")
private Object outputs;
Expand Down Expand Up @@ -126,7 +126,7 @@ public DateTime timestamp() {
}

/**
* Get key/value pairs that represent deploymentoutput.
* Get key/value pairs that represent deployment output.
*
* @return the outputs value
*/
Expand All @@ -135,7 +135,7 @@ public Object outputs() {
}

/**
* Set key/value pairs that represent deploymentoutput.
* Set key/value pairs that represent deployment output.
*
* @param outputs the outputs value to set
* @return the DeploymentPropertiesExtended object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface Deployments extends SupportsCreating<DeploymentExtended.Definit
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable checkExistenceAsync(String resourceGroupName, String deploymentName);
Observable<Boolean> checkExistenceAsync(String resourceGroupName, String deploymentName);

/**
* Cancels a currently running template deployment.
Expand Down Expand Up @@ -64,4 +64,13 @@ public interface Deployments extends SupportsCreating<DeploymentExtended.Definit
*/
Observable<DeploymentExportResult> exportTemplateAsync(String resourceGroupName, String deploymentName);

/**
* Calculate the hash of the given template.
*
* @param template The template provided to calculate hash.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<TemplateHashResult> calculateTemplateHashAsync(Object template);

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The resource management error additional info.
*/
public class ErrorAdditionalInfo {
/**
* The additional info type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
* The additional info.
*/
@JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
private Object info;

/**
* Get the additional info type.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Get the additional info.
*
* @return the info value
*/
public Object info() {
return this.info;
}

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Error Response.
* Common error response for all Azure Resource Manager APIs to return error
* details for failed operations. (This also follows the OData error response
* format.).
*/
public class ErrorResponse {
/**
* The error code.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* The error message.
*/
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* The error target.
*/
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
private String target;

/**
* The error details.
*/
@JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
private List<ErrorResponse> details;

/**
* The error additional info.
*/
@JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
private List<ErrorAdditionalInfo> additionalInfo;

/**
* Get the error code.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Get the error message.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Get the error target.
*
* @return the target value
*/
public String target() {
return this.target;
}

/**
* Get the error details.
*
* @return the details value
*/
public List<ErrorResponse> details() {
return this.details;
}

/**
* Get the error additional info.
*
* @return the additionalInfo value
*/
public List<ErrorAdditionalInfo> additionalInfo() {
return this.additionalInfo;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
*/
public class ExportTemplateRequest {
/**
* The IDs of the resources. The only supported string currently is '*'
* (all resources). Future updates will support exporting specific
* resources.
* The IDs of the resources to filter the export by. To export all
* resources, supply an array with single entry '*'.
*/
@JsonProperty(value = "resources")
private List<String> resources;

/**
* The export template options. Supported values include
* 'IncludeParameterDefaultValue', 'IncludeComments' or
* 'IncludeParameterDefaultValue, IncludeComments.
* The export template options. A CSV-formatted list containing zero or
* more of the following: 'IncludeParameterDefaultValue',
* 'IncludeComments', 'SkipResourceNameParameterization',
* 'SkipAllParameterization'.
*/
@JsonProperty(value = "options")
private String options;

/**
* Get the IDs of the resources. The only supported string currently is '*' (all resources). Future updates will support exporting specific resources.
* Get the IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
*
* @return the resources value
*/
Expand All @@ -41,7 +41,7 @@ public List<String> resources() {
}

/**
* Set the IDs of the resources. The only supported string currently is '*' (all resources). Future updates will support exporting specific resources.
* Set the IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
*
* @param resources the resources value to set
* @return the ExportTemplateRequest object itself.
Expand All @@ -52,7 +52,7 @@ public ExportTemplateRequest withResources(List<String> resources) {
}

/**
* Get the export template options. Supported values include 'IncludeParameterDefaultValue', 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments.
* Get the export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
*
* @return the options value
*/
Expand All @@ -61,7 +61,7 @@ public String options() {
}

/**
* Set the export template options. Supported values include 'IncludeParameterDefaultValue', 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments.
* Set the export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
*
* @param options the options value to set
* @return the ExportTemplateRequest object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
package com.microsoft.azure.management.resources.v2018_02_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.resources.v2018_02_01.implementation.GenericResourceInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.resources.v2018_02_01.implementation.ResourcesManager;
import com.microsoft.azure.management.resources.v2018_02_01.implementation.GenericResourceInner;
import java.util.Map;

/**
Expand Down
Loading

0 comments on commit 5403deb

Please sign in to comment.