@azure/arm-avs 1.0.0 → 3.0.0
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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -73
- package/dist/index.js +11681 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts +33 -0
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2962 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +363 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +115 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3114 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +53 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +409 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/addons.d.ts +81 -0
- package/dist-esm/src/operations/addons.d.ts.map +1 -0
- package/dist-esm/src/operations/addons.js +331 -0
- package/dist-esm/src/operations/addons.js.map +1 -0
- package/dist-esm/src/operations/authorizations.d.ts +81 -0
- package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
- package/dist-esm/src/operations/authorizations.js +337 -0
- package/dist-esm/src/operations/authorizations.js.map +1 -0
- package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
- package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudLinks.js +337 -0
- package/dist-esm/src/operations/cloudLinks.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +99 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +423 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/datastores.d.ts +89 -0
- package/dist-esm/src/operations/datastores.d.ts.map +1 -0
- package/dist-esm/src/operations/datastores.js +363 -0
- package/dist-esm/src/operations/datastores.js.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.js +347 -0
- package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +17 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +24 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +25 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +79 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
- package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/placementPolicies.js +466 -0
- package/dist-esm/src/operations/placementPolicies.js.map +1 -0
- package/dist-esm/src/operations/privateClouds.d.ts +142 -0
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operations/privateClouds.js +672 -0
- package/dist-esm/src/operations/privateClouds.js.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.js +191 -0
- package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.js +371 -0
- package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
- package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptPackages.js +169 -0
- package/dist-esm/src/operations/scriptPackages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +272 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.js +3049 -0
- package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/addons.js +9 -0
- package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizations.js +9 -0
- package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
- package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +24 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +89 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-avs.api.md +2534 -0
- package/rollup.config.js +181 -30
- package/src/azureVMwareSolutionAPI.ts +139 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3101 -931
- package/src/models/mappers.ts +2874 -387
- package/src/models/parameters.ts +407 -44
- package/src/operations/addons.ts +472 -0
- package/src/operations/authorizations.ts +341 -196
- package/src/operations/cloudLinks.ts +478 -0
- package/src/operations/clusters.ts +444 -238
- package/src/operations/datastores.ts +525 -0
- package/src/operations/globalReachConnections.ts +488 -0
- package/src/operations/hcxEnterpriseSites.ts +200 -210
- package/src/operations/index.ts +13 -5
- package/src/operations/locations.ts +56 -83
- package/src/operations/operations.ts +87 -73
- package/src/operations/placementPolicies.ts +677 -0
- package/src/operations/privateClouds.ts +705 -319
- package/src/operations/scriptCmdlets.ts +266 -0
- package/src/operations/scriptExecutions.ts +524 -0
- package/src/operations/scriptPackages.ts +229 -0
- package/src/operations/virtualMachines.ts +390 -0
- package/src/operations/workloadNetworks.ts +4398 -0
- package/src/operationsInterfaces/addons.ts +109 -0
- package/src/operationsInterfaces/authorizations.ts +109 -0
- package/src/operationsInterfaces/cloudLinks.ts +109 -0
- package/src/operationsInterfaces/clusters.ts +147 -0
- package/src/operationsInterfaces/datastores.ts +121 -0
- package/src/operationsInterfaces/globalReachConnections.ts +109 -0
- package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
- package/src/operationsInterfaces/index.ts +24 -0
- package/src/operationsInterfaces/locations.ts +36 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/placementPolicies.ts +170 -0
- package/src/operationsInterfaces/privateClouds.ts +198 -0
- package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
- package/src/operationsInterfaces/scriptExecutions.ts +124 -0
- package/src/operationsInterfaces/scriptPackages.ts +44 -0
- package/src/operationsInterfaces/virtualMachines.ts +85 -0
- package/src/operationsInterfaces/workloadNetworks.ts +951 -0
- package/tsconfig.json +3 -3
- package/types/arm-avs.d.ts +4645 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-avs.js +0 -2585
- package/dist/arm-avs.js.map +0 -1
- package/dist/arm-avs.min.js +0 -1
- package/dist/arm-avs.min.js.map +0 -1
- package/esm/avsClient.d.ts +0 -23
- package/esm/avsClient.d.ts.map +0 -1
- package/esm/avsClient.js +0 -38
- package/esm/avsClient.js.map +0 -1
- package/esm/avsClientContext.d.ts +0 -16
- package/esm/avsClientContext.d.ts.map +0 -1
- package/esm/avsClientContext.js +0 -56
- package/esm/avsClientContext.js.map +0 -1
- package/esm/models/authorizationsMappers.d.ts +0 -2
- package/esm/models/authorizationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationsMappers.js +0 -9
- package/esm/models/authorizationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
- package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
- package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1163
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -30
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -881
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -122
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateCloudsMappers.d.ts +0 -2
- package/esm/models/privateCloudsMappers.d.ts.map +0 -1
- package/esm/models/privateCloudsMappers.js +0 -9
- package/esm/models/privateCloudsMappers.js.map +0 -1
- package/esm/operations/authorizations.d.ts +0 -115
- package/esm/operations/authorizations.d.ts.map +0 -1
- package/esm/operations/authorizations.js +0 -239
- package/esm/operations/authorizations.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -133
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -299
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/hcxEnterpriseSites.d.ts +0 -127
- package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
- package/esm/operations/hcxEnterpriseSites.js +0 -196
- package/esm/operations/hcxEnterpriseSites.js.map +0 -1
- package/esm/operations/index.d.ts +0 -7
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -16
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -49
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -85
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateClouds.d.ts +0 -177
- package/esm/operations/privateClouds.d.ts.map +0 -1
- package/esm/operations/privateClouds.js +0 -365
- package/esm/operations/privateClouds.js.map +0 -1
- package/src/avsClient.ts +0 -52
- package/src/avsClientContext.ts +0 -62
- package/src/models/authorizationsMappers.ts +0 -27
- package/src/models/clustersMappers.ts +0 -28
- package/src/models/hcxEnterpriseSitesMappers.ts +0 -27
- package/src/models/locationsMappers.ts +0 -15
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateCloudsMappers.ts +0 -29
|
@@ -0,0 +1,524 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ScriptExecutions } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
ScriptExecution,
|
|
19
|
+
ScriptExecutionsListNextOptionalParams,
|
|
20
|
+
ScriptExecutionsListOptionalParams,
|
|
21
|
+
ScriptExecutionsListResponse,
|
|
22
|
+
ScriptExecutionsGetOptionalParams,
|
|
23
|
+
ScriptExecutionsGetResponse,
|
|
24
|
+
ScriptExecutionsCreateOrUpdateOptionalParams,
|
|
25
|
+
ScriptExecutionsCreateOrUpdateResponse,
|
|
26
|
+
ScriptExecutionsDeleteOptionalParams,
|
|
27
|
+
ScriptExecutionsGetExecutionLogsOptionalParams,
|
|
28
|
+
ScriptExecutionsGetExecutionLogsResponse,
|
|
29
|
+
ScriptExecutionsListNextResponse
|
|
30
|
+
} from "../models";
|
|
31
|
+
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Class containing ScriptExecutions operations. */
|
|
34
|
+
export class ScriptExecutionsImpl implements ScriptExecutions {
|
|
35
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initialize a new instance of the class ScriptExecutions class.
|
|
39
|
+
* @param client Reference to the service client
|
|
40
|
+
*/
|
|
41
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
42
|
+
this.client = client;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* List script executions in a private cloud
|
|
47
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
48
|
+
* @param privateCloudName Name of the private cloud
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
public list(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
privateCloudName: string,
|
|
54
|
+
options?: ScriptExecutionsListOptionalParams
|
|
55
|
+
): PagedAsyncIterableIterator<ScriptExecution> {
|
|
56
|
+
const iter = this.listPagingAll(
|
|
57
|
+
resourceGroupName,
|
|
58
|
+
privateCloudName,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
return {
|
|
62
|
+
next() {
|
|
63
|
+
return iter.next();
|
|
64
|
+
},
|
|
65
|
+
[Symbol.asyncIterator]() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
byPage: () => {
|
|
69
|
+
return this.listPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
privateCloudName,
|
|
72
|
+
options
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listPagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
privateCloudName: string,
|
|
81
|
+
options?: ScriptExecutionsListOptionalParams
|
|
82
|
+
): AsyncIterableIterator<ScriptExecution[]> {
|
|
83
|
+
let result = await this._list(resourceGroupName, privateCloudName, options);
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
let continuationToken = result.nextLink;
|
|
86
|
+
while (continuationToken) {
|
|
87
|
+
result = await this._listNext(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
privateCloudName,
|
|
90
|
+
continuationToken,
|
|
91
|
+
options
|
|
92
|
+
);
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
yield result.value || [];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private async *listPagingAll(
|
|
99
|
+
resourceGroupName: string,
|
|
100
|
+
privateCloudName: string,
|
|
101
|
+
options?: ScriptExecutionsListOptionalParams
|
|
102
|
+
): AsyncIterableIterator<ScriptExecution> {
|
|
103
|
+
for await (const page of this.listPagingPage(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
privateCloudName,
|
|
106
|
+
options
|
|
107
|
+
)) {
|
|
108
|
+
yield* page;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* List script executions in a private cloud
|
|
114
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
115
|
+
* @param privateCloudName Name of the private cloud
|
|
116
|
+
* @param options The options parameters.
|
|
117
|
+
*/
|
|
118
|
+
private _list(
|
|
119
|
+
resourceGroupName: string,
|
|
120
|
+
privateCloudName: string,
|
|
121
|
+
options?: ScriptExecutionsListOptionalParams
|
|
122
|
+
): Promise<ScriptExecutionsListResponse> {
|
|
123
|
+
return this.client.sendOperationRequest(
|
|
124
|
+
{ resourceGroupName, privateCloudName, options },
|
|
125
|
+
listOperationSpec
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Get an script execution by name in a private cloud
|
|
131
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
132
|
+
* @param privateCloudName Name of the private cloud
|
|
133
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
get(
|
|
137
|
+
resourceGroupName: string,
|
|
138
|
+
privateCloudName: string,
|
|
139
|
+
scriptExecutionName: string,
|
|
140
|
+
options?: ScriptExecutionsGetOptionalParams
|
|
141
|
+
): Promise<ScriptExecutionsGetResponse> {
|
|
142
|
+
return this.client.sendOperationRequest(
|
|
143
|
+
{ resourceGroupName, privateCloudName, scriptExecutionName, options },
|
|
144
|
+
getOperationSpec
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Create or update a script execution in a private cloud
|
|
150
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
151
|
+
* @param privateCloudName The name of the private cloud.
|
|
152
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
153
|
+
* @param scriptExecution A script running in the private cloud
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
async beginCreateOrUpdate(
|
|
157
|
+
resourceGroupName: string,
|
|
158
|
+
privateCloudName: string,
|
|
159
|
+
scriptExecutionName: string,
|
|
160
|
+
scriptExecution: ScriptExecution,
|
|
161
|
+
options?: ScriptExecutionsCreateOrUpdateOptionalParams
|
|
162
|
+
): Promise<
|
|
163
|
+
PollerLike<
|
|
164
|
+
PollOperationState<ScriptExecutionsCreateOrUpdateResponse>,
|
|
165
|
+
ScriptExecutionsCreateOrUpdateResponse
|
|
166
|
+
>
|
|
167
|
+
> {
|
|
168
|
+
const directSendOperation = async (
|
|
169
|
+
args: coreClient.OperationArguments,
|
|
170
|
+
spec: coreClient.OperationSpec
|
|
171
|
+
): Promise<ScriptExecutionsCreateOrUpdateResponse> => {
|
|
172
|
+
return this.client.sendOperationRequest(args, spec);
|
|
173
|
+
};
|
|
174
|
+
const sendOperation = async (
|
|
175
|
+
args: coreClient.OperationArguments,
|
|
176
|
+
spec: coreClient.OperationSpec
|
|
177
|
+
) => {
|
|
178
|
+
let currentRawResponse:
|
|
179
|
+
| coreClient.FullOperationResponse
|
|
180
|
+
| undefined = undefined;
|
|
181
|
+
const providedCallback = args.options?.onResponse;
|
|
182
|
+
const callback: coreClient.RawResponseCallback = (
|
|
183
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
184
|
+
flatResponse: unknown
|
|
185
|
+
) => {
|
|
186
|
+
currentRawResponse = rawResponse;
|
|
187
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
188
|
+
};
|
|
189
|
+
const updatedArgs = {
|
|
190
|
+
...args,
|
|
191
|
+
options: {
|
|
192
|
+
...args.options,
|
|
193
|
+
onResponse: callback
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
197
|
+
return {
|
|
198
|
+
flatResponse,
|
|
199
|
+
rawResponse: {
|
|
200
|
+
statusCode: currentRawResponse!.status,
|
|
201
|
+
body: currentRawResponse!.parsedBody,
|
|
202
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const lro = new LroImpl(
|
|
208
|
+
sendOperation,
|
|
209
|
+
{
|
|
210
|
+
resourceGroupName,
|
|
211
|
+
privateCloudName,
|
|
212
|
+
scriptExecutionName,
|
|
213
|
+
scriptExecution,
|
|
214
|
+
options
|
|
215
|
+
},
|
|
216
|
+
createOrUpdateOperationSpec
|
|
217
|
+
);
|
|
218
|
+
return new LroEngine(lro, {
|
|
219
|
+
resumeFrom: options?.resumeFrom,
|
|
220
|
+
intervalInMs: options?.updateIntervalInMs
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Create or update a script execution in a private cloud
|
|
226
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
227
|
+
* @param privateCloudName The name of the private cloud.
|
|
228
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
229
|
+
* @param scriptExecution A script running in the private cloud
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
async beginCreateOrUpdateAndWait(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
privateCloudName: string,
|
|
235
|
+
scriptExecutionName: string,
|
|
236
|
+
scriptExecution: ScriptExecution,
|
|
237
|
+
options?: ScriptExecutionsCreateOrUpdateOptionalParams
|
|
238
|
+
): Promise<ScriptExecutionsCreateOrUpdateResponse> {
|
|
239
|
+
const poller = await this.beginCreateOrUpdate(
|
|
240
|
+
resourceGroupName,
|
|
241
|
+
privateCloudName,
|
|
242
|
+
scriptExecutionName,
|
|
243
|
+
scriptExecution,
|
|
244
|
+
options
|
|
245
|
+
);
|
|
246
|
+
return poller.pollUntilDone();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Cancel a ScriptExecution in a private cloud
|
|
251
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
252
|
+
* @param privateCloudName Name of the private cloud
|
|
253
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
async beginDelete(
|
|
257
|
+
resourceGroupName: string,
|
|
258
|
+
privateCloudName: string,
|
|
259
|
+
scriptExecutionName: string,
|
|
260
|
+
options?: ScriptExecutionsDeleteOptionalParams
|
|
261
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
262
|
+
const directSendOperation = async (
|
|
263
|
+
args: coreClient.OperationArguments,
|
|
264
|
+
spec: coreClient.OperationSpec
|
|
265
|
+
): Promise<void> => {
|
|
266
|
+
return this.client.sendOperationRequest(args, spec);
|
|
267
|
+
};
|
|
268
|
+
const sendOperation = async (
|
|
269
|
+
args: coreClient.OperationArguments,
|
|
270
|
+
spec: coreClient.OperationSpec
|
|
271
|
+
) => {
|
|
272
|
+
let currentRawResponse:
|
|
273
|
+
| coreClient.FullOperationResponse
|
|
274
|
+
| undefined = undefined;
|
|
275
|
+
const providedCallback = args.options?.onResponse;
|
|
276
|
+
const callback: coreClient.RawResponseCallback = (
|
|
277
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
278
|
+
flatResponse: unknown
|
|
279
|
+
) => {
|
|
280
|
+
currentRawResponse = rawResponse;
|
|
281
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
282
|
+
};
|
|
283
|
+
const updatedArgs = {
|
|
284
|
+
...args,
|
|
285
|
+
options: {
|
|
286
|
+
...args.options,
|
|
287
|
+
onResponse: callback
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
291
|
+
return {
|
|
292
|
+
flatResponse,
|
|
293
|
+
rawResponse: {
|
|
294
|
+
statusCode: currentRawResponse!.status,
|
|
295
|
+
body: currentRawResponse!.parsedBody,
|
|
296
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
const lro = new LroImpl(
|
|
302
|
+
sendOperation,
|
|
303
|
+
{ resourceGroupName, privateCloudName, scriptExecutionName, options },
|
|
304
|
+
deleteOperationSpec
|
|
305
|
+
);
|
|
306
|
+
return new LroEngine(lro, {
|
|
307
|
+
resumeFrom: options?.resumeFrom,
|
|
308
|
+
intervalInMs: options?.updateIntervalInMs
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Cancel a ScriptExecution in a private cloud
|
|
314
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
315
|
+
* @param privateCloudName Name of the private cloud
|
|
316
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
317
|
+
* @param options The options parameters.
|
|
318
|
+
*/
|
|
319
|
+
async beginDeleteAndWait(
|
|
320
|
+
resourceGroupName: string,
|
|
321
|
+
privateCloudName: string,
|
|
322
|
+
scriptExecutionName: string,
|
|
323
|
+
options?: ScriptExecutionsDeleteOptionalParams
|
|
324
|
+
): Promise<void> {
|
|
325
|
+
const poller = await this.beginDelete(
|
|
326
|
+
resourceGroupName,
|
|
327
|
+
privateCloudName,
|
|
328
|
+
scriptExecutionName,
|
|
329
|
+
options
|
|
330
|
+
);
|
|
331
|
+
return poller.pollUntilDone();
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Return the logs for a script execution resource
|
|
336
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
337
|
+
* @param privateCloudName Name of the private cloud
|
|
338
|
+
* @param scriptExecutionName Name of the user-invoked script execution resource
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
getExecutionLogs(
|
|
342
|
+
resourceGroupName: string,
|
|
343
|
+
privateCloudName: string,
|
|
344
|
+
scriptExecutionName: string,
|
|
345
|
+
options?: ScriptExecutionsGetExecutionLogsOptionalParams
|
|
346
|
+
): Promise<ScriptExecutionsGetExecutionLogsResponse> {
|
|
347
|
+
return this.client.sendOperationRequest(
|
|
348
|
+
{ resourceGroupName, privateCloudName, scriptExecutionName, options },
|
|
349
|
+
getExecutionLogsOperationSpec
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* ListNext
|
|
355
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
356
|
+
* @param privateCloudName Name of the private cloud
|
|
357
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
358
|
+
* @param options The options parameters.
|
|
359
|
+
*/
|
|
360
|
+
private _listNext(
|
|
361
|
+
resourceGroupName: string,
|
|
362
|
+
privateCloudName: string,
|
|
363
|
+
nextLink: string,
|
|
364
|
+
options?: ScriptExecutionsListNextOptionalParams
|
|
365
|
+
): Promise<ScriptExecutionsListNextResponse> {
|
|
366
|
+
return this.client.sendOperationRequest(
|
|
367
|
+
{ resourceGroupName, privateCloudName, nextLink, options },
|
|
368
|
+
listNextOperationSpec
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
// Operation Specifications
|
|
373
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
374
|
+
|
|
375
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
376
|
+
path:
|
|
377
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions",
|
|
378
|
+
httpMethod: "GET",
|
|
379
|
+
responses: {
|
|
380
|
+
200: {
|
|
381
|
+
bodyMapper: Mappers.ScriptExecutionsList
|
|
382
|
+
},
|
|
383
|
+
default: {
|
|
384
|
+
bodyMapper: Mappers.CloudError
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
queryParameters: [Parameters.apiVersion],
|
|
388
|
+
urlParameters: [
|
|
389
|
+
Parameters.$host,
|
|
390
|
+
Parameters.subscriptionId,
|
|
391
|
+
Parameters.resourceGroupName,
|
|
392
|
+
Parameters.privateCloudName
|
|
393
|
+
],
|
|
394
|
+
headerParameters: [Parameters.accept],
|
|
395
|
+
serializer
|
|
396
|
+
};
|
|
397
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
398
|
+
path:
|
|
399
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}",
|
|
400
|
+
httpMethod: "GET",
|
|
401
|
+
responses: {
|
|
402
|
+
200: {
|
|
403
|
+
bodyMapper: Mappers.ScriptExecution
|
|
404
|
+
},
|
|
405
|
+
default: {
|
|
406
|
+
bodyMapper: Mappers.CloudError
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
queryParameters: [Parameters.apiVersion],
|
|
410
|
+
urlParameters: [
|
|
411
|
+
Parameters.$host,
|
|
412
|
+
Parameters.subscriptionId,
|
|
413
|
+
Parameters.resourceGroupName,
|
|
414
|
+
Parameters.privateCloudName,
|
|
415
|
+
Parameters.scriptExecutionName
|
|
416
|
+
],
|
|
417
|
+
headerParameters: [Parameters.accept],
|
|
418
|
+
serializer
|
|
419
|
+
};
|
|
420
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
421
|
+
path:
|
|
422
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}",
|
|
423
|
+
httpMethod: "PUT",
|
|
424
|
+
responses: {
|
|
425
|
+
200: {
|
|
426
|
+
bodyMapper: Mappers.ScriptExecution
|
|
427
|
+
},
|
|
428
|
+
201: {
|
|
429
|
+
bodyMapper: Mappers.ScriptExecution
|
|
430
|
+
},
|
|
431
|
+
202: {
|
|
432
|
+
bodyMapper: Mappers.ScriptExecution
|
|
433
|
+
},
|
|
434
|
+
204: {
|
|
435
|
+
bodyMapper: Mappers.ScriptExecution
|
|
436
|
+
},
|
|
437
|
+
default: {
|
|
438
|
+
bodyMapper: Mappers.CloudError
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
requestBody: Parameters.scriptExecution,
|
|
442
|
+
queryParameters: [Parameters.apiVersion],
|
|
443
|
+
urlParameters: [
|
|
444
|
+
Parameters.$host,
|
|
445
|
+
Parameters.subscriptionId,
|
|
446
|
+
Parameters.resourceGroupName,
|
|
447
|
+
Parameters.privateCloudName,
|
|
448
|
+
Parameters.scriptExecutionName
|
|
449
|
+
],
|
|
450
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
451
|
+
mediaType: "json",
|
|
452
|
+
serializer
|
|
453
|
+
};
|
|
454
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
455
|
+
path:
|
|
456
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}",
|
|
457
|
+
httpMethod: "DELETE",
|
|
458
|
+
responses: {
|
|
459
|
+
200: {},
|
|
460
|
+
201: {},
|
|
461
|
+
202: {},
|
|
462
|
+
204: {},
|
|
463
|
+
default: {
|
|
464
|
+
bodyMapper: Mappers.CloudError
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
queryParameters: [Parameters.apiVersion],
|
|
468
|
+
urlParameters: [
|
|
469
|
+
Parameters.$host,
|
|
470
|
+
Parameters.subscriptionId,
|
|
471
|
+
Parameters.resourceGroupName,
|
|
472
|
+
Parameters.privateCloudName,
|
|
473
|
+
Parameters.scriptExecutionName
|
|
474
|
+
],
|
|
475
|
+
headerParameters: [Parameters.accept],
|
|
476
|
+
serializer
|
|
477
|
+
};
|
|
478
|
+
const getExecutionLogsOperationSpec: coreClient.OperationSpec = {
|
|
479
|
+
path:
|
|
480
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs",
|
|
481
|
+
httpMethod: "POST",
|
|
482
|
+
responses: {
|
|
483
|
+
200: {
|
|
484
|
+
bodyMapper: Mappers.ScriptExecution
|
|
485
|
+
},
|
|
486
|
+
default: {
|
|
487
|
+
bodyMapper: Mappers.CloudError
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
requestBody: Parameters.scriptOutputStreamType,
|
|
491
|
+
queryParameters: [Parameters.apiVersion],
|
|
492
|
+
urlParameters: [
|
|
493
|
+
Parameters.$host,
|
|
494
|
+
Parameters.subscriptionId,
|
|
495
|
+
Parameters.resourceGroupName,
|
|
496
|
+
Parameters.privateCloudName,
|
|
497
|
+
Parameters.scriptExecutionName
|
|
498
|
+
],
|
|
499
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
500
|
+
mediaType: "json",
|
|
501
|
+
serializer
|
|
502
|
+
};
|
|
503
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
504
|
+
path: "{nextLink}",
|
|
505
|
+
httpMethod: "GET",
|
|
506
|
+
responses: {
|
|
507
|
+
200: {
|
|
508
|
+
bodyMapper: Mappers.ScriptExecutionsList
|
|
509
|
+
},
|
|
510
|
+
default: {
|
|
511
|
+
bodyMapper: Mappers.CloudError
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
queryParameters: [Parameters.apiVersion],
|
|
515
|
+
urlParameters: [
|
|
516
|
+
Parameters.$host,
|
|
517
|
+
Parameters.nextLink,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.resourceGroupName,
|
|
520
|
+
Parameters.privateCloudName
|
|
521
|
+
],
|
|
522
|
+
headerParameters: [Parameters.accept],
|
|
523
|
+
serializer
|
|
524
|
+
};
|