@azure/arm-templatespecs 2.1.1-alpha.20250212.1 → 2.1.1-alpha.20250213.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/templateSpecVersions.d.ts +3 -3
- package/dist/browser/operations/templateSpecVersions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/templateSpecVersions.js +3 -3
- package/dist/browser/operations/templateSpecVersions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/templateSpecs.d.ts +3 -3
- package/dist/browser/operations/templateSpecs.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/templateSpecs.js +3 -3
- package/dist/browser/operations/templateSpecs.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecVersions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/templateSpecVersions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecs.d.ts +1 -1
- package/dist/browser/operationsInterfaces/templateSpecs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/templateSpecs.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/templateSpecsClient.d.ts +2 -2
- package/dist/browser/templateSpecsClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/templateSpecsClient.js +15 -18
- package/dist/browser/templateSpecsClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/{types/arm-templatespecs.d.ts → dist/commonjs/models/index.d.ts} +310 -472
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +29 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +15 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +422 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +16 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +147 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/templateSpecVersions.d.ts +72 -0
- package/dist/commonjs/operations/templateSpecVersions.d.ts.map +1 -0
- package/dist/commonjs/operations/templateSpecVersions.js +297 -0
- package/dist/commonjs/operations/templateSpecVersions.js.map +1 -0
- package/dist/commonjs/operations/templateSpecs.d.ts +82 -0
- package/dist/commonjs/operations/templateSpecs.d.ts.map +1 -0
- package/dist/commonjs/operations/templateSpecs.js +389 -0
- package/dist/commonjs/operations/templateSpecs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/templateSpecVersions.d.ts +47 -0
- package/dist/commonjs/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/templateSpecVersions.js +10 -0
- package/dist/commonjs/operationsInterfaces/templateSpecVersions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/templateSpecs.d.ts +46 -0
- package/dist/commonjs/operationsInterfaces/templateSpecs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/templateSpecs.js +10 -0
- package/dist/commonjs/operationsInterfaces/templateSpecs.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/templateSpecsClient.d.ts +21 -0
- package/dist/commonjs/templateSpecsClient.d.ts.map +1 -0
- package/dist/commonjs/templateSpecsClient.js +103 -0
- package/dist/commonjs/templateSpecsClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +310 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +15 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +419 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +16 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +144 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/templateSpecVersions.d.ts +72 -0
- package/dist/esm/operations/templateSpecVersions.d.ts.map +1 -0
- package/dist/esm/operations/templateSpecVersions.js +293 -0
- package/dist/esm/operations/templateSpecVersions.js.map +1 -0
- package/dist/esm/operations/templateSpecs.d.ts +82 -0
- package/dist/esm/operations/templateSpecs.d.ts.map +1 -0
- package/dist/esm/operations/templateSpecs.js +385 -0
- package/dist/esm/operations/templateSpecs.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/templateSpecVersions.d.ts +47 -0
- package/dist/esm/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/templateSpecVersions.js} +2 -3
- package/dist/esm/operationsInterfaces/templateSpecVersions.js.map +1 -0
- package/dist/esm/operationsInterfaces/templateSpecs.d.ts +46 -0
- package/dist/esm/operationsInterfaces/templateSpecs.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/templateSpecs.js} +2 -3
- package/dist/esm/operationsInterfaces/templateSpecs.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/templateSpecsClient.d.ts +21 -0
- package/dist/esm/templateSpecsClient.d.ts.map +1 -0
- package/dist/esm/templateSpecsClient.js +98 -0
- package/dist/esm/templateSpecsClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +310 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +26 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +15 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +419 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +16 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +144 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/templateSpecVersions.d.ts +72 -0
- package/dist/react-native/operations/templateSpecVersions.d.ts.map +1 -0
- package/dist/react-native/operations/templateSpecVersions.js +293 -0
- package/dist/react-native/operations/templateSpecVersions.js.map +1 -0
- package/dist/react-native/operations/templateSpecs.d.ts +82 -0
- package/dist/react-native/operations/templateSpecs.d.ts.map +1 -0
- package/dist/react-native/operations/templateSpecs.js +385 -0
- package/dist/react-native/operations/templateSpecs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/templateSpecVersions.d.ts +47 -0
- package/dist/react-native/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/templateSpecVersions.js +9 -0
- package/dist/react-native/operationsInterfaces/templateSpecVersions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/templateSpecs.d.ts +46 -0
- package/dist/react-native/operationsInterfaces/templateSpecs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/templateSpecs.js +9 -0
- package/dist/react-native/operationsInterfaces/templateSpecs.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/templateSpecsClient.d.ts +21 -0
- package/dist/react-native/templateSpecsClient.d.ts.map +1 -0
- package/dist/react-native/templateSpecsClient.js +98 -0
- package/dist/react-native/templateSpecsClient.js.map +1 -0
- package/package.json +66 -35
- package/dist/index.js +0 -1433
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.js +0 -33
- package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.js +0 -30
- package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecVersionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsGetSample.js +0 -30
- package/dist-esm/samples-dev/templateSpecVersionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecVersionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsListSample.js +0 -45
- package/dist-esm/samples-dev/templateSpecVersionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.js +0 -29
- package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.js +0 -26
- package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsDeleteSample.js +0 -29
- package/dist-esm/samples-dev/templateSpecsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsGetSample.js +0 -29
- package/dist-esm/samples-dev/templateSpecsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/templateSpecsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/templateSpecsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/templateSpecsUpdateSample.js +0 -24
- package/dist-esm/samples-dev/templateSpecsUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/templateSpecVersions.d.ts.map +0 -1
- package/dist-esm/src/operations/templateSpecVersions.js.map +0 -1
- package/dist-esm/src/operations/templateSpecs.d.ts.map +0 -1
- package/dist-esm/src/operations/templateSpecs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/templateSpecVersions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/templateSpecVersions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/templateSpecs.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/templateSpecsClient.d.ts.map +0 -1
- package/dist-esm/src/templateSpecsClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/models/index.ts +0 -359
- package/src/models/mappers.ts +0 -456
- package/src/models/parameters.ts +0 -168
- package/src/operations/templateSpecVersions.ts +0 -389
- package/src/operations/templateSpecs.ts +0 -476
- package/src/operationsInterfaces/templateSpecVersions.ts +0 -91
- package/src/operationsInterfaces/templateSpecs.ts +0 -88
- package/src/pagingHelper.ts +0 -39
- package/src/templateSpecsClient.ts +0 -142
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecVersions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecs.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpecs } from "../operationsInterfaces/index.js";
|
3
|
+
import { TemplateSpecsClient } from "../templateSpecsClient.js";
|
4
|
+
import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models/index.js";
|
5
|
+
/** Class containing TemplateSpecs operations. */
|
6
|
+
export declare class TemplateSpecsImpl implements TemplateSpecs {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class TemplateSpecs class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: TemplateSpecsClient);
|
13
|
+
/**
|
14
|
+
* Lists all the Template Specs within the specified subscriptions.
|
15
|
+
* @param options The options parameters.
|
16
|
+
*/
|
17
|
+
listBySubscription(options?: TemplateSpecsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
18
|
+
private listBySubscriptionPagingPage;
|
19
|
+
private listBySubscriptionPagingAll;
|
20
|
+
/**
|
21
|
+
* Lists all the Template Specs within the specified resource group.
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
23
|
+
* @param options The options parameters.
|
24
|
+
*/
|
25
|
+
listByResourceGroup(resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
26
|
+
private listByResourceGroupPagingPage;
|
27
|
+
private listByResourceGroupPagingAll;
|
28
|
+
/**
|
29
|
+
* Creates or updates a Template Spec.
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
31
|
+
* @param templateSpecName Name of the Template Spec.
|
32
|
+
* @param templateSpec Template Spec supplied to the operation.
|
33
|
+
* @param options The options parameters.
|
34
|
+
*/
|
35
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, options?: TemplateSpecsCreateOrUpdateOptionalParams): Promise<TemplateSpecsCreateOrUpdateResponse>;
|
36
|
+
/**
|
37
|
+
* Updates Template Spec tags with specified values.
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
39
|
+
* @param templateSpecName Name of the Template Spec.
|
40
|
+
* @param options The options parameters.
|
41
|
+
*/
|
42
|
+
update(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsUpdateOptionalParams): Promise<TemplateSpecsUpdateResponse>;
|
43
|
+
/**
|
44
|
+
* Gets a Template Spec with a given name.
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
46
|
+
* @param templateSpecName Name of the Template Spec.
|
47
|
+
* @param options The options parameters.
|
48
|
+
*/
|
49
|
+
get(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsGetOptionalParams): Promise<TemplateSpecsGetResponse>;
|
50
|
+
/**
|
51
|
+
* Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
|
52
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
53
|
+
* @param templateSpecName Name of the Template Spec.
|
54
|
+
* @param options The options parameters.
|
55
|
+
*/
|
56
|
+
delete(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsDeleteOptionalParams): Promise<void>;
|
57
|
+
/**
|
58
|
+
* Lists all the Template Specs within the specified subscriptions.
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
private _listBySubscription;
|
62
|
+
/**
|
63
|
+
* Lists all the Template Specs within the specified resource group.
|
64
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
65
|
+
* @param options The options parameters.
|
66
|
+
*/
|
67
|
+
private _listByResourceGroup;
|
68
|
+
/**
|
69
|
+
* ListBySubscriptionNext
|
70
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
71
|
+
* @param options The options parameters.
|
72
|
+
*/
|
73
|
+
private _listBySubscriptionNext;
|
74
|
+
/**
|
75
|
+
* ListByResourceGroupNext
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
77
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
78
|
+
* @param options The options parameters.
|
79
|
+
*/
|
80
|
+
private _listByResourceGroupNext;
|
81
|
+
}
|
82
|
+
//# sourceMappingURL=templateSpecs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.d.ts","sourceRoot":"","sources":["../../../src/operations/templateSpecs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,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1C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
|
@@ -0,0 +1,385 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
14
|
+
/** Class containing TemplateSpecs operations. */
|
15
|
+
export class TemplateSpecsImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class TemplateSpecs class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Lists all the Template Specs within the specified subscriptions.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
listBySubscription(options) {
|
28
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
29
|
+
return {
|
30
|
+
next() {
|
31
|
+
return iter.next();
|
32
|
+
},
|
33
|
+
[Symbol.asyncIterator]() {
|
34
|
+
return this;
|
35
|
+
},
|
36
|
+
byPage: (settings) => {
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
39
|
+
}
|
40
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
listBySubscriptionPagingPage(options, settings) {
|
45
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
46
|
+
let result;
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
48
|
+
if (!continuationToken) {
|
49
|
+
result = yield __await(this._listBySubscription(options));
|
50
|
+
let page = result.value || [];
|
51
|
+
continuationToken = result.nextLink;
|
52
|
+
setContinuationToken(page, continuationToken);
|
53
|
+
yield yield __await(page);
|
54
|
+
}
|
55
|
+
while (continuationToken) {
|
56
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
57
|
+
continuationToken = result.nextLink;
|
58
|
+
let page = result.value || [];
|
59
|
+
setContinuationToken(page, continuationToken);
|
60
|
+
yield yield __await(page);
|
61
|
+
}
|
62
|
+
});
|
63
|
+
}
|
64
|
+
listBySubscriptionPagingAll(options) {
|
65
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
66
|
+
var _a, e_1, _b, _c;
|
67
|
+
try {
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
69
|
+
_c = _f.value;
|
70
|
+
_d = false;
|
71
|
+
const page = _c;
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
73
|
+
}
|
74
|
+
}
|
75
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
76
|
+
finally {
|
77
|
+
try {
|
78
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
79
|
+
}
|
80
|
+
finally { if (e_1) throw e_1.error; }
|
81
|
+
}
|
82
|
+
});
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Lists all the Template Specs within the specified resource group.
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
87
|
+
* @param options The options parameters.
|
88
|
+
*/
|
89
|
+
listByResourceGroup(resourceGroupName, options) {
|
90
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
91
|
+
return {
|
92
|
+
next() {
|
93
|
+
return iter.next();
|
94
|
+
},
|
95
|
+
[Symbol.asyncIterator]() {
|
96
|
+
return this;
|
97
|
+
},
|
98
|
+
byPage: (settings) => {
|
99
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
100
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
101
|
+
}
|
102
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
103
|
+
}
|
104
|
+
};
|
105
|
+
}
|
106
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
107
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
108
|
+
let result;
|
109
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
110
|
+
if (!continuationToken) {
|
111
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
112
|
+
let page = result.value || [];
|
113
|
+
continuationToken = result.nextLink;
|
114
|
+
setContinuationToken(page, continuationToken);
|
115
|
+
yield yield __await(page);
|
116
|
+
}
|
117
|
+
while (continuationToken) {
|
118
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
119
|
+
continuationToken = result.nextLink;
|
120
|
+
let page = result.value || [];
|
121
|
+
setContinuationToken(page, continuationToken);
|
122
|
+
yield yield __await(page);
|
123
|
+
}
|
124
|
+
});
|
125
|
+
}
|
126
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
127
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
128
|
+
var _a, e_2, _b, _c;
|
129
|
+
try {
|
130
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
131
|
+
_c = _f.value;
|
132
|
+
_d = false;
|
133
|
+
const page = _c;
|
134
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
135
|
+
}
|
136
|
+
}
|
137
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
138
|
+
finally {
|
139
|
+
try {
|
140
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
141
|
+
}
|
142
|
+
finally { if (e_2) throw e_2.error; }
|
143
|
+
}
|
144
|
+
});
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* Creates or updates a Template Spec.
|
148
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
149
|
+
* @param templateSpecName Name of the Template Spec.
|
150
|
+
* @param templateSpec Template Spec supplied to the operation.
|
151
|
+
* @param options The options parameters.
|
152
|
+
*/
|
153
|
+
createOrUpdate(resourceGroupName, templateSpecName, templateSpec, options) {
|
154
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, templateSpec, options }, createOrUpdateOperationSpec);
|
155
|
+
}
|
156
|
+
/**
|
157
|
+
* Updates Template Spec tags with specified values.
|
158
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
159
|
+
* @param templateSpecName Name of the Template Spec.
|
160
|
+
* @param options The options parameters.
|
161
|
+
*/
|
162
|
+
update(resourceGroupName, templateSpecName, options) {
|
163
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, updateOperationSpec);
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* Gets a Template Spec with a given name.
|
167
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
168
|
+
* @param templateSpecName Name of the Template Spec.
|
169
|
+
* @param options The options parameters.
|
170
|
+
*/
|
171
|
+
get(resourceGroupName, templateSpecName, options) {
|
172
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, getOperationSpec);
|
173
|
+
}
|
174
|
+
/**
|
175
|
+
* Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
|
176
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
177
|
+
* @param templateSpecName Name of the Template Spec.
|
178
|
+
* @param options The options parameters.
|
179
|
+
*/
|
180
|
+
delete(resourceGroupName, templateSpecName, options) {
|
181
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, deleteOperationSpec);
|
182
|
+
}
|
183
|
+
/**
|
184
|
+
* Lists all the Template Specs within the specified subscriptions.
|
185
|
+
* @param options The options parameters.
|
186
|
+
*/
|
187
|
+
_listBySubscription(options) {
|
188
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
189
|
+
}
|
190
|
+
/**
|
191
|
+
* Lists all the Template Specs within the specified resource group.
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
193
|
+
* @param options The options parameters.
|
194
|
+
*/
|
195
|
+
_listByResourceGroup(resourceGroupName, options) {
|
196
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
197
|
+
}
|
198
|
+
/**
|
199
|
+
* ListBySubscriptionNext
|
200
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
201
|
+
* @param options The options parameters.
|
202
|
+
*/
|
203
|
+
_listBySubscriptionNext(nextLink, options) {
|
204
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
205
|
+
}
|
206
|
+
/**
|
207
|
+
* ListByResourceGroupNext
|
208
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
209
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
210
|
+
* @param options The options parameters.
|
211
|
+
*/
|
212
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
213
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
// Operation Specifications
|
217
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
218
|
+
const createOrUpdateOperationSpec = {
|
219
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
220
|
+
httpMethod: "PUT",
|
221
|
+
responses: {
|
222
|
+
200: {
|
223
|
+
bodyMapper: Mappers.TemplateSpec
|
224
|
+
},
|
225
|
+
201: {
|
226
|
+
bodyMapper: Mappers.TemplateSpec
|
227
|
+
},
|
228
|
+
default: {
|
229
|
+
bodyMapper: Mappers.TemplateSpecsError
|
230
|
+
}
|
231
|
+
},
|
232
|
+
requestBody: Parameters.templateSpec,
|
233
|
+
queryParameters: [Parameters.apiVersion],
|
234
|
+
urlParameters: [
|
235
|
+
Parameters.$host,
|
236
|
+
Parameters.subscriptionId,
|
237
|
+
Parameters.resourceGroupName,
|
238
|
+
Parameters.templateSpecName
|
239
|
+
],
|
240
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
241
|
+
mediaType: "json",
|
242
|
+
serializer
|
243
|
+
};
|
244
|
+
const updateOperationSpec = {
|
245
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
246
|
+
httpMethod: "PATCH",
|
247
|
+
responses: {
|
248
|
+
200: {
|
249
|
+
bodyMapper: Mappers.TemplateSpec
|
250
|
+
},
|
251
|
+
default: {
|
252
|
+
bodyMapper: Mappers.TemplateSpecsError
|
253
|
+
}
|
254
|
+
},
|
255
|
+
requestBody: Parameters.templateSpec1,
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
257
|
+
urlParameters: [
|
258
|
+
Parameters.$host,
|
259
|
+
Parameters.subscriptionId,
|
260
|
+
Parameters.resourceGroupName,
|
261
|
+
Parameters.templateSpecName
|
262
|
+
],
|
263
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
264
|
+
mediaType: "json",
|
265
|
+
serializer
|
266
|
+
};
|
267
|
+
const getOperationSpec = {
|
268
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
269
|
+
httpMethod: "GET",
|
270
|
+
responses: {
|
271
|
+
200: {
|
272
|
+
bodyMapper: Mappers.TemplateSpec
|
273
|
+
},
|
274
|
+
default: {
|
275
|
+
bodyMapper: Mappers.TemplateSpecsError
|
276
|
+
}
|
277
|
+
},
|
278
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
279
|
+
urlParameters: [
|
280
|
+
Parameters.$host,
|
281
|
+
Parameters.subscriptionId,
|
282
|
+
Parameters.resourceGroupName,
|
283
|
+
Parameters.templateSpecName
|
284
|
+
],
|
285
|
+
headerParameters: [Parameters.accept],
|
286
|
+
serializer
|
287
|
+
};
|
288
|
+
const deleteOperationSpec = {
|
289
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
290
|
+
httpMethod: "DELETE",
|
291
|
+
responses: {
|
292
|
+
200: {},
|
293
|
+
204: {},
|
294
|
+
default: {
|
295
|
+
bodyMapper: Mappers.TemplateSpecsError
|
296
|
+
}
|
297
|
+
},
|
298
|
+
queryParameters: [Parameters.apiVersion],
|
299
|
+
urlParameters: [
|
300
|
+
Parameters.$host,
|
301
|
+
Parameters.subscriptionId,
|
302
|
+
Parameters.resourceGroupName,
|
303
|
+
Parameters.templateSpecName
|
304
|
+
],
|
305
|
+
headerParameters: [Parameters.accept],
|
306
|
+
serializer
|
307
|
+
};
|
308
|
+
const listBySubscriptionOperationSpec = {
|
309
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/",
|
310
|
+
httpMethod: "GET",
|
311
|
+
responses: {
|
312
|
+
200: {
|
313
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
314
|
+
},
|
315
|
+
default: {
|
316
|
+
bodyMapper: Mappers.TemplateSpecsError
|
317
|
+
}
|
318
|
+
},
|
319
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
320
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
321
|
+
headerParameters: [Parameters.accept],
|
322
|
+
serializer
|
323
|
+
};
|
324
|
+
const listByResourceGroupOperationSpec = {
|
325
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/",
|
326
|
+
httpMethod: "GET",
|
327
|
+
responses: {
|
328
|
+
200: {
|
329
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
330
|
+
},
|
331
|
+
default: {
|
332
|
+
bodyMapper: Mappers.TemplateSpecsError
|
333
|
+
}
|
334
|
+
},
|
335
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
336
|
+
urlParameters: [
|
337
|
+
Parameters.$host,
|
338
|
+
Parameters.subscriptionId,
|
339
|
+
Parameters.resourceGroupName
|
340
|
+
],
|
341
|
+
headerParameters: [Parameters.accept],
|
342
|
+
serializer
|
343
|
+
};
|
344
|
+
const listBySubscriptionNextOperationSpec = {
|
345
|
+
path: "{nextLink}",
|
346
|
+
httpMethod: "GET",
|
347
|
+
responses: {
|
348
|
+
200: {
|
349
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
350
|
+
},
|
351
|
+
default: {
|
352
|
+
bodyMapper: Mappers.TemplateSpecsError
|
353
|
+
}
|
354
|
+
},
|
355
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
356
|
+
urlParameters: [
|
357
|
+
Parameters.$host,
|
358
|
+
Parameters.subscriptionId,
|
359
|
+
Parameters.nextLink
|
360
|
+
],
|
361
|
+
headerParameters: [Parameters.accept],
|
362
|
+
serializer
|
363
|
+
};
|
364
|
+
const listByResourceGroupNextOperationSpec = {
|
365
|
+
path: "{nextLink}",
|
366
|
+
httpMethod: "GET",
|
367
|
+
responses: {
|
368
|
+
200: {
|
369
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
370
|
+
},
|
371
|
+
default: {
|
372
|
+
bodyMapper: Mappers.TemplateSpecsError
|
373
|
+
}
|
374
|
+
},
|
375
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
376
|
+
urlParameters: [
|
377
|
+
Parameters.$host,
|
378
|
+
Parameters.subscriptionId,
|
379
|
+
Parameters.resourceGroupName,
|
380
|
+
Parameters.nextLink
|
381
|
+
],
|
382
|
+
headerParameters: [Parameters.accept],
|
383
|
+
serializer
|
384
|
+
};
|
385
|
+
//# sourceMappingURL=templateSpecs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.js","sourceRoot":"","sources":["../../../src/operations/templateSpecs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,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n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TemplateSpecs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TemplateSpecsClient } from \"../templateSpecsClient.js\";\nimport {\n TemplateSpec,\n TemplateSpecsListBySubscriptionNextOptionalParams,\n TemplateSpecsListBySubscriptionOptionalParams,\n TemplateSpecsListBySubscriptionResponse,\n TemplateSpecsListByResourceGroupNextOptionalParams,\n TemplateSpecsListByResourceGroupOptionalParams,\n TemplateSpecsListByResourceGroupResponse,\n TemplateSpecsCreateOrUpdateOptionalParams,\n TemplateSpecsCreateOrUpdateResponse,\n TemplateSpecsUpdateOptionalParams,\n TemplateSpecsUpdateResponse,\n TemplateSpecsGetOptionalParams,\n TemplateSpecsGetResponse,\n TemplateSpecsDeleteOptionalParams,\n TemplateSpecsListBySubscriptionNextResponse,\n TemplateSpecsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TemplateSpecs operations. */\nexport class TemplateSpecsImpl implements TemplateSpecs {\n private readonly client: TemplateSpecsClient;\n\n /**\n * Initialize a new instance of the class TemplateSpecs class.\n * @param client Reference to the service client\n */\n constructor(client: TemplateSpecsClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Template Specs within the specified subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: TemplateSpecsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpec[]> {\n let result: TemplateSpecsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<TemplateSpec> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the Template Specs within the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpec[]> {\n let result: TemplateSpecsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<TemplateSpec> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpec Template Spec supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpec: TemplateSpec,\n options?: TemplateSpecsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpec, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Updates Template Spec tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsUpdateOptionalParams\n ): Promise<TemplateSpecsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets a Template Spec with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsGetOptionalParams\n ): Promise<TemplateSpecsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a Template Spec by name. When operation completes, status code 200 returned without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the Template Specs within the specified subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): Promise<TemplateSpecsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Lists all the Template Specs within the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): Promise<TemplateSpecsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: TemplateSpecsListBySubscriptionNextOptionalParams\n ): Promise<TemplateSpecsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: TemplateSpecsListByResourceGroupNextOptionalParams\n ): Promise<TemplateSpecsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n 201: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpec,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpec1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./templateSpecs.js";
|
9
|
+
export * from "./templateSpecVersions.js";
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./templateSpecs.js\";\nexport * from \"./templateSpecVersions.js\";\n"]}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models/index.js";
|
3
|
+
/** Interface representing a TemplateSpecVersions. */
|
4
|
+
export interface TemplateSpecVersions {
|
5
|
+
/**
|
6
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
7
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
8
|
+
* @param templateSpecName Name of the Template Spec.
|
9
|
+
* @param options The options parameters.
|
10
|
+
*/
|
11
|
+
list(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecVersionsListOptionalParams): PagedAsyncIterableIterator<TemplateSpecVersion>;
|
12
|
+
/**
|
13
|
+
* Creates or updates a Template Spec version.
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
15
|
+
* @param templateSpecName Name of the Template Spec.
|
16
|
+
* @param templateSpecVersion The version of the Template Spec.
|
17
|
+
* @param templateSpecVersionModel Template Spec Version supplied to the operation.
|
18
|
+
* @param options The options parameters.
|
19
|
+
*/
|
20
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, options?: TemplateSpecVersionsCreateOrUpdateOptionalParams): Promise<TemplateSpecVersionsCreateOrUpdateResponse>;
|
21
|
+
/**
|
22
|
+
* Updates Template Spec Version tags with specified values.
|
23
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
24
|
+
* @param templateSpecName Name of the Template Spec.
|
25
|
+
* @param templateSpecVersion The version of the Template Spec.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
update(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsUpdateOptionalParams): Promise<TemplateSpecVersionsUpdateResponse>;
|
29
|
+
/**
|
30
|
+
* Gets a Template Spec version from a specific Template Spec.
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
32
|
+
* @param templateSpecName Name of the Template Spec.
|
33
|
+
* @param templateSpecVersion The version of the Template Spec.
|
34
|
+
* @param options The options parameters.
|
35
|
+
*/
|
36
|
+
get(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsGetOptionalParams): Promise<TemplateSpecVersionsGetResponse>;
|
37
|
+
/**
|
38
|
+
* Deletes a specific version from a Template Spec. When operation completes, status code 200 returned
|
39
|
+
* without content.
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
41
|
+
* @param templateSpecName Name of the Template Spec.
|
42
|
+
* @param templateSpecVersion The version of the Template Spec.
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
delete(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsDeleteOptionalParams): Promise<void>;
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=templateSpecVersions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,sCAAsC,EACtC,gDAAgD,EAChD,0CAA0C,EAC1C,wCAAwC,EACxC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,wBAAwB,EAAE,mBAAmB,EAC7C,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACvD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -5,6 +5,5 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
|
9
|
-
|
10
|
-
export * from "./templateSpecVersions";
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=templateSpecVersions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n TemplateSpecVersion,\n TemplateSpecVersionsListOptionalParams,\n TemplateSpecVersionsCreateOrUpdateOptionalParams,\n TemplateSpecVersionsCreateOrUpdateResponse,\n TemplateSpecVersionsUpdateOptionalParams,\n TemplateSpecVersionsUpdateResponse,\n TemplateSpecVersionsGetOptionalParams,\n TemplateSpecVersionsGetResponse,\n TemplateSpecVersionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a TemplateSpecVersions. */\nexport interface TemplateSpecVersions {\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpecVersion>;\n /**\n * Creates or updates a Template Spec version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param templateSpecVersionModel Template Spec Version supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n templateSpecVersionModel: TemplateSpecVersion,\n options?: TemplateSpecVersionsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecVersionsCreateOrUpdateResponse>;\n /**\n * Updates Template Spec Version tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsUpdateOptionalParams\n ): Promise<TemplateSpecVersionsUpdateResponse>;\n /**\n * Gets a Template Spec version from a specific Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsGetOptionalParams\n ): Promise<TemplateSpecVersionsGetResponse>;\n /**\n * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned\n * without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
|