oci-clusterplacementgroups 2.85.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 +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +220 -0
- package/lib/client.js +1064 -0
- package/lib/client.js.map +1 -0
- package/lib/clusterplacementgroupscp-waiter.d.ts +36 -0
- package/lib/clusterplacementgroupscp-waiter.js +76 -0
- package/lib/clusterplacementgroupscp-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/capabilities-collection.d.ts +27 -0
- package/lib/model/capabilities-collection.js +61 -0
- package/lib/model/capabilities-collection.js.map +1 -0
- package/lib/model/capability-details.d.ts +29 -0
- package/lib/model/capability-details.js +29 -0
- package/lib/model/capability-details.js.map +1 -0
- package/lib/model/change-cluster-placement-group-compartment-details.d.ts +27 -0
- package/lib/model/change-cluster-placement-group-compartment-details.js +29 -0
- package/lib/model/change-cluster-placement-group-compartment-details.js.map +1 -0
- package/lib/model/cluster-placement-group-collection.d.ts +27 -0
- package/lib/model/cluster-placement-group-collection.js +61 -0
- package/lib/model/cluster-placement-group-collection.js.map +1 -0
- package/lib/model/cluster-placement-group-summary.d.ts +88 -0
- package/lib/model/cluster-placement-group-summary.js +29 -0
- package/lib/model/cluster-placement-group-summary.js.map +1 -0
- package/lib/model/cluster-placement-group-type.d.ts +28 -0
- package/lib/model/cluster-placement-group-type.js +39 -0
- package/lib/model/cluster-placement-group-type.js.map +1 -0
- package/lib/model/cluster-placement-group.d.ts +111 -0
- package/lib/model/cluster-placement-group.js +78 -0
- package/lib/model/cluster-placement-group.js.map +1 -0
- package/lib/model/create-cluster-placement-group-details.d.ts +63 -0
- package/lib/model/create-cluster-placement-group-details.js +63 -0
- package/lib/model/create-cluster-placement-group-details.js.map +1 -0
- package/lib/model/index.d.ts +58 -0
- package/lib/model/index.js +81 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +30 -0
- package/lib/model/operation-type.js +41 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/placement-instruction-details.d.ts +37 -0
- package/lib/model/placement-instruction-details.js +38 -0
- package/lib/model/placement-instruction-details.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-cluster-placement-group-details.d.ts +43 -0
- package/lib/model/update-cluster-placement-group-details.js +29 -0
- package/lib/model/update-cluster-placement-group-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +72 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +72 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/activate-cluster-placement-group-request.d.ts +44 -0
- package/lib/request/activate-cluster-placement-group-request.js +15 -0
- package/lib/request/activate-cluster-placement-group-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-cluster-placement-group-compartment-request.d.ts +49 -0
- package/lib/request/change-cluster-placement-group-compartment-request.js +15 -0
- package/lib/request/change-cluster-placement-group-compartment-request.js.map +1 -0
- package/lib/request/create-cluster-placement-group-request.d.ts +41 -0
- package/lib/request/create-cluster-placement-group-request.js +15 -0
- package/lib/request/create-cluster-placement-group-request.js.map +1 -0
- package/lib/request/deactivate-cluster-placement-group-request.d.ts +44 -0
- package/lib/request/deactivate-cluster-placement-group-request.js +15 -0
- package/lib/request/deactivate-cluster-placement-group-request.js.map +1 -0
- package/lib/request/delete-cluster-placement-group-request.d.ts +35 -0
- package/lib/request/delete-cluster-placement-group-request.js +15 -0
- package/lib/request/delete-cluster-placement-group-request.js.map +1 -0
- package/lib/request/get-cluster-placement-group-request.d.ts +26 -0
- package/lib/request/get-cluster-placement-group-request.js +15 -0
- package/lib/request/get-cluster-placement-group-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +38 -0
- package/lib/request/index.js +43 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-cluster-placement-groups-request.d.ts +73 -0
- package/lib/request/list-cluster-placement-groups-request.js +25 -0
- package/lib/request/list-cluster-placement-groups-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +62 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-cluster-placement-group-request.d.ts +40 -0
- package/lib/request/update-cluster-placement-group-request.js +15 -0
- package/lib/request/update-cluster-placement-group-request.js.map +1 -0
- package/lib/response/activate-cluster-placement-group-response.d.ts +30 -0
- package/lib/response/activate-cluster-placement-group-response.js +15 -0
- package/lib/response/activate-cluster-placement-group-response.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-cluster-placement-group-compartment-response.d.ts +20 -0
- package/lib/response/change-cluster-placement-group-compartment-response.js +15 -0
- package/lib/response/change-cluster-placement-group-compartment-response.js.map +1 -0
- package/lib/response/create-cluster-placement-group-response.d.ts +43 -0
- package/lib/response/create-cluster-placement-group-response.js +15 -0
- package/lib/response/create-cluster-placement-group-response.js.map +1 -0
- package/lib/response/deactivate-cluster-placement-group-response.d.ts +30 -0
- package/lib/response/deactivate-cluster-placement-group-response.js +15 -0
- package/lib/response/deactivate-cluster-placement-group-response.js.map +1 -0
- package/lib/response/delete-cluster-placement-group-response.d.ts +25 -0
- package/lib/response/delete-cluster-placement-group-response.js +15 -0
- package/lib/response/delete-cluster-placement-group-response.js.map +1 -0
- package/lib/response/get-cluster-placement-group-response.d.ts +30 -0
- package/lib/response/get-cluster-placement-group-response.js +15 -0
- package/lib/response/get-cluster-placement-group-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +38 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-cluster-placement-groups-response.d.ts +32 -0
- package/lib/response/list-cluster-placement-groups-response.js +15 -0
- package/lib/response/list-cluster-placement-groups-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-cluster-placement-group-response.d.ts +25 -0
- package/lib/response/update-cluster-placement-group-response.js +15 -0
- package/lib/response/update-cluster-placement-group-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1064 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cluster Placement Groups API
|
|
4
|
+
* API for managing cluster placement groups.
|
|
5
|
+
* OpenAPI spec version: 20230801
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.ClusterPlacementGroupsCPClient = exports.ClusterPlacementGroupsCPApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const clusterplacementgroupscp_waiter_1 = require("./clusterplacementgroupscp-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
var ClusterPlacementGroupsCPApiKeys;
|
|
53
|
+
(function (ClusterPlacementGroupsCPApiKeys) {
|
|
54
|
+
})(ClusterPlacementGroupsCPApiKeys = exports.ClusterPlacementGroupsCPApiKeys || (exports.ClusterPlacementGroupsCPApiKeys = {}));
|
|
55
|
+
/**
|
|
56
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
57
|
+
*/
|
|
58
|
+
class ClusterPlacementGroupsCPClient {
|
|
59
|
+
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
61
|
+
this["_endpoint"] = "";
|
|
62
|
+
this["_defaultHeaders"] = {};
|
|
63
|
+
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
65
|
+
this._bodyDuplexMode = undefined;
|
|
66
|
+
this.targetService = "ClusterPlacementGroupsCP";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
if (clientConfiguration) {
|
|
73
|
+
this._clientConfiguration = clientConfiguration;
|
|
74
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
75
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
76
|
+
: null;
|
|
77
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
78
|
+
? clientConfiguration.httpOptions
|
|
79
|
+
: undefined;
|
|
80
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
81
|
+
? clientConfiguration.bodyDuplexMode
|
|
82
|
+
: undefined;
|
|
83
|
+
}
|
|
84
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("clusterplacementgroups")) {
|
|
85
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
86
|
+
throw errmsg.concat("clusterplacementgroups");
|
|
87
|
+
}
|
|
88
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
89
|
+
const specCircuitBreakerEnabled = true;
|
|
90
|
+
if (!this._circuitBreaker &&
|
|
91
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
92
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
93
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
94
|
+
}
|
|
95
|
+
this._httpClient =
|
|
96
|
+
params.httpClient ||
|
|
97
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
98
|
+
if (params.authenticationDetailsProvider &&
|
|
99
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
100
|
+
const provider = params.authenticationDetailsProvider;
|
|
101
|
+
if (provider.getRegion()) {
|
|
102
|
+
this.region = provider.getRegion();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
108
|
+
*/
|
|
109
|
+
get endpoint() {
|
|
110
|
+
return this._endpoint;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
114
|
+
* @param endpoint The endpoint of the service.
|
|
115
|
+
*/
|
|
116
|
+
set endpoint(endpoint) {
|
|
117
|
+
this._endpoint = endpoint;
|
|
118
|
+
this._endpoint = this._endpoint + "/20230801";
|
|
119
|
+
if (this.logger)
|
|
120
|
+
this.logger.info(`ClusterPlacementGroupsCPClient endpoint set to ${this._endpoint}`);
|
|
121
|
+
}
|
|
122
|
+
get logger() {
|
|
123
|
+
return common.LOG.logger;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
127
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
128
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
129
|
+
*/
|
|
130
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
131
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
132
|
+
if (this.logger)
|
|
133
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
134
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
135
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ClusterPlacementGroupsCPClient.serviceEndpointTemplate, this._region, ClusterPlacementGroupsCPClient.endpointServiceName);
|
|
136
|
+
}
|
|
137
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
138
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ClusterPlacementGroupsCPClient.serviceEndpointTemplate, this._regionId, ClusterPlacementGroupsCPClient.endpointServiceName);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
143
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
144
|
+
* @param region The region of the service.
|
|
145
|
+
*/
|
|
146
|
+
set region(region) {
|
|
147
|
+
this._region = region;
|
|
148
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ClusterPlacementGroupsCPClient.serviceEndpointTemplate, region, ClusterPlacementGroupsCPClient.endpointServiceName);
|
|
149
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
153
|
+
*
|
|
154
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
155
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
156
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
157
|
+
* @param regionId The public region ID.
|
|
158
|
+
*/
|
|
159
|
+
set regionId(regionId) {
|
|
160
|
+
this._regionId = regionId;
|
|
161
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ClusterPlacementGroupsCPClient.serviceEndpointTemplate, regionId, ClusterPlacementGroupsCPClient.endpointServiceName);
|
|
162
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new ClusterPlacementGroupsCPWaiter for resources for this service.
|
|
166
|
+
*
|
|
167
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
168
|
+
* @return The service waiters.
|
|
169
|
+
*/
|
|
170
|
+
createWaiters(config) {
|
|
171
|
+
this._waiters = new clusterplacementgroupscp_waiter_1.ClusterPlacementGroupsCPWaiter(this, config);
|
|
172
|
+
return this._waiters;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the waiters available for resources for this service.
|
|
176
|
+
*
|
|
177
|
+
* @return The service waiters.
|
|
178
|
+
*/
|
|
179
|
+
getWaiters() {
|
|
180
|
+
if (this._waiters) {
|
|
181
|
+
return this._waiters;
|
|
182
|
+
}
|
|
183
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
187
|
+
*/
|
|
188
|
+
shutdownCircuitBreaker() {
|
|
189
|
+
if (this._circuitBreaker) {
|
|
190
|
+
this._circuitBreaker.shutdown();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Close the client once it is no longer needed
|
|
195
|
+
*/
|
|
196
|
+
close() {
|
|
197
|
+
this.shutdownCircuitBreaker();
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Activates the specified, previously deactivated cluster placement group to let resources be created in it.
|
|
201
|
+
*
|
|
202
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
203
|
+
* @param ActivateClusterPlacementGroupRequest
|
|
204
|
+
* @return ActivateClusterPlacementGroupResponse
|
|
205
|
+
* @throws OciError when an error occurs
|
|
206
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ActivateClusterPlacementGroup.ts.html |here} to see how to use ActivateClusterPlacementGroup API.
|
|
207
|
+
*/
|
|
208
|
+
activateClusterPlacementGroup(activateClusterPlacementGroupRequest) {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
if (this.logger)
|
|
211
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#activateClusterPlacementGroup.");
|
|
212
|
+
const operationName = "activateClusterPlacementGroup";
|
|
213
|
+
const apiReferenceLink = "";
|
|
214
|
+
const pathParams = {
|
|
215
|
+
"{clusterPlacementGroupId}": activateClusterPlacementGroupRequest.clusterPlacementGroupId
|
|
216
|
+
};
|
|
217
|
+
const queryParams = {};
|
|
218
|
+
let headerParams = {
|
|
219
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
220
|
+
"if-match": activateClusterPlacementGroupRequest.ifMatch,
|
|
221
|
+
"opc-request-id": activateClusterPlacementGroupRequest.opcRequestId,
|
|
222
|
+
"opc-retry-token": activateClusterPlacementGroupRequest.opcRetryToken
|
|
223
|
+
};
|
|
224
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
225
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
226
|
+
if (this.logger)
|
|
227
|
+
retrier.logger = this.logger;
|
|
228
|
+
const request = yield oci_common_1.composeRequest({
|
|
229
|
+
baseEndpoint: this._endpoint,
|
|
230
|
+
defaultHeaders: this._defaultHeaders,
|
|
231
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/activate",
|
|
232
|
+
method: "POST",
|
|
233
|
+
pathParams: pathParams,
|
|
234
|
+
headerParams: headerParams,
|
|
235
|
+
queryParams: queryParams
|
|
236
|
+
});
|
|
237
|
+
try {
|
|
238
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
239
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
240
|
+
responseObject: {},
|
|
241
|
+
body: yield response.json(),
|
|
242
|
+
bodyKey: "clusterPlacementGroup",
|
|
243
|
+
bodyModel: model.ClusterPlacementGroup,
|
|
244
|
+
type: "model.ClusterPlacementGroup",
|
|
245
|
+
responseHeaders: [
|
|
246
|
+
{
|
|
247
|
+
value: response.headers.get("etag"),
|
|
248
|
+
key: "etag",
|
|
249
|
+
dataType: "string"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
value: response.headers.get("opc-request-id"),
|
|
253
|
+
key: "opcRequestId",
|
|
254
|
+
dataType: "string"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
return sdkResponse;
|
|
259
|
+
}
|
|
260
|
+
catch (err) {
|
|
261
|
+
throw err;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Cancels the work request with the specified ID.
|
|
267
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
268
|
+
* @param CancelWorkRequestRequest
|
|
269
|
+
* @return CancelWorkRequestResponse
|
|
270
|
+
* @throws OciError when an error occurs
|
|
271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
272
|
+
*/
|
|
273
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
if (this.logger)
|
|
276
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#cancelWorkRequest.");
|
|
277
|
+
const operationName = "cancelWorkRequest";
|
|
278
|
+
const apiReferenceLink = "";
|
|
279
|
+
const pathParams = {
|
|
280
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
281
|
+
};
|
|
282
|
+
const queryParams = {};
|
|
283
|
+
let headerParams = {
|
|
284
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
285
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
286
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
287
|
+
};
|
|
288
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
289
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
290
|
+
if (this.logger)
|
|
291
|
+
retrier.logger = this.logger;
|
|
292
|
+
const request = yield oci_common_1.composeRequest({
|
|
293
|
+
baseEndpoint: this._endpoint,
|
|
294
|
+
defaultHeaders: this._defaultHeaders,
|
|
295
|
+
path: "/workRequests/{workRequestId}",
|
|
296
|
+
method: "DELETE",
|
|
297
|
+
pathParams: pathParams,
|
|
298
|
+
headerParams: headerParams,
|
|
299
|
+
queryParams: queryParams
|
|
300
|
+
});
|
|
301
|
+
try {
|
|
302
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
303
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
304
|
+
responseObject: {},
|
|
305
|
+
responseHeaders: [
|
|
306
|
+
{
|
|
307
|
+
value: response.headers.get("opc-request-id"),
|
|
308
|
+
key: "opcRequestId",
|
|
309
|
+
dataType: "string"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
});
|
|
313
|
+
return sdkResponse;
|
|
314
|
+
}
|
|
315
|
+
catch (err) {
|
|
316
|
+
throw err;
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Moves a cluster placement group resource from one compartment to another in the same tenancy. For information about
|
|
322
|
+
* moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
323
|
+
* <p>
|
|
324
|
+
When provided, If-Match is checked against ETag values of the resource.
|
|
325
|
+
*
|
|
326
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
327
|
+
* @param ChangeClusterPlacementGroupCompartmentRequest
|
|
328
|
+
* @return ChangeClusterPlacementGroupCompartmentResponse
|
|
329
|
+
* @throws OciError when an error occurs
|
|
330
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ChangeClusterPlacementGroupCompartment.ts.html |here} to see how to use ChangeClusterPlacementGroupCompartment API.
|
|
331
|
+
*/
|
|
332
|
+
changeClusterPlacementGroupCompartment(changeClusterPlacementGroupCompartmentRequest) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
if (this.logger)
|
|
335
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#changeClusterPlacementGroupCompartment.");
|
|
336
|
+
const operationName = "changeClusterPlacementGroupCompartment";
|
|
337
|
+
const apiReferenceLink = "";
|
|
338
|
+
const pathParams = {
|
|
339
|
+
"{clusterPlacementGroupId}": changeClusterPlacementGroupCompartmentRequest.clusterPlacementGroupId
|
|
340
|
+
};
|
|
341
|
+
const queryParams = {};
|
|
342
|
+
let headerParams = {
|
|
343
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
344
|
+
"if-match": changeClusterPlacementGroupCompartmentRequest.ifMatch,
|
|
345
|
+
"opc-request-id": changeClusterPlacementGroupCompartmentRequest.opcRequestId,
|
|
346
|
+
"opc-retry-token": changeClusterPlacementGroupCompartmentRequest.opcRetryToken
|
|
347
|
+
};
|
|
348
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
349
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeClusterPlacementGroupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
350
|
+
if (this.logger)
|
|
351
|
+
retrier.logger = this.logger;
|
|
352
|
+
const request = yield oci_common_1.composeRequest({
|
|
353
|
+
baseEndpoint: this._endpoint,
|
|
354
|
+
defaultHeaders: this._defaultHeaders,
|
|
355
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/changeCompartment",
|
|
356
|
+
method: "POST",
|
|
357
|
+
bodyContent: common.ObjectSerializer.serialize(changeClusterPlacementGroupCompartmentRequest.changeClusterPlacementGroupCompartmentDetails, "ChangeClusterPlacementGroupCompartmentDetails", model.ChangeClusterPlacementGroupCompartmentDetails.getJsonObj),
|
|
358
|
+
pathParams: pathParams,
|
|
359
|
+
headerParams: headerParams,
|
|
360
|
+
queryParams: queryParams
|
|
361
|
+
});
|
|
362
|
+
try {
|
|
363
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
364
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
365
|
+
responseObject: {},
|
|
366
|
+
responseHeaders: [
|
|
367
|
+
{
|
|
368
|
+
value: response.headers.get("opc-request-id"),
|
|
369
|
+
key: "opcRequestId",
|
|
370
|
+
dataType: "string"
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
});
|
|
374
|
+
return sdkResponse;
|
|
375
|
+
}
|
|
376
|
+
catch (err) {
|
|
377
|
+
throw err;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Creates a new cluster placement group in the specified compartment.
|
|
383
|
+
*
|
|
384
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
385
|
+
* @param CreateClusterPlacementGroupRequest
|
|
386
|
+
* @return CreateClusterPlacementGroupResponse
|
|
387
|
+
* @throws OciError when an error occurs
|
|
388
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/CreateClusterPlacementGroup.ts.html |here} to see how to use CreateClusterPlacementGroup API.
|
|
389
|
+
*/
|
|
390
|
+
createClusterPlacementGroup(createClusterPlacementGroupRequest) {
|
|
391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
+
if (this.logger)
|
|
393
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#createClusterPlacementGroup.");
|
|
394
|
+
const operationName = "createClusterPlacementGroup";
|
|
395
|
+
const apiReferenceLink = "";
|
|
396
|
+
const pathParams = {};
|
|
397
|
+
const queryParams = {};
|
|
398
|
+
let headerParams = {
|
|
399
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
400
|
+
"opc-retry-token": createClusterPlacementGroupRequest.opcRetryToken,
|
|
401
|
+
"opc-request-id": createClusterPlacementGroupRequest.opcRequestId,
|
|
402
|
+
"opc-dry-run": createClusterPlacementGroupRequest.opcDryRun
|
|
403
|
+
};
|
|
404
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
405
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
406
|
+
if (this.logger)
|
|
407
|
+
retrier.logger = this.logger;
|
|
408
|
+
const request = yield oci_common_1.composeRequest({
|
|
409
|
+
baseEndpoint: this._endpoint,
|
|
410
|
+
defaultHeaders: this._defaultHeaders,
|
|
411
|
+
path: "/clusterPlacementGroups",
|
|
412
|
+
method: "POST",
|
|
413
|
+
bodyContent: common.ObjectSerializer.serialize(createClusterPlacementGroupRequest.createClusterPlacementGroupDetails, "CreateClusterPlacementGroupDetails", model.CreateClusterPlacementGroupDetails.getJsonObj),
|
|
414
|
+
pathParams: pathParams,
|
|
415
|
+
headerParams: headerParams,
|
|
416
|
+
queryParams: queryParams
|
|
417
|
+
});
|
|
418
|
+
try {
|
|
419
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
420
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
421
|
+
responseObject: {},
|
|
422
|
+
body: yield response.json(),
|
|
423
|
+
bodyKey: "clusterPlacementGroup",
|
|
424
|
+
bodyModel: model.ClusterPlacementGroup,
|
|
425
|
+
type: "model.ClusterPlacementGroup",
|
|
426
|
+
responseHeaders: [
|
|
427
|
+
{
|
|
428
|
+
value: response.headers.get("location"),
|
|
429
|
+
key: "location",
|
|
430
|
+
dataType: "string"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
value: response.headers.get("content-location"),
|
|
434
|
+
key: "contentLocation",
|
|
435
|
+
dataType: "string"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
value: response.headers.get("etag"),
|
|
439
|
+
key: "etag",
|
|
440
|
+
dataType: "string"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
value: response.headers.get("opc-work-request-id"),
|
|
444
|
+
key: "opcWorkRequestId",
|
|
445
|
+
dataType: "string"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
value: response.headers.get("opc-request-id"),
|
|
449
|
+
key: "opcRequestId",
|
|
450
|
+
dataType: "string"
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
});
|
|
454
|
+
return sdkResponse;
|
|
455
|
+
}
|
|
456
|
+
catch (err) {
|
|
457
|
+
throw err;
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Deactivates the specified cluster placement group to prevent new resources from being created in it.
|
|
463
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
464
|
+
* @param DeactivateClusterPlacementGroupRequest
|
|
465
|
+
* @return DeactivateClusterPlacementGroupResponse
|
|
466
|
+
* @throws OciError when an error occurs
|
|
467
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/DeactivateClusterPlacementGroup.ts.html |here} to see how to use DeactivateClusterPlacementGroup API.
|
|
468
|
+
*/
|
|
469
|
+
deactivateClusterPlacementGroup(deactivateClusterPlacementGroupRequest) {
|
|
470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
+
if (this.logger)
|
|
472
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#deactivateClusterPlacementGroup.");
|
|
473
|
+
const operationName = "deactivateClusterPlacementGroup";
|
|
474
|
+
const apiReferenceLink = "";
|
|
475
|
+
const pathParams = {
|
|
476
|
+
"{clusterPlacementGroupId}": deactivateClusterPlacementGroupRequest.clusterPlacementGroupId
|
|
477
|
+
};
|
|
478
|
+
const queryParams = {};
|
|
479
|
+
let headerParams = {
|
|
480
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
481
|
+
"if-match": deactivateClusterPlacementGroupRequest.ifMatch,
|
|
482
|
+
"opc-request-id": deactivateClusterPlacementGroupRequest.opcRequestId,
|
|
483
|
+
"opc-retry-token": deactivateClusterPlacementGroupRequest.opcRetryToken
|
|
484
|
+
};
|
|
485
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
486
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
487
|
+
if (this.logger)
|
|
488
|
+
retrier.logger = this.logger;
|
|
489
|
+
const request = yield oci_common_1.composeRequest({
|
|
490
|
+
baseEndpoint: this._endpoint,
|
|
491
|
+
defaultHeaders: this._defaultHeaders,
|
|
492
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/deactivate",
|
|
493
|
+
method: "POST",
|
|
494
|
+
pathParams: pathParams,
|
|
495
|
+
headerParams: headerParams,
|
|
496
|
+
queryParams: queryParams
|
|
497
|
+
});
|
|
498
|
+
try {
|
|
499
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
500
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
501
|
+
responseObject: {},
|
|
502
|
+
body: yield response.json(),
|
|
503
|
+
bodyKey: "clusterPlacementGroup",
|
|
504
|
+
bodyModel: model.ClusterPlacementGroup,
|
|
505
|
+
type: "model.ClusterPlacementGroup",
|
|
506
|
+
responseHeaders: [
|
|
507
|
+
{
|
|
508
|
+
value: response.headers.get("etag"),
|
|
509
|
+
key: "etag",
|
|
510
|
+
dataType: "string"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
value: response.headers.get("opc-request-id"),
|
|
514
|
+
key: "opcRequestId",
|
|
515
|
+
dataType: "string"
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
});
|
|
519
|
+
return sdkResponse;
|
|
520
|
+
}
|
|
521
|
+
catch (err) {
|
|
522
|
+
throw err;
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Deletes the specified cluster placement group.
|
|
528
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
529
|
+
* @param DeleteClusterPlacementGroupRequest
|
|
530
|
+
* @return DeleteClusterPlacementGroupResponse
|
|
531
|
+
* @throws OciError when an error occurs
|
|
532
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/DeleteClusterPlacementGroup.ts.html |here} to see how to use DeleteClusterPlacementGroup API.
|
|
533
|
+
*/
|
|
534
|
+
deleteClusterPlacementGroup(deleteClusterPlacementGroupRequest) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
if (this.logger)
|
|
537
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#deleteClusterPlacementGroup.");
|
|
538
|
+
const operationName = "deleteClusterPlacementGroup";
|
|
539
|
+
const apiReferenceLink = "";
|
|
540
|
+
const pathParams = {
|
|
541
|
+
"{clusterPlacementGroupId}": deleteClusterPlacementGroupRequest.clusterPlacementGroupId
|
|
542
|
+
};
|
|
543
|
+
const queryParams = {};
|
|
544
|
+
let headerParams = {
|
|
545
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
546
|
+
"if-match": deleteClusterPlacementGroupRequest.ifMatch,
|
|
547
|
+
"opc-request-id": deleteClusterPlacementGroupRequest.opcRequestId
|
|
548
|
+
};
|
|
549
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
550
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
551
|
+
if (this.logger)
|
|
552
|
+
retrier.logger = this.logger;
|
|
553
|
+
const request = yield oci_common_1.composeRequest({
|
|
554
|
+
baseEndpoint: this._endpoint,
|
|
555
|
+
defaultHeaders: this._defaultHeaders,
|
|
556
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}",
|
|
557
|
+
method: "DELETE",
|
|
558
|
+
pathParams: pathParams,
|
|
559
|
+
headerParams: headerParams,
|
|
560
|
+
queryParams: queryParams
|
|
561
|
+
});
|
|
562
|
+
try {
|
|
563
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
564
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
565
|
+
responseObject: {},
|
|
566
|
+
responseHeaders: [
|
|
567
|
+
{
|
|
568
|
+
value: response.headers.get("opc-work-request-id"),
|
|
569
|
+
key: "opcWorkRequestId",
|
|
570
|
+
dataType: "string"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
value: response.headers.get("opc-request-id"),
|
|
574
|
+
key: "opcRequestId",
|
|
575
|
+
dataType: "string"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
});
|
|
579
|
+
return sdkResponse;
|
|
580
|
+
}
|
|
581
|
+
catch (err) {
|
|
582
|
+
throw err;
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Gets the specified cluster placement group.
|
|
588
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
589
|
+
* @param GetClusterPlacementGroupRequest
|
|
590
|
+
* @return GetClusterPlacementGroupResponse
|
|
591
|
+
* @throws OciError when an error occurs
|
|
592
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/GetClusterPlacementGroup.ts.html |here} to see how to use GetClusterPlacementGroup API.
|
|
593
|
+
*/
|
|
594
|
+
getClusterPlacementGroup(getClusterPlacementGroupRequest) {
|
|
595
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
596
|
+
if (this.logger)
|
|
597
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#getClusterPlacementGroup.");
|
|
598
|
+
const operationName = "getClusterPlacementGroup";
|
|
599
|
+
const apiReferenceLink = "";
|
|
600
|
+
const pathParams = {
|
|
601
|
+
"{clusterPlacementGroupId}": getClusterPlacementGroupRequest.clusterPlacementGroupId
|
|
602
|
+
};
|
|
603
|
+
const queryParams = {};
|
|
604
|
+
let headerParams = {
|
|
605
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
606
|
+
"opc-request-id": getClusterPlacementGroupRequest.opcRequestId
|
|
607
|
+
};
|
|
608
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
609
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
610
|
+
if (this.logger)
|
|
611
|
+
retrier.logger = this.logger;
|
|
612
|
+
const request = yield oci_common_1.composeRequest({
|
|
613
|
+
baseEndpoint: this._endpoint,
|
|
614
|
+
defaultHeaders: this._defaultHeaders,
|
|
615
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}",
|
|
616
|
+
method: "GET",
|
|
617
|
+
pathParams: pathParams,
|
|
618
|
+
headerParams: headerParams,
|
|
619
|
+
queryParams: queryParams
|
|
620
|
+
});
|
|
621
|
+
try {
|
|
622
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
623
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
624
|
+
responseObject: {},
|
|
625
|
+
body: yield response.json(),
|
|
626
|
+
bodyKey: "clusterPlacementGroup",
|
|
627
|
+
bodyModel: model.ClusterPlacementGroup,
|
|
628
|
+
type: "model.ClusterPlacementGroup",
|
|
629
|
+
responseHeaders: [
|
|
630
|
+
{
|
|
631
|
+
value: response.headers.get("etag"),
|
|
632
|
+
key: "etag",
|
|
633
|
+
dataType: "string"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
value: response.headers.get("opc-request-id"),
|
|
637
|
+
key: "opcRequestId",
|
|
638
|
+
dataType: "string"
|
|
639
|
+
}
|
|
640
|
+
]
|
|
641
|
+
});
|
|
642
|
+
return sdkResponse;
|
|
643
|
+
}
|
|
644
|
+
catch (err) {
|
|
645
|
+
throw err;
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Gets details of the work request with the specified ID.
|
|
651
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
652
|
+
* @param GetWorkRequestRequest
|
|
653
|
+
* @return GetWorkRequestResponse
|
|
654
|
+
* @throws OciError when an error occurs
|
|
655
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
656
|
+
*/
|
|
657
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
659
|
+
if (this.logger)
|
|
660
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#getWorkRequest.");
|
|
661
|
+
const operationName = "getWorkRequest";
|
|
662
|
+
const apiReferenceLink = "";
|
|
663
|
+
const pathParams = {
|
|
664
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
665
|
+
};
|
|
666
|
+
const queryParams = {};
|
|
667
|
+
let headerParams = {
|
|
668
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
669
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
670
|
+
};
|
|
671
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
672
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
673
|
+
if (this.logger)
|
|
674
|
+
retrier.logger = this.logger;
|
|
675
|
+
const request = yield oci_common_1.composeRequest({
|
|
676
|
+
baseEndpoint: this._endpoint,
|
|
677
|
+
defaultHeaders: this._defaultHeaders,
|
|
678
|
+
path: "/workRequests/{workRequestId}",
|
|
679
|
+
method: "GET",
|
|
680
|
+
pathParams: pathParams,
|
|
681
|
+
headerParams: headerParams,
|
|
682
|
+
queryParams: queryParams
|
|
683
|
+
});
|
|
684
|
+
try {
|
|
685
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
686
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
687
|
+
responseObject: {},
|
|
688
|
+
body: yield response.json(),
|
|
689
|
+
bodyKey: "workRequest",
|
|
690
|
+
bodyModel: model.WorkRequest,
|
|
691
|
+
type: "model.WorkRequest",
|
|
692
|
+
responseHeaders: [
|
|
693
|
+
{
|
|
694
|
+
value: response.headers.get("etag"),
|
|
695
|
+
key: "etag",
|
|
696
|
+
dataType: "string"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
value: response.headers.get("opc-request-id"),
|
|
700
|
+
key: "opcRequestId",
|
|
701
|
+
dataType: "string"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
value: response.headers.get("retry-after"),
|
|
705
|
+
key: "retryAfter",
|
|
706
|
+
dataType: "number"
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
});
|
|
710
|
+
return sdkResponse;
|
|
711
|
+
}
|
|
712
|
+
catch (err) {
|
|
713
|
+
throw err;
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Gets a list of all cluster placement groups in the specified compartment.
|
|
719
|
+
*
|
|
720
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
721
|
+
* @param ListClusterPlacementGroupsRequest
|
|
722
|
+
* @return ListClusterPlacementGroupsResponse
|
|
723
|
+
* @throws OciError when an error occurs
|
|
724
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ListClusterPlacementGroups.ts.html |here} to see how to use ListClusterPlacementGroups API.
|
|
725
|
+
*/
|
|
726
|
+
listClusterPlacementGroups(listClusterPlacementGroupsRequest) {
|
|
727
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
728
|
+
if (this.logger)
|
|
729
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#listClusterPlacementGroups.");
|
|
730
|
+
const operationName = "listClusterPlacementGroups";
|
|
731
|
+
const apiReferenceLink = "";
|
|
732
|
+
const pathParams = {};
|
|
733
|
+
const queryParams = {
|
|
734
|
+
"compartmentId": listClusterPlacementGroupsRequest.compartmentId,
|
|
735
|
+
"lifecycleState": listClusterPlacementGroupsRequest.lifecycleState,
|
|
736
|
+
"name": listClusterPlacementGroupsRequest.name,
|
|
737
|
+
"ad": listClusterPlacementGroupsRequest.ad,
|
|
738
|
+
"id": listClusterPlacementGroupsRequest.id,
|
|
739
|
+
"limit": listClusterPlacementGroupsRequest.limit,
|
|
740
|
+
"page": listClusterPlacementGroupsRequest.page,
|
|
741
|
+
"sortOrder": listClusterPlacementGroupsRequest.sortOrder,
|
|
742
|
+
"sortBy": listClusterPlacementGroupsRequest.sortBy,
|
|
743
|
+
"compartmentIdInSubtree": listClusterPlacementGroupsRequest.compartmentIdInSubtree
|
|
744
|
+
};
|
|
745
|
+
let headerParams = {
|
|
746
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
747
|
+
"opc-request-id": listClusterPlacementGroupsRequest.opcRequestId
|
|
748
|
+
};
|
|
749
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
750
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listClusterPlacementGroupsRequest.retryConfiguration, specRetryConfiguration);
|
|
751
|
+
if (this.logger)
|
|
752
|
+
retrier.logger = this.logger;
|
|
753
|
+
const request = yield oci_common_1.composeRequest({
|
|
754
|
+
baseEndpoint: this._endpoint,
|
|
755
|
+
defaultHeaders: this._defaultHeaders,
|
|
756
|
+
path: "/clusterPlacementGroups",
|
|
757
|
+
method: "GET",
|
|
758
|
+
pathParams: pathParams,
|
|
759
|
+
headerParams: headerParams,
|
|
760
|
+
queryParams: queryParams
|
|
761
|
+
});
|
|
762
|
+
try {
|
|
763
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
764
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
765
|
+
responseObject: {},
|
|
766
|
+
body: yield response.json(),
|
|
767
|
+
bodyKey: "clusterPlacementGroupCollection",
|
|
768
|
+
bodyModel: model.ClusterPlacementGroupCollection,
|
|
769
|
+
type: "model.ClusterPlacementGroupCollection",
|
|
770
|
+
responseHeaders: [
|
|
771
|
+
{
|
|
772
|
+
value: response.headers.get("opc-request-id"),
|
|
773
|
+
key: "opcRequestId",
|
|
774
|
+
dataType: "string"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
value: response.headers.get("opc-next-page"),
|
|
778
|
+
key: "opcNextPage",
|
|
779
|
+
dataType: "string"
|
|
780
|
+
}
|
|
781
|
+
]
|
|
782
|
+
});
|
|
783
|
+
return sdkResponse;
|
|
784
|
+
}
|
|
785
|
+
catch (err) {
|
|
786
|
+
throw err;
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Returns a (paginated) list of errors for the work request with the specified ID.
|
|
792
|
+
*
|
|
793
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
794
|
+
* @param ListWorkRequestErrorsRequest
|
|
795
|
+
* @return ListWorkRequestErrorsResponse
|
|
796
|
+
* @throws OciError when an error occurs
|
|
797
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
798
|
+
*/
|
|
799
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
801
|
+
if (this.logger)
|
|
802
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#listWorkRequestErrors.");
|
|
803
|
+
const operationName = "listWorkRequestErrors";
|
|
804
|
+
const apiReferenceLink = "";
|
|
805
|
+
const pathParams = {
|
|
806
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
807
|
+
};
|
|
808
|
+
const queryParams = {
|
|
809
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
810
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
811
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
812
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
813
|
+
};
|
|
814
|
+
let headerParams = {
|
|
815
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
816
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
817
|
+
};
|
|
818
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
819
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
820
|
+
if (this.logger)
|
|
821
|
+
retrier.logger = this.logger;
|
|
822
|
+
const request = yield oci_common_1.composeRequest({
|
|
823
|
+
baseEndpoint: this._endpoint,
|
|
824
|
+
defaultHeaders: this._defaultHeaders,
|
|
825
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
826
|
+
method: "GET",
|
|
827
|
+
pathParams: pathParams,
|
|
828
|
+
headerParams: headerParams,
|
|
829
|
+
queryParams: queryParams
|
|
830
|
+
});
|
|
831
|
+
try {
|
|
832
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
833
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
834
|
+
responseObject: {},
|
|
835
|
+
body: yield response.json(),
|
|
836
|
+
bodyKey: "workRequestErrorCollection",
|
|
837
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
838
|
+
type: "model.WorkRequestErrorCollection",
|
|
839
|
+
responseHeaders: [
|
|
840
|
+
{
|
|
841
|
+
value: response.headers.get("opc-next-page"),
|
|
842
|
+
key: "opcNextPage",
|
|
843
|
+
dataType: "string"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
value: response.headers.get("opc-request-id"),
|
|
847
|
+
key: "opcRequestId",
|
|
848
|
+
dataType: "string"
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
});
|
|
852
|
+
return sdkResponse;
|
|
853
|
+
}
|
|
854
|
+
catch (err) {
|
|
855
|
+
throw err;
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Returns a (paginated) list of logs for the work request with the specified ID.
|
|
861
|
+
*
|
|
862
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
863
|
+
* @param ListWorkRequestLogsRequest
|
|
864
|
+
* @return ListWorkRequestLogsResponse
|
|
865
|
+
* @throws OciError when an error occurs
|
|
866
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
867
|
+
*/
|
|
868
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
if (this.logger)
|
|
871
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#listWorkRequestLogs.");
|
|
872
|
+
const operationName = "listWorkRequestLogs";
|
|
873
|
+
const apiReferenceLink = "";
|
|
874
|
+
const pathParams = {
|
|
875
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
876
|
+
};
|
|
877
|
+
const queryParams = {
|
|
878
|
+
"page": listWorkRequestLogsRequest.page,
|
|
879
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
880
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
881
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
882
|
+
};
|
|
883
|
+
let headerParams = {
|
|
884
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
885
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
886
|
+
};
|
|
887
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
888
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
889
|
+
if (this.logger)
|
|
890
|
+
retrier.logger = this.logger;
|
|
891
|
+
const request = yield oci_common_1.composeRequest({
|
|
892
|
+
baseEndpoint: this._endpoint,
|
|
893
|
+
defaultHeaders: this._defaultHeaders,
|
|
894
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
895
|
+
method: "GET",
|
|
896
|
+
pathParams: pathParams,
|
|
897
|
+
headerParams: headerParams,
|
|
898
|
+
queryParams: queryParams
|
|
899
|
+
});
|
|
900
|
+
try {
|
|
901
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
902
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
903
|
+
responseObject: {},
|
|
904
|
+
body: yield response.json(),
|
|
905
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
906
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
907
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
908
|
+
responseHeaders: [
|
|
909
|
+
{
|
|
910
|
+
value: response.headers.get("opc-next-page"),
|
|
911
|
+
key: "opcNextPage",
|
|
912
|
+
dataType: "string"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
value: response.headers.get("opc-request-id"),
|
|
916
|
+
key: "opcRequestId",
|
|
917
|
+
dataType: "string"
|
|
918
|
+
}
|
|
919
|
+
]
|
|
920
|
+
});
|
|
921
|
+
return sdkResponse;
|
|
922
|
+
}
|
|
923
|
+
catch (err) {
|
|
924
|
+
throw err;
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Lists all work requests in the specified compartment.
|
|
930
|
+
*
|
|
931
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
932
|
+
* @param ListWorkRequestsRequest
|
|
933
|
+
* @return ListWorkRequestsResponse
|
|
934
|
+
* @throws OciError when an error occurs
|
|
935
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
936
|
+
*/
|
|
937
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
939
|
+
if (this.logger)
|
|
940
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#listWorkRequests.");
|
|
941
|
+
const operationName = "listWorkRequests";
|
|
942
|
+
const apiReferenceLink = "";
|
|
943
|
+
const pathParams = {};
|
|
944
|
+
const queryParams = {
|
|
945
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
946
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
947
|
+
"status": listWorkRequestsRequest.status,
|
|
948
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
949
|
+
"page": listWorkRequestsRequest.page,
|
|
950
|
+
"limit": listWorkRequestsRequest.limit,
|
|
951
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
952
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
953
|
+
};
|
|
954
|
+
let headerParams = {
|
|
955
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
956
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
957
|
+
};
|
|
958
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
959
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
960
|
+
if (this.logger)
|
|
961
|
+
retrier.logger = this.logger;
|
|
962
|
+
const request = yield oci_common_1.composeRequest({
|
|
963
|
+
baseEndpoint: this._endpoint,
|
|
964
|
+
defaultHeaders: this._defaultHeaders,
|
|
965
|
+
path: "/workRequests",
|
|
966
|
+
method: "GET",
|
|
967
|
+
pathParams: pathParams,
|
|
968
|
+
headerParams: headerParams,
|
|
969
|
+
queryParams: queryParams
|
|
970
|
+
});
|
|
971
|
+
try {
|
|
972
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
973
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
974
|
+
responseObject: {},
|
|
975
|
+
body: yield response.json(),
|
|
976
|
+
bodyKey: "workRequestSummaryCollection",
|
|
977
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
978
|
+
type: "model.WorkRequestSummaryCollection",
|
|
979
|
+
responseHeaders: [
|
|
980
|
+
{
|
|
981
|
+
value: response.headers.get("opc-request-id"),
|
|
982
|
+
key: "opcRequestId",
|
|
983
|
+
dataType: "string"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
value: response.headers.get("opc-next-page"),
|
|
987
|
+
key: "opcNextPage",
|
|
988
|
+
dataType: "string"
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
});
|
|
992
|
+
return sdkResponse;
|
|
993
|
+
}
|
|
994
|
+
catch (err) {
|
|
995
|
+
throw err;
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Updates the specified cluster placement group.
|
|
1001
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1002
|
+
* @param UpdateClusterPlacementGroupRequest
|
|
1003
|
+
* @return UpdateClusterPlacementGroupResponse
|
|
1004
|
+
* @throws OciError when an error occurs
|
|
1005
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.85.0/clusterplacementgroups/UpdateClusterPlacementGroup.ts.html |here} to see how to use UpdateClusterPlacementGroup API.
|
|
1006
|
+
*/
|
|
1007
|
+
updateClusterPlacementGroup(updateClusterPlacementGroupRequest) {
|
|
1008
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1009
|
+
if (this.logger)
|
|
1010
|
+
this.logger.debug("Calling operation ClusterPlacementGroupsCPClient#updateClusterPlacementGroup.");
|
|
1011
|
+
const operationName = "updateClusterPlacementGroup";
|
|
1012
|
+
const apiReferenceLink = "";
|
|
1013
|
+
const pathParams = {
|
|
1014
|
+
"{clusterPlacementGroupId}": updateClusterPlacementGroupRequest.clusterPlacementGroupId
|
|
1015
|
+
};
|
|
1016
|
+
const queryParams = {};
|
|
1017
|
+
let headerParams = {
|
|
1018
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1019
|
+
"if-match": updateClusterPlacementGroupRequest.ifMatch,
|
|
1020
|
+
"opc-request-id": updateClusterPlacementGroupRequest.opcRequestId
|
|
1021
|
+
};
|
|
1022
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1023
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateClusterPlacementGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
1024
|
+
if (this.logger)
|
|
1025
|
+
retrier.logger = this.logger;
|
|
1026
|
+
const request = yield oci_common_1.composeRequest({
|
|
1027
|
+
baseEndpoint: this._endpoint,
|
|
1028
|
+
defaultHeaders: this._defaultHeaders,
|
|
1029
|
+
path: "/clusterPlacementGroups/{clusterPlacementGroupId}",
|
|
1030
|
+
method: "PUT",
|
|
1031
|
+
bodyContent: common.ObjectSerializer.serialize(updateClusterPlacementGroupRequest.updateClusterPlacementGroupDetails, "UpdateClusterPlacementGroupDetails", model.UpdateClusterPlacementGroupDetails.getJsonObj),
|
|
1032
|
+
pathParams: pathParams,
|
|
1033
|
+
headerParams: headerParams,
|
|
1034
|
+
queryParams: queryParams
|
|
1035
|
+
});
|
|
1036
|
+
try {
|
|
1037
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1038
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1039
|
+
responseObject: {},
|
|
1040
|
+
responseHeaders: [
|
|
1041
|
+
{
|
|
1042
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1043
|
+
key: "opcWorkRequestId",
|
|
1044
|
+
dataType: "string"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
value: response.headers.get("opc-request-id"),
|
|
1048
|
+
key: "opcRequestId",
|
|
1049
|
+
dataType: "string"
|
|
1050
|
+
}
|
|
1051
|
+
]
|
|
1052
|
+
});
|
|
1053
|
+
return sdkResponse;
|
|
1054
|
+
}
|
|
1055
|
+
catch (err) {
|
|
1056
|
+
throw err;
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
exports.ClusterPlacementGroupsCPClient = ClusterPlacementGroupsCPClient;
|
|
1062
|
+
ClusterPlacementGroupsCPClient.serviceEndpointTemplate = "https://clusterPlacementGroups.{region}.oci.{secondLevelDomain}";
|
|
1063
|
+
ClusterPlacementGroupsCPClient.endpointServiceName = "";
|
|
1064
|
+
//# sourceMappingURL=client.js.map
|