Initial commit

This commit is contained in:
schihei committed 2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 files changed
+5280367

No files matched your search

@@ -0,0 +1,168 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { DeploymentOperations } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { DeploymentOperation, DeploymentOperationsListAtScopeOptionalParams, DeploymentOperationsListAtTenantScopeOptionalParams, DeploymentOperationsListAtManagementGroupScopeOptionalParams, DeploymentOperationsListAtSubscriptionScopeOptionalParams, DeploymentOperationsListOptionalParams, DeploymentOperationsGetAtScopeOptionalParams, DeploymentOperationsGetAtScopeResponse, DeploymentOperationsGetAtTenantScopeOptionalParams, DeploymentOperationsGetAtTenantScopeResponse, DeploymentOperationsGetAtManagementGroupScopeOptionalParams, DeploymentOperationsGetAtManagementGroupScopeResponse, DeploymentOperationsGetAtSubscriptionScopeOptionalParams, DeploymentOperationsGetAtSubscriptionScopeResponse, DeploymentOperationsGetOptionalParams, DeploymentOperationsGetResponse } from "../models";
/** Class containing DeploymentOperations operations. */
export declare class DeploymentOperationsImpl implements DeploymentOperations {
private readonly client;
/**
* Initialize a new instance of the class DeploymentOperations class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Gets all deployments operations for a deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtScope(scope: string, deploymentName: string, options?: DeploymentOperationsListAtScopeOptionalParams): PagedAsyncIterableIterator<DeploymentOperation>;
private listAtScopePagingPage;
private listAtScopePagingAll;
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtTenantScope(deploymentName: string, options?: DeploymentOperationsListAtTenantScopeOptionalParams): PagedAsyncIterableIterator<DeploymentOperation>;
private listAtTenantScopePagingPage;
private listAtTenantScopePagingAll;
/**
* Gets all deployments operations for a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams): PagedAsyncIterableIterator<DeploymentOperation>;
private listAtManagementGroupScopePagingPage;
private listAtManagementGroupScopePagingAll;
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtSubscriptionScope(deploymentName: string, options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams): PagedAsyncIterableIterator<DeploymentOperation>;
private listAtSubscriptionScopePagingPage;
private listAtSubscriptionScopePagingAll;
/**
* 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.
* @param options The options parameters.
*/
list(resourceGroupName: string, deploymentName: string, options?: DeploymentOperationsListOptionalParams): PagedAsyncIterableIterator<DeploymentOperation>;
private listPagingPage;
private listPagingAll;
/**
* Gets a deployments operation.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtScope(scope: string, deploymentName: string, operationId: string, options?: DeploymentOperationsGetAtScopeOptionalParams): Promise<DeploymentOperationsGetAtScopeResponse>;
/**
* Gets all deployments operations for a deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
private _listAtScope;
/**
* Gets a deployments operation.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtTenantScope(deploymentName: string, operationId: string, options?: DeploymentOperationsGetAtTenantScopeOptionalParams): Promise<DeploymentOperationsGetAtTenantScopeResponse>;
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
private _listAtTenantScope;
/**
* 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 options parameters.
*/
getAtManagementGroupScope(groupId: string, deploymentName: string, operationId: string, options?: DeploymentOperationsGetAtManagementGroupScopeOptionalParams): Promise<DeploymentOperationsGetAtManagementGroupScopeResponse>;
/**
* Gets all deployments operations for a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
private _listAtManagementGroupScope;
/**
* Gets a deployments operation.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtSubscriptionScope(deploymentName: string, operationId: string, options?: DeploymentOperationsGetAtSubscriptionScopeOptionalParams): Promise<DeploymentOperationsGetAtSubscriptionScopeResponse>;
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
private _listAtSubscriptionScope;
/**
* Gets a deployments operation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
get(resourceGroupName: string, deploymentName: string, operationId: string, options?: DeploymentOperationsGetOptionalParams): Promise<DeploymentOperationsGetResponse>;
/**
* 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.
* @param options The options parameters.
*/
private _list;
/**
* ListAtScopeNext
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtScope method.
* @param options The options parameters.
*/
private _listAtScopeNext;
/**
* ListAtTenantScopeNext
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
* @param options The options parameters.
*/
private _listAtTenantScopeNext;
/**
* ListAtManagementGroupScopeNext
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
* method.
* @param options The options parameters.
*/
private _listAtManagementGroupScopeNext;
/**
* ListAtSubscriptionScopeNext
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
* method.
* @param options The options parameters.
*/
private _listAtSubscriptionScopeNext;
/**
* ListNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=deploymentOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/deploymentOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,mBAAmB,EAEnB,6CAA6C,EAE7C,mDAAmD,EAEnD,4DAA4D,EAE5D,yDAAyD,EAEzD,sCAAsC,EACtC,4CAA4C,EAC5C,sCAAsC,EAEtC,kDAAkD,EAClD,4CAA4C,EAE5C,2DAA2D,EAC3D,qDAAqD,EAErD,wDAAwD,EACxD,kDAAkD,EAElD,qCAAqC,EACrC,+BAA+B,EAOhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;OAKG;IACI,WAAW,CAChB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,qBAAqB;YAoBrB,oBAAoB;IAcnC;;;;OAIG;IACI,iBAAiB,CACtB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,2BAA2B;YAkB3B,0BAA0B;IAYzC;;;;;OAKG;IACI,0BAA0B,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4DAA4D,GACrE,0BAA0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,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;;;;;;OAOG;IACH,OAAO,CAAC,+BAA+B;IAYvC;;;;;;OAMG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,721 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing DeploymentOperations operations. */
export class DeploymentOperationsImpl {
/**
* Initialize a new instance of the class DeploymentOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Gets all deployments operations for a deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtScope(scope, deploymentName, options) {
const iter = this.listAtScopePagingAll(scope, deploymentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listAtScopePagingPage(scope, deploymentName, options);
}
};
}
listAtScopePagingPage(scope, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
let result = yield __await(this._listAtScope(scope, deploymentName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listAtScopeNext(scope, deploymentName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listAtScopePagingAll(scope, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtScopePagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listAtScopePagingPage(scope, deploymentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtTenantScope(deploymentName, options) {
const iter = this.listAtTenantScopePagingAll(deploymentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listAtTenantScopePagingPage(deploymentName, options);
}
};
}
listAtTenantScopePagingPage(deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
let result = yield __await(this._listAtTenantScope(deploymentName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listAtTenantScopeNext(deploymentName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listAtTenantScopePagingAll(deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtTenantScopePagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listAtTenantScopePagingPage(deploymentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Gets all deployments operations for a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtManagementGroupScope(groupId, deploymentName, options) {
const iter = this.listAtManagementGroupScopePagingAll(groupId, deploymentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options);
}
};
}
listAtManagementGroupScopePagingPage(groupId, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
let result = yield __await(this._listAtManagementGroupScope(groupId, deploymentName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listAtManagementGroupScopeNext(groupId, deploymentName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listAtManagementGroupScopePagingAll(groupId, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingAll_1() {
var e_3, _a;
try {
for (var _b = __asyncValues(this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_3) throw e_3.error; }
}
});
}
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
listAtSubscriptionScope(deploymentName, options) {
const iter = this.listAtSubscriptionScopePagingAll(deploymentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listAtSubscriptionScopePagingPage(deploymentName, options);
}
};
}
listAtSubscriptionScopePagingPage(deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
let result = yield __await(this._listAtSubscriptionScope(deploymentName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listAtSubscriptionScopeNext(deploymentName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listAtSubscriptionScopePagingAll(deploymentName, options) {
return __asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingAll_1() {
var e_4, _a;
try {
for (var _b = __asyncValues(this.listAtSubscriptionScopePagingPage(deploymentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_4) throw e_4.error; }
}
});
}
/**
* 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.
* @param options The options parameters.
*/
list(resourceGroupName, deploymentName, options) {
const iter = this.listPagingAll(resourceGroupName, deploymentName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, deploymentName, options);
}
};
}
listPagingPage(resourceGroupName, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, deploymentName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, deploymentName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, deploymentName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_5, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, deploymentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_5_1) { e_5 = { error: e_5_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_5) throw e_5.error; }
}
});
}
/**
* Gets a deployments operation.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtScope(scope, deploymentName, operationId, options) {
return this.client.sendOperationRequest({ scope, deploymentName, operationId, options }, getAtScopeOperationSpec);
}
/**
* Gets all deployments operations for a deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
_listAtScope(scope, deploymentName, options) {
return this.client.sendOperationRequest({ scope, deploymentName, options }, listAtScopeOperationSpec);
}
/**
* Gets a deployments operation.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtTenantScope(deploymentName, operationId, options) {
return this.client.sendOperationRequest({ deploymentName, operationId, options }, getAtTenantScopeOperationSpec);
}
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
_listAtTenantScope(deploymentName, options) {
return this.client.sendOperationRequest({ deploymentName, options }, listAtTenantScopeOperationSpec);
}
/**
* 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 options parameters.
*/
getAtManagementGroupScope(groupId, deploymentName, operationId, options) {
return this.client.sendOperationRequest({ groupId, deploymentName, operationId, options }, getAtManagementGroupScopeOperationSpec);
}
/**
* Gets all deployments operations for a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
_listAtManagementGroupScope(groupId, deploymentName, options) {
return this.client.sendOperationRequest({ groupId, deploymentName, options }, listAtManagementGroupScopeOperationSpec);
}
/**
* Gets a deployments operation.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
getAtSubscriptionScope(deploymentName, operationId, options) {
return this.client.sendOperationRequest({ deploymentName, operationId, options }, getAtSubscriptionScopeOperationSpec);
}
/**
* Gets all deployments operations for a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
_listAtSubscriptionScope(deploymentName, options) {
return this.client.sendOperationRequest({ deploymentName, options }, listAtSubscriptionScopeOperationSpec);
}
/**
* Gets a deployments operation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param operationId The ID of the operation to get.
* @param options The options parameters.
*/
get(resourceGroupName, deploymentName, operationId, options) {
return this.client.sendOperationRequest({ resourceGroupName, deploymentName, operationId, options }, getOperationSpec);
}
/**
* 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.
* @param options The options parameters.
*/
_list(resourceGroupName, deploymentName, options) {
return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, listOperationSpec);
}
/**
* ListAtScopeNext
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtScope method.
* @param options The options parameters.
*/
_listAtScopeNext(scope, deploymentName, nextLink, options) {
return this.client.sendOperationRequest({ scope, deploymentName, nextLink, options }, listAtScopeNextOperationSpec);
}
/**
* ListAtTenantScopeNext
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
* @param options The options parameters.
*/
_listAtTenantScopeNext(deploymentName, nextLink, options) {
return this.client.sendOperationRequest({ deploymentName, nextLink, options }, listAtTenantScopeNextOperationSpec);
}
/**
* ListAtManagementGroupScopeNext
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
* method.
* @param options The options parameters.
*/
_listAtManagementGroupScopeNext(groupId, deploymentName, nextLink, options) {
return this.client.sendOperationRequest({ groupId, deploymentName, nextLink, options }, listAtManagementGroupScopeNextOperationSpec);
}
/**
* ListAtSubscriptionScopeNext
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
* method.
* @param options The options parameters.
*/
_listAtSubscriptionScopeNext(deploymentName, nextLink, options) {
return this.client.sendOperationRequest({ deploymentName, nextLink, options }, listAtSubscriptionScopeNextOperationSpec);
}
/**
* ListNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, deploymentName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, deploymentName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperation
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.scope,
Parameters.deploymentName,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.scope,
Parameters.deploymentName
],
headerParameters: [Parameters.accept],
serializer
};
const getAtTenantScopeOperationSpec = {
path: "/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperation
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtTenantScopeOperationSpec = {
path: "/providers/Microsoft.Resources/deployments/{deploymentName}/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [Parameters.$host, Parameters.deploymentName],
headerParameters: [Parameters.accept],
serializer
};
const getAtManagementGroupScopeOperationSpec = {
path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperation
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.groupId,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtManagementGroupScopeOperationSpec = {
path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.groupId
],
headerParameters: [Parameters.accept],
serializer
};
const getAtSubscriptionScopeOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperation
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.subscriptionId,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtSubscriptionScopeOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.subscriptionId
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperation
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.operationId
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.deploymentName,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const listAtScopeNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.scope,
Parameters.deploymentName
],
headerParameters: [Parameters.accept],
serializer
};
const listAtTenantScopeNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.deploymentName
],
headerParameters: [Parameters.accept],
serializer
};
const listAtManagementGroupScopeNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.deploymentName,
Parameters.groupId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtSubscriptionScopeNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.deploymentName,
Parameters.subscriptionId
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeploymentOperationsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.deploymentName,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=deploymentOperations.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentOperations.js","sourceRoot":"","sources":["../../../src/operations/deploymentOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAoCnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAChB,KAAa,EACb,cAAsB,EACtB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,qBAAqB,C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AAc,CAAC,iBAAiB,EAAE,cAAc,EAAE,OAAO,Line truncated
@@ -0,0 +1,628 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Deployments } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { DeploymentExtended, DeploymentsListAtScopeOptionalParams, DeploymentsListAtTenantScopeOptionalParams, DeploymentsListAtManagementGroupScopeOptionalParams, DeploymentsListAtSubscriptionScopeOptionalParams, DeploymentsListByResourceGroupOptionalParams, DeploymentsDeleteAtScopeOptionalParams, DeploymentsCheckExistenceAtScopeOptionalParams, DeploymentsCheckExistenceAtScopeResponse, Deployment, DeploymentsCreateOrUpdateAtScopeOptionalParams, DeploymentsCreateOrUpdateAtScopeResponse, DeploymentsGetAtScopeOptionalParams, DeploymentsGetAtScopeResponse, DeploymentsCancelAtScopeOptionalParams, DeploymentsValidateAtScopeOptionalParams, DeploymentsValidateAtScopeResponse, DeploymentsExportTemplateAtScopeOptionalParams, DeploymentsExportTemplateAtScopeResponse, DeploymentsDeleteAtTenantScopeOptionalParams, DeploymentsCheckExistenceAtTenantScopeOptionalParams, DeploymentsCheckExistenceAtTenantScopeResponse, ScopedDeployment, DeploymentsCreateOrUpdateAtTenantScopeOptionalParams, DeploymentsCreateOrUpdateAtTenantScopeResponse, DeploymentsGetAtTenantScopeOptionalParams, DeploymentsGetAtTenantScopeResponse, DeploymentsCancelAtTenantScopeOptionalParams, DeploymentsValidateAtTenantScopeOptionalParams, DeploymentsValidateAtTenantScopeResponse, ScopedDeploymentWhatIf, DeploymentsWhatIfAtTenantScopeOptionalParams, DeploymentsWhatIfAtTenantScopeResponse, DeploymentsExportTemplateAtTenantScopeOptionalParams, DeploymentsExportTemplateAtTenantScopeResponse, DeploymentsDeleteAtManagementGroupScopeOptionalParams, DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams, DeploymentsCheckExistenceAtManagementGroupScopeResponse, DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams, DeploymentsCreateOrUpdateAtManagementGroupScopeResponse, DeploymentsGetAtManagementGroupScopeOptionalParams, DeploymentsGetAtManagementGroupScopeResponse, DeploymentsCancelAtManagementGroupScopeOptionalParams, DeploymentsValidateAtManagementGroupScopeOptionalParams, DeploymentsValidateAtManagementGroupScopeResponse, DeploymentsWhatIfAtManagementGroupScopeOptionalParams, DeploymentsWhatIfAtManagementGroupScopeResponse, DeploymentsExportTemplateAtManagementGroupScopeOptionalParams, DeploymentsExportTemplateAtManagementGroupScopeResponse, DeploymentsDeleteAtSubscriptionScopeOptionalParams, DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams, DeploymentsCheckExistenceAtSubscriptionScopeResponse, DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams, DeploymentsCreateOrUpdateAtSubscriptionScopeResponse, DeploymentsGetAtSubscriptionScopeOptionalParams, DeploymentsGetAtSubscriptionScopeResponse, DeploymentsCancelAtSubscriptionScopeOptionalParams, DeploymentsValidateAtSubscriptionScopeOptionalParams, DeploymentsValidateAtSubscriptionScopeResponse, DeploymentWhatIf, DeploymentsWhatIfAtSubscriptionScopeOptionalParams, DeploymentsWhatIfAtSubscriptionScopeResponse, DeploymentsExportTemplateAtSubscriptionScopeOptionalParams, DeploymentsExportTemplateAtSubscriptionScopeResponse, DeploymentsDeleteOptionalParams, DeploymentsCheckExistenceOptionalParams, DeploymentsCheckExistenceResponse, DeploymentsCreateOrUpdateOptionalParams, DeploymentsCreateOrUpdateResponse, DeploymentsGetOptionalParams, DeploymentsGetResponse, DeploymentsCancelOptionalParams, DeploymentsValidateOptionalParams, DeploymentsValidateResponse, DeploymentsWhatIfOptionalParams, DeploymentsWhatIfResponse, DeploymentsExportTemplateOptionalParams, DeploymentsExportTemplateResponse, DeploymentsCalculateTemplateHashOptionalParams, DeploymentsCalculateTemplateHashResponse } from "../models";
/** Class containing Deployments operations. */
export declare class DeploymentsImpl implements Deployments {
private readonly client;
/**
* Initialize a new instance of the class Deployments class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Get all the deployments at the given scope.
* @param scope The resource scope.
* @param options The options parameters.
*/
listAtScope(scope: string, options?: DeploymentsListAtScopeOptionalParams): PagedAsyncIterableIterator<DeploymentExtended>;
private listAtScopePagingPage;
private listAtScopePagingAll;
/**
* Get all the deployments at the tenant scope.
* @param options The options parameters.
*/
listAtTenantScope(options?: DeploymentsListAtTenantScopeOptionalParams): PagedAsyncIterableIterator<DeploymentExtended>;
private listAtTenantScopePagingPage;
private listAtTenantScopePagingAll;
/**
* Get all the deployments for a management group.
* @param groupId The management group ID.
* @param options The options parameters.
*/
listAtManagementGroupScope(groupId: string, options?: DeploymentsListAtManagementGroupScopeOptionalParams): PagedAsyncIterableIterator<DeploymentExtended>;
private listAtManagementGroupScopePagingPage;
private listAtManagementGroupScopePagingAll;
/**
* Get all the deployments for a subscription.
* @param options The options parameters.
*/
listAtSubscriptionScope(options?: DeploymentsListAtSubscriptionScopeOptionalParams): PagedAsyncIterableIterator<DeploymentExtended>;
private listAtSubscriptionScopePagingPage;
private listAtSubscriptionScopePagingAll;
/**
* Get all the deployments for a resource group.
* @param resourceGroupName The name of the resource group with the deployments to get. The name is
* case insensitive.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: DeploymentsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DeploymentExtended>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* 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.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtScope(scope: string, deploymentName: string, options?: DeploymentsDeleteAtScopeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* 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.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtScopeAndWait(scope: string, deploymentName: string, options?: DeploymentsDeleteAtScopeOptionalParams): Promise<void>;
/**
* Checks whether the deployment exists.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
checkExistenceAtScope(scope: string, deploymentName: string, options?: DeploymentsCheckExistenceAtScopeOptionalParams): Promise<DeploymentsCheckExistenceAtScopeResponse>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtScope(scope: string, deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateAtScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsCreateOrUpdateAtScopeResponse>, DeploymentsCreateOrUpdateAtScopeResponse>>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtScopeAndWait(scope: string, deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateAtScopeOptionalParams): Promise<DeploymentsCreateOrUpdateAtScopeResponse>;
/**
* Gets a deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
getAtScope(scope: string, deploymentName: string, options?: DeploymentsGetAtScopeOptionalParams): Promise<DeploymentsGetAtScopeResponse>;
/**
* 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.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
cancelAtScope(scope: string, deploymentName: string, options?: DeploymentsCancelAtScopeOptionalParams): Promise<void>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtScope(scope: string, deploymentName: string, parameters: Deployment, options?: DeploymentsValidateAtScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsValidateAtScopeResponse>, DeploymentsValidateAtScopeResponse>>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtScopeAndWait(scope: string, deploymentName: string, parameters: Deployment, options?: DeploymentsValidateAtScopeOptionalParams): Promise<DeploymentsValidateAtScopeResponse>;
/**
* Exports the template used for specified deployment.
* @param scope The resource scope.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
exportTemplateAtScope(scope: string, deploymentName: string, options?: DeploymentsExportTemplateAtScopeOptionalParams): Promise<DeploymentsExportTemplateAtScopeResponse>;
/**
* Get all the deployments at the given scope.
* @param scope The resource scope.
* @param options The options parameters.
*/
private _listAtScope;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtTenantScope(deploymentName: string, options?: DeploymentsDeleteAtTenantScopeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtTenantScopeAndWait(deploymentName: string, options?: DeploymentsDeleteAtTenantScopeOptionalParams): Promise<void>;
/**
* Checks whether the deployment exists.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
checkExistenceAtTenantScope(deploymentName: string, options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams): Promise<DeploymentsCheckExistenceAtTenantScopeResponse>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtTenantScope(deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsCreateOrUpdateAtTenantScopeResponse>, DeploymentsCreateOrUpdateAtTenantScopeResponse>>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtTenantScopeAndWait(deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams): Promise<DeploymentsCreateOrUpdateAtTenantScopeResponse>;
/**
* Gets a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
getAtTenantScope(deploymentName: string, options?: DeploymentsGetAtTenantScopeOptionalParams): Promise<DeploymentsGetAtTenantScopeResponse>;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
cancelAtTenantScope(deploymentName: string, options?: DeploymentsCancelAtTenantScopeOptionalParams): Promise<void>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtTenantScope(deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsValidateAtTenantScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsValidateAtTenantScopeResponse>, DeploymentsValidateAtTenantScopeResponse>>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtTenantScopeAndWait(deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsValidateAtTenantScopeOptionalParams): Promise<DeploymentsValidateAtTenantScopeResponse>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIfAtTenantScope(deploymentName: string, parameters: ScopedDeploymentWhatIf, options?: DeploymentsWhatIfAtTenantScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsWhatIfAtTenantScopeResponse>, DeploymentsWhatIfAtTenantScopeResponse>>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the tenant group.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIfAtTenantScopeAndWait(deploymentName: string, parameters: ScopedDeploymentWhatIf, options?: DeploymentsWhatIfAtTenantScopeOptionalParams): Promise<DeploymentsWhatIfAtTenantScopeResponse>;
/**
* Exports the template used for specified deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
exportTemplateAtTenantScope(deploymentName: string, options?: DeploymentsExportTemplateAtTenantScopeOptionalParams): Promise<DeploymentsExportTemplateAtTenantScopeResponse>;
/**
* Get all the deployments at the tenant scope.
* @param options The options parameters.
*/
private _listAtTenantScope;
/**
* 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.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* 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.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtManagementGroupScopeAndWait(groupId: string, deploymentName: string, options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams): Promise<void>;
/**
* Checks whether the deployment exists.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
checkExistenceAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams): Promise<DeploymentsCheckExistenceAtManagementGroupScopeResponse>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>, DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId: string, deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams): Promise<DeploymentsCreateOrUpdateAtManagementGroupScopeResponse>;
/**
* Gets a deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
getAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentsGetAtManagementGroupScopeOptionalParams): Promise<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.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
cancelAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentsCancelAtManagementGroupScopeOptionalParams): Promise<void>;
/**
* 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 options parameters.
*/
beginValidateAtManagementGroupScope(groupId: string, deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsValidateAtManagementGroupScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsValidateAtManagementGroupScopeResponse>, DeploymentsValidateAtManagementGroupScopeResponse>>;
/**
* 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 options parameters.
*/
beginValidateAtManagementGroupScopeAndWait(groupId: string, deploymentName: string, parameters: ScopedDeployment, options?: DeploymentsValidateAtManagementGroupScopeOptionalParams): Promise<DeploymentsValidateAtManagementGroupScopeResponse>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the management
* group.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIfAtManagementGroupScope(groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsWhatIfAtManagementGroupScopeResponse>, DeploymentsWhatIfAtManagementGroupScopeResponse>>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the management
* group.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIfAtManagementGroupScopeAndWait(groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams): Promise<DeploymentsWhatIfAtManagementGroupScopeResponse>;
/**
* Exports the template used for specified deployment.
* @param groupId The management group ID.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
exportTemplateAtManagementGroupScope(groupId: string, deploymentName: string, options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams): Promise<DeploymentsExportTemplateAtManagementGroupScopeResponse>;
/**
* Get all the deployments for a management group.
* @param groupId The management group ID.
* @param options The options parameters.
*/
private _listAtManagementGroupScope;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtSubscriptionScope(deploymentName: string, options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
beginDeleteAtSubscriptionScopeAndWait(deploymentName: string, options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams): Promise<void>;
/**
* Checks whether the deployment exists.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
checkExistenceAtSubscriptionScope(deploymentName: string, options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams): Promise<DeploymentsCheckExistenceAtSubscriptionScopeResponse>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtSubscriptionScope(deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>, DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams): Promise<DeploymentsCreateOrUpdateAtSubscriptionScopeResponse>;
/**
* Gets a deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
getAtSubscriptionScope(deploymentName: string, options?: DeploymentsGetAtSubscriptionScopeOptionalParams): Promise<DeploymentsGetAtSubscriptionScopeResponse>;
/**
* 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.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
cancelAtSubscriptionScope(deploymentName: string, options?: DeploymentsCancelAtSubscriptionScopeOptionalParams): Promise<void>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtSubscriptionScope(deploymentName: string, parameters: Deployment, options?: DeploymentsValidateAtSubscriptionScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsValidateAtSubscriptionScopeResponse>, DeploymentsValidateAtSubscriptionScopeResponse>>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAtSubscriptionScopeAndWait(deploymentName: string, parameters: Deployment, options?: DeploymentsValidateAtSubscriptionScopeOptionalParams): Promise<DeploymentsValidateAtSubscriptionScopeResponse>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to What If.
* @param options The options parameters.
*/
beginWhatIfAtSubscriptionScope(deploymentName: string, parameters: DeploymentWhatIf, options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsWhatIfAtSubscriptionScopeResponse>, DeploymentsWhatIfAtSubscriptionScopeResponse>>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the subscription.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to What If.
* @param options The options parameters.
*/
beginWhatIfAtSubscriptionScopeAndWait(deploymentName: string, parameters: DeploymentWhatIf, options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams): Promise<DeploymentsWhatIfAtSubscriptionScopeResponse>;
/**
* Exports the template used for specified deployment.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
exportTemplateAtSubscriptionScope(deploymentName: string, options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams): Promise<DeploymentsExportTemplateAtSubscriptionScopeResponse>;
/**
* Get all the deployments for a subscription.
* @param options The options parameters.
*/
private _listAtSubscriptionScope;
/**
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
* removes the associated deployment operations. Deleting a template deployment does not affect the
* state of the resource group. 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.
* @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.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
* removes the associated deployment operations. Deleting a template deployment does not affect the
* state of the resource group. 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.
* @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.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<void>;
/**
* 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.
* @param options The options parameters.
*/
checkExistence(resourceGroupName: string, deploymentName: string, options?: DeploymentsCheckExistenceOptionalParams): Promise<DeploymentsCheckExistenceResponse>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
* insensitive. The resource group must already exist.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsCreateOrUpdateResponse>, DeploymentsCreateOrUpdateResponse>>;
/**
* You can provide the template and parameters directly in the request or link to JSON files.
* @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
* insensitive. The resource group must already exist.
* @param deploymentName The name of the deployment.
* @param parameters Additional parameters supplied to the operation.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, deploymentName: string, parameters: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<DeploymentsCreateOrUpdateResponse>;
/**
* Gets a deployment.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
get(resourceGroupName: string, deploymentName: string, options?: DeploymentsGetOptionalParams): Promise<DeploymentsGetResponse>;
/**
* 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 resource group partially deployed.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentName The name of the deployment.
* @param options The options parameters.
*/
cancel(resourceGroupName: string, deploymentName: string, options?: DeploymentsCancelOptionalParams): Promise<void>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param resourceGroupName The name of the resource group the template will be deployed to. The name
* is case insensitive.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidate(resourceGroupName: string, deploymentName: string, parameters: Deployment, options?: DeploymentsValidateOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsValidateResponse>, DeploymentsValidateResponse>>;
/**
* Validates whether the specified template is syntactically correct and will be accepted by Azure
* Resource Manager..
* @param resourceGroupName The name of the resource group the template will be deployed to. The name
* is case insensitive.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginValidateAndWait(resourceGroupName: string, deploymentName: string, parameters: Deployment, options?: DeploymentsValidateOptionalParams): Promise<DeploymentsValidateResponse>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
* @param resourceGroupName The name of the resource group the template will be deployed to. The name
* is case insensitive.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIf(resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, options?: DeploymentsWhatIfOptionalParams): Promise<PollerLike<PollOperationState<DeploymentsWhatIfResponse>, DeploymentsWhatIfResponse>>;
/**
* Returns changes that will be made by the deployment if executed at the scope of the resource group.
* @param resourceGroupName The name of the resource group the template will be deployed to. The name
* is case insensitive.
* @param deploymentName The name of the deployment.
* @param parameters Parameters to validate.
* @param options The options parameters.
*/
beginWhatIfAndWait(resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, options?: DeploymentsWhatIfOptionalParams): Promise<DeploymentsWhatIfResponse>;
/**
* 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.
* @param options The options parameters.
*/
exportTemplate(resourceGroupName: string, deploymentName: string, options?: DeploymentsExportTemplateOptionalParams): Promise<DeploymentsExportTemplateResponse>;
/**
* Get all the deployments for a resource group.
* @param resourceGroupName The name of the resource group with the deployments to get. The name is
* case insensitive.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* Calculate the hash of the given template.
* @param template The template provided to calculate hash.
* @param options The options parameters.
*/
calculateTemplateHash(template: Record<string, unknown>, options?: DeploymentsCalculateTemplateHashOptionalParams): Promise<DeploymentsCalculateTemplateHashResponse>;
/**
* ListAtScopeNext
* @param scope The resource scope.
* @param nextLink The nextLink from the previous successful call to the ListAtScope method.
* @param options The options parameters.
*/
private _listAtScopeNext;
/**
* ListAtTenantScopeNext
* @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
* @param options The options parameters.
*/
private _listAtTenantScopeNext;
/**
* ListAtManagementGroupScopeNext
* @param groupId The management group ID.
* @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
* method.
* @param options The options parameters.
*/
private _listAtManagementGroupScopeNext;
/**
* ListAtSubscriptionScopeNext
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
* method.
* @param options The options parameters.
*/
private _listAtSubscriptionScopeNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName The name of the resource group with the deployments to get. The name is
* case insensitive.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=deployments.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../../src/operations/deployments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,kBAAkB,EAElB,oCAAoC,EAEpC,0CAA0C,EAE1C,mDAAmD,EAEnD,gDAAgD,EAEhD,4CAA4C,EAC5C,sCAAsC,EACtC,8CAA8C,EAC9C,wCAAwC,EACxC,UAAU,EACV,8CAA8C,EAC9C,wCAAwC,EACxC,mCAAmC,EACnC,6BAA6B,EAC7B,sCAAsC,EACtC,wCAAwC,EACxC,kCAAkC,EAClC,8CAA8C,EAC9C,wCAAwC,EAExC,4CAA4C,EAC5C,oDAAoD,EACpD,8CAA8C,EAC9C,gBAAgB,EAChB,oDAAoD,EACpD,8CAA8C,EAC9C,yCAAyC,EACzC,mC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AAsC,CAAC,EAC1D,sCAAsC,CACvC,CACF;IAsDD;;;;;OAKG;IACG,+BAA+B,CACnC,cAAc,EAAE,MALine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../src/operations/deployments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAmGrC,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,WAAW,CAChB,KAAa,EACb,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,qBAAqB,CAClC,KAAa,EACb,OAA8C;;YAE9C,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA,CAAC;YACrD,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MA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7C,OAA0D;;;;gBAE1D,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,iCAAiC,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA7D,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAsD;;YAEtD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;YACzE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,wBAAwBLine truncated
+9
View File
@@ -0,0 +1,9 @@
export * from "./operations";
export * from "./deployments";
export * from "./providers";
export * from "./providerResourceTypes";
export * from "./resources";
export * from "./resourceGroups";
export * from "./tagsOperations";
export * from "./deploymentOperations";
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
+16
View File
@@ -0,0 +1,16 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./operations";
export * from "./deployments";
export * from "./providers";
export * from "./providerResourceTypes";
export * from "./resources";
export * from "./resourceGroups";
export * from "./tagsOperations";
export * from "./deploymentOperations";
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,32 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Operations } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { Operation, OperationsListOptionalParams } from "../models";
/** Class containing Operations operations. */
export declare class OperationsImpl implements Operations {
private readonly client;
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Lists all of the available Microsoft.Resources REST API operations.
* @param options The options parameters.
*/
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
private listPagingPage;
private listPagingAll;
/**
* Lists all of the available Microsoft.Resources REST API operations.
* @param options The options parameters.
*/
private _list;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
+120
View File
@@ -0,0 +1,120 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Operations operations. */
export class OperationsImpl {
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Lists all of the available Microsoft.Resources REST API operations.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Lists all of the available Microsoft.Resources REST API operations.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/providers/Microsoft.Resources/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OA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AAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,19 @@
import { ProviderResourceTypes } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { ProviderResourceTypesListOptionalParams, ProviderResourceTypesListResponse } from "../models";
/** Class containing ProviderResourceTypes operations. */
export declare class ProviderResourceTypesImpl implements ProviderResourceTypes {
private readonly client;
/**
* Initialize a new instance of the class ProviderResourceTypes class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* List the resource types for a specified resource provider.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
list(resourceProviderNamespace: string, options?: ProviderResourceTypesListOptionalParams): Promise<ProviderResourceTypesListResponse>;
}
//# sourceMappingURL=providerResourceTypes.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providerResourceTypes.d.ts","sourceRoot":"","sources":["../../../src/operations/providerResourceTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,uCAAuC,EACvC,iCAAiC,EAClC,MAAM,WAAW,CAAC;AAEnB,yDAAyD;AACzD,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;OAIG;IACH,IAAI,CACF,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;CAM9C"}
@@ -0,0 +1,51 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing ProviderResourceTypes operations. */
export class ProviderResourceTypesImpl {
/**
* Initialize a new instance of the class ProviderResourceTypes class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* List the resource types for a specified resource provider.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
list(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderResourceTypeListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=providerResourceTypes.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providerResourceTypes.js","sourceRoot":"","sources":["../../../src/operations/providerResourceTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,yBAAiC,EACjC,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACtC,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,87 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Providers } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { Provider, ProvidersListOptionalParams, ProvidersListAtTenantScopeOptionalParams, ProvidersUnregisterOptionalParams, ProvidersUnregisterResponse, ProvidersRegisterAtManagementGroupScopeOptionalParams, ProvidersProviderPermissionsOptionalParams, ProvidersProviderPermissionsResponse, ProvidersRegisterOptionalParams, ProvidersRegisterResponse, ProvidersGetOptionalParams, ProvidersGetResponse, ProvidersGetAtTenantScopeOptionalParams, ProvidersGetAtTenantScopeResponse } from "../models";
/** Class containing Providers operations. */
export declare class ProvidersImpl implements Providers {
private readonly client;
/**
* Initialize a new instance of the class Providers class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Gets all resource providers for a subscription.
* @param options The options parameters.
*/
list(options?: ProvidersListOptionalParams): PagedAsyncIterableIterator<Provider>;
private listPagingPage;
private listPagingAll;
/**
* Gets all resource providers for the tenant.
* @param options The options parameters.
*/
listAtTenantScope(options?: ProvidersListAtTenantScopeOptionalParams): PagedAsyncIterableIterator<Provider>;
private listAtTenantScopePagingPage;
private listAtTenantScopePagingAll;
/**
* Unregisters a subscription from a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to unregister.
* @param options The options parameters.
*/
unregister(resourceProviderNamespace: string, options?: ProvidersUnregisterOptionalParams): Promise<ProvidersUnregisterResponse>;
/**
* Registers a management group with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param groupId The management group ID.
* @param options The options parameters.
*/
registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options?: ProvidersRegisterAtManagementGroupScopeOptionalParams): Promise<void>;
/**
* Get the provider permissions.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
providerPermissions(resourceProviderNamespace: string, options?: ProvidersProviderPermissionsOptionalParams): Promise<ProvidersProviderPermissionsResponse>;
/**
* Registers a subscription with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param options The options parameters.
*/
register(resourceProviderNamespace: string, options?: ProvidersRegisterOptionalParams): Promise<ProvidersRegisterResponse>;
/**
* Gets all resource providers for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Gets all resource providers for the tenant.
* @param options The options parameters.
*/
private _listAtTenantScope;
/**
* Gets the specified resource provider.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
get(resourceProviderNamespace: string, options?: ProvidersGetOptionalParams): Promise<ProvidersGetResponse>;
/**
* Gets the specified resource provider at the tenant level.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
getAtTenantScope(resourceProviderNamespace: string, options?: ProvidersGetAtTenantScopeOptionalParams): Promise<ProvidersGetAtTenantScopeResponse>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListAtTenantScopeNext
* @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
* @param options The options parameters.
*/
private _listAtTenantScopeNext;
}
//# sourceMappingURL=providers.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,QAAQ,EAER,2BAA2B,EAE3B,wCAAwC,EACxC,iCAAiC,EACjC,2BAA2B,EAC3B,qDAAqD,EACrD,0CAA0C,EAC1C,oCAAoC,EACpC,+BAA+B,EAC/B,yBAAyB,EAGzB,0BAA0B,EAC1B,oBAAoB,EACpB,uCAAuC,EACvC,iCAAiC,EAGlC,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,QAAQ,CAAC;YAexB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACI,iBAAiB,CACtB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,QAAQ,CAAC;YAexB,2BAA2B;YAa3B,0BAA0B;IAQzC;;;;OAIG;IACH,UAAU,CACR,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;OAKG;IACH,8BAA8B,CAC5B,yBAAyB,EAAE,MAAM,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,mBAAmB,CACjB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAOhD;;;;OAIG;IACH,QAAQ,CACN,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;;;OAIG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAOhC;;;;OAIG;IACH,gBAAgB,CACd,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAS/B"}
+384
View File
@@ -0,0 +1,384 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Providers operations. */
export class ProvidersImpl {
/**
* Initialize a new instance of the class Providers class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Gets all resource providers for a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Gets all resource providers for the tenant.
* @param options The options parameters.
*/
listAtTenantScope(options) {
const iter = this.listAtTenantScopePagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listAtTenantScopePagingPage(options);
}
};
}
listAtTenantScopePagingPage(options) {
return __asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
let result = yield __await(this._listAtTenantScope(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listAtTenantScopeNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listAtTenantScopePagingAll(options) {
return __asyncGenerator(this, arguments, function* listAtTenantScopePagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listAtTenantScopePagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* Unregisters a subscription from a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to unregister.
* @param options The options parameters.
*/
unregister(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, unregisterOperationSpec);
}
/**
* Registers a management group with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param groupId The management group ID.
* @param options The options parameters.
*/
registerAtManagementGroupScope(resourceProviderNamespace, groupId, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, groupId, options }, registerAtManagementGroupScopeOperationSpec);
}
/**
* Get the provider permissions.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
providerPermissions(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, providerPermissionsOperationSpec);
}
/**
* Registers a subscription with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param options The options parameters.
*/
register(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, registerOperationSpec);
}
/**
* Gets all resource providers for a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* Gets all resource providers for the tenant.
* @param options The options parameters.
*/
_listAtTenantScope(options) {
return this.client.sendOperationRequest({ options }, listAtTenantScopeOperationSpec);
}
/**
* Gets the specified resource provider.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
get(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, getOperationSpec);
}
/**
* Gets the specified resource provider at the tenant level.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param options The options parameters.
*/
getAtTenantScope(resourceProviderNamespace, options) {
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, getAtTenantScopeOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListAtTenantScopeNext
* @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
* @param options The options parameters.
*/
_listAtTenantScopeNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const unregisterOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.Provider
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept],
serializer
};
const registerAtManagementGroupScopeOperationSpec = {
path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.groupId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept],
serializer
};
const providerPermissionsOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderPermissionListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept],
serializer
};
const registerOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.Provider
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.properties,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listAtTenantScopeOperationSpec = {
path: "/providers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Provider
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceProviderNamespace
],
headerParameters: [Parameters.accept],
serializer
};
const getAtTenantScopeOperationSpec = {
path: "/providers/{resourceProviderNamespace}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Provider
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.subscriptionId
],
headerParameters: [Parameters.accept],
serializer
};
const listAtTenantScopeNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ProviderListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [Parameters.$host, Parameters.nextLink],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,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UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,2FAA2F;IAC7F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EACF,gFAAgF;IAClF,UAAU,EAAE,MAAM;IAClBLine truncated
@@ -0,0 +1,91 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { ResourceGroups } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { ResourceGroup, ResourceGroupsListOptionalParams, ResourceGroupsCheckExistenceOptionalParams, ResourceGroupsCheckExistenceResponse, ResourceGroupsCreateOrUpdateOptionalParams, ResourceGroupsCreateOrUpdateResponse, ResourceGroupsDeleteOptionalParams, ResourceGroupsGetOptionalParams, ResourceGroupsGetResponse, ResourceGroupPatchable, ResourceGroupsUpdateOptionalParams, ResourceGroupsUpdateResponse, ExportTemplateRequest, ResourceGroupsExportTemplateOptionalParams, ResourceGroupsExportTemplateResponse } from "../models";
/** Class containing ResourceGroups operations. */
export declare class ResourceGroupsImpl implements ResourceGroups {
private readonly client;
/**
* Initialize a new instance of the class ResourceGroups class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Gets all the resource groups for a subscription.
* @param options The options parameters.
*/
list(options?: ResourceGroupsListOptionalParams): PagedAsyncIterableIterator<ResourceGroup>;
private listPagingPage;
private listPagingAll;
/**
* Checks whether a resource group exists.
* @param resourceGroupName The name of the resource group to check. The name is case insensitive.
* @param options The options parameters.
*/
checkExistence(resourceGroupName: string, options?: ResourceGroupsCheckExistenceOptionalParams): Promise<ResourceGroupsCheckExistenceResponse>;
/**
* Creates or updates a resource group.
* @param resourceGroupName The name of the resource group to create or update. Can include
* alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that
* match the allowed characters.
* @param parameters Parameters supplied to the create or update a resource group.
* @param options The options parameters.
*/
createOrUpdate(resourceGroupName: string, parameters: ResourceGroup, options?: ResourceGroupsCreateOrUpdateOptionalParams): Promise<ResourceGroupsCreateOrUpdateResponse>;
/**
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group
* deletes all of its template deployments and currently stored operations.
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, options?: ResourceGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group
* deletes all of its template deployments and currently stored operations.
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, options?: ResourceGroupsDeleteOptionalParams): Promise<void>;
/**
* Gets a resource group.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param options The options parameters.
*/
get(resourceGroupName: string, options?: ResourceGroupsGetOptionalParams): Promise<ResourceGroupsGetResponse>;
/**
* Resource groups can be updated through a simple PATCH operation to a group address. The format of
* the request is the same as that for creating a resource group. If a field is unspecified, the
* current value is retained.
* @param resourceGroupName The name of the resource group to update. The name is case insensitive.
* @param parameters Parameters supplied to update a resource group.
* @param options The options parameters.
*/
update(resourceGroupName: string, parameters: ResourceGroupPatchable, options?: ResourceGroupsUpdateOptionalParams): Promise<ResourceGroupsUpdateResponse>;
/**
* Captures the specified resource group as a template.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters Parameters for exporting the template.
* @param options The options parameters.
*/
beginExportTemplate(resourceGroupName: string, parameters: ExportTemplateRequest, options?: ResourceGroupsExportTemplateOptionalParams): Promise<PollerLike<PollOperationState<ResourceGroupsExportTemplateResponse>, ResourceGroupsExportTemplateResponse>>;
/**
* Captures the specified resource group as a template.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters Parameters for exporting the template.
* @param options The options parameters.
*/
beginExportTemplateAndWait(resourceGroupName: string, parameters: ExportTemplateRequest, options?: ResourceGroupsExportTemplateOptionalParams): Promise<ResourceGroupsExportTemplateResponse>;
/**
* Gets all the resource groups for a subscription.
* @param options The options parameters.
*/
private _list;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=resourceGroups.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/resourceGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,aAAa,EAEb,gCAAgC,EAChC,0CAA0C,EAC1C,oCAAoC,EACpC,0CAA0C,EAC1C,oCAAoC,EACpC,kCAAkC,EAClC,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC5B,qBAAqB,EACrB,0CAA0C,EAC1C,oCAAoC,E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,UAAU,CACR,kBAAkB,CAAC,oCAAoC,CAAC,EACxD,oCAAoC,CACrC,CACF;IAsDD;;;;;OAKG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAShD;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,405 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing ResourceGroups operations. */
export class ResourceGroupsImpl {
/**
* Initialize a new instance of the class ResourceGroups class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Gets all the resource groups for a subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Checks whether a resource group exists.
* @param resourceGroupName The name of the resource group to check. The name is case insensitive.
* @param options The options parameters.
*/
checkExistence(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, checkExistenceOperationSpec);
}
/**
* Creates or updates a resource group.
* @param resourceGroupName The name of the resource group to create or update. Can include
* alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that
* match the allowed characters.
* @param parameters Parameters supplied to the create or update a resource group.
* @param options The options parameters.
*/
createOrUpdate(resourceGroupName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, parameters, options }, createOrUpdateOperationSpec);
}
/**
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group
* deletes all of its template deployments and currently stored operations.
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
* @param options The options parameters.
*/
beginDelete(resourceGroupName, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, options }, deleteOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group
* deletes all of its template deployments and currently stored operations.
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginDelete(resourceGroupName, options);
return poller.pollUntilDone();
});
}
/**
* Gets a resource group.
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
* @param options The options parameters.
*/
get(resourceGroupName, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, getOperationSpec);
}
/**
* Resource groups can be updated through a simple PATCH operation to a group address. The format of
* the request is the same as that for creating a resource group. If a field is unspecified, the
* current value is retained.
* @param resourceGroupName The name of the resource group to update. The name is case insensitive.
* @param parameters Parameters supplied to update a resource group.
* @param options The options parameters.
*/
update(resourceGroupName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, parameters, options }, updateOperationSpec);
}
/**
* Captures the specified resource group as a template.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters Parameters for exporting the template.
* @param options The options parameters.
*/
beginExportTemplate(resourceGroupName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, parameters, options }, exportTemplateOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* Captures the specified resource group as a template.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param parameters Parameters for exporting the template.
* @param options The options parameters.
*/
beginExportTemplateAndWait(resourceGroupName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginExportTemplate(resourceGroupName, parameters, options);
return poller.pollUntilDone();
});
}
/**
* Gets all the resource groups for a subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const checkExistenceOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
httpMethod: "HEAD",
responses: {
204: {},
404: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ResourceGroup
},
201: {
bodyMapper: Mappers.ResourceGroup
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters6,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
httpMethod: "DELETE",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.forceDeletionTypes],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceGroup
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.ResourceGroup
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters7,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const exportTemplateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ResourceGroupExportResult
},
201: {
bodyMapper: Mappers.ResourceGroupExportResult
},
202: {
bodyMapper: Mappers.ResourceGroupExportResult
},
204: {
bodyMapper: Mappers.ResourceGroupExportResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters8,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceGroupListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ResourceGroupListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.subscriptionId
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=resourceGroups.js.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroups.js","sourceRoot":"","sources":["../../../src/operations/resourceGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAsBrC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI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G;IACK,KAAK,CACX,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IACLine truncated
@@ -0,0 +1,278 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Resources } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { GenericResourceExpanded, ResourcesListByResourceGroupOptionalParams, ResourcesListOptionalParams, ResourcesMoveInfo, ResourcesMoveResourcesOptionalParams, ResourcesValidateMoveResourcesOptionalParams, ResourcesCheckExistenceOptionalParams, ResourcesCheckExistenceResponse, ResourcesDeleteOptionalParams, GenericResource, ResourcesCreateOrUpdateOptionalParams, ResourcesCreateOrUpdateResponse, ResourcesUpdateOptionalParams, ResourcesUpdateResponse, ResourcesGetOptionalParams, ResourcesGetResponse, ResourcesCheckExistenceByIdOptionalParams, ResourcesCheckExistenceByIdResponse, ResourcesDeleteByIdOptionalParams, ResourcesCreateOrUpdateByIdOptionalParams, ResourcesCreateOrUpdateByIdResponse, ResourcesUpdateByIdOptionalParams, ResourcesUpdateByIdResponse, ResourcesGetByIdOptionalParams, ResourcesGetByIdResponse } from "../models";
/** Class containing Resources operations. */
export declare class ResourcesImpl implements Resources {
private readonly client;
/**
* Initialize a new instance of the class Resources class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* Get all the resources for a resource group.
* @param resourceGroupName The resource group with the resources to get.
* @param options The options parameters.
*/
listByResourceGroup(resourceGroupName: string, options?: ResourcesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<GenericResourceExpanded>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* Get all the resources in a subscription.
* @param options The options parameters.
*/
list(options?: ResourcesListOptionalParams): PagedAsyncIterableIterator<GenericResourceExpanded>;
private listPagingPage;
private listPagingAll;
/**
* Get all the resources for a resource group.
* @param resourceGroupName The resource group with the resources to get.
* @param options The options parameters.
*/
private _listByResourceGroup;
/**
* The resources to be moved must be in the same source resource group in the source subscription being
* used. The target resource group may be in a different subscription. When moving resources, both the
* source group and the target group are locked for the duration of the operation. Write and delete
* operations are blocked on the groups until the move completes.
* @param sourceResourceGroupName The name of the resource group from the source subscription
* containing the resources to be moved.
* @param parameters Parameters for moving resources.
* @param options The options parameters.
*/
beginMoveResources(sourceResourceGroupName: string, parameters: ResourcesMoveInfo, options?: ResourcesMoveResourcesOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* The resources to be moved must be in the same source resource group in the source subscription being
* used. The target resource group may be in a different subscription. When moving resources, both the
* source group and the target group are locked for the duration of the operation. Write and delete
* operations are blocked on the groups until the move completes.
* @param sourceResourceGroupName The name of the resource group from the source subscription
* containing the resources to be moved.
* @param parameters Parameters for moving resources.
* @param options The options parameters.
*/
beginMoveResourcesAndWait(sourceResourceGroupName: string, parameters: ResourcesMoveInfo, options?: ResourcesMoveResourcesOptionalParams): Promise<void>;
/**
* This operation checks whether the specified resources can be moved to the target. The resources to
* be moved must be in the same source resource group in the source subscription being used. The target
* resource group may be in a different subscription. If validation succeeds, it returns HTTP response
* code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an
* error message. Retrieve the URL in the Location header value to check the result of the long-running
* operation.
* @param sourceResourceGroupName The name of the resource group from the source subscription
* containing the resources to be validated for move.
* @param parameters Parameters for moving resources.
* @param options The options parameters.
*/
beginValidateMoveResources(sourceResourceGroupName: string, parameters: ResourcesMoveInfo, options?: ResourcesValidateMoveResourcesOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* This operation checks whether the specified resources can be moved to the target. The resources to
* be moved must be in the same source resource group in the source subscription being used. The target
* resource group may be in a different subscription. If validation succeeds, it returns HTTP response
* code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an
* error message. Retrieve the URL in the Location header value to check the result of the long-running
* operation.
* @param sourceResourceGroupName The name of the resource group from the source subscription
* containing the resources to be validated for move.
* @param parameters Parameters for moving resources.
* @param options The options parameters.
*/
beginValidateMoveResourcesAndWait(sourceResourceGroupName: string, parameters: ResourcesMoveInfo, options?: ResourcesValidateMoveResourcesOptionalParams): Promise<void>;
/**
* Get all the resources in a subscription.
* @param options The options parameters.
*/
private _list;
/**
* Checks whether a resource exists.
* @param resourceGroupName The name of the resource group containing the resource to check. The name
* is case insensitive.
* @param resourceProviderNamespace The resource provider of the resource to check.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type.
* @param resourceName The name of the resource to check whether it exists.
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
checkExistence(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: ResourcesCheckExistenceOptionalParams): Promise<ResourcesCheckExistenceResponse>;
/**
* Deletes a resource.
* @param resourceGroupName The name of the resource group that contains the resource to delete. The
* name is case insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type.
* @param resourceName The name of the resource to delete.
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: ResourcesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Deletes a resource.
* @param resourceGroupName The name of the resource group that contains the resource to delete. The
* name is case insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type.
* @param resourceName The name of the resource to delete.
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: ResourcesDeleteOptionalParams): Promise<void>;
/**
* Creates a resource.
* @param resourceGroupName The name of the resource group for the resource. The name is case
* insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type of the resource to create.
* @param resourceName The name of the resource to create.
* @param apiVersion The API version to use for the operation.
* @param parameters Parameters for creating or updating the resource.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: GenericResource, options?: ResourcesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourcesCreateOrUpdateResponse>, ResourcesCreateOrUpdateResponse>>;
/**
* Creates a resource.
* @param resourceGroupName The name of the resource group for the resource. The name is case
* insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type of the resource to create.
* @param resourceName The name of the resource to create.
* @param apiVersion The API version to use for the operation.
* @param parameters Parameters for creating or updating the resource.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: GenericResource, options?: ResourcesCreateOrUpdateOptionalParams): Promise<ResourcesCreateOrUpdateResponse>;
/**
* Updates a resource.
* @param resourceGroupName The name of the resource group for the resource. The name is case
* insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type of the resource to update.
* @param resourceName The name of the resource to update.
* @param apiVersion The API version to use for the operation.
* @param parameters Parameters for updating the resource.
* @param options The options parameters.
*/
beginUpdate(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: GenericResource, options?: ResourcesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourcesUpdateResponse>, ResourcesUpdateResponse>>;
/**
* Updates a resource.
* @param resourceGroupName The name of the resource group for the resource. The name is case
* insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type of the resource to update.
* @param resourceName The name of the resource to update.
* @param apiVersion The API version to use for the operation.
* @param parameters Parameters for updating the resource.
* @param options The options parameters.
*/
beginUpdateAndWait(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, parameters: GenericResource, options?: ResourcesUpdateOptionalParams): Promise<ResourcesUpdateResponse>;
/**
* Gets a resource.
* @param resourceGroupName The name of the resource group containing the resource to get. The name is
* case insensitive.
* @param resourceProviderNamespace The namespace of the resource provider.
* @param parentResourcePath The parent resource identity.
* @param resourceType The resource type of the resource.
* @param resourceName The name of the resource to get.
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
get(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, apiVersion: string, options?: ResourcesGetOptionalParams): Promise<ResourcesGetResponse>;
/**
* Checks by ID whether a resource exists.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
checkExistenceById(resourceId: string, apiVersion: string, options?: ResourcesCheckExistenceByIdOptionalParams): Promise<ResourcesCheckExistenceByIdResponse>;
/**
* Deletes a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
beginDeleteById(resourceId: string, apiVersion: string, options?: ResourcesDeleteByIdOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Deletes a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
beginDeleteByIdAndWait(resourceId: string, apiVersion: string, options?: ResourcesDeleteByIdOptionalParams): Promise<void>;
/**
* Create a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param parameters Create or update resource parameters.
* @param options The options parameters.
*/
beginCreateOrUpdateById(resourceId: string, apiVersion: string, parameters: GenericResource, options?: ResourcesCreateOrUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ResourcesCreateOrUpdateByIdResponse>, ResourcesCreateOrUpdateByIdResponse>>;
/**
* Create a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param parameters Create or update resource parameters.
* @param options The options parameters.
*/
beginCreateOrUpdateByIdAndWait(resourceId: string, apiVersion: string, parameters: GenericResource, options?: ResourcesCreateOrUpdateByIdOptionalParams): Promise<ResourcesCreateOrUpdateByIdResponse>;
/**
* Updates a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param parameters Update resource parameters.
* @param options The options parameters.
*/
beginUpdateById(resourceId: string, apiVersion: string, parameters: GenericResource, options?: ResourcesUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ResourcesUpdateByIdResponse>, ResourcesUpdateByIdResponse>>;
/**
* Updates a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param parameters Update resource parameters.
* @param options The options parameters.
*/
beginUpdateByIdAndWait(resourceId: string, apiVersion: string, parameters: GenericResource, options?: ResourcesUpdateByIdOptionalParams): Promise<ResourcesUpdateByIdResponse>;
/**
* Gets a resource by ID.
* @param resourceId The fully qualified ID of the resource, including the resource name and resource
* type. Use the format,
* /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
* @param apiVersion The API version to use for the operation.
* @param options The options parameters.
*/
getById(resourceId: string, apiVersion: string, options?: ResourcesGetByIdOptionalParams): Promise<ResourcesGetByIdResponse>;
/**
* ListByResourceGroupNext
* @param resourceGroupName The resource group with the resources to get.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/operations/resources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,uBAAuB,EAEvB,0CAA0C,EAE1C,2BAA2B,EAE3B,iBAAiB,EACjB,oCAAoC,EACpC,4CAA4C,EAE5C,qCAAqC,EACrC,+BAA+B,EAC/B,6BAA6B,EAC7B,eAAe,EACf,qCAAqC,EACrC,+BAA+B,EAC/B,6BAA6B,EAC7B,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAA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B;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/operations/resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAmCrC,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAoD;;YAEpD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;YACzE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACx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C;YACtD,CAAC,CAAA,CAAC;YACF,MAAM,aAAa,GAAG,CACpB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;gBACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;gBAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;gBAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;oBACF,kBAAkB,GAAG,WAAW,CAAC;oBACjC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,WAAW,EAAE,YAAY,CAAC,CAAC;gBAChD,CAAC,CAAC;gBACF,MAAM,WAAW,mCACZ,IAAI,KACP,OAAO,kCACF,IAAI,CAAC,OAAO,KACf,UAAU,EAAE,QAAQ,MAEvB,CAAC;gBACF,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAClE,OAAO;oBACL,YAAY;oBACZ,WAAW,EAAE;wBACX,UAAU,EAAE,kBAAmB,CAAC,MAAM;wBACtC,IAAI,EAAE,kBAAmB,CAAC,UAAU;wBACpC,OAAO,EAAE,kBAAmB,CAAC,OAAO,CAAC,MAAM,EAAE;qBAC9C;iBACF,CAAC;YACJ,CAAC,CAAA,CAAC;YAEF,MAAM,GAAG,GAAG,IAAI,OAAO,CACrB,aAAa,EACb,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO,EAAE,EAChD,kCAAkC,CACnC,CAALine truncated
@@ -0,0 +1,102 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { TagsOperations } from "../operationsInterfaces";
import { ResourceManagementClient } from "../resourceManagementClient";
import { TagDetails, TagsListOptionalParams, TagsDeleteValueOptionalParams, TagsCreateOrUpdateValueOptionalParams, TagsCreateOrUpdateValueResponse, TagsCreateOrUpdateOptionalParams, TagsCreateOrUpdateResponse, TagsDeleteOptionalParams, TagsResource, TagsCreateOrUpdateAtScopeOptionalParams, TagsCreateOrUpdateAtScopeResponse, TagsPatchResource, TagsUpdateAtScopeOptionalParams, TagsUpdateAtScopeResponse, TagsGetAtScopeOptionalParams, TagsGetAtScopeResponse, TagsDeleteAtScopeOptionalParams } from "../models";
/** Class containing TagsOperations operations. */
export declare class TagsOperationsImpl implements TagsOperations {
private readonly client;
/**
* Initialize a new instance of the class TagsOperations class.
* @param client Reference to the service client
*/
constructor(client: ResourceManagementClient);
/**
* This operation performs a union of predefined tags, resource tags, resource group tags and
* subscription tags, and returns a summary of usage for each tag name and value under the given
* subscription. In case of a large number of tags, this operation may return a previously cached
* result.
* @param options The options parameters.
*/
list(options?: TagsListOptionalParams): PagedAsyncIterableIterator<TagDetails>;
private listPagingPage;
private listPagingAll;
/**
* This operation allows deleting a value from the list of predefined values for an existing predefined
* tag name. The value being deleted must not be in use as a tag value for the given tag name for any
* resource.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to delete.
* @param options The options parameters.
*/
deleteValue(tagName: string, tagValue: string, options?: TagsDeleteValueOptionalParams): Promise<void>;
/**
* This operation allows adding a value to the list of predefined values for an existing predefined tag
* name. A tag value can have a maximum of 256 characters.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to create.
* @param options The options parameters.
*/
createOrUpdateValue(tagName: string, tagValue: string, options?: TagsCreateOrUpdateValueOptionalParams): Promise<TagsCreateOrUpdateValueResponse>;
/**
* This operation allows adding a name to the list of predefined tag names for the given subscription.
* A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the
* following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
* @param tagName The name of the tag to create.
* @param options The options parameters.
*/
createOrUpdate(tagName: string, options?: TagsCreateOrUpdateOptionalParams): Promise<TagsCreateOrUpdateResponse>;
/**
* This operation allows deleting a name from the list of predefined tag names for the given
* subscription. The name being deleted must not be in use as a tag name for any resource. All
* predefined values for the given name must have already been deleted.
* @param tagName The name of the tag.
* @param options The options parameters.
*/
delete(tagName: string, options?: TagsDeleteOptionalParams): Promise<void>;
/**
* This operation performs a union of predefined tags, resource tags, resource group tags and
* subscription tags, and returns a summary of usage for each tag name and value under the given
* subscription. In case of a large number of tags, this operation may return a previously cached
* result.
* @param options The options parameters.
*/
private _list;
/**
* This operation allows adding or replacing the entire set of tags on the specified resource or
* subscription. The specified entity can have a maximum of 50 tags.
* @param scope The resource scope.
* @param parameters Wrapper resource for tags API requests and responses.
* @param options The options parameters.
*/
createOrUpdateAtScope(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise<TagsCreateOrUpdateAtScopeResponse>;
/**
* This operation allows replacing, merging or selectively deleting tags on the specified resource or
* subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The
* 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows
* adding tags with new names and updating the values of tags with existing names. The 'delete' option
* allows selectively deleting tags based on given names or name/value pairs.
* @param scope The resource scope.
* @param parameters Wrapper resource for tags patch API request only.
* @param options The options parameters.
*/
updateAtScope(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise<TagsUpdateAtScopeResponse>;
/**
* Gets the entire set of tags on a resource or subscription.
* @param scope The resource scope.
* @param options The options parameters.
*/
getAtScope(scope: string, options?: TagsGetAtScopeOptionalParams): Promise<TagsGetAtScopeResponse>;
/**
* Deletes the entire set of tags on a resource or subscription.
* @param scope The resource scope.
* @param options The options parameters.
*/
deleteAtScope(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise<void>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=tagsOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tagsOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/tagsOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAA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AC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;;;;;;OASG;IACH,aAAa,CACX,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,iBAAiB,EAC7B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;OAIG;IACH,UAAU,CACR,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;OAIG;IACH,aAAa,CACX,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,362 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing TagsOperations operations. */
export class TagsOperationsImpl {
/**
* Initialize a new instance of the class TagsOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* This operation performs a union of predefined tags, resource tags, resource group tags and
* subscription tags, and returns a summary of usage for each tag name and value under the given
* subscription. In case of a large number of tags, this operation may return a previously cached
* result.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* This operation allows deleting a value from the list of predefined values for an existing predefined
* tag name. The value being deleted must not be in use as a tag value for the given tag name for any
* resource.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to delete.
* @param options The options parameters.
*/
deleteValue(tagName, tagValue, options) {
return this.client.sendOperationRequest({ tagName, tagValue, options }, deleteValueOperationSpec);
}
/**
* This operation allows adding a value to the list of predefined values for an existing predefined tag
* name. A tag value can have a maximum of 256 characters.
* @param tagName The name of the tag.
* @param tagValue The value of the tag to create.
* @param options The options parameters.
*/
createOrUpdateValue(tagName, tagValue, options) {
return this.client.sendOperationRequest({ tagName, tagValue, options }, createOrUpdateValueOperationSpec);
}
/**
* This operation allows adding a name to the list of predefined tag names for the given subscription.
* A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the
* following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
* @param tagName The name of the tag to create.
* @param options The options parameters.
*/
createOrUpdate(tagName, options) {
return this.client.sendOperationRequest({ tagName, options }, createOrUpdateOperationSpec);
}
/**
* This operation allows deleting a name from the list of predefined tag names for the given
* subscription. The name being deleted must not be in use as a tag name for any resource. All
* predefined values for the given name must have already been deleted.
* @param tagName The name of the tag.
* @param options The options parameters.
*/
delete(tagName, options) {
return this.client.sendOperationRequest({ tagName, options }, deleteOperationSpec);
}
/**
* This operation performs a union of predefined tags, resource tags, resource group tags and
* subscription tags, and returns a summary of usage for each tag name and value under the given
* subscription. In case of a large number of tags, this operation may return a previously cached
* result.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* This operation allows adding or replacing the entire set of tags on the specified resource or
* subscription. The specified entity can have a maximum of 50 tags.
* @param scope The resource scope.
* @param parameters Wrapper resource for tags API requests and responses.
* @param options The options parameters.
*/
createOrUpdateAtScope(scope, parameters, options) {
return this.client.sendOperationRequest({ scope, parameters, options }, createOrUpdateAtScopeOperationSpec);
}
/**
* This operation allows replacing, merging or selectively deleting tags on the specified resource or
* subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The
* 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows
* adding tags with new names and updating the values of tags with existing names. The 'delete' option
* allows selectively deleting tags based on given names or name/value pairs.
* @param scope The resource scope.
* @param parameters Wrapper resource for tags patch API request only.
* @param options The options parameters.
*/
updateAtScope(scope, parameters, options) {
return this.client.sendOperationRequest({ scope, parameters, options }, updateAtScopeOperationSpec);
}
/**
* Gets the entire set of tags on a resource or subscription.
* @param scope The resource scope.
* @param options The options parameters.
*/
getAtScope(scope, options) {
return this.client.sendOperationRequest({ scope, options }, getAtScopeOperationSpec);
}
/**
* Deletes the entire set of tags on a resource or subscription.
* @param scope The resource scope.
* @param options The options parameters.
*/
deleteAtScope(scope, options) {
return this.client.sendOperationRequest({ scope, options }, deleteAtScopeOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const deleteValueOperationSpec = {
path: "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.tagName,
Parameters.tagValue
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateValueOperationSpec = {
path: "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.TagValue
},
201: {
bodyMapper: Mappers.TagValue
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.tagName,
Parameters.tagValue
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/tagNames/{tagName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.TagDetails
},
201: {
bodyMapper: Mappers.TagDetails
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.tagName
],
headerParameters: [Parameters.accept],
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/tagNames/{tagName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.tagName
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/tagNames",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TagsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/tags/default",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.TagsResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters9,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.scope],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const updateAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/tags/default",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.TagsResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters10,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.scope],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/tags/default",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TagsResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.scope],
headerParameters: [Parameters.accept],
serializer
};
const deleteAtScopeOperationSpec = {
path: "/{scope}/providers/Microsoft.Resources/tags/default",
httpMethod: "DELETE",
responses: {
200: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.scope],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TagsListResult
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.nextLink,
Parameters.subscriptionId
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=tagsOperations.js.map
@@ -0,0 +1 @@
{"version":3,"file":"tagsOperations.js","sourceRoot":"","sources":["../../../src/operations/tagsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAyBnD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAgC;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