Generate @azure/arm-resources package (#3432)

* Generate @azure/arm-resources package

* Update versions
This commit is contained in:
Kamil Pajdzik 2019-06-04 09:29:56 -07:00 коммит произвёл GitHub
Родитель 582d163118
Коммит f6c4bd5c8d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
57 изменённых файлов: 2115 добавлений и 1486 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/features/arm-features/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-features",
"author": "Microsoft Corporation",
"description": "FeatureClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.2",
"version": "1.0.3",
"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,13 +26,13 @@
"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/tree/master/sdk/features/arm-features",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-features";
const packageVersion = "1.0.2";
const packageVersion = "1.0.3";
export class FeatureClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;

Просмотреть файл

@ -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";

Просмотреть файл

@ -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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* @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<FeatureResult>
*/
export interface FeatureOperationsListResult extends Array<FeatureResult> {
/**
* @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
*/

Просмотреть файл

@ -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";

Просмотреть файл

@ -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

Просмотреть файл

@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/links/arm-links/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-links",
"author": "Microsoft Corporation",
"description": "ManagementLinkClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.1",
"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,13 +26,13 @@
"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/tree/master/sdk/links/arm-links",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-links";
const packageVersion = "1.0.1";
const packageVersion = "1.0.2";
export class ManagementLinkClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;

Просмотреть файл

@ -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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* @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<ResourceLink>
*/
export interface ResourceLinkResult extends Array<ResourceLink> {
/**
* @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
*/

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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

Просмотреть файл

@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/locks/arm-locks/README.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/locks/arm-locks/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-locks",
"author": "Microsoft Corporation",
"description": "ManagementLockClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.1",
"version": "1.1.0",
"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,13 +26,13 @@
"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/tree/master/sdk/locks/arm-locks",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-locks";
const packageVersion = "1.0.1";
const packageVersion = "1.1.0";
export class ManagementLockClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;

Просмотреть файл

@ -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";

Просмотреть файл

@ -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;
}
/**
* Optional Parameters.
*/
export interface ManagementLocksListByScopeOptionalParams extends msRest.RequestOptionsBase {
/**
* The filter to apply on the operation.
*/
filter?: string;
}
/**
* @interface
* An interface representing ManagementLockClientOptions.
* @extends AzureServiceClientOptions
*/
export interface ManagementLockClientOptions extends AzureServiceClientOptions {
/**
* @member {string} [baseUri]
*/
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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* @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<ManagementLockObject>
*/
export interface ManagementLockListResult extends Array<ManagementLockObject> {
/**
* @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
*/

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -610,6 +610,46 @@ export class ManagementLocks {
callback) as Promise<Models.ManagementLocksListAtSubscriptionLevelResponse>;
}
/**
* 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<Models.ManagementLocksListByScopeResponse>
*/
listByScope(scope: string, options?: Models.ManagementLocksListByScopeOptionalParams): Promise<Models.ManagementLocksListByScopeResponse>;
/**
* @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<Models.ManagementLockListResult>): 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<Models.ManagementLockListResult>): void;
listByScope(scope: string, options?: Models.ManagementLocksListByScopeOptionalParams | msRest.ServiceCallback<Models.ManagementLockListResult>, callback?: msRest.ServiceCallback<Models.ManagementLockListResult>): Promise<Models.ManagementLocksListByScopeResponse> {
return this.client.sendOperationRequest(
{
scope,
options
},
listByScopeOperationSpec,
callback) as Promise<Models.ManagementLocksListByScopeResponse>;
}
/**
* 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<Models.ManagementLocksListAtSubscriptionLevelNextResponse>;
}
/**
* 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<Models.ManagementLocksListByScopeNextResponse>
*/
listByScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksListByScopeNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listByScopeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): 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<Models.ManagementLockListResult>): void;
listByScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagementLockListResult>, callback?: msRest.ServiceCallback<Models.ManagementLockListResult>): Promise<Models.ManagementLocksListByScopeNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listByScopeNextOperationSpec,
callback) as Promise<Models.ManagementLocksListByScopeNextResponse>;
}
}
// 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
};

Просмотреть файл

@ -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

Просмотреть файл

@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/managedapplications/arm-managedapplications/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-managedapplications",
"author": "Microsoft Corporation",
"description": "ManagedApplicationClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.1",
"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,13 +26,13 @@
"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/tree/master/sdk/managedapplications/arm-managedapplications",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-managedapplications";
const packageVersion = "1.0.1";
const packageVersion = "1.0.2";
export class ManagedApplicationClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;

Просмотреть файл

@ -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 {
ApplianceDefinition,
GenericResource,
Resource,
BaseResource,
Sku,
Identity,
ApplianceProviderAuthorization,
ApplianceArtifact,
ErrorResponse,
ApplianceDefinitionListResult,
Appliance,
Plan,
ApplianceArtifact,
ApplianceDefinition,
ApplianceDefinitionListResult,
AppliancePatchable,
PlanPatchable
ApplianceProviderAuthorization,
BaseResource,
ErrorResponse,
GenericResource,
Identity,
Plan,
PlanPatchable,
Resource,
Sku
} from "../models/mappers";

Просмотреть файл

@ -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,
BaseResource,
Sku,
Identity,
Plan,
ErrorResponse,
ApplianceArtifact,
ApplianceDefinition,
ApplianceListResult,
AppliancePatchable,
PlanPatchable,
ApplianceDefinition,
ApplianceProviderAuthorization,
ApplianceArtifact
BaseResource,
ErrorResponse,
GenericResource,
Identity,
Plan,
PlanPatchable,
Resource,
Sku
} from "../models/mappers";

Просмотреть файл

@ -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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* @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<Appliance>
*/
export interface ApplianceListResult extends Array<Appliance> {
/**
* @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<ApplianceDefinition>
*/
export interface ApplianceDefinitionListResult extends Array<ApplianceDefinition> {
/**
* @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
*/

Просмотреть файл

@ -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";

Просмотреть файл

@ -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

Просмотреть файл

@ -99,5 +99,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/policy/arm-policy/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-policy",
"author": "Microsoft Corporation",
"description": "PolicyClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.1",
"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,13 +26,13 @@
"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/tree/master/sdk/policy/arm-policy",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -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<PolicyAssignment>
*/
export interface PolicyAssignmentListResult extends Array<PolicyAssignment> {
/**
* @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<PolicyDefinition>
*/
export interface PolicyDefinitionListResult extends Array<PolicyDefinition> {
/**
* @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<PolicySetDefinition>
*/
export interface PolicySetDefinitionListResult extends Array<PolicySetDefinition> {
/**
* @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
*/

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-policy";
const packageVersion = "1.0.1";
const packageVersion = "1.0.2";
export class PolicyClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;

Просмотреть файл

@ -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

Просмотреть файл

@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resources/arm-resources/README.png)

Просмотреть файл

@ -2,10 +2,10 @@
"name": "@azure/arm-resources",
"author": "Microsoft Corporation",
"description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.1",
"version": "1.1.0",
"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,13 +26,13 @@
"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/tree/master/sdk/resources/arm-resources",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@ -54,5 +54,5 @@
"prepack": "npm install && npm run build"
},
"sideEffects": false,
"authPublish": true
"autoPublish": true
}

Просмотреть файл

@ -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";

Просмотреть файл

@ -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 {
CloudError,
Deployment,
DeploymentProperties,
TemplateLink,
ParametersLink,
DebugSetting,
OnErrorDeployment,
DeploymentExtended,
AliasPathType,
AliasType,
BaseResource,
BasicDependency,
CloudError,
DebugSetting,
Dependency,
Deployment,
DeploymentExportResult,
DeploymentExtended,
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";

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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",

Просмотреть файл

@ -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";

Просмотреть файл

@ -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: {

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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";

Просмотреть файл

@ -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,
BasicDependency,
CloudError,
DebugSetting,
Dependency,
DeploymentExtended,
DeploymentPropertiesExtended,
GenericResource,
Identity,
IdentityUserAssignedIdentitiesValue,
OnErrorDeploymentExtended,
ParametersLink,
Plan,
Provider,
ProviderResourceType,
Resource,
ResourceGroup,
ResourceGroupProperties,
Sku,
SubResource,
TagCount,
TagDetails,
TagsListResult,
DeploymentExtended,
DeploymentPropertiesExtended,
Provider,
ProviderResourceType,
AliasType,
AliasPathType,
Dependency,
BasicDependency,
TemplateLink,
ParametersLink,
DebugSetting,
OnErrorDeploymentExtended,
ResourceGroup,
ResourceGroupProperties,
Resource,
SubResource,
GenericResource,
Plan,
Sku,
Identity,
IdentityUserAssignedIdentitiesValue
TagValue,
TemplateLink
} from "../models/mappers";

Просмотреть файл

@ -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<Models.DeploymentOperationsGetAtManagementGroupScopeResponse>
*/
getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentOperationsGetAtManagementGroupScopeResponse>;
/**
* @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<Models.DeploymentOperation>): 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<Models.DeploymentOperation>): void;
getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentOperation>, callback?: msRest.ServiceCallback<Models.DeploymentOperation>): Promise<Models.DeploymentOperationsGetAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
operationId,
options
},
getAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentOperationsGetAtManagementGroupScopeResponse>;
}
/**
* 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<Models.DeploymentOperationsListAtManagementGroupScopeResponse>
*/
listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams): Promise<Models.DeploymentOperationsListAtManagementGroupScopeResponse>;
/**
* @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<Models.DeploymentOperationsListResult>): 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<Models.DeploymentOperationsListResult>): void;
listAtManagementGroupScope(groupId: string, deploymentName: string, options?: Models.DeploymentOperationsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback<Models.DeploymentOperationsListResult>, callback?: msRest.ServiceCallback<Models.DeploymentOperationsListResult>): Promise<Models.DeploymentOperationsListAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
options
},
listAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentOperationsListAtManagementGroupScopeResponse>;
}
/**
* 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<Models.DeploymentOperationsListAtSubscriptionScopeResponse>
*/
listAtSubscriptionScope(deploymentName: string, options?: Models.DeploymentOperationsListAtSubscriptionScopeOptionalParams): Promise<Models.DeploymentOperationsListAtSubscriptionScopeResponse>;
/**
* @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<Models.DeploymentOperationsListResult>): 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<Models.DeploymentOperationsListResponse>
*/
list(resourceGroupName: string, deploymentName: string, options?: Models.DeploymentOperationsListOptionalParams): Promise<Models.DeploymentOperationsListResponse>;
/**
* @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<Models.DeploymentOperationsListResult>): 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<Models.DeploymentOperationsListResponse>;
}
/**
* 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<Models.DeploymentOperationsListAtManagementGroupScopeNextResponse>
*/
listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentOperationsListAtManagementGroupScopeNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listAtManagementGroupScopeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.DeploymentOperationsListResult>): 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<Models.DeploymentOperationsListResult>): void;
listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentOperationsListResult>, callback?: msRest.ServiceCallback<Models.DeploymentOperationsListResult>): Promise<Models.DeploymentOperationsListAtManagementGroupScopeNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listAtManagementGroupScopeNextOperationSpec,
callback) as Promise<Models.DeploymentOperationsListAtManagementGroupScopeNextResponse>;
}
/**
* 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",

Просмотреть файл

@ -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<msRest.RestResponse>
*/
deleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
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<Models.DeploymentsCheckExistenceAtManagementGroupScopeResponse>
*/
checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsCheckExistenceAtManagementGroupScopeResponse>;
/**
* @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<boolean>): 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<boolean>): void;
checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<boolean>, callback?: msRest.ServiceCallback<boolean>): Promise<Models.DeploymentsCheckExistenceAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
options
},
checkExistenceAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentsCheckExistenceAtManagementGroupScopeResponse>;
}
/**
* 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<Models.DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>
*/
createOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsCreateOrUpdateAtManagementGroupScopeResponse> {
return this.beginCreateOrUpdateAtManagementGroupScope(groupId,deploymentName,parameters,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>;
}
/**
* Gets a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param [options] The optional parameters
* @returns Promise<Models.DeploymentsGetAtManagementGroupScopeResponse>
*/
getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsGetAtManagementGroupScopeResponse>;
/**
* @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<Models.DeploymentExtended>): 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<Models.DeploymentExtended>): void;
getAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentExtended>, callback?: msRest.ServiceCallback<Models.DeploymentExtended>): Promise<Models.DeploymentsGetAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
options
},
getAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentsGetAtManagementGroupScopeResponse>;
}
/**
* 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<msRest.RestResponse>
*/
cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @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>): 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>): void;
cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
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<Models.DeploymentsValidateAtManagementGroupScopeResponse>
*/
validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsValidateAtManagementGroupScopeResponse>;
/**
* @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<Models.DeploymentValidateResult>): 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<Models.DeploymentValidateResult>): void;
validateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentValidateResult>, callback?: msRest.ServiceCallback<Models.DeploymentValidateResult>): Promise<Models.DeploymentsValidateAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
parameters,
options
},
validateAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentsValidateAtManagementGroupScopeResponse>;
}
/**
* 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<Models.DeploymentsExportTemplateAtManagementGroupScopeResponse>
*/
exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsExportTemplateAtManagementGroupScopeResponse>;
/**
* @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<Models.DeploymentExportResult>): 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<Models.DeploymentExportResult>): void;
exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentExportResult>, callback?: msRest.ServiceCallback<Models.DeploymentExportResult>): Promise<Models.DeploymentsExportTemplateAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
deploymentName,
options
},
exportTemplateAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentsExportTemplateAtManagementGroupScopeResponse>;
}
/**
* Get all the deployments for a management group.
* @param groupId The management group ID.
* @param [options] The optional parameters
* @returns Promise<Models.DeploymentsListAtManagementGroupScopeResponse>
*/
listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams): Promise<Models.DeploymentsListAtManagementGroupScopeResponse>;
/**
* @param groupId The management group ID.
* @param callback The callback
*/
listAtManagementGroupScope(groupId: string, callback: msRest.ServiceCallback<Models.DeploymentListResult>): 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<Models.DeploymentListResult>): void;
listAtManagementGroupScope(groupId: string, options?: Models.DeploymentsListAtManagementGroupScopeOptionalParams | msRest.ServiceCallback<Models.DeploymentListResult>, callback?: msRest.ServiceCallback<Models.DeploymentListResult>): Promise<Models.DeploymentsListAtManagementGroupScopeResponse> {
return this.client.sendOperationRequest(
{
groupId,
options
},
listAtManagementGroupScopeOperationSpec,
callback) as Promise<Models.DeploymentsListAtManagementGroupScopeResponse>;
}
/**
* 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<msRest.RestResponse>
*/
@ -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<Models.DeploymentsCheckExistenceAtSubscriptionScopeResponse>
*/
checkExistenceAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsCheckExistenceAtSubscriptionScopeResponse>;
/**
* @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<boolean>): 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<Models.DeploymentsGetAtSubscriptionScopeResponse>
*/
getAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsGetAtSubscriptionScopeResponse>;
/**
* @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<Models.DeploymentExtended>): 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<msRest.RestResponse>
*/
cancelAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @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>): 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<Models.DeploymentsExportTemplateAtSubscriptionScopeResponse>
*/
exportTemplateAtSubscriptionScope(deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsExportTemplateAtSubscriptionScopeResponse>;
/**
* @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<Models.DeploymentExportResult>): 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<msRest.RestResponse>
*/
@ -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<Models.DeploymentsCheckExistenceResponse>
*/
@ -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<boolean>): 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<Models.DeploymentsGetResponse>
*/
get(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsGetResponse>;
/**
* @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<Models.DeploymentExtended>): 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<msRest.RestResponse>
*/
cancel(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @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>): 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<Models.DeploymentsExportTemplateResponse>
*/
exportTemplate(resourceGroupName: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsExportTemplateResponse>;
/**
* @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<Models.DeploymentExportResult>): 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<msRestAzure.LROPoller>
*/
beginDeleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
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<msRestAzure.LROPoller>
*/
beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: Models.Deployment, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
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<msRestAzure.LROPoller>
*/
@ -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<msRestAzure.LROPoller>
*/
@ -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<Models.DeploymentsListAtManagementGroupScopeNextResponse>
*/
listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.DeploymentsListAtManagementGroupScopeNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listAtManagementGroupScopeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.DeploymentListResult>): 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<Models.DeploymentListResult>): void;
listAtManagementGroupScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeploymentListResult>, callback?: msRest.ServiceCallback<Models.DeploymentListResult>): Promise<Models.DeploymentsListAtManagementGroupScopeNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listAtManagementGroupScopeNextOperationSpec,
callback) as Promise<Models.DeploymentsListAtManagementGroupScopeNextResponse>;
}
/**
* 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",

Просмотреть файл

@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-resources";
const packageVersion = "1.0.1";
const packageVersion = "1.1.0";
export class ResourceManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
@ -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";