From e33f93d56b355c857e044be1576bc3a3986e66eb Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 24 May 2019 00:57:58 +0000 Subject: [PATCH] Generated from 7829634b0c185fae330d644d3dbdd139c2eeb9d2 Merge remote-tracking branch 'origin/master' into tiano-mg-deployment # Conflicts: # specification/resources/resource-manager/readme.md --- sdk/features/arm-features/LICENSE.txt | 2 +- sdk/features/arm-features/README.md | 3 - sdk/features/arm-features/package.json | 8 +- .../src/models/featuresMappers.ts | 11 +- sdk/features/arm-features/src/models/index.ts | 71 +- .../arm-features/src/models/mappers.ts | 6 +- sdk/links/arm-links/LICENSE.txt | 2 +- sdk/links/arm-links/README.md | 3 - sdk/links/arm-links/package.json | 8 +- sdk/links/arm-links/src/models/index.ts | 117 +- sdk/links/arm-links/src/models/mappers.ts | 6 +- .../arm-links/src/models/operationsMappers.ts | 11 +- .../src/models/resourceLinksMappers.ts | 9 +- sdk/locks/arm-locks/LICENSE.txt | 2 +- sdk/locks/arm-locks/README.md | 3 - sdk/locks/arm-locks/package.json | 8 +- .../models/authorizationOperationsMappers.ts | 11 +- sdk/locks/arm-locks/src/models/index.ts | 168 +-- .../src/models/managementLocksMappers.ts | 13 +- sdk/locks/arm-locks/src/models/mappers.ts | 6 +- .../src/operations/managementLocks.ts | 113 ++ .../arm-managedapplications/LICENSE.txt | 2 +- .../arm-managedapplications/README.md | 3 - .../arm-managedapplications/package.json | 8 +- .../src/models/applianceDefinitionsMappers.ts | 27 +- .../src/models/appliancesMappers.ts | 25 +- .../src/models/index.ts | 310 ++--- .../src/models/mappers.ts | 6 +- sdk/policy/arm-policy/LICENSE.txt | 2 +- sdk/policy/arm-policy/README.md | 3 - sdk/policy/arm-policy/package.json | 8 +- sdk/policy/arm-policy/src/models/index.ts | 258 ++-- sdk/policy/arm-policy/src/models/mappers.ts | 6 +- .../src/models/policyAssignmentsMappers.ts | 15 +- .../src/models/policyDefinitionsMappers.ts | 17 +- .../src/models/policySetDefinitionsMappers.ts | 19 +- sdk/resources/arm-resources/LICENSE.txt | 2 +- sdk/resources/arm-resources/README.md | 3 - sdk/resources/arm-resources/package.json | 8 +- .../src/models/deploymentOperationsMappers.ts | 13 +- .../src/models/deploymentsMappers.ts | 53 +- .../arm-resources/src/models/index.ts | 1191 +++++++++-------- .../arm-resources/src/models/mappers.ts | 33 +- .../src/models/operationsMappers.ts | 11 +- .../arm-resources/src/models/parameters.ts | 14 + .../src/models/providersMappers.ts | 15 +- .../src/models/resourceGroupsMappers.ts | 53 +- .../src/models/resourcesMappers.ts | 43 +- .../arm-resources/src/models/tagsMappers.ts | 45 +- .../src/operations/deploymentOperations.ts | 179 ++- .../src/operations/deployments.ts | 590 +++++++- .../src/resourceManagementClientContext.ts | 2 +- 52 files changed, 2078 insertions(+), 1467 deletions(-) diff --git a/sdk/features/arm-features/LICENSE.txt b/sdk/features/arm-features/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/features/arm-features/LICENSE.txt +++ b/sdk/features/arm-features/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/features/arm-features/README.md b/sdk/features/arm-features/README.md index 09771d8792b5..1fe7592c8455 100644 --- a/sdk/features/arm-features/README.md +++ b/sdk/features/arm-features/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/features/arm-features/README.png) diff --git a/sdk/features/arm-features/package.json b/sdk/features/arm-features/package.json index bfef921551a3..08342ea67fe6 100644 --- a/sdk/features/arm-features/package.json +++ b/sdk/features/arm-features/package.json @@ -4,8 +4,8 @@ "description": "FeatureClient Library with typescript type definitions for node.js and browser.", "version": "1.0.2", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/features/arm-features", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/features/arm-features/src/models/featuresMappers.ts b/sdk/features/arm-features/src/models/featuresMappers.ts index f76e186d07a8..ba6a46b5b7e9 100644 --- a/sdk/features/arm-features/src/models/featuresMappers.ts +++ b/sdk/features/arm-features/src/models/featuresMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + CloudError, FeatureOperationsListResult, - FeatureResult, FeatureProperties, - CloudError + FeatureResult } from "../models/mappers"; - diff --git a/sdk/features/arm-features/src/models/index.ts b/sdk/features/arm-features/src/models/index.ts index 04d449028a0f..32c8ff5b37f0 100644 --- a/sdk/features/arm-features/src/models/index.ts +++ b/sdk/features/arm-features/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,127 +11,98 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing FeatureProperties. * Information about feature. - * */ export interface FeatureProperties { /** - * @member {string} [state] The registration state of the feature for the - * subscription. + * The registration state of the feature for the subscription. */ state?: string; } /** - * @interface - * An interface representing FeatureResult. * Previewed feature information. - * */ export interface FeatureResult { /** - * @member {string} [name] The name of the feature. + * The name of the feature. */ name?: string; /** - * @member {FeatureProperties} [properties] Properties of the previewed - * feature. + * Properties of the previewed feature. */ properties?: FeatureProperties; /** - * @member {string} [id] The resource ID of the feature. + * The resource ID of the feature. */ id?: string; /** - * @member {string} [type] The resource type of the feature. + * The resource type of the feature. */ type?: string; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Features + * Service provider: Microsoft.Features */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * Microsoft.Features operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface * An interface representing FeatureClientOptions. - * @extends AzureServiceClientOptions */ export interface FeatureClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Microsoft.Features operations. It contains a - * list of operations and a URL link to get the next set of results. - * + * Result of the request to list Microsoft.Features operations. It contains a list of operations + * and a URL link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the FeatureOperationsListResult. * List of previewed features. - * * @extends Array */ export interface FeatureOperationsListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } @@ -150,6 +119,7 @@ export type ListOperationsResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -169,6 +139,7 @@ export type ListOperationsNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -188,6 +159,7 @@ export type FeaturesListAllResponse = FeatureOperationsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -207,6 +179,7 @@ export type FeaturesListResponse = FeatureOperationsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -226,6 +199,7 @@ export type FeaturesGetResponse = FeatureResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -245,6 +219,7 @@ export type FeaturesRegisterResponse = FeatureResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -264,6 +239,7 @@ export type FeaturesListAllNextResponse = FeatureOperationsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -283,6 +259,7 @@ export type FeaturesListNextResponse = FeatureOperationsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/features/arm-features/src/models/mappers.ts b/sdk/features/arm-features/src/models/mappers.ts index 35dbbfa8e87d..98e5d389930c 100644 --- a/sdk/features/arm-features/src/models/mappers.ts +++ b/sdk/features/arm-features/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/links/arm-links/LICENSE.txt b/sdk/links/arm-links/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/links/arm-links/LICENSE.txt +++ b/sdk/links/arm-links/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/links/arm-links/README.md b/sdk/links/arm-links/README.md index 24f09f9ef99e..682c0831ae0a 100644 --- a/sdk/links/arm-links/README.md +++ b/sdk/links/arm-links/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/links/arm-links/README.png) diff --git a/sdk/links/arm-links/package.json b/sdk/links/arm-links/package.json index 5ba0129a0ff8..ba4864ac6211 100644 --- a/sdk/links/arm-links/package.json +++ b/sdk/links/arm-links/package.json @@ -4,8 +4,8 @@ "description": "ManagementLinkClient Library with typescript type definitions for node.js and browser.", "version": "1.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/links/arm-links", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/links/arm-links/src/models/index.ts b/sdk/links/arm-links/src/models/index.ts index 33b29d83ae8a..74fd365235e5 100644 --- a/sdk/links/arm-links/src/models/index.ts +++ b/sdk/links/arm-links/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,196 +11,147 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ResourceLinkFilter. * Resource link filter. - * */ export interface ResourceLinkFilter { /** - * @member {string} targetId The ID of the target resource. + * The ID of the target resource. */ targetId: string; } /** - * @interface - * An interface representing ResourceLinkProperties. * The resource link properties. - * */ export interface ResourceLinkProperties { /** - * @member {string} [sourceId] The fully qualified ID of the source resource - * in the link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The fully qualified ID of the source resource in the link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sourceId?: string; /** - * @member {string} targetId The fully qualified ID of the target resource in - * the link. + * The fully qualified ID of the target resource in the link. */ targetId: string; /** - * @member {string} [notes] Notes about the resource link. + * Notes about the resource link. */ notes?: string; } /** - * @interface - * An interface representing ResourceLink. * The resource link. - * - * @extends BaseResource */ export interface ResourceLink extends BaseResource { /** - * @member {string} [id] The fully qualified ID of the resource link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The fully qualified ID of the resource link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the resource link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {any} [type] The resource link object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource link object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: any; /** - * @member {ResourceLinkProperties} [properties] Properties for resource - * link. + * Properties for resource link. */ properties?: ResourceLinkProperties; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Resources + * Service provider: Microsoft.Resources */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; /** - * @member {string} [description] Description of the operation. + * Description of the operation. */ description?: string; } /** - * @interface - * An interface representing Operation. * Microsoft.Resources operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing ResourceLinksListAtSubscriptionOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ResourceLinksListAtSubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the list resource links - * operation. The supported filter for list resource links is targetId. For - * example, $filter=targetId eq {value} + * The filter to apply on the list resource links operation. The supported filter for list + * resource links is targetId. For example, $filter=targetId eq {value} */ filter?: string; } /** - * @interface - * An interface representing ResourceLinksListAtSourceScopeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ResourceLinksListAtSourceScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply when getting resource links. - * To get links only at the specified scope (not below the scope), use - * Filter.atScope(). + * The filter to apply when getting resource links. To get links only at the specified scope (not + * below the scope), use Filter.atScope(). */ filter?: string; } /** - * @interface * An interface representing ManagementLinkClientOptions. - * @extends AzureServiceClientOptions */ export interface ManagementLinkClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Microsoft.Resources operations. It contains a - * list of operations and a URL link to get the next set of results. - * + * Result of the request to list Microsoft.Resources operations. It contains a list of operations + * and a URL link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the ResourceLinkResult. * List of resource links. - * * @extends Array */ export interface ResourceLinkResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } @@ -227,6 +176,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -246,6 +196,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -265,6 +216,7 @@ export type ResourceLinksCreateOrUpdateResponse = ResourceLink & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -284,6 +236,7 @@ export type ResourceLinksGetResponse = ResourceLink & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -303,6 +256,7 @@ export type ResourceLinksListAtSubscriptionResponse = ResourceLinkResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -322,6 +276,7 @@ export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -341,6 +296,7 @@ export type ResourceLinksListAtSubscriptionNextResponse = ResourceLinkResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -360,6 +316,7 @@ export type ResourceLinksListAtSourceScopeNextResponse = ResourceLinkResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/links/arm-links/src/models/mappers.ts b/sdk/links/arm-links/src/models/mappers.ts index 9a0f575dbc9c..06f26097fb37 100644 --- a/sdk/links/arm-links/src/models/mappers.ts +++ b/sdk/links/arm-links/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/links/arm-links/src/models/operationsMappers.ts b/sdk/links/arm-links/src/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/links/arm-links/src/models/operationsMappers.ts +++ b/sdk/links/arm-links/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/links/arm-links/src/models/resourceLinksMappers.ts b/sdk/links/arm-links/src/models/resourceLinksMappers.ts index aac3c16eb59c..aab3f2958219 100644 --- a/sdk/links/arm-links/src/models/resourceLinksMappers.ts +++ b/sdk/links/arm-links/src/models/resourceLinksMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + BaseResource, CloudError, ResourceLink, - BaseResource, ResourceLinkProperties, ResourceLinkResult } from "../models/mappers"; - diff --git a/sdk/locks/arm-locks/LICENSE.txt b/sdk/locks/arm-locks/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/locks/arm-locks/LICENSE.txt +++ b/sdk/locks/arm-locks/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/locks/arm-locks/README.md b/sdk/locks/arm-locks/README.md index 82ce52dc51a9..9b89dc369484 100644 --- a/sdk/locks/arm-locks/README.md +++ b/sdk/locks/arm-locks/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/locks/arm-locks/README.png) diff --git a/sdk/locks/arm-locks/package.json b/sdk/locks/arm-locks/package.json index 4773c1f419ee..077f45f72289 100644 --- a/sdk/locks/arm-locks/package.json +++ b/sdk/locks/arm-locks/package.json @@ -4,8 +4,8 @@ "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", "version": "1.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/locks/arm-locks", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/locks/arm-locks/src/models/authorizationOperationsMappers.ts b/sdk/locks/arm-locks/src/models/authorizationOperationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/locks/arm-locks/src/models/authorizationOperationsMappers.ts +++ b/sdk/locks/arm-locks/src/models/authorizationOperationsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/locks/arm-locks/src/models/index.ts b/sdk/locks/arm-locks/src/models/index.ts index 79ff75b4b957..cb1a27b7a18b 100644 --- a/sdk/locks/arm-locks/src/models/index.ts +++ b/sdk/locks/arm-locks/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,188 +11,152 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ManagementLockOwner. * Lock owner properties. - * */ export interface ManagementLockOwner { /** - * @member {string} [applicationId] The application ID of the lock owner. + * The application ID of the lock owner. */ applicationId?: string; } /** - * @interface - * An interface representing ManagementLockObject. * The lock information. - * - * @extends BaseResource */ export interface ManagementLockObject extends BaseResource { /** - * @member {LockLevel} level The level of the lock. Possible values are: - * NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users - * are able to read and modify the resources, but not delete. ReadOnly means - * authorized users can only read from a resource, but they can't modify or - * delete it. Possible values include: 'NotSpecified', 'CanNotDelete', - * 'ReadOnly' + * The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete + * means authorized users are able to read and modify the resources, but not delete. ReadOnly + * means authorized users can only read from a resource, but they can't modify or delete it. + * Possible values include: 'NotSpecified', 'CanNotDelete', 'ReadOnly' */ level: LockLevel; /** - * @member {string} [notes] Notes about the lock. Maximum of 512 characters. + * Notes about the lock. Maximum of 512 characters. */ notes?: string; /** - * @member {ManagementLockOwner[]} [owners] The owners of the lock. + * The owners of the lock. */ owners?: ManagementLockOwner[]; /** - * @member {string} [id] The resource ID of the lock. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource ID of the lock. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [type] The resource type of the lock - - * Microsoft.Authorization/locks. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource type of the lock - Microsoft.Authorization/locks. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [name] The name of the lock. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the lock. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Authorization + * Service provider: Microsoft.Authorization */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * Microsoft.Authorization operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing ManagementLocksListAtResourceGroupLevelOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ManagementLocksListAtResourceGroupLevelOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. + * The filter to apply on the operation. */ filter?: string; } /** - * @interface - * An interface representing ManagementLocksListAtResourceLevelOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ManagementLocksListAtResourceLevelOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. + * The filter to apply on the operation. */ filter?: string; } /** - * @interface - * An interface representing ManagementLocksListAtSubscriptionLevelOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ManagementLocksListAtSubscriptionLevelOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. + * The filter to apply on the operation. */ filter?: string; } /** - * @interface - * An interface representing ManagementLockClientOptions. - * @extends AzureServiceClientOptions + * Optional Parameters. */ -export interface ManagementLockClientOptions extends AzureServiceClientOptions { +export interface ManagementLocksListByScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [baseUri] + * The filter to apply on the operation. */ - baseUri?: string; + filter?: string; } +/** + * An interface representing ManagementLockClientOptions. + */ +export interface ManagementLockClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Microsoft.Authorization operations. It - * contains a list of operations and a URL link to get the next set of results. - * + * Result of the request to list Microsoft.Authorization operations. It contains a list of + * operations and a URL link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the ManagementLockListResult. * The list of locks. - * * @extends Array */ export interface ManagementLockListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } @@ -219,6 +181,7 @@ export type AuthorizationOperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -238,6 +201,7 @@ export type AuthorizationOperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -257,6 +221,7 @@ export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = Manageme * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -276,6 +241,7 @@ export type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObjec * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -295,6 +261,7 @@ export type ManagementLocksCreateOrUpdateByScopeResponse = ManagementLockObject * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -314,6 +281,7 @@ export type ManagementLocksGetByScopeResponse = ManagementLockObject & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -333,6 +301,7 @@ export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLoc * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -352,6 +321,7 @@ export type ManagementLocksGetAtResourceLevelResponse = ManagementLockObject & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -371,6 +341,7 @@ export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = Managemen * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -390,6 +361,7 @@ export type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -409,6 +381,7 @@ export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -428,6 +401,7 @@ export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -447,6 +421,27 @@ export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListR * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagementLockListResult; + }; +}; + +/** + * Contains response data for the listByScope operation. + */ +export type ManagementLocksListByScopeResponse = ManagementLockListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -466,6 +461,7 @@ export type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLock * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -485,6 +481,7 @@ export type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -504,6 +501,27 @@ export type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockL * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagementLockListResult; + }; +}; + +/** + * Contains response data for the listByScopeNext operation. + */ +export type ManagementLocksListByScopeNextResponse = ManagementLockListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/locks/arm-locks/src/models/managementLocksMappers.ts b/sdk/locks/arm-locks/src/models/managementLocksMappers.ts index 0eca319827a3..829964b3158a 100644 --- a/sdk/locks/arm-locks/src/models/managementLocksMappers.ts +++ b/sdk/locks/arm-locks/src/models/managementLocksMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ManagementLockObject, BaseResource, - ManagementLockOwner, CloudError, - ManagementLockListResult + ManagementLockListResult, + ManagementLockObject, + ManagementLockOwner } from "../models/mappers"; - diff --git a/sdk/locks/arm-locks/src/models/mappers.ts b/sdk/locks/arm-locks/src/models/mappers.ts index 3ddcaac9c22a..6a0539a576e5 100644 --- a/sdk/locks/arm-locks/src/models/mappers.ts +++ b/sdk/locks/arm-locks/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/locks/arm-locks/src/operations/managementLocks.ts b/sdk/locks/arm-locks/src/operations/managementLocks.ts index 86e3046d5942..d6f3a7b68d01 100644 --- a/sdk/locks/arm-locks/src/operations/managementLocks.ts +++ b/sdk/locks/arm-locks/src/operations/managementLocks.ts @@ -610,6 +610,46 @@ export class ManagementLocks { callback) as Promise; } + /** + * Gets all the management locks for a scope. + * @param scope The scope for the lock. When providing a scope for the assignment, use + * '/subscriptions/{subscriptionId}' for subscriptions, + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + * for resources. + * @param [options] The optional parameters + * @returns Promise + */ + listByScope(scope: string, options?: Models.ManagementLocksListByScopeOptionalParams): Promise; + /** + * @param scope The scope for the lock. When providing a scope for the assignment, use + * '/subscriptions/{subscriptionId}' for subscriptions, + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + * for resources. + * @param callback The callback + */ + listByScope(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope The scope for the lock. When providing a scope for the assignment, use + * '/subscriptions/{subscriptionId}' for subscriptions, + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + * for resources. + * @param options The optional parameters + * @param callback The callback + */ + listByScope(scope: string, options: Models.ManagementLocksListByScopeOptionalParams, callback: msRest.ServiceCallback): void; + listByScope(scope: string, options?: Models.ManagementLocksListByScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listByScopeOperationSpec, + callback) as Promise; + } + /** * Gets all the management locks for a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -693,6 +733,34 @@ export class ManagementLocks { listAtSubscriptionLevelNextOperationSpec, callback) as Promise; } + + /** + * Gets all the management locks for a scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByScopeNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -1117,6 +1185,30 @@ const listAtSubscriptionLevelOperationSpec: msRest.OperationSpec = { serializer }; +const listByScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Authorization/locks", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagementLockListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listAtResourceGroupLevelNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -1179,3 +1271,24 @@ const listAtSubscriptionLevelNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagementLockListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/managedapplications/arm-managedapplications/LICENSE.txt b/sdk/managedapplications/arm-managedapplications/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/managedapplications/arm-managedapplications/LICENSE.txt +++ b/sdk/managedapplications/arm-managedapplications/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/managedapplications/arm-managedapplications/README.md b/sdk/managedapplications/arm-managedapplications/README.md index fd9f4fca6a14..51902ef95b93 100644 --- a/sdk/managedapplications/arm-managedapplications/README.md +++ b/sdk/managedapplications/arm-managedapplications/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/managedapplications/arm-managedapplications/README.png) diff --git a/sdk/managedapplications/arm-managedapplications/package.json b/sdk/managedapplications/arm-managedapplications/package.json index a9328e006c4f..5274fa81f324 100644 --- a/sdk/managedapplications/arm-managedapplications/package.json +++ b/sdk/managedapplications/arm-managedapplications/package.json @@ -4,8 +4,8 @@ "description": "ManagedApplicationClient Library with typescript type definitions for node.js and browser.", "version": "1.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/managedapplications/arm-managedapplications", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/managedapplications/arm-managedapplications/src/models/applianceDefinitionsMappers.ts b/sdk/managedapplications/arm-managedapplications/src/models/applianceDefinitionsMappers.ts index b4ed010e811d..bf65dc418a3c 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/applianceDefinitionsMappers.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/applianceDefinitionsMappers.ts @@ -1,27 +1,24 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Appliance, + ApplianceArtifact, ApplianceDefinition, - GenericResource, - Resource, - BaseResource, - Sku, - Identity, + ApplianceDefinitionListResult, + AppliancePatchable, ApplianceProviderAuthorization, - ApplianceArtifact, + BaseResource, ErrorResponse, - ApplianceDefinitionListResult, - Appliance, + GenericResource, + Identity, Plan, - AppliancePatchable, - PlanPatchable + PlanPatchable, + Resource, + Sku } from "../models/mappers"; - diff --git a/sdk/managedapplications/arm-managedapplications/src/models/appliancesMappers.ts b/sdk/managedapplications/arm-managedapplications/src/models/appliancesMappers.ts index 7d476792ff5b..d4d39be5ada8 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/appliancesMappers.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/appliancesMappers.ts @@ -1,27 +1,24 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { Appliance, - GenericResource, - Resource, + ApplianceArtifact, + ApplianceDefinition, + ApplianceListResult, + AppliancePatchable, + ApplianceProviderAuthorization, BaseResource, - Sku, + ErrorResponse, + GenericResource, Identity, Plan, - ErrorResponse, - ApplianceListResult, - AppliancePatchable, PlanPatchable, - ApplianceDefinition, - ApplianceProviderAuthorization, - ApplianceArtifact + Resource, + Sku } from "../models/mappers"; - diff --git a/sdk/managedapplications/arm-managedapplications/src/models/index.ts b/sdk/managedapplications/arm-managedapplications/src/models/index.ts index 7b379365d48a..28e979a00944 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/index.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,522 +11,416 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Plan. * Plan for the appliance. - * */ export interface Plan { /** - * @member {string} name The plan name. + * The plan name. */ name: string; /** - * @member {string} publisher The publisher ID. + * The publisher ID. */ publisher: string; /** - * @member {string} product The product code. + * The product code. */ product: string; /** - * @member {string} [promotionCode] The promotion code. + * The promotion code. */ promotionCode?: string; /** - * @member {string} version The plan's version. + * The plan's version. */ version: string; } /** - * @interface - * An interface representing Resource. * Resource information. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource ID - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing GenericResource. * Resource information. - * - * @extends Resource */ export interface GenericResource extends Resource { /** - * @member {string} [managedBy] ID of the resource that manages this - * resource. + * ID of the resource that manages this resource. */ managedBy?: string; /** - * @member {Sku} [sku] The SKU of the resource. + * The SKU of the resource. */ sku?: Sku; /** - * @member {Identity} [identity] The identity of the resource. + * The identity of the resource. */ identity?: Identity; } /** - * @interface - * An interface representing Appliance. * Information about appliance. - * - * @extends GenericResource */ export interface Appliance extends GenericResource { /** - * @member {string} managedResourceGroupId The managed resource group Id. + * The managed resource group Id. */ managedResourceGroupId: string; /** - * @member {string} [applianceDefinitionId] The fully qualified path of - * appliance definition Id. + * The fully qualified path of appliance definition Id. */ applianceDefinitionId?: string; /** - * @member {any} [parameters] Name and value pairs that define the appliance - * parameters. It can be a JObject or a well formed JSON string. + * Name and value pairs that define the appliance parameters. It can be a JObject or a well + * formed JSON string. */ parameters?: any; /** - * @member {any} [outputs] Name and value pairs that define the appliance - * outputs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name and value pairs that define the appliance outputs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly outputs?: any; /** - * @member {ProvisioningState} [provisioningState] The appliance provisioning - * state. Possible values include: 'Accepted', 'Running', 'Ready', - * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', - * 'Succeeded', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The appliance provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', + * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [uiDefinitionUri] The blob URI where the UI definition - * file is located. + * The blob URI where the UI definition file is located. */ uiDefinitionUri?: string; /** - * @member {Plan} [plan] The plan information. + * The plan information. */ plan?: Plan; /** - * @member {string} [kind] The kind of the appliance. Allowed values are - * MarketPlace and ServiceCatalog. + * The kind of the appliance. Allowed values are MarketPlace and ServiceCatalog. */ kind?: string; } /** - * @interface - * An interface representing PlanPatchable. * Plan for the appliance. - * */ export interface PlanPatchable { /** - * @member {string} [name] The plan name. + * The plan name. */ name?: string; /** - * @member {string} [publisher] The publisher ID. + * The publisher ID. */ publisher?: string; /** - * @member {string} [product] The product code. + * The product code. */ product?: string; /** - * @member {string} [promotionCode] The promotion code. + * The promotion code. */ promotionCode?: string; /** - * @member {string} [version] The plan's version. + * The plan's version. */ version?: string; } /** - * @interface - * An interface representing AppliancePatchable. * Information about appliance. - * - * @extends GenericResource */ export interface AppliancePatchable extends GenericResource { /** - * @member {string} [managedResourceGroupId] The managed resource group Id. + * The managed resource group Id. */ managedResourceGroupId?: string; /** - * @member {string} [applianceDefinitionId] The fully qualified path of - * appliance definition Id. + * The fully qualified path of appliance definition Id. */ applianceDefinitionId?: string; /** - * @member {any} [parameters] Name and value pairs that define the appliance - * parameters. It can be a JObject or a well formed JSON string. + * Name and value pairs that define the appliance parameters. It can be a JObject or a well + * formed JSON string. */ parameters?: any; /** - * @member {any} [outputs] Name and value pairs that define the appliance - * outputs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name and value pairs that define the appliance outputs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly outputs?: any; /** - * @member {ProvisioningState} [provisioningState] The appliance provisioning - * state. Possible values include: 'Accepted', 'Running', 'Ready', - * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', - * 'Succeeded', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The appliance provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', + * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [uiDefinitionUri] The blob URI where the UI definition - * file is located. + * The blob URI where the UI definition file is located. */ uiDefinitionUri?: string; /** - * @member {PlanPatchable} [plan] The plan information. + * The plan information. */ plan?: PlanPatchable; /** - * @member {string} [kind] The kind of the appliance. Allowed values are - * MarketPlace and ServiceCatalog. + * The kind of the appliance. Allowed values are MarketPlace and ServiceCatalog. */ kind?: string; } /** - * @interface - * An interface representing ApplianceProviderAuthorization. * The appliance provider authorization. - * */ export interface ApplianceProviderAuthorization { /** - * @member {string} principalId The provider's principal identifier. This is - * the identity that the provider will use to call ARM to manage the - * appliance resources. + * The provider's principal identifier. This is the identity that the provider will use to call + * ARM to manage the appliance resources. */ principalId: string; /** - * @member {string} roleDefinitionId The provider's role definition - * identifier. This role will define all the permissions that the provider - * must have on the appliance's container resource group. This role - * definition cannot have permission to delete the resource group. + * The provider's role definition identifier. This role will define all the permissions that the + * provider must have on the appliance's container resource group. This role definition cannot + * have permission to delete the resource group. */ roleDefinitionId: string; } /** - * @interface - * An interface representing ApplianceArtifact. * Appliance artifact. - * */ export interface ApplianceArtifact { /** - * @member {string} [name] The appliance artifact name. + * The appliance artifact name. */ name?: string; /** - * @member {string} [uri] The appliance artifact blob uri. + * The appliance artifact blob uri. */ uri?: string; /** - * @member {ApplianceArtifactType} [type] The the appliance artifact type. - * Possible values include: 'Template', 'Custom' + * The the appliance artifact type. Possible values include: 'Template', 'Custom' */ type?: ApplianceArtifactType; } /** - * @interface - * An interface representing ApplianceDefinition. * Information about appliance definition. - * - * @extends GenericResource */ export interface ApplianceDefinition extends GenericResource { /** - * @member {ApplianceLockLevel} lockLevel The appliance lock level. Possible - * values include: 'CanNotDelete', 'ReadOnly', 'None' + * The appliance lock level. Possible values include: 'CanNotDelete', 'ReadOnly', 'None' */ lockLevel: ApplianceLockLevel; /** - * @member {string} [displayName] The appliance definition display name. + * The appliance definition display name. */ displayName?: string; /** - * @member {ApplianceProviderAuthorization[]} authorizations The appliance - * provider authorizations. + * The appliance provider authorizations. */ authorizations: ApplianceProviderAuthorization[]; /** - * @member {ApplianceArtifact[]} [artifacts] The collection of appliance - * artifacts. The portal will use the files specified as artifacts to - * construct the user experience of creating an appliance from an appliance - * definition. + * The collection of appliance artifacts. The portal will use the files specified as artifacts to + * construct the user experience of creating an appliance from an appliance definition. */ artifacts?: ApplianceArtifact[]; /** - * @member {string} [description] The appliance definition description. + * The appliance definition description. */ description?: string; /** - * @member {string} packageFileUri The appliance definition package file Uri. + * The appliance definition package file Uri. */ packageFileUri: string; } /** - * @interface - * An interface representing Sku. * SKU for the resource. - * */ export interface Sku { /** - * @member {string} name The SKU name. + * The SKU name. */ name: string; /** - * @member {string} [tier] The SKU tier. + * The SKU tier. */ tier?: string; /** - * @member {string} [size] The SKU size. + * The SKU size. */ size?: string; /** - * @member {string} [family] The SKU family. + * The SKU family. */ family?: string; /** - * @member {string} [model] The SKU model. + * The SKU model. */ model?: string; /** - * @member {number} [capacity] The SKU capacity. + * The SKU capacity. */ capacity?: number; } /** - * @interface - * An interface representing Identity. * Identity for the resource. - * */ export interface Identity { /** - * @member {string} [principalId] The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [tenantId] The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {ResourceIdentityType} [type] The identity type. Possible values - * include: 'SystemAssigned' + * The identity type. Possible values include: 'SystemAssigned' */ type?: ResourceIdentityType; } /** - * @interface - * An interface representing ErrorResponse. - * Error response indicates ARM appliance is not able to process the incoming - * request. The reason is provided in the error message. - * + * Error response indicates ARM appliance is not able to process the incoming request. The reason + * is provided in the error message. */ export interface ErrorResponse { /** - * @member {string} [httpStatus] Http status code. + * Http status code. */ httpStatus?: string; /** - * @member {string} [errorCode] Error code. + * Error code. */ errorCode?: string; /** - * @member {string} [errorMessage] Error message indicating why the operation - * failed. + * Error message indicating why the operation failed. */ errorMessage?: string; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Solutions + * Service provider: Microsoft.Solutions */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * Microsoft.Solutions operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing AppliancesUpdateOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AppliancesUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {Appliance} [parameters] Parameters supplied to update an existing - * appliance. + * Parameters supplied to update an existing appliance. */ parameters?: Appliance; } /** - * @interface - * An interface representing AppliancesUpdateByIdOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AppliancesUpdateByIdOptionalParams extends msRest.RequestOptionsBase { /** - * @member {Appliance} [parameters] Parameters supplied to update an existing - * appliance. + * Parameters supplied to update an existing appliance. */ parameters?: Appliance; } /** - * @interface * An interface representing ManagedApplicationClientOptions. - * @extends AzureServiceClientOptions */ export interface ManagedApplicationClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Microsoft.Solutions operations. It contains a - * list of operations and a URL link to get the next set of results. - * + * Result of the request to list Microsoft.Solutions operations. It contains a list of operations + * and a URL link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the ApplianceListResult. * List of appliances. - * * @extends Array */ export interface ApplianceListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the ApplianceDefinitionListResult. * List of appliance definitions. - * * @extends Array */ export interface ApplianceDefinitionListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } @@ -578,6 +470,7 @@ export type ListOperationsResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -597,6 +490,7 @@ export type ListOperationsNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -616,6 +510,7 @@ export type AppliancesGetResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -635,6 +530,7 @@ export type AppliancesCreateOrUpdateResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -654,6 +550,7 @@ export type AppliancesUpdateResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -673,6 +570,7 @@ export type AppliancesListByResourceGroupResponse = ApplianceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -692,6 +590,7 @@ export type AppliancesListBySubscriptionResponse = ApplianceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -711,6 +610,7 @@ export type AppliancesGetByIdResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -730,6 +630,7 @@ export type AppliancesCreateOrUpdateByIdResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -749,6 +650,7 @@ export type AppliancesUpdateByIdResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -768,6 +670,7 @@ export type AppliancesBeginCreateOrUpdateResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -787,6 +690,7 @@ export type AppliancesBeginCreateOrUpdateByIdResponse = Appliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -806,6 +710,7 @@ export type AppliancesListByResourceGroupNextResponse = ApplianceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -825,6 +730,7 @@ export type AppliancesListBySubscriptionNextResponse = ApplianceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -844,6 +750,7 @@ export type ApplianceDefinitionsGetResponse = ApplianceDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -863,6 +770,7 @@ export type ApplianceDefinitionsCreateOrUpdateResponse = ApplianceDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -882,6 +790,7 @@ export type ApplianceDefinitionsListByResourceGroupResponse = ApplianceDefinitio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -901,6 +810,7 @@ export type ApplianceDefinitionsGetByIdResponse = ApplianceDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -920,6 +830,7 @@ export type ApplianceDefinitionsCreateOrUpdateByIdResponse = ApplianceDefinition * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -939,6 +850,7 @@ export type ApplianceDefinitionsBeginCreateOrUpdateResponse = ApplianceDefinitio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -958,6 +870,7 @@ export type ApplianceDefinitionsBeginCreateOrUpdateByIdResponse = ApplianceDefin * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -977,6 +890,7 @@ export type ApplianceDefinitionsListByResourceGroupNextResponse = ApplianceDefin * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts b/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts index 9a6f25a55512..5f035b2b393d 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/policy/arm-policy/LICENSE.txt b/sdk/policy/arm-policy/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/policy/arm-policy/LICENSE.txt +++ b/sdk/policy/arm-policy/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/policy/arm-policy/README.md b/sdk/policy/arm-policy/README.md index 5f3c29ef6a96..15388fa8ecd5 100644 --- a/sdk/policy/arm-policy/README.md +++ b/sdk/policy/arm-policy/README.md @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/policy/arm-policy/README.png) diff --git a/sdk/policy/arm-policy/package.json b/sdk/policy/arm-policy/package.json index 5fbc40ab6504..8b2f270fed64 100644 --- a/sdk/policy/arm-policy/package.json +++ b/sdk/policy/arm-policy/package.json @@ -4,8 +4,8 @@ "description": "PolicyClient Library with typescript type definitions for node.js and browser.", "version": "1.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/policy/arm-policy", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/policy/arm-policy/src/models/index.ts b/sdk/policy/arm-policy/src/models/index.ts index 006d8d0dbefb..427a4211ddee 100644 --- a/sdk/policy/arm-policy/src/models/index.ts +++ b/sdk/policy/arm-policy/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,387 +11,303 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing PolicySku. * The policy sku. This property is optional, obsolete, and will be ignored. - * */ export interface PolicySku { /** - * @member {string} name The name of the policy sku. Possible values are A0 - * and A1. + * The name of the policy sku. Possible values are A0 and A1. */ name: string; /** - * @member {string} [tier] The policy sku tier. Possible values are Free and - * Standard. + * The policy sku tier. Possible values are Free and Standard. */ tier?: string; } /** - * @interface - * An interface representing Identity. * Identity for the resource. - * */ export interface Identity { /** - * @member {string} [principalId] The principal ID of the resource identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The principal ID of the resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [tenantId] The tenant ID of the resource identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tenant ID of the resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {ResourceIdentityType} [type] The identity type. Possible values - * include: 'SystemAssigned', 'None' + * The identity type. Possible values include: 'SystemAssigned', 'None' */ type?: ResourceIdentityType; } /** - * @interface - * An interface representing PolicyAssignment. * The policy assignment. - * - * @extends BaseResource */ export interface PolicyAssignment extends BaseResource { /** - * @member {string} [displayName] The display name of the policy assignment. + * The display name of the policy assignment. */ displayName?: string; /** - * @member {string} [policyDefinitionId] The ID of the policy definition or - * policy set definition being assigned. + * The ID of the policy definition or policy set definition being assigned. */ policyDefinitionId?: string; /** - * @member {string} [scope] The scope for the policy assignment. + * The scope for the policy assignment. */ scope?: string; /** - * @member {string[]} [notScopes] The policy's excluded scopes. + * The policy's excluded scopes. */ notScopes?: string[]; /** - * @member {any} [parameters] Required if a parameter is used in policy rule. + * Required if a parameter is used in policy rule. */ parameters?: any; /** - * @member {string} [description] This message will be part of response in - * case of policy violation. + * This message will be part of response in case of policy violation. */ description?: string; /** - * @member {any} [metadata] The policy assignment metadata. + * The policy assignment metadata. */ metadata?: any; /** - * @member {string} [id] The ID of the policy assignment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the policy assignment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [type] The type of the policy assignment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the policy assignment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [name] The name of the policy assignment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the policy assignment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {PolicySku} [sku] The policy sku. This property is optional, - * obsolete, and will be ignored. + * The policy sku. This property is optional, obsolete, and will be ignored. */ sku?: PolicySku; /** - * @member {string} [location] The location of the policy assignment. Only - * required when utilizing managed identity. + * The location of the policy assignment. Only required when utilizing managed identity. */ location?: string; /** - * @member {Identity} [identity] The managed identity associated with the - * policy assignment. + * The managed identity associated with the policy assignment. */ identity?: Identity; } /** - * @interface - * An interface representing ErrorResponse. - * Error response indicates Azure Resource Manager is not able to process the - * incoming request. The reason is provided in the error message. - * + * Error response indicates Azure Resource Manager is not able to process the incoming request. The + * reason is provided in the error message. */ export interface ErrorResponse { /** - * @member {string} [httpStatus] Http status code. + * Http status code. */ httpStatus?: string; /** - * @member {string} [errorCode] Error code. + * Error code. */ errorCode?: string; /** - * @member {string} [errorMessage] Error message indicating why the operation - * failed. + * Error message indicating why the operation failed. */ errorMessage?: string; } /** - * @interface - * An interface representing PolicyDefinition. * The policy definition. - * - * @extends BaseResource */ export interface PolicyDefinition extends BaseResource { /** - * @member {PolicyType} [policyType] The type of policy definition. Possible - * values are NotSpecified, BuiltIn, and Custom. Possible values include: - * 'NotSpecified', 'BuiltIn', 'Custom' + * The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible + * values include: 'NotSpecified', 'BuiltIn', 'Custom' */ policyType?: PolicyType; /** - * @member {PolicyMode} [mode] The policy definition mode. Possible values - * are NotSpecified, Indexed, and All. Possible values include: - * 'NotSpecified', 'Indexed', 'All' + * The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible + * values include: 'NotSpecified', 'Indexed', 'All' */ mode?: PolicyMode; /** - * @member {string} [displayName] The display name of the policy definition. + * The display name of the policy definition. */ displayName?: string; /** - * @member {string} [description] The policy definition description. + * The policy definition description. */ description?: string; /** - * @member {any} [policyRule] The policy rule. + * The policy rule. */ policyRule?: any; /** - * @member {any} [metadata] The policy definition metadata. + * The policy definition metadata. */ metadata?: any; /** - * @member {any} [parameters] Required if a parameter is used in policy rule. + * Required if a parameter is used in policy rule. */ parameters?: any; /** - * @member {string} [id] The ID of the policy definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the policy definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the policy definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the policy definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource - * (Microsoft.Authorization/policyDefinitions). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource (Microsoft.Authorization/policyDefinitions). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing PolicyDefinitionReference. * The policy definition reference. - * */ export interface PolicyDefinitionReference { /** - * @member {string} [policyDefinitionId] The ID of the policy definition or - * policy set definition. + * The ID of the policy definition or policy set definition. */ policyDefinitionId?: string; /** - * @member {any} [parameters] Required if a parameter is used in policy rule. + * Required if a parameter is used in policy rule. */ parameters?: any; } /** - * @interface - * An interface representing PolicySetDefinition. * The policy set definition. - * - * @extends BaseResource */ export interface PolicySetDefinition extends BaseResource { /** - * @member {PolicyType} [policyType] The type of policy definition. Possible - * values are NotSpecified, BuiltIn, and Custom. Possible values include: - * 'NotSpecified', 'BuiltIn', 'Custom' + * The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible + * values include: 'NotSpecified', 'BuiltIn', 'Custom' */ policyType?: PolicyType; /** - * @member {string} [displayName] The display name of the policy set - * definition. + * The display name of the policy set definition. */ displayName?: string; /** - * @member {string} [description] The policy set definition description. + * The policy set definition description. */ description?: string; /** - * @member {any} [metadata] The policy set definition metadata. + * The policy set definition metadata. */ metadata?: any; /** - * @member {any} [parameters] The policy set definition parameters that can - * be used in policy definition references. + * The policy set definition parameters that can be used in policy definition references. */ parameters?: any; /** - * @member {PolicyDefinitionReference[]} policyDefinitions An array of policy - * definition references. + * An array of policy definition references. */ policyDefinitions: PolicyDefinitionReference[]; /** - * @member {string} [id] The ID of the policy set definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the policy set definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the policy set definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the policy set definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource - * (Microsoft.Authorization/policySetDefinitions). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource (Microsoft.Authorization/policySetDefinitions). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing PolicyAssignmentsListForResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface PolicyAssignmentsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. Valid - * values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. - * If $filter is not provided, no filtering is performed. + * The filter to apply on the operation. Valid values for $filter are: 'atScope()' or + * 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. */ filter?: string; } /** - * @interface - * An interface representing PolicyAssignmentsListForResourceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface PolicyAssignmentsListForResourceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. Valid - * values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. - * If $filter is not provided, no filtering is performed. + * The filter to apply on the operation. Valid values for $filter are: 'atScope()' or + * 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. */ filter?: string; } /** - * @interface - * An interface representing PolicyAssignmentsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface PolicyAssignmentsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. Valid - * values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. - * If $filter is not provided, no filtering is performed. + * The filter to apply on the operation. Valid values for $filter are: 'atScope()' or + * 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed. */ filter?: string; } /** - * @interface * An interface representing PolicyClientOptions. - * @extends AzureServiceClientOptions */ export interface PolicyClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the PolicyAssignmentListResult. * List of policy assignments. - * * @extends Array */ export interface PolicyAssignmentListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the PolicyDefinitionListResult. * List of policy definitions. - * * @extends Array */ export interface PolicyDefinitionListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } /** * @interface - * An interface representing the PolicySetDefinitionListResult. * List of policy set definitions. - * * @extends Array */ export interface PolicySetDefinitionListResult extends Array { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The URL to use for getting the next set of results. */ nextLink?: string; } @@ -434,6 +348,7 @@ export type PolicyAssignmentsDeleteMethodResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -453,6 +368,7 @@ export type PolicyAssignmentsCreateResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -472,6 +388,7 @@ export type PolicyAssignmentsGetResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -491,6 +408,7 @@ export type PolicyAssignmentsListForResourceGroupResponse = PolicyAssignmentList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -510,6 +428,7 @@ export type PolicyAssignmentsListForResourceResponse = PolicyAssignmentListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -529,6 +448,7 @@ export type PolicyAssignmentsListResponse = PolicyAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -548,6 +468,7 @@ export type PolicyAssignmentsDeleteByIdResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -567,6 +488,7 @@ export type PolicyAssignmentsCreateByIdResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -586,6 +508,7 @@ export type PolicyAssignmentsGetByIdResponse = PolicyAssignment & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -605,6 +528,7 @@ export type PolicyAssignmentsListForResourceGroupNextResponse = PolicyAssignment * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -624,6 +548,7 @@ export type PolicyAssignmentsListForResourceNextResponse = PolicyAssignmentListR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -643,6 +568,7 @@ export type PolicyAssignmentsListNextResponse = PolicyAssignmentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -662,6 +588,7 @@ export type PolicyDefinitionsCreateOrUpdateResponse = PolicyDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -681,6 +608,7 @@ export type PolicyDefinitionsGetResponse = PolicyDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -700,6 +628,7 @@ export type PolicyDefinitionsGetBuiltInResponse = PolicyDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -719,6 +648,7 @@ export type PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse = PolicyDef * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -738,6 +668,7 @@ export type PolicyDefinitionsGetAtManagementGroupResponse = PolicyDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -757,6 +688,7 @@ export type PolicyDefinitionsListResponse = PolicyDefinitionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -776,6 +708,7 @@ export type PolicyDefinitionsListBuiltInResponse = PolicyDefinitionListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -795,6 +728,7 @@ export type PolicyDefinitionsListByManagementGroupResponse = PolicyDefinitionLis * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -814,6 +748,7 @@ export type PolicyDefinitionsListNextResponse = PolicyDefinitionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -833,6 +768,7 @@ export type PolicyDefinitionsListBuiltInNextResponse = PolicyDefinitionListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -852,6 +788,7 @@ export type PolicyDefinitionsListByManagementGroupNextResponse = PolicyDefinitio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -871,6 +808,7 @@ export type PolicySetDefinitionsCreateOrUpdateResponse = PolicySetDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -890,6 +828,7 @@ export type PolicySetDefinitionsGetResponse = PolicySetDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -909,6 +848,7 @@ export type PolicySetDefinitionsGetBuiltInResponse = PolicySetDefinition & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -928,6 +868,7 @@ export type PolicySetDefinitionsListResponse = PolicySetDefinitionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -947,6 +888,7 @@ export type PolicySetDefinitionsListBuiltInResponse = PolicySetDefinitionListRes * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -966,6 +908,7 @@ export type PolicySetDefinitionsCreateOrUpdateAtManagementGroupResponse = Policy * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -985,6 +928,7 @@ export type PolicySetDefinitionsGetAtManagementGroupResponse = PolicySetDefiniti * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1004,6 +948,7 @@ export type PolicySetDefinitionsListByManagementGroupResponse = PolicySetDefinit * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1023,6 +968,7 @@ export type PolicySetDefinitionsListNextResponse = PolicySetDefinitionListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1042,6 +988,7 @@ export type PolicySetDefinitionsListBuiltInNextResponse = PolicySetDefinitionLis * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1061,6 +1008,7 @@ export type PolicySetDefinitionsListByManagementGroupNextResponse = PolicySetDef * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/policy/arm-policy/src/models/mappers.ts b/sdk/policy/arm-policy/src/models/mappers.ts index 221c2d0281f5..9d1d491a7716 100644 --- a/sdk/policy/arm-policy/src/models/mappers.ts +++ b/sdk/policy/arm-policy/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/policy/arm-policy/src/models/policyAssignmentsMappers.ts b/sdk/policy/arm-policy/src/models/policyAssignmentsMappers.ts index f07616534449..5bd649da6adc 100644 --- a/sdk/policy/arm-policy/src/models/policyAssignmentsMappers.ts +++ b/sdk/policy/arm-policy/src/models/policyAssignmentsMappers.ts @@ -1,22 +1,19 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - PolicyAssignment, BaseResource, - PolicySku, - Identity, ErrorResponse, + Identity, + PolicyAssignment, PolicyAssignmentListResult, PolicyDefinition, + PolicyDefinitionReference, PolicySetDefinition, - PolicyDefinitionReference + PolicySku } from "../models/mappers"; - diff --git a/sdk/policy/arm-policy/src/models/policyDefinitionsMappers.ts b/sdk/policy/arm-policy/src/models/policyDefinitionsMappers.ts index 0c55039e555a..0a6095ab506e 100644 --- a/sdk/policy/arm-policy/src/models/policyDefinitionsMappers.ts +++ b/sdk/policy/arm-policy/src/models/policyDefinitionsMappers.ts @@ -1,22 +1,19 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - PolicyDefinition, BaseResource, CloudError, - PolicyDefinitionListResult, - PolicyAssignment, - PolicySku, Identity, + PolicyAssignment, + PolicyDefinition, + PolicyDefinitionListResult, + PolicyDefinitionReference, PolicySetDefinition, - PolicyDefinitionReference + PolicySku } from "../models/mappers"; - diff --git a/sdk/policy/arm-policy/src/models/policySetDefinitionsMappers.ts b/sdk/policy/arm-policy/src/models/policySetDefinitionsMappers.ts index aae40e44bd82..436eae1fcc40 100644 --- a/sdk/policy/arm-policy/src/models/policySetDefinitionsMappers.ts +++ b/sdk/policy/arm-policy/src/models/policySetDefinitionsMappers.ts @@ -1,22 +1,19 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - PolicySetDefinition, BaseResource, - PolicyDefinitionReference, ErrorResponse, - PolicySetDefinitionListResult, - PolicyAssignment, - PolicySku, Identity, - PolicyDefinition + PolicyAssignment, + PolicyDefinition, + PolicyDefinitionReference, + PolicySetDefinition, + PolicySetDefinitionListResult, + PolicySku } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/LICENSE.txt b/sdk/resources/arm-resources/LICENSE.txt index a70e8cf66038..b73b4a1293c3 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) 2018 Microsoft +Copyright (c) 2019 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 71483213cec0..3a5196cc11bb 100644 --- a/sdk/resources/arm-resources/README.md +++ b/sdk/resources/arm-resources/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resources/arm-resources/README.png) diff --git a/sdk/resources/arm-resources/package.json b/sdk/resources/arm-resources/package.json index 8fbb0a7241b1..4d37c30345eb 100644 --- a/sdk/resources/arm-resources/package.json +++ b/sdk/resources/arm-resources/package.json @@ -4,8 +4,8 @@ "description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/resources/arm-resources", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -54,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/resources/arm-resources/src/models/deploymentOperationsMappers.ts b/sdk/resources/arm-resources/src/models/deploymentOperationsMappers.ts index bfa149a16bef..2a840268fbfe 100644 --- a/sdk/resources/arm-resources/src/models/deploymentOperationsMappers.ts +++ b/sdk/resources/arm-resources/src/models/deploymentOperationsMappers.ts @@ -1,19 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + CloudError, DeploymentOperation, DeploymentOperationProperties, - TargetResource, + DeploymentOperationsListResult, HttpMessage, - CloudError, - DeploymentOperationsListResult + TargetResource } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/src/models/deploymentsMappers.ts b/sdk/resources/arm-resources/src/models/deploymentsMappers.ts index 5865f67f1c27..24bc4224c21e 100644 --- a/sdk/resources/arm-resources/src/models/deploymentsMappers.ts +++ b/sdk/resources/arm-resources/src/models/deploymentsMappers.ts @@ -1,45 +1,42 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AliasPathType, + AliasType, + BaseResource, + BasicDependency, CloudError, - Deployment, - DeploymentProperties, - TemplateLink, - ParametersLink, DebugSetting, - OnErrorDeployment, + Dependency, + Deployment, + DeploymentExportResult, DeploymentExtended, - BaseResource, + DeploymentListResult, + DeploymentProperties, DeploymentPropertiesExtended, + DeploymentValidateResult, + GenericResource, + Identity, + IdentityUserAssignedIdentitiesValue, + OnErrorDeployment, + OnErrorDeploymentExtended, + ParametersLink, + Plan, Provider, ProviderResourceType, - AliasType, - AliasPathType, - Dependency, - BasicDependency, - OnErrorDeploymentExtended, - DeploymentValidateResult, - ResourceManagementErrorWithDetails, - DeploymentExportResult, - DeploymentListResult, + Resource, ResourceGroup, ResourceGroupProperties, - TagValue, - TagCount, - Resource, - SubResource, - GenericResource, - Plan, + ResourceManagementErrorWithDetails, Sku, - Identity, - IdentityUserAssignedIdentitiesValue + SubResource, + TagCount, + TagValue, + TemplateLink } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/src/models/index.ts b/sdk/resources/arm-resources/src/models/index.ts index cee0304cdbdb..3ca4eb8c8d71 100644 --- a/sdk/resources/arm-resources/src/models/index.ts +++ b/sdk/resources/arm-resources/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,1490 +11,1229 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing DeploymentExtendedFilter. * Deployment filter. - * */ export interface DeploymentExtendedFilter { /** - * @member {string} [provisioningState] The provisioning state. + * The provisioning state. */ provisioningState?: string; } /** - * @interface - * An interface representing GenericResourceFilter. * Resource filter. - * */ export interface GenericResourceFilter { /** - * @member {string} [resourceType] The resource type. + * The resource type. */ resourceType?: string; /** - * @member {string} [tagname] The tag name. + * The tag name. */ tagname?: string; /** - * @member {string} [tagvalue] The tag value. + * The tag value. */ tagvalue?: string; } /** - * @interface - * An interface representing ResourceGroupFilter. * Resource group filter. - * */ export interface ResourceGroupFilter { /** - * @member {string} [tagName] The tag name. + * The tag name. */ tagName?: string; /** - * @member {string} [tagValue] The tag value. + * The tag value. */ tagValue?: string; } /** - * @interface - * An interface representing TemplateLink. * Entity representing the reference to the template. - * */ export interface TemplateLink { /** - * @member {string} uri The URI of the template to deploy. + * The URI of the template to deploy. */ uri: string; /** - * @member {string} [contentVersion] If included, must match the - * ContentVersion in the template. + * If included, must match the ContentVersion in the template. */ contentVersion?: string; } /** - * @interface - * An interface representing ParametersLink. * Entity representing the reference to the deployment parameters. - * */ export interface ParametersLink { /** - * @member {string} uri The URI of the parameters file. + * The URI of the parameters file. */ uri: string; /** - * @member {string} [contentVersion] If included, must match the - * ContentVersion in the template. + * If included, must match the ContentVersion in the template. */ contentVersion?: string; } /** - * @interface * An interface representing DebugSetting. */ export interface DebugSetting { /** - * @member {string} [detailLevel] Specifies the type of information to log - * for debugging. The permitted values are none, requestContent, - * responseContent, or both requestContent and responseContent separated by a - * comma. The default is none. When setting this value, carefully consider - * the type of information you are passing in during deployment. By logging - * information about the request or response, you could potentially expose - * sensitive data that is retrieved through the deployment operations. + * Specifies the type of information to log for debugging. The permitted values are none, + * requestContent, responseContent, or both requestContent and responseContent separated by a + * comma. The default is none. When setting this value, carefully consider the type of + * information you are passing in during deployment. By logging information about the request or + * response, you could potentially expose sensitive data that is retrieved through the deployment + * operations. */ detailLevel?: string; } /** - * @interface - * An interface representing OnErrorDeployment. * Deployment on error behavior. - * */ export interface OnErrorDeployment { /** - * @member {OnErrorDeploymentType} [type] The deployment on error behavior - * type. Possible values are LastSuccessful and SpecificDeployment. Possible - * values include: 'LastSuccessful', 'SpecificDeployment' + * The deployment on error behavior type. Possible values are LastSuccessful and + * SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment' */ type?: OnErrorDeploymentType; /** - * @member {string} [deploymentName] The deployment to be used on error case. + * The deployment to be used on error case. */ deploymentName?: string; } /** - * @interface - * An interface representing DeploymentProperties. * Deployment properties. - * */ export interface DeploymentProperties { /** - * @member {any} [template] The template content. You use this element when - * you want to pass the template syntax directly in the request rather than - * link to an existing template. It can be a JObject or well-formed JSON - * string. Use either the templateLink property or the template property, but - * not both. + * The template content. You use this element when you want to pass the template syntax directly + * in the request rather than link to an existing template. It can be a JObject or well-formed + * JSON string. Use either the templateLink property or the template property, but not both. */ template?: any; /** - * @member {TemplateLink} [templateLink] The URI of the template. Use either - * the templateLink property or the template property, but not both. + * The URI of the template. Use either the templateLink property or the template property, but + * not both. */ templateLink?: TemplateLink; /** - * @member {any} [parameters] Name and value pairs that define the deployment - * parameters for the template. You use this element when you want to provide - * the parameter values directly in the request rather than link to an - * existing parameter file. Use either the parametersLink property or the - * parameters property, but not both. It can be a JObject or a well formed - * JSON string. + * Name and value pairs that define the deployment parameters for the template. You use this + * element when you want to provide the parameter values directly in the request rather than link + * to an existing parameter file. Use either the parametersLink property or the parameters + * property, but not both. It can be a JObject or a well formed JSON string. */ parameters?: any; /** - * @member {ParametersLink} [parametersLink] The URI of parameters file. You - * use this element to link to an existing parameters file. Use either the - * parametersLink property or the parameters property, but not both. + * The URI of parameters file. You use this element to link to an existing parameters file. Use + * either the parametersLink property or the parameters property, but not both. */ parametersLink?: ParametersLink; /** - * @member {DeploymentMode} mode The mode that is used to deploy resources. - * This value can be either Incremental or Complete. In Incremental mode, - * resources are deployed without deleting existing resources that are not - * included in the template. In Complete mode, resources are deployed and - * existing resources in the resource group that are not included in the - * template are deleted. Be careful when using Complete mode as you may - * unintentionally delete resources. Possible values include: 'Incremental', - * 'Complete' + * The mode that is used to deploy resources. This value can be either Incremental or Complete. + * In Incremental mode, resources are deployed without deleting existing resources that are not + * included in the template. In Complete mode, resources are deployed and existing resources in + * the resource group that are not included in the template are deleted. Be careful when using + * Complete mode as you may unintentionally delete resources. Possible values include: + * 'Incremental', 'Complete' */ mode: DeploymentMode; /** - * @member {DebugSetting} [debugSetting] The debug setting of the deployment. + * The debug setting of the deployment. */ debugSetting?: DebugSetting; /** - * @member {OnErrorDeployment} [onErrorDeployment] The deployment on error - * behavior. + * The deployment on error behavior. */ onErrorDeployment?: OnErrorDeployment; } /** - * @interface - * An interface representing Deployment. * Deployment operation parameters. - * */ export interface Deployment { /** - * @member {string} [location] The location to store the deployment data. + * The location to store the deployment data. */ location?: string; /** - * @member {DeploymentProperties} properties The deployment properties. + * The deployment properties. */ properties: DeploymentProperties; } /** - * @interface - * An interface representing DeploymentExportResult. * The deployment export result. - * */ export interface DeploymentExportResult { /** - * @member {any} [template] The template content. + * The template content. */ template?: any; } /** - * @interface - * An interface representing ResourceManagementErrorWithDetails. * The detailed error message of resource management. - * */ export interface ResourceManagementErrorWithDetails { /** - * @member {string} [code] The error code returned when exporting the - * template. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The error code returned when exporting the template. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [message] The error message describing the export error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The error message describing the export error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {string} [target] The target of the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The target of the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly target?: string; /** - * @member {ResourceManagementErrorWithDetails[]} [details] Validation error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Validation error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: ResourceManagementErrorWithDetails[]; } /** - * @interface - * An interface representing AliasPathType. * The type of the paths for alias. - * */ export interface AliasPathType { /** - * @member {string} [path] The path of an alias. + * The path of an alias. */ path?: string; /** - * @member {string[]} [apiVersions] The API versions. + * The API versions. */ apiVersions?: string[]; } /** - * @interface - * An interface representing AliasType. * The alias type. - * */ export interface AliasType { /** - * @member {string} [name] The alias name. + * The alias name. */ name?: string; /** - * @member {AliasPathType[]} [paths] The paths for an alias. + * The paths for an alias. */ paths?: AliasPathType[]; } /** - * @interface - * An interface representing ProviderResourceType. * Resource type managed by the resource provider. - * */ export interface ProviderResourceType { /** - * @member {string} [resourceType] The resource type. + * The resource type. */ resourceType?: string; /** - * @member {string[]} [locations] The collection of locations where this - * resource type can be created. + * The collection of locations where this resource type can be created. */ locations?: string[]; /** - * @member {AliasType[]} [aliases] The aliases that are supported by this - * resource type. + * The aliases that are supported by this resource type. */ aliases?: AliasType[]; /** - * @member {string[]} [apiVersions] The API version. + * The API version. */ apiVersions?: string[]; /** - * @member {{ [propertyName: string]: string }} [properties] The properties. + * The additional capabilities offered by this resource type. + */ + capabilities?: string; + /** + * The properties. */ properties?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Provider. * Resource provider information. - * */ export interface Provider { /** - * @member {string} [id] The provider ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provider ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [namespace] The namespace of the resource provider. + * The namespace of the resource provider. */ namespace?: string; /** - * @member {string} [registrationState] The registration state of the - * provider. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The registration state of the resource provider. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly registrationState?: string; /** - * @member {ProviderResourceType[]} [resourceTypes] The collection of - * provider resource types. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The registration policy of the resource provider. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly registrationPolicy?: string; + /** + * The collection of provider resource types. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceTypes?: ProviderResourceType[]; } /** - * @interface - * An interface representing BasicDependency. * Deployment dependency information. - * */ export interface BasicDependency { /** - * @member {string} [id] The ID of the dependency. + * The ID of the dependency. */ id?: string; /** - * @member {string} [resourceType] The dependency resource type. + * The dependency resource type. */ resourceType?: string; /** - * @member {string} [resourceName] The dependency resource name. + * The dependency resource name. */ resourceName?: string; } /** - * @interface - * An interface representing Dependency. * Deployment dependency information. - * */ export interface Dependency { /** - * @member {BasicDependency[]} [dependsOn] The list of dependencies. + * The list of dependencies. */ dependsOn?: BasicDependency[]; /** - * @member {string} [id] The ID of the dependency. + * The ID of the dependency. */ id?: string; /** - * @member {string} [resourceType] The dependency resource type. + * The dependency resource type. */ resourceType?: string; /** - * @member {string} [resourceName] The dependency resource name. + * The dependency resource name. */ resourceName?: string; } /** - * @interface - * An interface representing OnErrorDeploymentExtended. * Deployment on error behavior with additional details. - * */ export interface OnErrorDeploymentExtended { /** - * @member {string} [provisioningState] The state of the provisioning for the - * on error deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The state of the provisioning for the on error deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {OnErrorDeploymentType} [type] The deployment on error behavior - * type. Possible values are LastSuccessful and SpecificDeployment. Possible - * values include: 'LastSuccessful', 'SpecificDeployment' + * The deployment on error behavior type. Possible values are LastSuccessful and + * SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment' */ type?: OnErrorDeploymentType; /** - * @member {string} [deploymentName] The deployment to be used on error case. + * The deployment to be used on error case. */ deploymentName?: string; } /** - * @interface - * An interface representing DeploymentPropertiesExtended. * Deployment properties with additional details. - * */ export interface DeploymentPropertiesExtended { /** - * @member {string} [provisioningState] The state of the provisioning. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The state of the provisioning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {string} [correlationId] The correlation ID of the deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The correlation ID of the deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly correlationId?: string; /** - * @member {Date} [timestamp] The timestamp of the template deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The timestamp of the template deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timestamp?: Date; /** - * @member {any} [outputs] Key/value pairs that represent deployment output. + * The duration of the template deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly duration?: string; + /** + * Key/value pairs that represent deployment output. */ outputs?: any; /** - * @member {Provider[]} [providers] The list of resource providers needed for - * the deployment. + * The list of resource providers needed for the deployment. */ providers?: Provider[]; /** - * @member {Dependency[]} [dependencies] The list of deployment dependencies. + * The list of deployment dependencies. */ dependencies?: Dependency[]; /** - * @member {any} [template] The template content. Use only one of Template or - * TemplateLink. + * The template content. Use only one of Template or TemplateLink. */ template?: any; /** - * @member {TemplateLink} [templateLink] The URI referencing the template. - * Use only one of Template or TemplateLink. + * The URI referencing the template. Use only one of Template or TemplateLink. */ templateLink?: TemplateLink; /** - * @member {any} [parameters] Deployment parameters. Use only one of - * Parameters or ParametersLink. + * Deployment parameters. Use only one of Parameters or ParametersLink. */ parameters?: any; /** - * @member {ParametersLink} [parametersLink] The URI referencing the - * parameters. Use only one of Parameters or ParametersLink. + * The URI referencing the parameters. Use only one of Parameters or ParametersLink. */ parametersLink?: ParametersLink; /** - * @member {DeploymentMode} [mode] The deployment mode. Possible values are - * Incremental and Complete. Possible values include: 'Incremental', - * 'Complete' + * The deployment mode. Possible values are Incremental and Complete. Possible values include: + * 'Incremental', 'Complete' */ mode?: DeploymentMode; /** - * @member {DebugSetting} [debugSetting] The debug setting of the deployment. + * The debug setting of the deployment. */ debugSetting?: DebugSetting; /** - * @member {OnErrorDeploymentExtended} [onErrorDeployment] The deployment on - * error behavior. + * The deployment on error behavior. */ onErrorDeployment?: OnErrorDeploymentExtended; } /** - * @interface - * An interface representing DeploymentValidateResult. * Information from validate template deployment response. - * */ export interface DeploymentValidateResult { /** - * @member {ResourceManagementErrorWithDetails} [error] Validation error. + * Validation error. */ error?: ResourceManagementErrorWithDetails; /** - * @member {DeploymentPropertiesExtended} [properties] The template - * deployment properties. + * The template deployment properties. */ properties?: DeploymentPropertiesExtended; } /** - * @interface - * An interface representing DeploymentExtended. * Deployment information. - * - * @extends BaseResource */ export interface DeploymentExtended extends BaseResource { /** - * @member {string} [id] The ID of the deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the deployment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] the location of the deployment. + * the location of the deployment. */ location?: string; /** - * @member {DeploymentPropertiesExtended} [properties] Deployment properties. + * Deployment properties. */ properties?: DeploymentPropertiesExtended; } /** - * @interface - * An interface representing Plan. * Plan for the resource. - * */ export interface Plan { /** - * @member {string} [name] The plan ID. + * The plan ID. */ name?: string; /** - * @member {string} [publisher] The publisher ID. + * The publisher ID. */ publisher?: string; /** - * @member {string} [product] The offer ID. + * The offer ID. */ product?: string; /** - * @member {string} [promotionCode] The promotion code. + * The promotion code. */ promotionCode?: string; /** - * @member {string} [version] The plan's version. + * The plan's version. */ version?: string; } /** - * @interface - * An interface representing Sku. * SKU for the resource. - * */ export interface Sku { /** - * @member {string} [name] The SKU name. + * The SKU name. */ name?: string; /** - * @member {string} [tier] The SKU tier. + * The SKU tier. */ tier?: string; /** - * @member {string} [size] The SKU size. + * The SKU size. */ size?: string; /** - * @member {string} [family] The SKU family. + * The SKU family. */ family?: string; /** - * @member {string} [model] The SKU model. + * The SKU model. */ model?: string; /** - * @member {number} [capacity] The SKU capacity. + * The SKU capacity. */ capacity?: number; } /** - * @interface * An interface representing IdentityUserAssignedIdentitiesValue. */ export interface IdentityUserAssignedIdentitiesValue { /** - * @member {string} [principalId] The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [clientId] The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly clientId?: string; } /** - * @interface - * An interface representing Identity. * Identity for the resource. - * */ export interface Identity { /** - * @member {string} [principalId] The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [tenantId] The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {ResourceIdentityType} [type] The identity type. Possible values - * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', - * 'None' + * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, + * UserAssigned', 'None' */ type?: ResourceIdentityType; /** - * @member {{ [propertyName: string]: IdentityUserAssignedIdentitiesValue }} - * [userAssignedIdentities] The list of user identities associated with the - * resource. The user identity dictionary key references will be ARM resource - * ids in the form: + * The list of user identities associated with the resource. The user identity dictionary key + * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; } /** - * @interface - * An interface representing Resource. * Specified resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource ID - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing GenericResource. * Resource information. - * - * @extends Resource */ export interface GenericResource extends Resource { /** - * @member {Plan} [plan] The plan of the resource. + * The plan of the resource. */ plan?: Plan; /** - * @member {any} [properties] The resource properties. + * The resource properties. */ properties?: any; /** - * @member {string} [kind] The kind of the resource. + * The kind of the resource. */ kind?: string; /** - * @member {string} [managedBy] ID of the resource that manages this - * resource. + * ID of the resource that manages this resource. */ managedBy?: string; /** - * @member {Sku} [sku] The SKU of the resource. + * The SKU of the resource. */ sku?: Sku; /** - * @member {Identity} [identity] The identity of the resource. + * The identity of the resource. */ identity?: Identity; } /** - * @interface - * An interface representing ResourceGroupProperties. * The resource group properties. - * */ export interface ResourceGroupProperties { /** - * @member {string} [provisioningState] The provisioning state. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provisioning state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing ResourceGroup. * Resource group information. - * - * @extends BaseResource */ export interface ResourceGroup extends BaseResource { /** - * @member {string} [id] The ID of the resource group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the resource group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the resource group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; - /** - * @member {ResourceGroupProperties} [properties] - */ properties?: ResourceGroupProperties; /** - * @member {string} location The location of the resource group. It cannot be - * changed after the resource group has been created. It must be one of the - * supported Azure locations. + * The location of the resource group. It cannot be changed after the resource group has been + * created. It must be one of the supported Azure locations. */ location: string; /** - * @member {string} [managedBy] The ID of the resource that manages this - * resource group. + * The ID of the resource that manages this resource group. */ managedBy?: string; /** - * @member {{ [propertyName: string]: string }} [tags] The tags attached to - * the resource group. + * The tags attached to the resource group. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ResourceGroupPatchable. * Resource group information. - * */ export interface ResourceGroupPatchable { /** - * @member {string} [name] The name of the resource group. + * The name of the resource group. */ name?: string; - /** - * @member {ResourceGroupProperties} [properties] - */ properties?: ResourceGroupProperties; /** - * @member {string} [managedBy] The ID of the resource that manages this - * resource group. + * The ID of the resource that manages this resource group. */ managedBy?: string; /** - * @member {{ [propertyName: string]: string }} [tags] The tags attached to - * the resource group. + * The tags attached to the resource group. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ResourcesMoveInfo. * Parameters of move resources. - * */ export interface ResourcesMoveInfo { /** - * @member {string[]} [resources] The IDs of the resources. + * The IDs of the resources. */ resources?: string[]; /** - * @member {string} [targetResourceGroup] The target resource group. + * The target resource group. */ targetResourceGroup?: string; } /** - * @interface - * An interface representing ExportTemplateRequest. * Export resource group template request parameters. - * */ export interface ExportTemplateRequest { /** - * @member {string[]} [resources] 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. The only supported string currently is '*' (all resources). Future + * updates will support exporting specific resources. */ resources?: string[]; /** - * @member {string} [options] The export template options. Supported values - * include 'IncludeParameterDefaultValue', 'IncludeComments' or - * 'IncludeParameterDefaultValue, IncludeComments + * The export template options. Supported values include 'IncludeParameterDefaultValue', + * 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments */ options?: string; } /** - * @interface - * An interface representing TagCount. * Tag count. - * */ export interface TagCount { /** - * @member {string} [type] Type of count. + * Type of count. */ type?: string; /** - * @member {number} [value] Value of count. + * Value of count. */ value?: number; } /** - * @interface - * An interface representing TagValue. * Tag information. - * - * @extends BaseResource */ export interface TagValue extends BaseResource { /** - * @member {string} [id] The tag ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tag ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [tagValue] The tag value. + * The tag value. */ tagValue?: string; /** - * @member {TagCount} [count] The tag value count. + * The tag value count. */ count?: TagCount; } /** - * @interface - * An interface representing TagDetails. * Tag details. - * */ export interface TagDetails { /** - * @member {string} [id] The tag ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tag ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [tagName] The tag name. + * The tag name. */ tagName?: string; /** - * @member {TagCount} [count] The total number of resources that use the - * resource tag. When a tag is initially created and has no associated - * resources, the value is 0. + * The total number of resources that use the resource tag. When a tag is initially created and + * has no associated resources, the value is 0. */ count?: TagCount; /** - * @member {TagValue[]} [values] The list of tag values. + * The list of tag values. */ values?: TagValue[]; } /** - * @interface - * An interface representing TargetResource. * Target resource. - * */ export interface TargetResource { /** - * @member {string} [id] The ID of the resource. + * The ID of the resource. */ id?: string; /** - * @member {string} [resourceName] The name of the resource. + * The name of the resource. */ resourceName?: string; /** - * @member {string} [resourceType] The type of the resource. + * The type of the resource. */ resourceType?: string; } /** - * @interface - * An interface representing HttpMessage. * HTTP message. - * */ export interface HttpMessage { /** - * @member {any} [content] HTTP message content. + * HTTP message content. */ content?: any; } /** - * @interface - * An interface representing DeploymentOperationProperties. * Deployment operation properties. - * */ export interface DeploymentOperationProperties { /** - * @member {string} [provisioningState] The state of the provisioning. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The state of the provisioning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {Date} [timestamp] The date and time of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timestamp?: Date; /** - * @member {string} [serviceRequestId] Deployment operation service request - * id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The duration of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly duration?: string; + /** + * Deployment operation service request id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceRequestId?: string; /** - * @member {string} [statusCode] Operation status code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation status code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly statusCode?: string; /** - * @member {any} [statusMessage] Operation status message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation status message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly statusMessage?: any; /** - * @member {TargetResource} [targetResource] The target resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The target resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly targetResource?: TargetResource; /** - * @member {HttpMessage} [request] The HTTP request message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The HTTP request message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly request?: HttpMessage; /** - * @member {HttpMessage} [response] The HTTP response message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The HTTP response message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly response?: HttpMessage; } /** - * @interface - * An interface representing DeploymentOperation. * Deployment operation information. - * */ export interface DeploymentOperation { /** - * @member {string} [id] Full deployment operation ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Full deployment operation ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [operationId] Deployment operation ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Deployment operation ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operationId?: string; /** - * @member {DeploymentOperationProperties} [properties] Deployment - * properties. + * Deployment properties. */ properties?: DeploymentOperationProperties; } /** - * @interface - * An interface representing ResourceProviderOperationDisplayProperties. * Resource provider operation's display properties. - * */ export interface ResourceProviderOperationDisplayProperties { /** - * @member {string} [publisher] Operation description. + * Operation description. */ publisher?: string; /** - * @member {string} [provider] Operation provider. + * Operation provider. */ provider?: string; /** - * @member {string} [resource] Operation resource. + * Operation resource. */ resource?: string; /** - * @member {string} [operation] Resource provider operation. + * Resource provider operation. */ operation?: string; /** - * @member {string} [description] Operation description. + * Operation description. */ description?: string; } /** - * @interface - * An interface representing SubResource. * Sub-resource. - * - * @extends BaseResource */ export interface SubResource extends BaseResource { /** - * @member {string} [id] Resource ID + * Resource ID */ id?: string; } /** - * @interface - * An interface representing ResourceGroupExportResult. * Resource group export result. - * */ export interface ResourceGroupExportResult { /** - * @member {any} [template] The template content. + * The template content. */ template?: any; /** - * @member {ResourceManagementErrorWithDetails} [error] The error. + * The error. */ error?: ResourceManagementErrorWithDetails; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Resources + * Service provider: Microsoft.Resources */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; /** - * @member {string} [description] Description of the operation. + * Description of the operation. */ description?: string; } /** - * @interface - * An interface representing Operation. * Microsoft.Resources operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing DeploymentsListAtSubscriptionScopeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase + */ +export interface DeploymentsListAtManagementGroupScopeOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. For example, you can use $filter=provisioningState eq + * '{state}'. + */ + filter?: string; + /** + * The number of results to get. If null is passed, returns all deployments. + */ + top?: number; +} + +/** + * Optional Parameters. */ export interface DeploymentsListAtSubscriptionScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. For - * example, you can use $filter=provisioningState eq '{state}'. + * The filter to apply on the operation. For example, you can use $filter=provisioningState eq + * '{state}'. */ filter?: string; /** - * @member {number} [top] The number of results to get. If null is passed, - * returns all deployments. + * The number of results to get. If null is passed, returns all deployments. */ top?: number; } /** - * @interface - * An interface representing DeploymentsListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DeploymentsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. For - * example, you can use $filter=provisioningState eq '{state}'. + * The filter to apply on the operation. For example, you can use $filter=provisioningState eq + * '{state}'. */ filter?: string; /** - * @member {number} [top] The number of results to get. If null is passed, - * returns all deployments. + * The number of results to get. If null is passed, returns all deployments. */ top?: number; } /** - * @interface - * An interface representing ProvidersListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ProvidersListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The number of results to return. If null is passed - * returns all deployments. + * The number of results to return. If null is passed returns all deployments. */ top?: number; /** - * @member {string} [expand] The properties to include in the results. For - * example, use &$expand=metadata in the query string to retrieve resource - * provider metadata. To include property aliases in response, use + * The properties to include in the results. For example, use &$expand=metadata in the query + * string to retrieve resource provider metadata. To include property aliases in response, use * $expand=resourceTypes/aliases. */ expand?: string; } /** - * @interface - * An interface representing ProvidersGetOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ProvidersGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [expand] The $expand query parameter. For example, to - * include property aliases in response, use $expand=resourceTypes/aliases. + * The $expand query parameter. For example, to include property aliases in response, use + * $expand=resourceTypes/aliases. */ expand?: string; } /** - * @interface - * An interface representing ResourcesListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ResourcesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation.

The - * properties you can use for eq (equals) or ne (not equals) are: location, - * resourceType, name, resourceGroup, identity, identity/principalId, plan, - * plan/publisher, plan/product, plan/name, plan/version, and + * The filter to apply on the operation.

The properties you can use for eq (equals) or ne + * (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, + * plan, plan/publisher, plan/product, plan/name, plan/version, and * plan/promotionCode.

For example, to filter by a resource type, use: - * $filter=resourceType eq 'Microsoft.Network/virtualNetworks'

You can - * use substringof(value, property) in the filter. The properties you can use - * for substring are: name 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 use are: - * substringof and/or resourceType, plan and plan/publisher and plan/name, - * identity and identity/principalId. + * $filter=resourceType eq 'Microsoft.Network/virtualNetworks'

You can use + * substringof(value, property) in the filter. The properties you can use for substring are: name + * 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 + * use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and + * identity/principalId. */ filter?: string; /** - * @member {string} [expand] The $expand query parameter. You can expand - * createdTime and changedTime. For example, to expand both properties, use - * $expand=changedTime,createdTime + * The $expand query parameter. You can expand createdTime and changedTime. For example, to + * expand both properties, use $expand=changedTime,createdTime */ expand?: string; /** - * @member {number} [top] The number of results to return. If null is passed, - * returns all resources. + * The number of results to return. If null is passed, returns all resources. */ top?: number; } /** - * @interface - * An interface representing ResourcesListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ResourcesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation.

The - * properties you can use for eq (equals) or ne (not equals) are: location, - * resourceType, name, resourceGroup, identity, identity/principalId, plan, - * plan/publisher, plan/product, plan/name, plan/version, and + * The filter to apply on the operation.

The properties you can use for eq (equals) or ne + * (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, + * plan, plan/publisher, plan/product, plan/name, plan/version, and * plan/promotionCode.

For example, to filter by a resource type, use: - * $filter=resourceType eq 'Microsoft.Network/virtualNetworks'

You can - * use substringof(value, property) in the filter. The properties you can use - * for substring are: name 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 use are: - * substringof and/or resourceType, plan and plan/publisher and plan/name, - * identity and identity/principalId. + * $filter=resourceType eq 'Microsoft.Network/virtualNetworks'

You can use + * substringof(value, property) in the filter. The properties you can use for substring are: name + * 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 + * use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and + * identity/principalId. */ filter?: string; /** - * @member {string} [expand] The $expand query parameter. You can expand - * createdTime and changedTime. For example, to expand both properties, use - * $expand=changedTime,createdTime + * The $expand query parameter. You can expand createdTime and changedTime. For example, to + * expand both properties, use $expand=changedTime,createdTime */ expand?: string; /** - * @member {number} [top] The number of results to return. If null is passed, - * returns all resource groups. + * The number of results to return. If null is passed, returns all resource groups. */ top?: number; } /** - * @interface - * An interface representing ResourceGroupsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ResourceGroupsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation.

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' + * The filter to apply on the operation.

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' */ filter?: string; /** - * @member {number} [top] The number of results to return. If null is passed, - * returns all resource groups. + * The number of results to return. If null is passed, returns all resource groups. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams extends msRest.RequestOptionsBase { + /** + * The number of results to return. */ top?: number; } /** - * @interface - * An interface representing DeploymentOperationsListAtSubscriptionScopeOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DeploymentOperationsListAtSubscriptionScopeOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The number of results to return. + * The number of results to return. */ top?: number; } /** - * @interface - * An interface representing DeploymentOperationsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DeploymentOperationsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] The number of results to return. + * The number of results to return. */ top?: number; } /** - * @interface * An interface representing ResourceManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface ResourceManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Microsoft.Resources operations. It contains a - * list of operations and a URL link to get the next set of results. - * + * Result of the request to list Microsoft.Resources operations. It contains a list of operations + * and a URL link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the DeploymentListResult. * List of deployments. - * * @extends Array */ export interface DeploymentListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the ProviderListResult. * List of resource providers. - * * @extends Array */ export interface ProviderListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the ResourceListResult. * List of resource groups. - * * @extends Array */ export interface ResourceListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the ResourceGroupListResult. * List of resource groups. - * * @extends Array */ export interface ResourceGroupListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the TagsListResult. * List of subscription tags. - * * @extends Array */ export interface TagsListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the DeploymentOperationsListResult. * List of deployment operations. - * * @extends Array */ export interface DeploymentOperationsListResult extends Array { /** - * @member {string} [nextLink] 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.** + * 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.** */ readonly nextLink?: string; } @@ -1538,6 +1275,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1557,6 +1295,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1564,6 +1303,131 @@ export type OperationsListNextResponse = OperationListResult & { }; }; +/** + * Contains response data for the checkExistenceAtManagementGroupScope operation. + */ +export type DeploymentsCheckExistenceAtManagementGroupScopeResponse = { + /** + * The parsed response body. + */ + body: boolean; + + /** + * 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: boolean; + }; +}; + +/** + * Contains response data for the createOrUpdateAtManagementGroupScope operation. + */ +export type DeploymentsCreateOrUpdateAtManagementGroupScopeResponse = DeploymentExtended & { + /** + * 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: DeploymentExtended; + }; +}; + +/** + * Contains response data for the getAtManagementGroupScope operation. + */ +export type DeploymentsGetAtManagementGroupScopeResponse = DeploymentExtended & { + /** + * 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: DeploymentExtended; + }; +}; + +/** + * Contains response data for the validateAtManagementGroupScope operation. + */ +export type DeploymentsValidateAtManagementGroupScopeResponse = 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 exportTemplateAtManagementGroupScope operation. + */ +export type DeploymentsExportTemplateAtManagementGroupScopeResponse = DeploymentExportResult & { + /** + * 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: DeploymentExportResult; + }; +}; + +/** + * Contains response data for the listAtManagementGroupScope operation. + */ +export type DeploymentsListAtManagementGroupScopeResponse = DeploymentListResult & { + /** + * 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: DeploymentListResult; + }; +}; + /** * Contains response data for the checkExistenceAtSubscriptionScope operation. */ @@ -1572,6 +1436,7 @@ export type DeploymentsCheckExistenceAtSubscriptionScopeResponse = { * The parsed response body. */ body: boolean; + /** * The underlying HTTP response. */ @@ -1580,6 +1445,7 @@ export type DeploymentsCheckExistenceAtSubscriptionScopeResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1599,6 +1465,7 @@ export type DeploymentsCreateOrUpdateAtSubscriptionScopeResponse = DeploymentExt * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1618,6 +1485,7 @@ export type DeploymentsGetAtSubscriptionScopeResponse = DeploymentExtended & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1637,6 +1505,7 @@ export type DeploymentsValidateAtSubscriptionScopeResponse = DeploymentValidateR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1656,6 +1525,7 @@ export type DeploymentsExportTemplateAtSubscriptionScopeResponse = DeploymentExp * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1675,6 +1545,7 @@ export type DeploymentsListAtSubscriptionScopeResponse = DeploymentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1690,6 +1561,7 @@ export type DeploymentsCheckExistenceResponse = { * The parsed response body. */ body: boolean; + /** * The underlying HTTP response. */ @@ -1698,6 +1570,7 @@ export type DeploymentsCheckExistenceResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1717,6 +1590,7 @@ export type DeploymentsCreateOrUpdateResponse = DeploymentExtended & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1736,6 +1610,7 @@ export type DeploymentsGetResponse = DeploymentExtended & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1755,6 +1630,7 @@ export type DeploymentsValidateResponse = DeploymentValidateResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1774,6 +1650,7 @@ export type DeploymentsExportTemplateResponse = DeploymentExportResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1793,6 +1670,7 @@ export type DeploymentsListByResourceGroupResponse = DeploymentListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1800,6 +1678,26 @@ export type DeploymentsListByResourceGroupResponse = DeploymentListResult & { }; }; +/** + * Contains response data for the beginCreateOrUpdateAtManagementGroupScope operation. + */ +export type DeploymentsBeginCreateOrUpdateAtManagementGroupScopeResponse = DeploymentExtended & { + /** + * 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: DeploymentExtended; + }; +}; + /** * Contains response data for the beginCreateOrUpdateAtSubscriptionScope operation. */ @@ -1812,6 +1710,7 @@ export type DeploymentsBeginCreateOrUpdateAtSubscriptionScopeResponse = Deployme * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1831,6 +1730,7 @@ export type DeploymentsBeginCreateOrUpdateResponse = DeploymentExtended & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1838,6 +1738,26 @@ export type DeploymentsBeginCreateOrUpdateResponse = DeploymentExtended & { }; }; +/** + * Contains response data for the listAtManagementGroupScopeNext operation. + */ +export type DeploymentsListAtManagementGroupScopeNextResponse = DeploymentListResult & { + /** + * 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: DeploymentListResult; + }; +}; + /** * Contains response data for the listAtSubscriptionScopeNext operation. */ @@ -1850,6 +1770,7 @@ export type DeploymentsListAtSubscriptionScopeNextResponse = DeploymentListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1869,6 +1790,7 @@ export type DeploymentsListByResourceGroupNextResponse = DeploymentListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1888,6 +1810,7 @@ export type ProvidersUnregisterResponse = Provider & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1907,6 +1830,7 @@ export type ProvidersRegisterResponse = Provider & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1926,6 +1850,7 @@ export type ProvidersListResponse = ProviderListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1945,6 +1870,7 @@ export type ProvidersGetResponse = Provider & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1964,6 +1890,7 @@ export type ProvidersListNextResponse = ProviderListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1983,6 +1910,7 @@ export type ResourcesListByResourceGroupResponse = ResourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2002,6 +1930,7 @@ export type ResourcesListResponse = ResourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2017,6 +1946,7 @@ export type ResourcesCheckExistenceResponse = { * The parsed response body. */ body: boolean; + /** * The underlying HTTP response. */ @@ -2025,6 +1955,7 @@ export type ResourcesCheckExistenceResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2044,6 +1975,7 @@ export type ResourcesCreateOrUpdateResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2063,6 +1995,7 @@ export type ResourcesUpdateResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2082,6 +2015,7 @@ export type ResourcesGetResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2097,6 +2031,7 @@ export type ResourcesCheckExistenceByIdResponse = { * The parsed response body. */ body: boolean; + /** * The underlying HTTP response. */ @@ -2105,6 +2040,7 @@ export type ResourcesCheckExistenceByIdResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2124,6 +2060,7 @@ export type ResourcesCreateOrUpdateByIdResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2143,6 +2080,7 @@ export type ResourcesUpdateByIdResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2162,6 +2100,7 @@ export type ResourcesGetByIdResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2181,6 +2120,7 @@ export type ResourcesBeginCreateOrUpdateResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2200,6 +2140,7 @@ export type ResourcesBeginUpdateResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2219,6 +2160,7 @@ export type ResourcesBeginCreateOrUpdateByIdResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2238,6 +2180,7 @@ export type ResourcesBeginUpdateByIdResponse = GenericResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2257,6 +2200,7 @@ export type ResourcesListByResourceGroupNextResponse = ResourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2276,6 +2220,7 @@ export type ResourcesListNextResponse = ResourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2291,6 +2236,7 @@ export type ResourceGroupsCheckExistenceResponse = { * The parsed response body. */ body: boolean; + /** * The underlying HTTP response. */ @@ -2299,6 +2245,7 @@ export type ResourceGroupsCheckExistenceResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2318,6 +2265,7 @@ export type ResourceGroupsCreateOrUpdateResponse = ResourceGroup & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2337,6 +2285,7 @@ export type ResourceGroupsGetResponse = ResourceGroup & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2356,6 +2305,7 @@ export type ResourceGroupsUpdateResponse = ResourceGroup & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2375,6 +2325,7 @@ export type ResourceGroupsExportTemplateResponse = ResourceGroupExportResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2394,6 +2345,7 @@ export type ResourceGroupsListResponse = ResourceGroupListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2413,6 +2365,7 @@ export type ResourceGroupsListNextResponse = ResourceGroupListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2432,6 +2385,7 @@ export type TagsCreateOrUpdateValueResponse = TagValue & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2451,6 +2405,7 @@ export type TagsCreateOrUpdateResponse = TagDetails & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2470,6 +2425,7 @@ export type TagsListResponse = TagsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2489,6 +2445,7 @@ export type TagsListNextResponse = TagsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2496,6 +2453,46 @@ export type TagsListNextResponse = TagsListResult & { }; }; +/** + * Contains response data for the getAtManagementGroupScope operation. + */ +export type DeploymentOperationsGetAtManagementGroupScopeResponse = DeploymentOperation & { + /** + * 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: DeploymentOperation; + }; +}; + +/** + * Contains response data for the listAtManagementGroupScope operation. + */ +export type DeploymentOperationsListAtManagementGroupScopeResponse = DeploymentOperationsListResult & { + /** + * 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: DeploymentOperationsListResult; + }; +}; + /** * Contains response data for the getAtSubscriptionScope operation. */ @@ -2508,6 +2505,7 @@ export type DeploymentOperationsGetAtSubscriptionScopeResponse = DeploymentOpera * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2527,6 +2525,7 @@ export type DeploymentOperationsListAtSubscriptionScopeResponse = DeploymentOper * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2546,6 +2545,7 @@ export type DeploymentOperationsGetResponse = DeploymentOperation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2565,6 +2565,27 @@ export type DeploymentOperationsListResponse = DeploymentOperationsListResult & * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentOperationsListResult; + }; +}; + +/** + * Contains response data for the listAtManagementGroupScopeNext operation. + */ +export type DeploymentOperationsListAtManagementGroupScopeNextResponse = DeploymentOperationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2584,6 +2605,7 @@ export type DeploymentOperationsListAtSubscriptionScopeNextResponse = Deployment * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2603,6 +2625,7 @@ export type DeploymentOperationsListNextResponse = DeploymentOperationsListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/resources/arm-resources/src/models/mappers.ts b/sdk/resources/arm-resources/src/models/mappers.ts index b745d28d839b..46fa25eff450 100644 --- a/sdk/resources/arm-resources/src/models/mappers.ts +++ b/sdk/resources/arm-resources/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -414,6 +412,12 @@ export const ProviderResourceType: msRest.CompositeMapper = { } } }, + capabilities: { + serializedName: "capabilities", + type: { + name: "String" + } + }, properties: { serializedName: "properties", type: { @@ -455,6 +459,13 @@ export const Provider: msRest.CompositeMapper = { name: "String" } }, + registrationPolicy: { + readOnly: true, + serializedName: "registrationPolicy", + type: { + name: "String" + } + }, resourceTypes: { readOnly: true, serializedName: "resourceTypes", @@ -600,6 +611,13 @@ export const DeploymentPropertiesExtended: msRest.CompositeMapper = { name: "DateTime" } }, + duration: { + readOnly: true, + serializedName: "duration", + type: { + name: "String" + } + }, outputs: { serializedName: "outputs", type: { @@ -1342,6 +1360,13 @@ export const DeploymentOperationProperties: msRest.CompositeMapper = { name: "DateTime" } }, + duration: { + readOnly: true, + serializedName: "duration", + type: { + name: "String" + } + }, serviceRequestId: { readOnly: true, serializedName: "serviceRequestId", diff --git a/sdk/resources/arm-resources/src/models/operationsMappers.ts b/sdk/resources/arm-resources/src/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/resources/arm-resources/src/models/operationsMappers.ts +++ b/sdk/resources/arm-resources/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/src/models/parameters.ts b/sdk/resources/arm-resources/src/models/parameters.ts index 6cdb760d5157..1b4e8042a818 100644 --- a/sdk/resources/arm-resources/src/models/parameters.ts +++ b/sdk/resources/arm-resources/src/models/parameters.ts @@ -69,6 +69,20 @@ export const filter: msRest.OperationQueryParameter = { } } }; +export const groupId: msRest.OperationURLParameter = { + parameterPath: "groupId", + mapper: { + required: true, + serializedName: "groupId", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/resources/arm-resources/src/models/providersMappers.ts b/sdk/resources/arm-resources/src/models/providersMappers.ts index 98f3b160d8f5..53db8ad5cb46 100644 --- a/sdk/resources/arm-resources/src/models/providersMappers.ts +++ b/sdk/resources/arm-resources/src/models/providersMappers.ts @@ -1,19 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - Provider, - ProviderResourceType, - AliasType, AliasPathType, + AliasType, CloudError, - ProviderListResult + Provider, + ProviderListResult, + ProviderResourceType } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts b/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts index 4806ec8af2df..271737c99c73 100644 --- a/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts +++ b/sdk/resources/arm-resources/src/models/resourceGroupsMappers.ts @@ -1,43 +1,40 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - CloudError, - ResourceGroup, + AliasPathType, + AliasType, BaseResource, - ResourceGroupProperties, - ResourceGroupPatchable, - ExportTemplateRequest, - ResourceGroupExportResult, - ResourceManagementErrorWithDetails, - ResourceGroupListResult, + BasicDependency, + CloudError, + DebugSetting, + Dependency, DeploymentExtended, DeploymentPropertiesExtended, + ExportTemplateRequest, + GenericResource, + Identity, + IdentityUserAssignedIdentitiesValue, + OnErrorDeploymentExtended, + ParametersLink, + Plan, Provider, ProviderResourceType, - AliasType, - AliasPathType, - Dependency, - BasicDependency, - TemplateLink, - ParametersLink, - DebugSetting, - OnErrorDeploymentExtended, - TagValue, - TagCount, Resource, - SubResource, - GenericResource, - Plan, + ResourceGroup, + ResourceGroupExportResult, + ResourceGroupListResult, + ResourceGroupPatchable, + ResourceGroupProperties, + ResourceManagementErrorWithDetails, Sku, - Identity, - IdentityUserAssignedIdentitiesValue + SubResource, + TagCount, + 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 ab25fa0e3fca..b1e5a8e07cd3 100644 --- a/sdk/resources/arm-resources/src/models/resourcesMappers.ts +++ b/sdk/resources/arm-resources/src/models/resourcesMappers.ts @@ -1,40 +1,37 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ResourceListResult, - GenericResource, - Resource, + AliasPathType, + AliasType, BaseResource, - Plan, - Sku, - Identity, - IdentityUserAssignedIdentitiesValue, + BasicDependency, CloudError, - ResourcesMoveInfo, + DebugSetting, + Dependency, DeploymentExtended, DeploymentPropertiesExtended, + GenericResource, + Identity, + IdentityUserAssignedIdentitiesValue, + OnErrorDeploymentExtended, + ParametersLink, + Plan, Provider, ProviderResourceType, - AliasType, - AliasPathType, - Dependency, - BasicDependency, - TemplateLink, - ParametersLink, - DebugSetting, - OnErrorDeploymentExtended, + Resource, ResourceGroup, ResourceGroupProperties, - TagValue, + ResourceListResult, + ResourcesMoveInfo, + Sku, + SubResource, TagCount, - SubResource + TagValue, + TemplateLink } from "../models/mappers"; - diff --git a/sdk/resources/arm-resources/src/models/tagsMappers.ts b/sdk/resources/arm-resources/src/models/tagsMappers.ts index 01caec9196c7..cd12423f1358 100644 --- a/sdk/resources/arm-resources/src/models/tagsMappers.ts +++ b/sdk/resources/arm-resources/src/models/tagsMappers.ts @@ -1,40 +1,37 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - CloudError, - TagValue, + AliasPathType, + AliasType, BaseResource, - TagCount, - TagDetails, - TagsListResult, + BasicDependency, + CloudError, + DebugSetting, + Dependency, DeploymentExtended, DeploymentPropertiesExtended, + GenericResource, + Identity, + IdentityUserAssignedIdentitiesValue, + OnErrorDeploymentExtended, + ParametersLink, + Plan, Provider, ProviderResourceType, - AliasType, - AliasPathType, - Dependency, - BasicDependency, - TemplateLink, - ParametersLink, - DebugSetting, - OnErrorDeploymentExtended, + Resource, ResourceGroup, ResourceGroupProperties, - Resource, - SubResource, - GenericResource, - Plan, Sku, - Identity, - IdentityUserAssignedIdentitiesValue + SubResource, + TagCount, + TagDetails, + TagsListResult, + 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 bd1b8fd5d95c..5d7fa983204b 100644 --- a/sdk/resources/arm-resources/src/operations/deploymentOperations.ts +++ b/sdk/resources/arm-resources/src/operations/deploymentOperations.ts @@ -26,6 +26,74 @@ export class DeploymentOperations { this.client = client; } + /** + * Gets a deployments operation. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param operationId The ID of the operation to get. + * @param [options] The optional parameters + * @returns Promise + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param operationId The ID of the operation to get. + * @param callback The callback + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param operationId The ID of the operation to get. + * @param options The optional parameters + * @param callback The callback + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + operationId, + options + }, + getAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + + /** + * Gets all deployments operations for a deployment. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param callback The callback + */ + listAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + listAtManagementGroupScope(groupId: string, deploymentName: string, options: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + options + }, + listAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + /** * Gets a deployments operation. * @param deploymentName The name of the deployment. @@ -60,18 +128,18 @@ export class DeploymentOperations { /** * Gets all deployments operations for a deployment. - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ listAtSubscriptionScope(deploymentName: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams): Promise; /** - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param callback The callback */ listAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -125,20 +193,20 @@ export class DeploymentOperations { /** * Gets all deployments operations for a deployment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, deploymentName: string, options?: Models.DeploymentOperationsListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param callback The callback */ list(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment with the operation to get. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -154,6 +222,34 @@ export class DeploymentOperations { callback) as Promise; } + /** + * Gets all deployments operations for a deployment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAtManagementGroupScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAtManagementGroupScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAtManagementGroupScopeNextOperationSpec, + callback) as Promise; + } + /** * Gets all deployments operations for a deployment. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -213,6 +309,56 @@ export class DeploymentOperations { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentOperation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentOperationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const getAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", @@ -315,6 +461,27 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const listAtManagementGroupScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentOperationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listAtSubscriptionScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/resources/arm-resources/src/operations/deployments.ts b/sdk/resources/arm-resources/src/operations/deployments.ts index 054bcaec8ae4..6fa13c2fc872 100644 --- a/sdk/resources/arm-resources/src/operations/deployments.ts +++ b/sdk/resources/arm-resources/src/operations/deployments.ts @@ -36,7 +36,237 @@ 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 deploymentName The name of the deployment to delete. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + deleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAtManagementGroupScope(groupId,deploymentName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Checks whether the deployment exists. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param callback The callback + */ + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + options + }, + checkExistenceAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + + /** + * You can provide the template and parameters directly in the request or link to JSON files. + * @summary Deploys resources at management group scope. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param parameters Additional parameters supplied to the operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateAtManagementGroupScope(groupId,deploymentName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets a deployment. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param callback The callback + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + getAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + options + }, + getAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + + /** + * You can cancel a deployment only if the provisioningState is Accepted or Running. After the + * deployment is canceled, the provisioningState is set to Canceled. Canceling a template + * deployment stops the currently running template deployment and leaves the resources partially + * deployed. + * @summary Cancels a currently running template deployment. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param callback The callback + */ + cancelAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + options + }, + cancelAtManagementGroupScopeOperationSpec, + callback); + } + + /** + * 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 + */ + 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; + } + + /** + * Exports the template used for specified deployment. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param callback The callback + */ + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param options The optional parameters + * @param callback The callback + */ + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + deploymentName, + options + }, + exportTemplateAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + + /** + * Get all the deployments for a management group. + * @param groupId The management group ID. + * @param [options] The optional parameters + * @returns Promise + */ + listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams): Promise; + /** + * @param groupId The management group ID. + * @param callback The callback + */ + listAtManagementGroupScope(groupId: string, callback: msRest.ServiceCallback): void; + /** + * @param groupId The management group ID. + * @param options The optional parameters + * @param callback The callback + */ + listAtManagementGroupScope(groupId: string, options: Models.DeploymentsListAtManagementGroupScopeOptionalParams, callback: msRest.ServiceCallback): void; + listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupId, + options + }, + listAtManagementGroupScopeOperationSpec, + callback) as Promise; + } + + /** + * 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 + * returns a status of 202 until the template deployment is successfully deleted. The Location + * response header contains the URI that is used to obtain the status of the process. While the + * process is running, a call to the URI in the Location header returns a status of 202. When the + * 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 deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ @@ -47,18 +277,18 @@ export class Deployments { /** * Checks whether the deployment exists. - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ checkExistenceAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param callback The callback */ checkExistenceAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -88,18 +318,18 @@ export class Deployments { /** * Gets a deployment. - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ getAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param callback The callback */ getAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -120,18 +350,18 @@ export class Deployments { * deployment stops the currently running template deployment and leaves the resources partially * deployed. * @summary Cancels a currently running template deployment. - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ cancelAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param callback The callback */ cancelAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -181,18 +411,18 @@ export class Deployments { /** * Exports the template used for specified deployment. - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ exportTemplateAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param callback The callback */ exportTemplateAtSubscriptionScope(deploymentName: string, callback: msRest.ServiceCallback): void; /** - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -243,7 +473,7 @@ export class Deployments { * @summary Deletes a deployment from the deployment history. * @param resourceGroupName The name of the resource group with the deployment to delete. The name * is case insensitive. - * @param deploymentName The name of the deployment to delete. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ @@ -256,7 +486,7 @@ export class Deployments { * Checks whether the deployment exists. * @param resourceGroupName The name of the resource group with the deployment to check. The name * is case insensitive. - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ @@ -264,14 +494,14 @@ export class Deployments { /** * @param resourceGroupName The name of the resource group with the deployment to check. The name * is case insensitive. - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param callback The callback */ checkExistence(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group with the deployment to check. The name * is case insensitive. - * @param deploymentName The name of the deployment to check. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -305,20 +535,20 @@ export class Deployments { /** * Gets a deployment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param callback The callback */ get(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to get. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -341,20 +571,20 @@ export class Deployments { * partially deployed. * @summary Cancels a currently running template deployment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ cancel(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param callback The callback */ cancel(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment to cancel. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -413,20 +643,20 @@ export class Deployments { /** * Exports the template used for specified deployment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ exportTemplate(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param callback The callback */ exportTemplate(resourceGroupName: string, deploymentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param deploymentName The name of the deployment from which to get the template. + * @param deploymentName The name of the deployment. * @param options The optional parameters * @param callback The callback */ @@ -482,7 +712,53 @@ 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 deploymentName The name of the deployment to delete. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + groupId, + deploymentName, + options + }, + beginDeleteAtManagementGroupScopeOperationSpec, + options); + } + + /** + * You can provide the template and parameters directly in the request or link to JSON files. + * @summary Deploys resources at management group scope. + * @param groupId The management group ID. + * @param deploymentName The name of the deployment. + * @param parameters Additional parameters supplied to the operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + groupId, + deploymentName, + parameters, + options + }, + beginCreateOrUpdateAtManagementGroupScopeOperationSpec, + 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 + * returns a status of 202 until the template deployment is successfully deleted. The Location + * response header contains the URI that is used to obtain the status of the process. While the + * process is running, a call to the URI in the Location header returns a status of 202. When the + * 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 deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ @@ -527,7 +803,7 @@ export class Deployments { * @summary Deletes a deployment from the deployment history. * @param resourceGroupName The name of the resource group with the deployment to delete. The name * is case insensitive. - * @param deploymentName The name of the deployment to delete. + * @param deploymentName The name of the deployment. * @param [options] The optional parameters * @returns Promise */ @@ -564,6 +840,34 @@ export class Deployments { options); } + /** + * Get all the deployments for a management group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAtManagementGroupScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAtManagementGroupScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAtManagementGroupScopeNextOperationSpec, + callback) as Promise; + } + /** * Get all the deployments for a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -623,6 +927,158 @@ export class Deployments { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const checkExistenceAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentExtended + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const cancelAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const validateAtManagementGroupScopeOperationSpec: 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", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentExportResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/", + urlParameters: [ + Parameters.groupId + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const checkExistenceAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", @@ -933,6 +1389,63 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; +const beginDeleteAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateAtManagementGroupScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + urlParameters: [ + Parameters.groupId, + Parameters.deploymentName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Deployment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeploymentExtended + }, + 201: { + bodyMapper: Mappers.DeploymentExtended + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginDeleteAtSubscriptionScopeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", @@ -1049,6 +1562,27 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const listAtManagementGroupScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listAtSubscriptionScopeNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/resources/arm-resources/src/resourceManagementClientContext.ts b/sdk/resources/arm-resources/src/resourceManagementClientContext.ts index 121eb9e6e1c8..31a9fd844814 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 = '2018-05-01'; + this.apiVersion = '2019-05-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";