@azure/arm-networkcloud 1.2.0-alpha.20250718.1 → 1.2.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +648 -314
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/networkCloud.js +33 -5
- package/dist/browser/networkCloud.js.map +1 -1
- package/dist/browser/operations/agentPools.js +56 -58
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/browser/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/browser/operations/bareMetalMachines.js +188 -157
- package/dist/browser/operations/bareMetalMachines.js.map +1 -1
- package/dist/browser/operations/bmcKeySets.js +56 -58
- package/dist/browser/operations/bmcKeySets.js.map +1 -1
- package/dist/browser/operations/cloudServicesNetworks.js +78 -97
- package/dist/browser/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/browser/operations/clusterManagers.js +67 -91
- package/dist/browser/operations/clusterManagers.js.map +1 -1
- package/dist/browser/operations/clusters.js +122 -121
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/consoles.js +56 -58
- package/dist/browser/operations/consoles.js.map +1 -1
- package/dist/browser/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/browser/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/browser/operations/kubernetesClusters.js +89 -103
- package/dist/browser/operations/kubernetesClusters.js.map +1 -1
- package/dist/browser/operations/l2Networks.js +67 -91
- package/dist/browser/operations/l2Networks.js.map +1 -1
- package/dist/browser/operations/l3Networks.js +67 -91
- package/dist/browser/operations/l3Networks.js.map +1 -1
- package/dist/browser/operations/metricsConfigurations.js +56 -58
- package/dist/browser/operations/metricsConfigurations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/rackSkus.js +23 -40
- package/dist/browser/operations/rackSkus.js.map +1 -1
- package/dist/browser/operations/racks.js +78 -97
- package/dist/browser/operations/racks.js.map +1 -1
- package/dist/browser/operations/storageAppliances.js +100 -109
- package/dist/browser/operations/storageAppliances.js.map +1 -1
- package/dist/browser/operations/trunkedNetworks.js +67 -91
- package/dist/browser/operations/trunkedNetworks.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +122 -121
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/operations/volumes.js +67 -91
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +648 -314
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/networkCloud.js +33 -5
- package/dist/commonjs/networkCloud.js.map +1 -1
- package/dist/commonjs/operations/agentPools.js +56 -57
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachineKeySets.js +56 -57
- package/dist/commonjs/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachines.js +188 -156
- package/dist/commonjs/operations/bareMetalMachines.js.map +1 -1
- package/dist/commonjs/operations/bmcKeySets.js +56 -57
- package/dist/commonjs/operations/bmcKeySets.js.map +1 -1
- package/dist/commonjs/operations/cloudServicesNetworks.js +78 -96
- package/dist/commonjs/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/commonjs/operations/clusterManagers.js +67 -90
- package/dist/commonjs/operations/clusterManagers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +122 -120
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/consoles.js +56 -57
- package/dist/commonjs/operations/consoles.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusterFeatures.js +56 -57
- package/dist/commonjs/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusters.js +89 -102
- package/dist/commonjs/operations/kubernetesClusters.js.map +1 -1
- package/dist/commonjs/operations/l2Networks.js +67 -90
- package/dist/commonjs/operations/l2Networks.js.map +1 -1
- package/dist/commonjs/operations/l3Networks.js +67 -90
- package/dist/commonjs/operations/l3Networks.js.map +1 -1
- package/dist/commonjs/operations/metricsConfigurations.js +56 -57
- package/dist/commonjs/operations/metricsConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/rackSkus.js +23 -39
- package/dist/commonjs/operations/rackSkus.js.map +1 -1
- package/dist/commonjs/operations/racks.js +78 -96
- package/dist/commonjs/operations/racks.js.map +1 -1
- package/dist/commonjs/operations/storageAppliances.js +100 -108
- package/dist/commonjs/operations/storageAppliances.js.map +1 -1
- package/dist/commonjs/operations/trunkedNetworks.js +67 -90
- package/dist/commonjs/operations/trunkedNetworks.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +122 -120
- package/dist/commonjs/operations/virtualMachines.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +67 -90
- package/dist/commonjs/operations/volumes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +648 -314
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/networkCloud.js +33 -5
- package/dist/esm/networkCloud.js.map +1 -1
- package/dist/esm/operations/agentPools.js +56 -58
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/esm/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/esm/operations/bareMetalMachines.js +188 -157
- package/dist/esm/operations/bareMetalMachines.js.map +1 -1
- package/dist/esm/operations/bmcKeySets.js +56 -58
- package/dist/esm/operations/bmcKeySets.js.map +1 -1
- package/dist/esm/operations/cloudServicesNetworks.js +78 -97
- package/dist/esm/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/esm/operations/clusterManagers.js +67 -91
- package/dist/esm/operations/clusterManagers.js.map +1 -1
- package/dist/esm/operations/clusters.js +122 -121
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/consoles.js +56 -58
- package/dist/esm/operations/consoles.js.map +1 -1
- package/dist/esm/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/esm/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/esm/operations/kubernetesClusters.js +89 -103
- package/dist/esm/operations/kubernetesClusters.js.map +1 -1
- package/dist/esm/operations/l2Networks.js +67 -91
- package/dist/esm/operations/l2Networks.js.map +1 -1
- package/dist/esm/operations/l3Networks.js +67 -91
- package/dist/esm/operations/l3Networks.js.map +1 -1
- package/dist/esm/operations/metricsConfigurations.js +56 -58
- package/dist/esm/operations/metricsConfigurations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/rackSkus.js +23 -40
- package/dist/esm/operations/rackSkus.js.map +1 -1
- package/dist/esm/operations/racks.js +78 -97
- package/dist/esm/operations/racks.js.map +1 -1
- package/dist/esm/operations/storageAppliances.js +100 -109
- package/dist/esm/operations/storageAppliances.js.map +1 -1
- package/dist/esm/operations/trunkedNetworks.js +67 -91
- package/dist/esm/operations/trunkedNetworks.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +122 -121
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/operations/volumes.js +67 -91
- package/dist/esm/operations/volumes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +648 -314
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/networkCloud.js +33 -5
- package/dist/react-native/networkCloud.js.map +1 -1
- package/dist/react-native/operations/agentPools.js +56 -58
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachineKeySets.js +56 -58
- package/dist/react-native/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachines.js +188 -157
- package/dist/react-native/operations/bareMetalMachines.js.map +1 -1
- package/dist/react-native/operations/bmcKeySets.js +56 -58
- package/dist/react-native/operations/bmcKeySets.js.map +1 -1
- package/dist/react-native/operations/cloudServicesNetworks.js +78 -97
- package/dist/react-native/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/react-native/operations/clusterManagers.js +67 -91
- package/dist/react-native/operations/clusterManagers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +122 -121
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/consoles.js +56 -58
- package/dist/react-native/operations/consoles.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusterFeatures.js +56 -58
- package/dist/react-native/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusters.js +89 -103
- package/dist/react-native/operations/kubernetesClusters.js.map +1 -1
- package/dist/react-native/operations/l2Networks.js +67 -91
- package/dist/react-native/operations/l2Networks.js.map +1 -1
- package/dist/react-native/operations/l3Networks.js +67 -91
- package/dist/react-native/operations/l3Networks.js.map +1 -1
- package/dist/react-native/operations/metricsConfigurations.js +56 -58
- package/dist/react-native/operations/metricsConfigurations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/rackSkus.js +23 -40
- package/dist/react-native/operations/rackSkus.js.map +1 -1
- package/dist/react-native/operations/racks.js +78 -97
- package/dist/react-native/operations/racks.js.map +1 -1
- package/dist/react-native/operations/storageAppliances.js +100 -109
- package/dist/react-native/operations/storageAppliances.js.map +1 -1
- package/dist/react-native/operations/trunkedNetworks.js +67 -91
- package/dist/react-native/operations/trunkedNetworks.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +122 -121
- package/dist/react-native/operations/virtualMachines.js.map +1 -1
- package/dist/react-native/operations/volumes.js +67 -91
- package/dist/react-native/operations/volumes.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-networkcloud-node.api.md +4516 -4516
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class NetworkCloud extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the NetworkCloud class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ class NetworkCloud extends coreClient.ServiceClient {
|
|
|
20
23
|
* @param options The parameter options
|
|
21
24
|
*/
|
|
22
25
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
-
var _a, _b, _c;
|
|
24
26
|
if (credentials === undefined) {
|
|
25
27
|
throw new Error("'credentials' cannot be null");
|
|
26
28
|
}
|
|
@@ -39,12 +41,17 @@ class NetworkCloud extends coreClient.ServiceClient {
|
|
|
39
41
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
42
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
43
|
: `${packageDetails}`;
|
|
42
|
-
const optionsWithDefaults =
|
|
44
|
+
const optionsWithDefaults = {
|
|
45
|
+
...defaults,
|
|
46
|
+
...options,
|
|
47
|
+
userAgentOptions: {
|
|
43
48
|
userAgentPrefix,
|
|
44
|
-
},
|
|
49
|
+
},
|
|
50
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
51
|
+
};
|
|
45
52
|
super(optionsWithDefaults);
|
|
46
53
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
54
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
55
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
56
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
57
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -58,7 +65,8 @@ class NetworkCloud extends coreClient.ServiceClient {
|
|
|
58
65
|
});
|
|
59
66
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
67
|
credential: credentials,
|
|
61
|
-
scopes:
|
|
68
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
62
70
|
challengeCallbacks: {
|
|
63
71
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
64
72
|
},
|
|
@@ -116,6 +124,26 @@ class NetworkCloud extends coreClient.ServiceClient {
|
|
|
116
124
|
};
|
|
117
125
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
118
126
|
}
|
|
127
|
+
operations;
|
|
128
|
+
bareMetalMachines;
|
|
129
|
+
cloudServicesNetworks;
|
|
130
|
+
clusterManagers;
|
|
131
|
+
clusters;
|
|
132
|
+
kubernetesClusters;
|
|
133
|
+
l2Networks;
|
|
134
|
+
l3Networks;
|
|
135
|
+
rackSkus;
|
|
136
|
+
racks;
|
|
137
|
+
storageAppliances;
|
|
138
|
+
trunkedNetworks;
|
|
139
|
+
virtualMachines;
|
|
140
|
+
volumes;
|
|
141
|
+
bareMetalMachineKeySets;
|
|
142
|
+
bmcKeySets;
|
|
143
|
+
metricsConfigurations;
|
|
144
|
+
agentPools;
|
|
145
|
+
kubernetesClusterFeatures;
|
|
146
|
+
consoles;
|
|
119
147
|
}
|
|
120
148
|
exports.NetworkCloud = NetworkCloud;
|
|
121
149
|
//# sourceMappingURL=networkCloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkCloud.js","sourceRoot":"","sources":["../../src/networkCloud.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAqB+B;AAyB/B,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IAKxD;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;;QAEpC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCA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soft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n BareMetalMachinesImpl,\n CloudServicesNetworksImpl,\n ClusterManagersImpl,\n ClustersImpl,\n KubernetesClustersImpl,\n L2NetworksImpl,\n L3NetworksImpl,\n RackSkusImpl,\n RacksImpl,\n StorageAppliancesImpl,\n TrunkedNetworksImpl,\n VirtualMachinesImpl,\n VolumesImpl,\n BareMetalMachineKeySetsImpl,\n BmcKeySetsImpl,\n MetricsConfigurationsImpl,\n AgentPoolsImpl,\n KubernetesClusterFeaturesImpl,\n ConsolesImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n BareMetalMachines,\n CloudServicesNetworks,\n ClusterManagers,\n Clusters,\n KubernetesClusters,\n L2Networks,\n L3Networks,\n RackSkus,\n Racks,\n StorageAppliances,\n TrunkedNetworks,\n VirtualMachines,\n Volumes,\n BareMetalMachineKeySets,\n BmcKeySets,\n MetricsConfigurations,\n AgentPools,\n KubernetesClusterFeatures,\n Consoles,\n} from \"./operationsInterfaces/index.js\";\nimport { NetworkCloudOptionalParams } from \"./models/index.js\";\n\nexport class NetworkCloud extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the NetworkCloud class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: NetworkCloudOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: NetworkCloudOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-networkcloud/1.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-01\";\n this.operations = new OperationsImpl(this);\n this.bareMetalMachines = new BareMetalMachinesImpl(this);\n this.cloudServicesNetworks = new CloudServicesNetworksImpl(this);\n this.clusterManagers = new ClusterManagersImpl(this);\n this.clusters = new ClustersImpl(this);\n this.kubernetesClusters = new KubernetesClustersImpl(this);\n this.l2Networks = new L2NetworksImpl(this);\n this.l3Networks = new L3NetworksImpl(this);\n this.rackSkus = new RackSkusImpl(this);\n this.racks = new RacksImpl(this);\n this.storageAppliances = new StorageAppliancesImpl(this);\n this.trunkedNetworks = new TrunkedNetworksImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.volumes = new VolumesImpl(this);\n this.bareMetalMachineKeySets = new BareMetalMachineKeySetsImpl(this);\n this.bmcKeySets = new BmcKeySetsImpl(this);\n this.metricsConfigurations = new MetricsConfigurationsImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.kubernetesClusterFeatures = new KubernetesClusterFeaturesImpl(this);\n this.consoles = new ConsolesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n bareMetalMachines: BareMetalMachines;\n cloudServicesNetworks: CloudServicesNetworks;\n clusterManagers: ClusterManagers;\n clusters: Clusters;\n kubernetesClusters: KubernetesClusters;\n l2Networks: L2Networks;\n l3Networks: L3Networks;\n rackSkus: RackSkus;\n racks: Racks;\n storageAppliances: StorageAppliances;\n trunkedNetworks: TrunkedNetworks;\n virtualMachines: VirtualMachines;\n volumes: Volumes;\n bareMetalMachineKeySets: BareMetalMachineKeySets;\n bmcKeySets: BmcKeySets;\n metricsConfigurations: MetricsConfigurations;\n agentPools: AgentPools;\n kubernetesClusterFeatures: KubernetesClusterFeatures;\n consoles: Consoles;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"networkCloud.js","sourceRoot":"","sources":["../../src/networkCloud.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAqB+B;AAyB/B,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;QAEpC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EACN,OAAO,CAAC,QA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IACjC,QAAQ,CAAW;IACnB,kBAAkB,CAAqB;IACvC,UAAU,CAAa;IACvB,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,KAAK,CAAQ;IACb,iBAAiB,CAAoB;IACrC,eAAe,CAAkB;IACjC,eAAe,CAAkB;IACjC,OAAO,CAAU;IACjB,uBAAuB,CAA0B;IACjD,UAAU,CAAa;IACvB,qBAAqB,CAAwB;IAC7C,UAAU,CAAa;IACvB,yBAAyB,CAA4B;IACrD,QAAQ,CAAW;CACpB;AA9JD,oCA8JC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n BareMetalMachinesImpl,\n CloudServicesNetworksImpl,\n ClusterManagersImpl,\n ClustersImpl,\n KubernetesClustersImpl,\n L2NetworksImpl,\n L3NetworksImpl,\n RackSkusImpl,\n RacksImpl,\n StorageAppliancesImpl,\n TrunkedNetworksImpl,\n VirtualMachinesImpl,\n VolumesImpl,\n BareMetalMachineKeySetsImpl,\n BmcKeySetsImpl,\n MetricsConfigurationsImpl,\n AgentPoolsImpl,\n KubernetesClusterFeaturesImpl,\n ConsolesImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n BareMetalMachines,\n CloudServicesNetworks,\n ClusterManagers,\n Clusters,\n KubernetesClusters,\n L2Networks,\n L3Networks,\n RackSkus,\n Racks,\n StorageAppliances,\n TrunkedNetworks,\n VirtualMachines,\n Volumes,\n BareMetalMachineKeySets,\n BmcKeySets,\n MetricsConfigurations,\n AgentPools,\n KubernetesClusterFeatures,\n Consoles,\n} from \"./operationsInterfaces/index.js\";\nimport { NetworkCloudOptionalParams } from \"./models/index.js\";\n\nexport class NetworkCloud extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the NetworkCloud class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: NetworkCloudOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: NetworkCloudOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-networkcloud/1.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-01\";\n this.operations = new OperationsImpl(this);\n this.bareMetalMachines = new BareMetalMachinesImpl(this);\n this.cloudServicesNetworks = new CloudServicesNetworksImpl(this);\n this.clusterManagers = new ClusterManagersImpl(this);\n this.clusters = new ClustersImpl(this);\n this.kubernetesClusters = new KubernetesClustersImpl(this);\n this.l2Networks = new L2NetworksImpl(this);\n this.l3Networks = new L3NetworksImpl(this);\n this.rackSkus = new RackSkusImpl(this);\n this.racks = new RacksImpl(this);\n this.storageAppliances = new StorageAppliancesImpl(this);\n this.trunkedNetworks = new TrunkedNetworksImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.volumes = new VolumesImpl(this);\n this.bareMetalMachineKeySets = new BareMetalMachineKeySetsImpl(this);\n this.bmcKeySets = new BmcKeySetsImpl(this);\n this.metricsConfigurations = new MetricsConfigurationsImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.kubernetesClusterFeatures = new KubernetesClusterFeaturesImpl(this);\n this.consoles = new ConsolesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n bareMetalMachines: BareMetalMachines;\n cloudServicesNetworks: CloudServicesNetworks;\n clusterManagers: ClusterManagers;\n clusters: Clusters;\n kubernetesClusters: KubernetesClusters;\n l2Networks: L2Networks;\n l3Networks: L3Networks;\n rackSkus: RackSkus;\n racks: Racks;\n storageAppliances: StorageAppliances;\n trunkedNetworks: TrunkedNetworks;\n virtualMachines: VirtualMachines;\n volumes: Volumes;\n bareMetalMachineKeySets: BareMetalMachineKeySets;\n bmcKeySets: BmcKeySets;\n metricsConfigurations: MetricsConfigurations;\n agentPools: AgentPools;\n kubernetesClusterFeatures: KubernetesClusterFeatures;\n consoles: Consoles;\n}\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing AgentPools operations. */
|
|
20
20
|
class AgentPoolsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class AgentPools class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class AgentPoolsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByKubernetesClusterNext(resourceGroupName, kubernetesClusterName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByKubernetesClusterPagingAll(resourceGroupName, kubernetesClusterName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByKubernetesClusterPagingAll(resourceGroupName, kubernetesClusterName, options) {
|
|
71
|
+
for await (const page of this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Get a list of agent pools for the provided Kubernetes cluster.
|
|
@@ -120,14 +104,19 @@ class AgentPoolsImpl {
|
|
|
120
104
|
return this.client.sendOperationRequest(args, spec);
|
|
121
105
|
};
|
|
122
106
|
const sendOperationFn = async (args, spec) => {
|
|
123
|
-
var _a;
|
|
124
107
|
let currentRawResponse = undefined;
|
|
125
|
-
const providedCallback =
|
|
108
|
+
const providedCallback = args.options?.onResponse;
|
|
126
109
|
const callback = (rawResponse, flatResponse) => {
|
|
127
110
|
currentRawResponse = rawResponse;
|
|
128
|
-
providedCallback
|
|
111
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
112
|
+
};
|
|
113
|
+
const updatedArgs = {
|
|
114
|
+
...args,
|
|
115
|
+
options: {
|
|
116
|
+
...args.options,
|
|
117
|
+
onResponse: callback,
|
|
118
|
+
},
|
|
129
119
|
};
|
|
130
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
131
120
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
132
121
|
return {
|
|
133
122
|
flatResponse,
|
|
@@ -150,8 +139,8 @@ class AgentPoolsImpl {
|
|
|
150
139
|
spec: createOrUpdateOperationSpec,
|
|
151
140
|
});
|
|
152
141
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
153
|
-
restoreFrom: options
|
|
154
|
-
intervalInMs: options
|
|
142
|
+
restoreFrom: options?.resumeFrom,
|
|
143
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
155
144
|
resourceLocationConfig: "azure-async-operation",
|
|
156
145
|
});
|
|
157
146
|
await poller.poll();
|
|
@@ -181,14 +170,19 @@ class AgentPoolsImpl {
|
|
|
181
170
|
return this.client.sendOperationRequest(args, spec);
|
|
182
171
|
};
|
|
183
172
|
const sendOperationFn = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
173
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
174
|
+
const providedCallback = args.options?.onResponse;
|
|
187
175
|
const callback = (rawResponse, flatResponse) => {
|
|
188
176
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
178
|
+
};
|
|
179
|
+
const updatedArgs = {
|
|
180
|
+
...args,
|
|
181
|
+
options: {
|
|
182
|
+
...args.options,
|
|
183
|
+
onResponse: callback,
|
|
184
|
+
},
|
|
190
185
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
186
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
187
|
return {
|
|
194
188
|
flatResponse,
|
|
@@ -210,8 +204,8 @@ class AgentPoolsImpl {
|
|
|
210
204
|
spec: deleteOperationSpec,
|
|
211
205
|
});
|
|
212
206
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
213
|
-
restoreFrom: options
|
|
214
|
-
intervalInMs: options
|
|
207
|
+
restoreFrom: options?.resumeFrom,
|
|
208
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
215
209
|
resourceLocationConfig: "location",
|
|
216
210
|
});
|
|
217
211
|
await poller.poll();
|
|
@@ -241,14 +235,19 @@ class AgentPoolsImpl {
|
|
|
241
235
|
return this.client.sendOperationRequest(args, spec);
|
|
242
236
|
};
|
|
243
237
|
const sendOperationFn = async (args, spec) => {
|
|
244
|
-
var _a;
|
|
245
238
|
let currentRawResponse = undefined;
|
|
246
|
-
const providedCallback =
|
|
239
|
+
const providedCallback = args.options?.onResponse;
|
|
247
240
|
const callback = (rawResponse, flatResponse) => {
|
|
248
241
|
currentRawResponse = rawResponse;
|
|
249
|
-
providedCallback
|
|
242
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
243
|
+
};
|
|
244
|
+
const updatedArgs = {
|
|
245
|
+
...args,
|
|
246
|
+
options: {
|
|
247
|
+
...args.options,
|
|
248
|
+
onResponse: callback,
|
|
249
|
+
},
|
|
250
250
|
};
|
|
251
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
252
251
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
253
252
|
return {
|
|
254
253
|
flatResponse,
|
|
@@ -270,8 +269,8 @@ class AgentPoolsImpl {
|
|
|
270
269
|
spec: updateOperationSpec,
|
|
271
270
|
});
|
|
272
271
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
273
|
-
restoreFrom: options
|
|
274
|
-
intervalInMs: options
|
|
272
|
+
restoreFrom: options?.resumeFrom,
|
|
273
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
275
274
|
resourceLocationConfig: "azure-async-operation",
|
|
276
275
|
});
|
|
277
276
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,C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,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AgentPools } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AgentPool,\n AgentPoolsListByKubernetesClusterNextOptionalParams,\n AgentPoolsListByKubernetesClusterOptionalParams,\n AgentPoolsListByKubernetesClusterResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOrUpdateOptionalParams,\n AgentPoolsCreateOrUpdateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsDeleteResponse,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsListByKubernetesClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class AgentPools class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of agent pools for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n public listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\n const iter = this.listByKubernetesClusterPagingAll(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByKubernetesClusterPagingPage(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListByKubernetesClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByKubernetesCluster(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByKubernetesClusterNext(\n resourceGroupName,\n kubernetesClusterName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByKubernetesClusterPagingAll(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\n for await (const page of this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of agent pools for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n private _listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): Promise<AgentPoolsListByKubernetesClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, options },\n listByKubernetesClusterOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new Kubernetes cluster agent pool or update the properties of the existing one.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param agentPoolParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n agentPoolParameters: AgentPool,\n options?: AgentPoolsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsCreateOrUpdateResponse>,\n AgentPoolsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n agentPoolParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateOrUpdateResponse,\n OperationState<AgentPoolsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes cluster agent pool or update the properties of the existing one.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param agentPoolParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n agentPoolParameters: AgentPool,\n options?: AgentPoolsCreateOrUpdateOptionalParams,\n ): Promise<AgentPoolsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n agentPoolParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsDeleteResponse>,\n AgentPoolsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsDeleteResponse,\n OperationState<AgentPoolsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<AgentPoolsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated\n * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsUpdateResponse>,\n AgentPoolsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated\n * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByKubernetesClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster\n * method.\n * @param options The options parameters.\n */\n private _listByKubernetesClusterNext(\n resourceGroupName: string,\n kubernetesClusterName: string,\n nextLink: string,\n options?: AgentPoolsListByKubernetesClusterNextOptionalParams,\n ): Promise<AgentPoolsListByKubernetesClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, nextLink, options },\n listByKubernetesClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKubernetesClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPoolParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPoolUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAe;IAEtC;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AgentPools } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AgentPool,\n AgentPoolsListByKubernetesClusterNextOptionalParams,\n AgentPoolsListByKubernetesClusterOptionalParams,\n AgentPoolsListByKubernetesClusterResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOrUpdateOptionalParams,\n AgentPoolsCreateOrUpdateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsDeleteResponse,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsListByKubernetesClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class AgentPools class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of agent pools for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n public listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\n const iter = this.listByKubernetesClusterPagingAll(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByKubernetesClusterPagingPage(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListByKubernetesClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByKubernetesCluster(\n resourceGroupName,\n kubernetesClusterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByKubernetesClusterNext(\n resourceGroupName,\n kubernetesClusterName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByKubernetesClusterPagingAll(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\n for await (const page of this.listByKubernetesClusterPagingPage(\n resourceGroupName,\n kubernetesClusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of agent pools for the provided Kubernetes cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param options The options parameters.\n */\n private _listByKubernetesCluster(\n resourceGroupName: string,\n kubernetesClusterName: string,\n options?: AgentPoolsListByKubernetesClusterOptionalParams,\n ): Promise<AgentPoolsListByKubernetesClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, options },\n listByKubernetesClusterOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new Kubernetes cluster agent pool or update the properties of the existing one.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param agentPoolParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n agentPoolParameters: AgentPool,\n options?: AgentPoolsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsCreateOrUpdateResponse>,\n AgentPoolsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n agentPoolParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateOrUpdateResponse,\n OperationState<AgentPoolsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes cluster agent pool or update the properties of the existing one.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param agentPoolParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n agentPoolParameters: AgentPool,\n options?: AgentPoolsCreateOrUpdateOptionalParams,\n ): Promise<AgentPoolsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n agentPoolParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsDeleteResponse>,\n AgentPoolsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsDeleteResponse,\n OperationState<AgentPoolsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided Kubernetes cluster agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<AgentPoolsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated\n * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsUpdateResponse>,\n AgentPoolsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated\n * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param agentPoolName The name of the Kubernetes cluster agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n kubernetesClusterName: string,\n agentPoolName: string,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n kubernetesClusterName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByKubernetesClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param kubernetesClusterName The name of the Kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster\n * method.\n * @param options The options parameters.\n */\n private _listByKubernetesClusterNext(\n resourceGroupName: string,\n kubernetesClusterName: string,\n nextLink: string,\n options?: AgentPoolsListByKubernetesClusterNextOptionalParams,\n ): Promise<AgentPoolsListByKubernetesClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, kubernetesClusterName, nextLink, options },\n listByKubernetesClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKubernetesClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPoolParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPoolUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n Parameters.agentPoolName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.kubernetesClusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|