@azure/arm-hybridcompute 4.1.0-alpha.20250619.1 → 5.0.0-alpha.20250624.3
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 +127 -0
- package/LICENSE +1 -1
- package/README.md +1 -2
- package/dist/browser/hybridComputeManagementClient.d.ts +23 -3
- package/dist/browser/hybridComputeManagementClient.d.ts.map +1 -1
- package/dist/browser/hybridComputeManagementClient.js +98 -12
- package/dist/browser/hybridComputeManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +7 -0
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +255 -69
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +10 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +16 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +394 -114
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +2 -1
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +19 -15
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/extensionMetadataV2.d.ts +50 -0
- package/dist/browser/operations/extensionMetadataV2.d.ts.map +1 -0
- package/dist/browser/operations/extensionMetadataV2.js +186 -0
- package/dist/browser/operations/extensionMetadataV2.js.map +1 -0
- package/dist/browser/operations/extensionPublisherOperations.d.ts +35 -0
- package/dist/browser/operations/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/browser/operations/extensionPublisherOperations.js +136 -0
- package/dist/browser/operations/extensionPublisherOperations.js.map +1 -0
- package/dist/browser/operations/extensionTypeOperations.d.ts +38 -0
- package/dist/browser/operations/extensionTypeOperations.d.ts.map +1 -0
- package/dist/browser/operations/extensionTypeOperations.js +144 -0
- package/dist/browser/operations/extensionTypeOperations.js.map +1 -0
- package/dist/browser/operations/gateways.js +8 -8
- package/dist/browser/operations/gateways.js.map +1 -1
- package/dist/browser/operations/index.d.ts +3 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +3 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/machines.d.ts +9 -2
- package/dist/browser/operations/machines.d.ts.map +1 -1
- package/dist/browser/operations/machines.js +56 -4
- package/dist/browser/operations/machines.js.map +1 -1
- package/dist/browser/operationsInterfaces/extensionMetadataV2.d.ts +23 -0
- package/dist/browser/operationsInterfaces/extensionMetadataV2.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensionMetadataV2.js +9 -0
- package/dist/browser/operationsInterfaces/extensionMetadataV2.js.map +1 -0
- package/dist/browser/operationsInterfaces/extensionPublisherOperations.d.ts +12 -0
- package/dist/browser/operationsInterfaces/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensionPublisherOperations.js +9 -0
- package/dist/browser/operationsInterfaces/extensionPublisherOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/extensionTypeOperations.d.ts +13 -0
- package/dist/browser/operationsInterfaces/extensionTypeOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensionTypeOperations.js +9 -0
- package/dist/browser/operationsInterfaces/extensionTypeOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +3 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/machines.d.ts +9 -2
- package/dist/browser/operationsInterfaces/machines.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/machines.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/hybridComputeManagementClient.d.ts +23 -3
- package/dist/commonjs/hybridComputeManagementClient.d.ts.map +1 -1
- package/dist/commonjs/hybridComputeManagementClient.js +97 -11
- package/dist/commonjs/hybridComputeManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -0
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +255 -69
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +11 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +16 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +397 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +2 -1
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +19 -15
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/extensionMetadataV2.d.ts +50 -0
- package/dist/commonjs/operations/extensionMetadataV2.d.ts.map +1 -0
- package/dist/commonjs/operations/extensionMetadataV2.js +190 -0
- package/dist/commonjs/operations/extensionMetadataV2.js.map +1 -0
- package/dist/commonjs/operations/extensionPublisherOperations.d.ts +35 -0
- package/dist/commonjs/operations/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/extensionPublisherOperations.js +140 -0
- package/dist/commonjs/operations/extensionPublisherOperations.js.map +1 -0
- package/dist/commonjs/operations/extensionTypeOperations.d.ts +38 -0
- package/dist/commonjs/operations/extensionTypeOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/extensionTypeOperations.js +148 -0
- package/dist/commonjs/operations/extensionTypeOperations.js.map +1 -0
- package/dist/commonjs/operations/gateways.js +8 -8
- package/dist/commonjs/operations/gateways.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +3 -0
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/machines.d.ts +9 -2
- package/dist/commonjs/operations/machines.d.ts.map +1 -1
- package/dist/commonjs/operations/machines.js +56 -4
- package/dist/commonjs/operations/machines.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/extensionMetadataV2.d.ts +23 -0
- package/dist/commonjs/operationsInterfaces/extensionMetadataV2.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionMetadataV2.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensionMetadataV2.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionPublisherOperations.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionPublisherOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensionPublisherOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionTypeOperations.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/extensionTypeOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensionTypeOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensionTypeOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +3 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/machines.d.ts +9 -2
- package/dist/commonjs/operationsInterfaces/machines.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/machines.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/hybridComputeManagementClient.d.ts +23 -3
- package/dist/esm/hybridComputeManagementClient.d.ts.map +1 -1
- package/dist/esm/hybridComputeManagementClient.js +98 -12
- package/dist/esm/hybridComputeManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +7 -0
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +255 -69
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +16 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +394 -114
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +2 -1
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +19 -15
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/extensionMetadataV2.d.ts +50 -0
- package/dist/esm/operations/extensionMetadataV2.d.ts.map +1 -0
- package/dist/esm/operations/extensionMetadataV2.js +186 -0
- package/dist/esm/operations/extensionMetadataV2.js.map +1 -0
- package/dist/esm/operations/extensionPublisherOperations.d.ts +35 -0
- package/dist/esm/operations/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/esm/operations/extensionPublisherOperations.js +136 -0
- package/dist/esm/operations/extensionPublisherOperations.js.map +1 -0
- package/dist/esm/operations/extensionTypeOperations.d.ts +38 -0
- package/dist/esm/operations/extensionTypeOperations.d.ts.map +1 -0
- package/dist/esm/operations/extensionTypeOperations.js +144 -0
- package/dist/esm/operations/extensionTypeOperations.js.map +1 -0
- package/dist/esm/operations/gateways.js +8 -8
- package/dist/esm/operations/gateways.js.map +1 -1
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +3 -0
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/machines.d.ts +9 -2
- package/dist/esm/operations/machines.d.ts.map +1 -1
- package/dist/esm/operations/machines.js +56 -4
- package/dist/esm/operations/machines.js.map +1 -1
- package/dist/esm/operationsInterfaces/extensionMetadataV2.d.ts +23 -0
- package/dist/esm/operationsInterfaces/extensionMetadataV2.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensionMetadataV2.js +9 -0
- package/dist/esm/operationsInterfaces/extensionMetadataV2.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensionPublisherOperations.d.ts +12 -0
- package/dist/esm/operationsInterfaces/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensionPublisherOperations.js +9 -0
- package/dist/esm/operationsInterfaces/extensionPublisherOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensionTypeOperations.d.ts +13 -0
- package/dist/esm/operationsInterfaces/extensionTypeOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensionTypeOperations.js +9 -0
- package/dist/esm/operationsInterfaces/extensionTypeOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +3 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/machines.d.ts +9 -2
- package/dist/esm/operationsInterfaces/machines.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/machines.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/hybridComputeManagementClient.d.ts +23 -3
- package/dist/react-native/hybridComputeManagementClient.d.ts.map +1 -1
- package/dist/react-native/hybridComputeManagementClient.js +98 -12
- package/dist/react-native/hybridComputeManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +7 -0
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +255 -69
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +10 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +16 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +394 -114
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +2 -1
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +19 -15
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/extensionMetadataV2.d.ts +50 -0
- package/dist/react-native/operations/extensionMetadataV2.d.ts.map +1 -0
- package/dist/react-native/operations/extensionMetadataV2.js +186 -0
- package/dist/react-native/operations/extensionMetadataV2.js.map +1 -0
- package/dist/react-native/operations/extensionPublisherOperations.d.ts +35 -0
- package/dist/react-native/operations/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/react-native/operations/extensionPublisherOperations.js +136 -0
- package/dist/react-native/operations/extensionPublisherOperations.js.map +1 -0
- package/dist/react-native/operations/extensionTypeOperations.d.ts +38 -0
- package/dist/react-native/operations/extensionTypeOperations.d.ts.map +1 -0
- package/dist/react-native/operations/extensionTypeOperations.js +144 -0
- package/dist/react-native/operations/extensionTypeOperations.js.map +1 -0
- package/dist/react-native/operations/gateways.js +8 -8
- package/dist/react-native/operations/gateways.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +3 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/machines.d.ts +9 -2
- package/dist/react-native/operations/machines.d.ts.map +1 -1
- package/dist/react-native/operations/machines.js +56 -4
- package/dist/react-native/operations/machines.js.map +1 -1
- package/dist/react-native/operationsInterfaces/extensionMetadataV2.d.ts +23 -0
- package/dist/react-native/operationsInterfaces/extensionMetadataV2.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionMetadataV2.js +9 -0
- package/dist/react-native/operationsInterfaces/extensionMetadataV2.js.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionPublisherOperations.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/extensionPublisherOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionPublisherOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/extensionPublisherOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionTypeOperations.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/extensionTypeOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensionTypeOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/extensionTypeOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +3 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/machines.d.ts +9 -2
- package/dist/react-native/operationsInterfaces/machines.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/machines.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/package.json +22 -22
- package/review/arm-hybridcompute.api.md +191 -32
@@ -0,0 +1,136 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
14
|
+
/** Class containing ExtensionPublisherOperations operations. */
|
15
|
+
export class ExtensionPublisherOperationsImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class ExtensionPublisherOperations class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Gets all Extension publishers based on the location
|
25
|
+
* @param location The name of Azure region.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
list(location, options) {
|
29
|
+
const iter = this.listPagingAll(location, options);
|
30
|
+
return {
|
31
|
+
next() {
|
32
|
+
return iter.next();
|
33
|
+
},
|
34
|
+
[Symbol.asyncIterator]() {
|
35
|
+
return this;
|
36
|
+
},
|
37
|
+
byPage: (settings) => {
|
38
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
40
|
+
}
|
41
|
+
return this.listPagingPage(location, options, settings);
|
42
|
+
},
|
43
|
+
};
|
44
|
+
}
|
45
|
+
listPagingPage(location, options, settings) {
|
46
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
47
|
+
let result;
|
48
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
49
|
+
if (!continuationToken) {
|
50
|
+
result = yield __await(this._list(location, options));
|
51
|
+
let page = result.value || [];
|
52
|
+
continuationToken = result.nextLink;
|
53
|
+
setContinuationToken(page, continuationToken);
|
54
|
+
yield yield __await(page);
|
55
|
+
}
|
56
|
+
while (continuationToken) {
|
57
|
+
result = yield __await(this._listNext(location, continuationToken, options));
|
58
|
+
continuationToken = result.nextLink;
|
59
|
+
let page = result.value || [];
|
60
|
+
setContinuationToken(page, continuationToken);
|
61
|
+
yield yield __await(page);
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}
|
65
|
+
listPagingAll(location, options) {
|
66
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
67
|
+
var _a, e_1, _b, _c;
|
68
|
+
try {
|
69
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
70
|
+
_c = _f.value;
|
71
|
+
_d = false;
|
72
|
+
const page = _c;
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
74
|
+
}
|
75
|
+
}
|
76
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
77
|
+
finally {
|
78
|
+
try {
|
79
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
80
|
+
}
|
81
|
+
finally { if (e_1) throw e_1.error; }
|
82
|
+
}
|
83
|
+
});
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* Gets all Extension publishers based on the location
|
87
|
+
* @param location The name of Azure region.
|
88
|
+
* @param options The options parameters.
|
89
|
+
*/
|
90
|
+
_list(location, options) {
|
91
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec);
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* ListNext
|
95
|
+
* @param location The name of Azure region.
|
96
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
97
|
+
* @param options The options parameters.
|
98
|
+
*/
|
99
|
+
_listNext(location, nextLink, options) {
|
100
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
// Operation Specifications
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
105
|
+
const listOperationSpec = {
|
106
|
+
path: "/providers/Microsoft.HybridCompute/locations/{location}/publishers",
|
107
|
+
httpMethod: "GET",
|
108
|
+
responses: {
|
109
|
+
200: {
|
110
|
+
bodyMapper: Mappers.ExtensionPublisherListResult,
|
111
|
+
},
|
112
|
+
default: {
|
113
|
+
bodyMapper: Mappers.ErrorResponse,
|
114
|
+
},
|
115
|
+
},
|
116
|
+
queryParameters: [Parameters.apiVersion],
|
117
|
+
urlParameters: [Parameters.$host, Parameters.location1],
|
118
|
+
headerParameters: [Parameters.accept],
|
119
|
+
serializer,
|
120
|
+
};
|
121
|
+
const listNextOperationSpec = {
|
122
|
+
path: "{nextLink}",
|
123
|
+
httpMethod: "GET",
|
124
|
+
responses: {
|
125
|
+
200: {
|
126
|
+
bodyMapper: Mappers.ExtensionPublisherListResult,
|
127
|
+
},
|
128
|
+
default: {
|
129
|
+
bodyMapper: Mappers.ErrorResponse,
|
130
|
+
},
|
131
|
+
},
|
132
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location1],
|
133
|
+
headerParameters: [Parameters.accept],
|
134
|
+
serializer,
|
135
|
+
};
|
136
|
+
//# sourceMappingURL=extensionPublisherOperations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extensionPublisherOperations.js","sourceRoot":"","sources":["../../../src/operations/extensionPublisherOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;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AK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC;IAC5E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ExtensionPublisherOperations } 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 { HybridComputeManagementClient } from \"../hybridComputeManagementClient.js\";\nimport {\n ExtensionPublisher,\n ExtensionPublisherListNextOptionalParams,\n ExtensionPublisherListOptionalParams,\n ExtensionPublisherListResponse,\n ExtensionPublisherListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ExtensionPublisherOperations operations. */\nexport class ExtensionPublisherOperationsImpl\n implements ExtensionPublisherOperations\n{\n private readonly client: HybridComputeManagementClient;\n\n /**\n * Initialize a new instance of the class ExtensionPublisherOperations class.\n * @param client Reference to the service client\n */\n constructor(client: HybridComputeManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all Extension publishers based on the location\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: ExtensionPublisherListOptionalParams,\n ): PagedAsyncIterableIterator<ExtensionPublisher> {\n const iter = this.listPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: ExtensionPublisherListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ExtensionPublisher[]> {\n let result: ExtensionPublisherListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n options?: ExtensionPublisherListOptionalParams,\n ): AsyncIterableIterator<ExtensionPublisher> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets all Extension publishers based on the location\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: ExtensionPublisherListOptionalParams,\n ): Promise<ExtensionPublisherListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location The name of Azure region.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: ExtensionPublisherListNextOptionalParams,\n ): Promise<ExtensionPublisherListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.HybridCompute/locations/{location}/publishers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionPublisherListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.location1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionPublisherListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.location1],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { ExtensionTypeOperations } from "../operationsInterfaces/index.js";
|
3
|
+
import { HybridComputeManagementClient } from "../hybridComputeManagementClient.js";
|
4
|
+
import { ExtensionType, ExtensionTypeListOptionalParams } from "../models/index.js";
|
5
|
+
/** Class containing ExtensionTypeOperations operations. */
|
6
|
+
export declare class ExtensionTypeOperationsImpl implements ExtensionTypeOperations {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class ExtensionTypeOperations class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: HybridComputeManagementClient);
|
13
|
+
/**
|
14
|
+
* Gets all Extension types based on location and publisher
|
15
|
+
* @param location The name of Azure region.
|
16
|
+
* @param publisher The publisher of the Extension being received.
|
17
|
+
* @param options The options parameters.
|
18
|
+
*/
|
19
|
+
list(location: string, publisher: string, options?: ExtensionTypeListOptionalParams): PagedAsyncIterableIterator<ExtensionType>;
|
20
|
+
private listPagingPage;
|
21
|
+
private listPagingAll;
|
22
|
+
/**
|
23
|
+
* Gets all Extension types based on location and publisher
|
24
|
+
* @param location The name of Azure region.
|
25
|
+
* @param publisher The publisher of the Extension being received.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
private _list;
|
29
|
+
/**
|
30
|
+
* ListNext
|
31
|
+
* @param location The name of Azure region.
|
32
|
+
* @param publisher The publisher of the Extension being received.
|
33
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
34
|
+
* @param options The options parameters.
|
35
|
+
*/
|
36
|
+
private _listNext;
|
37
|
+
}
|
38
|
+
//# sourceMappingURL=extensionTypeOperations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extensionTypeOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/extensionTypeOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,aAAa,EAEb,+BAA+B,EAGhC,MAAM,oBAAoB,CAAC;AAG5B,2DAA2D;AAC3D,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;OAKG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,aAAa,CAAC;YAkB7B,cAAc;YA6Bd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
14
|
+
/** Class containing ExtensionTypeOperations operations. */
|
15
|
+
export class ExtensionTypeOperationsImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class ExtensionTypeOperations class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Gets all Extension types based on location and publisher
|
25
|
+
* @param location The name of Azure region.
|
26
|
+
* @param publisher The publisher of the Extension being received.
|
27
|
+
* @param options The options parameters.
|
28
|
+
*/
|
29
|
+
list(location, publisher, options) {
|
30
|
+
const iter = this.listPagingAll(location, publisher, options);
|
31
|
+
return {
|
32
|
+
next() {
|
33
|
+
return iter.next();
|
34
|
+
},
|
35
|
+
[Symbol.asyncIterator]() {
|
36
|
+
return this;
|
37
|
+
},
|
38
|
+
byPage: (settings) => {
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
41
|
+
}
|
42
|
+
return this.listPagingPage(location, publisher, options, settings);
|
43
|
+
},
|
44
|
+
};
|
45
|
+
}
|
46
|
+
listPagingPage(location, publisher, options, settings) {
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
48
|
+
let result;
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
50
|
+
if (!continuationToken) {
|
51
|
+
result = yield __await(this._list(location, publisher, options));
|
52
|
+
let page = result.value || [];
|
53
|
+
continuationToken = result.nextLink;
|
54
|
+
setContinuationToken(page, continuationToken);
|
55
|
+
yield yield __await(page);
|
56
|
+
}
|
57
|
+
while (continuationToken) {
|
58
|
+
result = yield __await(this._listNext(location, publisher, continuationToken, options));
|
59
|
+
continuationToken = result.nextLink;
|
60
|
+
let page = result.value || [];
|
61
|
+
setContinuationToken(page, continuationToken);
|
62
|
+
yield yield __await(page);
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}
|
66
|
+
listPagingAll(location, publisher, options) {
|
67
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
68
|
+
var _a, e_1, _b, _c;
|
69
|
+
try {
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(location, publisher, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
71
|
+
_c = _f.value;
|
72
|
+
_d = false;
|
73
|
+
const page = _c;
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
75
|
+
}
|
76
|
+
}
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
78
|
+
finally {
|
79
|
+
try {
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
81
|
+
}
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
83
|
+
}
|
84
|
+
});
|
85
|
+
}
|
86
|
+
/**
|
87
|
+
* Gets all Extension types based on location and publisher
|
88
|
+
* @param location The name of Azure region.
|
89
|
+
* @param publisher The publisher of the Extension being received.
|
90
|
+
* @param options The options parameters.
|
91
|
+
*/
|
92
|
+
_list(location, publisher, options) {
|
93
|
+
return this.client.sendOperationRequest({ location, publisher, options }, listOperationSpec);
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* ListNext
|
97
|
+
* @param location The name of Azure region.
|
98
|
+
* @param publisher The publisher of the Extension being received.
|
99
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
100
|
+
* @param options The options parameters.
|
101
|
+
*/
|
102
|
+
_listNext(location, publisher, nextLink, options) {
|
103
|
+
return this.client.sendOperationRequest({ location, publisher, nextLink, options }, listNextOperationSpec);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
// Operation Specifications
|
107
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
108
|
+
const listOperationSpec = {
|
109
|
+
path: "/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes",
|
110
|
+
httpMethod: "GET",
|
111
|
+
responses: {
|
112
|
+
200: {
|
113
|
+
bodyMapper: Mappers.ExtensionTypeListResult,
|
114
|
+
},
|
115
|
+
default: {
|
116
|
+
bodyMapper: Mappers.ErrorResponse,
|
117
|
+
},
|
118
|
+
},
|
119
|
+
queryParameters: [Parameters.apiVersion],
|
120
|
+
urlParameters: [Parameters.$host, Parameters.publisher, Parameters.location1],
|
121
|
+
headerParameters: [Parameters.accept],
|
122
|
+
serializer,
|
123
|
+
};
|
124
|
+
const listNextOperationSpec = {
|
125
|
+
path: "{nextLink}",
|
126
|
+
httpMethod: "GET",
|
127
|
+
responses: {
|
128
|
+
200: {
|
129
|
+
bodyMapper: Mappers.ExtensionTypeListResult,
|
130
|
+
},
|
131
|
+
default: {
|
132
|
+
bodyMapper: Mappers.ErrorResponse,
|
133
|
+
},
|
134
|
+
},
|
135
|
+
urlParameters: [
|
136
|
+
Parameters.$host,
|
137
|
+
Parameters.nextLink,
|
138
|
+
Parameters.publisher,
|
139
|
+
Parameters.location1,
|
140
|
+
],
|
141
|
+
headerParameters: [Parameters.accept],
|
142
|
+
serializer,
|
143
|
+
};
|
144
|
+
//# sourceMappingURL=extensionTypeOperations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extensionTypeOperations.js","sourceRoot":"","sources":["../../../src/operations/extensionTypeOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,QAAgB,EAChB,SAAiB,EACjB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI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,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC;IAC7E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ExtensionTypeOperations } 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 { HybridComputeManagementClient } from \"../hybridComputeManagementClient.js\";\nimport {\n ExtensionType,\n ExtensionTypeListNextOptionalParams,\n ExtensionTypeListOptionalParams,\n ExtensionTypeListResponse,\n ExtensionTypeListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ExtensionTypeOperations operations. */\nexport class ExtensionTypeOperationsImpl implements ExtensionTypeOperations {\n private readonly client: HybridComputeManagementClient;\n\n /**\n * Initialize a new instance of the class ExtensionTypeOperations class.\n * @param client Reference to the service client\n */\n constructor(client: HybridComputeManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all Extension types based on location and publisher\n * @param location The name of Azure region.\n * @param publisher The publisher of the Extension being received.\n * @param options The options parameters.\n */\n public list(\n location: string,\n publisher: string,\n options?: ExtensionTypeListOptionalParams,\n ): PagedAsyncIterableIterator<ExtensionType> {\n const iter = this.listPagingAll(location, publisher, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, publisher, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n publisher: string,\n options?: ExtensionTypeListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ExtensionType[]> {\n let result: ExtensionTypeListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, publisher, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n location,\n publisher,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n publisher: string,\n options?: ExtensionTypeListOptionalParams,\n ): AsyncIterableIterator<ExtensionType> {\n for await (const page of this.listPagingPage(\n location,\n publisher,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all Extension types based on location and publisher\n * @param location The name of Azure region.\n * @param publisher The publisher of the Extension being received.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n publisher: string,\n options?: ExtensionTypeListOptionalParams,\n ): Promise<ExtensionTypeListResponse> {\n return this.client.sendOperationRequest(\n { location, publisher, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location The name of Azure region.\n * @param publisher The publisher of the Extension being received.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n publisher: string,\n nextLink: string,\n options?: ExtensionTypeListNextOptionalParams,\n ): Promise<ExtensionTypeListNextResponse> {\n return this.client.sendOperationRequest(\n { location, publisher, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionTypeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.publisher, Parameters.location1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionTypeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.publisher,\n Parameters.location1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -320,7 +320,7 @@ const createOrUpdateOperationSpec = {
|
|
320
320
|
bodyMapper: Mappers.Gateway,
|
321
321
|
},
|
322
322
|
default: {
|
323
|
-
bodyMapper: Mappers.
|
323
|
+
bodyMapper: Mappers.ErrorResponse,
|
324
324
|
},
|
325
325
|
},
|
326
326
|
requestBody: Parameters.parameters4,
|
@@ -343,7 +343,7 @@ const updateOperationSpec = {
|
|
343
343
|
bodyMapper: Mappers.Gateway,
|
344
344
|
},
|
345
345
|
default: {
|
346
|
-
bodyMapper: Mappers.
|
346
|
+
bodyMapper: Mappers.ErrorResponse,
|
347
347
|
},
|
348
348
|
},
|
349
349
|
requestBody: Parameters.parameters5,
|
@@ -366,7 +366,7 @@ const getOperationSpec = {
|
|
366
366
|
bodyMapper: Mappers.Gateway,
|
367
367
|
},
|
368
368
|
default: {
|
369
|
-
bodyMapper: Mappers.
|
369
|
+
bodyMapper: Mappers.ErrorResponse,
|
370
370
|
},
|
371
371
|
},
|
372
372
|
queryParameters: [Parameters.apiVersion],
|
@@ -396,7 +396,7 @@ const deleteOperationSpec = {
|
|
396
396
|
headersMapper: Mappers.GatewaysDeleteHeaders,
|
397
397
|
},
|
398
398
|
default: {
|
399
|
-
bodyMapper: Mappers.
|
399
|
+
bodyMapper: Mappers.ErrorResponse,
|
400
400
|
},
|
401
401
|
},
|
402
402
|
queryParameters: [Parameters.apiVersion],
|
@@ -417,7 +417,7 @@ const listByResourceGroupOperationSpec = {
|
|
417
417
|
bodyMapper: Mappers.GatewaysListResult,
|
418
418
|
},
|
419
419
|
default: {
|
420
|
-
bodyMapper: Mappers.
|
420
|
+
bodyMapper: Mappers.ErrorResponse,
|
421
421
|
},
|
422
422
|
},
|
423
423
|
queryParameters: [Parameters.apiVersion],
|
@@ -437,7 +437,7 @@ const listBySubscriptionOperationSpec = {
|
|
437
437
|
bodyMapper: Mappers.GatewaysListResult,
|
438
438
|
},
|
439
439
|
default: {
|
440
|
-
bodyMapper: Mappers.
|
440
|
+
bodyMapper: Mappers.ErrorResponse,
|
441
441
|
},
|
442
442
|
},
|
443
443
|
queryParameters: [Parameters.apiVersion],
|
@@ -453,7 +453,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
453
453
|
bodyMapper: Mappers.GatewaysListResult,
|
454
454
|
},
|
455
455
|
default: {
|
456
|
-
bodyMapper: Mappers.
|
456
|
+
bodyMapper: Mappers.ErrorResponse,
|
457
457
|
},
|
458
458
|
},
|
459
459
|
urlParameters: [
|
@@ -473,7 +473,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
473
473
|
bodyMapper: Mappers.GatewaysListResult,
|
474
474
|
},
|
475
475
|
default: {
|
476
|
-
bodyMapper: Mappers.
|
476
|
+
bodyMapper: Mappers.ErrorResponse,
|
477
477
|
},
|
478
478
|
},
|
479
479
|
urlParameters: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gateways.js","sourceRoot":"","sources":["../../../src/operations/gateways.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAsB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,i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,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Gateways } 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 { HybridComputeManagementClient } from \"../hybridComputeManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Gateway,\n GatewaysListByResourceGroupNextOptionalParams,\n GatewaysListByResourceGroupOptionalParams,\n GatewaysListByResourceGroupResponse,\n GatewaysListBySubscriptionNextOptionalParams,\n GatewaysListBySubscriptionOptionalParams,\n GatewaysListBySubscriptionResponse,\n GatewaysCreateOrUpdateOptionalParams,\n GatewaysCreateOrUpdateResponse,\n GatewayUpdate,\n GatewaysUpdateOptionalParams,\n GatewaysUpdateResponse,\n GatewaysGetOptionalParams,\n GatewaysGetResponse,\n GatewaysDeleteOptionalParams,\n GatewaysDeleteResponse,\n GatewaysListByResourceGroupNextResponse,\n GatewaysListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Gateways operations. */\nexport class GatewaysImpl implements Gateways {\n private readonly client: HybridComputeManagementClient;\n\n /**\n * Initialize a new instance of the class Gateways class.\n * @param client Reference to the service client\n */\n constructor(client: HybridComputeManagementClient) {\n this.client = client;\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Gateway> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Gateway[]> {\n let result: GatewaysListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Gateway> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Gateway> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: GatewaysListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Gateway[]> {\n let result: GatewaysListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Gateway> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * The operation to create or update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Create gateway operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n gatewayName: string,\n parameters: Gateway,\n options?: GatewaysCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GatewaysCreateOrUpdateResponse>,\n GatewaysCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GatewaysCreateOrUpdateResponse> => {\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 =\n 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: { resourceGroupName, gatewayName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n GatewaysCreateOrUpdateResponse,\n OperationState<GatewaysCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to create or update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Create gateway operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n gatewayName: string,\n parameters: Gateway,\n options?: GatewaysCreateOrUpdateOptionalParams,\n ): Promise<GatewaysCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n gatewayName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Update gateway operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n gatewayName: string,\n parameters: GatewayUpdate,\n options?: GatewaysUpdateOptionalParams,\n ): Promise<GatewaysUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, gatewayName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Retrieves information about the view of a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysGetOptionalParams,\n ): Promise<GatewaysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, gatewayName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to delete a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GatewaysDeleteResponse>,\n GatewaysDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GatewaysDeleteResponse> => {\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 =\n 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: { resourceGroupName, gatewayName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n GatewaysDeleteResponse,\n OperationState<GatewaysDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to delete a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysDeleteOptionalParams,\n ): Promise<GatewaysDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n gatewayName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): Promise<GatewaysListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): Promise<GatewaysListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: GatewaysListByResourceGroupNextOptionalParams,\n ): Promise<GatewaysListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: GatewaysListBySubscriptionNextOptionalParams,\n ): Promise<GatewaysListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n 201: {\n bodyMapper: Mappers.Gateway,\n },\n 202: {\n bodyMapper: Mappers.Gateway,\n },\n 204: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/gateways\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"gateways.js","sourceRoot":"","sources":["../../../src/operations/gateways.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAsB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;I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K;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Gateways } 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 { HybridComputeManagementClient } from \"../hybridComputeManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Gateway,\n GatewaysListByResourceGroupNextOptionalParams,\n GatewaysListByResourceGroupOptionalParams,\n GatewaysListByResourceGroupResponse,\n GatewaysListBySubscriptionNextOptionalParams,\n GatewaysListBySubscriptionOptionalParams,\n GatewaysListBySubscriptionResponse,\n GatewaysCreateOrUpdateOptionalParams,\n GatewaysCreateOrUpdateResponse,\n GatewayUpdate,\n GatewaysUpdateOptionalParams,\n GatewaysUpdateResponse,\n GatewaysGetOptionalParams,\n GatewaysGetResponse,\n GatewaysDeleteOptionalParams,\n GatewaysDeleteResponse,\n GatewaysListByResourceGroupNextResponse,\n GatewaysListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Gateways operations. */\nexport class GatewaysImpl implements Gateways {\n private readonly client: HybridComputeManagementClient;\n\n /**\n * Initialize a new instance of the class Gateways class.\n * @param client Reference to the service client\n */\n constructor(client: HybridComputeManagementClient) {\n this.client = client;\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Gateway> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Gateway[]> {\n let result: GatewaysListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Gateway> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Gateway> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: GatewaysListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Gateway[]> {\n let result: GatewaysListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Gateway> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * The operation to create or update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Create gateway operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n gatewayName: string,\n parameters: Gateway,\n options?: GatewaysCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GatewaysCreateOrUpdateResponse>,\n GatewaysCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GatewaysCreateOrUpdateResponse> => {\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 =\n 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: { resourceGroupName, gatewayName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n GatewaysCreateOrUpdateResponse,\n OperationState<GatewaysCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to create or update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Create gateway operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n gatewayName: string,\n parameters: Gateway,\n options?: GatewaysCreateOrUpdateOptionalParams,\n ): Promise<GatewaysCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n gatewayName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to update a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param parameters Parameters supplied to the Update gateway operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n gatewayName: string,\n parameters: GatewayUpdate,\n options?: GatewaysUpdateOptionalParams,\n ): Promise<GatewaysUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, gatewayName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Retrieves information about the view of a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysGetOptionalParams,\n ): Promise<GatewaysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, gatewayName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to delete a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GatewaysDeleteResponse>,\n GatewaysDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GatewaysDeleteResponse> => {\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 =\n 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: { resourceGroupName, gatewayName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n GatewaysDeleteResponse,\n OperationState<GatewaysDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to delete a gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param gatewayName The name of the Gateway.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n gatewayName: string,\n options?: GatewaysDeleteOptionalParams,\n ): Promise<GatewaysDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n gatewayName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: GatewaysListByResourceGroupOptionalParams,\n ): Promise<GatewaysListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * The operation to get all gateways of a non-Azure machine\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: GatewaysListBySubscriptionOptionalParams,\n ): Promise<GatewaysListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: GatewaysListByResourceGroupNextOptionalParams,\n ): Promise<GatewaysListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: GatewaysListBySubscriptionNextOptionalParams,\n ): Promise<GatewaysListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n 201: {\n bodyMapper: Mappers.Gateway,\n },\n 202: {\n bodyMapper: Mappers.Gateway,\n },\n 204: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Gateway,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GatewaysDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.gatewayName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/gateways\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GatewaysListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -3,6 +3,9 @@ export * from "./machines.js";
|
|
3
3
|
export * from "./licenseProfiles.js";
|
4
4
|
export * from "./machineExtensions.js";
|
5
5
|
export * from "./extensionMetadata.js";
|
6
|
+
export * from "./extensionMetadataV2.js";
|
7
|
+
export * from "./extensionTypeOperations.js";
|
8
|
+
export * from "./extensionPublisherOperations.js";
|
6
9
|
export * from "./operations.js";
|
7
10
|
export * from "./networkProfileOperations.js";
|
8
11
|
export * from "./machineRunCommands.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC"}
|
@@ -10,6 +10,9 @@ export * from "./machines.js";
|
|
10
10
|
export * from "./licenseProfiles.js";
|
11
11
|
export * from "./machineExtensions.js";
|
12
12
|
export * from "./extensionMetadata.js";
|
13
|
+
export * from "./extensionMetadataV2.js";
|
14
|
+
export * from "./extensionTypeOperations.js";
|
15
|
+
export * from "./extensionPublisherOperations.js";
|
13
16
|
export * from "./operations.js";
|
14
17
|
export * from "./networkProfileOperations.js";
|
15
18
|
export * from "./machineRunCommands.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./licenses.js\";\nexport * from \"./machines.js\";\nexport * from \"./licenseProfiles.js\";\nexport * from \"./machineExtensions.js\";\nexport * from \"./extensionMetadata.js\";\nexport * from \"./operations.js\";\nexport * from \"./networkProfileOperations.js\";\nexport * from \"./machineRunCommands.js\";\nexport * from \"./gateways.js\";\nexport * from \"./settingsOperations.js\";\nexport * from \"./privateLinkScopes.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./networkSecurityPerimeterConfigurations.js\";\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./licenses.js\";\nexport * from \"./machines.js\";\nexport * from \"./licenseProfiles.js\";\nexport * from \"./machineExtensions.js\";\nexport * from \"./extensionMetadata.js\";\nexport * from \"./extensionMetadataV2.js\";\nexport * from \"./extensionTypeOperations.js\";\nexport * from \"./extensionPublisherOperations.js\";\nexport * from \"./operations.js\";\nexport * from \"./networkProfileOperations.js\";\nexport * from \"./machineRunCommands.js\";\nexport * from \"./gateways.js\";\nexport * from \"./settingsOperations.js\";\nexport * from \"./privateLinkScopes.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./networkSecurityPerimeterConfigurations.js\";\n"]}
|