oci-containerengine 2.63.0 → 2.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +6 -6
- package/lib/client.d.ts +113 -36
- package/lib/client.js +395 -36
- package/lib/client.js.map +1 -1
- package/lib/containerengine-waiter.d.ts +8 -0
- package/lib/containerengine-waiter.js +12 -0
- package/lib/containerengine-waiter.js.map +1 -1
- package/lib/model/cluster-summary.d.ts +1 -1
- package/lib/model/create-workload-mapping-details.d.ts +52 -0
- package/lib/model/create-workload-mapping-details.js +32 -0
- package/lib/model/create-workload-mapping-details.js.map +1 -0
- package/lib/model/index.d.ts +10 -0
- package/lib/model/index.js +12 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/update-workload-mapping-details.d.ts +48 -0
- package/lib/model/update-workload-mapping-details.js +32 -0
- package/lib/model/update-workload-mapping-details.js.map +1 -0
- package/lib/model/workload-mapping-lifecycle-state.d.ts +35 -0
- package/lib/model/workload-mapping-lifecycle-state.js +46 -0
- package/lib/model/workload-mapping-lifecycle-state.js.map +1 -0
- package/lib/model/workload-mapping-summary.d.ts +73 -0
- package/lib/model/workload-mapping-summary.js +32 -0
- package/lib/model/workload-mapping-summary.js.map +1 -0
- package/lib/model/workload-mapping.d.ts +73 -0
- package/lib/model/workload-mapping.js +32 -0
- package/lib/model/workload-mapping.js.map +1 -0
- package/lib/request/cluster-migrate-to-native-vcn-request.d.ts +1 -1
- package/lib/request/create-cluster-request.d.ts +1 -1
- package/lib/request/create-kubeconfig-request.d.ts +1 -1
- package/lib/request/create-node-pool-request.d.ts +1 -1
- package/lib/request/create-virtual-node-pool-request.d.ts +1 -1
- package/lib/request/create-workload-mapping-request.d.ts +39 -0
- package/lib/request/create-workload-mapping-request.js +15 -0
- package/lib/request/create-workload-mapping-request.js.map +1 -0
- package/lib/request/delete-cluster-request.d.ts +1 -1
- package/lib/request/delete-node-pool-request.d.ts +1 -1
- package/lib/request/delete-node-request.d.ts +1 -1
- package/lib/request/delete-virtual-node-pool-request.d.ts +1 -1
- package/lib/request/delete-work-request-request.d.ts +1 -1
- package/lib/request/delete-workload-mapping-request.d.ts +39 -0
- package/lib/request/delete-workload-mapping-request.js +15 -0
- package/lib/request/delete-workload-mapping-request.js.map +1 -0
- package/lib/request/disable-addon-request.d.ts +1 -1
- package/lib/request/get-addon-request.d.ts +1 -1
- package/lib/request/get-cluster-migrate-to-native-vcn-status-request.d.ts +1 -1
- package/lib/request/get-cluster-options-request.d.ts +1 -1
- package/lib/request/get-cluster-request.d.ts +1 -1
- package/lib/request/get-node-pool-options-request.d.ts +1 -1
- package/lib/request/get-node-pool-request.d.ts +1 -1
- package/lib/request/get-virtual-node-pool-request.d.ts +1 -1
- package/lib/request/get-virtual-node-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/get-workload-mapping-request.d.ts +32 -0
- package/lib/request/get-workload-mapping-request.js +15 -0
- package/lib/request/get-workload-mapping-request.js.map +1 -0
- package/lib/request/index.d.ts +10 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/install-addon-request.d.ts +1 -1
- package/lib/request/list-addon-options-request.d.ts +1 -1
- package/lib/request/list-addons-request.d.ts +1 -1
- package/lib/request/list-clusters-request.d.ts +1 -1
- package/lib/request/list-node-pools-request.d.ts +1 -1
- package/lib/request/list-pod-shapes-request.d.ts +1 -1
- package/lib/request/list-virtual-node-pools-request.d.ts +1 -1
- package/lib/request/list-virtual-nodes-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/list-workload-mappings-request.d.ts +56 -0
- package/lib/request/list-workload-mappings-request.js +24 -0
- package/lib/request/list-workload-mappings-request.js.map +1 -0
- package/lib/request/update-addon-request.d.ts +1 -1
- package/lib/request/update-cluster-endpoint-config-request.d.ts +1 -1
- package/lib/request/update-cluster-request.d.ts +1 -1
- package/lib/request/update-node-pool-request.d.ts +1 -1
- package/lib/request/update-virtual-node-pool-request.d.ts +1 -1
- package/lib/request/update-workload-mapping-request.d.ts +44 -0
- package/lib/request/update-workload-mapping-request.js +15 -0
- package/lib/request/update-workload-mapping-request.js.map +1 -0
- package/lib/response/create-workload-mapping-response.d.ts +29 -0
- package/lib/response/create-workload-mapping-response.js +15 -0
- package/lib/response/create-workload-mapping-response.js.map +1 -0
- package/lib/response/delete-workload-mapping-response.d.ts +20 -0
- package/lib/response/delete-workload-mapping-response.js +15 -0
- package/lib/response/delete-workload-mapping-response.js.map +1 -0
- package/lib/response/get-workload-mapping-response.d.ts +29 -0
- package/lib/response/get-workload-mapping-response.js +15 -0
- package/lib/response/get-workload-mapping-response.js.map +1 -0
- package/lib/response/index.d.ts +10 -0
- package/lib/response/list-workload-mappings-response.d.ts +31 -0
- package/lib/response/list-workload-mappings-response.js +15 -0
- package/lib/response/list-workload-mappings-response.js.map +1 -0
- package/lib/response/update-workload-mapping-response.d.ts +29 -0
- package/lib/response/update-workload-mapping-response.js +15 -0
- package/lib/response/update-workload-mapping-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -183,7 +183,7 @@ class ContainerEngineClient {
|
|
|
183
183
|
* @param ClusterMigrateToNativeVcnRequest
|
|
184
184
|
* @return ClusterMigrateToNativeVcnResponse
|
|
185
185
|
* @throws OciError when an error occurs
|
|
186
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ClusterMigrateToNativeVcn.ts.html |here} to see how to use ClusterMigrateToNativeVcn API.
|
|
187
187
|
*/
|
|
188
188
|
clusterMigrateToNativeVcn(clusterMigrateToNativeVcnRequest) {
|
|
189
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -244,7 +244,7 @@ class ContainerEngineClient {
|
|
|
244
244
|
* @param CreateClusterRequest
|
|
245
245
|
* @return CreateClusterResponse
|
|
246
246
|
* @throws OciError when an error occurs
|
|
247
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
247
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/CreateCluster.ts.html |here} to see how to use CreateCluster API.
|
|
248
248
|
*/
|
|
249
249
|
createCluster(createClusterRequest) {
|
|
250
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -303,7 +303,7 @@ class ContainerEngineClient {
|
|
|
303
303
|
* @param CreateKubeconfigRequest
|
|
304
304
|
* @return CreateKubeconfigResponse
|
|
305
305
|
* @throws OciError when an error occurs
|
|
306
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
306
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/CreateKubeconfig.ts.html |here} to see how to use CreateKubeconfig API.
|
|
307
307
|
*/
|
|
308
308
|
createKubeconfig(createKubeconfigRequest) {
|
|
309
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -361,7 +361,7 @@ class ContainerEngineClient {
|
|
|
361
361
|
* @param CreateNodePoolRequest
|
|
362
362
|
* @return CreateNodePoolResponse
|
|
363
363
|
* @throws OciError when an error occurs
|
|
364
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
364
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/CreateNodePool.ts.html |here} to see how to use CreateNodePool API.
|
|
365
365
|
*/
|
|
366
366
|
createNodePool(createNodePoolRequest) {
|
|
367
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -420,7 +420,7 @@ class ContainerEngineClient {
|
|
|
420
420
|
* @param CreateVirtualNodePoolRequest
|
|
421
421
|
* @return CreateVirtualNodePoolResponse
|
|
422
422
|
* @throws OciError when an error occurs
|
|
423
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/CreateVirtualNodePool.ts.html |here} to see how to use CreateVirtualNodePool API.
|
|
424
424
|
*/
|
|
425
425
|
createVirtualNodePool(createVirtualNodePoolRequest) {
|
|
426
426
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -473,13 +473,78 @@ class ContainerEngineClient {
|
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* Create the specified workloadMapping for a cluster.
|
|
478
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
479
|
+
* @param CreateWorkloadMappingRequest
|
|
480
|
+
* @return CreateWorkloadMappingResponse
|
|
481
|
+
* @throws OciError when an error occurs
|
|
482
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/CreateWorkloadMapping.ts.html |here} to see how to use CreateWorkloadMapping API.
|
|
483
|
+
*/
|
|
484
|
+
createWorkloadMapping(createWorkloadMappingRequest) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
if (this.logger)
|
|
487
|
+
this.logger.debug("Calling operation ContainerEngineClient#createWorkloadMapping.");
|
|
488
|
+
const operationName = "createWorkloadMapping";
|
|
489
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/CreateWorkloadMapping";
|
|
490
|
+
const pathParams = {
|
|
491
|
+
"{clusterId}": createWorkloadMappingRequest.clusterId
|
|
492
|
+
};
|
|
493
|
+
const queryParams = {};
|
|
494
|
+
let headerParams = {
|
|
495
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
496
|
+
"opc-retry-token": createWorkloadMappingRequest.opcRetryToken,
|
|
497
|
+
"opc-request-id": createWorkloadMappingRequest.opcRequestId
|
|
498
|
+
};
|
|
499
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
500
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createWorkloadMappingRequest.retryConfiguration, specRetryConfiguration);
|
|
501
|
+
if (this.logger)
|
|
502
|
+
retrier.logger = this.logger;
|
|
503
|
+
const request = yield oci_common_2.composeRequest({
|
|
504
|
+
baseEndpoint: this._endpoint,
|
|
505
|
+
defaultHeaders: this._defaultHeaders,
|
|
506
|
+
path: "/clusters/{clusterId}/workloadMappings",
|
|
507
|
+
method: "POST",
|
|
508
|
+
bodyContent: common.ObjectSerializer.serialize(createWorkloadMappingRequest.createWorkloadMappingDetails, "CreateWorkloadMappingDetails", model.CreateWorkloadMappingDetails.getJsonObj),
|
|
509
|
+
pathParams: pathParams,
|
|
510
|
+
headerParams: headerParams,
|
|
511
|
+
queryParams: queryParams
|
|
512
|
+
});
|
|
513
|
+
try {
|
|
514
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
515
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
516
|
+
responseObject: {},
|
|
517
|
+
body: yield response.json(),
|
|
518
|
+
bodyKey: "workloadMapping",
|
|
519
|
+
bodyModel: model.WorkloadMapping,
|
|
520
|
+
type: "model.WorkloadMapping",
|
|
521
|
+
responseHeaders: [
|
|
522
|
+
{
|
|
523
|
+
value: response.headers.get("etag"),
|
|
524
|
+
key: "etag",
|
|
525
|
+
dataType: "string"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
value: response.headers.get("opc-request-id"),
|
|
529
|
+
key: "opcRequestId",
|
|
530
|
+
dataType: "string"
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
});
|
|
534
|
+
return sdkResponse;
|
|
535
|
+
}
|
|
536
|
+
catch (err) {
|
|
537
|
+
throw err;
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
476
541
|
/**
|
|
477
542
|
* Delete a cluster.
|
|
478
543
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
479
544
|
* @param DeleteClusterRequest
|
|
480
545
|
* @return DeleteClusterResponse
|
|
481
546
|
* @throws OciError when an error occurs
|
|
482
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
547
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
|
|
483
548
|
*/
|
|
484
549
|
deleteCluster(deleteClusterRequest) {
|
|
485
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -539,7 +604,7 @@ class ContainerEngineClient {
|
|
|
539
604
|
* @param DeleteNodeRequest
|
|
540
605
|
* @return DeleteNodeResponse
|
|
541
606
|
* @throws OciError when an error occurs
|
|
542
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
607
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteNode.ts.html |here} to see how to use DeleteNode API.
|
|
543
608
|
*/
|
|
544
609
|
deleteNode(deleteNodeRequest) {
|
|
545
610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -604,7 +669,7 @@ class ContainerEngineClient {
|
|
|
604
669
|
* @param DeleteNodePoolRequest
|
|
605
670
|
* @return DeleteNodePoolResponse
|
|
606
671
|
* @throws OciError when an error occurs
|
|
607
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
672
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteNodePool.ts.html |here} to see how to use DeleteNodePool API.
|
|
608
673
|
*/
|
|
609
674
|
deleteNodePool(deleteNodePoolRequest) {
|
|
610
675
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -667,7 +732,7 @@ class ContainerEngineClient {
|
|
|
667
732
|
* @param DeleteVirtualNodePoolRequest
|
|
668
733
|
* @return DeleteVirtualNodePoolResponse
|
|
669
734
|
* @throws OciError when an error occurs
|
|
670
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
735
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteVirtualNodePool.ts.html |here} to see how to use DeleteVirtualNodePool API.
|
|
671
736
|
*/
|
|
672
737
|
deleteVirtualNodePool(deleteVirtualNodePoolRequest) {
|
|
673
738
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -730,7 +795,7 @@ class ContainerEngineClient {
|
|
|
730
795
|
* @param DeleteWorkRequestRequest
|
|
731
796
|
* @return DeleteWorkRequestResponse
|
|
732
797
|
* @throws OciError when an error occurs
|
|
733
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
798
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
|
|
734
799
|
*/
|
|
735
800
|
deleteWorkRequest(deleteWorkRequestRequest) {
|
|
736
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -779,13 +844,69 @@ class ContainerEngineClient {
|
|
|
779
844
|
}
|
|
780
845
|
});
|
|
781
846
|
}
|
|
847
|
+
/**
|
|
848
|
+
* Delete workloadMapping for a provisioned cluster.
|
|
849
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
850
|
+
* @param DeleteWorkloadMappingRequest
|
|
851
|
+
* @return DeleteWorkloadMappingResponse
|
|
852
|
+
* @throws OciError when an error occurs
|
|
853
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DeleteWorkloadMapping.ts.html |here} to see how to use DeleteWorkloadMapping API.
|
|
854
|
+
*/
|
|
855
|
+
deleteWorkloadMapping(deleteWorkloadMappingRequest) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
+
if (this.logger)
|
|
858
|
+
this.logger.debug("Calling operation ContainerEngineClient#deleteWorkloadMapping.");
|
|
859
|
+
const operationName = "deleteWorkloadMapping";
|
|
860
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/DeleteWorkloadMapping";
|
|
861
|
+
const pathParams = {
|
|
862
|
+
"{clusterId}": deleteWorkloadMappingRequest.clusterId,
|
|
863
|
+
"{workloadMappingId}": deleteWorkloadMappingRequest.workloadMappingId
|
|
864
|
+
};
|
|
865
|
+
const queryParams = {};
|
|
866
|
+
let headerParams = {
|
|
867
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
868
|
+
"if-match": deleteWorkloadMappingRequest.ifMatch,
|
|
869
|
+
"opc-request-id": deleteWorkloadMappingRequest.opcRequestId
|
|
870
|
+
};
|
|
871
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
872
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteWorkloadMappingRequest.retryConfiguration, specRetryConfiguration);
|
|
873
|
+
if (this.logger)
|
|
874
|
+
retrier.logger = this.logger;
|
|
875
|
+
const request = yield oci_common_2.composeRequest({
|
|
876
|
+
baseEndpoint: this._endpoint,
|
|
877
|
+
defaultHeaders: this._defaultHeaders,
|
|
878
|
+
path: "/clusters/{clusterId}/workloadMappings/{workloadMappingId}",
|
|
879
|
+
method: "DELETE",
|
|
880
|
+
pathParams: pathParams,
|
|
881
|
+
headerParams: headerParams,
|
|
882
|
+
queryParams: queryParams
|
|
883
|
+
});
|
|
884
|
+
try {
|
|
885
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
886
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
887
|
+
responseObject: {},
|
|
888
|
+
responseHeaders: [
|
|
889
|
+
{
|
|
890
|
+
value: response.headers.get("opc-request-id"),
|
|
891
|
+
key: "opcRequestId",
|
|
892
|
+
dataType: "string"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
});
|
|
896
|
+
return sdkResponse;
|
|
897
|
+
}
|
|
898
|
+
catch (err) {
|
|
899
|
+
throw err;
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}
|
|
782
903
|
/**
|
|
783
904
|
* Disable addon for a provisioned cluster.
|
|
784
905
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
785
906
|
* @param DisableAddonRequest
|
|
786
907
|
* @return DisableAddonResponse
|
|
787
908
|
* @throws OciError when an error occurs
|
|
788
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
909
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/DisableAddon.ts.html |here} to see how to use DisableAddon API.
|
|
789
910
|
*/
|
|
790
911
|
disableAddon(disableAddonRequest) {
|
|
791
912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -848,7 +969,7 @@ class ContainerEngineClient {
|
|
|
848
969
|
* @param GetAddonRequest
|
|
849
970
|
* @return GetAddonResponse
|
|
850
971
|
* @throws OciError when an error occurs
|
|
851
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
972
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetAddon.ts.html |here} to see how to use GetAddon API.
|
|
852
973
|
*/
|
|
853
974
|
getAddon(getAddonRequest) {
|
|
854
975
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -912,7 +1033,7 @@ class ContainerEngineClient {
|
|
|
912
1033
|
* @param GetClusterRequest
|
|
913
1034
|
* @return GetClusterResponse
|
|
914
1035
|
* @throws OciError when an error occurs
|
|
915
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1036
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetCluster.ts.html |here} to see how to use GetCluster API.
|
|
916
1037
|
*/
|
|
917
1038
|
getCluster(getClusterRequest) {
|
|
918
1039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -975,7 +1096,7 @@ class ContainerEngineClient {
|
|
|
975
1096
|
* @param GetClusterMigrateToNativeVcnStatusRequest
|
|
976
1097
|
* @return GetClusterMigrateToNativeVcnStatusResponse
|
|
977
1098
|
* @throws OciError when an error occurs
|
|
978
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1099
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetClusterMigrateToNativeVcnStatus.ts.html |here} to see how to use GetClusterMigrateToNativeVcnStatus API.
|
|
979
1100
|
*/
|
|
980
1101
|
getClusterMigrateToNativeVcnStatus(getClusterMigrateToNativeVcnStatusRequest) {
|
|
981
1102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1038,7 +1159,7 @@ class ContainerEngineClient {
|
|
|
1038
1159
|
* @param GetClusterOptionsRequest
|
|
1039
1160
|
* @return GetClusterOptionsResponse
|
|
1040
1161
|
* @throws OciError when an error occurs
|
|
1041
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetClusterOptions.ts.html |here} to see how to use GetClusterOptions API.
|
|
1042
1163
|
*/
|
|
1043
1164
|
getClusterOptions(getClusterOptionsRequest) {
|
|
1044
1165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1098,7 +1219,7 @@ class ContainerEngineClient {
|
|
|
1098
1219
|
* @param GetNodePoolRequest
|
|
1099
1220
|
* @return GetNodePoolResponse
|
|
1100
1221
|
* @throws OciError when an error occurs
|
|
1101
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1222
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetNodePool.ts.html |here} to see how to use GetNodePool API.
|
|
1102
1223
|
*/
|
|
1103
1224
|
getNodePool(getNodePoolRequest) {
|
|
1104
1225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1161,7 +1282,7 @@ class ContainerEngineClient {
|
|
|
1161
1282
|
* @param GetNodePoolOptionsRequest
|
|
1162
1283
|
* @return GetNodePoolOptionsResponse
|
|
1163
1284
|
* @throws OciError when an error occurs
|
|
1164
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1285
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetNodePoolOptions.ts.html |here} to see how to use GetNodePoolOptions API.
|
|
1165
1286
|
*/
|
|
1166
1287
|
getNodePoolOptions(getNodePoolOptionsRequest) {
|
|
1167
1288
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1221,7 +1342,7 @@ class ContainerEngineClient {
|
|
|
1221
1342
|
* @param GetVirtualNodeRequest
|
|
1222
1343
|
* @return GetVirtualNodeResponse
|
|
1223
1344
|
* @throws OciError when an error occurs
|
|
1224
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1345
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetVirtualNode.ts.html |here} to see how to use GetVirtualNode API.
|
|
1225
1346
|
*/
|
|
1226
1347
|
getVirtualNode(getVirtualNodeRequest) {
|
|
1227
1348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1285,7 +1406,7 @@ class ContainerEngineClient {
|
|
|
1285
1406
|
* @param GetVirtualNodePoolRequest
|
|
1286
1407
|
* @return GetVirtualNodePoolResponse
|
|
1287
1408
|
* @throws OciError when an error occurs
|
|
1288
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1409
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetVirtualNodePool.ts.html |here} to see how to use GetVirtualNodePool API.
|
|
1289
1410
|
*/
|
|
1290
1411
|
getVirtualNodePool(getVirtualNodePoolRequest) {
|
|
1291
1412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1348,7 +1469,7 @@ class ContainerEngineClient {
|
|
|
1348
1469
|
* @param GetWorkRequestRequest
|
|
1349
1470
|
* @return GetWorkRequestResponse
|
|
1350
1471
|
* @throws OciError when an error occurs
|
|
1351
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1472
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1352
1473
|
*/
|
|
1353
1474
|
getWorkRequest(getWorkRequestRequest) {
|
|
1354
1475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1410,13 +1531,77 @@ class ContainerEngineClient {
|
|
|
1410
1531
|
}
|
|
1411
1532
|
});
|
|
1412
1533
|
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Get the specified workloadMapping for a cluster.
|
|
1536
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1537
|
+
* @param GetWorkloadMappingRequest
|
|
1538
|
+
* @return GetWorkloadMappingResponse
|
|
1539
|
+
* @throws OciError when an error occurs
|
|
1540
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/GetWorkloadMapping.ts.html |here} to see how to use GetWorkloadMapping API.
|
|
1541
|
+
*/
|
|
1542
|
+
getWorkloadMapping(getWorkloadMappingRequest) {
|
|
1543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1544
|
+
if (this.logger)
|
|
1545
|
+
this.logger.debug("Calling operation ContainerEngineClient#getWorkloadMapping.");
|
|
1546
|
+
const operationName = "getWorkloadMapping";
|
|
1547
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/GetWorkloadMapping";
|
|
1548
|
+
const pathParams = {
|
|
1549
|
+
"{clusterId}": getWorkloadMappingRequest.clusterId,
|
|
1550
|
+
"{workloadMappingId}": getWorkloadMappingRequest.workloadMappingId
|
|
1551
|
+
};
|
|
1552
|
+
const queryParams = {};
|
|
1553
|
+
let headerParams = {
|
|
1554
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1555
|
+
"opc-request-id": getWorkloadMappingRequest.opcRequestId
|
|
1556
|
+
};
|
|
1557
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1558
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkloadMappingRequest.retryConfiguration, specRetryConfiguration);
|
|
1559
|
+
if (this.logger)
|
|
1560
|
+
retrier.logger = this.logger;
|
|
1561
|
+
const request = yield oci_common_2.composeRequest({
|
|
1562
|
+
baseEndpoint: this._endpoint,
|
|
1563
|
+
defaultHeaders: this._defaultHeaders,
|
|
1564
|
+
path: "/clusters/{clusterId}/workloadMappings/{workloadMappingId}",
|
|
1565
|
+
method: "GET",
|
|
1566
|
+
pathParams: pathParams,
|
|
1567
|
+
headerParams: headerParams,
|
|
1568
|
+
queryParams: queryParams
|
|
1569
|
+
});
|
|
1570
|
+
try {
|
|
1571
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1572
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1573
|
+
responseObject: {},
|
|
1574
|
+
body: yield response.json(),
|
|
1575
|
+
bodyKey: "workloadMapping",
|
|
1576
|
+
bodyModel: model.WorkloadMapping,
|
|
1577
|
+
type: "model.WorkloadMapping",
|
|
1578
|
+
responseHeaders: [
|
|
1579
|
+
{
|
|
1580
|
+
value: response.headers.get("etag"),
|
|
1581
|
+
key: "etag",
|
|
1582
|
+
dataType: "string"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
value: response.headers.get("opc-request-id"),
|
|
1586
|
+
key: "opcRequestId",
|
|
1587
|
+
dataType: "string"
|
|
1588
|
+
}
|
|
1589
|
+
]
|
|
1590
|
+
});
|
|
1591
|
+
return sdkResponse;
|
|
1592
|
+
}
|
|
1593
|
+
catch (err) {
|
|
1594
|
+
throw err;
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1413
1598
|
/**
|
|
1414
1599
|
* Install the specified addon for a cluster.
|
|
1415
1600
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1416
1601
|
* @param InstallAddonRequest
|
|
1417
1602
|
* @return InstallAddonResponse
|
|
1418
1603
|
* @throws OciError when an error occurs
|
|
1419
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1604
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/InstallAddon.ts.html |here} to see how to use InstallAddon API.
|
|
1420
1605
|
*/
|
|
1421
1606
|
installAddon(installAddonRequest) {
|
|
1422
1607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1478,7 +1663,7 @@ class ContainerEngineClient {
|
|
|
1478
1663
|
* @param ListAddonOptionsRequest
|
|
1479
1664
|
* @return ListAddonOptionsResponse
|
|
1480
1665
|
* @throws OciError when an error occurs
|
|
1481
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1666
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListAddonOptions.ts.html |here} to see how to use ListAddonOptions API.
|
|
1482
1667
|
*/
|
|
1483
1668
|
listAddonOptions(listAddonOptionsRequest) {
|
|
1484
1669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1586,7 +1771,7 @@ class ContainerEngineClient {
|
|
|
1586
1771
|
* @param ListAddonsRequest
|
|
1587
1772
|
* @return ListAddonsResponse
|
|
1588
1773
|
* @throws OciError when an error occurs
|
|
1589
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1774
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListAddons.ts.html |here} to see how to use ListAddons API.
|
|
1590
1775
|
*/
|
|
1591
1776
|
listAddons(listAddonsRequest) {
|
|
1592
1777
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1694,7 +1879,7 @@ class ContainerEngineClient {
|
|
|
1694
1879
|
* @param ListClustersRequest
|
|
1695
1880
|
* @return ListClustersResponse
|
|
1696
1881
|
* @throws OciError when an error occurs
|
|
1697
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1882
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListClusters.ts.html |here} to see how to use ListClusters API.
|
|
1698
1883
|
*/
|
|
1699
1884
|
listClusters(listClustersRequest) {
|
|
1700
1885
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1803,7 +1988,7 @@ class ContainerEngineClient {
|
|
|
1803
1988
|
* @param ListNodePoolsRequest
|
|
1804
1989
|
* @return ListNodePoolsResponse
|
|
1805
1990
|
* @throws OciError when an error occurs
|
|
1806
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1991
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListNodePools.ts.html |here} to see how to use ListNodePools API.
|
|
1807
1992
|
*/
|
|
1808
1993
|
listNodePools(listNodePoolsRequest) {
|
|
1809
1994
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1913,7 +2098,7 @@ class ContainerEngineClient {
|
|
|
1913
2098
|
* @param ListPodShapesRequest
|
|
1914
2099
|
* @return ListPodShapesResponse
|
|
1915
2100
|
* @throws OciError when an error occurs
|
|
1916
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2101
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListPodShapes.ts.html |here} to see how to use ListPodShapes API.
|
|
1917
2102
|
*/
|
|
1918
2103
|
listPodShapes(listPodShapesRequest) {
|
|
1919
2104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2022,7 +2207,7 @@ class ContainerEngineClient {
|
|
|
2022
2207
|
* @param ListVirtualNodePoolsRequest
|
|
2023
2208
|
* @return ListVirtualNodePoolsResponse
|
|
2024
2209
|
* @throws OciError when an error occurs
|
|
2025
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2210
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListVirtualNodePools.ts.html |here} to see how to use ListVirtualNodePools API.
|
|
2026
2211
|
*/
|
|
2027
2212
|
listVirtualNodePools(listVirtualNodePoolsRequest) {
|
|
2028
2213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2132,7 +2317,7 @@ class ContainerEngineClient {
|
|
|
2132
2317
|
* @param ListVirtualNodesRequest
|
|
2133
2318
|
* @return ListVirtualNodesResponse
|
|
2134
2319
|
* @throws OciError when an error occurs
|
|
2135
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2320
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListVirtualNodes.ts.html |here} to see how to use ListVirtualNodes API.
|
|
2136
2321
|
*/
|
|
2137
2322
|
listVirtualNodes(listVirtualNodesRequest) {
|
|
2138
2323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2241,7 +2426,7 @@ class ContainerEngineClient {
|
|
|
2241
2426
|
* @param ListWorkRequestErrorsRequest
|
|
2242
2427
|
* @return ListWorkRequestErrorsResponse
|
|
2243
2428
|
* @throws OciError when an error occurs
|
|
2244
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2429
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2245
2430
|
*/
|
|
2246
2431
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2247
2432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2301,7 +2486,7 @@ class ContainerEngineClient {
|
|
|
2301
2486
|
* @param ListWorkRequestLogsRequest
|
|
2302
2487
|
* @return ListWorkRequestLogsResponse
|
|
2303
2488
|
* @throws OciError when an error occurs
|
|
2304
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2489
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2305
2490
|
*/
|
|
2306
2491
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2307
2492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2361,7 +2546,7 @@ class ContainerEngineClient {
|
|
|
2361
2546
|
* @param ListWorkRequestsRequest
|
|
2362
2547
|
* @return ListWorkRequestsResponse
|
|
2363
2548
|
* @throws OciError when an error occurs
|
|
2364
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2549
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2365
2550
|
*/
|
|
2366
2551
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2367
2552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2466,13 +2651,121 @@ class ContainerEngineClient {
|
|
|
2466
2651
|
listWorkRequestsResponseIterator(request) {
|
|
2467
2652
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
|
|
2468
2653
|
}
|
|
2654
|
+
/**
|
|
2655
|
+
* List workloadMappings for a provisioned cluster.
|
|
2656
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2657
|
+
* @param ListWorkloadMappingsRequest
|
|
2658
|
+
* @return ListWorkloadMappingsResponse
|
|
2659
|
+
* @throws OciError when an error occurs
|
|
2660
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/ListWorkloadMappings.ts.html |here} to see how to use ListWorkloadMappings API.
|
|
2661
|
+
*/
|
|
2662
|
+
listWorkloadMappings(listWorkloadMappingsRequest) {
|
|
2663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2664
|
+
if (this.logger)
|
|
2665
|
+
this.logger.debug("Calling operation ContainerEngineClient#listWorkloadMappings.");
|
|
2666
|
+
const operationName = "listWorkloadMappings";
|
|
2667
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMappingSummary/ListWorkloadMappings";
|
|
2668
|
+
const pathParams = {
|
|
2669
|
+
"{clusterId}": listWorkloadMappingsRequest.clusterId
|
|
2670
|
+
};
|
|
2671
|
+
const queryParams = {
|
|
2672
|
+
"limit": listWorkloadMappingsRequest.limit,
|
|
2673
|
+
"page": listWorkloadMappingsRequest.page,
|
|
2674
|
+
"sortOrder": listWorkloadMappingsRequest.sortOrder,
|
|
2675
|
+
"sortBy": listWorkloadMappingsRequest.sortBy
|
|
2676
|
+
};
|
|
2677
|
+
let headerParams = {
|
|
2678
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2679
|
+
"opc-request-id": listWorkloadMappingsRequest.opcRequestId
|
|
2680
|
+
};
|
|
2681
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2682
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkloadMappingsRequest.retryConfiguration, specRetryConfiguration);
|
|
2683
|
+
if (this.logger)
|
|
2684
|
+
retrier.logger = this.logger;
|
|
2685
|
+
const request = yield oci_common_2.composeRequest({
|
|
2686
|
+
baseEndpoint: this._endpoint,
|
|
2687
|
+
defaultHeaders: this._defaultHeaders,
|
|
2688
|
+
path: "/clusters/{clusterId}/workloadMappings",
|
|
2689
|
+
method: "GET",
|
|
2690
|
+
pathParams: pathParams,
|
|
2691
|
+
headerParams: headerParams,
|
|
2692
|
+
queryParams: queryParams
|
|
2693
|
+
});
|
|
2694
|
+
try {
|
|
2695
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2696
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2697
|
+
responseObject: {},
|
|
2698
|
+
body: yield response.json(),
|
|
2699
|
+
bodyKey: "items",
|
|
2700
|
+
bodyModel: model.WorkloadMappingSummary,
|
|
2701
|
+
type: "Array<model.WorkloadMappingSummary>",
|
|
2702
|
+
responseHeaders: [
|
|
2703
|
+
{
|
|
2704
|
+
value: response.headers.get("opc-next-page"),
|
|
2705
|
+
key: "opcNextPage",
|
|
2706
|
+
dataType: "string"
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
value: response.headers.get("opc-request-id"),
|
|
2710
|
+
key: "opcRequestId",
|
|
2711
|
+
dataType: "string"
|
|
2712
|
+
}
|
|
2713
|
+
]
|
|
2714
|
+
});
|
|
2715
|
+
return sdkResponse;
|
|
2716
|
+
}
|
|
2717
|
+
catch (err) {
|
|
2718
|
+
throw err;
|
|
2719
|
+
}
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
/**
|
|
2723
|
+
* NOTE: This function is deprecated in favor of listWorkloadMappingsRecordIterator function.
|
|
2724
|
+
* Creates a new async iterator which will iterate over the models.WorkloadMappingSummary objects
|
|
2725
|
+
* contained in responses from the listWorkloadMappings operation. This iterator will fetch more data from the
|
|
2726
|
+
* server as needed.
|
|
2727
|
+
*
|
|
2728
|
+
* @param request a request which can be sent to the service operation
|
|
2729
|
+
*/
|
|
2730
|
+
listAllWorkloadMappings(request) {
|
|
2731
|
+
return oci_common_1.paginateRecords(request, req => this.listWorkloadMappings(req));
|
|
2732
|
+
}
|
|
2733
|
+
/**
|
|
2734
|
+
* NOTE: This function is deprecated in favor of listWorkloadMappingsResponseIterator function.
|
|
2735
|
+
* Creates a new async iterator which will iterate over the responses received from the listWorkloadMappings operation. This iterator
|
|
2736
|
+
* will fetch more data from the server as needed.
|
|
2737
|
+
*
|
|
2738
|
+
* @param request a request which can be sent to the service operation
|
|
2739
|
+
*/
|
|
2740
|
+
listAllWorkloadMappingsResponses(request) {
|
|
2741
|
+
return oci_common_1.paginateResponses(request, req => this.listWorkloadMappings(req));
|
|
2742
|
+
}
|
|
2743
|
+
/**
|
|
2744
|
+
* Creates a new async iterator which will iterate over the models.WorkloadMappingSummary objects
|
|
2745
|
+
* contained in responses from the listWorkloadMappings operation. This iterator will fetch more data from the
|
|
2746
|
+
* server as needed.
|
|
2747
|
+
*
|
|
2748
|
+
* @param request a request which can be sent to the service operation
|
|
2749
|
+
*/
|
|
2750
|
+
listWorkloadMappingsRecordIterator(request) {
|
|
2751
|
+
return oci_common_1.paginateRecords(request, req => this.listWorkloadMappings(req));
|
|
2752
|
+
}
|
|
2753
|
+
/**
|
|
2754
|
+
* Creates a new async iterator which will iterate over the responses received from the listWorkloadMappings operation. This iterator
|
|
2755
|
+
* will fetch more data from the server as needed.
|
|
2756
|
+
*
|
|
2757
|
+
* @param request a request which can be sent to the service operation
|
|
2758
|
+
*/
|
|
2759
|
+
listWorkloadMappingsResponseIterator(request) {
|
|
2760
|
+
return oci_common_1.paginateResponses(request, req => this.listWorkloadMappings(req));
|
|
2761
|
+
}
|
|
2469
2762
|
/**
|
|
2470
2763
|
* Update addon details for a cluster.
|
|
2471
2764
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2472
2765
|
* @param UpdateAddonRequest
|
|
2473
2766
|
* @return UpdateAddonResponse
|
|
2474
2767
|
* @throws OciError when an error occurs
|
|
2475
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2768
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateAddon.ts.html |here} to see how to use UpdateAddon API.
|
|
2476
2769
|
*/
|
|
2477
2770
|
updateAddon(updateAddonRequest) {
|
|
2478
2771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2534,7 +2827,7 @@ class ContainerEngineClient {
|
|
|
2534
2827
|
* @param UpdateClusterRequest
|
|
2535
2828
|
* @return UpdateClusterResponse
|
|
2536
2829
|
* @throws OciError when an error occurs
|
|
2537
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
|
|
2538
2831
|
*/
|
|
2539
2832
|
updateCluster(updateClusterRequest) {
|
|
2540
2833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2595,7 +2888,7 @@ class ContainerEngineClient {
|
|
|
2595
2888
|
* @param UpdateClusterEndpointConfigRequest
|
|
2596
2889
|
* @return UpdateClusterEndpointConfigResponse
|
|
2597
2890
|
* @throws OciError when an error occurs
|
|
2598
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2891
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateClusterEndpointConfig.ts.html |here} to see how to use UpdateClusterEndpointConfig API.
|
|
2599
2892
|
*/
|
|
2600
2893
|
updateClusterEndpointConfig(updateClusterEndpointConfigRequest) {
|
|
2601
2894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2656,7 +2949,7 @@ class ContainerEngineClient {
|
|
|
2656
2949
|
* @param UpdateNodePoolRequest
|
|
2657
2950
|
* @return UpdateNodePoolResponse
|
|
2658
2951
|
* @throws OciError when an error occurs
|
|
2659
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2952
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateNodePool.ts.html |here} to see how to use UpdateNodePool API.
|
|
2660
2953
|
*/
|
|
2661
2954
|
updateNodePool(updateNodePoolRequest) {
|
|
2662
2955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2720,7 +3013,7 @@ class ContainerEngineClient {
|
|
|
2720
3013
|
* @param UpdateVirtualNodePoolRequest
|
|
2721
3014
|
* @return UpdateVirtualNodePoolResponse
|
|
2722
3015
|
* @throws OciError when an error occurs
|
|
2723
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3016
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateVirtualNodePool.ts.html |here} to see how to use UpdateVirtualNodePool API.
|
|
2724
3017
|
*/
|
|
2725
3018
|
updateVirtualNodePool(updateVirtualNodePoolRequest) {
|
|
2726
3019
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2775,6 +3068,72 @@ class ContainerEngineClient {
|
|
|
2775
3068
|
}
|
|
2776
3069
|
});
|
|
2777
3070
|
}
|
|
3071
|
+
/**
|
|
3072
|
+
* Update workloadMapping details for a cluster.
|
|
3073
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3074
|
+
* @param UpdateWorkloadMappingRequest
|
|
3075
|
+
* @return UpdateWorkloadMappingResponse
|
|
3076
|
+
* @throws OciError when an error occurs
|
|
3077
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/containerengine/UpdateWorkloadMapping.ts.html |here} to see how to use UpdateWorkloadMapping API.
|
|
3078
|
+
*/
|
|
3079
|
+
updateWorkloadMapping(updateWorkloadMappingRequest) {
|
|
3080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3081
|
+
if (this.logger)
|
|
3082
|
+
this.logger.debug("Calling operation ContainerEngineClient#updateWorkloadMapping.");
|
|
3083
|
+
const operationName = "updateWorkloadMapping";
|
|
3084
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/UpdateWorkloadMapping";
|
|
3085
|
+
const pathParams = {
|
|
3086
|
+
"{clusterId}": updateWorkloadMappingRequest.clusterId,
|
|
3087
|
+
"{workloadMappingId}": updateWorkloadMappingRequest.workloadMappingId
|
|
3088
|
+
};
|
|
3089
|
+
const queryParams = {};
|
|
3090
|
+
let headerParams = {
|
|
3091
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3092
|
+
"if-match": updateWorkloadMappingRequest.ifMatch,
|
|
3093
|
+
"opc-request-id": updateWorkloadMappingRequest.opcRequestId
|
|
3094
|
+
};
|
|
3095
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3096
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateWorkloadMappingRequest.retryConfiguration, specRetryConfiguration);
|
|
3097
|
+
if (this.logger)
|
|
3098
|
+
retrier.logger = this.logger;
|
|
3099
|
+
const request = yield oci_common_2.composeRequest({
|
|
3100
|
+
baseEndpoint: this._endpoint,
|
|
3101
|
+
defaultHeaders: this._defaultHeaders,
|
|
3102
|
+
path: "/clusters/{clusterId}/workloadMappings/{workloadMappingId}",
|
|
3103
|
+
method: "PUT",
|
|
3104
|
+
bodyContent: common.ObjectSerializer.serialize(updateWorkloadMappingRequest.updateWorkloadMappingDetails, "UpdateWorkloadMappingDetails", model.UpdateWorkloadMappingDetails.getJsonObj),
|
|
3105
|
+
pathParams: pathParams,
|
|
3106
|
+
headerParams: headerParams,
|
|
3107
|
+
queryParams: queryParams
|
|
3108
|
+
});
|
|
3109
|
+
try {
|
|
3110
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3111
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3112
|
+
responseObject: {},
|
|
3113
|
+
body: yield response.json(),
|
|
3114
|
+
bodyKey: "workloadMapping",
|
|
3115
|
+
bodyModel: model.WorkloadMapping,
|
|
3116
|
+
type: "model.WorkloadMapping",
|
|
3117
|
+
responseHeaders: [
|
|
3118
|
+
{
|
|
3119
|
+
value: response.headers.get("etag"),
|
|
3120
|
+
key: "etag",
|
|
3121
|
+
dataType: "string"
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
value: response.headers.get("opc-request-id"),
|
|
3125
|
+
key: "opcRequestId",
|
|
3126
|
+
dataType: "string"
|
|
3127
|
+
}
|
|
3128
|
+
]
|
|
3129
|
+
});
|
|
3130
|
+
return sdkResponse;
|
|
3131
|
+
}
|
|
3132
|
+
catch (err) {
|
|
3133
|
+
throw err;
|
|
3134
|
+
}
|
|
3135
|
+
});
|
|
3136
|
+
}
|
|
2778
3137
|
}
|
|
2779
3138
|
exports.ContainerEngineClient = ContainerEngineClient;
|
|
2780
3139
|
ContainerEngineClient.serviceEndpointTemplate = "https://containerengine.{region}.oci.{secondLevelDomain}";
|