diff --git a/sdk/resources/arm-resources/LICENSE.txt b/sdk/resources/arm-resources/LICENSE.txt
index b73b4a1293c3..ea8fb1516028 100644
--- a/sdk/resources/arm-resources/LICENSE.txt
+++ b/sdk/resources/arm-resources/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2019 Microsoft
+Copyright (c) 2020 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/sdk/resources/arm-resources/README.md b/sdk/resources/arm-resources/README.md
index bcf213c43571..3db118a758f7 100644
--- a/sdk/resources/arm-resources/README.md
+++ b/sdk/resources/arm-resources/README.md
@@ -96,4 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
-
+
diff --git a/sdk/resources/arm-resources/src/models/deploymentsMappers.ts b/sdk/resources/arm-resources/src/models/deploymentsMappers.ts
index 24da4cc917df..61286227b9da 100644
--- a/sdk/resources/arm-resources/src/models/deploymentsMappers.ts
+++ b/sdk/resources/arm-resources/src/models/deploymentsMappers.ts
@@ -7,8 +7,9 @@
*/
export {
- AliasPathType,
- AliasType,
+ Alias,
+ AliasPath,
+ AliasPattern,
BaseResource,
BasicDependency,
CloudError,
@@ -29,6 +30,7 @@ export {
ErrorAdditionalInfo,
ErrorResponse,
GenericResource,
+ GenericResourceExpanded,
Identity,
IdentityUserAssignedIdentitiesValue,
OnErrorDeployment,
@@ -40,9 +42,14 @@ export {
Resource,
ResourceGroup,
ResourceGroupProperties,
+ ResourceReference,
+ ScopedDeployment,
Sku,
SubResource,
TagCount,
+ TagDetails,
+ Tags,
+ TagsResource,
TagValue,
TemplateHashResult,
TemplateLink,
diff --git a/sdk/resources/arm-resources/src/models/index.ts b/sdk/resources/arm-resources/src/models/index.ts
index f5faeb25a2e2..0916795083fc 100644
--- a/sdk/resources/arm-resources/src/models/index.ts
+++ b/sdk/resources/arm-resources/src/models/index.ts
@@ -169,6 +169,28 @@ export interface Deployment {
* The deployment properties.
*/
properties: DeploymentProperties;
+ /**
+ * Deployment tags
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * Deployment operation parameters.
+ */
+export interface ScopedDeployment {
+ /**
+ * The location to store the deployment data.
+ */
+ location: string;
+ /**
+ * The deployment properties.
+ */
+ properties: DeploymentProperties;
+ /**
+ * Deployment tags
+ */
+ tags?: { [propertyName: string]: string };
}
/**
@@ -263,10 +285,28 @@ export interface ErrorResponse {
readonly additionalInfo?: ErrorAdditionalInfo[];
}
+/**
+ * The type of the pattern for an alias path.
+ */
+export interface AliasPattern {
+ /**
+ * The alias pattern phrase.
+ */
+ phrase?: string;
+ /**
+ * The alias pattern variable.
+ */
+ variable?: string;
+ /**
+ * The type of alias pattern. Possible values include: 'NotSpecified', 'Extract'
+ */
+ type?: AliasPatternType;
+}
+
/**
* The type of the paths for alias.
*/
-export interface AliasPathType {
+export interface AliasPath {
/**
* The path of an alias.
*/
@@ -275,12 +315,16 @@ export interface AliasPathType {
* The API versions.
*/
apiVersions?: string[];
+ /**
+ * The pattern for an alias path.
+ */
+ pattern?: AliasPattern;
}
/**
* The alias type.
*/
-export interface AliasType {
+export interface Alias {
/**
* The alias name.
*/
@@ -288,7 +332,19 @@ export interface AliasType {
/**
* The paths for an alias.
*/
- paths?: AliasPathType[];
+ paths?: AliasPath[];
+ /**
+ * The type of the alias. Possible values include: 'NotSpecified', 'PlainText', 'Mask'
+ */
+ type?: AliasType;
+ /**
+ * The default path for an alias.
+ */
+ defaultPath?: string;
+ /**
+ * The default pattern for an alias.
+ */
+ defaultPattern?: AliasPattern;
}
/**
@@ -306,7 +362,7 @@ export interface ProviderResourceType {
/**
* The aliases that are supported by this resource type.
*/
- aliases?: AliasType[];
+ aliases?: Alias[];
/**
* The API version.
*/
@@ -411,6 +467,17 @@ export interface OnErrorDeploymentExtended {
deploymentName?: string;
}
+/**
+ * The resource Id model.
+ */
+export interface ResourceReference {
+ /**
+ * The fully qualified resource Id.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+}
+
/**
* Deployment properties with additional details.
*/
@@ -437,45 +504,70 @@ export interface DeploymentPropertiesExtended {
readonly duration?: string;
/**
* Key/value pairs that represent deployment output.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- outputs?: any;
+ readonly outputs?: any;
/**
* The list of resource providers needed for the deployment.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- providers?: Provider[];
+ readonly providers?: Provider[];
/**
* The list of deployment dependencies.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- dependencies?: Dependency[];
- /**
- * The template content. Use only one of Template or TemplateLink.
- */
- template?: any;
+ readonly dependencies?: Dependency[];
/**
- * The URI referencing the template. Use only one of Template or TemplateLink.
+ * The URI referencing the template.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- templateLink?: TemplateLink;
+ readonly templateLink?: TemplateLink;
/**
- * Deployment parameters. Use only one of Parameters or ParametersLink.
+ * Deployment parameters.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- parameters?: any;
+ readonly parameters?: any;
/**
- * The URI referencing the parameters. Use only one of Parameters or ParametersLink.
+ * The URI referencing the parameters.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- parametersLink?: ParametersLink;
+ readonly parametersLink?: ParametersLink;
/**
* The deployment mode. Possible values are Incremental and Complete. Possible values include:
* 'Incremental', 'Complete'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- mode?: DeploymentMode;
+ readonly mode?: DeploymentMode;
/**
* The debug setting of the deployment.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- debugSetting?: DebugSetting;
+ readonly debugSetting?: DebugSetting;
/**
* The deployment on error behavior.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly onErrorDeployment?: OnErrorDeploymentExtended;
+ /**
+ * The hash produced for the template.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- onErrorDeployment?: OnErrorDeploymentExtended;
+ readonly templateHash?: string;
+ /**
+ * Array of provisioned resources.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly outputResources?: ResourceReference[];
+ /**
+ * Array of validated resources.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly validatedResources?: ResourceReference[];
+ /**
+ * The deployment error.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly error?: ErrorResponse;
}
/**
@@ -484,8 +576,9 @@ export interface DeploymentPropertiesExtended {
export interface DeploymentValidateResult {
/**
* The deployment validation error.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- error?: ErrorResponse;
+ readonly error?: ErrorResponse;
/**
* The template deployment properties.
*/
@@ -519,6 +612,10 @@ export interface DeploymentExtended extends BaseResource {
* Deployment properties.
*/
properties?: DeploymentPropertiesExtended;
+ /**
+ * Deployment tags
+ */
+ tags?: { [propertyName: string]: string };
}
/**
@@ -679,6 +776,30 @@ export interface GenericResource extends Resource {
identity?: Identity;
}
+/**
+ * Resource information.
+ */
+export interface GenericResourceExpanded extends GenericResource {
+ /**
+ * The created time of the resource. This is only present if requested via the $expand query
+ * parameter.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly createdTime?: Date;
+ /**
+ * The changed time of the resource. This is only present if requested via the $expand query
+ * parameter.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly changedTime?: Date;
+ /**
+ * The provisioning state of the resource. This is only present if requested via the $expand
+ * query parameter.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly provisioningState?: string;
+}
+
/**
* The resource group properties.
*/
@@ -800,7 +921,7 @@ export interface TagCount {
*/
export interface TagValue extends BaseResource {
/**
- * The tag ID.
+ * The tag value ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
@@ -817,9 +938,9 @@ export interface TagValue extends BaseResource {
/**
* Tag details.
*/
-export interface TagDetails {
+export interface TagDetails extends BaseResource {
/**
- * The tag ID.
+ * The tag name ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
@@ -870,6 +991,13 @@ export interface HttpMessage {
* Deployment operation properties.
*/
export interface DeploymentOperationProperties {
+ /**
+ * The name of the current provisioning operation. Possible values include: 'NotSpecified',
+ * 'Create', 'Delete', 'Waiting', 'AzureAsyncOperationWaiting', 'ResourceCacheWaiting', 'Action',
+ * 'Read', 'EvaluateDeploymentOutput', 'DeploymentCleanup'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly provisioningOperation?: ProvisioningOperation;
/**
* The state of the provisioning.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -1110,6 +1238,52 @@ export interface WhatIfOperationResult {
error?: ErrorResponse;
}
+/**
+ * A dictionary of name and value pairs.
+ */
+export interface Tags {
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * Wrapper resource for tags patch API request only.
+ */
+export interface TagsPatchResource {
+ /**
+ * The operation type for the patch API. Possible values include: 'Replace', 'Merge', 'Delete'
+ */
+ operation?: OperationEnum;
+ /**
+ * The set of tags.
+ */
+ properties?: Tags;
+}
+
+/**
+ * Wrapper resource for tags API requests and responses.
+ */
+export interface TagsResource extends BaseResource {
+ /**
+ * The ID of the tags wrapper resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The name of the tags wrapper resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The type of the tags wrapper resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+ /**
+ * The set of tags.
+ */
+ properties: Tags;
+}
+
/**
* Optional Parameters.
*/
@@ -1253,15 +1427,17 @@ export interface ResourcesListByResourceGroupOptionalParams extends msRest.Reque
* and resourceGroup.
For example, to get all resources with 'demo' anywhere in the name,
* use: $filter=substringof('demo', name)
You can link more than one substringof together
* by adding and/or operators.
You can filter by tag names and values. For example, to
- * filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq
- * 'Value1'
You can use some properties together when filtering. The combinations you can
+ * filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When
+ * you filter by a tag name and value, the tags for each resource are not returned in the
+ * results.
You can use some properties together when filtering. The combinations you can
* use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and
* identity/principalId.
*/
filter?: string;
/**
- * The $expand query parameter. You can expand createdTime and changedTime. For example, to
- * expand both properties, use $expand=changedTime,createdTime
+ * Comma-separated list of additional properties to be included in the response. Valid values
+ * include `createdTime`, `changedTime` and `provisioningState`. For example,
+ * `$expand=createdTime,changedTime`.
*/
expand?: string;
/**
@@ -1284,15 +1460,17 @@ export interface ResourcesListOptionalParams extends msRest.RequestOptionsBase {
* and resourceGroup.
For example, to get all resources with 'demo' anywhere in the name,
* use: $filter=substringof('demo', name)
You can link more than one substringof together
* by adding and/or operators.
You can filter by tag names and values. For example, to
- * filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq
- * 'Value1'
You can use some properties together when filtering. The combinations you can
+ * filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When
+ * you filter by a tag name and value, the tags for each resource are not returned in the
+ * results.
You can use some properties together when filtering. The combinations you can
* use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and
* identity/principalId.
*/
filter?: string;
/**
- * The $expand query parameter. You can expand createdTime and changedTime. For example, to
- * expand both properties, use $expand=changedTime,createdTime
+ * Comma-separated list of additional properties to be included in the response. Valid values
+ * include `createdTime`, `changedTime` and `provisioningState`. For example,
+ * `$expand=createdTime,changedTime`.
*/
expand?: string;
/**
@@ -1444,9 +1622,9 @@ export interface ProviderListResult extends Array {
/**
* @interface
* List of resource groups.
- * @extends Array
+ * @extends Array
*/
-export interface ResourceListResult extends Array {
+export interface ResourceListResult extends Array {
/**
* The URL to use for getting the next set of results.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -1517,6 +1695,22 @@ export type OnErrorDeploymentType = 'LastSuccessful' | 'SpecificDeployment';
*/
export type WhatIfResultFormat = 'ResourceIdOnly' | 'FullResourcePayloads';
+/**
+ * Defines values for AliasPatternType.
+ * Possible values include: 'NotSpecified', 'Extract'
+ * @readonly
+ * @enum {string}
+ */
+export type AliasPatternType = 'NotSpecified' | 'Extract';
+
+/**
+ * Defines values for AliasType.
+ * Possible values include: 'NotSpecified', 'PlainText', 'Mask'
+ * @readonly
+ * @enum {string}
+ */
+export type AliasType = 'NotSpecified' | 'PlainText' | 'Mask';
+
/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned',
@@ -1526,6 +1720,16 @@ export type WhatIfResultFormat = 'ResourceIdOnly' | 'FullResourcePayloads';
*/
export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None';
+/**
+ * Defines values for ProvisioningOperation.
+ * Possible values include: 'NotSpecified', 'Create', 'Delete', 'Waiting',
+ * 'AzureAsyncOperationWaiting', 'ResourceCacheWaiting', 'Action', 'Read',
+ * 'EvaluateDeploymentOutput', 'DeploymentCleanup'
+ * @readonly
+ * @enum {string}
+ */
+export type ProvisioningOperation = 'NotSpecified' | 'Create' | 'Delete' | 'Waiting' | 'AzureAsyncOperationWaiting' | 'ResourceCacheWaiting' | 'Action' | 'Read' | 'EvaluateDeploymentOutput' | 'DeploymentCleanup';
+
/**
* Defines values for PropertyChangeType.
* Possible values include: 'Create', 'Delete', 'Modify', 'Array'
@@ -1542,6 +1746,14 @@ export type PropertyChangeType = 'Create' | 'Delete' | 'Modify' | 'Array';
*/
export type ChangeType = 'Create' | 'Delete' | 'Ignore' | 'Deploy' | 'NoChange' | 'Modify';
+/**
+ * Defines values for OperationEnum.
+ * Possible values include: 'Replace', 'Merge', 'Delete'
+ * @readonly
+ * @enum {string}
+ */
+export type OperationEnum = 'Replace' | 'Merge' | 'Delete';
+
/**
* Contains response data for the list operation.
*/
@@ -2297,6 +2509,26 @@ export type DeploymentsBeginCreateOrUpdateAtScopeResponse = DeploymentExtended &
};
};
+/**
+ * Contains response data for the beginValidateAtScope operation.
+ */
+export type DeploymentsBeginValidateAtScopeResponse = DeploymentValidateResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeploymentValidateResult;
+ };
+};
+
/**
* Contains response data for the beginCreateOrUpdateAtTenantScope operation.
*/
@@ -2317,6 +2549,26 @@ export type DeploymentsBeginCreateOrUpdateAtTenantScopeResponse = DeploymentExte
};
};
+/**
+ * Contains response data for the beginValidateAtTenantScope operation.
+ */
+export type DeploymentsBeginValidateAtTenantScopeResponse = DeploymentValidateResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeploymentValidateResult;
+ };
+};
+
/**
* Contains response data for the beginCreateOrUpdateAtManagementGroupScope operation.
*/
@@ -2337,6 +2589,26 @@ export type DeploymentsBeginCreateOrUpdateAtManagementGroupScopeResponse = Deplo
};
};
+/**
+ * Contains response data for the beginValidateAtManagementGroupScope operation.
+ */
+export type DeploymentsBeginValidateAtManagementGroupScopeResponse = DeploymentValidateResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeploymentValidateResult;
+ };
+};
+
/**
* Contains response data for the beginCreateOrUpdateAtSubscriptionScope operation.
*/
@@ -2357,6 +2629,26 @@ export type DeploymentsBeginCreateOrUpdateAtSubscriptionScopeResponse = Deployme
};
};
+/**
+ * Contains response data for the beginValidateAtSubscriptionScope operation.
+ */
+export type DeploymentsBeginValidateAtSubscriptionScopeResponse = DeploymentValidateResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeploymentValidateResult;
+ };
+};
+
/**
* Contains response data for the beginCreateOrUpdate operation.
*/
@@ -2377,6 +2669,26 @@ export type DeploymentsBeginCreateOrUpdateResponse = DeploymentExtended & {
};
};
+/**
+ * Contains response data for the beginValidate operation.
+ */
+export type DeploymentsBeginValidateResponse = DeploymentValidateResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeploymentValidateResult;
+ };
+};
+
/**
* Contains response data for the listAtScopeNext operation.
*/
@@ -3092,6 +3404,26 @@ export type ResourceGroupsListResponse = ResourceGroupListResult & {
};
};
+/**
+ * Contains response data for the beginExportTemplate operation.
+ */
+export type ResourceGroupsBeginExportTemplateResponse = ResourceGroupExportResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ResourceGroupExportResult;
+ };
+};
+
/**
* Contains response data for the listNext operation.
*/
@@ -3172,6 +3504,66 @@ export type TagsListResponse = TagsListResult & {
};
};
+/**
+ * Contains response data for the createOrUpdateAtScope operation.
+ */
+export type TagsCreateOrUpdateAtScopeResponse = TagsResource & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TagsResource;
+ };
+};
+
+/**
+ * Contains response data for the updateAtScope operation.
+ */
+export type TagsUpdateAtScopeResponse = TagsResource & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TagsResource;
+ };
+};
+
+/**
+ * Contains response data for the getAtScope operation.
+ */
+export type TagsGetAtScopeResponse = TagsResource & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TagsResource;
+ };
+};
+
/**
* Contains response data for the listNext operation.
*/
diff --git a/sdk/resources/arm-resources/src/models/mappers.ts b/sdk/resources/arm-resources/src/models/mappers.ts
index e311aa0b456d..69a63e536f3f 100644
--- a/sdk/resources/arm-resources/src/models/mappers.ts
+++ b/sdk/resources/arm-resources/src/models/mappers.ts
@@ -246,6 +246,53 @@ export const Deployment: msRest.CompositeMapper = {
name: "Composite",
className: "DeploymentProperties"
}
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ScopedDeployment: msRest.CompositeMapper = {
+ serializedName: "ScopedDeployment",
+ type: {
+ name: "Composite",
+ className: "ScopedDeployment",
+ modelProperties: {
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ required: true,
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "DeploymentProperties"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
}
}
}
@@ -410,11 +457,43 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
-export const AliasPathType: msRest.CompositeMapper = {
- serializedName: "AliasPathType",
+export const AliasPattern: msRest.CompositeMapper = {
+ serializedName: "AliasPattern",
+ type: {
+ name: "Composite",
+ className: "AliasPattern",
+ modelProperties: {
+ phrase: {
+ serializedName: "phrase",
+ type: {
+ name: "String"
+ }
+ },
+ variable: {
+ serializedName: "variable",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotSpecified",
+ "Extract"
+ ]
+ }
+ }
+ }
+ }
+};
+
+export const AliasPath: msRest.CompositeMapper = {
+ serializedName: "AliasPath",
type: {
name: "Composite",
- className: "AliasPathType",
+ className: "AliasPath",
modelProperties: {
path: {
serializedName: "path",
@@ -432,16 +511,23 @@ export const AliasPathType: msRest.CompositeMapper = {
}
}
}
+ },
+ pattern: {
+ serializedName: "pattern",
+ type: {
+ name: "Composite",
+ className: "AliasPattern"
+ }
}
}
}
};
-export const AliasType: msRest.CompositeMapper = {
- serializedName: "AliasType",
+export const Alias: msRest.CompositeMapper = {
+ serializedName: "Alias",
type: {
name: "Composite",
- className: "AliasType",
+ className: "Alias",
modelProperties: {
name: {
serializedName: "name",
@@ -456,10 +542,34 @@ export const AliasType: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "AliasPathType"
+ className: "AliasPath"
}
}
}
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotSpecified",
+ "PlainText",
+ "Mask"
+ ]
+ }
+ },
+ defaultPath: {
+ serializedName: "defaultPath",
+ type: {
+ name: "String"
+ }
+ },
+ defaultPattern: {
+ serializedName: "defaultPattern",
+ type: {
+ name: "Composite",
+ className: "AliasPattern"
+ }
}
}
}
@@ -495,7 +605,7 @@ export const ProviderResourceType: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "AliasType"
+ className: "Alias"
}
}
}
@@ -683,6 +793,23 @@ export const OnErrorDeploymentExtended: msRest.CompositeMapper = {
}
};
+export const ResourceReference: msRest.CompositeMapper = {
+ serializedName: "ResourceReference",
+ type: {
+ name: "Composite",
+ className: "ResourceReference",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
serializedName: "DeploymentPropertiesExtended",
type: {
@@ -718,12 +845,14 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
outputs: {
+ readOnly: true,
serializedName: "outputs",
type: {
name: "Object"
}
},
providers: {
+ readOnly: true,
serializedName: "providers",
type: {
name: "Sequence",
@@ -736,6 +865,7 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
dependencies: {
+ readOnly: true,
serializedName: "dependencies",
type: {
name: "Sequence",
@@ -747,13 +877,8 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
}
},
- template: {
- serializedName: "template",
- type: {
- name: "Object"
- }
- },
templateLink: {
+ readOnly: true,
serializedName: "templateLink",
type: {
name: "Composite",
@@ -761,12 +886,14 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
parameters: {
+ readOnly: true,
serializedName: "parameters",
type: {
name: "Object"
}
},
parametersLink: {
+ readOnly: true,
serializedName: "parametersLink",
type: {
name: "Composite",
@@ -774,6 +901,7 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
mode: {
+ readOnly: true,
serializedName: "mode",
type: {
name: "Enum",
@@ -784,6 +912,7 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
debugSetting: {
+ readOnly: true,
serializedName: "debugSetting",
type: {
name: "Composite",
@@ -791,11 +920,53 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = {
}
},
onErrorDeployment: {
+ readOnly: true,
serializedName: "onErrorDeployment",
type: {
name: "Composite",
className: "OnErrorDeploymentExtended"
}
+ },
+ templateHash: {
+ readOnly: true,
+ serializedName: "templateHash",
+ type: {
+ name: "String"
+ }
+ },
+ outputResources: {
+ readOnly: true,
+ serializedName: "outputResources",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ResourceReference"
+ }
+ }
+ }
+ },
+ validatedResources: {
+ readOnly: true,
+ serializedName: "validatedResources",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ResourceReference"
+ }
+ }
+ }
+ },
+ error: {
+ readOnly: true,
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse"
+ }
}
}
}
@@ -808,6 +979,7 @@ export const DeploymentValidateResult: msRest.CompositeMapper = {
className: "DeploymentValidateResult",
modelProperties: {
error: {
+ readOnly: true,
serializedName: "error",
type: {
name: "Composite",
@@ -864,6 +1036,17 @@ export const DeploymentExtended: msRest.CompositeMapper = {
name: "Composite",
className: "DeploymentPropertiesExtended"
}
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
}
}
}
@@ -1128,6 +1311,38 @@ export const GenericResource: msRest.CompositeMapper = {
}
};
+export const GenericResourceExpanded: msRest.CompositeMapper = {
+ serializedName: "GenericResourceExpanded",
+ type: {
+ name: "Composite",
+ className: "GenericResourceExpanded",
+ modelProperties: {
+ ...GenericResource.type.modelProperties,
+ createdTime: {
+ readOnly: true,
+ serializedName: "createdTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ changedTime: {
+ readOnly: true,
+ serializedName: "changedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const ResourceGroupProperties: msRest.CompositeMapper = {
serializedName: "ResourceGroupProperties",
type: {
@@ -1445,6 +1660,25 @@ export const DeploymentOperationProperties: msRest.CompositeMapper = {
name: "Composite",
className: "DeploymentOperationProperties",
modelProperties: {
+ provisioningOperation: {
+ readOnly: true,
+ serializedName: "provisioningOperation",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotSpecified",
+ "Create",
+ "Delete",
+ "Waiting",
+ "AzureAsyncOperationWaiting",
+ "ResourceCacheWaiting",
+ "Action",
+ "Read",
+ "EvaluateDeploymentOutput",
+ "DeploymentCleanup"
+ ]
+ }
+ },
provisioningState: {
readOnly: true,
serializedName: "provisioningState",
@@ -1849,6 +2083,89 @@ export const WhatIfOperationResult: msRest.CompositeMapper = {
}
};
+export const Tags: msRest.CompositeMapper = {
+ serializedName: "Tags",
+ type: {
+ name: "Composite",
+ className: "Tags",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const TagsPatchResource: msRest.CompositeMapper = {
+ serializedName: "TagsPatchResource",
+ type: {
+ name: "Composite",
+ className: "TagsPatchResource",
+ modelProperties: {
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "Tags"
+ }
+ }
+ }
+ }
+};
+
+export const TagsResource: msRest.CompositeMapper = {
+ serializedName: "TagsResource",
+ type: {
+ name: "Composite",
+ className: "TagsResource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ required: true,
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "Tags"
+ }
+ }
+ }
+ }
+};
+
export const DeploymentsWhatIfAtSubscriptionScopeHeaders: msRest.CompositeMapper = {
serializedName: "deployments-whatifatsubscriptionscope-headers",
type: {
@@ -1992,7 +2309,7 @@ export const ResourceListResult: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "GenericResource"
+ className: "GenericResourceExpanded"
}
}
}
diff --git a/sdk/resources/arm-resources/src/models/parameters.ts b/sdk/resources/arm-resources/src/models/parameters.ts
index 8810048870e6..50629a1cd649 100644
--- a/sdk/resources/arm-resources/src/models/parameters.ts
+++ b/sdk/resources/arm-resources/src/models/parameters.ts
@@ -180,7 +180,8 @@ export const scope: msRest.OperationURLParameter = {
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
export const sourceResourceGroupName: msRest.OperationURLParameter = {
parameterPath: "sourceResourceGroupName",
diff --git a/sdk/resources/arm-resources/src/models/providersMappers.ts b/sdk/resources/arm-resources/src/models/providersMappers.ts
index 73efdacde7a1..d85326cf880c 100644
--- a/sdk/resources/arm-resources/src/models/providersMappers.ts
+++ b/sdk/resources/arm-resources/src/models/providersMappers.ts
@@ -7,8 +7,9 @@
*/
export {
- AliasPathType,
- AliasType,
+ Alias,
+ AliasPath,
+ AliasPattern,
CloudError,
ErrorAdditionalInfo,
ErrorResponse,
diff --git a/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts b/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts
index eb263b58a93a..aa848f724f61 100644
--- a/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts
+++ b/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts
@@ -7,8 +7,9 @@
*/
export {
- AliasPathType,
- AliasType,
+ Alias,
+ AliasPath,
+ AliasPattern,
BaseResource,
BasicDependency,
CloudError,
@@ -20,6 +21,7 @@ export {
ErrorResponse,
ExportTemplateRequest,
GenericResource,
+ GenericResourceExpanded,
Identity,
IdentityUserAssignedIdentitiesValue,
OnErrorDeploymentExtended,
@@ -33,9 +35,13 @@ export {
ResourceGroupListResult,
ResourceGroupPatchable,
ResourceGroupProperties,
+ ResourceReference,
Sku,
SubResource,
TagCount,
+ TagDetails,
+ Tags,
+ TagsResource,
TagValue,
TemplateLink
} from "../models/mappers";
diff --git a/sdk/resources/arm-resources/src/models/resourcesMappers.ts b/sdk/resources/arm-resources/src/models/resourcesMappers.ts
index e660fb32bcc4..f843f4e6bfbb 100644
--- a/sdk/resources/arm-resources/src/models/resourcesMappers.ts
+++ b/sdk/resources/arm-resources/src/models/resourcesMappers.ts
@@ -7,8 +7,9 @@
*/
export {
- AliasPathType,
- AliasType,
+ Alias,
+ AliasPath,
+ AliasPattern,
BaseResource,
BasicDependency,
CloudError,
@@ -19,6 +20,7 @@ export {
ErrorAdditionalInfo,
ErrorResponse,
GenericResource,
+ GenericResourceExpanded,
Identity,
IdentityUserAssignedIdentitiesValue,
OnErrorDeploymentExtended,
@@ -30,10 +32,14 @@ export {
ResourceGroup,
ResourceGroupProperties,
ResourceListResult,
+ ResourceReference,
ResourcesMoveInfo,
Sku,
SubResource,
TagCount,
+ TagDetails,
+ Tags,
+ TagsResource,
TagValue,
TemplateLink
} from "../models/mappers";
diff --git a/sdk/resources/arm-resources/src/models/tagsMappers.ts b/sdk/resources/arm-resources/src/models/tagsOperationsMappers.ts
similarity index 86%
rename from sdk/resources/arm-resources/src/models/tagsMappers.ts
rename to sdk/resources/arm-resources/src/models/tagsOperationsMappers.ts
index ef9dcf708953..39fb6b2cbe62 100644
--- a/sdk/resources/arm-resources/src/models/tagsMappers.ts
+++ b/sdk/resources/arm-resources/src/models/tagsOperationsMappers.ts
@@ -7,8 +7,9 @@
*/
export {
- AliasPathType,
- AliasType,
+ Alias,
+ AliasPath,
+ AliasPattern,
BaseResource,
BasicDependency,
CloudError,
@@ -19,6 +20,7 @@ export {
ErrorAdditionalInfo,
ErrorResponse,
GenericResource,
+ GenericResourceExpanded,
Identity,
IdentityUserAssignedIdentitiesValue,
OnErrorDeploymentExtended,
@@ -29,11 +31,15 @@ export {
Resource,
ResourceGroup,
ResourceGroupProperties,
+ ResourceReference,
Sku,
SubResource,
TagCount,
TagDetails,
+ Tags,
TagsListResult,
+ TagsPatchResource,
+ TagsResource,
TagValue,
TemplateLink
} from "../models/mappers";
diff --git a/sdk/resources/arm-resources/src/operations/deploymentOperations.ts b/sdk/resources/arm-resources/src/operations/deploymentOperations.ts
index ddb4d2cb4926..f7c968e55a0b 100644
--- a/sdk/resources/arm-resources/src/operations/deploymentOperations.ts
+++ b/sdk/resources/arm-resources/src/operations/deploymentOperations.ts
@@ -28,7 +28,7 @@ export class DeploymentOperations {
/**
* Gets a deployments operation.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param [options] The optional parameters
@@ -36,14 +36,14 @@ export class DeploymentOperations {
*/
getAtScope(scope: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param callback The callback
*/
getAtScope(scope: string, deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The optional parameters
@@ -64,20 +64,20 @@ export class DeploymentOperations {
/**
* Gets all deployments operations for a deployment.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
*/
listAtScope(scope: string, deploymentName: string, options?: Models.DeploymentOperationsListAtScopeOptionalParams): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param callback The callback
*/
listAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The optional parameters
* @param callback The callback
diff --git a/sdk/resources/arm-resources/src/operations/deployments.ts b/sdk/resources/arm-resources/src/operations/deployments.ts
index 96afac3143f8..571323f26ffd 100644
--- a/sdk/resources/arm-resources/src/operations/deployments.ts
+++ b/sdk/resources/arm-resources/src/operations/deployments.ts
@@ -36,7 +36,7 @@ export class Deployments {
* process finishes, the URI in the Location header returns a status of 204 on success. If the
* asynchronous request failed, the URI in the Location header returns an error-level status code.
* @summary Deletes a deployment from the deployment history.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
@@ -48,20 +48,20 @@ export class Deployments {
/**
* Checks whether the deployment exists.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
*/
checkExistenceAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param callback The callback
*/
checkExistenceAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The optional parameters
* @param callback The callback
@@ -81,7 +81,7 @@ export class Deployments {
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @summary Deploys resources at a given scope.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param [options] The optional parameters
@@ -94,20 +94,20 @@ export class Deployments {
/**
* Gets a deployment.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
*/
getAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param callback The callback
*/
getAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The optional parameters
* @param callback The callback
@@ -130,20 +130,20 @@ export class Deployments {
* deployment stops the currently running template deployment and leaves the resources partially
* deployed.
* @summary Cancels a currently running template deployment.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
*/
cancelAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param callback The callback
*/
cancelAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The optional parameters
* @param callback The callback
@@ -163,56 +163,33 @@ export class Deployments {
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param [options] The optional parameters
* @returns Promise
*/
- validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param scope The scope of a deployment.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param callback The callback
- */
- validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, callback: msRest.ServiceCallback): void;
- /**
- * @param scope The scope of a deployment.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param options The optional parameters
- * @param callback The callback
- */
- validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- scope,
- deploymentName,
- parameters,
- options
- },
- validateAtScopeOperationSpec,
- callback) as Promise;
+ validateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginValidateAtScope(scope,deploymentName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
* Exports the template used for specified deployment.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
*/
exportTemplateAtScope(scope: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param callback The callback
*/
exportTemplateAtScope(scope: string, deploymentName: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The optional parameters
* @param callback The callback
@@ -231,18 +208,18 @@ export class Deployments {
/**
* Get all the deployments at the given scope.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param [options] The optional parameters
* @returns Promise
*/
listAtScope(scope: string, options?: Models.DeploymentsListAtScopeOptionalParams): Promise;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param callback The callback
*/
listAtScope(scope: string, callback: msRest.ServiceCallback): void;
/**
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param options The optional parameters
* @param callback The callback
*/
@@ -311,7 +288,7 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- createOrUpdateAtTenantScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ createOrUpdateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
return this.beginCreateOrUpdateAtTenantScope(deploymentName,parameters,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
@@ -384,29 +361,9 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- validateAtTenantScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param callback The callback
- */
- validateAtTenantScope(deploymentName: string, parameters: Models.Deployment, callback: msRest.ServiceCallback): void;
- /**
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param options The optional parameters
- * @param callback The callback
- */
- validateAtTenantScope(deploymentName: string, parameters: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- validateAtTenantScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- deploymentName,
- parameters,
- options
- },
- validateAtTenantScopeOperationSpec,
- callback) as Promise;
+ validateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginValidateAtTenantScope(deploymentName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -521,7 +478,7 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- createOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ createOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
return this.beginCreateOrUpdateAtManagementGroupScope(groupId,deploymentName,parameters,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
@@ -603,32 +560,9 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param groupId The management group ID.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param callback The callback
- */
- validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, callback: msRest.ServiceCallback): void;
- /**
- * @param groupId The management group ID.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param options The optional parameters
- * @param callback The callback
- */
- validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- groupId,
- deploymentName,
- parameters,
- options
- },
- validateAtManagementGroupScopeOperationSpec,
- callback) as Promise;
+ validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginValidateAtManagementGroupScope(groupId,deploymentName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -818,29 +752,9 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param callback The callback
- */
- validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, callback: msRest.ServiceCallback): void;
- /**
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param options The optional parameters
- * @param callback The callback
- */
- validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- deploymentName,
- parameters,
- options
- },
- validateAtSubscriptionScopeOperationSpec,
- callback) as Promise;
+ validateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginValidateAtSubscriptionScope(deploymentName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -1057,34 +971,9 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group the template will be deployed to. The
- * name is case insensitive.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param callback The callback
- */
- validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group the template will be deployed to. The
- * name is case insensitive.
- * @param deploymentName The name of the deployment.
- * @param parameters Parameters to validate.
- * @param options The optional parameters
- * @param callback The callback
- */
- validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- deploymentName,
- parameters,
- options
- },
- validateOperationSpec,
- callback) as Promise;
+ validate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginValidate(resourceGroupName,deploymentName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -1202,7 +1091,7 @@ export class Deployments {
* process finishes, the URI in the Location header returns a status of 204 on success. If the
* asynchronous request failed, the URI in the Location header returns an error-level status code.
* @summary Deletes a deployment from the deployment history.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise
@@ -1221,7 +1110,7 @@ export class Deployments {
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @summary Deploys resources at a given scope.
- * @param scope The scope of a deployment.
+ * @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param [options] The optional parameters
@@ -1239,6 +1128,27 @@ export class Deployments {
options);
}
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
+ * Resource Manager..
+ * @param scope The resource scope.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginValidateAtScope(scope: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ scope,
+ deploymentName,
+ parameters,
+ options
+ },
+ beginValidateAtScopeOperationSpec,
+ options);
+ }
+
/**
* A template deployment that is currently running cannot be deleted. Deleting a template
* deployment removes the associated deployment operations. This is an asynchronous operation that
@@ -1270,7 +1180,7 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- beginCreateOrUpdateAtTenantScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ beginCreateOrUpdateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
return this.client.sendLRORequest(
{
deploymentName,
@@ -1281,6 +1191,25 @@ export class Deployments {
options);
}
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
+ * Resource Manager..
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginValidateAtTenantScope(deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ deploymentName,
+ parameters,
+ options
+ },
+ beginValidateAtTenantScopeOperationSpec,
+ options);
+ }
+
/**
* A template deployment that is currently running cannot be deleted. Deleting a template
* deployment removes the associated deployment operations. This is an asynchronous operation that
@@ -1315,7 +1244,7 @@ export class Deployments {
* @param [options] The optional parameters
* @returns Promise
*/
- beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
return this.client.sendLRORequest(
{
groupId,
@@ -1327,6 +1256,27 @@ export class Deployments {
options);
}
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
+ * Resource Manager..
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginValidateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.ScopedDeployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ groupId,
+ deploymentName,
+ parameters,
+ options
+ },
+ beginValidateAtManagementGroupScopeOperationSpec,
+ options);
+ }
+
/**
* A template deployment that is currently running cannot be deleted. Deleting a template
* deployment removes the associated deployment operations. This is an asynchronous operation that
@@ -1369,6 +1319,25 @@ export class Deployments {
options);
}
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
+ * Resource Manager..
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginValidateAtSubscriptionScope(deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ deploymentName,
+ parameters,
+ options
+ },
+ beginValidateAtSubscriptionScopeOperationSpec,
+ options);
+ }
+
/**
* Returns changes that will be made by the deployment if executed at the scope of the
* subscription.
@@ -1437,6 +1406,28 @@ export class Deployments {
options);
}
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure
+ * Resource Manager..
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The
+ * name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginValidate(resourceGroupName: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ deploymentName,
+ parameters,
+ options
+ },
+ beginValidateOperationSpec,
+ options);
+ }
+
/**
* Returns changes that will be made by the deployment if executed at the scope of the resource
* group.
@@ -1671,40 +1662,6 @@ const cancelAtScopeOperationSpec: msRest.OperationSpec = {
serializer
};
-const validateAtScopeOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
- urlParameters: [
- Parameters.scope,
- Parameters.deploymentName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Deployment,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- 400: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
- serializer
-};
-
const exportTemplateAtScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
@@ -1820,39 +1777,6 @@ const cancelAtTenantScopeOperationSpec: msRest.OperationSpec = {
serializer
};
-const validateAtTenantScopeOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "providers/Microsoft.Resources/deployments/{deploymentName}/validate",
- urlParameters: [
- Parameters.deploymentName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Deployment,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- 400: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
- serializer
-};
-
const exportTemplateAtTenantScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
@@ -1967,43 +1891,9 @@ const cancelAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
serializer
};
-const validateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
+const exportTemplateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
- path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
- urlParameters: [
- Parameters.groupId,
- Parameters.deploymentName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Deployment,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- 400: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
- serializer
-};
-
-const exportTemplateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
+ path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
urlParameters: [
Parameters.groupId,
Parameters.deploymentName
@@ -2119,40 +2009,6 @@ const cancelAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
serializer
};
-const validateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
- urlParameters: [
- Parameters.deploymentName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Deployment,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- 400: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
- serializer
-};
-
const exportTemplateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
@@ -2274,41 +2130,6 @@ const cancelOperationSpec: msRest.OperationSpec = {
serializer
};
-const validateOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
- urlParameters: [
- Parameters.resourceGroupName,
- Parameters.deploymentName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Deployment,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- 400: {
- bodyMapper: Mappers.DeploymentValidateResult
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
- serializer
-};
-
const exportTemplateOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
@@ -2447,6 +2268,41 @@ const beginCreateOrUpdateAtScopeOperationSpec: msRest.OperationSpec = {
serializer
};
+const beginValidateAtScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
+ urlParameters: [
+ Parameters.scope,
+ Parameters.deploymentName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.Deployment,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ 202: {},
+ 400: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginDeleteAtTenantScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
path: "providers/Microsoft.Resources/deployments/{deploymentName}",
@@ -2484,7 +2340,7 @@ const beginCreateOrUpdateAtTenantScopeOperationSpec: msRest.OperationSpec = {
requestBody: {
parameterPath: "parameters",
mapper: {
- ...Mappers.Deployment,
+ ...Mappers.ScopedDeployment,
required: true
}
},
@@ -2502,6 +2358,40 @@ const beginCreateOrUpdateAtTenantScopeOperationSpec: msRest.OperationSpec = {
serializer
};
+const beginValidateAtTenantScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "providers/Microsoft.Resources/deployments/{deploymentName}/validate",
+ urlParameters: [
+ Parameters.deploymentName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.ScopedDeployment,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ 202: {},
+ 400: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginDeleteAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
@@ -2541,7 +2431,7 @@ const beginCreateOrUpdateAtManagementGroupScopeOperationSpec: msRest.OperationSp
requestBody: {
parameterPath: "parameters",
mapper: {
- ...Mappers.Deployment,
+ ...Mappers.ScopedDeployment,
required: true
}
},
@@ -2559,6 +2449,41 @@ const beginCreateOrUpdateAtManagementGroupScopeOperationSpec: msRest.OperationSp
serializer
};
+const beginValidateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
+ urlParameters: [
+ Parameters.groupId,
+ Parameters.deploymentName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.ScopedDeployment,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ 202: {},
+ 400: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginDeleteAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
@@ -2616,6 +2541,41 @@ const beginCreateOrUpdateAtSubscriptionScopeOperationSpec: msRest.OperationSpec
serializer
};
+const beginValidateAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
+ urlParameters: [
+ Parameters.deploymentName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.Deployment,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ 202: {},
+ 400: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginWhatIfAtSubscriptionScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
@@ -2710,6 +2670,42 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
serializer
};
+const beginValidateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.deploymentName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.Deployment,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ 202: {},
+ 400: {
+ bodyMapper: Mappers.DeploymentValidateResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginWhatIfOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
diff --git a/sdk/resources/arm-resources/src/operations/index.ts b/sdk/resources/arm-resources/src/operations/index.ts
index 542b40b96c2d..a7cec76246cd 100644
--- a/sdk/resources/arm-resources/src/operations/index.ts
+++ b/sdk/resources/arm-resources/src/operations/index.ts
@@ -13,5 +13,5 @@ export * from "./deployments";
export * from "./providers";
export * from "./resources";
export * from "./resourceGroups";
-export * from "./tags";
+export * from "./tagsOperations";
export * from "./deploymentOperations";
diff --git a/sdk/resources/arm-resources/src/operations/resourceGroups.ts b/sdk/resources/arm-resources/src/operations/resourceGroups.ts
index 6411c09ca1ed..617190a57bc6 100644
--- a/sdk/resources/arm-resources/src/operations/resourceGroups.ts
+++ b/sdk/resources/arm-resources/src/operations/resourceGroups.ts
@@ -171,34 +171,14 @@ export class ResourceGroups {
/**
* Captures the specified resource group as a template.
- * @param resourceGroupName The name of the resource group to export as a template.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters Parameters for exporting the template.
* @param [options] The optional parameters
* @returns Promise
*/
- exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group to export as a template.
- * @param parameters Parameters for exporting the template.
- * @param callback The callback
- */
- exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group to export as a template.
- * @param parameters Parameters for exporting the template.
- * @param options The optional parameters
- * @param callback The callback
- */
- exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- parameters,
- options
- },
- exportTemplateOperationSpec,
- callback) as Promise;
+ exportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginExportTemplate(resourceGroupName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -243,6 +223,24 @@ export class ResourceGroups {
options);
}
+ /**
+ * Captures the specified resource group as a template.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters Parameters for exporting the template.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginExportTemplate(resourceGroupName: string, parameters: Models.ExportTemplateRequest, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ parameters,
+ options
+ },
+ beginExportTemplateOperationSpec,
+ options);
+ }
+
/**
* Gets all the resource groups for a subscription.
* @param nextPageLink The NextLink from the previous successful call to List operation.
@@ -386,29 +384,23 @@ const updateOperationSpec: msRest.OperationSpec = {
serializer
};
-const exportTemplateOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate",
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourcegroups",
urlParameters: [
- Parameters.resourceGroupName,
Parameters.subscriptionId
],
queryParameters: [
+ Parameters.filter,
+ Parameters.top,
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.ExportTemplateRequest,
- required: true
- }
- },
responses: {
200: {
- bodyMapper: Mappers.ResourceGroupExportResult
+ bodyMapper: Mappers.ResourceGroupListResult
},
default: {
bodyMapper: Mappers.CloudError
@@ -417,24 +409,22 @@ const exportTemplateOperationSpec: msRest.OperationSpec = {
serializer
};
-const listOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups",
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
urlParameters: [
+ Parameters.resourceGroupName,
Parameters.subscriptionId
],
queryParameters: [
- Parameters.filter,
- Parameters.top,
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
- 200: {
- bodyMapper: Mappers.ResourceGroupListResult
- },
+ 200: {},
+ 202: {},
default: {
bodyMapper: Mappers.CloudError
}
@@ -442,12 +432,12 @@ const listOperationSpec: msRest.OperationSpec = {
serializer
};
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
+const beginExportTemplateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate",
urlParameters: [
- Parameters.resourceGroupName,
- Parameters.subscriptionId
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
],
queryParameters: [
Parameters.apiVersion
@@ -455,8 +445,17 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
headerParameters: [
Parameters.acceptLanguage
],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.ExportTemplateRequest,
+ required: true
+ }
+ },
responses: {
- 200: {},
+ 200: {
+ bodyMapper: Mappers.ResourceGroupExportResult
+ },
202: {},
default: {
bodyMapper: Mappers.CloudError
diff --git a/sdk/resources/arm-resources/src/operations/tags.ts b/sdk/resources/arm-resources/src/operations/tagsOperations.ts
similarity index 51%
rename from sdk/resources/arm-resources/src/operations/tags.ts
rename to sdk/resources/arm-resources/src/operations/tagsOperations.ts
index ca365271243a..74aec7cd47e6 100644
--- a/sdk/resources/arm-resources/src/operations/tags.ts
+++ b/sdk/resources/arm-resources/src/operations/tagsOperations.ts
@@ -10,16 +10,16 @@
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
-import * as Mappers from "../models/tagsMappers";
+import * as Mappers from "../models/tagsOperationsMappers";
import * as Parameters from "../models/parameters";
import { ResourceManagementClientContext } from "../resourceManagementClientContext";
-/** Class representing a Tags. */
-export class Tags {
+/** Class representing a TagsOperations. */
+export class TagsOperations {
private readonly client: ResourceManagementClientContext;
/**
- * Create a Tags.
+ * Create a TagsOperations.
* @param {ResourceManagementClientContext} client Reference to the service client.
*/
constructor(client: ResourceManagementClientContext) {
@@ -27,7 +27,10 @@ export class Tags {
}
/**
- * Deletes a tag value.
+ * This operation allows deleting a value from the list of predefined values for an existing
+ * predefined tag name. The value being deleted must not be in use as a tag value for the given tag
+ * name for any resource.
+ * @summary Deletes a predefined tag value for a predefined tag name.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to delete.
* @param [options] The optional parameters
@@ -59,7 +62,9 @@ export class Tags {
}
/**
- * Creates a tag value. The name of the tag must already exist.
+ * This operation allows adding a value to the list of predefined values for an existing predefined
+ * tag name. A tag value can have a maximum of 256 characters.
+ * @summary Creates a predefined value for a predefined tag name.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to create.
* @param [options] The optional parameters
@@ -91,10 +96,11 @@ export class Tags {
}
/**
- * The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by
- * Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these
- * prefixes.
- * @summary Creates a tag in the subscription.
+ * This operation allows adding a name to the list of predefined tag names for the given
+ * subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names
+ * cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure',
+ * 'windows'.
+ * @summary Creates a predefined tag name.
* @param tagName The name of the tag to create.
* @param [options] The optional parameters
* @returns Promise
@@ -122,8 +128,10 @@ export class Tags {
}
/**
- * You must remove all values from a resource tag before you can delete it.
- * @summary Deletes a tag from the subscription.
+ * This operation allows deleting a name from the list of predefined tag names for the given
+ * subscription. The name being deleted must not be in use as a tag name for any resource. All
+ * predefined values for the given name must have already been deleted.
+ * @summary Deletes a predefined tag name.
* @param tagName The name of the tag.
* @param [options] The optional parameters
* @returns Promise
@@ -151,7 +159,11 @@ export class Tags {
}
/**
- * Gets the names and values of all resource tags that are defined in a subscription.
+ * This operation performs a union of predefined tags, resource tags, resource group tags and
+ * subscription tags, and returns a summary of usage for each tag name and value under the given
+ * subscription. In case of a large number of tags, this operation may return a previously cached
+ * result.
+ * @summary Gets a summary of tag usage under the subscription.
* @param [options] The optional parameters
* @returns Promise
*/
@@ -175,7 +187,138 @@ export class Tags {
}
/**
- * Gets the names and values of all resource tags that are defined in a subscription.
+ * This operation allows adding or replacing the entire set of tags on the specified resource or
+ * subscription. The specified entity can have a maximum of 50 tags.
+ * @summary Creates or updates the entire set of tags on a resource or subscription.
+ * @param scope The resource scope.
+ * @param parameters
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param scope The resource scope.
+ * @param parameters
+ * @param callback The callback
+ */
+ createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, callback: msRest.ServiceCallback): void;
+ /**
+ * @param scope The resource scope.
+ * @param parameters
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ createOrUpdateAtScope(scope: string, parameters: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ scope,
+ parameters,
+ options
+ },
+ createOrUpdateAtScopeOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This operation allows replacing, merging or selectively deleting tags on the specified resource
+ * or subscription. The specified entity can have a maximum of 50 tags at the end of the operation.
+ * The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option
+ * allows adding tags with new names and updating the values of tags with existing names. The
+ * 'delete' option allows selectively deleting tags based on given names or name/value pairs.
+ * @summary Selectively updates the set of tags on a resource or subscription.
+ * @param scope The resource scope.
+ * @param parameters
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ updateAtScope(scope: string, parameters: Models.TagsPatchResource, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param scope The resource scope.
+ * @param parameters
+ * @param callback The callback
+ */
+ updateAtScope(scope: string, parameters: Models.TagsPatchResource, callback: msRest.ServiceCallback): void;
+ /**
+ * @param scope The resource scope.
+ * @param parameters
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ updateAtScope(scope: string, parameters: Models.TagsPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ updateAtScope(scope: string, parameters: Models.TagsPatchResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ scope,
+ parameters,
+ options
+ },
+ updateAtScopeOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Gets the entire set of tags on a resource or subscription.
+ * @param scope The resource scope.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getAtScope(scope: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param scope The resource scope.
+ * @param callback The callback
+ */
+ getAtScope(scope: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param scope The resource scope.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getAtScope(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getAtScope(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ scope,
+ options
+ },
+ getAtScopeOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Deletes the entire set of tags on a resource or subscription.
+ * @param scope The resource scope.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteAtScope(scope: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param scope The resource scope.
+ * @param callback The callback
+ */
+ deleteAtScope(scope: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param scope The resource scope.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ deleteAtScope(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ deleteAtScope(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ scope,
+ options
+ },
+ deleteAtScopeOperationSpec,
+ callback);
+ }
+
+ /**
+ * This operation performs a union of predefined tags, resource tags, resource group tags and
+ * subscription tags, and returns a summary of usage for each tag name and value under the given
+ * subscription. In case of a large number of tags, this operation may return a previously cached
+ * result.
+ * @summary Gets a summary of tag usage under the subscription.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise
@@ -330,6 +473,110 @@ const listOperationSpec: msRest.OperationSpec = {
serializer
};
+const createOrUpdateAtScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{scope}/providers/Microsoft.Resources/tags/default",
+ urlParameters: [
+ Parameters.scope
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.TagsResource,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.TagsResource
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const updateAtScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "{scope}/providers/Microsoft.Resources/tags/default",
+ urlParameters: [
+ Parameters.scope
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.TagsPatchResource,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.TagsResource
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getAtScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "{scope}/providers/Microsoft.Resources/tags/default",
+ urlParameters: [
+ Parameters.scope
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.TagsResource
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const deleteAtScopeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "{scope}/providers/Microsoft.Resources/tags/default",
+ urlParameters: [
+ Parameters.scope
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const listNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
diff --git a/sdk/resources/arm-resources/src/resourceManagementClient.ts b/sdk/resources/arm-resources/src/resourceManagementClient.ts
index b712764c2a93..535cd08e4b20 100644
--- a/sdk/resources/arm-resources/src/resourceManagementClient.ts
+++ b/sdk/resources/arm-resources/src/resourceManagementClient.ts
@@ -22,7 +22,7 @@ class ResourceManagementClient extends ResourceManagementClientContext {
providers: operations.Providers;
resources: operations.Resources;
resourceGroups: operations.ResourceGroups;
- tags: operations.Tags;
+ tags: operations.TagsOperations;
deploymentOperations: operations.DeploymentOperations;
/**
@@ -38,7 +38,7 @@ class ResourceManagementClient extends ResourceManagementClientContext {
this.providers = new operations.Providers(this);
this.resources = new operations.Resources(this);
this.resourceGroups = new operations.ResourceGroups(this);
- this.tags = new operations.Tags(this);
+ this.tags = new operations.TagsOperations(this);
this.deploymentOperations = new operations.DeploymentOperations(this);
}
}
diff --git a/sdk/resources/arm-resources/src/resourceManagementClientContext.ts b/sdk/resources/arm-resources/src/resourceManagementClientContext.ts
index 1dc03c3fa11f..8d25af9bb00c 100644
--- a/sdk/resources/arm-resources/src/resourceManagementClientContext.ts
+++ b/sdk/resources/arm-resources/src/resourceManagementClientContext.ts
@@ -44,7 +44,7 @@ export class ResourceManagementClientContext extends msRestAzure.AzureServiceCli
super(credentials, options);
- this.apiVersion = '2019-07-01';
+ this.apiVersion = '2019-10-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";