@azure/arm-containerservicefleet 1.0.0-alpha.20230620.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/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +3169 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.js +42 -0
- package/dist-esm/samples-dev/fleetMembersCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.js +39 -0
- package/dist-esm/samples-dev/fleetMembersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.js +39 -0
- package/dist-esm/samples-dev/fleetMembersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.js +59 -0
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.js +40 -0
- package/dist-esm/samples-dev/fleetMembersUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/fleetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsGetSample.js +38 -0
- package/dist-esm/samples-dev/fleetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.js +58 -0
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.js +57 -0
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.js +38 -0
- package/dist-esm/samples-dev/fleetsListCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/fleetsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js +54 -0
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/updateRunsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsGetSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.js +60 -0
- package/dist-esm/samples-dev/updateRunsListByFleetSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsStartSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsStartSample.js.map +1 -0
- package/dist-esm/samples-dev/updateRunsStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/updateRunsStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRunsStopSample.js +40 -0
- package/dist-esm/samples-dev/updateRunsStopSample.js.map +1 -0
- package/dist-esm/src/containerServiceFleetClient.d.ts +23 -0
- package/dist-esm/src/containerServiceFleetClient.d.ts.map +1 -0
- package/dist-esm/src/containerServiceFleetClient.js +103 -0
- package/dist-esm/src/containerServiceFleetClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +851 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +102 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +42 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1057 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +174 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/fleetMembers.d.ts +90 -0
- package/dist-esm/src/operations/fleetMembers.d.ts.map +1 -0
- package/dist-esm/src/operations/fleetMembers.js +413 -0
- package/dist-esm/src/operations/fleetMembers.js.map +1 -0
- package/dist-esm/src/operations/fleets.d.ts +106 -0
- package/dist-esm/src/operations/fleets.d.ts.map +1 -0
- package/dist-esm/src/operations/fleets.js +538 -0
- package/dist-esm/src/operations/fleets.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/updateRuns.d.ts +113 -0
- package/dist-esm/src/operations/updateRuns.d.ts.map +1 -0
- package/dist-esm/src/operations/updateRuns.js +546 -0
- package/dist-esm/src/operations/updateRuns.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.js +9 -0
- package/dist-esm/src/operationsInterfaces/fleetMembers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleets.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/fleets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleets.js +9 -0
- package/dist-esm/src/operationsInterfaces/fleets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.d.ts +88 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.js +9 -0
- package/dist-esm/src/operationsInterfaces/updateRuns.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.js +122 -0
- package/dist-esm/test/containerservicefleet_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-containerservicefleet.api.md +623 -0
- package/rollup.config.js +122 -0
- package/src/containerServiceFleetClient.ts +156 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +965 -0
- package/src/models/mappers.ts +1124 -0
- package/src/models/parameters.ts +202 -0
- package/src/operations/fleetMembers.ts +562 -0
- package/src/operations/fleets.ts +684 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/updateRuns.ts +763 -0
- package/src/operationsInterfaces/fleetMembers.ts +127 -0
- package/src/operationsInterfaces/fleets.ts +134 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/updateRuns.ts +175 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-containerservicefleet.d.ts +1209 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* Copyright (c) Microsoft Corporation.
|
|
65
|
+
* Licensed under the MIT License.
|
|
66
|
+
*
|
|
67
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
+
*/
|
|
70
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
71
|
+
exports.KnownOrigin = void 0;
|
|
72
|
+
(function (KnownOrigin) {
|
|
73
|
+
/** User */
|
|
74
|
+
KnownOrigin["User"] = "user";
|
|
75
|
+
/** System */
|
|
76
|
+
KnownOrigin["System"] = "system";
|
|
77
|
+
/** UserSystem */
|
|
78
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
79
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
80
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
81
|
+
exports.KnownActionType = void 0;
|
|
82
|
+
(function (KnownActionType) {
|
|
83
|
+
/** Internal */
|
|
84
|
+
KnownActionType["Internal"] = "Internal";
|
|
85
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
86
|
+
/** Known values of {@link FleetProvisioningState} that the service accepts. */
|
|
87
|
+
exports.KnownFleetProvisioningState = void 0;
|
|
88
|
+
(function (KnownFleetProvisioningState) {
|
|
89
|
+
/** Succeeded */
|
|
90
|
+
KnownFleetProvisioningState["Succeeded"] = "Succeeded";
|
|
91
|
+
/** Failed */
|
|
92
|
+
KnownFleetProvisioningState["Failed"] = "Failed";
|
|
93
|
+
/** Canceled */
|
|
94
|
+
KnownFleetProvisioningState["Canceled"] = "Canceled";
|
|
95
|
+
/** Creating */
|
|
96
|
+
KnownFleetProvisioningState["Creating"] = "Creating";
|
|
97
|
+
/** Updating */
|
|
98
|
+
KnownFleetProvisioningState["Updating"] = "Updating";
|
|
99
|
+
/** Deleting */
|
|
100
|
+
KnownFleetProvisioningState["Deleting"] = "Deleting";
|
|
101
|
+
})(exports.KnownFleetProvisioningState || (exports.KnownFleetProvisioningState = {}));
|
|
102
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
103
|
+
exports.KnownCreatedByType = void 0;
|
|
104
|
+
(function (KnownCreatedByType) {
|
|
105
|
+
/** User */
|
|
106
|
+
KnownCreatedByType["User"] = "User";
|
|
107
|
+
/** Application */
|
|
108
|
+
KnownCreatedByType["Application"] = "Application";
|
|
109
|
+
/** ManagedIdentity */
|
|
110
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
111
|
+
/** Key */
|
|
112
|
+
KnownCreatedByType["Key"] = "Key";
|
|
113
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
114
|
+
/** Known values of {@link FleetMemberProvisioningState} that the service accepts. */
|
|
115
|
+
exports.KnownFleetMemberProvisioningState = void 0;
|
|
116
|
+
(function (KnownFleetMemberProvisioningState) {
|
|
117
|
+
/** Succeeded */
|
|
118
|
+
KnownFleetMemberProvisioningState["Succeeded"] = "Succeeded";
|
|
119
|
+
/** Failed */
|
|
120
|
+
KnownFleetMemberProvisioningState["Failed"] = "Failed";
|
|
121
|
+
/** Canceled */
|
|
122
|
+
KnownFleetMemberProvisioningState["Canceled"] = "Canceled";
|
|
123
|
+
/** Joining */
|
|
124
|
+
KnownFleetMemberProvisioningState["Joining"] = "Joining";
|
|
125
|
+
/** Leaving */
|
|
126
|
+
KnownFleetMemberProvisioningState["Leaving"] = "Leaving";
|
|
127
|
+
/** Updating */
|
|
128
|
+
KnownFleetMemberProvisioningState["Updating"] = "Updating";
|
|
129
|
+
})(exports.KnownFleetMemberProvisioningState || (exports.KnownFleetMemberProvisioningState = {}));
|
|
130
|
+
/** Known values of {@link UpdateRunProvisioningState} that the service accepts. */
|
|
131
|
+
exports.KnownUpdateRunProvisioningState = void 0;
|
|
132
|
+
(function (KnownUpdateRunProvisioningState) {
|
|
133
|
+
/** Succeeded */
|
|
134
|
+
KnownUpdateRunProvisioningState["Succeeded"] = "Succeeded";
|
|
135
|
+
/** Failed */
|
|
136
|
+
KnownUpdateRunProvisioningState["Failed"] = "Failed";
|
|
137
|
+
/** Canceled */
|
|
138
|
+
KnownUpdateRunProvisioningState["Canceled"] = "Canceled";
|
|
139
|
+
})(exports.KnownUpdateRunProvisioningState || (exports.KnownUpdateRunProvisioningState = {}));
|
|
140
|
+
/** Known values of {@link ManagedClusterUpgradeType} that the service accepts. */
|
|
141
|
+
exports.KnownManagedClusterUpgradeType = void 0;
|
|
142
|
+
(function (KnownManagedClusterUpgradeType) {
|
|
143
|
+
/** Full upgrades the control plane and all agent pools of the target ManagedClusters. */
|
|
144
|
+
KnownManagedClusterUpgradeType["Full"] = "Full";
|
|
145
|
+
/** NodeImageOnly upgrades only the node images of the target ManagedClusters. */
|
|
146
|
+
KnownManagedClusterUpgradeType["NodeImageOnly"] = "NodeImageOnly";
|
|
147
|
+
})(exports.KnownManagedClusterUpgradeType || (exports.KnownManagedClusterUpgradeType = {}));
|
|
148
|
+
/** Known values of {@link UpdateState} that the service accepts. */
|
|
149
|
+
exports.KnownUpdateState = void 0;
|
|
150
|
+
(function (KnownUpdateState) {
|
|
151
|
+
/** NotStarted */
|
|
152
|
+
KnownUpdateState["NotStarted"] = "NotStarted";
|
|
153
|
+
/** Running */
|
|
154
|
+
KnownUpdateState["Running"] = "Running";
|
|
155
|
+
/** Stopping */
|
|
156
|
+
KnownUpdateState["Stopping"] = "Stopping";
|
|
157
|
+
/** Stopped */
|
|
158
|
+
KnownUpdateState["Stopped"] = "Stopped";
|
|
159
|
+
/** Failed */
|
|
160
|
+
KnownUpdateState["Failed"] = "Failed";
|
|
161
|
+
/** Completed */
|
|
162
|
+
KnownUpdateState["Completed"] = "Completed";
|
|
163
|
+
})(exports.KnownUpdateState || (exports.KnownUpdateState = {}));
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* Copyright (c) Microsoft Corporation.
|
|
167
|
+
* Licensed under the MIT License.
|
|
168
|
+
*
|
|
169
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
170
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
171
|
+
*/
|
|
172
|
+
const OperationListResult = {
|
|
173
|
+
type: {
|
|
174
|
+
name: "Composite",
|
|
175
|
+
className: "OperationListResult",
|
|
176
|
+
modelProperties: {
|
|
177
|
+
value: {
|
|
178
|
+
serializedName: "value",
|
|
179
|
+
readOnly: true,
|
|
180
|
+
type: {
|
|
181
|
+
name: "Sequence",
|
|
182
|
+
element: {
|
|
183
|
+
type: {
|
|
184
|
+
name: "Composite",
|
|
185
|
+
className: "Operation"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
nextLink: {
|
|
191
|
+
serializedName: "nextLink",
|
|
192
|
+
readOnly: true,
|
|
193
|
+
type: {
|
|
194
|
+
name: "String"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const Operation = {
|
|
201
|
+
type: {
|
|
202
|
+
name: "Composite",
|
|
203
|
+
className: "Operation",
|
|
204
|
+
modelProperties: {
|
|
205
|
+
name: {
|
|
206
|
+
serializedName: "name",
|
|
207
|
+
readOnly: true,
|
|
208
|
+
type: {
|
|
209
|
+
name: "String"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
isDataAction: {
|
|
213
|
+
serializedName: "isDataAction",
|
|
214
|
+
readOnly: true,
|
|
215
|
+
type: {
|
|
216
|
+
name: "Boolean"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
display: {
|
|
220
|
+
serializedName: "display",
|
|
221
|
+
type: {
|
|
222
|
+
name: "Composite",
|
|
223
|
+
className: "OperationDisplay"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
origin: {
|
|
227
|
+
serializedName: "origin",
|
|
228
|
+
readOnly: true,
|
|
229
|
+
type: {
|
|
230
|
+
name: "String"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
actionType: {
|
|
234
|
+
serializedName: "actionType",
|
|
235
|
+
readOnly: true,
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const OperationDisplay = {
|
|
244
|
+
type: {
|
|
245
|
+
name: "Composite",
|
|
246
|
+
className: "OperationDisplay",
|
|
247
|
+
modelProperties: {
|
|
248
|
+
provider: {
|
|
249
|
+
serializedName: "provider",
|
|
250
|
+
readOnly: true,
|
|
251
|
+
type: {
|
|
252
|
+
name: "String"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
resource: {
|
|
256
|
+
serializedName: "resource",
|
|
257
|
+
readOnly: true,
|
|
258
|
+
type: {
|
|
259
|
+
name: "String"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
operation: {
|
|
263
|
+
serializedName: "operation",
|
|
264
|
+
readOnly: true,
|
|
265
|
+
type: {
|
|
266
|
+
name: "String"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
description: {
|
|
270
|
+
serializedName: "description",
|
|
271
|
+
readOnly: true,
|
|
272
|
+
type: {
|
|
273
|
+
name: "String"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
const ErrorResponse = {
|
|
280
|
+
type: {
|
|
281
|
+
name: "Composite",
|
|
282
|
+
className: "ErrorResponse",
|
|
283
|
+
modelProperties: {
|
|
284
|
+
error: {
|
|
285
|
+
serializedName: "error",
|
|
286
|
+
type: {
|
|
287
|
+
name: "Composite",
|
|
288
|
+
className: "ErrorDetail"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
const ErrorDetail = {
|
|
295
|
+
type: {
|
|
296
|
+
name: "Composite",
|
|
297
|
+
className: "ErrorDetail",
|
|
298
|
+
modelProperties: {
|
|
299
|
+
code: {
|
|
300
|
+
serializedName: "code",
|
|
301
|
+
readOnly: true,
|
|
302
|
+
type: {
|
|
303
|
+
name: "String"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
message: {
|
|
307
|
+
serializedName: "message",
|
|
308
|
+
readOnly: true,
|
|
309
|
+
type: {
|
|
310
|
+
name: "String"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
target: {
|
|
314
|
+
serializedName: "target",
|
|
315
|
+
readOnly: true,
|
|
316
|
+
type: {
|
|
317
|
+
name: "String"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
details: {
|
|
321
|
+
serializedName: "details",
|
|
322
|
+
readOnly: true,
|
|
323
|
+
type: {
|
|
324
|
+
name: "Sequence",
|
|
325
|
+
element: {
|
|
326
|
+
type: {
|
|
327
|
+
name: "Composite",
|
|
328
|
+
className: "ErrorDetail"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
additionalInfo: {
|
|
334
|
+
serializedName: "additionalInfo",
|
|
335
|
+
readOnly: true,
|
|
336
|
+
type: {
|
|
337
|
+
name: "Sequence",
|
|
338
|
+
element: {
|
|
339
|
+
type: {
|
|
340
|
+
name: "Composite",
|
|
341
|
+
className: "ErrorAdditionalInfo"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const ErrorAdditionalInfo = {
|
|
350
|
+
type: {
|
|
351
|
+
name: "Composite",
|
|
352
|
+
className: "ErrorAdditionalInfo",
|
|
353
|
+
modelProperties: {
|
|
354
|
+
type: {
|
|
355
|
+
serializedName: "type",
|
|
356
|
+
readOnly: true,
|
|
357
|
+
type: {
|
|
358
|
+
name: "String"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
info: {
|
|
362
|
+
serializedName: "info",
|
|
363
|
+
readOnly: true,
|
|
364
|
+
type: {
|
|
365
|
+
name: "Dictionary",
|
|
366
|
+
value: { type: { name: "any" } }
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
const FleetListResult = {
|
|
373
|
+
type: {
|
|
374
|
+
name: "Composite",
|
|
375
|
+
className: "FleetListResult",
|
|
376
|
+
modelProperties: {
|
|
377
|
+
value: {
|
|
378
|
+
serializedName: "value",
|
|
379
|
+
required: true,
|
|
380
|
+
type: {
|
|
381
|
+
name: "Sequence",
|
|
382
|
+
element: {
|
|
383
|
+
type: {
|
|
384
|
+
name: "Composite",
|
|
385
|
+
className: "Fleet"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
nextLink: {
|
|
391
|
+
serializedName: "nextLink",
|
|
392
|
+
type: {
|
|
393
|
+
name: "String"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const FleetHubProfile = {
|
|
400
|
+
type: {
|
|
401
|
+
name: "Composite",
|
|
402
|
+
className: "FleetHubProfile",
|
|
403
|
+
modelProperties: {
|
|
404
|
+
dnsPrefix: {
|
|
405
|
+
constraints: {
|
|
406
|
+
Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$"),
|
|
407
|
+
MaxLength: 54,
|
|
408
|
+
MinLength: 1
|
|
409
|
+
},
|
|
410
|
+
serializedName: "dnsPrefix",
|
|
411
|
+
type: {
|
|
412
|
+
name: "String"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
fqdn: {
|
|
416
|
+
serializedName: "fqdn",
|
|
417
|
+
readOnly: true,
|
|
418
|
+
type: {
|
|
419
|
+
name: "String"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
kubernetesVersion: {
|
|
423
|
+
serializedName: "kubernetesVersion",
|
|
424
|
+
readOnly: true,
|
|
425
|
+
type: {
|
|
426
|
+
name: "String"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const Resource = {
|
|
433
|
+
type: {
|
|
434
|
+
name: "Composite",
|
|
435
|
+
className: "Resource",
|
|
436
|
+
modelProperties: {
|
|
437
|
+
id: {
|
|
438
|
+
serializedName: "id",
|
|
439
|
+
readOnly: true,
|
|
440
|
+
type: {
|
|
441
|
+
name: "String"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
name: {
|
|
445
|
+
serializedName: "name",
|
|
446
|
+
readOnly: true,
|
|
447
|
+
type: {
|
|
448
|
+
name: "String"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
type: {
|
|
452
|
+
serializedName: "type",
|
|
453
|
+
readOnly: true,
|
|
454
|
+
type: {
|
|
455
|
+
name: "String"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
systemData: {
|
|
459
|
+
serializedName: "systemData",
|
|
460
|
+
type: {
|
|
461
|
+
name: "Composite",
|
|
462
|
+
className: "SystemData"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
const SystemData = {
|
|
469
|
+
type: {
|
|
470
|
+
name: "Composite",
|
|
471
|
+
className: "SystemData",
|
|
472
|
+
modelProperties: {
|
|
473
|
+
createdBy: {
|
|
474
|
+
serializedName: "createdBy",
|
|
475
|
+
type: {
|
|
476
|
+
name: "String"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
createdByType: {
|
|
480
|
+
serializedName: "createdByType",
|
|
481
|
+
type: {
|
|
482
|
+
name: "String"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
createdAt: {
|
|
486
|
+
serializedName: "createdAt",
|
|
487
|
+
type: {
|
|
488
|
+
name: "DateTime"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
lastModifiedBy: {
|
|
492
|
+
serializedName: "lastModifiedBy",
|
|
493
|
+
type: {
|
|
494
|
+
name: "String"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
lastModifiedByType: {
|
|
498
|
+
serializedName: "lastModifiedByType",
|
|
499
|
+
type: {
|
|
500
|
+
name: "String"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
lastModifiedAt: {
|
|
504
|
+
serializedName: "lastModifiedAt",
|
|
505
|
+
type: {
|
|
506
|
+
name: "DateTime"
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
const FleetPatch = {
|
|
513
|
+
type: {
|
|
514
|
+
name: "Composite",
|
|
515
|
+
className: "FleetPatch",
|
|
516
|
+
modelProperties: {
|
|
517
|
+
tags: {
|
|
518
|
+
serializedName: "tags",
|
|
519
|
+
type: {
|
|
520
|
+
name: "Dictionary",
|
|
521
|
+
value: { type: { name: "String" } }
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
const FleetCredentialResults = {
|
|
528
|
+
type: {
|
|
529
|
+
name: "Composite",
|
|
530
|
+
className: "FleetCredentialResults",
|
|
531
|
+
modelProperties: {
|
|
532
|
+
kubeconfigs: {
|
|
533
|
+
serializedName: "kubeconfigs",
|
|
534
|
+
readOnly: true,
|
|
535
|
+
type: {
|
|
536
|
+
name: "Sequence",
|
|
537
|
+
element: {
|
|
538
|
+
type: {
|
|
539
|
+
name: "Composite",
|
|
540
|
+
className: "FleetCredentialResult"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
const FleetCredentialResult = {
|
|
549
|
+
type: {
|
|
550
|
+
name: "Composite",
|
|
551
|
+
className: "FleetCredentialResult",
|
|
552
|
+
modelProperties: {
|
|
553
|
+
name: {
|
|
554
|
+
serializedName: "name",
|
|
555
|
+
readOnly: true,
|
|
556
|
+
type: {
|
|
557
|
+
name: "String"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
value: {
|
|
561
|
+
serializedName: "value",
|
|
562
|
+
readOnly: true,
|
|
563
|
+
type: {
|
|
564
|
+
name: "ByteArray"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
const FleetMemberListResult = {
|
|
571
|
+
type: {
|
|
572
|
+
name: "Composite",
|
|
573
|
+
className: "FleetMemberListResult",
|
|
574
|
+
modelProperties: {
|
|
575
|
+
value: {
|
|
576
|
+
serializedName: "value",
|
|
577
|
+
required: true,
|
|
578
|
+
type: {
|
|
579
|
+
name: "Sequence",
|
|
580
|
+
element: {
|
|
581
|
+
type: {
|
|
582
|
+
name: "Composite",
|
|
583
|
+
className: "FleetMember"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
nextLink: {
|
|
589
|
+
serializedName: "nextLink",
|
|
590
|
+
type: {
|
|
591
|
+
name: "String"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
const FleetMemberUpdate = {
|
|
598
|
+
type: {
|
|
599
|
+
name: "Composite",
|
|
600
|
+
className: "FleetMemberUpdate",
|
|
601
|
+
modelProperties: {
|
|
602
|
+
group: {
|
|
603
|
+
constraints: {
|
|
604
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
605
|
+
MaxLength: 50,
|
|
606
|
+
MinLength: 1
|
|
607
|
+
},
|
|
608
|
+
serializedName: "properties.group",
|
|
609
|
+
type: {
|
|
610
|
+
name: "String"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
const UpdateRunListResult = {
|
|
617
|
+
type: {
|
|
618
|
+
name: "Composite",
|
|
619
|
+
className: "UpdateRunListResult",
|
|
620
|
+
modelProperties: {
|
|
621
|
+
value: {
|
|
622
|
+
serializedName: "value",
|
|
623
|
+
required: true,
|
|
624
|
+
type: {
|
|
625
|
+
name: "Sequence",
|
|
626
|
+
element: {
|
|
627
|
+
type: {
|
|
628
|
+
name: "Composite",
|
|
629
|
+
className: "UpdateRun"
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
nextLink: {
|
|
635
|
+
serializedName: "nextLink",
|
|
636
|
+
type: {
|
|
637
|
+
name: "String"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
const UpdateRunStrategy = {
|
|
644
|
+
type: {
|
|
645
|
+
name: "Composite",
|
|
646
|
+
className: "UpdateRunStrategy",
|
|
647
|
+
modelProperties: {
|
|
648
|
+
stages: {
|
|
649
|
+
serializedName: "stages",
|
|
650
|
+
required: true,
|
|
651
|
+
type: {
|
|
652
|
+
name: "Sequence",
|
|
653
|
+
element: {
|
|
654
|
+
type: {
|
|
655
|
+
name: "Composite",
|
|
656
|
+
className: "UpdateStage"
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
const UpdateStage = {
|
|
665
|
+
type: {
|
|
666
|
+
name: "Composite",
|
|
667
|
+
className: "UpdateStage",
|
|
668
|
+
modelProperties: {
|
|
669
|
+
name: {
|
|
670
|
+
constraints: {
|
|
671
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
672
|
+
MaxLength: 50,
|
|
673
|
+
MinLength: 1
|
|
674
|
+
},
|
|
675
|
+
serializedName: "name",
|
|
676
|
+
required: true,
|
|
677
|
+
type: {
|
|
678
|
+
name: "String"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
groups: {
|
|
682
|
+
serializedName: "groups",
|
|
683
|
+
type: {
|
|
684
|
+
name: "Sequence",
|
|
685
|
+
element: {
|
|
686
|
+
type: {
|
|
687
|
+
name: "Composite",
|
|
688
|
+
className: "UpdateGroup"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
afterStageWaitInSeconds: {
|
|
694
|
+
serializedName: "afterStageWaitInSeconds",
|
|
695
|
+
type: {
|
|
696
|
+
name: "Number"
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
const UpdateGroup = {
|
|
703
|
+
type: {
|
|
704
|
+
name: "Composite",
|
|
705
|
+
className: "UpdateGroup",
|
|
706
|
+
modelProperties: {
|
|
707
|
+
name: {
|
|
708
|
+
constraints: {
|
|
709
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
710
|
+
MaxLength: 50,
|
|
711
|
+
MinLength: 1
|
|
712
|
+
},
|
|
713
|
+
serializedName: "name",
|
|
714
|
+
required: true,
|
|
715
|
+
type: {
|
|
716
|
+
name: "String"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const ManagedClusterUpdate = {
|
|
723
|
+
type: {
|
|
724
|
+
name: "Composite",
|
|
725
|
+
className: "ManagedClusterUpdate",
|
|
726
|
+
modelProperties: {
|
|
727
|
+
upgrade: {
|
|
728
|
+
serializedName: "upgrade",
|
|
729
|
+
type: {
|
|
730
|
+
name: "Composite",
|
|
731
|
+
className: "ManagedClusterUpgradeSpec"
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
const ManagedClusterUpgradeSpec = {
|
|
738
|
+
type: {
|
|
739
|
+
name: "Composite",
|
|
740
|
+
className: "ManagedClusterUpgradeSpec",
|
|
741
|
+
modelProperties: {
|
|
742
|
+
type: {
|
|
743
|
+
serializedName: "type",
|
|
744
|
+
required: true,
|
|
745
|
+
type: {
|
|
746
|
+
name: "String"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
kubernetesVersion: {
|
|
750
|
+
serializedName: "kubernetesVersion",
|
|
751
|
+
type: {
|
|
752
|
+
name: "String"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
const UpdateRunStatus = {
|
|
759
|
+
type: {
|
|
760
|
+
name: "Composite",
|
|
761
|
+
className: "UpdateRunStatus",
|
|
762
|
+
modelProperties: {
|
|
763
|
+
status: {
|
|
764
|
+
serializedName: "status",
|
|
765
|
+
type: {
|
|
766
|
+
name: "Composite",
|
|
767
|
+
className: "UpdateStatus"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
stages: {
|
|
771
|
+
serializedName: "stages",
|
|
772
|
+
readOnly: true,
|
|
773
|
+
type: {
|
|
774
|
+
name: "Sequence",
|
|
775
|
+
element: {
|
|
776
|
+
type: {
|
|
777
|
+
name: "Composite",
|
|
778
|
+
className: "UpdateStageStatus"
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
const UpdateStatus = {
|
|
787
|
+
type: {
|
|
788
|
+
name: "Composite",
|
|
789
|
+
className: "UpdateStatus",
|
|
790
|
+
modelProperties: {
|
|
791
|
+
startTime: {
|
|
792
|
+
serializedName: "startTime",
|
|
793
|
+
readOnly: true,
|
|
794
|
+
type: {
|
|
795
|
+
name: "DateTime"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
completedTime: {
|
|
799
|
+
serializedName: "completedTime",
|
|
800
|
+
readOnly: true,
|
|
801
|
+
type: {
|
|
802
|
+
name: "DateTime"
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
state: {
|
|
806
|
+
serializedName: "state",
|
|
807
|
+
readOnly: true,
|
|
808
|
+
type: {
|
|
809
|
+
name: "String"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
error: {
|
|
813
|
+
serializedName: "error",
|
|
814
|
+
type: {
|
|
815
|
+
name: "Composite",
|
|
816
|
+
className: "ErrorDetail"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
const UpdateStageStatus = {
|
|
823
|
+
type: {
|
|
824
|
+
name: "Composite",
|
|
825
|
+
className: "UpdateStageStatus",
|
|
826
|
+
modelProperties: {
|
|
827
|
+
status: {
|
|
828
|
+
serializedName: "status",
|
|
829
|
+
type: {
|
|
830
|
+
name: "Composite",
|
|
831
|
+
className: "UpdateStatus"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
name: {
|
|
835
|
+
serializedName: "name",
|
|
836
|
+
readOnly: true,
|
|
837
|
+
type: {
|
|
838
|
+
name: "String"
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
groups: {
|
|
842
|
+
serializedName: "groups",
|
|
843
|
+
readOnly: true,
|
|
844
|
+
type: {
|
|
845
|
+
name: "Sequence",
|
|
846
|
+
element: {
|
|
847
|
+
type: {
|
|
848
|
+
name: "Composite",
|
|
849
|
+
className: "UpdateGroupStatus"
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
afterStageWaitStatus: {
|
|
855
|
+
serializedName: "afterStageWaitStatus",
|
|
856
|
+
type: {
|
|
857
|
+
name: "Composite",
|
|
858
|
+
className: "WaitStatus"
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
const UpdateGroupStatus = {
|
|
865
|
+
type: {
|
|
866
|
+
name: "Composite",
|
|
867
|
+
className: "UpdateGroupStatus",
|
|
868
|
+
modelProperties: {
|
|
869
|
+
status: {
|
|
870
|
+
serializedName: "status",
|
|
871
|
+
type: {
|
|
872
|
+
name: "Composite",
|
|
873
|
+
className: "UpdateStatus"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
name: {
|
|
877
|
+
serializedName: "name",
|
|
878
|
+
readOnly: true,
|
|
879
|
+
type: {
|
|
880
|
+
name: "String"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
members: {
|
|
884
|
+
serializedName: "members",
|
|
885
|
+
readOnly: true,
|
|
886
|
+
type: {
|
|
887
|
+
name: "Sequence",
|
|
888
|
+
element: {
|
|
889
|
+
type: {
|
|
890
|
+
name: "Composite",
|
|
891
|
+
className: "MemberUpdateStatus"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
const MemberUpdateStatus = {
|
|
900
|
+
type: {
|
|
901
|
+
name: "Composite",
|
|
902
|
+
className: "MemberUpdateStatus",
|
|
903
|
+
modelProperties: {
|
|
904
|
+
status: {
|
|
905
|
+
serializedName: "status",
|
|
906
|
+
type: {
|
|
907
|
+
name: "Composite",
|
|
908
|
+
className: "UpdateStatus"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
name: {
|
|
912
|
+
serializedName: "name",
|
|
913
|
+
readOnly: true,
|
|
914
|
+
type: {
|
|
915
|
+
name: "String"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
clusterResourceId: {
|
|
919
|
+
serializedName: "clusterResourceId",
|
|
920
|
+
readOnly: true,
|
|
921
|
+
type: {
|
|
922
|
+
name: "String"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
operationId: {
|
|
926
|
+
serializedName: "operationId",
|
|
927
|
+
readOnly: true,
|
|
928
|
+
type: {
|
|
929
|
+
name: "String"
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
const WaitStatus = {
|
|
936
|
+
type: {
|
|
937
|
+
name: "Composite",
|
|
938
|
+
className: "WaitStatus",
|
|
939
|
+
modelProperties: {
|
|
940
|
+
status: {
|
|
941
|
+
serializedName: "status",
|
|
942
|
+
type: {
|
|
943
|
+
name: "Composite",
|
|
944
|
+
className: "UpdateStatus"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
waitDurationInSeconds: {
|
|
948
|
+
serializedName: "waitDurationInSeconds",
|
|
949
|
+
readOnly: true,
|
|
950
|
+
type: {
|
|
951
|
+
name: "Number"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
const TrackedResource = {
|
|
958
|
+
type: {
|
|
959
|
+
name: "Composite",
|
|
960
|
+
className: "TrackedResource",
|
|
961
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
962
|
+
serializedName: "tags",
|
|
963
|
+
type: {
|
|
964
|
+
name: "Dictionary",
|
|
965
|
+
value: { type: { name: "String" } }
|
|
966
|
+
}
|
|
967
|
+
}, location: {
|
|
968
|
+
serializedName: "location",
|
|
969
|
+
required: true,
|
|
970
|
+
type: {
|
|
971
|
+
name: "String"
|
|
972
|
+
}
|
|
973
|
+
} })
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
const ProxyResource = {
|
|
977
|
+
type: {
|
|
978
|
+
name: "Composite",
|
|
979
|
+
className: "ProxyResource",
|
|
980
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
const Fleet = {
|
|
984
|
+
type: {
|
|
985
|
+
name: "Composite",
|
|
986
|
+
className: "Fleet",
|
|
987
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { eTag: {
|
|
988
|
+
serializedName: "eTag",
|
|
989
|
+
readOnly: true,
|
|
990
|
+
type: {
|
|
991
|
+
name: "String"
|
|
992
|
+
}
|
|
993
|
+
}, provisioningState: {
|
|
994
|
+
serializedName: "properties.provisioningState",
|
|
995
|
+
readOnly: true,
|
|
996
|
+
type: {
|
|
997
|
+
name: "String"
|
|
998
|
+
}
|
|
999
|
+
}, hubProfile: {
|
|
1000
|
+
serializedName: "properties.hubProfile",
|
|
1001
|
+
type: {
|
|
1002
|
+
name: "Composite",
|
|
1003
|
+
className: "FleetHubProfile"
|
|
1004
|
+
}
|
|
1005
|
+
} })
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
const FleetMember = {
|
|
1009
|
+
type: {
|
|
1010
|
+
name: "Composite",
|
|
1011
|
+
className: "FleetMember",
|
|
1012
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { eTag: {
|
|
1013
|
+
serializedName: "eTag",
|
|
1014
|
+
readOnly: true,
|
|
1015
|
+
type: {
|
|
1016
|
+
name: "String"
|
|
1017
|
+
}
|
|
1018
|
+
}, clusterResourceId: {
|
|
1019
|
+
serializedName: "properties.clusterResourceId",
|
|
1020
|
+
type: {
|
|
1021
|
+
name: "String"
|
|
1022
|
+
}
|
|
1023
|
+
}, group: {
|
|
1024
|
+
constraints: {
|
|
1025
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
1026
|
+
MaxLength: 50,
|
|
1027
|
+
MinLength: 1
|
|
1028
|
+
},
|
|
1029
|
+
serializedName: "properties.group",
|
|
1030
|
+
type: {
|
|
1031
|
+
name: "String"
|
|
1032
|
+
}
|
|
1033
|
+
}, provisioningState: {
|
|
1034
|
+
serializedName: "properties.provisioningState",
|
|
1035
|
+
readOnly: true,
|
|
1036
|
+
type: {
|
|
1037
|
+
name: "String"
|
|
1038
|
+
}
|
|
1039
|
+
} })
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
const UpdateRun = {
|
|
1043
|
+
type: {
|
|
1044
|
+
name: "Composite",
|
|
1045
|
+
className: "UpdateRun",
|
|
1046
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { eTag: {
|
|
1047
|
+
serializedName: "eTag",
|
|
1048
|
+
readOnly: true,
|
|
1049
|
+
type: {
|
|
1050
|
+
name: "String"
|
|
1051
|
+
}
|
|
1052
|
+
}, provisioningState: {
|
|
1053
|
+
serializedName: "properties.provisioningState",
|
|
1054
|
+
readOnly: true,
|
|
1055
|
+
type: {
|
|
1056
|
+
name: "String"
|
|
1057
|
+
}
|
|
1058
|
+
}, strategy: {
|
|
1059
|
+
serializedName: "properties.strategy",
|
|
1060
|
+
type: {
|
|
1061
|
+
name: "Composite",
|
|
1062
|
+
className: "UpdateRunStrategy"
|
|
1063
|
+
}
|
|
1064
|
+
}, managedClusterUpdate: {
|
|
1065
|
+
serializedName: "properties.managedClusterUpdate",
|
|
1066
|
+
type: {
|
|
1067
|
+
name: "Composite",
|
|
1068
|
+
className: "ManagedClusterUpdate"
|
|
1069
|
+
}
|
|
1070
|
+
}, status: {
|
|
1071
|
+
serializedName: "properties.status",
|
|
1072
|
+
type: {
|
|
1073
|
+
name: "Composite",
|
|
1074
|
+
className: "UpdateRunStatus"
|
|
1075
|
+
}
|
|
1076
|
+
} })
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
const FleetsCreateOrUpdateHeaders = {
|
|
1080
|
+
type: {
|
|
1081
|
+
name: "Composite",
|
|
1082
|
+
className: "FleetsCreateOrUpdateHeaders",
|
|
1083
|
+
modelProperties: {
|
|
1084
|
+
retryAfter: {
|
|
1085
|
+
serializedName: "retry-after",
|
|
1086
|
+
type: {
|
|
1087
|
+
name: "Number"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
const FleetsDeleteHeaders = {
|
|
1094
|
+
type: {
|
|
1095
|
+
name: "Composite",
|
|
1096
|
+
className: "FleetsDeleteHeaders",
|
|
1097
|
+
modelProperties: {
|
|
1098
|
+
retryAfter: {
|
|
1099
|
+
serializedName: "retry-after",
|
|
1100
|
+
type: {
|
|
1101
|
+
name: "Number"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
location: {
|
|
1105
|
+
serializedName: "location",
|
|
1106
|
+
type: {
|
|
1107
|
+
name: "String"
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
const FleetMembersCreateHeaders = {
|
|
1114
|
+
type: {
|
|
1115
|
+
name: "Composite",
|
|
1116
|
+
className: "FleetMembersCreateHeaders",
|
|
1117
|
+
modelProperties: {
|
|
1118
|
+
retryAfter: {
|
|
1119
|
+
serializedName: "retry-after",
|
|
1120
|
+
type: {
|
|
1121
|
+
name: "Number"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
const FleetMembersDeleteHeaders = {
|
|
1128
|
+
type: {
|
|
1129
|
+
name: "Composite",
|
|
1130
|
+
className: "FleetMembersDeleteHeaders",
|
|
1131
|
+
modelProperties: {
|
|
1132
|
+
retryAfter: {
|
|
1133
|
+
serializedName: "retry-after",
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "Number"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
location: {
|
|
1139
|
+
serializedName: "location",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "String"
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
const UpdateRunsCreateOrUpdateHeaders = {
|
|
1148
|
+
type: {
|
|
1149
|
+
name: "Composite",
|
|
1150
|
+
className: "UpdateRunsCreateOrUpdateHeaders",
|
|
1151
|
+
modelProperties: {
|
|
1152
|
+
retryAfter: {
|
|
1153
|
+
serializedName: "retry-after",
|
|
1154
|
+
type: {
|
|
1155
|
+
name: "Number"
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
const UpdateRunsDeleteHeaders = {
|
|
1162
|
+
type: {
|
|
1163
|
+
name: "Composite",
|
|
1164
|
+
className: "UpdateRunsDeleteHeaders",
|
|
1165
|
+
modelProperties: {
|
|
1166
|
+
retryAfter: {
|
|
1167
|
+
serializedName: "retry-after",
|
|
1168
|
+
type: {
|
|
1169
|
+
name: "Number"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
location: {
|
|
1173
|
+
serializedName: "location",
|
|
1174
|
+
type: {
|
|
1175
|
+
name: "String"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
const UpdateRunsStartHeaders = {
|
|
1182
|
+
type: {
|
|
1183
|
+
name: "Composite",
|
|
1184
|
+
className: "UpdateRunsStartHeaders",
|
|
1185
|
+
modelProperties: {
|
|
1186
|
+
retryAfter: {
|
|
1187
|
+
serializedName: "retry-after",
|
|
1188
|
+
type: {
|
|
1189
|
+
name: "Number"
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
location: {
|
|
1193
|
+
serializedName: "location",
|
|
1194
|
+
type: {
|
|
1195
|
+
name: "String"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
const UpdateRunsStopHeaders = {
|
|
1202
|
+
type: {
|
|
1203
|
+
name: "Composite",
|
|
1204
|
+
className: "UpdateRunsStopHeaders",
|
|
1205
|
+
modelProperties: {
|
|
1206
|
+
retryAfter: {
|
|
1207
|
+
serializedName: "retry-after",
|
|
1208
|
+
type: {
|
|
1209
|
+
name: "Number"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
location: {
|
|
1213
|
+
serializedName: "location",
|
|
1214
|
+
type: {
|
|
1215
|
+
name: "String"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1223
|
+
__proto__: null,
|
|
1224
|
+
OperationListResult: OperationListResult,
|
|
1225
|
+
Operation: Operation,
|
|
1226
|
+
OperationDisplay: OperationDisplay,
|
|
1227
|
+
ErrorResponse: ErrorResponse,
|
|
1228
|
+
ErrorDetail: ErrorDetail,
|
|
1229
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1230
|
+
FleetListResult: FleetListResult,
|
|
1231
|
+
FleetHubProfile: FleetHubProfile,
|
|
1232
|
+
Resource: Resource,
|
|
1233
|
+
SystemData: SystemData,
|
|
1234
|
+
FleetPatch: FleetPatch,
|
|
1235
|
+
FleetCredentialResults: FleetCredentialResults,
|
|
1236
|
+
FleetCredentialResult: FleetCredentialResult,
|
|
1237
|
+
FleetMemberListResult: FleetMemberListResult,
|
|
1238
|
+
FleetMemberUpdate: FleetMemberUpdate,
|
|
1239
|
+
UpdateRunListResult: UpdateRunListResult,
|
|
1240
|
+
UpdateRunStrategy: UpdateRunStrategy,
|
|
1241
|
+
UpdateStage: UpdateStage,
|
|
1242
|
+
UpdateGroup: UpdateGroup,
|
|
1243
|
+
ManagedClusterUpdate: ManagedClusterUpdate,
|
|
1244
|
+
ManagedClusterUpgradeSpec: ManagedClusterUpgradeSpec,
|
|
1245
|
+
UpdateRunStatus: UpdateRunStatus,
|
|
1246
|
+
UpdateStatus: UpdateStatus,
|
|
1247
|
+
UpdateStageStatus: UpdateStageStatus,
|
|
1248
|
+
UpdateGroupStatus: UpdateGroupStatus,
|
|
1249
|
+
MemberUpdateStatus: MemberUpdateStatus,
|
|
1250
|
+
WaitStatus: WaitStatus,
|
|
1251
|
+
TrackedResource: TrackedResource,
|
|
1252
|
+
ProxyResource: ProxyResource,
|
|
1253
|
+
Fleet: Fleet,
|
|
1254
|
+
FleetMember: FleetMember,
|
|
1255
|
+
UpdateRun: UpdateRun,
|
|
1256
|
+
FleetsCreateOrUpdateHeaders: FleetsCreateOrUpdateHeaders,
|
|
1257
|
+
FleetsDeleteHeaders: FleetsDeleteHeaders,
|
|
1258
|
+
FleetMembersCreateHeaders: FleetMembersCreateHeaders,
|
|
1259
|
+
FleetMembersDeleteHeaders: FleetMembersDeleteHeaders,
|
|
1260
|
+
UpdateRunsCreateOrUpdateHeaders: UpdateRunsCreateOrUpdateHeaders,
|
|
1261
|
+
UpdateRunsDeleteHeaders: UpdateRunsDeleteHeaders,
|
|
1262
|
+
UpdateRunsStartHeaders: UpdateRunsStartHeaders,
|
|
1263
|
+
UpdateRunsStopHeaders: UpdateRunsStopHeaders
|
|
1264
|
+
});
|
|
1265
|
+
|
|
1266
|
+
/*
|
|
1267
|
+
* Copyright (c) Microsoft Corporation.
|
|
1268
|
+
* Licensed under the MIT License.
|
|
1269
|
+
*
|
|
1270
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1271
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1272
|
+
*/
|
|
1273
|
+
const accept = {
|
|
1274
|
+
parameterPath: "accept",
|
|
1275
|
+
mapper: {
|
|
1276
|
+
defaultValue: "application/json",
|
|
1277
|
+
isConstant: true,
|
|
1278
|
+
serializedName: "Accept",
|
|
1279
|
+
type: {
|
|
1280
|
+
name: "String"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
const $host = {
|
|
1285
|
+
parameterPath: "$host",
|
|
1286
|
+
mapper: {
|
|
1287
|
+
serializedName: "$host",
|
|
1288
|
+
required: true,
|
|
1289
|
+
type: {
|
|
1290
|
+
name: "String"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
skipEncoding: true
|
|
1294
|
+
};
|
|
1295
|
+
const apiVersion = {
|
|
1296
|
+
parameterPath: "apiVersion",
|
|
1297
|
+
mapper: {
|
|
1298
|
+
defaultValue: "2023-03-15-preview",
|
|
1299
|
+
isConstant: true,
|
|
1300
|
+
serializedName: "api-version",
|
|
1301
|
+
type: {
|
|
1302
|
+
name: "String"
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
const nextLink = {
|
|
1307
|
+
parameterPath: "nextLink",
|
|
1308
|
+
mapper: {
|
|
1309
|
+
serializedName: "nextLink",
|
|
1310
|
+
required: true,
|
|
1311
|
+
type: {
|
|
1312
|
+
name: "String"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
skipEncoding: true
|
|
1316
|
+
};
|
|
1317
|
+
const subscriptionId = {
|
|
1318
|
+
parameterPath: "subscriptionId",
|
|
1319
|
+
mapper: {
|
|
1320
|
+
constraints: {
|
|
1321
|
+
MinLength: 1
|
|
1322
|
+
},
|
|
1323
|
+
serializedName: "subscriptionId",
|
|
1324
|
+
required: true,
|
|
1325
|
+
type: {
|
|
1326
|
+
name: "String"
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
const resourceGroupName = {
|
|
1331
|
+
parameterPath: "resourceGroupName",
|
|
1332
|
+
mapper: {
|
|
1333
|
+
constraints: {
|
|
1334
|
+
MaxLength: 90,
|
|
1335
|
+
MinLength: 1
|
|
1336
|
+
},
|
|
1337
|
+
serializedName: "resourceGroupName",
|
|
1338
|
+
required: true,
|
|
1339
|
+
type: {
|
|
1340
|
+
name: "String"
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
const fleetName = {
|
|
1345
|
+
parameterPath: "fleetName",
|
|
1346
|
+
mapper: {
|
|
1347
|
+
constraints: {
|
|
1348
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
1349
|
+
MaxLength: 63,
|
|
1350
|
+
MinLength: 1
|
|
1351
|
+
},
|
|
1352
|
+
serializedName: "fleetName",
|
|
1353
|
+
required: true,
|
|
1354
|
+
type: {
|
|
1355
|
+
name: "String"
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
const contentType = {
|
|
1360
|
+
parameterPath: ["options", "contentType"],
|
|
1361
|
+
mapper: {
|
|
1362
|
+
defaultValue: "application/json",
|
|
1363
|
+
isConstant: true,
|
|
1364
|
+
serializedName: "Content-Type",
|
|
1365
|
+
type: {
|
|
1366
|
+
name: "String"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
const resource = {
|
|
1371
|
+
parameterPath: "resource",
|
|
1372
|
+
mapper: Fleet
|
|
1373
|
+
};
|
|
1374
|
+
const ifMatch = {
|
|
1375
|
+
parameterPath: ["options", "ifMatch"],
|
|
1376
|
+
mapper: {
|
|
1377
|
+
serializedName: "If-Match",
|
|
1378
|
+
type: {
|
|
1379
|
+
name: "String"
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
const ifNoneMatch = {
|
|
1384
|
+
parameterPath: ["options", "ifNoneMatch"],
|
|
1385
|
+
mapper: {
|
|
1386
|
+
serializedName: "If-None-Match",
|
|
1387
|
+
type: {
|
|
1388
|
+
name: "String"
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
const properties = {
|
|
1393
|
+
parameterPath: "properties",
|
|
1394
|
+
mapper: FleetPatch
|
|
1395
|
+
};
|
|
1396
|
+
const fleetMemberName = {
|
|
1397
|
+
parameterPath: "fleetMemberName",
|
|
1398
|
+
mapper: {
|
|
1399
|
+
constraints: {
|
|
1400
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
1401
|
+
MaxLength: 50,
|
|
1402
|
+
MinLength: 1
|
|
1403
|
+
},
|
|
1404
|
+
serializedName: "fleetMemberName",
|
|
1405
|
+
required: true,
|
|
1406
|
+
type: {
|
|
1407
|
+
name: "String"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
const resource1 = {
|
|
1412
|
+
parameterPath: "resource",
|
|
1413
|
+
mapper: FleetMember
|
|
1414
|
+
};
|
|
1415
|
+
const properties1 = {
|
|
1416
|
+
parameterPath: "properties",
|
|
1417
|
+
mapper: FleetMemberUpdate
|
|
1418
|
+
};
|
|
1419
|
+
const updateRunName = {
|
|
1420
|
+
parameterPath: "updateRunName",
|
|
1421
|
+
mapper: {
|
|
1422
|
+
constraints: {
|
|
1423
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
1424
|
+
MaxLength: 50,
|
|
1425
|
+
MinLength: 1
|
|
1426
|
+
},
|
|
1427
|
+
serializedName: "updateRunName",
|
|
1428
|
+
required: true,
|
|
1429
|
+
type: {
|
|
1430
|
+
name: "String"
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
const resource2 = {
|
|
1435
|
+
parameterPath: "resource",
|
|
1436
|
+
mapper: UpdateRun
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
/*
|
|
1440
|
+
* Copyright (c) Microsoft Corporation.
|
|
1441
|
+
* Licensed under the MIT License.
|
|
1442
|
+
*
|
|
1443
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1444
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1445
|
+
*/
|
|
1446
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1447
|
+
/** Class containing Operations operations. */
|
|
1448
|
+
class OperationsImpl {
|
|
1449
|
+
/**
|
|
1450
|
+
* Initialize a new instance of the class Operations class.
|
|
1451
|
+
* @param client Reference to the service client
|
|
1452
|
+
*/
|
|
1453
|
+
constructor(client) {
|
|
1454
|
+
this.client = client;
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* List the operations for the provider
|
|
1458
|
+
* @param options The options parameters.
|
|
1459
|
+
*/
|
|
1460
|
+
list(options) {
|
|
1461
|
+
const iter = this.listPagingAll(options);
|
|
1462
|
+
return {
|
|
1463
|
+
next() {
|
|
1464
|
+
return iter.next();
|
|
1465
|
+
},
|
|
1466
|
+
[Symbol.asyncIterator]() {
|
|
1467
|
+
return this;
|
|
1468
|
+
},
|
|
1469
|
+
byPage: (settings) => {
|
|
1470
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1471
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1472
|
+
}
|
|
1473
|
+
return this.listPagingPage(options, settings);
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
listPagingPage(options, settings) {
|
|
1478
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1479
|
+
let result;
|
|
1480
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1481
|
+
if (!continuationToken) {
|
|
1482
|
+
result = yield tslib.__await(this._list(options));
|
|
1483
|
+
let page = result.value || [];
|
|
1484
|
+
continuationToken = result.nextLink;
|
|
1485
|
+
setContinuationToken(page, continuationToken);
|
|
1486
|
+
yield yield tslib.__await(page);
|
|
1487
|
+
}
|
|
1488
|
+
while (continuationToken) {
|
|
1489
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1490
|
+
continuationToken = result.nextLink;
|
|
1491
|
+
let page = result.value || [];
|
|
1492
|
+
setContinuationToken(page, continuationToken);
|
|
1493
|
+
yield yield tslib.__await(page);
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
listPagingAll(options) {
|
|
1498
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1499
|
+
var _a, e_1, _b, _c;
|
|
1500
|
+
try {
|
|
1501
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1502
|
+
_c = _f.value;
|
|
1503
|
+
_d = false;
|
|
1504
|
+
try {
|
|
1505
|
+
const page = _c;
|
|
1506
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1507
|
+
}
|
|
1508
|
+
finally {
|
|
1509
|
+
_d = true;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1514
|
+
finally {
|
|
1515
|
+
try {
|
|
1516
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1517
|
+
}
|
|
1518
|
+
finally { if (e_1) throw e_1.error; }
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* List the operations for the provider
|
|
1524
|
+
* @param options The options parameters.
|
|
1525
|
+
*/
|
|
1526
|
+
_list(options) {
|
|
1527
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* ListNext
|
|
1531
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1532
|
+
* @param options The options parameters.
|
|
1533
|
+
*/
|
|
1534
|
+
_listNext(nextLink, options) {
|
|
1535
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
// Operation Specifications
|
|
1539
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1540
|
+
const listOperationSpec = {
|
|
1541
|
+
path: "/providers/Microsoft.ContainerService/operations",
|
|
1542
|
+
httpMethod: "GET",
|
|
1543
|
+
responses: {
|
|
1544
|
+
200: {
|
|
1545
|
+
bodyMapper: OperationListResult
|
|
1546
|
+
},
|
|
1547
|
+
default: {
|
|
1548
|
+
bodyMapper: ErrorResponse
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
queryParameters: [apiVersion],
|
|
1552
|
+
urlParameters: [$host],
|
|
1553
|
+
headerParameters: [accept],
|
|
1554
|
+
serializer: serializer$3
|
|
1555
|
+
};
|
|
1556
|
+
const listNextOperationSpec = {
|
|
1557
|
+
path: "{nextLink}",
|
|
1558
|
+
httpMethod: "GET",
|
|
1559
|
+
responses: {
|
|
1560
|
+
200: {
|
|
1561
|
+
bodyMapper: OperationListResult
|
|
1562
|
+
},
|
|
1563
|
+
default: {
|
|
1564
|
+
bodyMapper: ErrorResponse
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
urlParameters: [$host, nextLink],
|
|
1568
|
+
headerParameters: [accept],
|
|
1569
|
+
serializer: serializer$3
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
/*
|
|
1573
|
+
* Copyright (c) Microsoft Corporation.
|
|
1574
|
+
* Licensed under the MIT License.
|
|
1575
|
+
*
|
|
1576
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1577
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1578
|
+
*/
|
|
1579
|
+
function createLroSpec(inputs) {
|
|
1580
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1581
|
+
return {
|
|
1582
|
+
requestMethod: spec.httpMethod,
|
|
1583
|
+
requestPath: spec.path,
|
|
1584
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1585
|
+
sendPollRequest: (path, options) => {
|
|
1586
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1587
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/*
|
|
1593
|
+
* Copyright (c) Microsoft Corporation.
|
|
1594
|
+
* Licensed under the MIT License.
|
|
1595
|
+
*
|
|
1596
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1597
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1598
|
+
*/
|
|
1599
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1600
|
+
/** Class containing Fleets operations. */
|
|
1601
|
+
class FleetsImpl {
|
|
1602
|
+
/**
|
|
1603
|
+
* Initialize a new instance of the class Fleets class.
|
|
1604
|
+
* @param client Reference to the service client
|
|
1605
|
+
*/
|
|
1606
|
+
constructor(client) {
|
|
1607
|
+
this.client = client;
|
|
1608
|
+
}
|
|
1609
|
+
/**
|
|
1610
|
+
* Lists fleets in the specified subscription.
|
|
1611
|
+
* @param options The options parameters.
|
|
1612
|
+
*/
|
|
1613
|
+
listBySubscription(options) {
|
|
1614
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1615
|
+
return {
|
|
1616
|
+
next() {
|
|
1617
|
+
return iter.next();
|
|
1618
|
+
},
|
|
1619
|
+
[Symbol.asyncIterator]() {
|
|
1620
|
+
return this;
|
|
1621
|
+
},
|
|
1622
|
+
byPage: (settings) => {
|
|
1623
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1624
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1625
|
+
}
|
|
1626
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1631
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1632
|
+
let result;
|
|
1633
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1634
|
+
if (!continuationToken) {
|
|
1635
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1636
|
+
let page = result.value || [];
|
|
1637
|
+
continuationToken = result.nextLink;
|
|
1638
|
+
setContinuationToken(page, continuationToken);
|
|
1639
|
+
yield yield tslib.__await(page);
|
|
1640
|
+
}
|
|
1641
|
+
while (continuationToken) {
|
|
1642
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1643
|
+
continuationToken = result.nextLink;
|
|
1644
|
+
let page = result.value || [];
|
|
1645
|
+
setContinuationToken(page, continuationToken);
|
|
1646
|
+
yield yield tslib.__await(page);
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
listBySubscriptionPagingAll(options) {
|
|
1651
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1652
|
+
var _a, e_1, _b, _c;
|
|
1653
|
+
try {
|
|
1654
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1655
|
+
_c = _f.value;
|
|
1656
|
+
_d = false;
|
|
1657
|
+
try {
|
|
1658
|
+
const page = _c;
|
|
1659
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1660
|
+
}
|
|
1661
|
+
finally {
|
|
1662
|
+
_d = true;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1667
|
+
finally {
|
|
1668
|
+
try {
|
|
1669
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1670
|
+
}
|
|
1671
|
+
finally { if (e_1) throw e_1.error; }
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Lists fleets in the specified subscription and resource group.
|
|
1677
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1678
|
+
* @param options The options parameters.
|
|
1679
|
+
*/
|
|
1680
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1681
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1682
|
+
return {
|
|
1683
|
+
next() {
|
|
1684
|
+
return iter.next();
|
|
1685
|
+
},
|
|
1686
|
+
[Symbol.asyncIterator]() {
|
|
1687
|
+
return this;
|
|
1688
|
+
},
|
|
1689
|
+
byPage: (settings) => {
|
|
1690
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1691
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1692
|
+
}
|
|
1693
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1698
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1699
|
+
let result;
|
|
1700
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1701
|
+
if (!continuationToken) {
|
|
1702
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1703
|
+
let page = result.value || [];
|
|
1704
|
+
continuationToken = result.nextLink;
|
|
1705
|
+
setContinuationToken(page, continuationToken);
|
|
1706
|
+
yield yield tslib.__await(page);
|
|
1707
|
+
}
|
|
1708
|
+
while (continuationToken) {
|
|
1709
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1710
|
+
continuationToken = result.nextLink;
|
|
1711
|
+
let page = result.value || [];
|
|
1712
|
+
setContinuationToken(page, continuationToken);
|
|
1713
|
+
yield yield tslib.__await(page);
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1718
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1719
|
+
var _a, e_2, _b, _c;
|
|
1720
|
+
try {
|
|
1721
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1722
|
+
_c = _f.value;
|
|
1723
|
+
_d = false;
|
|
1724
|
+
try {
|
|
1725
|
+
const page = _c;
|
|
1726
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1727
|
+
}
|
|
1728
|
+
finally {
|
|
1729
|
+
_d = true;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1734
|
+
finally {
|
|
1735
|
+
try {
|
|
1736
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1737
|
+
}
|
|
1738
|
+
finally { if (e_2) throw e_2.error; }
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Lists fleets in the specified subscription.
|
|
1744
|
+
* @param options The options parameters.
|
|
1745
|
+
*/
|
|
1746
|
+
_listBySubscription(options) {
|
|
1747
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Lists fleets in the specified subscription and resource group.
|
|
1751
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1752
|
+
* @param options The options parameters.
|
|
1753
|
+
*/
|
|
1754
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1755
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Gets a Fleet.
|
|
1759
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1760
|
+
* @param fleetName The name of the Fleet resource.
|
|
1761
|
+
* @param options The options parameters.
|
|
1762
|
+
*/
|
|
1763
|
+
get(resourceGroupName, fleetName, options) {
|
|
1764
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, options }, getOperationSpec$2);
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Creates or updates a Fleet.
|
|
1768
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1769
|
+
* @param fleetName The name of the Fleet resource.
|
|
1770
|
+
* @param resource Resource create parameters.
|
|
1771
|
+
* @param options The options parameters.
|
|
1772
|
+
*/
|
|
1773
|
+
beginCreateOrUpdate(resourceGroupName, fleetName, resource, options) {
|
|
1774
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1775
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1776
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1777
|
+
});
|
|
1778
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1779
|
+
var _a;
|
|
1780
|
+
let currentRawResponse = undefined;
|
|
1781
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1782
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1783
|
+
currentRawResponse = rawResponse;
|
|
1784
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1785
|
+
};
|
|
1786
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1787
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1788
|
+
return {
|
|
1789
|
+
flatResponse,
|
|
1790
|
+
rawResponse: {
|
|
1791
|
+
statusCode: currentRawResponse.status,
|
|
1792
|
+
body: currentRawResponse.parsedBody,
|
|
1793
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1794
|
+
}
|
|
1795
|
+
};
|
|
1796
|
+
});
|
|
1797
|
+
const lro = createLroSpec({
|
|
1798
|
+
sendOperationFn,
|
|
1799
|
+
args: { resourceGroupName, fleetName, resource, options },
|
|
1800
|
+
spec: createOrUpdateOperationSpec$1
|
|
1801
|
+
});
|
|
1802
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1803
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1804
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1805
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1806
|
+
});
|
|
1807
|
+
yield poller.poll();
|
|
1808
|
+
return poller;
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Creates or updates a Fleet.
|
|
1813
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1814
|
+
* @param fleetName The name of the Fleet resource.
|
|
1815
|
+
* @param resource Resource create parameters.
|
|
1816
|
+
* @param options The options parameters.
|
|
1817
|
+
*/
|
|
1818
|
+
beginCreateOrUpdateAndWait(resourceGroupName, fleetName, resource, options) {
|
|
1819
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1820
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, fleetName, resource, options);
|
|
1821
|
+
return poller.pollUntilDone();
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Update a Fleet
|
|
1826
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1827
|
+
* @param fleetName The name of the Fleet resource.
|
|
1828
|
+
* @param properties The resource properties to be updated.
|
|
1829
|
+
* @param options The options parameters.
|
|
1830
|
+
*/
|
|
1831
|
+
update(resourceGroupName, fleetName, properties, options) {
|
|
1832
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, properties, options }, updateOperationSpec$1);
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* Delete a Fleet
|
|
1836
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1837
|
+
* @param fleetName The name of the Fleet resource.
|
|
1838
|
+
* @param options The options parameters.
|
|
1839
|
+
*/
|
|
1840
|
+
beginDelete(resourceGroupName, fleetName, options) {
|
|
1841
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1842
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1843
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1844
|
+
});
|
|
1845
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1846
|
+
var _a;
|
|
1847
|
+
let currentRawResponse = undefined;
|
|
1848
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1849
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1850
|
+
currentRawResponse = rawResponse;
|
|
1851
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1852
|
+
};
|
|
1853
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1854
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1855
|
+
return {
|
|
1856
|
+
flatResponse,
|
|
1857
|
+
rawResponse: {
|
|
1858
|
+
statusCode: currentRawResponse.status,
|
|
1859
|
+
body: currentRawResponse.parsedBody,
|
|
1860
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1863
|
+
});
|
|
1864
|
+
const lro = createLroSpec({
|
|
1865
|
+
sendOperationFn,
|
|
1866
|
+
args: { resourceGroupName, fleetName, options },
|
|
1867
|
+
spec: deleteOperationSpec$2
|
|
1868
|
+
});
|
|
1869
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1870
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1871
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1872
|
+
resourceLocationConfig: "location"
|
|
1873
|
+
});
|
|
1874
|
+
yield poller.poll();
|
|
1875
|
+
return poller;
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Delete a Fleet
|
|
1880
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1881
|
+
* @param fleetName The name of the Fleet resource.
|
|
1882
|
+
* @param options The options parameters.
|
|
1883
|
+
*/
|
|
1884
|
+
beginDeleteAndWait(resourceGroupName, fleetName, options) {
|
|
1885
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1886
|
+
const poller = yield this.beginDelete(resourceGroupName, fleetName, options);
|
|
1887
|
+
return poller.pollUntilDone();
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* Lists the user credentials of a Fleet.
|
|
1892
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1893
|
+
* @param fleetName The name of the Fleet resource.
|
|
1894
|
+
* @param options The options parameters.
|
|
1895
|
+
*/
|
|
1896
|
+
listCredentials(resourceGroupName, fleetName, options) {
|
|
1897
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, options }, listCredentialsOperationSpec);
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* ListBySubscriptionNext
|
|
1901
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1902
|
+
* @param options The options parameters.
|
|
1903
|
+
*/
|
|
1904
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1905
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* ListByResourceGroupNext
|
|
1909
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1910
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1911
|
+
* @param options The options parameters.
|
|
1912
|
+
*/
|
|
1913
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1914
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
// Operation Specifications
|
|
1918
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1919
|
+
const listBySubscriptionOperationSpec = {
|
|
1920
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets",
|
|
1921
|
+
httpMethod: "GET",
|
|
1922
|
+
responses: {
|
|
1923
|
+
200: {
|
|
1924
|
+
bodyMapper: FleetListResult
|
|
1925
|
+
},
|
|
1926
|
+
default: {
|
|
1927
|
+
bodyMapper: ErrorResponse
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
queryParameters: [apiVersion],
|
|
1931
|
+
urlParameters: [$host, subscriptionId],
|
|
1932
|
+
headerParameters: [accept],
|
|
1933
|
+
serializer: serializer$2
|
|
1934
|
+
};
|
|
1935
|
+
const listByResourceGroupOperationSpec = {
|
|
1936
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets",
|
|
1937
|
+
httpMethod: "GET",
|
|
1938
|
+
responses: {
|
|
1939
|
+
200: {
|
|
1940
|
+
bodyMapper: FleetListResult
|
|
1941
|
+
},
|
|
1942
|
+
default: {
|
|
1943
|
+
bodyMapper: ErrorResponse
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
queryParameters: [apiVersion],
|
|
1947
|
+
urlParameters: [
|
|
1948
|
+
$host,
|
|
1949
|
+
subscriptionId,
|
|
1950
|
+
resourceGroupName
|
|
1951
|
+
],
|
|
1952
|
+
headerParameters: [accept],
|
|
1953
|
+
serializer: serializer$2
|
|
1954
|
+
};
|
|
1955
|
+
const getOperationSpec$2 = {
|
|
1956
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}",
|
|
1957
|
+
httpMethod: "GET",
|
|
1958
|
+
responses: {
|
|
1959
|
+
200: {
|
|
1960
|
+
bodyMapper: Fleet
|
|
1961
|
+
},
|
|
1962
|
+
default: {
|
|
1963
|
+
bodyMapper: ErrorResponse
|
|
1964
|
+
}
|
|
1965
|
+
},
|
|
1966
|
+
queryParameters: [apiVersion],
|
|
1967
|
+
urlParameters: [
|
|
1968
|
+
$host,
|
|
1969
|
+
subscriptionId,
|
|
1970
|
+
resourceGroupName,
|
|
1971
|
+
fleetName
|
|
1972
|
+
],
|
|
1973
|
+
headerParameters: [accept],
|
|
1974
|
+
serializer: serializer$2
|
|
1975
|
+
};
|
|
1976
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1977
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}",
|
|
1978
|
+
httpMethod: "PUT",
|
|
1979
|
+
responses: {
|
|
1980
|
+
200: {
|
|
1981
|
+
bodyMapper: Fleet
|
|
1982
|
+
},
|
|
1983
|
+
201: {
|
|
1984
|
+
bodyMapper: Fleet
|
|
1985
|
+
},
|
|
1986
|
+
202: {
|
|
1987
|
+
bodyMapper: Fleet
|
|
1988
|
+
},
|
|
1989
|
+
204: {
|
|
1990
|
+
bodyMapper: Fleet
|
|
1991
|
+
},
|
|
1992
|
+
default: {
|
|
1993
|
+
bodyMapper: ErrorResponse
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
requestBody: resource,
|
|
1997
|
+
queryParameters: [apiVersion],
|
|
1998
|
+
urlParameters: [
|
|
1999
|
+
$host,
|
|
2000
|
+
subscriptionId,
|
|
2001
|
+
resourceGroupName,
|
|
2002
|
+
fleetName
|
|
2003
|
+
],
|
|
2004
|
+
headerParameters: [
|
|
2005
|
+
accept,
|
|
2006
|
+
contentType,
|
|
2007
|
+
ifMatch,
|
|
2008
|
+
ifNoneMatch
|
|
2009
|
+
],
|
|
2010
|
+
mediaType: "json",
|
|
2011
|
+
serializer: serializer$2
|
|
2012
|
+
};
|
|
2013
|
+
const updateOperationSpec$1 = {
|
|
2014
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}",
|
|
2015
|
+
httpMethod: "PATCH",
|
|
2016
|
+
responses: {
|
|
2017
|
+
200: {
|
|
2018
|
+
bodyMapper: Fleet
|
|
2019
|
+
},
|
|
2020
|
+
default: {
|
|
2021
|
+
bodyMapper: ErrorResponse
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
requestBody: properties,
|
|
2025
|
+
queryParameters: [apiVersion],
|
|
2026
|
+
urlParameters: [
|
|
2027
|
+
$host,
|
|
2028
|
+
subscriptionId,
|
|
2029
|
+
resourceGroupName,
|
|
2030
|
+
fleetName
|
|
2031
|
+
],
|
|
2032
|
+
headerParameters: [
|
|
2033
|
+
accept,
|
|
2034
|
+
contentType,
|
|
2035
|
+
ifMatch
|
|
2036
|
+
],
|
|
2037
|
+
mediaType: "json",
|
|
2038
|
+
serializer: serializer$2
|
|
2039
|
+
};
|
|
2040
|
+
const deleteOperationSpec$2 = {
|
|
2041
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}",
|
|
2042
|
+
httpMethod: "DELETE",
|
|
2043
|
+
responses: {
|
|
2044
|
+
200: {},
|
|
2045
|
+
201: {},
|
|
2046
|
+
202: {},
|
|
2047
|
+
204: {},
|
|
2048
|
+
default: {
|
|
2049
|
+
bodyMapper: ErrorResponse
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
queryParameters: [apiVersion],
|
|
2053
|
+
urlParameters: [
|
|
2054
|
+
$host,
|
|
2055
|
+
subscriptionId,
|
|
2056
|
+
resourceGroupName,
|
|
2057
|
+
fleetName
|
|
2058
|
+
],
|
|
2059
|
+
headerParameters: [accept, ifMatch],
|
|
2060
|
+
serializer: serializer$2
|
|
2061
|
+
};
|
|
2062
|
+
const listCredentialsOperationSpec = {
|
|
2063
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials",
|
|
2064
|
+
httpMethod: "POST",
|
|
2065
|
+
responses: {
|
|
2066
|
+
200: {
|
|
2067
|
+
bodyMapper: FleetCredentialResults
|
|
2068
|
+
},
|
|
2069
|
+
default: {
|
|
2070
|
+
bodyMapper: ErrorResponse
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
queryParameters: [apiVersion],
|
|
2074
|
+
urlParameters: [
|
|
2075
|
+
$host,
|
|
2076
|
+
subscriptionId,
|
|
2077
|
+
resourceGroupName,
|
|
2078
|
+
fleetName
|
|
2079
|
+
],
|
|
2080
|
+
headerParameters: [accept],
|
|
2081
|
+
serializer: serializer$2
|
|
2082
|
+
};
|
|
2083
|
+
const listBySubscriptionNextOperationSpec = {
|
|
2084
|
+
path: "{nextLink}",
|
|
2085
|
+
httpMethod: "GET",
|
|
2086
|
+
responses: {
|
|
2087
|
+
200: {
|
|
2088
|
+
bodyMapper: FleetListResult
|
|
2089
|
+
},
|
|
2090
|
+
default: {
|
|
2091
|
+
bodyMapper: ErrorResponse
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
urlParameters: [
|
|
2095
|
+
$host,
|
|
2096
|
+
nextLink,
|
|
2097
|
+
subscriptionId
|
|
2098
|
+
],
|
|
2099
|
+
headerParameters: [accept],
|
|
2100
|
+
serializer: serializer$2
|
|
2101
|
+
};
|
|
2102
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2103
|
+
path: "{nextLink}",
|
|
2104
|
+
httpMethod: "GET",
|
|
2105
|
+
responses: {
|
|
2106
|
+
200: {
|
|
2107
|
+
bodyMapper: FleetListResult
|
|
2108
|
+
},
|
|
2109
|
+
default: {
|
|
2110
|
+
bodyMapper: ErrorResponse
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
urlParameters: [
|
|
2114
|
+
$host,
|
|
2115
|
+
nextLink,
|
|
2116
|
+
subscriptionId,
|
|
2117
|
+
resourceGroupName
|
|
2118
|
+
],
|
|
2119
|
+
headerParameters: [accept],
|
|
2120
|
+
serializer: serializer$2
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
/*
|
|
2124
|
+
* Copyright (c) Microsoft Corporation.
|
|
2125
|
+
* Licensed under the MIT License.
|
|
2126
|
+
*
|
|
2127
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2128
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2129
|
+
*/
|
|
2130
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2131
|
+
/** Class containing FleetMembers operations. */
|
|
2132
|
+
class FleetMembersImpl {
|
|
2133
|
+
/**
|
|
2134
|
+
* Initialize a new instance of the class FleetMembers class.
|
|
2135
|
+
* @param client Reference to the service client
|
|
2136
|
+
*/
|
|
2137
|
+
constructor(client) {
|
|
2138
|
+
this.client = client;
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* List FleetMember resources by Fleet
|
|
2142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2143
|
+
* @param fleetName The name of the Fleet resource.
|
|
2144
|
+
* @param options The options parameters.
|
|
2145
|
+
*/
|
|
2146
|
+
listByFleet(resourceGroupName, fleetName, options) {
|
|
2147
|
+
const iter = this.listByFleetPagingAll(resourceGroupName, fleetName, options);
|
|
2148
|
+
return {
|
|
2149
|
+
next() {
|
|
2150
|
+
return iter.next();
|
|
2151
|
+
},
|
|
2152
|
+
[Symbol.asyncIterator]() {
|
|
2153
|
+
return this;
|
|
2154
|
+
},
|
|
2155
|
+
byPage: (settings) => {
|
|
2156
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2157
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2158
|
+
}
|
|
2159
|
+
return this.listByFleetPagingPage(resourceGroupName, fleetName, options, settings);
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
listByFleetPagingPage(resourceGroupName, fleetName, options, settings) {
|
|
2164
|
+
return tslib.__asyncGenerator(this, arguments, function* listByFleetPagingPage_1() {
|
|
2165
|
+
let result;
|
|
2166
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2167
|
+
if (!continuationToken) {
|
|
2168
|
+
result = yield tslib.__await(this._listByFleet(resourceGroupName, fleetName, options));
|
|
2169
|
+
let page = result.value || [];
|
|
2170
|
+
continuationToken = result.nextLink;
|
|
2171
|
+
setContinuationToken(page, continuationToken);
|
|
2172
|
+
yield yield tslib.__await(page);
|
|
2173
|
+
}
|
|
2174
|
+
while (continuationToken) {
|
|
2175
|
+
result = yield tslib.__await(this._listByFleetNext(resourceGroupName, fleetName, continuationToken, options));
|
|
2176
|
+
continuationToken = result.nextLink;
|
|
2177
|
+
let page = result.value || [];
|
|
2178
|
+
setContinuationToken(page, continuationToken);
|
|
2179
|
+
yield yield tslib.__await(page);
|
|
2180
|
+
}
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
listByFleetPagingAll(resourceGroupName, fleetName, options) {
|
|
2184
|
+
return tslib.__asyncGenerator(this, arguments, function* listByFleetPagingAll_1() {
|
|
2185
|
+
var _a, e_1, _b, _c;
|
|
2186
|
+
try {
|
|
2187
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByFleetPagingPage(resourceGroupName, fleetName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2188
|
+
_c = _f.value;
|
|
2189
|
+
_d = false;
|
|
2190
|
+
try {
|
|
2191
|
+
const page = _c;
|
|
2192
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2193
|
+
}
|
|
2194
|
+
finally {
|
|
2195
|
+
_d = true;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2200
|
+
finally {
|
|
2201
|
+
try {
|
|
2202
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2203
|
+
}
|
|
2204
|
+
finally { if (e_1) throw e_1.error; }
|
|
2205
|
+
}
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* List FleetMember resources by Fleet
|
|
2210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2211
|
+
* @param fleetName The name of the Fleet resource.
|
|
2212
|
+
* @param options The options parameters.
|
|
2213
|
+
*/
|
|
2214
|
+
_listByFleet(resourceGroupName, fleetName, options) {
|
|
2215
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, options }, listByFleetOperationSpec$1);
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* Get a FleetMember
|
|
2219
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2220
|
+
* @param fleetName The name of the Fleet resource.
|
|
2221
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2222
|
+
* @param options The options parameters.
|
|
2223
|
+
*/
|
|
2224
|
+
get(resourceGroupName, fleetName, fleetMemberName, options) {
|
|
2225
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, fleetMemberName, options }, getOperationSpec$1);
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* Create a FleetMember
|
|
2229
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2230
|
+
* @param fleetName The name of the Fleet resource.
|
|
2231
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2232
|
+
* @param resource Resource create parameters.
|
|
2233
|
+
* @param options The options parameters.
|
|
2234
|
+
*/
|
|
2235
|
+
beginCreate(resourceGroupName, fleetName, fleetMemberName, resource, options) {
|
|
2236
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2237
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2238
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2239
|
+
});
|
|
2240
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2241
|
+
var _a;
|
|
2242
|
+
let currentRawResponse = undefined;
|
|
2243
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2244
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2245
|
+
currentRawResponse = rawResponse;
|
|
2246
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2247
|
+
};
|
|
2248
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2249
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2250
|
+
return {
|
|
2251
|
+
flatResponse,
|
|
2252
|
+
rawResponse: {
|
|
2253
|
+
statusCode: currentRawResponse.status,
|
|
2254
|
+
body: currentRawResponse.parsedBody,
|
|
2255
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
});
|
|
2259
|
+
const lro = createLroSpec({
|
|
2260
|
+
sendOperationFn,
|
|
2261
|
+
args: {
|
|
2262
|
+
resourceGroupName,
|
|
2263
|
+
fleetName,
|
|
2264
|
+
fleetMemberName,
|
|
2265
|
+
resource,
|
|
2266
|
+
options
|
|
2267
|
+
},
|
|
2268
|
+
spec: createOperationSpec
|
|
2269
|
+
});
|
|
2270
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2271
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2272
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2273
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2274
|
+
});
|
|
2275
|
+
yield poller.poll();
|
|
2276
|
+
return poller;
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* Create a FleetMember
|
|
2281
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2282
|
+
* @param fleetName The name of the Fleet resource.
|
|
2283
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2284
|
+
* @param resource Resource create parameters.
|
|
2285
|
+
* @param options The options parameters.
|
|
2286
|
+
*/
|
|
2287
|
+
beginCreateAndWait(resourceGroupName, fleetName, fleetMemberName, resource, options) {
|
|
2288
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2289
|
+
const poller = yield this.beginCreate(resourceGroupName, fleetName, fleetMemberName, resource, options);
|
|
2290
|
+
return poller.pollUntilDone();
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
/**
|
|
2294
|
+
* Update a FleetMember
|
|
2295
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2296
|
+
* @param fleetName The name of the Fleet resource.
|
|
2297
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2298
|
+
* @param properties The resource properties to be updated.
|
|
2299
|
+
* @param options The options parameters.
|
|
2300
|
+
*/
|
|
2301
|
+
update(resourceGroupName, fleetName, fleetMemberName, properties, options) {
|
|
2302
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, fleetMemberName, properties, options }, updateOperationSpec);
|
|
2303
|
+
}
|
|
2304
|
+
/**
|
|
2305
|
+
* Delete a FleetMember
|
|
2306
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2307
|
+
* @param fleetName The name of the Fleet resource.
|
|
2308
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2309
|
+
* @param options The options parameters.
|
|
2310
|
+
*/
|
|
2311
|
+
beginDelete(resourceGroupName, fleetName, fleetMemberName, options) {
|
|
2312
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2313
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2314
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2315
|
+
});
|
|
2316
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2317
|
+
var _a;
|
|
2318
|
+
let currentRawResponse = undefined;
|
|
2319
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2320
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2321
|
+
currentRawResponse = rawResponse;
|
|
2322
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2323
|
+
};
|
|
2324
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2325
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2326
|
+
return {
|
|
2327
|
+
flatResponse,
|
|
2328
|
+
rawResponse: {
|
|
2329
|
+
statusCode: currentRawResponse.status,
|
|
2330
|
+
body: currentRawResponse.parsedBody,
|
|
2331
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
});
|
|
2335
|
+
const lro = createLroSpec({
|
|
2336
|
+
sendOperationFn,
|
|
2337
|
+
args: { resourceGroupName, fleetName, fleetMemberName, options },
|
|
2338
|
+
spec: deleteOperationSpec$1
|
|
2339
|
+
});
|
|
2340
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2341
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2342
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2343
|
+
resourceLocationConfig: "location"
|
|
2344
|
+
});
|
|
2345
|
+
yield poller.poll();
|
|
2346
|
+
return poller;
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* Delete a FleetMember
|
|
2351
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2352
|
+
* @param fleetName The name of the Fleet resource.
|
|
2353
|
+
* @param fleetMemberName The name of the Fleet member resource.
|
|
2354
|
+
* @param options The options parameters.
|
|
2355
|
+
*/
|
|
2356
|
+
beginDeleteAndWait(resourceGroupName, fleetName, fleetMemberName, options) {
|
|
2357
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2358
|
+
const poller = yield this.beginDelete(resourceGroupName, fleetName, fleetMemberName, options);
|
|
2359
|
+
return poller.pollUntilDone();
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* ListByFleetNext
|
|
2364
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2365
|
+
* @param fleetName The name of the Fleet resource.
|
|
2366
|
+
* @param nextLink The nextLink from the previous successful call to the ListByFleet method.
|
|
2367
|
+
* @param options The options parameters.
|
|
2368
|
+
*/
|
|
2369
|
+
_listByFleetNext(resourceGroupName, fleetName, nextLink, options) {
|
|
2370
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, nextLink, options }, listByFleetNextOperationSpec$1);
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
// Operation Specifications
|
|
2374
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2375
|
+
const listByFleetOperationSpec$1 = {
|
|
2376
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members",
|
|
2377
|
+
httpMethod: "GET",
|
|
2378
|
+
responses: {
|
|
2379
|
+
200: {
|
|
2380
|
+
bodyMapper: FleetMemberListResult
|
|
2381
|
+
},
|
|
2382
|
+
default: {
|
|
2383
|
+
bodyMapper: ErrorResponse
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
queryParameters: [apiVersion],
|
|
2387
|
+
urlParameters: [
|
|
2388
|
+
$host,
|
|
2389
|
+
subscriptionId,
|
|
2390
|
+
resourceGroupName,
|
|
2391
|
+
fleetName
|
|
2392
|
+
],
|
|
2393
|
+
headerParameters: [accept],
|
|
2394
|
+
serializer: serializer$1
|
|
2395
|
+
};
|
|
2396
|
+
const getOperationSpec$1 = {
|
|
2397
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}",
|
|
2398
|
+
httpMethod: "GET",
|
|
2399
|
+
responses: {
|
|
2400
|
+
200: {
|
|
2401
|
+
bodyMapper: FleetMember
|
|
2402
|
+
},
|
|
2403
|
+
default: {
|
|
2404
|
+
bodyMapper: ErrorResponse
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
queryParameters: [apiVersion],
|
|
2408
|
+
urlParameters: [
|
|
2409
|
+
$host,
|
|
2410
|
+
subscriptionId,
|
|
2411
|
+
resourceGroupName,
|
|
2412
|
+
fleetName,
|
|
2413
|
+
fleetMemberName
|
|
2414
|
+
],
|
|
2415
|
+
headerParameters: [accept],
|
|
2416
|
+
serializer: serializer$1
|
|
2417
|
+
};
|
|
2418
|
+
const createOperationSpec = {
|
|
2419
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}",
|
|
2420
|
+
httpMethod: "PUT",
|
|
2421
|
+
responses: {
|
|
2422
|
+
200: {
|
|
2423
|
+
bodyMapper: FleetMember
|
|
2424
|
+
},
|
|
2425
|
+
201: {
|
|
2426
|
+
bodyMapper: FleetMember
|
|
2427
|
+
},
|
|
2428
|
+
202: {
|
|
2429
|
+
bodyMapper: FleetMember
|
|
2430
|
+
},
|
|
2431
|
+
204: {
|
|
2432
|
+
bodyMapper: FleetMember
|
|
2433
|
+
},
|
|
2434
|
+
default: {
|
|
2435
|
+
bodyMapper: ErrorResponse
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
requestBody: resource1,
|
|
2439
|
+
queryParameters: [apiVersion],
|
|
2440
|
+
urlParameters: [
|
|
2441
|
+
$host,
|
|
2442
|
+
subscriptionId,
|
|
2443
|
+
resourceGroupName,
|
|
2444
|
+
fleetName,
|
|
2445
|
+
fleetMemberName
|
|
2446
|
+
],
|
|
2447
|
+
headerParameters: [
|
|
2448
|
+
accept,
|
|
2449
|
+
contentType,
|
|
2450
|
+
ifMatch,
|
|
2451
|
+
ifNoneMatch
|
|
2452
|
+
],
|
|
2453
|
+
mediaType: "json",
|
|
2454
|
+
serializer: serializer$1
|
|
2455
|
+
};
|
|
2456
|
+
const updateOperationSpec = {
|
|
2457
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}",
|
|
2458
|
+
httpMethod: "PATCH",
|
|
2459
|
+
responses: {
|
|
2460
|
+
200: {
|
|
2461
|
+
bodyMapper: FleetMember
|
|
2462
|
+
},
|
|
2463
|
+
default: {
|
|
2464
|
+
bodyMapper: ErrorResponse
|
|
2465
|
+
}
|
|
2466
|
+
},
|
|
2467
|
+
requestBody: properties1,
|
|
2468
|
+
queryParameters: [apiVersion],
|
|
2469
|
+
urlParameters: [
|
|
2470
|
+
$host,
|
|
2471
|
+
subscriptionId,
|
|
2472
|
+
resourceGroupName,
|
|
2473
|
+
fleetName,
|
|
2474
|
+
fleetMemberName
|
|
2475
|
+
],
|
|
2476
|
+
headerParameters: [
|
|
2477
|
+
accept,
|
|
2478
|
+
contentType,
|
|
2479
|
+
ifMatch
|
|
2480
|
+
],
|
|
2481
|
+
mediaType: "json",
|
|
2482
|
+
serializer: serializer$1
|
|
2483
|
+
};
|
|
2484
|
+
const deleteOperationSpec$1 = {
|
|
2485
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}",
|
|
2486
|
+
httpMethod: "DELETE",
|
|
2487
|
+
responses: {
|
|
2488
|
+
200: {},
|
|
2489
|
+
201: {},
|
|
2490
|
+
202: {},
|
|
2491
|
+
204: {},
|
|
2492
|
+
default: {
|
|
2493
|
+
bodyMapper: ErrorResponse
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
queryParameters: [apiVersion],
|
|
2497
|
+
urlParameters: [
|
|
2498
|
+
$host,
|
|
2499
|
+
subscriptionId,
|
|
2500
|
+
resourceGroupName,
|
|
2501
|
+
fleetName,
|
|
2502
|
+
fleetMemberName
|
|
2503
|
+
],
|
|
2504
|
+
headerParameters: [accept, ifMatch],
|
|
2505
|
+
serializer: serializer$1
|
|
2506
|
+
};
|
|
2507
|
+
const listByFleetNextOperationSpec$1 = {
|
|
2508
|
+
path: "{nextLink}",
|
|
2509
|
+
httpMethod: "GET",
|
|
2510
|
+
responses: {
|
|
2511
|
+
200: {
|
|
2512
|
+
bodyMapper: FleetMemberListResult
|
|
2513
|
+
},
|
|
2514
|
+
default: {
|
|
2515
|
+
bodyMapper: ErrorResponse
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2518
|
+
urlParameters: [
|
|
2519
|
+
$host,
|
|
2520
|
+
nextLink,
|
|
2521
|
+
subscriptionId,
|
|
2522
|
+
resourceGroupName,
|
|
2523
|
+
fleetName
|
|
2524
|
+
],
|
|
2525
|
+
headerParameters: [accept],
|
|
2526
|
+
serializer: serializer$1
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
/*
|
|
2530
|
+
* Copyright (c) Microsoft Corporation.
|
|
2531
|
+
* Licensed under the MIT License.
|
|
2532
|
+
*
|
|
2533
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2534
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2535
|
+
*/
|
|
2536
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2537
|
+
/** Class containing UpdateRuns operations. */
|
|
2538
|
+
class UpdateRunsImpl {
|
|
2539
|
+
/**
|
|
2540
|
+
* Initialize a new instance of the class UpdateRuns class.
|
|
2541
|
+
* @param client Reference to the service client
|
|
2542
|
+
*/
|
|
2543
|
+
constructor(client) {
|
|
2544
|
+
this.client = client;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* List UpdateRun resources by Fleet
|
|
2548
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2549
|
+
* @param fleetName The name of the Fleet resource.
|
|
2550
|
+
* @param options The options parameters.
|
|
2551
|
+
*/
|
|
2552
|
+
listByFleet(resourceGroupName, fleetName, options) {
|
|
2553
|
+
const iter = this.listByFleetPagingAll(resourceGroupName, fleetName, options);
|
|
2554
|
+
return {
|
|
2555
|
+
next() {
|
|
2556
|
+
return iter.next();
|
|
2557
|
+
},
|
|
2558
|
+
[Symbol.asyncIterator]() {
|
|
2559
|
+
return this;
|
|
2560
|
+
},
|
|
2561
|
+
byPage: (settings) => {
|
|
2562
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2563
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2564
|
+
}
|
|
2565
|
+
return this.listByFleetPagingPage(resourceGroupName, fleetName, options, settings);
|
|
2566
|
+
}
|
|
2567
|
+
};
|
|
2568
|
+
}
|
|
2569
|
+
listByFleetPagingPage(resourceGroupName, fleetName, options, settings) {
|
|
2570
|
+
return tslib.__asyncGenerator(this, arguments, function* listByFleetPagingPage_1() {
|
|
2571
|
+
let result;
|
|
2572
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2573
|
+
if (!continuationToken) {
|
|
2574
|
+
result = yield tslib.__await(this._listByFleet(resourceGroupName, fleetName, options));
|
|
2575
|
+
let page = result.value || [];
|
|
2576
|
+
continuationToken = result.nextLink;
|
|
2577
|
+
setContinuationToken(page, continuationToken);
|
|
2578
|
+
yield yield tslib.__await(page);
|
|
2579
|
+
}
|
|
2580
|
+
while (continuationToken) {
|
|
2581
|
+
result = yield tslib.__await(this._listByFleetNext(resourceGroupName, fleetName, continuationToken, options));
|
|
2582
|
+
continuationToken = result.nextLink;
|
|
2583
|
+
let page = result.value || [];
|
|
2584
|
+
setContinuationToken(page, continuationToken);
|
|
2585
|
+
yield yield tslib.__await(page);
|
|
2586
|
+
}
|
|
2587
|
+
});
|
|
2588
|
+
}
|
|
2589
|
+
listByFleetPagingAll(resourceGroupName, fleetName, options) {
|
|
2590
|
+
return tslib.__asyncGenerator(this, arguments, function* listByFleetPagingAll_1() {
|
|
2591
|
+
var _a, e_1, _b, _c;
|
|
2592
|
+
try {
|
|
2593
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByFleetPagingPage(resourceGroupName, fleetName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2594
|
+
_c = _f.value;
|
|
2595
|
+
_d = false;
|
|
2596
|
+
try {
|
|
2597
|
+
const page = _c;
|
|
2598
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2599
|
+
}
|
|
2600
|
+
finally {
|
|
2601
|
+
_d = true;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2606
|
+
finally {
|
|
2607
|
+
try {
|
|
2608
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2609
|
+
}
|
|
2610
|
+
finally { if (e_1) throw e_1.error; }
|
|
2611
|
+
}
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
/**
|
|
2615
|
+
* List UpdateRun resources by Fleet
|
|
2616
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2617
|
+
* @param fleetName The name of the Fleet resource.
|
|
2618
|
+
* @param options The options parameters.
|
|
2619
|
+
*/
|
|
2620
|
+
_listByFleet(resourceGroupName, fleetName, options) {
|
|
2621
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, options }, listByFleetOperationSpec);
|
|
2622
|
+
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Get a UpdateRun
|
|
2625
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2626
|
+
* @param fleetName The name of the Fleet resource.
|
|
2627
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2628
|
+
* @param options The options parameters.
|
|
2629
|
+
*/
|
|
2630
|
+
get(resourceGroupName, fleetName, updateRunName, options) {
|
|
2631
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, updateRunName, options }, getOperationSpec);
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Create a UpdateRun
|
|
2635
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2636
|
+
* @param fleetName The name of the Fleet resource.
|
|
2637
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2638
|
+
* @param resource Resource create parameters.
|
|
2639
|
+
* @param options The options parameters.
|
|
2640
|
+
*/
|
|
2641
|
+
beginCreateOrUpdate(resourceGroupName, fleetName, updateRunName, resource, options) {
|
|
2642
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2643
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2644
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2645
|
+
});
|
|
2646
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2647
|
+
var _a;
|
|
2648
|
+
let currentRawResponse = undefined;
|
|
2649
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2650
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2651
|
+
currentRawResponse = rawResponse;
|
|
2652
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2653
|
+
};
|
|
2654
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2655
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2656
|
+
return {
|
|
2657
|
+
flatResponse,
|
|
2658
|
+
rawResponse: {
|
|
2659
|
+
statusCode: currentRawResponse.status,
|
|
2660
|
+
body: currentRawResponse.parsedBody,
|
|
2661
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2662
|
+
}
|
|
2663
|
+
};
|
|
2664
|
+
});
|
|
2665
|
+
const lro = createLroSpec({
|
|
2666
|
+
sendOperationFn,
|
|
2667
|
+
args: { resourceGroupName, fleetName, updateRunName, resource, options },
|
|
2668
|
+
spec: createOrUpdateOperationSpec
|
|
2669
|
+
});
|
|
2670
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2671
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2672
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2673
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2674
|
+
});
|
|
2675
|
+
yield poller.poll();
|
|
2676
|
+
return poller;
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Create a UpdateRun
|
|
2681
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2682
|
+
* @param fleetName The name of the Fleet resource.
|
|
2683
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2684
|
+
* @param resource Resource create parameters.
|
|
2685
|
+
* @param options The options parameters.
|
|
2686
|
+
*/
|
|
2687
|
+
beginCreateOrUpdateAndWait(resourceGroupName, fleetName, updateRunName, resource, options) {
|
|
2688
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2689
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, fleetName, updateRunName, resource, options);
|
|
2690
|
+
return poller.pollUntilDone();
|
|
2691
|
+
});
|
|
2692
|
+
}
|
|
2693
|
+
/**
|
|
2694
|
+
* Delete a UpdateRun
|
|
2695
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2696
|
+
* @param fleetName The name of the Fleet resource.
|
|
2697
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2698
|
+
* @param options The options parameters.
|
|
2699
|
+
*/
|
|
2700
|
+
beginDelete(resourceGroupName, fleetName, updateRunName, options) {
|
|
2701
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2702
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2703
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2704
|
+
});
|
|
2705
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2706
|
+
var _a;
|
|
2707
|
+
let currentRawResponse = undefined;
|
|
2708
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2709
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2710
|
+
currentRawResponse = rawResponse;
|
|
2711
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2712
|
+
};
|
|
2713
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2714
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2715
|
+
return {
|
|
2716
|
+
flatResponse,
|
|
2717
|
+
rawResponse: {
|
|
2718
|
+
statusCode: currentRawResponse.status,
|
|
2719
|
+
body: currentRawResponse.parsedBody,
|
|
2720
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2721
|
+
}
|
|
2722
|
+
};
|
|
2723
|
+
});
|
|
2724
|
+
const lro = createLroSpec({
|
|
2725
|
+
sendOperationFn,
|
|
2726
|
+
args: { resourceGroupName, fleetName, updateRunName, options },
|
|
2727
|
+
spec: deleteOperationSpec
|
|
2728
|
+
});
|
|
2729
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2730
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2731
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2732
|
+
resourceLocationConfig: "location"
|
|
2733
|
+
});
|
|
2734
|
+
yield poller.poll();
|
|
2735
|
+
return poller;
|
|
2736
|
+
});
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Delete a UpdateRun
|
|
2740
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2741
|
+
* @param fleetName The name of the Fleet resource.
|
|
2742
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2743
|
+
* @param options The options parameters.
|
|
2744
|
+
*/
|
|
2745
|
+
beginDeleteAndWait(resourceGroupName, fleetName, updateRunName, options) {
|
|
2746
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2747
|
+
const poller = yield this.beginDelete(resourceGroupName, fleetName, updateRunName, options);
|
|
2748
|
+
return poller.pollUntilDone();
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* Starts an UpdateRun.
|
|
2753
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2754
|
+
* @param fleetName The name of the Fleet resource.
|
|
2755
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2756
|
+
* @param options The options parameters.
|
|
2757
|
+
*/
|
|
2758
|
+
beginStart(resourceGroupName, fleetName, updateRunName, options) {
|
|
2759
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2760
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2761
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2762
|
+
});
|
|
2763
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2764
|
+
var _a;
|
|
2765
|
+
let currentRawResponse = undefined;
|
|
2766
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2767
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2768
|
+
currentRawResponse = rawResponse;
|
|
2769
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2770
|
+
};
|
|
2771
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2772
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2773
|
+
return {
|
|
2774
|
+
flatResponse,
|
|
2775
|
+
rawResponse: {
|
|
2776
|
+
statusCode: currentRawResponse.status,
|
|
2777
|
+
body: currentRawResponse.parsedBody,
|
|
2778
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2779
|
+
}
|
|
2780
|
+
};
|
|
2781
|
+
});
|
|
2782
|
+
const lro = createLroSpec({
|
|
2783
|
+
sendOperationFn,
|
|
2784
|
+
args: { resourceGroupName, fleetName, updateRunName, options },
|
|
2785
|
+
spec: startOperationSpec
|
|
2786
|
+
});
|
|
2787
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2788
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2789
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2790
|
+
resourceLocationConfig: "location"
|
|
2791
|
+
});
|
|
2792
|
+
yield poller.poll();
|
|
2793
|
+
return poller;
|
|
2794
|
+
});
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Starts an UpdateRun.
|
|
2798
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2799
|
+
* @param fleetName The name of the Fleet resource.
|
|
2800
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2801
|
+
* @param options The options parameters.
|
|
2802
|
+
*/
|
|
2803
|
+
beginStartAndWait(resourceGroupName, fleetName, updateRunName, options) {
|
|
2804
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2805
|
+
const poller = yield this.beginStart(resourceGroupName, fleetName, updateRunName, options);
|
|
2806
|
+
return poller.pollUntilDone();
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Stops an UpdateRun.
|
|
2811
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2812
|
+
* @param fleetName The name of the Fleet resource.
|
|
2813
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2814
|
+
* @param options The options parameters.
|
|
2815
|
+
*/
|
|
2816
|
+
beginStop(resourceGroupName, fleetName, updateRunName, options) {
|
|
2817
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2818
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2819
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2820
|
+
});
|
|
2821
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2822
|
+
var _a;
|
|
2823
|
+
let currentRawResponse = undefined;
|
|
2824
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2825
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2826
|
+
currentRawResponse = rawResponse;
|
|
2827
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2828
|
+
};
|
|
2829
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2830
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2831
|
+
return {
|
|
2832
|
+
flatResponse,
|
|
2833
|
+
rawResponse: {
|
|
2834
|
+
statusCode: currentRawResponse.status,
|
|
2835
|
+
body: currentRawResponse.parsedBody,
|
|
2836
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2837
|
+
}
|
|
2838
|
+
};
|
|
2839
|
+
});
|
|
2840
|
+
const lro = createLroSpec({
|
|
2841
|
+
sendOperationFn,
|
|
2842
|
+
args: { resourceGroupName, fleetName, updateRunName, options },
|
|
2843
|
+
spec: stopOperationSpec
|
|
2844
|
+
});
|
|
2845
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2846
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2847
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2848
|
+
resourceLocationConfig: "location"
|
|
2849
|
+
});
|
|
2850
|
+
yield poller.poll();
|
|
2851
|
+
return poller;
|
|
2852
|
+
});
|
|
2853
|
+
}
|
|
2854
|
+
/**
|
|
2855
|
+
* Stops an UpdateRun.
|
|
2856
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2857
|
+
* @param fleetName The name of the Fleet resource.
|
|
2858
|
+
* @param updateRunName The name of the UpdateRun resource.
|
|
2859
|
+
* @param options The options parameters.
|
|
2860
|
+
*/
|
|
2861
|
+
beginStopAndWait(resourceGroupName, fleetName, updateRunName, options) {
|
|
2862
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2863
|
+
const poller = yield this.beginStop(resourceGroupName, fleetName, updateRunName, options);
|
|
2864
|
+
return poller.pollUntilDone();
|
|
2865
|
+
});
|
|
2866
|
+
}
|
|
2867
|
+
/**
|
|
2868
|
+
* ListByFleetNext
|
|
2869
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2870
|
+
* @param fleetName The name of the Fleet resource.
|
|
2871
|
+
* @param nextLink The nextLink from the previous successful call to the ListByFleet method.
|
|
2872
|
+
* @param options The options parameters.
|
|
2873
|
+
*/
|
|
2874
|
+
_listByFleetNext(resourceGroupName, fleetName, nextLink, options) {
|
|
2875
|
+
return this.client.sendOperationRequest({ resourceGroupName, fleetName, nextLink, options }, listByFleetNextOperationSpec);
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
// Operation Specifications
|
|
2879
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2880
|
+
const listByFleetOperationSpec = {
|
|
2881
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns",
|
|
2882
|
+
httpMethod: "GET",
|
|
2883
|
+
responses: {
|
|
2884
|
+
200: {
|
|
2885
|
+
bodyMapper: UpdateRunListResult
|
|
2886
|
+
},
|
|
2887
|
+
default: {
|
|
2888
|
+
bodyMapper: ErrorResponse
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
queryParameters: [apiVersion],
|
|
2892
|
+
urlParameters: [
|
|
2893
|
+
$host,
|
|
2894
|
+
subscriptionId,
|
|
2895
|
+
resourceGroupName,
|
|
2896
|
+
fleetName
|
|
2897
|
+
],
|
|
2898
|
+
headerParameters: [accept],
|
|
2899
|
+
serializer
|
|
2900
|
+
};
|
|
2901
|
+
const getOperationSpec = {
|
|
2902
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}",
|
|
2903
|
+
httpMethod: "GET",
|
|
2904
|
+
responses: {
|
|
2905
|
+
200: {
|
|
2906
|
+
bodyMapper: UpdateRun
|
|
2907
|
+
},
|
|
2908
|
+
default: {
|
|
2909
|
+
bodyMapper: ErrorResponse
|
|
2910
|
+
}
|
|
2911
|
+
},
|
|
2912
|
+
queryParameters: [apiVersion],
|
|
2913
|
+
urlParameters: [
|
|
2914
|
+
$host,
|
|
2915
|
+
subscriptionId,
|
|
2916
|
+
resourceGroupName,
|
|
2917
|
+
fleetName,
|
|
2918
|
+
updateRunName
|
|
2919
|
+
],
|
|
2920
|
+
headerParameters: [accept],
|
|
2921
|
+
serializer
|
|
2922
|
+
};
|
|
2923
|
+
const createOrUpdateOperationSpec = {
|
|
2924
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}",
|
|
2925
|
+
httpMethod: "PUT",
|
|
2926
|
+
responses: {
|
|
2927
|
+
200: {
|
|
2928
|
+
bodyMapper: UpdateRun
|
|
2929
|
+
},
|
|
2930
|
+
201: {
|
|
2931
|
+
bodyMapper: UpdateRun
|
|
2932
|
+
},
|
|
2933
|
+
202: {
|
|
2934
|
+
bodyMapper: UpdateRun
|
|
2935
|
+
},
|
|
2936
|
+
204: {
|
|
2937
|
+
bodyMapper: UpdateRun
|
|
2938
|
+
},
|
|
2939
|
+
default: {
|
|
2940
|
+
bodyMapper: ErrorResponse
|
|
2941
|
+
}
|
|
2942
|
+
},
|
|
2943
|
+
requestBody: resource2,
|
|
2944
|
+
queryParameters: [apiVersion],
|
|
2945
|
+
urlParameters: [
|
|
2946
|
+
$host,
|
|
2947
|
+
subscriptionId,
|
|
2948
|
+
resourceGroupName,
|
|
2949
|
+
fleetName,
|
|
2950
|
+
updateRunName
|
|
2951
|
+
],
|
|
2952
|
+
headerParameters: [
|
|
2953
|
+
accept,
|
|
2954
|
+
contentType,
|
|
2955
|
+
ifMatch,
|
|
2956
|
+
ifNoneMatch
|
|
2957
|
+
],
|
|
2958
|
+
mediaType: "json",
|
|
2959
|
+
serializer
|
|
2960
|
+
};
|
|
2961
|
+
const deleteOperationSpec = {
|
|
2962
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}",
|
|
2963
|
+
httpMethod: "DELETE",
|
|
2964
|
+
responses: {
|
|
2965
|
+
200: {},
|
|
2966
|
+
201: {},
|
|
2967
|
+
202: {},
|
|
2968
|
+
204: {},
|
|
2969
|
+
default: {
|
|
2970
|
+
bodyMapper: ErrorResponse
|
|
2971
|
+
}
|
|
2972
|
+
},
|
|
2973
|
+
queryParameters: [apiVersion],
|
|
2974
|
+
urlParameters: [
|
|
2975
|
+
$host,
|
|
2976
|
+
subscriptionId,
|
|
2977
|
+
resourceGroupName,
|
|
2978
|
+
fleetName,
|
|
2979
|
+
updateRunName
|
|
2980
|
+
],
|
|
2981
|
+
headerParameters: [accept, ifMatch],
|
|
2982
|
+
serializer
|
|
2983
|
+
};
|
|
2984
|
+
const startOperationSpec = {
|
|
2985
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start",
|
|
2986
|
+
httpMethod: "POST",
|
|
2987
|
+
responses: {
|
|
2988
|
+
200: {
|
|
2989
|
+
bodyMapper: UpdateRun
|
|
2990
|
+
},
|
|
2991
|
+
201: {
|
|
2992
|
+
bodyMapper: UpdateRun
|
|
2993
|
+
},
|
|
2994
|
+
202: {
|
|
2995
|
+
bodyMapper: UpdateRun
|
|
2996
|
+
},
|
|
2997
|
+
204: {
|
|
2998
|
+
bodyMapper: UpdateRun
|
|
2999
|
+
},
|
|
3000
|
+
default: {
|
|
3001
|
+
bodyMapper: ErrorResponse
|
|
3002
|
+
}
|
|
3003
|
+
},
|
|
3004
|
+
queryParameters: [apiVersion],
|
|
3005
|
+
urlParameters: [
|
|
3006
|
+
$host,
|
|
3007
|
+
subscriptionId,
|
|
3008
|
+
resourceGroupName,
|
|
3009
|
+
fleetName,
|
|
3010
|
+
updateRunName
|
|
3011
|
+
],
|
|
3012
|
+
headerParameters: [accept, ifMatch],
|
|
3013
|
+
serializer
|
|
3014
|
+
};
|
|
3015
|
+
const stopOperationSpec = {
|
|
3016
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop",
|
|
3017
|
+
httpMethod: "POST",
|
|
3018
|
+
responses: {
|
|
3019
|
+
200: {
|
|
3020
|
+
bodyMapper: UpdateRun
|
|
3021
|
+
},
|
|
3022
|
+
201: {
|
|
3023
|
+
bodyMapper: UpdateRun
|
|
3024
|
+
},
|
|
3025
|
+
202: {
|
|
3026
|
+
bodyMapper: UpdateRun
|
|
3027
|
+
},
|
|
3028
|
+
204: {
|
|
3029
|
+
bodyMapper: UpdateRun
|
|
3030
|
+
},
|
|
3031
|
+
default: {
|
|
3032
|
+
bodyMapper: ErrorResponse
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
queryParameters: [apiVersion],
|
|
3036
|
+
urlParameters: [
|
|
3037
|
+
$host,
|
|
3038
|
+
subscriptionId,
|
|
3039
|
+
resourceGroupName,
|
|
3040
|
+
fleetName,
|
|
3041
|
+
updateRunName
|
|
3042
|
+
],
|
|
3043
|
+
headerParameters: [accept, ifMatch],
|
|
3044
|
+
serializer
|
|
3045
|
+
};
|
|
3046
|
+
const listByFleetNextOperationSpec = {
|
|
3047
|
+
path: "{nextLink}",
|
|
3048
|
+
httpMethod: "GET",
|
|
3049
|
+
responses: {
|
|
3050
|
+
200: {
|
|
3051
|
+
bodyMapper: UpdateRunListResult
|
|
3052
|
+
},
|
|
3053
|
+
default: {
|
|
3054
|
+
bodyMapper: ErrorResponse
|
|
3055
|
+
}
|
|
3056
|
+
},
|
|
3057
|
+
urlParameters: [
|
|
3058
|
+
$host,
|
|
3059
|
+
nextLink,
|
|
3060
|
+
subscriptionId,
|
|
3061
|
+
resourceGroupName,
|
|
3062
|
+
fleetName
|
|
3063
|
+
],
|
|
3064
|
+
headerParameters: [accept],
|
|
3065
|
+
serializer
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
/*
|
|
3069
|
+
* Copyright (c) Microsoft Corporation.
|
|
3070
|
+
* Licensed under the MIT License.
|
|
3071
|
+
*
|
|
3072
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3073
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3074
|
+
*/
|
|
3075
|
+
class ContainerServiceFleetClient extends coreClient__namespace.ServiceClient {
|
|
3076
|
+
/**
|
|
3077
|
+
* Initializes a new instance of the ContainerServiceFleetClient class.
|
|
3078
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3079
|
+
* @param subscriptionId The ID of the target subscription.
|
|
3080
|
+
* @param options The parameter options
|
|
3081
|
+
*/
|
|
3082
|
+
constructor(credentials, subscriptionId, options) {
|
|
3083
|
+
var _a, _b, _c;
|
|
3084
|
+
if (credentials === undefined) {
|
|
3085
|
+
throw new Error("'credentials' cannot be null");
|
|
3086
|
+
}
|
|
3087
|
+
if (subscriptionId === undefined) {
|
|
3088
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3089
|
+
}
|
|
3090
|
+
// Initializing default values for options
|
|
3091
|
+
if (!options) {
|
|
3092
|
+
options = {};
|
|
3093
|
+
}
|
|
3094
|
+
const defaults = {
|
|
3095
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3096
|
+
credential: credentials
|
|
3097
|
+
};
|
|
3098
|
+
const packageDetails = `azsdk-js-arm-containerservicefleet/1.0.0-beta.1`;
|
|
3099
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3100
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3101
|
+
: `${packageDetails}`;
|
|
3102
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3103
|
+
userAgentPrefix
|
|
3104
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3105
|
+
super(optionsWithDefaults);
|
|
3106
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3107
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3108
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3109
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3110
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3111
|
+
}
|
|
3112
|
+
if (!options ||
|
|
3113
|
+
!options.pipeline ||
|
|
3114
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3115
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3116
|
+
this.pipeline.removePolicy({
|
|
3117
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3118
|
+
});
|
|
3119
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3120
|
+
credential: credentials,
|
|
3121
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3122
|
+
challengeCallbacks: {
|
|
3123
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3124
|
+
}
|
|
3125
|
+
}));
|
|
3126
|
+
}
|
|
3127
|
+
// Parameter assignments
|
|
3128
|
+
this.subscriptionId = subscriptionId;
|
|
3129
|
+
// Assigning values to Constant parameters
|
|
3130
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3131
|
+
this.apiVersion = options.apiVersion || "2023-03-15-preview";
|
|
3132
|
+
this.operations = new OperationsImpl(this);
|
|
3133
|
+
this.fleets = new FleetsImpl(this);
|
|
3134
|
+
this.fleetMembers = new FleetMembersImpl(this);
|
|
3135
|
+
this.updateRuns = new UpdateRunsImpl(this);
|
|
3136
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3137
|
+
}
|
|
3138
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
3139
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
3140
|
+
if (!apiVersion) {
|
|
3141
|
+
return;
|
|
3142
|
+
}
|
|
3143
|
+
const apiVersionPolicy = {
|
|
3144
|
+
name: "CustomApiVersionPolicy",
|
|
3145
|
+
sendRequest(request, next) {
|
|
3146
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3147
|
+
const param = request.url.split("?");
|
|
3148
|
+
if (param.length > 1) {
|
|
3149
|
+
const newParams = param[1].split("&").map((item) => {
|
|
3150
|
+
if (item.indexOf("api-version") > -1) {
|
|
3151
|
+
return "api-version=" + apiVersion;
|
|
3152
|
+
}
|
|
3153
|
+
else {
|
|
3154
|
+
return item;
|
|
3155
|
+
}
|
|
3156
|
+
});
|
|
3157
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
3158
|
+
}
|
|
3159
|
+
return next(request);
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
};
|
|
3163
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
exports.ContainerServiceFleetClient = ContainerServiceFleetClient;
|
|
3168
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3169
|
+
//# sourceMappingURL=index.js.map
|