@azure/arm-compute 23.2.0 → 23.3.0-alpha.20260121.2
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/dist/browser/computeManagementClient.d.ts +3 -1
- package/dist/browser/computeManagementClient.d.ts.map +1 -1
- package/dist/browser/computeManagementClient.js +6 -2
- package/dist/browser/computeManagementClient.js.map +1 -1
- package/dist/browser/models/index.d.ts +316 -3
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +22 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +19 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +533 -0
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +6 -0
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +47 -2
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/galleryInVMAccessControlProfileVersions.d.ts.map +1 -1
- package/dist/browser/operations/galleryInVMAccessControlProfileVersions.js.map +1 -1
- package/dist/browser/operations/galleryScriptVersions.d.ts +111 -0
- package/dist/browser/operations/galleryScriptVersions.d.ts.map +1 -0
- package/dist/browser/operations/galleryScriptVersions.js +484 -0
- package/dist/browser/operations/galleryScriptVersions.js.map +1 -0
- package/dist/browser/operations/galleryScripts.d.ts +101 -0
- package/dist/browser/operations/galleryScripts.d.ts.map +1 -0
- package/dist/browser/operations/galleryScripts.js +454 -0
- package/dist/browser/operations/galleryScripts.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +2 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -1
- package/dist/browser/operations/virtualMachineScaleSetRollingUpgrades.js.map +1 -1
- package/dist/browser/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -1
- package/dist/browser/operations/virtualMachineScaleSetVMRunCommands.js.map +1 -1
- package/dist/browser/operationsInterfaces/galleryScriptVersions.d.ts +84 -0
- package/dist/browser/operationsInterfaces/galleryScriptVersions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/galleryScriptVersions.js +4 -0
- package/dist/browser/operationsInterfaces/galleryScriptVersions.js.map +1 -0
- package/dist/browser/operationsInterfaces/galleryScripts.d.ts +76 -0
- package/dist/browser/operationsInterfaces/galleryScripts.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/galleryScripts.js +4 -0
- package/dist/browser/operationsInterfaces/galleryScripts.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +2 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/computeManagementClient.d.ts +3 -1
- package/dist/commonjs/computeManagementClient.d.ts.map +1 -1
- package/dist/commonjs/computeManagementClient.js +5 -1
- package/dist/commonjs/computeManagementClient.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +316 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +23 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +539 -6
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +6 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +47 -2
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/galleryInVMAccessControlProfileVersions.d.ts.map +1 -1
- package/dist/commonjs/operations/galleryInVMAccessControlProfileVersions.js.map +1 -1
- package/dist/commonjs/operations/galleryScriptVersions.d.ts +111 -0
- package/dist/commonjs/operations/galleryScriptVersions.d.ts.map +1 -0
- package/dist/commonjs/operations/galleryScriptVersions.js +489 -0
- package/dist/commonjs/operations/galleryScriptVersions.js.map +1 -0
- package/dist/commonjs/operations/galleryScripts.d.ts +101 -0
- package/dist/commonjs/operations/galleryScripts.d.ts.map +1 -0
- package/dist/commonjs/operations/galleryScripts.js +459 -0
- package/dist/commonjs/operations/galleryScripts.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +2 -0
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -1
- package/dist/commonjs/operations/virtualMachineScaleSetRollingUpgrades.js.map +1 -1
- package/dist/commonjs/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -1
- package/dist/commonjs/operations/virtualMachineScaleSetVMRunCommands.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/galleryScriptVersions.d.ts +84 -0
- package/dist/commonjs/operationsInterfaces/galleryScriptVersions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/galleryScriptVersions.js +5 -0
- package/dist/commonjs/operationsInterfaces/galleryScriptVersions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/galleryScripts.d.ts +76 -0
- package/dist/commonjs/operationsInterfaces/galleryScripts.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/galleryScripts.js +5 -0
- package/dist/commonjs/operationsInterfaces/galleryScripts.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +2 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/computeManagementClient.d.ts +3 -1
- package/dist/esm/computeManagementClient.d.ts.map +1 -1
- package/dist/esm/computeManagementClient.js +6 -2
- package/dist/esm/computeManagementClient.js.map +1 -1
- package/dist/esm/models/index.d.ts +316 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +22 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +533 -0
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +6 -0
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +47 -2
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/galleryInVMAccessControlProfileVersions.d.ts.map +1 -1
- package/dist/esm/operations/galleryInVMAccessControlProfileVersions.js.map +1 -1
- package/dist/esm/operations/galleryScriptVersions.d.ts +111 -0
- package/dist/esm/operations/galleryScriptVersions.d.ts.map +1 -0
- package/dist/esm/operations/galleryScriptVersions.js +484 -0
- package/dist/esm/operations/galleryScriptVersions.js.map +1 -0
- package/dist/esm/operations/galleryScripts.d.ts +101 -0
- package/dist/esm/operations/galleryScripts.d.ts.map +1 -0
- package/dist/esm/operations/galleryScripts.js +454 -0
- package/dist/esm/operations/galleryScripts.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +2 -0
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -1
- package/dist/esm/operations/virtualMachineScaleSetRollingUpgrades.js.map +1 -1
- package/dist/esm/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -1
- package/dist/esm/operations/virtualMachineScaleSetVMRunCommands.js.map +1 -1
- package/dist/esm/operationsInterfaces/galleryScriptVersions.d.ts +84 -0
- package/dist/esm/operationsInterfaces/galleryScriptVersions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/galleryScriptVersions.js +4 -0
- package/dist/esm/operationsInterfaces/galleryScriptVersions.js.map +1 -0
- package/dist/esm/operationsInterfaces/galleryScripts.d.ts +76 -0
- package/dist/esm/operationsInterfaces/galleryScripts.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/galleryScripts.js +4 -0
- package/dist/esm/operationsInterfaces/galleryScripts.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +2 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/computeManagementClient.d.ts +3 -1
- package/dist/react-native/computeManagementClient.d.ts.map +1 -1
- package/dist/react-native/computeManagementClient.js +6 -2
- package/dist/react-native/computeManagementClient.js.map +1 -1
- package/dist/react-native/models/index.d.ts +316 -3
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +22 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +533 -0
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +6 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +47 -2
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/galleryInVMAccessControlProfileVersions.d.ts.map +1 -1
- package/dist/react-native/operations/galleryInVMAccessControlProfileVersions.js.map +1 -1
- package/dist/react-native/operations/galleryScriptVersions.d.ts +111 -0
- package/dist/react-native/operations/galleryScriptVersions.d.ts.map +1 -0
- package/dist/react-native/operations/galleryScriptVersions.js +484 -0
- package/dist/react-native/operations/galleryScriptVersions.js.map +1 -0
- package/dist/react-native/operations/galleryScripts.d.ts +101 -0
- package/dist/react-native/operations/galleryScripts.d.ts.map +1 -0
- package/dist/react-native/operations/galleryScripts.js +454 -0
- package/dist/react-native/operations/galleryScripts.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +2 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/virtualMachineScaleSetRollingUpgrades.d.ts.map +1 -1
- package/dist/react-native/operations/virtualMachineScaleSetRollingUpgrades.js.map +1 -1
- package/dist/react-native/operations/virtualMachineScaleSetVMRunCommands.d.ts.map +1 -1
- package/dist/react-native/operations/virtualMachineScaleSetVMRunCommands.js.map +1 -1
- package/dist/react-native/operationsInterfaces/galleryScriptVersions.d.ts +84 -0
- package/dist/react-native/operationsInterfaces/galleryScriptVersions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/galleryScriptVersions.js +4 -0
- package/dist/react-native/operationsInterfaces/galleryScriptVersions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/galleryScripts.d.ts +76 -0
- package/dist/react-native/operationsInterfaces/galleryScripts.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/galleryScripts.js +4 -0
- package/dist/react-native/operationsInterfaces/galleryScripts.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +2 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
4
|
+
import * as coreClient from "@azure/core-client";
|
|
5
|
+
import * as Mappers from "../models/mappers.js";
|
|
6
|
+
import * as Parameters from "../models/parameters.js";
|
|
7
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
8
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
/** Class containing GalleryScriptVersions operations. */
|
|
11
|
+
export class GalleryScriptVersionsImpl {
|
|
12
|
+
client;
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class GalleryScriptVersions class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List gallery Script Versions in a gallery Script Definition.
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
24
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
listByGalleryScript(resourceGroupName, galleryName, galleryScriptName, options) {
|
|
28
|
+
const iter = this.listByGalleryScriptPagingAll(resourceGroupName, galleryName, galleryScriptName, options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listByGalleryScriptPagingPage(resourceGroupName, galleryName, galleryScriptName, options, settings);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async *listByGalleryScriptPagingPage(resourceGroupName, galleryName, galleryScriptName, options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._listByGalleryScript(resourceGroupName, galleryName, galleryScriptName, options);
|
|
49
|
+
const page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listByGalleryScriptNext(resourceGroupName, galleryName, galleryScriptName, continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
const page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async *listByGalleryScriptPagingAll(resourceGroupName, galleryName, galleryScriptName, options) {
|
|
63
|
+
for await (const page of this.listByGalleryScriptPagingPage(resourceGroupName, galleryName, galleryScriptName, options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* List gallery Script Versions in a gallery Script Definition.
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
71
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
_listByGalleryScript(resourceGroupName, galleryName, galleryScriptName, options) {
|
|
75
|
+
return this.client.sendOperationRequest({ resourceGroupName, galleryName, galleryScriptName, options }, listByGalleryScriptOperationSpec);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Custom ArmResourceRead operation template with CloudError as Error
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
81
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
82
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
get(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, options) {
|
|
86
|
+
return this.client.sendOperationRequest({
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
galleryName,
|
|
89
|
+
galleryScriptName,
|
|
90
|
+
galleryScriptVersionName,
|
|
91
|
+
options,
|
|
92
|
+
}, getOperationSpec);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Create or update a gallery Script Version.
|
|
96
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
98
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
99
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
100
|
+
* @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version
|
|
101
|
+
* operation.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
async beginCreateOrUpdate(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options) {
|
|
105
|
+
const directSendOperation = async (args, spec) => {
|
|
106
|
+
return this.client.sendOperationRequest(args, spec);
|
|
107
|
+
};
|
|
108
|
+
const sendOperationFn = async (args, spec) => {
|
|
109
|
+
let currentRawResponse = undefined;
|
|
110
|
+
const providedCallback = args.options?.onResponse;
|
|
111
|
+
const callback = (rawResponse, flatResponse) => {
|
|
112
|
+
currentRawResponse = rawResponse;
|
|
113
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
114
|
+
};
|
|
115
|
+
const updatedArgs = {
|
|
116
|
+
...args,
|
|
117
|
+
options: {
|
|
118
|
+
...args.options,
|
|
119
|
+
onResponse: callback,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
123
|
+
return {
|
|
124
|
+
flatResponse,
|
|
125
|
+
rawResponse: {
|
|
126
|
+
statusCode: currentRawResponse.status,
|
|
127
|
+
body: currentRawResponse.parsedBody,
|
|
128
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
const lro = createLroSpec({
|
|
133
|
+
sendOperationFn,
|
|
134
|
+
args: {
|
|
135
|
+
resourceGroupName,
|
|
136
|
+
galleryName,
|
|
137
|
+
galleryScriptName,
|
|
138
|
+
galleryScriptVersionName,
|
|
139
|
+
galleryScriptVersion,
|
|
140
|
+
options,
|
|
141
|
+
},
|
|
142
|
+
spec: createOrUpdateOperationSpec,
|
|
143
|
+
});
|
|
144
|
+
const poller = await createHttpPoller(lro, {
|
|
145
|
+
restoreFrom: options?.resumeFrom,
|
|
146
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
147
|
+
resourceLocationConfig: "azure-async-operation",
|
|
148
|
+
});
|
|
149
|
+
await poller.poll();
|
|
150
|
+
return poller;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Create or update a gallery Script Version.
|
|
154
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
156
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
157
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
158
|
+
* @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version
|
|
159
|
+
* operation.
|
|
160
|
+
* @param options The options parameters.
|
|
161
|
+
*/
|
|
162
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options) {
|
|
163
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options);
|
|
164
|
+
return poller.pollUntilDone();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Update a gallery Script Version.
|
|
168
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
169
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
170
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
171
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
172
|
+
* @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
async beginUpdate(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options) {
|
|
176
|
+
const directSendOperation = async (args, spec) => {
|
|
177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
178
|
+
};
|
|
179
|
+
const sendOperationFn = async (args, spec) => {
|
|
180
|
+
let currentRawResponse = undefined;
|
|
181
|
+
const providedCallback = args.options?.onResponse;
|
|
182
|
+
const callback = (rawResponse, flatResponse) => {
|
|
183
|
+
currentRawResponse = rawResponse;
|
|
184
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
185
|
+
};
|
|
186
|
+
const updatedArgs = {
|
|
187
|
+
...args,
|
|
188
|
+
options: {
|
|
189
|
+
...args.options,
|
|
190
|
+
onResponse: callback,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
194
|
+
return {
|
|
195
|
+
flatResponse,
|
|
196
|
+
rawResponse: {
|
|
197
|
+
statusCode: currentRawResponse.status,
|
|
198
|
+
body: currentRawResponse.parsedBody,
|
|
199
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
const lro = createLroSpec({
|
|
204
|
+
sendOperationFn,
|
|
205
|
+
args: {
|
|
206
|
+
resourceGroupName,
|
|
207
|
+
galleryName,
|
|
208
|
+
galleryScriptName,
|
|
209
|
+
galleryScriptVersionName,
|
|
210
|
+
galleryScriptVersion,
|
|
211
|
+
options,
|
|
212
|
+
},
|
|
213
|
+
spec: updateOperationSpec,
|
|
214
|
+
});
|
|
215
|
+
const poller = await createHttpPoller(lro, {
|
|
216
|
+
restoreFrom: options?.resumeFrom,
|
|
217
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
|
+
resourceLocationConfig: "azure-async-operation",
|
|
219
|
+
});
|
|
220
|
+
await poller.poll();
|
|
221
|
+
return poller;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Update a gallery Script Version.
|
|
225
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
226
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
227
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
228
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
229
|
+
* @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
async beginUpdateAndWait(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options) {
|
|
233
|
+
const poller = await this.beginUpdate(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, options);
|
|
234
|
+
return poller.pollUntilDone();
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Delete a gallery Script Version.
|
|
238
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
239
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
240
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
241
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
242
|
+
* @param options The options parameters.
|
|
243
|
+
*/
|
|
244
|
+
async beginDelete(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, options) {
|
|
245
|
+
const directSendOperation = async (args, spec) => {
|
|
246
|
+
return this.client.sendOperationRequest(args, spec);
|
|
247
|
+
};
|
|
248
|
+
const sendOperationFn = async (args, spec) => {
|
|
249
|
+
let currentRawResponse = undefined;
|
|
250
|
+
const providedCallback = args.options?.onResponse;
|
|
251
|
+
const callback = (rawResponse, flatResponse) => {
|
|
252
|
+
currentRawResponse = rawResponse;
|
|
253
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
254
|
+
};
|
|
255
|
+
const updatedArgs = {
|
|
256
|
+
...args,
|
|
257
|
+
options: {
|
|
258
|
+
...args.options,
|
|
259
|
+
onResponse: callback,
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
263
|
+
return {
|
|
264
|
+
flatResponse,
|
|
265
|
+
rawResponse: {
|
|
266
|
+
statusCode: currentRawResponse.status,
|
|
267
|
+
body: currentRawResponse.parsedBody,
|
|
268
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
const lro = createLroSpec({
|
|
273
|
+
sendOperationFn,
|
|
274
|
+
args: {
|
|
275
|
+
resourceGroupName,
|
|
276
|
+
galleryName,
|
|
277
|
+
galleryScriptName,
|
|
278
|
+
galleryScriptVersionName,
|
|
279
|
+
options,
|
|
280
|
+
},
|
|
281
|
+
spec: deleteOperationSpec,
|
|
282
|
+
});
|
|
283
|
+
const poller = await createHttpPoller(lro, {
|
|
284
|
+
restoreFrom: options?.resumeFrom,
|
|
285
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
286
|
+
resourceLocationConfig: "azure-async-operation",
|
|
287
|
+
});
|
|
288
|
+
await poller.poll();
|
|
289
|
+
return poller;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Delete a gallery Script Version.
|
|
293
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
294
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
295
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
296
|
+
* @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
|
|
297
|
+
* @param options The options parameters.
|
|
298
|
+
*/
|
|
299
|
+
async beginDeleteAndWait(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, options) {
|
|
300
|
+
const poller = await this.beginDelete(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, options);
|
|
301
|
+
return poller.pollUntilDone();
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* ListByGalleryScriptNext
|
|
305
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
306
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
307
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
308
|
+
* @param nextLink The nextLink from the previous successful call to the ListByGalleryScript method.
|
|
309
|
+
* @param options The options parameters.
|
|
310
|
+
*/
|
|
311
|
+
_listByGalleryScriptNext(resourceGroupName, galleryName, galleryScriptName, nextLink, options) {
|
|
312
|
+
return this.client.sendOperationRequest({ resourceGroupName, galleryName, galleryScriptName, nextLink, options }, listByGalleryScriptNextOperationSpec);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
// Operation Specifications
|
|
316
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
317
|
+
const listByGalleryScriptOperationSpec = {
|
|
318
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions",
|
|
319
|
+
httpMethod: "GET",
|
|
320
|
+
responses: {
|
|
321
|
+
200: {
|
|
322
|
+
bodyMapper: Mappers.GalleryScriptVersionList,
|
|
323
|
+
},
|
|
324
|
+
default: {
|
|
325
|
+
bodyMapper: Mappers.CloudError,
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
queryParameters: [Parameters.apiVersion3],
|
|
329
|
+
urlParameters: [
|
|
330
|
+
Parameters.$host,
|
|
331
|
+
Parameters.subscriptionId,
|
|
332
|
+
Parameters.resourceGroupName,
|
|
333
|
+
Parameters.galleryName,
|
|
334
|
+
Parameters.galleryScriptName,
|
|
335
|
+
],
|
|
336
|
+
headerParameters: [Parameters.accept],
|
|
337
|
+
serializer,
|
|
338
|
+
};
|
|
339
|
+
const getOperationSpec = {
|
|
340
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}",
|
|
341
|
+
httpMethod: "GET",
|
|
342
|
+
responses: {
|
|
343
|
+
200: {
|
|
344
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
345
|
+
},
|
|
346
|
+
default: {
|
|
347
|
+
bodyMapper: Mappers.CloudError,
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
queryParameters: [Parameters.apiVersion3],
|
|
351
|
+
urlParameters: [
|
|
352
|
+
Parameters.$host,
|
|
353
|
+
Parameters.subscriptionId,
|
|
354
|
+
Parameters.resourceGroupName,
|
|
355
|
+
Parameters.galleryName,
|
|
356
|
+
Parameters.galleryScriptName,
|
|
357
|
+
Parameters.galleryScriptVersionName,
|
|
358
|
+
],
|
|
359
|
+
headerParameters: [Parameters.accept],
|
|
360
|
+
serializer,
|
|
361
|
+
};
|
|
362
|
+
const createOrUpdateOperationSpec = {
|
|
363
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}",
|
|
364
|
+
httpMethod: "PUT",
|
|
365
|
+
responses: {
|
|
366
|
+
200: {
|
|
367
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
368
|
+
},
|
|
369
|
+
201: {
|
|
370
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
371
|
+
},
|
|
372
|
+
202: {
|
|
373
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
374
|
+
},
|
|
375
|
+
204: {
|
|
376
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
377
|
+
},
|
|
378
|
+
default: {
|
|
379
|
+
bodyMapper: Mappers.CloudError,
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
requestBody: Parameters.galleryScriptVersion,
|
|
383
|
+
queryParameters: [Parameters.apiVersion3],
|
|
384
|
+
urlParameters: [
|
|
385
|
+
Parameters.$host,
|
|
386
|
+
Parameters.subscriptionId,
|
|
387
|
+
Parameters.resourceGroupName,
|
|
388
|
+
Parameters.galleryName,
|
|
389
|
+
Parameters.galleryScriptName,
|
|
390
|
+
Parameters.galleryScriptVersionName,
|
|
391
|
+
],
|
|
392
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
393
|
+
mediaType: "json",
|
|
394
|
+
serializer,
|
|
395
|
+
};
|
|
396
|
+
const updateOperationSpec = {
|
|
397
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}",
|
|
398
|
+
httpMethod: "PATCH",
|
|
399
|
+
responses: {
|
|
400
|
+
200: {
|
|
401
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
402
|
+
},
|
|
403
|
+
201: {
|
|
404
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
405
|
+
},
|
|
406
|
+
202: {
|
|
407
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
408
|
+
},
|
|
409
|
+
204: {
|
|
410
|
+
bodyMapper: Mappers.GalleryScriptVersion,
|
|
411
|
+
},
|
|
412
|
+
default: {
|
|
413
|
+
bodyMapper: Mappers.CloudError,
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
requestBody: Parameters.galleryScriptVersion1,
|
|
417
|
+
queryParameters: [Parameters.apiVersion3],
|
|
418
|
+
urlParameters: [
|
|
419
|
+
Parameters.$host,
|
|
420
|
+
Parameters.subscriptionId,
|
|
421
|
+
Parameters.resourceGroupName,
|
|
422
|
+
Parameters.galleryName,
|
|
423
|
+
Parameters.galleryScriptName,
|
|
424
|
+
Parameters.galleryScriptVersionName,
|
|
425
|
+
],
|
|
426
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
427
|
+
mediaType: "json",
|
|
428
|
+
serializer,
|
|
429
|
+
};
|
|
430
|
+
const deleteOperationSpec = {
|
|
431
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}",
|
|
432
|
+
httpMethod: "DELETE",
|
|
433
|
+
responses: {
|
|
434
|
+
200: {
|
|
435
|
+
headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,
|
|
436
|
+
},
|
|
437
|
+
201: {
|
|
438
|
+
headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,
|
|
439
|
+
},
|
|
440
|
+
202: {
|
|
441
|
+
headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,
|
|
442
|
+
},
|
|
443
|
+
204: {
|
|
444
|
+
headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,
|
|
445
|
+
},
|
|
446
|
+
default: {
|
|
447
|
+
bodyMapper: Mappers.CloudError,
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
queryParameters: [Parameters.apiVersion3],
|
|
451
|
+
urlParameters: [
|
|
452
|
+
Parameters.$host,
|
|
453
|
+
Parameters.subscriptionId,
|
|
454
|
+
Parameters.resourceGroupName,
|
|
455
|
+
Parameters.galleryName,
|
|
456
|
+
Parameters.galleryScriptName,
|
|
457
|
+
Parameters.galleryScriptVersionName,
|
|
458
|
+
],
|
|
459
|
+
headerParameters: [Parameters.accept],
|
|
460
|
+
serializer,
|
|
461
|
+
};
|
|
462
|
+
const listByGalleryScriptNextOperationSpec = {
|
|
463
|
+
path: "{nextLink}",
|
|
464
|
+
httpMethod: "GET",
|
|
465
|
+
responses: {
|
|
466
|
+
200: {
|
|
467
|
+
bodyMapper: Mappers.GalleryScriptVersionList,
|
|
468
|
+
},
|
|
469
|
+
default: {
|
|
470
|
+
bodyMapper: Mappers.CloudError,
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
urlParameters: [
|
|
474
|
+
Parameters.$host,
|
|
475
|
+
Parameters.nextLink,
|
|
476
|
+
Parameters.subscriptionId,
|
|
477
|
+
Parameters.resourceGroupName,
|
|
478
|
+
Parameters.galleryName,
|
|
479
|
+
Parameters.galleryScriptName,
|
|
480
|
+
],
|
|
481
|
+
headerParameters: [Parameters.accept],
|
|
482
|
+
serializer,
|
|
483
|
+
};
|
|
484
|
+
//# sourceMappingURL=galleryScriptVersions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"galleryScriptVersions.js","sourceRoot":"","sources":["../../../src/operations/galleryScriptVersions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,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;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,WAAmB,EACnB,iBAAyB,EACzB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAA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AAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { GalleryScriptVersions } 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 type { ComputeManagementClient } from \"../computeManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n GalleryScriptVersion,\n GalleryScriptVersionsListByGalleryScriptNextOptionalParams,\n GalleryScriptVersionsListByGalleryScriptOptionalParams,\n GalleryScriptVersionsListByGalleryScriptResponse,\n GalleryScriptVersionsGetOptionalParams,\n GalleryScriptVersionsGetResponse,\n GalleryScriptVersionsCreateOrUpdateOptionalParams,\n GalleryScriptVersionsCreateOrUpdateResponse,\n GalleryScriptVersionUpdate,\n GalleryScriptVersionsUpdateOptionalParams,\n GalleryScriptVersionsUpdateResponse,\n GalleryScriptVersionsDeleteOptionalParams,\n GalleryScriptVersionsDeleteResponse,\n GalleryScriptVersionsListByGalleryScriptNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GalleryScriptVersions operations. */\nexport class GalleryScriptVersionsImpl implements GalleryScriptVersions {\n private readonly client: ComputeManagementClient;\n\n /**\n * Initialize a new instance of the class GalleryScriptVersions class.\n * @param client Reference to the service client\n */\n constructor(client: ComputeManagementClient) {\n this.client = client;\n }\n\n /**\n * List gallery Script Versions in a gallery Script Definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param options The options parameters.\n */\n public listByGalleryScript(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n options?: GalleryScriptVersionsListByGalleryScriptOptionalParams,\n ): PagedAsyncIterableIterator<GalleryScriptVersion> {\n const iter = this.listByGalleryScriptPagingAll(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n options,\n );\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.listByGalleryScriptPagingPage(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByGalleryScriptPagingPage(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n options?: GalleryScriptVersionsListByGalleryScriptOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GalleryScriptVersion[]> {\n let result: GalleryScriptVersionsListByGalleryScriptResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByGalleryScript(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n options,\n );\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByGalleryScriptNext(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByGalleryScriptPagingAll(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n options?: GalleryScriptVersionsListByGalleryScriptOptionalParams,\n ): AsyncIterableIterator<GalleryScriptVersion> {\n for await (const page of this.listByGalleryScriptPagingPage(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List gallery Script Versions in a gallery Script Definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param options The options parameters.\n */\n private _listByGalleryScript(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n options?: GalleryScriptVersionsListByGalleryScriptOptionalParams,\n ): Promise<GalleryScriptVersionsListByGalleryScriptResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, galleryName, galleryScriptName, options },\n listByGalleryScriptOperationSpec,\n );\n }\n\n /**\n * Custom ArmResourceRead operation template with CloudError as Error\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n options?: GalleryScriptVersionsGetOptionalParams,\n ): Promise<GalleryScriptVersionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version\n * operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n galleryScriptVersion: GalleryScriptVersion,\n options?: GalleryScriptVersionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GalleryScriptVersionsCreateOrUpdateResponse>,\n GalleryScriptVersionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GalleryScriptVersionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n galleryScriptVersion,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n GalleryScriptVersionsCreateOrUpdateResponse,\n OperationState<GalleryScriptVersionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version\n * operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n galleryScriptVersion: GalleryScriptVersion,\n options?: GalleryScriptVersionsCreateOrUpdateOptionalParams,\n ): Promise<GalleryScriptVersionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n galleryScriptVersion,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n galleryScriptVersion: GalleryScriptVersionUpdate,\n options?: GalleryScriptVersionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GalleryScriptVersionsUpdateResponse>,\n GalleryScriptVersionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GalleryScriptVersionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n galleryScriptVersion,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n GalleryScriptVersionsUpdateResponse,\n OperationState<GalleryScriptVersionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n galleryScriptVersion: GalleryScriptVersionUpdate,\n options?: GalleryScriptVersionsUpdateOptionalParams,\n ): Promise<GalleryScriptVersionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n galleryScriptVersion,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n options?: GalleryScriptVersionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GalleryScriptVersionsDeleteResponse>,\n GalleryScriptVersionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GalleryScriptVersionsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n GalleryScriptVersionsDeleteResponse,\n OperationState<GalleryScriptVersionsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a gallery Script Version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n galleryScriptVersionName: string,\n options?: GalleryScriptVersionsDeleteOptionalParams,\n ): Promise<GalleryScriptVersionsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n galleryName,\n galleryScriptName,\n galleryScriptVersionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByGalleryScriptNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param galleryName The name of the Shared Image Gallery.\n * @param galleryScriptName The name of the gallery Script Definition to be retrieved.\n * @param nextLink The nextLink from the previous successful call to the ListByGalleryScript method.\n * @param options The options parameters.\n */\n private _listByGalleryScriptNext(\n resourceGroupName: string,\n galleryName: string,\n galleryScriptName: string,\n nextLink: string,\n options?: GalleryScriptVersionsListByGalleryScriptNextOptionalParams,\n ): Promise<GalleryScriptVersionsListByGalleryScriptNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, galleryName, galleryScriptName, nextLink, options },\n listByGalleryScriptNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByGalleryScriptOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GalleryScriptVersionList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n Parameters.galleryScriptVersionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 201: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 202: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 204: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.galleryScriptVersion,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n Parameters.galleryScriptVersionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 201: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 202: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n 204: {\n bodyMapper: Mappers.GalleryScriptVersion,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.galleryScriptVersion1,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n Parameters.galleryScriptVersionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n Parameters.galleryScriptVersionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByGalleryScriptNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GalleryScriptVersionList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.galleryName,\n Parameters.galleryScriptName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { GalleryScripts } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { ComputeManagementClient } from "../computeManagementClient.js";
|
|
4
|
+
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import type { GalleryScript, GalleryScriptsListByGalleryOptionalParams, GalleryScriptsGetOptionalParams, GalleryScriptsGetResponse, GalleryScriptsCreateOrUpdateOptionalParams, GalleryScriptsCreateOrUpdateResponse, GalleryScriptUpdate, GalleryScriptsUpdateOptionalParams, GalleryScriptsUpdateResponse, GalleryScriptsDeleteOptionalParams, GalleryScriptsDeleteResponse } from "../models/index.js";
|
|
6
|
+
/** Class containing GalleryScripts operations. */
|
|
7
|
+
export declare class GalleryScriptsImpl implements GalleryScripts {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class GalleryScripts class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: ComputeManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* List gallery Script Definitions in a gallery.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryScriptsListByGalleryOptionalParams): PagedAsyncIterableIterator<GalleryScript>;
|
|
21
|
+
private listByGalleryPagingPage;
|
|
22
|
+
private listByGalleryPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* List gallery Script Definitions in a gallery.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _listByGallery;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves information about a gallery script definition.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
34
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, galleryName: string, galleryScriptName: string, options?: GalleryScriptsGetOptionalParams): Promise<GalleryScriptsGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse
|
|
40
|
+
* of common scripts
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
43
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
44
|
+
* @param galleryScript Parameters supplied to the create or update gallery Script operation.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryScriptName: string, galleryScript: GalleryScript, options?: GalleryScriptsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleryScriptsCreateOrUpdateResponse>, GalleryScriptsCreateOrUpdateResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse
|
|
50
|
+
* of common scripts
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
53
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
54
|
+
* @param galleryScript Parameters supplied to the create or update gallery Script operation.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryScriptName: string, galleryScript: GalleryScript, options?: GalleryScriptsCreateOrUpdateOptionalParams): Promise<GalleryScriptsCreateOrUpdateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Update a gallery Script Definition.
|
|
60
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
61
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
62
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
63
|
+
* @param galleryScript Parameters supplied to the update gallery Script operation.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginUpdate(resourceGroupName: string, galleryName: string, galleryScriptName: string, galleryScript: GalleryScriptUpdate, options?: GalleryScriptsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleryScriptsUpdateResponse>, GalleryScriptsUpdateResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Update a gallery Script Definition.
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
71
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
72
|
+
* @param galleryScript Parameters supplied to the update gallery Script operation.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryScriptName: string, galleryScript: GalleryScriptUpdate, options?: GalleryScriptsUpdateOptionalParams): Promise<GalleryScriptsUpdateResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Delete a gallery Script Definition.
|
|
78
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
79
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
80
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
beginDelete(resourceGroupName: string, galleryName: string, galleryScriptName: string, options?: GalleryScriptsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<GalleryScriptsDeleteResponse>, GalleryScriptsDeleteResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* Delete a gallery Script Definition.
|
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
88
|
+
* @param galleryScriptName The name of the gallery Script Definition to be retrieved.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryScriptName: string, options?: GalleryScriptsDeleteOptionalParams): Promise<GalleryScriptsDeleteResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* ListByGalleryNext
|
|
94
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
95
|
+
* @param galleryName The name of the Shared Image Gallery.
|
|
96
|
+
* @param nextLink The nextLink from the previous successful call to the ListByGallery method.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
private _listByGalleryNext;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=galleryScripts.d.ts.map
|