oci-rover 2.62.2 → 2.62.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -0
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +322 -24
- package/lib/client.js +2159 -666
- package/lib/client.js.map +1 -1
- package/lib/model/ca-bundle-response.d.ts +27 -0
- package/lib/model/ca-bundle-response.js +55 -0
- package/lib/model/ca-bundle-response.js.map +1 -0
- package/lib/model/ca-details.d.ts +29 -0
- package/lib/model/ca-details.js +29 -0
- package/lib/model/ca-details.js.map +1 -0
- package/lib/model/cert-key-algorithm.d.ts +30 -0
- package/lib/model/cert-key-algorithm.js +41 -0
- package/lib/model/cert-key-algorithm.js.map +1 -0
- package/lib/model/cert-signature-algorithm.d.ts +32 -0
- package/lib/model/cert-signature-algorithm.js +43 -0
- package/lib/model/cert-signature-algorithm.js.map +1 -0
- package/lib/model/certificate-details.d.ts +29 -0
- package/lib/model/certificate-details.js +29 -0
- package/lib/model/certificate-details.js.map +1 -0
- package/lib/model/create-rover-node-details.d.ts +24 -0
- package/lib/model/create-rover-node-details.js.map +1 -1
- package/lib/model/current-rover-bundle-details.d.ts +25 -0
- package/lib/model/current-rover-bundle-details.js +29 -0
- package/lib/model/current-rover-bundle-details.js.map +1 -0
- package/lib/model/generate-certificate-response.d.ts +27 -0
- package/lib/model/generate-certificate-response.js +57 -0
- package/lib/model/generate-certificate-response.js.map +1 -0
- package/lib/model/index.d.ts +66 -0
- package/lib/model/index.js +68 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/leaf-certificate-details.d.ts +29 -0
- package/lib/model/leaf-certificate-details.js +29 -0
- package/lib/model/leaf-certificate-details.js.map +1 -0
- package/lib/model/leaf-certificate-response.d.ts +27 -0
- package/lib/model/leaf-certificate-response.js +57 -0
- package/lib/model/leaf-certificate-response.js.map +1 -0
- package/lib/model/renew-certificate-response.d.ts +27 -0
- package/lib/model/renew-certificate-response.js +57 -0
- package/lib/model/renew-certificate-response.js.map +1 -0
- package/lib/model/replace-ca-details.d.ts +38 -0
- package/lib/model/replace-ca-details.js +29 -0
- package/lib/model/replace-ca-details.js.map +1 -0
- package/lib/model/replace-certificate-authority-response.d.ts +27 -0
- package/lib/model/replace-certificate-authority-response.js +57 -0
- package/lib/model/replace-certificate-authority-response.js.map +1 -0
- package/lib/model/request-additional-nodes-details.d.ts +25 -0
- package/lib/model/request-additional-nodes-details.js +29 -0
- package/lib/model/request-additional-nodes-details.js.map +1 -0
- package/lib/model/request-rover-bundle-details.d.ts +33 -0
- package/lib/model/request-rover-bundle-details.js +29 -0
- package/lib/model/request-rover-bundle-details.js.map +1 -0
- package/lib/model/rover-bundle-request-collection.d.ts +26 -0
- package/lib/model/rover-bundle-request-collection.js +61 -0
- package/lib/model/rover-bundle-request-collection.js.map +1 -0
- package/lib/model/rover-bundle-request-summary.d.ts +45 -0
- package/lib/model/rover-bundle-request-summary.js +29 -0
- package/lib/model/rover-bundle-request-summary.js.map +1 -0
- package/lib/model/rover-bundle-status-details.d.ts +25 -0
- package/lib/model/rover-bundle-status-details.js +29 -0
- package/lib/model/rover-bundle-status-details.js.map +1 -0
- package/lib/model/rover-bundle-status.d.ts +65 -0
- package/lib/model/rover-bundle-status.js +43 -0
- package/lib/model/rover-bundle-status.js.map +1 -0
- package/lib/model/rover-bundle-version.d.ts +33 -0
- package/lib/model/rover-bundle-version.js +29 -0
- package/lib/model/rover-bundle-version.js.map +1 -0
- package/lib/model/rover-node-generate-certificate-details.d.ts +29 -0
- package/lib/model/rover-node-generate-certificate-details.js +29 -0
- package/lib/model/rover-node-generate-certificate-details.js.map +1 -0
- package/lib/model/rover-node-renew-certificate-details.d.ts +29 -0
- package/lib/model/rover-node-renew-certificate-details.js +29 -0
- package/lib/model/rover-node-renew-certificate-details.js.map +1 -0
- package/lib/model/rover-node-replace-certificate-authority-details.d.ts +34 -0
- package/lib/model/rover-node-replace-certificate-authority-details.js +29 -0
- package/lib/model/rover-node-replace-certificate-authority-details.js.map +1 -0
- package/lib/model/rover-node.d.ts +32 -0
- package/lib/model/rover-node.js.map +1 -1
- package/lib/model/shipping-address.d.ts +2 -2
- package/lib/model/update-rover-node-details.d.ts +24 -0
- package/lib/model/update-rover-node-details.js.map +1 -1
- package/lib/model/work-request-collection.d.ts +26 -0
- package/lib/model/work-request-collection.js +61 -0
- package/lib/model/work-request-collection.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-collection.d.ts +26 -0
- package/lib/model/work-request-log-collection.js +61 -0
- package/lib/model/work-request-log-collection.js.map +1 -0
- package/lib/model/work-request-log.d.ts +29 -0
- package/lib/model/work-request-log.js +29 -0
- package/lib/model/work-request-log.js.map +1 -0
- package/lib/model/work-request-operation-status.d.ts +34 -0
- package/lib/model/work-request-operation-status.js +45 -0
- package/lib/model/work-request-operation-status.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +27 -0
- package/lib/model/work-request-operation-type.js +38 -0
- package/lib/model/work-request-operation-type.js.map +1 -0
- package/lib/model/work-request-resource-action-type.d.ts +30 -0
- package/lib/model/work-request-resource-action-type.js +41 -0
- package/lib/model/work-request-resource-action-type.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.d.ts +71 -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 +71 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +44 -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-rover-cluster-compartment-request.d.ts +1 -1
- package/lib/request/change-rover-entitlement-compartment-request.d.ts +1 -1
- package/lib/request/change-rover-node-compartment-request.d.ts +1 -1
- package/lib/request/create-rover-cluster-request.d.ts +1 -1
- package/lib/request/create-rover-entitlement-request.d.ts +1 -1
- package/lib/request/create-rover-node-request.d.ts +1 -1
- package/lib/request/delete-rover-cluster-request.d.ts +1 -1
- package/lib/request/delete-rover-entitlement-request.d.ts +1 -1
- package/lib/request/delete-rover-node-request.d.ts +1 -1
- package/lib/request/get-rover-cluster-certificate-request.d.ts +1 -1
- package/lib/request/get-rover-cluster-request.d.ts +1 -1
- package/lib/request/get-rover-entitlement-request.d.ts +1 -1
- package/lib/request/get-rover-node-certificate-request.d.ts +1 -1
- package/lib/request/get-rover-node-encryption-key-request.d.ts +1 -1
- package/lib/request/get-rover-node-get-rpt-request.d.ts +1 -1
- package/lib/request/get-rover-node-request.d.ts +1 -1
- 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 +11 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-rover-cluster-rover-bundle-requests-request.d.ts +49 -0
- package/lib/request/list-rover-cluster-rover-bundle-requests-request.js +23 -0
- package/lib/request/list-rover-cluster-rover-bundle-requests-request.js.map +1 -0
- package/lib/request/list-rover-clusters-request.d.ts +1 -1
- package/lib/request/list-rover-entitlements-request.d.ts +1 -1
- package/lib/request/list-rover-node-rover-bundle-requests-request.d.ts +49 -0
- package/lib/request/list-rover-node-rover-bundle-requests-request.js +23 -0
- package/lib/request/list-rover-node-rover-bundle-requests-request.js.map +1 -0
- package/lib/request/list-rover-nodes-request.d.ts +1 -1
- package/lib/request/list-shapes-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +50 -0
- package/lib/request/list-work-request-errors-request.js +24 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +50 -0
- package/lib/request/list-work-request-logs-request.js +24 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +63 -0
- package/lib/request/list-work-requests-request.js +25 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/request-additional-nodes-request.d.ts +49 -0
- package/lib/request/request-additional-nodes-request.js +15 -0
- package/lib/request/request-additional-nodes-request.js.map +1 -0
- package/lib/request/request-bundle-rover-cluster-request.d.ts +31 -0
- package/lib/request/request-bundle-rover-cluster-request.js +15 -0
- package/lib/request/request-bundle-rover-cluster-request.js.map +1 -0
- package/lib/request/request-bundle-rover-node-request.d.ts +31 -0
- package/lib/request/request-bundle-rover-node-request.js +15 -0
- package/lib/request/request-bundle-rover-node-request.js.map +1 -0
- package/lib/request/retrieve-available-bundle-versions-rover-cluster-request.d.ts +31 -0
- package/lib/request/retrieve-available-bundle-versions-rover-cluster-request.js +15 -0
- package/lib/request/retrieve-available-bundle-versions-rover-cluster-request.js.map +1 -0
- package/lib/request/retrieve-available-bundle-versions-rover-node-request.d.ts +31 -0
- package/lib/request/retrieve-available-bundle-versions-rover-node-request.js +15 -0
- package/lib/request/retrieve-available-bundle-versions-rover-node-request.js.map +1 -0
- package/lib/request/retrieve-bundle-status-rover-cluster-request.d.ts +31 -0
- package/lib/request/retrieve-bundle-status-rover-cluster-request.js +15 -0
- package/lib/request/retrieve-bundle-status-rover-cluster-request.js.map +1 -0
- package/lib/request/retrieve-bundle-status-rover-node-request.d.ts +31 -0
- package/lib/request/retrieve-bundle-status-rover-node-request.js +15 -0
- package/lib/request/retrieve-bundle-status-rover-node-request.js.map +1 -0
- package/lib/request/rover-node-action-retrieve-ca-bundle-request.d.ts +44 -0
- package/lib/request/rover-node-action-retrieve-ca-bundle-request.js +15 -0
- package/lib/request/rover-node-action-retrieve-ca-bundle-request.js.map +1 -0
- package/lib/request/rover-node-action-set-key-request.d.ts +1 -1
- package/lib/request/rover-node-generate-certificate-request.d.ts +49 -0
- package/lib/request/rover-node-generate-certificate-request.js +15 -0
- package/lib/request/rover-node-generate-certificate-request.js.map +1 -0
- package/lib/request/rover-node-renew-certificate-request.d.ts +49 -0
- package/lib/request/rover-node-renew-certificate-request.js +15 -0
- package/lib/request/rover-node-renew-certificate-request.js.map +1 -0
- package/lib/request/rover-node-replace-certificate-authority-request.d.ts +49 -0
- package/lib/request/rover-node-replace-certificate-authority-request.js +15 -0
- package/lib/request/rover-node-replace-certificate-authority-request.js.map +1 -0
- package/lib/request/rover-node-retrieve-leaf-certificate-request.d.ts +44 -0
- package/lib/request/rover-node-retrieve-leaf-certificate-request.js +15 -0
- package/lib/request/rover-node-retrieve-leaf-certificate-request.js.map +1 -0
- package/lib/request/update-rover-cluster-request.d.ts +1 -1
- package/lib/request/update-rover-entitlement-request.d.ts +1 -1
- package/lib/request/update-rover-node-request.d.ts +1 -1
- 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/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/list-rover-cluster-rover-bundle-requests-response.d.ts +32 -0
- package/lib/response/list-rover-cluster-rover-bundle-requests-response.js +15 -0
- package/lib/response/list-rover-cluster-rover-bundle-requests-response.js.map +1 -0
- package/lib/response/list-rover-node-rover-bundle-requests-response.d.ts +32 -0
- package/lib/response/list-rover-node-rover-bundle-requests-response.js +15 -0
- package/lib/response/list-rover-node-rover-bundle-requests-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +39 -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 +39 -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 +39 -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/request-additional-nodes-response.d.ts +26 -0
- package/lib/response/request-additional-nodes-response.js +15 -0
- package/lib/response/request-additional-nodes-response.js.map +1 -0
- package/lib/response/request-bundle-rover-cluster-response.d.ts +26 -0
- package/lib/response/request-bundle-rover-cluster-response.js +15 -0
- package/lib/response/request-bundle-rover-cluster-response.js.map +1 -0
- package/lib/response/request-bundle-rover-node-response.d.ts +26 -0
- package/lib/response/request-bundle-rover-node-response.js +15 -0
- package/lib/response/request-bundle-rover-node-response.js.map +1 -0
- package/lib/response/retrieve-available-bundle-versions-rover-cluster-response.d.ts +30 -0
- package/lib/response/retrieve-available-bundle-versions-rover-cluster-response.js +15 -0
- package/lib/response/retrieve-available-bundle-versions-rover-cluster-response.js.map +1 -0
- package/lib/response/retrieve-available-bundle-versions-rover-node-response.d.ts +30 -0
- package/lib/response/retrieve-available-bundle-versions-rover-node-response.js +15 -0
- package/lib/response/retrieve-available-bundle-versions-rover-node-response.js.map +1 -0
- package/lib/response/retrieve-bundle-status-rover-cluster-response.d.ts +30 -0
- package/lib/response/retrieve-bundle-status-rover-cluster-response.js +15 -0
- package/lib/response/retrieve-bundle-status-rover-cluster-response.js.map +1 -0
- package/lib/response/retrieve-bundle-status-rover-node-response.d.ts +30 -0
- package/lib/response/retrieve-bundle-status-rover-node-response.js +15 -0
- package/lib/response/retrieve-bundle-status-rover-node-response.js.map +1 -0
- package/lib/response/rover-node-action-retrieve-ca-bundle-response.d.ts +30 -0
- package/lib/response/rover-node-action-retrieve-ca-bundle-response.js +15 -0
- package/lib/response/rover-node-action-retrieve-ca-bundle-response.js.map +1 -0
- package/lib/response/rover-node-generate-certificate-response.d.ts +30 -0
- package/lib/response/rover-node-generate-certificate-response.js +15 -0
- package/lib/response/rover-node-generate-certificate-response.js.map +1 -0
- package/lib/response/rover-node-renew-certificate-response.d.ts +30 -0
- package/lib/response/rover-node-renew-certificate-response.js +15 -0
- package/lib/response/rover-node-renew-certificate-response.js.map +1 -0
- package/lib/response/rover-node-replace-certificate-authority-response.d.ts +30 -0
- package/lib/response/rover-node-replace-certificate-authority-response.js +15 -0
- package/lib/response/rover-node-replace-certificate-authority-response.js.map +1 -0
- package/lib/response/rover-node-retrieve-leaf-certificate-response.d.ts +30 -0
- package/lib/response/rover-node-retrieve-leaf-certificate-response.js +15 -0
- package/lib/response/rover-node-retrieve-leaf-certificate-response.js.map +1 -0
- package/lib/workrequests-waiter.d.ts +27 -0
- package/lib/workrequests-waiter.js +44 -0
- package/lib/workrequests-waiter.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -40,30 +40,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.ShapeClient = exports.ShapeApiKeys = exports.RoverNodeClient = exports.RoverNodeApiKeys = exports.RoverEntitlementClient = exports.RoverEntitlementApiKeys = exports.RoverClusterClient = exports.RoverClusterApiKeys = void 0;
|
|
43
|
+
exports.WorkRequestsClient = exports.WorkRequestsApiKeys = exports.ShapeClient = exports.ShapeApiKeys = exports.RoverNodeClient = exports.RoverNodeApiKeys = exports.RoverEntitlementClient = exports.RoverEntitlementApiKeys = exports.RoverClusterClient = exports.RoverClusterApiKeys = exports.RoverBundleClient = exports.RoverBundleApiKeys = void 0;
|
|
44
44
|
const common = require("oci-common");
|
|
45
45
|
const model = __importStar(require("./model"));
|
|
46
46
|
const rovercluster_waiter_1 = require("./rovercluster-waiter");
|
|
47
47
|
const roverentitlement_waiter_1 = require("./roverentitlement-waiter");
|
|
48
48
|
const rovernode_waiter_1 = require("./rovernode-waiter");
|
|
49
|
+
const workrequests_waiter_1 = require("./workrequests-waiter");
|
|
49
50
|
const oci_common_1 = require("oci-common");
|
|
50
51
|
// ===============================================
|
|
51
52
|
// This file is autogenerated - Please do not edit
|
|
52
53
|
// ===============================================
|
|
53
|
-
var
|
|
54
|
-
(function (
|
|
55
|
-
})(
|
|
54
|
+
var RoverBundleApiKeys;
|
|
55
|
+
(function (RoverBundleApiKeys) {
|
|
56
|
+
})(RoverBundleApiKeys = exports.RoverBundleApiKeys || (exports.RoverBundleApiKeys = {}));
|
|
56
57
|
/**
|
|
57
58
|
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
58
59
|
*/
|
|
59
|
-
class
|
|
60
|
+
class RoverBundleClient {
|
|
60
61
|
constructor(params, clientConfiguration) {
|
|
61
62
|
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
62
63
|
this["_endpoint"] = "";
|
|
63
64
|
this["_defaultHeaders"] = {};
|
|
64
65
|
this._circuitBreaker = null;
|
|
65
66
|
this._httpOptions = undefined;
|
|
66
|
-
this.targetService = "
|
|
67
|
+
this.targetService = "RoverBundle";
|
|
67
68
|
this._regionId = "";
|
|
68
69
|
this._lastSetRegionOrRegionId = "";
|
|
69
70
|
const requestSigner = params.authenticationDetailsProvider
|
|
@@ -110,7 +111,7 @@ class RoverClusterClient {
|
|
|
110
111
|
this._endpoint = endpoint;
|
|
111
112
|
this._endpoint = this._endpoint + "/20201210";
|
|
112
113
|
if (this.logger)
|
|
113
|
-
this.logger.info(`
|
|
114
|
+
this.logger.info(`RoverBundleClient endpoint set to ${this._endpoint}`);
|
|
114
115
|
}
|
|
115
116
|
get logger() {
|
|
116
117
|
return common.LOG.logger;
|
|
@@ -125,10 +126,10 @@ class RoverClusterClient {
|
|
|
125
126
|
if (this.logger)
|
|
126
127
|
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
127
128
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
128
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
129
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverBundleClient.serviceEndpointTemplate, this._region, RoverBundleClient.endpointServiceName);
|
|
129
130
|
}
|
|
130
131
|
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
131
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
132
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverBundleClient.serviceEndpointTemplate, this._regionId, RoverBundleClient.endpointServiceName);
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
/**
|
|
@@ -138,7 +139,7 @@ class RoverClusterClient {
|
|
|
138
139
|
*/
|
|
139
140
|
set region(region) {
|
|
140
141
|
this._region = region;
|
|
141
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
142
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverBundleClient.serviceEndpointTemplate, region, RoverBundleClient.endpointServiceName);
|
|
142
143
|
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
143
144
|
}
|
|
144
145
|
/**
|
|
@@ -151,64 +152,113 @@ class RoverClusterClient {
|
|
|
151
152
|
*/
|
|
152
153
|
set regionId(regionId) {
|
|
153
154
|
this._regionId = regionId;
|
|
154
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
155
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverBundleClient.serviceEndpointTemplate, regionId, RoverBundleClient.endpointServiceName);
|
|
155
156
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
156
157
|
}
|
|
157
158
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* @param
|
|
161
|
-
* @return
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this._waiters = new rovercluster_waiter_1.RoverClusterWaiter(this, config);
|
|
165
|
-
return this._waiters;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Gets the waiters available for resources for this service.
|
|
169
|
-
*
|
|
170
|
-
* @return The service waiters.
|
|
159
|
+
* List all the roverBundleRequests for a given roverClusterId.
|
|
160
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
161
|
+
* @param ListRoverClusterRoverBundleRequestsRequest
|
|
162
|
+
* @return ListRoverClusterRoverBundleRequestsResponse
|
|
163
|
+
* @throws OciError when an error occurs
|
|
164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListRoverClusterRoverBundleRequests.ts.html |here} to see how to use ListRoverClusterRoverBundleRequests API.
|
|
171
165
|
*/
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
listRoverClusterRoverBundleRequests(listRoverClusterRoverBundleRequestsRequest) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
if (this.logger)
|
|
169
|
+
this.logger.debug("Calling operation RoverBundleClient#listRoverClusterRoverBundleRequests.");
|
|
170
|
+
const operationName = "listRoverClusterRoverBundleRequests";
|
|
171
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/ListRoverClusterRoverBundleRequests";
|
|
172
|
+
const pathParams = {
|
|
173
|
+
"{roverClusterId}": listRoverClusterRoverBundleRequestsRequest.roverClusterId
|
|
174
|
+
};
|
|
175
|
+
const queryParams = {
|
|
176
|
+
"limit": listRoverClusterRoverBundleRequestsRequest.limit,
|
|
177
|
+
"page": listRoverClusterRoverBundleRequestsRequest.page,
|
|
178
|
+
"sortOrder": listRoverClusterRoverBundleRequestsRequest.sortOrder,
|
|
179
|
+
"sortBy": listRoverClusterRoverBundleRequestsRequest.sortBy
|
|
180
|
+
};
|
|
181
|
+
let headerParams = {
|
|
182
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
183
|
+
"opc-request-id": listRoverClusterRoverBundleRequestsRequest.opcRequestId
|
|
184
|
+
};
|
|
185
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
186
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRoverClusterRoverBundleRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
187
|
+
if (this.logger)
|
|
188
|
+
retrier.logger = this.logger;
|
|
189
|
+
const request = yield oci_common_1.composeRequest({
|
|
190
|
+
baseEndpoint: this._endpoint,
|
|
191
|
+
defaultHeaders: this._defaultHeaders,
|
|
192
|
+
path: "/roverClusters/{roverClusterId}/roverBundleRequests",
|
|
193
|
+
method: "GET",
|
|
194
|
+
pathParams: pathParams,
|
|
195
|
+
headerParams: headerParams,
|
|
196
|
+
queryParams: queryParams
|
|
197
|
+
});
|
|
198
|
+
try {
|
|
199
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
200
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
201
|
+
responseObject: {},
|
|
202
|
+
body: yield response.json(),
|
|
203
|
+
bodyKey: "roverBundleRequestCollection",
|
|
204
|
+
bodyModel: model.RoverBundleRequestCollection,
|
|
205
|
+
type: "model.RoverBundleRequestCollection",
|
|
206
|
+
responseHeaders: [
|
|
207
|
+
{
|
|
208
|
+
value: response.headers.get("opc-request-id"),
|
|
209
|
+
key: "opcRequestId",
|
|
210
|
+
dataType: "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
value: response.headers.get("opc-next-page"),
|
|
214
|
+
key: "opcNextPage",
|
|
215
|
+
dataType: "string"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
});
|
|
219
|
+
return sdkResponse;
|
|
220
|
+
}
|
|
221
|
+
catch (err) {
|
|
222
|
+
throw err;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
177
225
|
}
|
|
178
226
|
/**
|
|
179
|
-
*
|
|
227
|
+
* List all the roverBundleRequests for a given roverNodeId.
|
|
180
228
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
181
|
-
* @param
|
|
182
|
-
* @return
|
|
229
|
+
* @param ListRoverNodeRoverBundleRequestsRequest
|
|
230
|
+
* @return ListRoverNodeRoverBundleRequestsResponse
|
|
183
231
|
* @throws OciError when an error occurs
|
|
184
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
232
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListRoverNodeRoverBundleRequests.ts.html |here} to see how to use ListRoverNodeRoverBundleRequests API.
|
|
185
233
|
*/
|
|
186
|
-
|
|
234
|
+
listRoverNodeRoverBundleRequests(listRoverNodeRoverBundleRequestsRequest) {
|
|
187
235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
236
|
if (this.logger)
|
|
189
|
-
this.logger.debug("Calling operation
|
|
190
|
-
const operationName = "
|
|
191
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
237
|
+
this.logger.debug("Calling operation RoverBundleClient#listRoverNodeRoverBundleRequests.");
|
|
238
|
+
const operationName = "listRoverNodeRoverBundleRequests";
|
|
239
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/ListRoverNodeRoverBundleRequests";
|
|
192
240
|
const pathParams = {
|
|
193
|
-
"{
|
|
241
|
+
"{roverNodeId}": listRoverNodeRoverBundleRequestsRequest.roverNodeId
|
|
242
|
+
};
|
|
243
|
+
const queryParams = {
|
|
244
|
+
"limit": listRoverNodeRoverBundleRequestsRequest.limit,
|
|
245
|
+
"page": listRoverNodeRoverBundleRequestsRequest.page,
|
|
246
|
+
"sortOrder": listRoverNodeRoverBundleRequestsRequest.sortOrder,
|
|
247
|
+
"sortBy": listRoverNodeRoverBundleRequestsRequest.sortBy
|
|
194
248
|
};
|
|
195
|
-
const queryParams = {};
|
|
196
249
|
let headerParams = {
|
|
197
250
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
198
|
-
"
|
|
199
|
-
"opc-request-id": changeRoverClusterCompartmentRequest.opcRequestId,
|
|
200
|
-
"opc-retry-token": changeRoverClusterCompartmentRequest.opcRetryToken
|
|
251
|
+
"opc-request-id": listRoverNodeRoverBundleRequestsRequest.opcRequestId
|
|
201
252
|
};
|
|
202
253
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
203
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
254
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRoverNodeRoverBundleRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
204
255
|
if (this.logger)
|
|
205
256
|
retrier.logger = this.logger;
|
|
206
257
|
const request = yield oci_common_1.composeRequest({
|
|
207
258
|
baseEndpoint: this._endpoint,
|
|
208
259
|
defaultHeaders: this._defaultHeaders,
|
|
209
|
-
path: "/
|
|
210
|
-
method: "
|
|
211
|
-
bodyContent: common.ObjectSerializer.serialize(changeRoverClusterCompartmentRequest.changeRoverClusterCompartmentDetails, "ChangeRoverClusterCompartmentDetails", model.ChangeRoverClusterCompartmentDetails.getJsonObj),
|
|
260
|
+
path: "/roverNodes/{roverNodeId}/roverBundleRequests",
|
|
261
|
+
method: "GET",
|
|
212
262
|
pathParams: pathParams,
|
|
213
263
|
headerParams: headerParams,
|
|
214
264
|
queryParams: queryParams
|
|
@@ -217,11 +267,20 @@ class RoverClusterClient {
|
|
|
217
267
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
218
268
|
const sdkResponse = oci_common_1.composeResponse({
|
|
219
269
|
responseObject: {},
|
|
270
|
+
body: yield response.json(),
|
|
271
|
+
bodyKey: "roverBundleRequestCollection",
|
|
272
|
+
bodyModel: model.RoverBundleRequestCollection,
|
|
273
|
+
type: "model.RoverBundleRequestCollection",
|
|
220
274
|
responseHeaders: [
|
|
221
275
|
{
|
|
222
276
|
value: response.headers.get("opc-request-id"),
|
|
223
277
|
key: "opcRequestId",
|
|
224
278
|
dataType: "string"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
value: response.headers.get("opc-next-page"),
|
|
282
|
+
key: "opcNextPage",
|
|
283
|
+
dataType: "string"
|
|
225
284
|
}
|
|
226
285
|
]
|
|
227
286
|
});
|
|
@@ -233,37 +292,38 @@ class RoverClusterClient {
|
|
|
233
292
|
});
|
|
234
293
|
}
|
|
235
294
|
/**
|
|
236
|
-
*
|
|
295
|
+
* Request to get rover bundle to the bucket in customer's tenancy.
|
|
237
296
|
*
|
|
238
297
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
239
|
-
* @param
|
|
240
|
-
* @return
|
|
298
|
+
* @param RequestBundleRoverClusterRequest
|
|
299
|
+
* @return RequestBundleRoverClusterResponse
|
|
241
300
|
* @throws OciError when an error occurs
|
|
242
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
301
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RequestBundleRoverCluster.ts.html |here} to see how to use RequestBundleRoverCluster API.
|
|
243
302
|
*/
|
|
244
|
-
|
|
303
|
+
requestBundleRoverCluster(requestBundleRoverClusterRequest) {
|
|
245
304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
305
|
if (this.logger)
|
|
247
|
-
this.logger.debug("Calling operation
|
|
248
|
-
const operationName = "
|
|
249
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/
|
|
250
|
-
const pathParams = {
|
|
306
|
+
this.logger.debug("Calling operation RoverBundleClient#requestBundleRoverCluster.");
|
|
307
|
+
const operationName = "requestBundleRoverCluster";
|
|
308
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/RequestBundleRoverCluster";
|
|
309
|
+
const pathParams = {
|
|
310
|
+
"{roverClusterId}": requestBundleRoverClusterRequest.roverClusterId
|
|
311
|
+
};
|
|
251
312
|
const queryParams = {};
|
|
252
313
|
let headerParams = {
|
|
253
314
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
254
|
-
"opc-
|
|
255
|
-
"opc-request-id": createRoverClusterRequest.opcRequestId
|
|
315
|
+
"opc-request-id": requestBundleRoverClusterRequest.opcRequestId
|
|
256
316
|
};
|
|
257
317
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
258
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
318
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestBundleRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
259
319
|
if (this.logger)
|
|
260
320
|
retrier.logger = this.logger;
|
|
261
321
|
const request = yield oci_common_1.composeRequest({
|
|
262
322
|
baseEndpoint: this._endpoint,
|
|
263
323
|
defaultHeaders: this._defaultHeaders,
|
|
264
|
-
path: "/roverClusters",
|
|
324
|
+
path: "/roverClusters/{roverClusterId}/actions/requestRoverBundle",
|
|
265
325
|
method: "POST",
|
|
266
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
326
|
+
bodyContent: common.ObjectSerializer.serialize(requestBundleRoverClusterRequest.requestRoverBundleDetails, "RequestRoverBundleDetails", model.RequestRoverBundleDetails.getJsonObj),
|
|
267
327
|
pathParams: pathParams,
|
|
268
328
|
headerParams: headerParams,
|
|
269
329
|
queryParams: queryParams
|
|
@@ -272,19 +332,15 @@ class RoverClusterClient {
|
|
|
272
332
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
273
333
|
const sdkResponse = oci_common_1.composeResponse({
|
|
274
334
|
responseObject: {},
|
|
275
|
-
body: yield response.json(),
|
|
276
|
-
bodyKey: "roverCluster",
|
|
277
|
-
bodyModel: model.RoverCluster,
|
|
278
|
-
type: "model.RoverCluster",
|
|
279
335
|
responseHeaders: [
|
|
280
336
|
{
|
|
281
|
-
value: response.headers.get("
|
|
282
|
-
key: "
|
|
337
|
+
value: response.headers.get("opc-request-id"),
|
|
338
|
+
key: "opcRequestId",
|
|
283
339
|
dataType: "string"
|
|
284
340
|
},
|
|
285
341
|
{
|
|
286
|
-
value: response.headers.get("opc-request-id"),
|
|
287
|
-
key: "
|
|
342
|
+
value: response.headers.get("opc-work-request-id"),
|
|
343
|
+
key: "opcWorkRequestId",
|
|
288
344
|
dataType: "string"
|
|
289
345
|
}
|
|
290
346
|
]
|
|
@@ -297,38 +353,38 @@ class RoverClusterClient {
|
|
|
297
353
|
});
|
|
298
354
|
}
|
|
299
355
|
/**
|
|
300
|
-
*
|
|
356
|
+
* Request to get rover bundle to the bucket in customer's tenancy.
|
|
357
|
+
*
|
|
301
358
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
302
|
-
* @param
|
|
303
|
-
* @return
|
|
359
|
+
* @param RequestBundleRoverNodeRequest
|
|
360
|
+
* @return RequestBundleRoverNodeResponse
|
|
304
361
|
* @throws OciError when an error occurs
|
|
305
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
362
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RequestBundleRoverNode.ts.html |here} to see how to use RequestBundleRoverNode API.
|
|
306
363
|
*/
|
|
307
|
-
|
|
364
|
+
requestBundleRoverNode(requestBundleRoverNodeRequest) {
|
|
308
365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
309
366
|
if (this.logger)
|
|
310
|
-
this.logger.debug("Calling operation
|
|
311
|
-
const operationName = "
|
|
312
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
367
|
+
this.logger.debug("Calling operation RoverBundleClient#requestBundleRoverNode.");
|
|
368
|
+
const operationName = "requestBundleRoverNode";
|
|
369
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RequestBundleRoverNode";
|
|
313
370
|
const pathParams = {
|
|
314
|
-
"{
|
|
371
|
+
"{roverNodeId}": requestBundleRoverNodeRequest.roverNodeId
|
|
315
372
|
};
|
|
316
373
|
const queryParams = {};
|
|
317
374
|
let headerParams = {
|
|
318
375
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
319
|
-
"
|
|
320
|
-
"opc-request-id": deleteRoverClusterRequest.opcRequestId,
|
|
321
|
-
"opc-retry-token": deleteRoverClusterRequest.opcRetryToken
|
|
376
|
+
"opc-request-id": requestBundleRoverNodeRequest.opcRequestId
|
|
322
377
|
};
|
|
323
378
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
324
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
379
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestBundleRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
325
380
|
if (this.logger)
|
|
326
381
|
retrier.logger = this.logger;
|
|
327
382
|
const request = yield oci_common_1.composeRequest({
|
|
328
383
|
baseEndpoint: this._endpoint,
|
|
329
384
|
defaultHeaders: this._defaultHeaders,
|
|
330
|
-
path: "/
|
|
331
|
-
method: "
|
|
385
|
+
path: "/roverNodes/{roverNodeId}/actions/requestRoverBundle",
|
|
386
|
+
method: "POST",
|
|
387
|
+
bodyContent: common.ObjectSerializer.serialize(requestBundleRoverNodeRequest.requestRoverBundleDetails, "RequestRoverBundleDetails", model.RequestRoverBundleDetails.getJsonObj),
|
|
332
388
|
pathParams: pathParams,
|
|
333
389
|
headerParams: headerParams,
|
|
334
390
|
queryParams: queryParams
|
|
@@ -342,6 +398,11 @@ class RoverClusterClient {
|
|
|
342
398
|
value: response.headers.get("opc-request-id"),
|
|
343
399
|
key: "opcRequestId",
|
|
344
400
|
dataType: "string"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
value: response.headers.get("opc-work-request-id"),
|
|
404
|
+
key: "opcWorkRequestId",
|
|
405
|
+
dataType: "string"
|
|
345
406
|
}
|
|
346
407
|
]
|
|
347
408
|
});
|
|
@@ -353,36 +414,37 @@ class RoverClusterClient {
|
|
|
353
414
|
});
|
|
354
415
|
}
|
|
355
416
|
/**
|
|
356
|
-
*
|
|
417
|
+
* Retrieve the latest available rover bundle version that can be upgraded to based on current bundle version.
|
|
357
418
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
358
|
-
* @param
|
|
359
|
-
* @return
|
|
419
|
+
* @param RetrieveAvailableBundleVersionsRoverClusterRequest
|
|
420
|
+
* @return RetrieveAvailableBundleVersionsRoverClusterResponse
|
|
360
421
|
* @throws OciError when an error occurs
|
|
361
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
422
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RetrieveAvailableBundleVersionsRoverCluster.ts.html |here} to see how to use RetrieveAvailableBundleVersionsRoverCluster API.
|
|
362
423
|
*/
|
|
363
|
-
|
|
424
|
+
retrieveAvailableBundleVersionsRoverCluster(retrieveAvailableBundleVersionsRoverClusterRequest) {
|
|
364
425
|
return __awaiter(this, void 0, void 0, function* () {
|
|
365
426
|
if (this.logger)
|
|
366
|
-
this.logger.debug("Calling operation
|
|
367
|
-
const operationName = "
|
|
368
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/
|
|
427
|
+
this.logger.debug("Calling operation RoverBundleClient#retrieveAvailableBundleVersionsRoverCluster.");
|
|
428
|
+
const operationName = "retrieveAvailableBundleVersionsRoverCluster";
|
|
429
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/RetrieveAvailableBundleVersionsRoverCluster";
|
|
369
430
|
const pathParams = {
|
|
370
|
-
"{roverClusterId}":
|
|
431
|
+
"{roverClusterId}": retrieveAvailableBundleVersionsRoverClusterRequest.roverClusterId
|
|
371
432
|
};
|
|
372
433
|
const queryParams = {};
|
|
373
434
|
let headerParams = {
|
|
374
435
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
375
|
-
"opc-request-id":
|
|
436
|
+
"opc-request-id": retrieveAvailableBundleVersionsRoverClusterRequest.opcRequestId
|
|
376
437
|
};
|
|
377
438
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
378
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
439
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrieveAvailableBundleVersionsRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
379
440
|
if (this.logger)
|
|
380
441
|
retrier.logger = this.logger;
|
|
381
442
|
const request = yield oci_common_1.composeRequest({
|
|
382
443
|
baseEndpoint: this._endpoint,
|
|
383
444
|
defaultHeaders: this._defaultHeaders,
|
|
384
|
-
path: "/roverClusters/{roverClusterId}",
|
|
385
|
-
method: "
|
|
445
|
+
path: "/roverClusters/{roverClusterId}/actions/retrieveAvailableRoverBundleVersion",
|
|
446
|
+
method: "POST",
|
|
447
|
+
bodyContent: common.ObjectSerializer.serialize(retrieveAvailableBundleVersionsRoverClusterRequest.currentRoverBundleDetails, "CurrentRoverBundleDetails", model.CurrentRoverBundleDetails.getJsonObj),
|
|
386
448
|
pathParams: pathParams,
|
|
387
449
|
headerParams: headerParams,
|
|
388
450
|
queryParams: queryParams
|
|
@@ -392,9 +454,9 @@ class RoverClusterClient {
|
|
|
392
454
|
const sdkResponse = oci_common_1.composeResponse({
|
|
393
455
|
responseObject: {},
|
|
394
456
|
body: yield response.json(),
|
|
395
|
-
bodyKey: "
|
|
396
|
-
bodyModel: model.
|
|
397
|
-
type: "model.
|
|
457
|
+
bodyKey: "roverBundleVersion",
|
|
458
|
+
bodyModel: model.RoverBundleVersion,
|
|
459
|
+
type: "model.RoverBundleVersion",
|
|
398
460
|
responseHeaders: [
|
|
399
461
|
{
|
|
400
462
|
value: response.headers.get("etag"),
|
|
@@ -416,36 +478,37 @@ class RoverClusterClient {
|
|
|
416
478
|
});
|
|
417
479
|
}
|
|
418
480
|
/**
|
|
419
|
-
*
|
|
481
|
+
* Retrieve the latest available rover bundle version that can be upgraded to based on current bundle version.
|
|
420
482
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
421
|
-
* @param
|
|
422
|
-
* @return
|
|
483
|
+
* @param RetrieveAvailableBundleVersionsRoverNodeRequest
|
|
484
|
+
* @return RetrieveAvailableBundleVersionsRoverNodeResponse
|
|
423
485
|
* @throws OciError when an error occurs
|
|
424
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
486
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RetrieveAvailableBundleVersionsRoverNode.ts.html |here} to see how to use RetrieveAvailableBundleVersionsRoverNode API.
|
|
425
487
|
*/
|
|
426
|
-
|
|
488
|
+
retrieveAvailableBundleVersionsRoverNode(retrieveAvailableBundleVersionsRoverNodeRequest) {
|
|
427
489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
490
|
if (this.logger)
|
|
429
|
-
this.logger.debug("Calling operation
|
|
430
|
-
const operationName = "
|
|
431
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
491
|
+
this.logger.debug("Calling operation RoverBundleClient#retrieveAvailableBundleVersionsRoverNode.");
|
|
492
|
+
const operationName = "retrieveAvailableBundleVersionsRoverNode";
|
|
493
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RetrieveAvailableBundleVersionsRoverNode";
|
|
432
494
|
const pathParams = {
|
|
433
|
-
"{
|
|
495
|
+
"{roverNodeId}": retrieveAvailableBundleVersionsRoverNodeRequest.roverNodeId
|
|
434
496
|
};
|
|
435
497
|
const queryParams = {};
|
|
436
498
|
let headerParams = {
|
|
437
499
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
438
|
-
"opc-request-id":
|
|
500
|
+
"opc-request-id": retrieveAvailableBundleVersionsRoverNodeRequest.opcRequestId
|
|
439
501
|
};
|
|
440
502
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
441
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
503
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrieveAvailableBundleVersionsRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
442
504
|
if (this.logger)
|
|
443
505
|
retrier.logger = this.logger;
|
|
444
506
|
const request = yield oci_common_1.composeRequest({
|
|
445
507
|
baseEndpoint: this._endpoint,
|
|
446
508
|
defaultHeaders: this._defaultHeaders,
|
|
447
|
-
path: "/
|
|
448
|
-
method: "
|
|
509
|
+
path: "/roverNodes/{roverNodeId}/actions/retrieveAvailableRoverBundleVersion",
|
|
510
|
+
method: "POST",
|
|
511
|
+
bodyContent: common.ObjectSerializer.serialize(retrieveAvailableBundleVersionsRoverNodeRequest.currentRoverBundleDetails, "CurrentRoverBundleDetails", model.CurrentRoverBundleDetails.getJsonObj),
|
|
449
512
|
pathParams: pathParams,
|
|
450
513
|
headerParams: headerParams,
|
|
451
514
|
queryParams: queryParams
|
|
@@ -455,9 +518,9 @@ class RoverClusterClient {
|
|
|
455
518
|
const sdkResponse = oci_common_1.composeResponse({
|
|
456
519
|
responseObject: {},
|
|
457
520
|
body: yield response.json(),
|
|
458
|
-
bodyKey: "
|
|
459
|
-
bodyModel: model.
|
|
460
|
-
type: "model.
|
|
521
|
+
bodyKey: "roverBundleVersion",
|
|
522
|
+
bodyModel: model.RoverBundleVersion,
|
|
523
|
+
type: "model.RoverBundleVersion",
|
|
461
524
|
responseHeaders: [
|
|
462
525
|
{
|
|
463
526
|
value: response.headers.get("etag"),
|
|
@@ -479,44 +542,37 @@ class RoverClusterClient {
|
|
|
479
542
|
});
|
|
480
543
|
}
|
|
481
544
|
/**
|
|
482
|
-
*
|
|
483
|
-
*
|
|
545
|
+
* Retrieve the status and progress of a rover bundle copy request.
|
|
484
546
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
485
|
-
* @param
|
|
486
|
-
* @return
|
|
547
|
+
* @param RetrieveBundleStatusRoverClusterRequest
|
|
548
|
+
* @return RetrieveBundleStatusRoverClusterResponse
|
|
487
549
|
* @throws OciError when an error occurs
|
|
488
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
550
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RetrieveBundleStatusRoverCluster.ts.html |here} to see how to use RetrieveBundleStatusRoverCluster API.
|
|
489
551
|
*/
|
|
490
|
-
|
|
552
|
+
retrieveBundleStatusRoverCluster(retrieveBundleStatusRoverClusterRequest) {
|
|
491
553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
492
554
|
if (this.logger)
|
|
493
|
-
this.logger.debug("Calling operation
|
|
494
|
-
const operationName = "
|
|
495
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/
|
|
496
|
-
const pathParams = {
|
|
497
|
-
|
|
498
|
-
"compartmentId": listRoverClustersRequest.compartmentId,
|
|
499
|
-
"displayName": listRoverClustersRequest.displayName,
|
|
500
|
-
"clusterType": listRoverClustersRequest.clusterType,
|
|
501
|
-
"limit": listRoverClustersRequest.limit,
|
|
502
|
-
"page": listRoverClustersRequest.page,
|
|
503
|
-
"lifecycleState": listRoverClustersRequest.lifecycleState,
|
|
504
|
-
"sortOrder": listRoverClustersRequest.sortOrder,
|
|
505
|
-
"sortBy": listRoverClustersRequest.sortBy
|
|
555
|
+
this.logger.debug("Calling operation RoverBundleClient#retrieveBundleStatusRoverCluster.");
|
|
556
|
+
const operationName = "retrieveBundleStatusRoverCluster";
|
|
557
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/RetrieveBundleStatusRoverCluster";
|
|
558
|
+
const pathParams = {
|
|
559
|
+
"{roverClusterId}": retrieveBundleStatusRoverClusterRequest.roverClusterId
|
|
506
560
|
};
|
|
561
|
+
const queryParams = {};
|
|
507
562
|
let headerParams = {
|
|
508
563
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
509
|
-
"opc-request-id":
|
|
564
|
+
"opc-request-id": retrieveBundleStatusRoverClusterRequest.opcRequestId
|
|
510
565
|
};
|
|
511
566
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
512
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
567
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrieveBundleStatusRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
513
568
|
if (this.logger)
|
|
514
569
|
retrier.logger = this.logger;
|
|
515
570
|
const request = yield oci_common_1.composeRequest({
|
|
516
571
|
baseEndpoint: this._endpoint,
|
|
517
572
|
defaultHeaders: this._defaultHeaders,
|
|
518
|
-
path: "/roverClusters",
|
|
519
|
-
method: "
|
|
573
|
+
path: "/roverClusters/{roverClusterId}/actions/retrieveRoverBundleStatus",
|
|
574
|
+
method: "POST",
|
|
575
|
+
bodyContent: common.ObjectSerializer.serialize(retrieveBundleStatusRoverClusterRequest.roverBundleStatusDetails, "RoverBundleStatusDetails", model.RoverBundleStatusDetails.getJsonObj),
|
|
520
576
|
pathParams: pathParams,
|
|
521
577
|
headerParams: headerParams,
|
|
522
578
|
queryParams: queryParams
|
|
@@ -526,23 +582,18 @@ class RoverClusterClient {
|
|
|
526
582
|
const sdkResponse = oci_common_1.composeResponse({
|
|
527
583
|
responseObject: {},
|
|
528
584
|
body: yield response.json(),
|
|
529
|
-
bodyKey: "
|
|
530
|
-
bodyModel: model.
|
|
531
|
-
type: "model.
|
|
585
|
+
bodyKey: "roverBundleStatus",
|
|
586
|
+
bodyModel: model.RoverBundleStatus,
|
|
587
|
+
type: "model.RoverBundleStatus",
|
|
532
588
|
responseHeaders: [
|
|
533
589
|
{
|
|
534
|
-
value: response.headers.get("
|
|
535
|
-
key: "
|
|
536
|
-
dataType: "string"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
value: response.headers.get("opc-next-page"),
|
|
540
|
-
key: "opcNextPage",
|
|
590
|
+
value: response.headers.get("etag"),
|
|
591
|
+
key: "etag",
|
|
541
592
|
dataType: "string"
|
|
542
593
|
},
|
|
543
594
|
{
|
|
544
|
-
value: response.headers.get("opc-
|
|
545
|
-
key: "
|
|
595
|
+
value: response.headers.get("opc-request-id"),
|
|
596
|
+
key: "opcRequestId",
|
|
546
597
|
dataType: "string"
|
|
547
598
|
}
|
|
548
599
|
]
|
|
@@ -555,38 +606,37 @@ class RoverClusterClient {
|
|
|
555
606
|
});
|
|
556
607
|
}
|
|
557
608
|
/**
|
|
558
|
-
*
|
|
609
|
+
* Retrieve the status and progress of a rover bundle copy request.
|
|
559
610
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
560
|
-
* @param
|
|
561
|
-
* @return
|
|
611
|
+
* @param RetrieveBundleStatusRoverNodeRequest
|
|
612
|
+
* @return RetrieveBundleStatusRoverNodeResponse
|
|
562
613
|
* @throws OciError when an error occurs
|
|
563
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
614
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RetrieveBundleStatusRoverNode.ts.html |here} to see how to use RetrieveBundleStatusRoverNode API.
|
|
564
615
|
*/
|
|
565
|
-
|
|
616
|
+
retrieveBundleStatusRoverNode(retrieveBundleStatusRoverNodeRequest) {
|
|
566
617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
567
618
|
if (this.logger)
|
|
568
|
-
this.logger.debug("Calling operation
|
|
569
|
-
const operationName = "
|
|
570
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
619
|
+
this.logger.debug("Calling operation RoverBundleClient#retrieveBundleStatusRoverNode.");
|
|
620
|
+
const operationName = "retrieveBundleStatusRoverNode";
|
|
621
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RetrieveBundleStatusRoverNode";
|
|
571
622
|
const pathParams = {
|
|
572
|
-
"{
|
|
623
|
+
"{roverNodeId}": retrieveBundleStatusRoverNodeRequest.roverNodeId
|
|
573
624
|
};
|
|
574
625
|
const queryParams = {};
|
|
575
626
|
let headerParams = {
|
|
576
627
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
577
|
-
"
|
|
578
|
-
"opc-request-id": updateRoverClusterRequest.opcRequestId
|
|
628
|
+
"opc-request-id": retrieveBundleStatusRoverNodeRequest.opcRequestId
|
|
579
629
|
};
|
|
580
630
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
581
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
631
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrieveBundleStatusRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
582
632
|
if (this.logger)
|
|
583
633
|
retrier.logger = this.logger;
|
|
584
634
|
const request = yield oci_common_1.composeRequest({
|
|
585
635
|
baseEndpoint: this._endpoint,
|
|
586
636
|
defaultHeaders: this._defaultHeaders,
|
|
587
|
-
path: "/
|
|
588
|
-
method: "
|
|
589
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
637
|
+
path: "/roverNodes/{roverNodeId}/actions/retrieveRoverBundleStatus",
|
|
638
|
+
method: "POST",
|
|
639
|
+
bodyContent: common.ObjectSerializer.serialize(retrieveBundleStatusRoverNodeRequest.roverBundleStatusDetails, "RoverBundleStatusDetails", model.RoverBundleStatusDetails.getJsonObj),
|
|
590
640
|
pathParams: pathParams,
|
|
591
641
|
headerParams: headerParams,
|
|
592
642
|
queryParams: queryParams
|
|
@@ -596,9 +646,9 @@ class RoverClusterClient {
|
|
|
596
646
|
const sdkResponse = oci_common_1.composeResponse({
|
|
597
647
|
responseObject: {},
|
|
598
648
|
body: yield response.json(),
|
|
599
|
-
bodyKey: "
|
|
600
|
-
bodyModel: model.
|
|
601
|
-
type: "model.
|
|
649
|
+
bodyKey: "roverBundleStatus",
|
|
650
|
+
bodyModel: model.RoverBundleStatus,
|
|
651
|
+
type: "model.RoverBundleStatus",
|
|
602
652
|
responseHeaders: [
|
|
603
653
|
{
|
|
604
654
|
value: response.headers.get("etag"),
|
|
@@ -620,23 +670,23 @@ class RoverClusterClient {
|
|
|
620
670
|
});
|
|
621
671
|
}
|
|
622
672
|
}
|
|
623
|
-
exports.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
var
|
|
627
|
-
(function (
|
|
628
|
-
})(
|
|
673
|
+
exports.RoverBundleClient = RoverBundleClient;
|
|
674
|
+
RoverBundleClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
675
|
+
RoverBundleClient.endpointServiceName = "";
|
|
676
|
+
var RoverClusterApiKeys;
|
|
677
|
+
(function (RoverClusterApiKeys) {
|
|
678
|
+
})(RoverClusterApiKeys = exports.RoverClusterApiKeys || (exports.RoverClusterApiKeys = {}));
|
|
629
679
|
/**
|
|
630
680
|
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
631
681
|
*/
|
|
632
|
-
class
|
|
682
|
+
class RoverClusterClient {
|
|
633
683
|
constructor(params, clientConfiguration) {
|
|
634
684
|
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
635
685
|
this["_endpoint"] = "";
|
|
636
686
|
this["_defaultHeaders"] = {};
|
|
637
687
|
this._circuitBreaker = null;
|
|
638
688
|
this._httpOptions = undefined;
|
|
639
|
-
this.targetService = "
|
|
689
|
+
this.targetService = "RoverCluster";
|
|
640
690
|
this._regionId = "";
|
|
641
691
|
this._lastSetRegionOrRegionId = "";
|
|
642
692
|
const requestSigner = params.authenticationDetailsProvider
|
|
@@ -683,7 +733,7 @@ class RoverEntitlementClient {
|
|
|
683
733
|
this._endpoint = endpoint;
|
|
684
734
|
this._endpoint = this._endpoint + "/20201210";
|
|
685
735
|
if (this.logger)
|
|
686
|
-
this.logger.info(`
|
|
736
|
+
this.logger.info(`RoverClusterClient endpoint set to ${this._endpoint}`);
|
|
687
737
|
}
|
|
688
738
|
get logger() {
|
|
689
739
|
return common.LOG.logger;
|
|
@@ -698,10 +748,10 @@ class RoverEntitlementClient {
|
|
|
698
748
|
if (this.logger)
|
|
699
749
|
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
700
750
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
701
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
751
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverClusterClient.serviceEndpointTemplate, this._region, RoverClusterClient.endpointServiceName);
|
|
702
752
|
}
|
|
703
753
|
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
704
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
754
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverClusterClient.serviceEndpointTemplate, this._regionId, RoverClusterClient.endpointServiceName);
|
|
705
755
|
}
|
|
706
756
|
}
|
|
707
757
|
/**
|
|
@@ -711,7 +761,7 @@ class RoverEntitlementClient {
|
|
|
711
761
|
*/
|
|
712
762
|
set region(region) {
|
|
713
763
|
this._region = region;
|
|
714
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
764
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverClusterClient.serviceEndpointTemplate, region, RoverClusterClient.endpointServiceName);
|
|
715
765
|
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
716
766
|
}
|
|
717
767
|
/**
|
|
@@ -724,17 +774,17 @@ class RoverEntitlementClient {
|
|
|
724
774
|
*/
|
|
725
775
|
set regionId(regionId) {
|
|
726
776
|
this._regionId = regionId;
|
|
727
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
777
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverClusterClient.serviceEndpointTemplate, regionId, RoverClusterClient.endpointServiceName);
|
|
728
778
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
729
779
|
}
|
|
730
780
|
/**
|
|
731
|
-
* Creates a new
|
|
781
|
+
* Creates a new RoverClusterWaiter for resources for this service.
|
|
732
782
|
*
|
|
733
783
|
* @param config The waiter configuration for termination and delay strategy
|
|
734
784
|
* @return The service waiters.
|
|
735
785
|
*/
|
|
736
786
|
createWaiters(config) {
|
|
737
|
-
this._waiters = new
|
|
787
|
+
this._waiters = new rovercluster_waiter_1.RoverClusterWaiter(this, config);
|
|
738
788
|
return this._waiters;
|
|
739
789
|
}
|
|
740
790
|
/**
|
|
@@ -749,39 +799,39 @@ class RoverEntitlementClient {
|
|
|
749
799
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
750
800
|
}
|
|
751
801
|
/**
|
|
752
|
-
* Moves
|
|
802
|
+
* Moves a cluster into a different compartment.
|
|
753
803
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
754
|
-
* @param
|
|
755
|
-
* @return
|
|
804
|
+
* @param ChangeRoverClusterCompartmentRequest
|
|
805
|
+
* @return ChangeRoverClusterCompartmentResponse
|
|
756
806
|
* @throws OciError when an error occurs
|
|
757
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
807
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ChangeRoverClusterCompartment.ts.html |here} to see how to use ChangeRoverClusterCompartment API.
|
|
758
808
|
*/
|
|
759
|
-
|
|
809
|
+
changeRoverClusterCompartment(changeRoverClusterCompartmentRequest) {
|
|
760
810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
761
811
|
if (this.logger)
|
|
762
|
-
this.logger.debug("Calling operation
|
|
763
|
-
const operationName = "
|
|
764
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
812
|
+
this.logger.debug("Calling operation RoverClusterClient#changeRoverClusterCompartment.");
|
|
813
|
+
const operationName = "changeRoverClusterCompartment";
|
|
814
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/ChangeRoverClusterCompartment";
|
|
765
815
|
const pathParams = {
|
|
766
|
-
"{
|
|
816
|
+
"{roverClusterId}": changeRoverClusterCompartmentRequest.roverClusterId
|
|
767
817
|
};
|
|
768
818
|
const queryParams = {};
|
|
769
819
|
let headerParams = {
|
|
770
820
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
771
|
-
"if-match":
|
|
772
|
-
"opc-request-id":
|
|
773
|
-
"opc-retry-token":
|
|
821
|
+
"if-match": changeRoverClusterCompartmentRequest.ifMatch,
|
|
822
|
+
"opc-request-id": changeRoverClusterCompartmentRequest.opcRequestId,
|
|
823
|
+
"opc-retry-token": changeRoverClusterCompartmentRequest.opcRetryToken
|
|
774
824
|
};
|
|
775
825
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
776
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
826
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRoverClusterCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
777
827
|
if (this.logger)
|
|
778
828
|
retrier.logger = this.logger;
|
|
779
829
|
const request = yield oci_common_1.composeRequest({
|
|
780
830
|
baseEndpoint: this._endpoint,
|
|
781
831
|
defaultHeaders: this._defaultHeaders,
|
|
782
|
-
path: "/
|
|
832
|
+
path: "/roverClusters/{roverClusterId}/actions/changeCompartment",
|
|
783
833
|
method: "POST",
|
|
784
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
834
|
+
bodyContent: common.ObjectSerializer.serialize(changeRoverClusterCompartmentRequest.changeRoverClusterCompartmentDetails, "ChangeRoverClusterCompartmentDetails", model.ChangeRoverClusterCompartmentDetails.getJsonObj),
|
|
785
835
|
pathParams: pathParams,
|
|
786
836
|
headerParams: headerParams,
|
|
787
837
|
queryParams: queryParams
|
|
@@ -806,36 +856,37 @@ class RoverEntitlementClient {
|
|
|
806
856
|
});
|
|
807
857
|
}
|
|
808
858
|
/**
|
|
809
|
-
*
|
|
859
|
+
* Creates a new RoverCluster.
|
|
860
|
+
*
|
|
810
861
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
811
|
-
* @param
|
|
812
|
-
* @return
|
|
862
|
+
* @param CreateRoverClusterRequest
|
|
863
|
+
* @return CreateRoverClusterResponse
|
|
813
864
|
* @throws OciError when an error occurs
|
|
814
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
865
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/CreateRoverCluster.ts.html |here} to see how to use CreateRoverCluster API.
|
|
815
866
|
*/
|
|
816
|
-
|
|
867
|
+
createRoverCluster(createRoverClusterRequest) {
|
|
817
868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
818
869
|
if (this.logger)
|
|
819
|
-
this.logger.debug("Calling operation
|
|
820
|
-
const operationName = "
|
|
821
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
870
|
+
this.logger.debug("Calling operation RoverClusterClient#createRoverCluster.");
|
|
871
|
+
const operationName = "createRoverCluster";
|
|
872
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/CreateRoverCluster";
|
|
822
873
|
const pathParams = {};
|
|
823
874
|
const queryParams = {};
|
|
824
875
|
let headerParams = {
|
|
825
876
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
826
|
-
"opc-retry-token":
|
|
827
|
-
"opc-request-id":
|
|
877
|
+
"opc-retry-token": createRoverClusterRequest.opcRetryToken,
|
|
878
|
+
"opc-request-id": createRoverClusterRequest.opcRequestId
|
|
828
879
|
};
|
|
829
880
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
830
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
881
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
831
882
|
if (this.logger)
|
|
832
883
|
retrier.logger = this.logger;
|
|
833
884
|
const request = yield oci_common_1.composeRequest({
|
|
834
885
|
baseEndpoint: this._endpoint,
|
|
835
886
|
defaultHeaders: this._defaultHeaders,
|
|
836
|
-
path: "/
|
|
887
|
+
path: "/roverClusters",
|
|
837
888
|
method: "POST",
|
|
838
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
889
|
+
bodyContent: common.ObjectSerializer.serialize(createRoverClusterRequest.createRoverClusterDetails, "CreateRoverClusterDetails", model.CreateRoverClusterDetails.getJsonObj),
|
|
839
890
|
pathParams: pathParams,
|
|
840
891
|
headerParams: headerParams,
|
|
841
892
|
queryParams: queryParams
|
|
@@ -845,18 +896,18 @@ class RoverEntitlementClient {
|
|
|
845
896
|
const sdkResponse = oci_common_1.composeResponse({
|
|
846
897
|
responseObject: {},
|
|
847
898
|
body: yield response.json(),
|
|
848
|
-
bodyKey: "
|
|
849
|
-
bodyModel: model.
|
|
850
|
-
type: "model.
|
|
899
|
+
bodyKey: "roverCluster",
|
|
900
|
+
bodyModel: model.RoverCluster,
|
|
901
|
+
type: "model.RoverCluster",
|
|
851
902
|
responseHeaders: [
|
|
852
903
|
{
|
|
853
|
-
value: response.headers.get("
|
|
854
|
-
key: "
|
|
904
|
+
value: response.headers.get("etag"),
|
|
905
|
+
key: "etag",
|
|
855
906
|
dataType: "string"
|
|
856
907
|
},
|
|
857
908
|
{
|
|
858
|
-
value: response.headers.get("
|
|
859
|
-
key: "
|
|
909
|
+
value: response.headers.get("opc-request-id"),
|
|
910
|
+
key: "opcRequestId",
|
|
860
911
|
dataType: "string"
|
|
861
912
|
}
|
|
862
913
|
]
|
|
@@ -869,37 +920,37 @@ class RoverEntitlementClient {
|
|
|
869
920
|
});
|
|
870
921
|
}
|
|
871
922
|
/**
|
|
872
|
-
* Deletes a
|
|
923
|
+
* Deletes a RoverCluster resource by identifier
|
|
873
924
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
874
|
-
* @param
|
|
875
|
-
* @return
|
|
925
|
+
* @param DeleteRoverClusterRequest
|
|
926
|
+
* @return DeleteRoverClusterResponse
|
|
876
927
|
* @throws OciError when an error occurs
|
|
877
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
928
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/DeleteRoverCluster.ts.html |here} to see how to use DeleteRoverCluster API.
|
|
878
929
|
*/
|
|
879
|
-
|
|
930
|
+
deleteRoverCluster(deleteRoverClusterRequest) {
|
|
880
931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
881
932
|
if (this.logger)
|
|
882
|
-
this.logger.debug("Calling operation
|
|
883
|
-
const operationName = "
|
|
884
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
933
|
+
this.logger.debug("Calling operation RoverClusterClient#deleteRoverCluster.");
|
|
934
|
+
const operationName = "deleteRoverCluster";
|
|
935
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/DeleteRoverCluster";
|
|
885
936
|
const pathParams = {
|
|
886
|
-
"{
|
|
937
|
+
"{roverClusterId}": deleteRoverClusterRequest.roverClusterId
|
|
887
938
|
};
|
|
888
939
|
const queryParams = {};
|
|
889
940
|
let headerParams = {
|
|
890
941
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
891
|
-
"
|
|
892
|
-
"opc-request-id":
|
|
893
|
-
"
|
|
942
|
+
"if-match": deleteRoverClusterRequest.ifMatch,
|
|
943
|
+
"opc-request-id": deleteRoverClusterRequest.opcRequestId,
|
|
944
|
+
"opc-retry-token": deleteRoverClusterRequest.opcRetryToken
|
|
894
945
|
};
|
|
895
946
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
896
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
947
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
897
948
|
if (this.logger)
|
|
898
949
|
retrier.logger = this.logger;
|
|
899
950
|
const request = yield oci_common_1.composeRequest({
|
|
900
951
|
baseEndpoint: this._endpoint,
|
|
901
952
|
defaultHeaders: this._defaultHeaders,
|
|
902
|
-
path: "/
|
|
953
|
+
path: "/roverClusters/{roverClusterId}",
|
|
903
954
|
method: "DELETE",
|
|
904
955
|
pathParams: pathParams,
|
|
905
956
|
headerParams: headerParams,
|
|
@@ -925,38 +976,35 @@ class RoverEntitlementClient {
|
|
|
925
976
|
});
|
|
926
977
|
}
|
|
927
978
|
/**
|
|
928
|
-
*
|
|
979
|
+
* Gets a RoverCluster by identifier
|
|
929
980
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
930
|
-
* @param
|
|
931
|
-
* @return
|
|
981
|
+
* @param GetRoverClusterRequest
|
|
982
|
+
* @return GetRoverClusterResponse
|
|
932
983
|
* @throws OciError when an error occurs
|
|
933
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
984
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverCluster.ts.html |here} to see how to use GetRoverCluster API.
|
|
934
985
|
*/
|
|
935
|
-
|
|
986
|
+
getRoverCluster(getRoverClusterRequest) {
|
|
936
987
|
return __awaiter(this, void 0, void 0, function* () {
|
|
937
988
|
if (this.logger)
|
|
938
|
-
this.logger.debug("Calling operation
|
|
939
|
-
const operationName = "
|
|
940
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
989
|
+
this.logger.debug("Calling operation RoverClusterClient#getRoverCluster.");
|
|
990
|
+
const operationName = "getRoverCluster";
|
|
991
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/GetRoverCluster";
|
|
941
992
|
const pathParams = {
|
|
942
|
-
"{
|
|
943
|
-
};
|
|
944
|
-
const queryParams = {
|
|
945
|
-
"compartmentId": getRoverEntitlementRequest.compartmentId
|
|
993
|
+
"{roverClusterId}": getRoverClusterRequest.roverClusterId
|
|
946
994
|
};
|
|
995
|
+
const queryParams = {};
|
|
947
996
|
let headerParams = {
|
|
948
997
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
949
|
-
"opc-
|
|
950
|
-
"opc-request-id": getRoverEntitlementRequest.opcRequestId
|
|
998
|
+
"opc-request-id": getRoverClusterRequest.opcRequestId
|
|
951
999
|
};
|
|
952
1000
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
953
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1001
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
954
1002
|
if (this.logger)
|
|
955
1003
|
retrier.logger = this.logger;
|
|
956
1004
|
const request = yield oci_common_1.composeRequest({
|
|
957
1005
|
baseEndpoint: this._endpoint,
|
|
958
1006
|
defaultHeaders: this._defaultHeaders,
|
|
959
|
-
path: "/
|
|
1007
|
+
path: "/roverClusters/{roverClusterId}",
|
|
960
1008
|
method: "GET",
|
|
961
1009
|
pathParams: pathParams,
|
|
962
1010
|
headerParams: headerParams,
|
|
@@ -967,18 +1015,18 @@ class RoverEntitlementClient {
|
|
|
967
1015
|
const sdkResponse = oci_common_1.composeResponse({
|
|
968
1016
|
responseObject: {},
|
|
969
1017
|
body: yield response.json(),
|
|
970
|
-
bodyKey: "
|
|
971
|
-
bodyModel: model.
|
|
972
|
-
type: "model.
|
|
1018
|
+
bodyKey: "roverCluster",
|
|
1019
|
+
bodyModel: model.RoverCluster,
|
|
1020
|
+
type: "model.RoverCluster",
|
|
973
1021
|
responseHeaders: [
|
|
974
1022
|
{
|
|
975
|
-
value: response.headers.get("
|
|
976
|
-
key: "
|
|
1023
|
+
value: response.headers.get("etag"),
|
|
1024
|
+
key: "etag",
|
|
977
1025
|
dataType: "string"
|
|
978
1026
|
},
|
|
979
1027
|
{
|
|
980
|
-
value: response.headers.get("
|
|
981
|
-
key: "
|
|
1028
|
+
value: response.headers.get("opc-request-id"),
|
|
1029
|
+
key: "opcRequestId",
|
|
982
1030
|
dataType: "string"
|
|
983
1031
|
}
|
|
984
1032
|
]
|
|
@@ -991,42 +1039,35 @@ class RoverEntitlementClient {
|
|
|
991
1039
|
});
|
|
992
1040
|
}
|
|
993
1041
|
/**
|
|
994
|
-
*
|
|
1042
|
+
* Get the certificate for a rover cluster
|
|
995
1043
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
996
|
-
* @param
|
|
997
|
-
* @return
|
|
1044
|
+
* @param GetRoverClusterCertificateRequest
|
|
1045
|
+
* @return GetRoverClusterCertificateResponse
|
|
998
1046
|
* @throws OciError when an error occurs
|
|
999
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1047
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverClusterCertificate.ts.html |here} to see how to use GetRoverClusterCertificate API.
|
|
1000
1048
|
*/
|
|
1001
|
-
|
|
1049
|
+
getRoverClusterCertificate(getRoverClusterCertificateRequest) {
|
|
1002
1050
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1003
1051
|
if (this.logger)
|
|
1004
|
-
this.logger.debug("Calling operation
|
|
1005
|
-
const operationName = "
|
|
1006
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1007
|
-
const pathParams = {
|
|
1008
|
-
|
|
1009
|
-
"id": listRoverEntitlementsRequest.id,
|
|
1010
|
-
"compartmentId": listRoverEntitlementsRequest.compartmentId,
|
|
1011
|
-
"displayName": listRoverEntitlementsRequest.displayName,
|
|
1012
|
-
"lifecycleState": listRoverEntitlementsRequest.lifecycleState,
|
|
1013
|
-
"limit": listRoverEntitlementsRequest.limit,
|
|
1014
|
-
"page": listRoverEntitlementsRequest.page,
|
|
1015
|
-
"sortOrder": listRoverEntitlementsRequest.sortOrder,
|
|
1016
|
-
"sortBy": listRoverEntitlementsRequest.sortBy
|
|
1052
|
+
this.logger.debug("Calling operation RoverClusterClient#getRoverClusterCertificate.");
|
|
1053
|
+
const operationName = "getRoverClusterCertificate";
|
|
1054
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverClusterCertificate/GetRoverClusterCertificate";
|
|
1055
|
+
const pathParams = {
|
|
1056
|
+
"{roverClusterId}": getRoverClusterCertificateRequest.roverClusterId
|
|
1017
1057
|
};
|
|
1058
|
+
const queryParams = {};
|
|
1018
1059
|
let headerParams = {
|
|
1019
1060
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1020
|
-
"opc-request-id":
|
|
1061
|
+
"opc-request-id": getRoverClusterCertificateRequest.opcRequestId
|
|
1021
1062
|
};
|
|
1022
1063
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1023
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1064
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverClusterCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
1024
1065
|
if (this.logger)
|
|
1025
1066
|
retrier.logger = this.logger;
|
|
1026
1067
|
const request = yield oci_common_1.composeRequest({
|
|
1027
1068
|
baseEndpoint: this._endpoint,
|
|
1028
1069
|
defaultHeaders: this._defaultHeaders,
|
|
1029
|
-
path: "/
|
|
1070
|
+
path: "/roverClusters/{roverClusterId}/certificate",
|
|
1030
1071
|
method: "GET",
|
|
1031
1072
|
pathParams: pathParams,
|
|
1032
1073
|
headerParams: headerParams,
|
|
@@ -1037,23 +1078,18 @@ class RoverEntitlementClient {
|
|
|
1037
1078
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1038
1079
|
responseObject: {},
|
|
1039
1080
|
body: yield response.json(),
|
|
1040
|
-
bodyKey: "
|
|
1041
|
-
bodyModel: model.
|
|
1042
|
-
type: "model.
|
|
1081
|
+
bodyKey: "roverClusterCertificate",
|
|
1082
|
+
bodyModel: model.RoverClusterCertificate,
|
|
1083
|
+
type: "model.RoverClusterCertificate",
|
|
1043
1084
|
responseHeaders: [
|
|
1044
1085
|
{
|
|
1045
|
-
value: response.headers.get("
|
|
1046
|
-
key: "
|
|
1047
|
-
dataType: "string"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
value: response.headers.get("opc-next-page"),
|
|
1051
|
-
key: "opcNextPage",
|
|
1086
|
+
value: response.headers.get("etag"),
|
|
1087
|
+
key: "etag",
|
|
1052
1088
|
dataType: "string"
|
|
1053
1089
|
},
|
|
1054
1090
|
{
|
|
1055
|
-
value: response.headers.get("opc-
|
|
1056
|
-
key: "
|
|
1091
|
+
value: response.headers.get("opc-request-id"),
|
|
1092
|
+
key: "opcRequestId",
|
|
1057
1093
|
dataType: "string"
|
|
1058
1094
|
}
|
|
1059
1095
|
]
|
|
@@ -1066,38 +1102,44 @@ class RoverEntitlementClient {
|
|
|
1066
1102
|
});
|
|
1067
1103
|
}
|
|
1068
1104
|
/**
|
|
1069
|
-
*
|
|
1105
|
+
* Returns a list of RoverClusters.
|
|
1106
|
+
*
|
|
1070
1107
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1071
|
-
* @param
|
|
1072
|
-
* @return
|
|
1108
|
+
* @param ListRoverClustersRequest
|
|
1109
|
+
* @return ListRoverClustersResponse
|
|
1073
1110
|
* @throws OciError when an error occurs
|
|
1074
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1111
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListRoverClusters.ts.html |here} to see how to use ListRoverClusters API.
|
|
1075
1112
|
*/
|
|
1076
|
-
|
|
1113
|
+
listRoverClusters(listRoverClustersRequest) {
|
|
1077
1114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1078
1115
|
if (this.logger)
|
|
1079
|
-
this.logger.debug("Calling operation
|
|
1080
|
-
const operationName = "
|
|
1081
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1082
|
-
const pathParams = {
|
|
1083
|
-
|
|
1116
|
+
this.logger.debug("Calling operation RoverClusterClient#listRoverClusters.");
|
|
1117
|
+
const operationName = "listRoverClusters";
|
|
1118
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/ListRoverClusters";
|
|
1119
|
+
const pathParams = {};
|
|
1120
|
+
const queryParams = {
|
|
1121
|
+
"compartmentId": listRoverClustersRequest.compartmentId,
|
|
1122
|
+
"displayName": listRoverClustersRequest.displayName,
|
|
1123
|
+
"clusterType": listRoverClustersRequest.clusterType,
|
|
1124
|
+
"limit": listRoverClustersRequest.limit,
|
|
1125
|
+
"page": listRoverClustersRequest.page,
|
|
1126
|
+
"lifecycleState": listRoverClustersRequest.lifecycleState,
|
|
1127
|
+
"sortOrder": listRoverClustersRequest.sortOrder,
|
|
1128
|
+
"sortBy": listRoverClustersRequest.sortBy
|
|
1084
1129
|
};
|
|
1085
|
-
const queryParams = {};
|
|
1086
1130
|
let headerParams = {
|
|
1087
1131
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1088
|
-
"
|
|
1089
|
-
"opc-request-id": updateRoverEntitlementRequest.opcRequestId
|
|
1132
|
+
"opc-request-id": listRoverClustersRequest.opcRequestId
|
|
1090
1133
|
};
|
|
1091
1134
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1092
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1135
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRoverClustersRequest.retryConfiguration, specRetryConfiguration);
|
|
1093
1136
|
if (this.logger)
|
|
1094
1137
|
retrier.logger = this.logger;
|
|
1095
1138
|
const request = yield oci_common_1.composeRequest({
|
|
1096
1139
|
baseEndpoint: this._endpoint,
|
|
1097
1140
|
defaultHeaders: this._defaultHeaders,
|
|
1098
|
-
path: "/
|
|
1099
|
-
method: "
|
|
1100
|
-
bodyContent: common.ObjectSerializer.serialize(updateRoverEntitlementRequest.updateRoverEntitlementDetails, "UpdateRoverEntitlementDetails", model.UpdateRoverEntitlementDetails.getJsonObj),
|
|
1141
|
+
path: "/roverClusters",
|
|
1142
|
+
method: "GET",
|
|
1101
1143
|
pathParams: pathParams,
|
|
1102
1144
|
headerParams: headerParams,
|
|
1103
1145
|
queryParams: queryParams
|
|
@@ -1107,18 +1149,23 @@ class RoverEntitlementClient {
|
|
|
1107
1149
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1108
1150
|
responseObject: {},
|
|
1109
1151
|
body: yield response.json(),
|
|
1110
|
-
bodyKey: "
|
|
1111
|
-
bodyModel: model.
|
|
1112
|
-
type: "model.
|
|
1152
|
+
bodyKey: "roverClusterCollection",
|
|
1153
|
+
bodyModel: model.RoverClusterCollection,
|
|
1154
|
+
type: "model.RoverClusterCollection",
|
|
1113
1155
|
responseHeaders: [
|
|
1114
1156
|
{
|
|
1115
|
-
value: response.headers.get("
|
|
1116
|
-
key: "
|
|
1157
|
+
value: response.headers.get("opc-request-id"),
|
|
1158
|
+
key: "opcRequestId",
|
|
1117
1159
|
dataType: "string"
|
|
1118
1160
|
},
|
|
1119
1161
|
{
|
|
1120
|
-
value: response.headers.get("opc-
|
|
1121
|
-
key: "
|
|
1162
|
+
value: response.headers.get("opc-next-page"),
|
|
1163
|
+
key: "opcNextPage",
|
|
1164
|
+
dataType: "string"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
value: response.headers.get("opc-prev-page"),
|
|
1168
|
+
key: "opcPrevPage",
|
|
1122
1169
|
dataType: "string"
|
|
1123
1170
|
}
|
|
1124
1171
|
]
|
|
@@ -1130,24 +1177,151 @@ class RoverEntitlementClient {
|
|
|
1130
1177
|
}
|
|
1131
1178
|
});
|
|
1132
1179
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1180
|
+
/**
|
|
1181
|
+
* Submit additional nodes request for a roverCluster.
|
|
1182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1183
|
+
* @param RequestAdditionalNodesRequest
|
|
1184
|
+
* @return RequestAdditionalNodesResponse
|
|
1185
|
+
* @throws OciError when an error occurs
|
|
1186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RequestAdditionalNodes.ts.html |here} to see how to use RequestAdditionalNodes API.
|
|
1187
|
+
*/
|
|
1188
|
+
requestAdditionalNodes(requestAdditionalNodesRequest) {
|
|
1189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1190
|
+
if (this.logger)
|
|
1191
|
+
this.logger.debug("Calling operation RoverClusterClient#requestAdditionalNodes.");
|
|
1192
|
+
const operationName = "requestAdditionalNodes";
|
|
1193
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/RequestAdditionalNodes";
|
|
1194
|
+
const pathParams = {
|
|
1195
|
+
"{roverClusterId}": requestAdditionalNodesRequest.roverClusterId
|
|
1196
|
+
};
|
|
1197
|
+
const queryParams = {};
|
|
1198
|
+
let headerParams = {
|
|
1199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1200
|
+
"if-match": requestAdditionalNodesRequest.ifMatch,
|
|
1201
|
+
"opc-request-id": requestAdditionalNodesRequest.opcRequestId,
|
|
1202
|
+
"opc-retry-token": requestAdditionalNodesRequest.opcRetryToken
|
|
1203
|
+
};
|
|
1204
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1205
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestAdditionalNodesRequest.retryConfiguration, specRetryConfiguration);
|
|
1206
|
+
if (this.logger)
|
|
1207
|
+
retrier.logger = this.logger;
|
|
1208
|
+
const request = yield oci_common_1.composeRequest({
|
|
1209
|
+
baseEndpoint: this._endpoint,
|
|
1210
|
+
defaultHeaders: this._defaultHeaders,
|
|
1211
|
+
path: "/roverClusters/{roverClusterId}/actions/requestAdditionalNodes",
|
|
1212
|
+
method: "POST",
|
|
1213
|
+
bodyContent: common.ObjectSerializer.serialize(requestAdditionalNodesRequest.requestAdditionalNodesDetails, "RequestAdditionalNodesDetails", model.RequestAdditionalNodesDetails.getJsonObj),
|
|
1214
|
+
pathParams: pathParams,
|
|
1215
|
+
headerParams: headerParams,
|
|
1216
|
+
queryParams: queryParams
|
|
1217
|
+
});
|
|
1218
|
+
try {
|
|
1219
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1220
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1221
|
+
responseObject: {},
|
|
1222
|
+
responseHeaders: [
|
|
1223
|
+
{
|
|
1224
|
+
value: response.headers.get("opc-request-id"),
|
|
1225
|
+
key: "opcRequestId",
|
|
1226
|
+
dataType: "string"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1230
|
+
key: "opcWorkRequestId",
|
|
1231
|
+
dataType: "string"
|
|
1232
|
+
}
|
|
1233
|
+
]
|
|
1234
|
+
});
|
|
1235
|
+
return sdkResponse;
|
|
1236
|
+
}
|
|
1237
|
+
catch (err) {
|
|
1238
|
+
throw err;
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Updates the RoverCluster
|
|
1244
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1245
|
+
* @param UpdateRoverClusterRequest
|
|
1246
|
+
* @return UpdateRoverClusterResponse
|
|
1247
|
+
* @throws OciError when an error occurs
|
|
1248
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/UpdateRoverCluster.ts.html |here} to see how to use UpdateRoverCluster API.
|
|
1249
|
+
*/
|
|
1250
|
+
updateRoverCluster(updateRoverClusterRequest) {
|
|
1251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1252
|
+
if (this.logger)
|
|
1253
|
+
this.logger.debug("Calling operation RoverClusterClient#updateRoverCluster.");
|
|
1254
|
+
const operationName = "updateRoverCluster";
|
|
1255
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverCluster/UpdateRoverCluster";
|
|
1256
|
+
const pathParams = {
|
|
1257
|
+
"{roverClusterId}": updateRoverClusterRequest.roverClusterId
|
|
1258
|
+
};
|
|
1259
|
+
const queryParams = {};
|
|
1260
|
+
let headerParams = {
|
|
1261
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1262
|
+
"if-match": updateRoverClusterRequest.ifMatch,
|
|
1263
|
+
"opc-request-id": updateRoverClusterRequest.opcRequestId
|
|
1264
|
+
};
|
|
1265
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1266
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRoverClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1267
|
+
if (this.logger)
|
|
1268
|
+
retrier.logger = this.logger;
|
|
1269
|
+
const request = yield oci_common_1.composeRequest({
|
|
1270
|
+
baseEndpoint: this._endpoint,
|
|
1271
|
+
defaultHeaders: this._defaultHeaders,
|
|
1272
|
+
path: "/roverClusters/{roverClusterId}",
|
|
1273
|
+
method: "PUT",
|
|
1274
|
+
bodyContent: common.ObjectSerializer.serialize(updateRoverClusterRequest.updateRoverClusterDetails, "UpdateRoverClusterDetails", model.UpdateRoverClusterDetails.getJsonObj),
|
|
1275
|
+
pathParams: pathParams,
|
|
1276
|
+
headerParams: headerParams,
|
|
1277
|
+
queryParams: queryParams
|
|
1278
|
+
});
|
|
1279
|
+
try {
|
|
1280
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1281
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1282
|
+
responseObject: {},
|
|
1283
|
+
body: yield response.json(),
|
|
1284
|
+
bodyKey: "roverCluster",
|
|
1285
|
+
bodyModel: model.RoverCluster,
|
|
1286
|
+
type: "model.RoverCluster",
|
|
1287
|
+
responseHeaders: [
|
|
1288
|
+
{
|
|
1289
|
+
value: response.headers.get("etag"),
|
|
1290
|
+
key: "etag",
|
|
1291
|
+
dataType: "string"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
value: response.headers.get("opc-request-id"),
|
|
1295
|
+
key: "opcRequestId",
|
|
1296
|
+
dataType: "string"
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
});
|
|
1300
|
+
return sdkResponse;
|
|
1301
|
+
}
|
|
1302
|
+
catch (err) {
|
|
1303
|
+
throw err;
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
exports.RoverClusterClient = RoverClusterClient;
|
|
1309
|
+
RoverClusterClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
1310
|
+
RoverClusterClient.endpointServiceName = "";
|
|
1311
|
+
var RoverEntitlementApiKeys;
|
|
1312
|
+
(function (RoverEntitlementApiKeys) {
|
|
1313
|
+
})(RoverEntitlementApiKeys = exports.RoverEntitlementApiKeys || (exports.RoverEntitlementApiKeys = {}));
|
|
1314
|
+
/**
|
|
1141
1315
|
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1142
1316
|
*/
|
|
1143
|
-
class
|
|
1317
|
+
class RoverEntitlementClient {
|
|
1144
1318
|
constructor(params, clientConfiguration) {
|
|
1145
1319
|
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
1146
1320
|
this["_endpoint"] = "";
|
|
1147
1321
|
this["_defaultHeaders"] = {};
|
|
1148
1322
|
this._circuitBreaker = null;
|
|
1149
1323
|
this._httpOptions = undefined;
|
|
1150
|
-
this.targetService = "
|
|
1324
|
+
this.targetService = "RoverEntitlement";
|
|
1151
1325
|
this._regionId = "";
|
|
1152
1326
|
this._lastSetRegionOrRegionId = "";
|
|
1153
1327
|
const requestSigner = params.authenticationDetailsProvider
|
|
@@ -1194,7 +1368,7 @@ class RoverNodeClient {
|
|
|
1194
1368
|
this._endpoint = endpoint;
|
|
1195
1369
|
this._endpoint = this._endpoint + "/20201210";
|
|
1196
1370
|
if (this.logger)
|
|
1197
|
-
this.logger.info(`
|
|
1371
|
+
this.logger.info(`RoverEntitlementClient endpoint set to ${this._endpoint}`);
|
|
1198
1372
|
}
|
|
1199
1373
|
get logger() {
|
|
1200
1374
|
return common.LOG.logger;
|
|
@@ -1209,10 +1383,10 @@ class RoverNodeClient {
|
|
|
1209
1383
|
if (this.logger)
|
|
1210
1384
|
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1211
1385
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1212
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
1386
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverEntitlementClient.serviceEndpointTemplate, this._region, RoverEntitlementClient.endpointServiceName);
|
|
1213
1387
|
}
|
|
1214
1388
|
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1215
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
1389
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverEntitlementClient.serviceEndpointTemplate, this._regionId, RoverEntitlementClient.endpointServiceName);
|
|
1216
1390
|
}
|
|
1217
1391
|
}
|
|
1218
1392
|
/**
|
|
@@ -1222,7 +1396,7 @@ class RoverNodeClient {
|
|
|
1222
1396
|
*/
|
|
1223
1397
|
set region(region) {
|
|
1224
1398
|
this._region = region;
|
|
1225
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
|
|
1399
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverEntitlementClient.serviceEndpointTemplate, region, RoverEntitlementClient.endpointServiceName);
|
|
1226
1400
|
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1227
1401
|
}
|
|
1228
1402
|
/**
|
|
@@ -1235,17 +1409,17 @@ class RoverNodeClient {
|
|
|
1235
1409
|
*/
|
|
1236
1410
|
set regionId(regionId) {
|
|
1237
1411
|
this._regionId = regionId;
|
|
1238
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
|
|
1412
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverEntitlementClient.serviceEndpointTemplate, regionId, RoverEntitlementClient.endpointServiceName);
|
|
1239
1413
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1240
1414
|
}
|
|
1241
1415
|
/**
|
|
1242
|
-
* Creates a new
|
|
1416
|
+
* Creates a new RoverEntitlementWaiter for resources for this service.
|
|
1243
1417
|
*
|
|
1244
1418
|
* @param config The waiter configuration for termination and delay strategy
|
|
1245
1419
|
* @return The service waiters.
|
|
1246
1420
|
*/
|
|
1247
1421
|
createWaiters(config) {
|
|
1248
|
-
this._waiters = new
|
|
1422
|
+
this._waiters = new roverentitlement_waiter_1.RoverEntitlementWaiter(this, config);
|
|
1249
1423
|
return this._waiters;
|
|
1250
1424
|
}
|
|
1251
1425
|
/**
|
|
@@ -1260,39 +1434,39 @@ class RoverNodeClient {
|
|
|
1260
1434
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
1261
1435
|
}
|
|
1262
1436
|
/**
|
|
1263
|
-
* Moves
|
|
1437
|
+
* Moves an entitlement into a different compartment.
|
|
1264
1438
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1265
|
-
* @param
|
|
1266
|
-
* @return
|
|
1439
|
+
* @param ChangeRoverEntitlementCompartmentRequest
|
|
1440
|
+
* @return ChangeRoverEntitlementCompartmentResponse
|
|
1267
1441
|
* @throws OciError when an error occurs
|
|
1268
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1442
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ChangeRoverEntitlementCompartment.ts.html |here} to see how to use ChangeRoverEntitlementCompartment API.
|
|
1269
1443
|
*/
|
|
1270
|
-
|
|
1444
|
+
changeRoverEntitlementCompartment(changeRoverEntitlementCompartmentRequest) {
|
|
1271
1445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1272
1446
|
if (this.logger)
|
|
1273
|
-
this.logger.debug("Calling operation
|
|
1274
|
-
const operationName = "
|
|
1275
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1447
|
+
this.logger.debug("Calling operation RoverEntitlementClient#changeRoverEntitlementCompartment.");
|
|
1448
|
+
const operationName = "changeRoverEntitlementCompartment";
|
|
1449
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/ChangeRoverEntitlementCompartment";
|
|
1276
1450
|
const pathParams = {
|
|
1277
|
-
"{
|
|
1451
|
+
"{roverEntitlementId}": changeRoverEntitlementCompartmentRequest.roverEntitlementId
|
|
1278
1452
|
};
|
|
1279
1453
|
const queryParams = {};
|
|
1280
1454
|
let headerParams = {
|
|
1281
1455
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1282
|
-
"if-match":
|
|
1283
|
-
"opc-request-id":
|
|
1284
|
-
"opc-retry-token":
|
|
1456
|
+
"if-match": changeRoverEntitlementCompartmentRequest.ifMatch,
|
|
1457
|
+
"opc-request-id": changeRoverEntitlementCompartmentRequest.opcRequestId,
|
|
1458
|
+
"opc-retry-token": changeRoverEntitlementCompartmentRequest.opcRetryToken
|
|
1285
1459
|
};
|
|
1286
1460
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1287
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1461
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRoverEntitlementCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1288
1462
|
if (this.logger)
|
|
1289
1463
|
retrier.logger = this.logger;
|
|
1290
1464
|
const request = yield oci_common_1.composeRequest({
|
|
1291
1465
|
baseEndpoint: this._endpoint,
|
|
1292
1466
|
defaultHeaders: this._defaultHeaders,
|
|
1293
|
-
path: "/
|
|
1467
|
+
path: "/roverEntitlements/{roverEntitlementId}/actions/changeCompartment",
|
|
1294
1468
|
method: "POST",
|
|
1295
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
1469
|
+
bodyContent: common.ObjectSerializer.serialize(changeRoverEntitlementCompartmentRequest.changeRoverEntitlementCompartmentDetails, "ChangeRoverEntitlementCompartmentDetails", model.ChangeRoverEntitlementCompartmentDetails.getJsonObj),
|
|
1296
1470
|
pathParams: pathParams,
|
|
1297
1471
|
headerParams: headerParams,
|
|
1298
1472
|
queryParams: queryParams
|
|
@@ -1317,37 +1491,36 @@ class RoverNodeClient {
|
|
|
1317
1491
|
});
|
|
1318
1492
|
}
|
|
1319
1493
|
/**
|
|
1320
|
-
*
|
|
1321
|
-
*
|
|
1494
|
+
* Create the Entitlement to use a Rover Device. It requires some offline process of review and signatures before request is granted.
|
|
1322
1495
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1323
|
-
* @param
|
|
1324
|
-
* @return
|
|
1496
|
+
* @param CreateRoverEntitlementRequest
|
|
1497
|
+
* @return CreateRoverEntitlementResponse
|
|
1325
1498
|
* @throws OciError when an error occurs
|
|
1326
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1499
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/CreateRoverEntitlement.ts.html |here} to see how to use CreateRoverEntitlement API.
|
|
1327
1500
|
*/
|
|
1328
|
-
|
|
1501
|
+
createRoverEntitlement(createRoverEntitlementRequest) {
|
|
1329
1502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1330
1503
|
if (this.logger)
|
|
1331
|
-
this.logger.debug("Calling operation
|
|
1332
|
-
const operationName = "
|
|
1333
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1504
|
+
this.logger.debug("Calling operation RoverEntitlementClient#createRoverEntitlement.");
|
|
1505
|
+
const operationName = "createRoverEntitlement";
|
|
1506
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/CreateRoverEntitlement";
|
|
1334
1507
|
const pathParams = {};
|
|
1335
1508
|
const queryParams = {};
|
|
1336
1509
|
let headerParams = {
|
|
1337
1510
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1338
|
-
"opc-retry-token":
|
|
1339
|
-
"opc-request-id":
|
|
1511
|
+
"opc-retry-token": createRoverEntitlementRequest.opcRetryToken,
|
|
1512
|
+
"opc-request-id": createRoverEntitlementRequest.opcRequestId
|
|
1340
1513
|
};
|
|
1341
1514
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1342
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1515
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRoverEntitlementRequest.retryConfiguration, specRetryConfiguration);
|
|
1343
1516
|
if (this.logger)
|
|
1344
1517
|
retrier.logger = this.logger;
|
|
1345
1518
|
const request = yield oci_common_1.composeRequest({
|
|
1346
1519
|
baseEndpoint: this._endpoint,
|
|
1347
1520
|
defaultHeaders: this._defaultHeaders,
|
|
1348
|
-
path: "/
|
|
1521
|
+
path: "/roverEntitlements",
|
|
1349
1522
|
method: "POST",
|
|
1350
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
1523
|
+
bodyContent: common.ObjectSerializer.serialize(createRoverEntitlementRequest.createRoverEntitlementDetails, "CreateRoverEntitlementDetails", model.CreateRoverEntitlementDetails.getJsonObj),
|
|
1351
1524
|
pathParams: pathParams,
|
|
1352
1525
|
headerParams: headerParams,
|
|
1353
1526
|
queryParams: queryParams
|
|
@@ -1357,18 +1530,18 @@ class RoverNodeClient {
|
|
|
1357
1530
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1358
1531
|
responseObject: {},
|
|
1359
1532
|
body: yield response.json(),
|
|
1360
|
-
bodyKey: "
|
|
1361
|
-
bodyModel: model.
|
|
1362
|
-
type: "model.
|
|
1533
|
+
bodyKey: "roverEntitlement",
|
|
1534
|
+
bodyModel: model.RoverEntitlement,
|
|
1535
|
+
type: "model.RoverEntitlement",
|
|
1363
1536
|
responseHeaders: [
|
|
1364
1537
|
{
|
|
1365
|
-
value: response.headers.get("
|
|
1366
|
-
key: "
|
|
1538
|
+
value: response.headers.get("opc-request-id"),
|
|
1539
|
+
key: "opcRequestId",
|
|
1367
1540
|
dataType: "string"
|
|
1368
1541
|
},
|
|
1369
1542
|
{
|
|
1370
|
-
value: response.headers.get("
|
|
1371
|
-
key: "
|
|
1543
|
+
value: response.headers.get("etag"),
|
|
1544
|
+
key: "etag",
|
|
1372
1545
|
dataType: "string"
|
|
1373
1546
|
}
|
|
1374
1547
|
]
|
|
@@ -1381,37 +1554,37 @@ class RoverNodeClient {
|
|
|
1381
1554
|
});
|
|
1382
1555
|
}
|
|
1383
1556
|
/**
|
|
1384
|
-
* Deletes a
|
|
1557
|
+
* Deletes a rover entitlement
|
|
1385
1558
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1386
|
-
* @param
|
|
1387
|
-
* @return
|
|
1559
|
+
* @param DeleteRoverEntitlementRequest
|
|
1560
|
+
* @return DeleteRoverEntitlementResponse
|
|
1388
1561
|
* @throws OciError when an error occurs
|
|
1389
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1562
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/DeleteRoverEntitlement.ts.html |here} to see how to use DeleteRoverEntitlement API.
|
|
1390
1563
|
*/
|
|
1391
|
-
|
|
1564
|
+
deleteRoverEntitlement(deleteRoverEntitlementRequest) {
|
|
1392
1565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1393
1566
|
if (this.logger)
|
|
1394
|
-
this.logger.debug("Calling operation
|
|
1395
|
-
const operationName = "
|
|
1396
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1567
|
+
this.logger.debug("Calling operation RoverEntitlementClient#deleteRoverEntitlement.");
|
|
1568
|
+
const operationName = "deleteRoverEntitlement";
|
|
1569
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/DeleteRoverEntitlement";
|
|
1397
1570
|
const pathParams = {
|
|
1398
|
-
"{
|
|
1571
|
+
"{roverEntitlementId}": deleteRoverEntitlementRequest.roverEntitlementId
|
|
1399
1572
|
};
|
|
1400
1573
|
const queryParams = {};
|
|
1401
1574
|
let headerParams = {
|
|
1402
1575
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1403
|
-
"
|
|
1404
|
-
"opc-request-id":
|
|
1405
|
-
"
|
|
1576
|
+
"opc-retry-token": deleteRoverEntitlementRequest.opcRetryToken,
|
|
1577
|
+
"opc-request-id": deleteRoverEntitlementRequest.opcRequestId,
|
|
1578
|
+
"if-match": deleteRoverEntitlementRequest.ifMatch
|
|
1406
1579
|
};
|
|
1407
1580
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1408
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1581
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRoverEntitlementRequest.retryConfiguration, specRetryConfiguration);
|
|
1409
1582
|
if (this.logger)
|
|
1410
1583
|
retrier.logger = this.logger;
|
|
1411
1584
|
const request = yield oci_common_1.composeRequest({
|
|
1412
1585
|
baseEndpoint: this._endpoint,
|
|
1413
1586
|
defaultHeaders: this._defaultHeaders,
|
|
1414
|
-
path: "/
|
|
1587
|
+
path: "/roverEntitlements/{roverEntitlementId}",
|
|
1415
1588
|
method: "DELETE",
|
|
1416
1589
|
pathParams: pathParams,
|
|
1417
1590
|
headerParams: headerParams,
|
|
@@ -1437,35 +1610,38 @@ class RoverNodeClient {
|
|
|
1437
1610
|
});
|
|
1438
1611
|
}
|
|
1439
1612
|
/**
|
|
1440
|
-
*
|
|
1613
|
+
* Describes the Rover Device Entitlement in detail
|
|
1441
1614
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1442
|
-
* @param
|
|
1443
|
-
* @return
|
|
1615
|
+
* @param GetRoverEntitlementRequest
|
|
1616
|
+
* @return GetRoverEntitlementResponse
|
|
1444
1617
|
* @throws OciError when an error occurs
|
|
1445
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1618
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverEntitlement.ts.html |here} to see how to use GetRoverEntitlement API.
|
|
1446
1619
|
*/
|
|
1447
|
-
|
|
1620
|
+
getRoverEntitlement(getRoverEntitlementRequest) {
|
|
1448
1621
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1449
1622
|
if (this.logger)
|
|
1450
|
-
this.logger.debug("Calling operation
|
|
1451
|
-
const operationName = "
|
|
1452
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1623
|
+
this.logger.debug("Calling operation RoverEntitlementClient#getRoverEntitlement.");
|
|
1624
|
+
const operationName = "getRoverEntitlement";
|
|
1625
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/GetRoverEntitlement";
|
|
1453
1626
|
const pathParams = {
|
|
1454
|
-
"{
|
|
1627
|
+
"{roverEntitlementId}": getRoverEntitlementRequest.roverEntitlementId
|
|
1628
|
+
};
|
|
1629
|
+
const queryParams = {
|
|
1630
|
+
"compartmentId": getRoverEntitlementRequest.compartmentId
|
|
1455
1631
|
};
|
|
1456
|
-
const queryParams = {};
|
|
1457
1632
|
let headerParams = {
|
|
1458
1633
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1459
|
-
"opc-
|
|
1634
|
+
"opc-retry-token": getRoverEntitlementRequest.opcRetryToken,
|
|
1635
|
+
"opc-request-id": getRoverEntitlementRequest.opcRequestId
|
|
1460
1636
|
};
|
|
1461
1637
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1462
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1638
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverEntitlementRequest.retryConfiguration, specRetryConfiguration);
|
|
1463
1639
|
if (this.logger)
|
|
1464
1640
|
retrier.logger = this.logger;
|
|
1465
1641
|
const request = yield oci_common_1.composeRequest({
|
|
1466
1642
|
baseEndpoint: this._endpoint,
|
|
1467
1643
|
defaultHeaders: this._defaultHeaders,
|
|
1468
|
-
path: "/
|
|
1644
|
+
path: "/roverEntitlements/{roverEntitlementId}",
|
|
1469
1645
|
method: "GET",
|
|
1470
1646
|
pathParams: pathParams,
|
|
1471
1647
|
headerParams: headerParams,
|
|
@@ -1476,18 +1652,18 @@ class RoverNodeClient {
|
|
|
1476
1652
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1477
1653
|
responseObject: {},
|
|
1478
1654
|
body: yield response.json(),
|
|
1479
|
-
bodyKey: "
|
|
1480
|
-
bodyModel: model.
|
|
1481
|
-
type: "model.
|
|
1655
|
+
bodyKey: "roverEntitlement",
|
|
1656
|
+
bodyModel: model.RoverEntitlement,
|
|
1657
|
+
type: "model.RoverEntitlement",
|
|
1482
1658
|
responseHeaders: [
|
|
1483
1659
|
{
|
|
1484
|
-
value: response.headers.get("
|
|
1485
|
-
key: "
|
|
1660
|
+
value: response.headers.get("opc-request-id"),
|
|
1661
|
+
key: "opcRequestId",
|
|
1486
1662
|
dataType: "string"
|
|
1487
1663
|
},
|
|
1488
1664
|
{
|
|
1489
|
-
value: response.headers.get("
|
|
1490
|
-
key: "
|
|
1665
|
+
value: response.headers.get("etag"),
|
|
1666
|
+
key: "etag",
|
|
1491
1667
|
dataType: "string"
|
|
1492
1668
|
}
|
|
1493
1669
|
]
|
|
@@ -1500,35 +1676,42 @@ class RoverNodeClient {
|
|
|
1500
1676
|
});
|
|
1501
1677
|
}
|
|
1502
1678
|
/**
|
|
1503
|
-
*
|
|
1679
|
+
* Returns a list of RoverEntitlements.
|
|
1504
1680
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1505
|
-
* @param
|
|
1506
|
-
* @return
|
|
1681
|
+
* @param ListRoverEntitlementsRequest
|
|
1682
|
+
* @return ListRoverEntitlementsResponse
|
|
1507
1683
|
* @throws OciError when an error occurs
|
|
1508
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1684
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListRoverEntitlements.ts.html |here} to see how to use ListRoverEntitlements API.
|
|
1509
1685
|
*/
|
|
1510
|
-
|
|
1686
|
+
listRoverEntitlements(listRoverEntitlementsRequest) {
|
|
1511
1687
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1512
1688
|
if (this.logger)
|
|
1513
|
-
this.logger.debug("Calling operation
|
|
1514
|
-
const operationName = "
|
|
1515
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1516
|
-
const pathParams = {
|
|
1517
|
-
|
|
1689
|
+
this.logger.debug("Calling operation RoverEntitlementClient#listRoverEntitlements.");
|
|
1690
|
+
const operationName = "listRoverEntitlements";
|
|
1691
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/ListRoverEntitlements";
|
|
1692
|
+
const pathParams = {};
|
|
1693
|
+
const queryParams = {
|
|
1694
|
+
"id": listRoverEntitlementsRequest.id,
|
|
1695
|
+
"compartmentId": listRoverEntitlementsRequest.compartmentId,
|
|
1696
|
+
"displayName": listRoverEntitlementsRequest.displayName,
|
|
1697
|
+
"lifecycleState": listRoverEntitlementsRequest.lifecycleState,
|
|
1698
|
+
"limit": listRoverEntitlementsRequest.limit,
|
|
1699
|
+
"page": listRoverEntitlementsRequest.page,
|
|
1700
|
+
"sortOrder": listRoverEntitlementsRequest.sortOrder,
|
|
1701
|
+
"sortBy": listRoverEntitlementsRequest.sortBy
|
|
1518
1702
|
};
|
|
1519
|
-
const queryParams = {};
|
|
1520
1703
|
let headerParams = {
|
|
1521
1704
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1522
|
-
"opc-request-id":
|
|
1705
|
+
"opc-request-id": listRoverEntitlementsRequest.opcRequestId
|
|
1523
1706
|
};
|
|
1524
1707
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1525
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1708
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRoverEntitlementsRequest.retryConfiguration, specRetryConfiguration);
|
|
1526
1709
|
if (this.logger)
|
|
1527
1710
|
retrier.logger = this.logger;
|
|
1528
1711
|
const request = yield oci_common_1.composeRequest({
|
|
1529
1712
|
baseEndpoint: this._endpoint,
|
|
1530
1713
|
defaultHeaders: this._defaultHeaders,
|
|
1531
|
-
path: "/
|
|
1714
|
+
path: "/roverEntitlements",
|
|
1532
1715
|
method: "GET",
|
|
1533
1716
|
pathParams: pathParams,
|
|
1534
1717
|
headerParams: headerParams,
|
|
@@ -1539,18 +1722,23 @@ class RoverNodeClient {
|
|
|
1539
1722
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1540
1723
|
responseObject: {},
|
|
1541
1724
|
body: yield response.json(),
|
|
1542
|
-
bodyKey: "
|
|
1543
|
-
bodyModel: model.
|
|
1544
|
-
type: "model.
|
|
1725
|
+
bodyKey: "roverEntitlementCollection",
|
|
1726
|
+
bodyModel: model.RoverEntitlementCollection,
|
|
1727
|
+
type: "model.RoverEntitlementCollection",
|
|
1545
1728
|
responseHeaders: [
|
|
1546
1729
|
{
|
|
1547
|
-
value: response.headers.get("
|
|
1548
|
-
key: "
|
|
1730
|
+
value: response.headers.get("opc-request-id"),
|
|
1731
|
+
key: "opcRequestId",
|
|
1549
1732
|
dataType: "string"
|
|
1550
1733
|
},
|
|
1551
1734
|
{
|
|
1552
|
-
value: response.headers.get("opc-
|
|
1553
|
-
key: "
|
|
1735
|
+
value: response.headers.get("opc-next-page"),
|
|
1736
|
+
key: "opcNextPage",
|
|
1737
|
+
dataType: "string"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
value: response.headers.get("opc-prev-page"),
|
|
1741
|
+
key: "opcPrevPage",
|
|
1554
1742
|
dataType: "string"
|
|
1555
1743
|
}
|
|
1556
1744
|
]
|
|
@@ -1563,36 +1751,38 @@ class RoverNodeClient {
|
|
|
1563
1751
|
});
|
|
1564
1752
|
}
|
|
1565
1753
|
/**
|
|
1566
|
-
*
|
|
1754
|
+
* Updates the RoverEntitlement
|
|
1567
1755
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1568
|
-
* @param
|
|
1569
|
-
* @return
|
|
1756
|
+
* @param UpdateRoverEntitlementRequest
|
|
1757
|
+
* @return UpdateRoverEntitlementResponse
|
|
1570
1758
|
* @throws OciError when an error occurs
|
|
1571
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1759
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/UpdateRoverEntitlement.ts.html |here} to see how to use UpdateRoverEntitlement API.
|
|
1572
1760
|
*/
|
|
1573
|
-
|
|
1761
|
+
updateRoverEntitlement(updateRoverEntitlementRequest) {
|
|
1574
1762
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1575
1763
|
if (this.logger)
|
|
1576
|
-
this.logger.debug("Calling operation
|
|
1577
|
-
const operationName = "
|
|
1578
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1764
|
+
this.logger.debug("Calling operation RoverEntitlementClient#updateRoverEntitlement.");
|
|
1765
|
+
const operationName = "updateRoverEntitlement";
|
|
1766
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverEntitlement/UpdateRoverEntitlement";
|
|
1579
1767
|
const pathParams = {
|
|
1580
|
-
"{
|
|
1768
|
+
"{roverEntitlementId}": updateRoverEntitlementRequest.roverEntitlementId
|
|
1581
1769
|
};
|
|
1582
1770
|
const queryParams = {};
|
|
1583
1771
|
let headerParams = {
|
|
1584
1772
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1585
|
-
"
|
|
1773
|
+
"if-match": updateRoverEntitlementRequest.ifMatch,
|
|
1774
|
+
"opc-request-id": updateRoverEntitlementRequest.opcRequestId
|
|
1586
1775
|
};
|
|
1587
1776
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1588
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1777
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRoverEntitlementRequest.retryConfiguration, specRetryConfiguration);
|
|
1589
1778
|
if (this.logger)
|
|
1590
1779
|
retrier.logger = this.logger;
|
|
1591
1780
|
const request = yield oci_common_1.composeRequest({
|
|
1592
1781
|
baseEndpoint: this._endpoint,
|
|
1593
1782
|
defaultHeaders: this._defaultHeaders,
|
|
1594
|
-
path: "/
|
|
1595
|
-
method: "
|
|
1783
|
+
path: "/roverEntitlements/{roverEntitlementId}",
|
|
1784
|
+
method: "PUT",
|
|
1785
|
+
bodyContent: common.ObjectSerializer.serialize(updateRoverEntitlementRequest.updateRoverEntitlementDetails, "UpdateRoverEntitlementDetails", model.UpdateRoverEntitlementDetails.getJsonObj),
|
|
1596
1786
|
pathParams: pathParams,
|
|
1597
1787
|
headerParams: headerParams,
|
|
1598
1788
|
queryParams: queryParams
|
|
@@ -1602,9 +1792,9 @@ class RoverNodeClient {
|
|
|
1602
1792
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1603
1793
|
responseObject: {},
|
|
1604
1794
|
body: yield response.json(),
|
|
1605
|
-
bodyKey: "
|
|
1606
|
-
bodyModel: model.
|
|
1607
|
-
type: "model.
|
|
1795
|
+
bodyKey: "roverEntitlement",
|
|
1796
|
+
bodyModel: model.RoverEntitlement,
|
|
1797
|
+
type: "model.RoverEntitlement",
|
|
1608
1798
|
responseHeaders: [
|
|
1609
1799
|
{
|
|
1610
1800
|
value: response.headers.get("etag"),
|
|
@@ -1625,38 +1815,1448 @@ class RoverNodeClient {
|
|
|
1625
1815
|
}
|
|
1626
1816
|
});
|
|
1627
1817
|
}
|
|
1818
|
+
}
|
|
1819
|
+
exports.RoverEntitlementClient = RoverEntitlementClient;
|
|
1820
|
+
RoverEntitlementClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
1821
|
+
RoverEntitlementClient.endpointServiceName = "";
|
|
1822
|
+
var RoverNodeApiKeys;
|
|
1823
|
+
(function (RoverNodeApiKeys) {
|
|
1824
|
+
})(RoverNodeApiKeys = exports.RoverNodeApiKeys || (exports.RoverNodeApiKeys = {}));
|
|
1825
|
+
/**
|
|
1826
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1827
|
+
*/
|
|
1828
|
+
class RoverNodeClient {
|
|
1829
|
+
constructor(params, clientConfiguration) {
|
|
1830
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
1831
|
+
this["_endpoint"] = "";
|
|
1832
|
+
this["_defaultHeaders"] = {};
|
|
1833
|
+
this._circuitBreaker = null;
|
|
1834
|
+
this._httpOptions = undefined;
|
|
1835
|
+
this.targetService = "RoverNode";
|
|
1836
|
+
this._regionId = "";
|
|
1837
|
+
this._lastSetRegionOrRegionId = "";
|
|
1838
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1839
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1840
|
+
: null;
|
|
1841
|
+
if (clientConfiguration) {
|
|
1842
|
+
this._clientConfiguration = clientConfiguration;
|
|
1843
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1844
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1845
|
+
: null;
|
|
1846
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1847
|
+
? clientConfiguration.httpOptions
|
|
1848
|
+
: undefined;
|
|
1849
|
+
}
|
|
1850
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1851
|
+
const specCircuitBreakerEnabled = true;
|
|
1852
|
+
if (!this._circuitBreaker &&
|
|
1853
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1854
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1855
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1856
|
+
}
|
|
1857
|
+
this._httpClient =
|
|
1858
|
+
params.httpClient ||
|
|
1859
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1860
|
+
if (params.authenticationDetailsProvider &&
|
|
1861
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1862
|
+
const provider = params.authenticationDetailsProvider;
|
|
1863
|
+
if (provider.getRegion()) {
|
|
1864
|
+
this.region = provider.getRegion();
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1870
|
+
*/
|
|
1871
|
+
get endpoint() {
|
|
1872
|
+
return this._endpoint;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1876
|
+
* @param endpoint The endpoint of the service.
|
|
1877
|
+
*/
|
|
1878
|
+
set endpoint(endpoint) {
|
|
1879
|
+
this._endpoint = endpoint;
|
|
1880
|
+
this._endpoint = this._endpoint + "/20201210";
|
|
1881
|
+
if (this.logger)
|
|
1882
|
+
this.logger.info(`RoverNodeClient endpoint set to ${this._endpoint}`);
|
|
1883
|
+
}
|
|
1884
|
+
get logger() {
|
|
1885
|
+
return common.LOG.logger;
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1889
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1890
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1891
|
+
*/
|
|
1892
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1893
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1894
|
+
if (this.logger)
|
|
1895
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1896
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1897
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverNodeClient.serviceEndpointTemplate, this._region, RoverNodeClient.endpointServiceName);
|
|
1898
|
+
}
|
|
1899
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1900
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverNodeClient.serviceEndpointTemplate, this._regionId, RoverNodeClient.endpointServiceName);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1905
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1906
|
+
* @param region The region of the service.
|
|
1907
|
+
*/
|
|
1908
|
+
set region(region) {
|
|
1909
|
+
this._region = region;
|
|
1910
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverNodeClient.serviceEndpointTemplate, region, RoverNodeClient.endpointServiceName);
|
|
1911
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1915
|
+
*
|
|
1916
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1917
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1918
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1919
|
+
* @param regionId The public region ID.
|
|
1920
|
+
*/
|
|
1921
|
+
set regionId(regionId) {
|
|
1922
|
+
this._regionId = regionId;
|
|
1923
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverNodeClient.serviceEndpointTemplate, regionId, RoverNodeClient.endpointServiceName);
|
|
1924
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Creates a new RoverNodeWaiter for resources for this service.
|
|
1928
|
+
*
|
|
1929
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1930
|
+
* @return The service waiters.
|
|
1931
|
+
*/
|
|
1932
|
+
createWaiters(config) {
|
|
1933
|
+
this._waiters = new rovernode_waiter_1.RoverNodeWaiter(this, config);
|
|
1934
|
+
return this._waiters;
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Gets the waiters available for resources for this service.
|
|
1938
|
+
*
|
|
1939
|
+
* @return The service waiters.
|
|
1940
|
+
*/
|
|
1941
|
+
getWaiters() {
|
|
1942
|
+
if (this._waiters) {
|
|
1943
|
+
return this._waiters;
|
|
1944
|
+
}
|
|
1945
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Moves a rover node into a different compartment.
|
|
1949
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1950
|
+
* @param ChangeRoverNodeCompartmentRequest
|
|
1951
|
+
* @return ChangeRoverNodeCompartmentResponse
|
|
1952
|
+
* @throws OciError when an error occurs
|
|
1953
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ChangeRoverNodeCompartment.ts.html |here} to see how to use ChangeRoverNodeCompartment API.
|
|
1954
|
+
*/
|
|
1955
|
+
changeRoverNodeCompartment(changeRoverNodeCompartmentRequest) {
|
|
1956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1957
|
+
if (this.logger)
|
|
1958
|
+
this.logger.debug("Calling operation RoverNodeClient#changeRoverNodeCompartment.");
|
|
1959
|
+
const operationName = "changeRoverNodeCompartment";
|
|
1960
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/ChangeRoverNodeCompartment";
|
|
1961
|
+
const pathParams = {
|
|
1962
|
+
"{roverNodeId}": changeRoverNodeCompartmentRequest.roverNodeId
|
|
1963
|
+
};
|
|
1964
|
+
const queryParams = {};
|
|
1965
|
+
let headerParams = {
|
|
1966
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1967
|
+
"if-match": changeRoverNodeCompartmentRequest.ifMatch,
|
|
1968
|
+
"opc-request-id": changeRoverNodeCompartmentRequest.opcRequestId,
|
|
1969
|
+
"opc-retry-token": changeRoverNodeCompartmentRequest.opcRetryToken
|
|
1970
|
+
};
|
|
1971
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1972
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRoverNodeCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1973
|
+
if (this.logger)
|
|
1974
|
+
retrier.logger = this.logger;
|
|
1975
|
+
const request = yield oci_common_1.composeRequest({
|
|
1976
|
+
baseEndpoint: this._endpoint,
|
|
1977
|
+
defaultHeaders: this._defaultHeaders,
|
|
1978
|
+
path: "/roverNodes/{roverNodeId}/actions/changeCompartment",
|
|
1979
|
+
method: "POST",
|
|
1980
|
+
bodyContent: common.ObjectSerializer.serialize(changeRoverNodeCompartmentRequest.changeRoverNodeCompartmentDetails, "ChangeRoverNodeCompartmentDetails", model.ChangeRoverNodeCompartmentDetails.getJsonObj),
|
|
1981
|
+
pathParams: pathParams,
|
|
1982
|
+
headerParams: headerParams,
|
|
1983
|
+
queryParams: queryParams
|
|
1984
|
+
});
|
|
1985
|
+
try {
|
|
1986
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1987
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1988
|
+
responseObject: {},
|
|
1989
|
+
responseHeaders: [
|
|
1990
|
+
{
|
|
1991
|
+
value: response.headers.get("opc-request-id"),
|
|
1992
|
+
key: "opcRequestId",
|
|
1993
|
+
dataType: "string"
|
|
1994
|
+
}
|
|
1995
|
+
]
|
|
1996
|
+
});
|
|
1997
|
+
return sdkResponse;
|
|
1998
|
+
}
|
|
1999
|
+
catch (err) {
|
|
2000
|
+
throw err;
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Creates a new RoverNode.
|
|
2006
|
+
*
|
|
2007
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2008
|
+
* @param CreateRoverNodeRequest
|
|
2009
|
+
* @return CreateRoverNodeResponse
|
|
2010
|
+
* @throws OciError when an error occurs
|
|
2011
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/CreateRoverNode.ts.html |here} to see how to use CreateRoverNode API.
|
|
2012
|
+
*/
|
|
2013
|
+
createRoverNode(createRoverNodeRequest) {
|
|
2014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2015
|
+
if (this.logger)
|
|
2016
|
+
this.logger.debug("Calling operation RoverNodeClient#createRoverNode.");
|
|
2017
|
+
const operationName = "createRoverNode";
|
|
2018
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/CreateRoverNode";
|
|
2019
|
+
const pathParams = {};
|
|
2020
|
+
const queryParams = {};
|
|
2021
|
+
let headerParams = {
|
|
2022
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2023
|
+
"opc-retry-token": createRoverNodeRequest.opcRetryToken,
|
|
2024
|
+
"opc-request-id": createRoverNodeRequest.opcRequestId
|
|
2025
|
+
};
|
|
2026
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2027
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
2028
|
+
if (this.logger)
|
|
2029
|
+
retrier.logger = this.logger;
|
|
2030
|
+
const request = yield oci_common_1.composeRequest({
|
|
2031
|
+
baseEndpoint: this._endpoint,
|
|
2032
|
+
defaultHeaders: this._defaultHeaders,
|
|
2033
|
+
path: "/roverNodes",
|
|
2034
|
+
method: "POST",
|
|
2035
|
+
bodyContent: common.ObjectSerializer.serialize(createRoverNodeRequest.createRoverNodeDetails, "CreateRoverNodeDetails", model.CreateRoverNodeDetails.getJsonObj),
|
|
2036
|
+
pathParams: pathParams,
|
|
2037
|
+
headerParams: headerParams,
|
|
2038
|
+
queryParams: queryParams
|
|
2039
|
+
});
|
|
2040
|
+
try {
|
|
2041
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2042
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2043
|
+
responseObject: {},
|
|
2044
|
+
body: yield response.json(),
|
|
2045
|
+
bodyKey: "roverNode",
|
|
2046
|
+
bodyModel: model.RoverNode,
|
|
2047
|
+
type: "model.RoverNode",
|
|
2048
|
+
responseHeaders: [
|
|
2049
|
+
{
|
|
2050
|
+
value: response.headers.get("etag"),
|
|
2051
|
+
key: "etag",
|
|
2052
|
+
dataType: "string"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
value: response.headers.get("opc-request-id"),
|
|
2056
|
+
key: "opcRequestId",
|
|
2057
|
+
dataType: "string"
|
|
2058
|
+
}
|
|
2059
|
+
]
|
|
2060
|
+
});
|
|
2061
|
+
return sdkResponse;
|
|
2062
|
+
}
|
|
2063
|
+
catch (err) {
|
|
2064
|
+
throw err;
|
|
2065
|
+
}
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Deletes a RoverNode resource by identifier
|
|
2070
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2071
|
+
* @param DeleteRoverNodeRequest
|
|
2072
|
+
* @return DeleteRoverNodeResponse
|
|
2073
|
+
* @throws OciError when an error occurs
|
|
2074
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/DeleteRoverNode.ts.html |here} to see how to use DeleteRoverNode API.
|
|
2075
|
+
*/
|
|
2076
|
+
deleteRoverNode(deleteRoverNodeRequest) {
|
|
2077
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2078
|
+
if (this.logger)
|
|
2079
|
+
this.logger.debug("Calling operation RoverNodeClient#deleteRoverNode.");
|
|
2080
|
+
const operationName = "deleteRoverNode";
|
|
2081
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/DeleteRoverNode";
|
|
2082
|
+
const pathParams = {
|
|
2083
|
+
"{roverNodeId}": deleteRoverNodeRequest.roverNodeId
|
|
2084
|
+
};
|
|
2085
|
+
const queryParams = {};
|
|
2086
|
+
let headerParams = {
|
|
2087
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2088
|
+
"if-match": deleteRoverNodeRequest.ifMatch,
|
|
2089
|
+
"opc-request-id": deleteRoverNodeRequest.opcRequestId,
|
|
2090
|
+
"opc-retry-token": deleteRoverNodeRequest.opcRetryToken
|
|
2091
|
+
};
|
|
2092
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2093
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
2094
|
+
if (this.logger)
|
|
2095
|
+
retrier.logger = this.logger;
|
|
2096
|
+
const request = yield oci_common_1.composeRequest({
|
|
2097
|
+
baseEndpoint: this._endpoint,
|
|
2098
|
+
defaultHeaders: this._defaultHeaders,
|
|
2099
|
+
path: "/roverNodes/{roverNodeId}",
|
|
2100
|
+
method: "DELETE",
|
|
2101
|
+
pathParams: pathParams,
|
|
2102
|
+
headerParams: headerParams,
|
|
2103
|
+
queryParams: queryParams
|
|
2104
|
+
});
|
|
2105
|
+
try {
|
|
2106
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2107
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2108
|
+
responseObject: {},
|
|
2109
|
+
responseHeaders: [
|
|
2110
|
+
{
|
|
2111
|
+
value: response.headers.get("opc-request-id"),
|
|
2112
|
+
key: "opcRequestId",
|
|
2113
|
+
dataType: "string"
|
|
2114
|
+
}
|
|
2115
|
+
]
|
|
2116
|
+
});
|
|
2117
|
+
return sdkResponse;
|
|
2118
|
+
}
|
|
2119
|
+
catch (err) {
|
|
2120
|
+
throw err;
|
|
2121
|
+
}
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* Gets a RoverNode by identifier.
|
|
2126
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2127
|
+
* @param GetRoverNodeRequest
|
|
2128
|
+
* @return GetRoverNodeResponse
|
|
2129
|
+
* @throws OciError when an error occurs
|
|
2130
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverNode.ts.html |here} to see how to use GetRoverNode API.
|
|
2131
|
+
*/
|
|
2132
|
+
getRoverNode(getRoverNodeRequest) {
|
|
2133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2134
|
+
if (this.logger)
|
|
2135
|
+
this.logger.debug("Calling operation RoverNodeClient#getRoverNode.");
|
|
2136
|
+
const operationName = "getRoverNode";
|
|
2137
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/GetRoverNode";
|
|
2138
|
+
const pathParams = {
|
|
2139
|
+
"{roverNodeId}": getRoverNodeRequest.roverNodeId
|
|
2140
|
+
};
|
|
2141
|
+
const queryParams = {};
|
|
2142
|
+
let headerParams = {
|
|
2143
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2144
|
+
"opc-request-id": getRoverNodeRequest.opcRequestId
|
|
2145
|
+
};
|
|
2146
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2147
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
2148
|
+
if (this.logger)
|
|
2149
|
+
retrier.logger = this.logger;
|
|
2150
|
+
const request = yield oci_common_1.composeRequest({
|
|
2151
|
+
baseEndpoint: this._endpoint,
|
|
2152
|
+
defaultHeaders: this._defaultHeaders,
|
|
2153
|
+
path: "/roverNodes/{roverNodeId}",
|
|
2154
|
+
method: "GET",
|
|
2155
|
+
pathParams: pathParams,
|
|
2156
|
+
headerParams: headerParams,
|
|
2157
|
+
queryParams: queryParams
|
|
2158
|
+
});
|
|
2159
|
+
try {
|
|
2160
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2161
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2162
|
+
responseObject: {},
|
|
2163
|
+
body: yield response.json(),
|
|
2164
|
+
bodyKey: "roverNode",
|
|
2165
|
+
bodyModel: model.RoverNode,
|
|
2166
|
+
type: "model.RoverNode",
|
|
2167
|
+
responseHeaders: [
|
|
2168
|
+
{
|
|
2169
|
+
value: response.headers.get("etag"),
|
|
2170
|
+
key: "etag",
|
|
2171
|
+
dataType: "string"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
value: response.headers.get("opc-request-id"),
|
|
2175
|
+
key: "opcRequestId",
|
|
2176
|
+
dataType: "string"
|
|
2177
|
+
}
|
|
2178
|
+
]
|
|
2179
|
+
});
|
|
2180
|
+
return sdkResponse;
|
|
2181
|
+
}
|
|
2182
|
+
catch (err) {
|
|
2183
|
+
throw err;
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* Get the certificate for a rover node
|
|
2189
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2190
|
+
* @param GetRoverNodeCertificateRequest
|
|
2191
|
+
* @return GetRoverNodeCertificateResponse
|
|
2192
|
+
* @throws OciError when an error occurs
|
|
2193
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverNodeCertificate.ts.html |here} to see how to use GetRoverNodeCertificate API.
|
|
2194
|
+
*/
|
|
2195
|
+
getRoverNodeCertificate(getRoverNodeCertificateRequest) {
|
|
2196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2197
|
+
if (this.logger)
|
|
2198
|
+
this.logger.debug("Calling operation RoverNodeClient#getRoverNodeCertificate.");
|
|
2199
|
+
const operationName = "getRoverNodeCertificate";
|
|
2200
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNodeCertificate/GetRoverNodeCertificate";
|
|
2201
|
+
const pathParams = {
|
|
2202
|
+
"{roverNodeId}": getRoverNodeCertificateRequest.roverNodeId
|
|
2203
|
+
};
|
|
2204
|
+
const queryParams = {};
|
|
2205
|
+
let headerParams = {
|
|
2206
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2207
|
+
"opc-request-id": getRoverNodeCertificateRequest.opcRequestId
|
|
2208
|
+
};
|
|
2209
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2210
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverNodeCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
2211
|
+
if (this.logger)
|
|
2212
|
+
retrier.logger = this.logger;
|
|
2213
|
+
const request = yield oci_common_1.composeRequest({
|
|
2214
|
+
baseEndpoint: this._endpoint,
|
|
2215
|
+
defaultHeaders: this._defaultHeaders,
|
|
2216
|
+
path: "/roverNodes/{roverNodeId}/certificate",
|
|
2217
|
+
method: "GET",
|
|
2218
|
+
pathParams: pathParams,
|
|
2219
|
+
headerParams: headerParams,
|
|
2220
|
+
queryParams: queryParams
|
|
2221
|
+
});
|
|
2222
|
+
try {
|
|
2223
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2224
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2225
|
+
responseObject: {},
|
|
2226
|
+
body: yield response.json(),
|
|
2227
|
+
bodyKey: "roverNodeCertificate",
|
|
2228
|
+
bodyModel: model.RoverNodeCertificate,
|
|
2229
|
+
type: "model.RoverNodeCertificate",
|
|
2230
|
+
responseHeaders: [
|
|
2231
|
+
{
|
|
2232
|
+
value: response.headers.get("etag"),
|
|
2233
|
+
key: "etag",
|
|
2234
|
+
dataType: "string"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
value: response.headers.get("opc-request-id"),
|
|
2238
|
+
key: "opcRequestId",
|
|
2239
|
+
dataType: "string"
|
|
2240
|
+
}
|
|
2241
|
+
]
|
|
2242
|
+
});
|
|
2243
|
+
return sdkResponse;
|
|
2244
|
+
}
|
|
2245
|
+
catch (err) {
|
|
2246
|
+
throw err;
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Get the data encryption key for a rover node.
|
|
2252
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2253
|
+
* @param GetRoverNodeEncryptionKeyRequest
|
|
2254
|
+
* @return GetRoverNodeEncryptionKeyResponse
|
|
2255
|
+
* @throws OciError when an error occurs
|
|
2256
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverNodeEncryptionKey.ts.html |here} to see how to use GetRoverNodeEncryptionKey API.
|
|
2257
|
+
*/
|
|
2258
|
+
getRoverNodeEncryptionKey(getRoverNodeEncryptionKeyRequest) {
|
|
2259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2260
|
+
if (this.logger)
|
|
2261
|
+
this.logger.debug("Calling operation RoverNodeClient#getRoverNodeEncryptionKey.");
|
|
2262
|
+
const operationName = "getRoverNodeEncryptionKey";
|
|
2263
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNodeEncryptionKey/GetRoverNodeEncryptionKey";
|
|
2264
|
+
const pathParams = {
|
|
2265
|
+
"{roverNodeId}": getRoverNodeEncryptionKeyRequest.roverNodeId
|
|
2266
|
+
};
|
|
2267
|
+
const queryParams = {};
|
|
2268
|
+
let headerParams = {
|
|
2269
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2270
|
+
"opc-request-id": getRoverNodeEncryptionKeyRequest.opcRequestId
|
|
2271
|
+
};
|
|
2272
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2273
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverNodeEncryptionKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2274
|
+
if (this.logger)
|
|
2275
|
+
retrier.logger = this.logger;
|
|
2276
|
+
const request = yield oci_common_1.composeRequest({
|
|
2277
|
+
baseEndpoint: this._endpoint,
|
|
2278
|
+
defaultHeaders: this._defaultHeaders,
|
|
2279
|
+
path: "/roverNodes/{roverNodeId}/encryptionKey",
|
|
2280
|
+
method: "GET",
|
|
2281
|
+
pathParams: pathParams,
|
|
2282
|
+
headerParams: headerParams,
|
|
2283
|
+
queryParams: queryParams
|
|
2284
|
+
});
|
|
2285
|
+
try {
|
|
2286
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2287
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2288
|
+
responseObject: {},
|
|
2289
|
+
body: yield response.json(),
|
|
2290
|
+
bodyKey: "roverNodeEncryptionKey",
|
|
2291
|
+
bodyModel: model.RoverNodeEncryptionKey,
|
|
2292
|
+
type: "model.RoverNodeEncryptionKey",
|
|
2293
|
+
responseHeaders: [
|
|
2294
|
+
{
|
|
2295
|
+
value: response.headers.get("etag"),
|
|
2296
|
+
key: "etag",
|
|
2297
|
+
dataType: "string"
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
value: response.headers.get("opc-request-id"),
|
|
2301
|
+
key: "opcRequestId",
|
|
2302
|
+
dataType: "string"
|
|
2303
|
+
}
|
|
2304
|
+
]
|
|
2305
|
+
});
|
|
2306
|
+
return sdkResponse;
|
|
2307
|
+
}
|
|
2308
|
+
catch (err) {
|
|
2309
|
+
throw err;
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
/**
|
|
2314
|
+
* Get the resource principal token for a rover node
|
|
2315
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2316
|
+
* @param GetRoverNodeGetRptRequest
|
|
2317
|
+
* @return GetRoverNodeGetRptResponse
|
|
2318
|
+
* @throws OciError when an error occurs
|
|
2319
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetRoverNodeGetRpt.ts.html |here} to see how to use GetRoverNodeGetRpt API.
|
|
2320
|
+
*/
|
|
2321
|
+
getRoverNodeGetRpt(getRoverNodeGetRptRequest) {
|
|
2322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2323
|
+
if (this.logger)
|
|
2324
|
+
this.logger.debug("Calling operation RoverNodeClient#getRoverNodeGetRpt.");
|
|
2325
|
+
const operationName = "getRoverNodeGetRpt";
|
|
2326
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNodeGetRpt/GetRoverNodeGetRpt";
|
|
2327
|
+
const pathParams = {
|
|
2328
|
+
"{roverNodeId}": getRoverNodeGetRptRequest.roverNodeId
|
|
2329
|
+
};
|
|
2330
|
+
const queryParams = {};
|
|
2331
|
+
let headerParams = {
|
|
2332
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2333
|
+
"jwt": getRoverNodeGetRptRequest.jwt,
|
|
2334
|
+
"opc-request-id": getRoverNodeGetRptRequest.opcRequestId
|
|
2335
|
+
};
|
|
2336
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2337
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRoverNodeGetRptRequest.retryConfiguration, specRetryConfiguration);
|
|
2338
|
+
if (this.logger)
|
|
2339
|
+
retrier.logger = this.logger;
|
|
2340
|
+
const request = yield oci_common_1.composeRequest({
|
|
2341
|
+
baseEndpoint: this._endpoint,
|
|
2342
|
+
defaultHeaders: this._defaultHeaders,
|
|
2343
|
+
path: "/roverNodes/{roverNodeId}/getRpt",
|
|
2344
|
+
method: "GET",
|
|
2345
|
+
pathParams: pathParams,
|
|
2346
|
+
headerParams: headerParams,
|
|
2347
|
+
queryParams: queryParams
|
|
2348
|
+
});
|
|
2349
|
+
try {
|
|
2350
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2351
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2352
|
+
responseObject: {},
|
|
2353
|
+
body: yield response.json(),
|
|
2354
|
+
bodyKey: "roverNodeGetRpt",
|
|
2355
|
+
bodyModel: model.RoverNodeGetRpt,
|
|
2356
|
+
type: "model.RoverNodeGetRpt",
|
|
2357
|
+
responseHeaders: [
|
|
2358
|
+
{
|
|
2359
|
+
value: response.headers.get("etag"),
|
|
2360
|
+
key: "etag",
|
|
2361
|
+
dataType: "string"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
value: response.headers.get("opc-request-id"),
|
|
2365
|
+
key: "opcRequestId",
|
|
2366
|
+
dataType: "string"
|
|
2367
|
+
}
|
|
2368
|
+
]
|
|
2369
|
+
});
|
|
2370
|
+
return sdkResponse;
|
|
2371
|
+
}
|
|
2372
|
+
catch (err) {
|
|
2373
|
+
throw err;
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Returns a list of RoverNodes.
|
|
2379
|
+
*
|
|
2380
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2381
|
+
* @param ListRoverNodesRequest
|
|
2382
|
+
* @return ListRoverNodesResponse
|
|
2383
|
+
* @throws OciError when an error occurs
|
|
2384
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListRoverNodes.ts.html |here} to see how to use ListRoverNodes API.
|
|
2385
|
+
*/
|
|
2386
|
+
listRoverNodes(listRoverNodesRequest) {
|
|
2387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
|
+
if (this.logger)
|
|
2389
|
+
this.logger.debug("Calling operation RoverNodeClient#listRoverNodes.");
|
|
2390
|
+
const operationName = "listRoverNodes";
|
|
2391
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/ListRoverNodes";
|
|
2392
|
+
const pathParams = {};
|
|
2393
|
+
const queryParams = {
|
|
2394
|
+
"compartmentId": listRoverNodesRequest.compartmentId,
|
|
2395
|
+
"displayName": listRoverNodesRequest.displayName,
|
|
2396
|
+
"nodeType": listRoverNodesRequest.nodeType,
|
|
2397
|
+
"shape": listRoverNodesRequest.shape,
|
|
2398
|
+
"limit": listRoverNodesRequest.limit,
|
|
2399
|
+
"page": listRoverNodesRequest.page,
|
|
2400
|
+
"lifecycleState": listRoverNodesRequest.lifecycleState,
|
|
2401
|
+
"sortOrder": listRoverNodesRequest.sortOrder,
|
|
2402
|
+
"sortBy": listRoverNodesRequest.sortBy
|
|
2403
|
+
};
|
|
2404
|
+
let headerParams = {
|
|
2405
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2406
|
+
"opc-request-id": listRoverNodesRequest.opcRequestId
|
|
2407
|
+
};
|
|
2408
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2409
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRoverNodesRequest.retryConfiguration, specRetryConfiguration);
|
|
2410
|
+
if (this.logger)
|
|
2411
|
+
retrier.logger = this.logger;
|
|
2412
|
+
const request = yield oci_common_1.composeRequest({
|
|
2413
|
+
baseEndpoint: this._endpoint,
|
|
2414
|
+
defaultHeaders: this._defaultHeaders,
|
|
2415
|
+
path: "/roverNodes",
|
|
2416
|
+
method: "GET",
|
|
2417
|
+
pathParams: pathParams,
|
|
2418
|
+
headerParams: headerParams,
|
|
2419
|
+
queryParams: queryParams
|
|
2420
|
+
});
|
|
2421
|
+
try {
|
|
2422
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2423
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2424
|
+
responseObject: {},
|
|
2425
|
+
body: yield response.json(),
|
|
2426
|
+
bodyKey: "roverNodeCollection",
|
|
2427
|
+
bodyModel: model.RoverNodeCollection,
|
|
2428
|
+
type: "model.RoverNodeCollection",
|
|
2429
|
+
responseHeaders: [
|
|
2430
|
+
{
|
|
2431
|
+
value: response.headers.get("opc-request-id"),
|
|
2432
|
+
key: "opcRequestId",
|
|
2433
|
+
dataType: "string"
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
value: response.headers.get("opc-next-page"),
|
|
2437
|
+
key: "opcNextPage",
|
|
2438
|
+
dataType: "string"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
value: response.headers.get("opc-prev-page"),
|
|
2442
|
+
key: "opcPrevPage",
|
|
2443
|
+
dataType: "string"
|
|
2444
|
+
}
|
|
2445
|
+
]
|
|
2446
|
+
});
|
|
2447
|
+
return sdkResponse;
|
|
2448
|
+
}
|
|
2449
|
+
catch (err) {
|
|
2450
|
+
throw err;
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* Retrieve Ca Bundle for a rover node
|
|
2456
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2457
|
+
* @param RoverNodeActionRetrieveCaBundleRequest
|
|
2458
|
+
* @return RoverNodeActionRetrieveCaBundleResponse
|
|
2459
|
+
* @throws OciError when an error occurs
|
|
2460
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeActionRetrieveCaBundle.ts.html |here} to see how to use RoverNodeActionRetrieveCaBundle API.
|
|
2461
|
+
*/
|
|
2462
|
+
roverNodeActionRetrieveCaBundle(roverNodeActionRetrieveCaBundleRequest) {
|
|
2463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2464
|
+
if (this.logger)
|
|
2465
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeActionRetrieveCaBundle.");
|
|
2466
|
+
const operationName = "roverNodeActionRetrieveCaBundle";
|
|
2467
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RoverNodeActionRetrieveCaBundle";
|
|
2468
|
+
const pathParams = {
|
|
2469
|
+
"{roverNodeId}": roverNodeActionRetrieveCaBundleRequest.roverNodeId
|
|
2470
|
+
};
|
|
2471
|
+
const queryParams = {};
|
|
2472
|
+
let headerParams = {
|
|
2473
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2474
|
+
"opc-request-id": roverNodeActionRetrieveCaBundleRequest.opcRequestId,
|
|
2475
|
+
"if-match": roverNodeActionRetrieveCaBundleRequest.ifMatch,
|
|
2476
|
+
"opc-retry-token": roverNodeActionRetrieveCaBundleRequest.opcRetryToken
|
|
2477
|
+
};
|
|
2478
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2479
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeActionRetrieveCaBundleRequest.retryConfiguration, specRetryConfiguration);
|
|
2480
|
+
if (this.logger)
|
|
2481
|
+
retrier.logger = this.logger;
|
|
2482
|
+
const request = yield oci_common_1.composeRequest({
|
|
2483
|
+
baseEndpoint: this._endpoint,
|
|
2484
|
+
defaultHeaders: this._defaultHeaders,
|
|
2485
|
+
path: "/roverNodes/{roverNodeId}/actions/retrieveCaBundle",
|
|
2486
|
+
method: "POST",
|
|
2487
|
+
pathParams: pathParams,
|
|
2488
|
+
headerParams: headerParams,
|
|
2489
|
+
queryParams: queryParams
|
|
2490
|
+
});
|
|
2491
|
+
try {
|
|
2492
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2493
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2494
|
+
responseObject: {},
|
|
2495
|
+
body: yield response.json(),
|
|
2496
|
+
bodyKey: "caBundleResponse",
|
|
2497
|
+
bodyModel: model.CaBundleResponse,
|
|
2498
|
+
type: "model.CaBundleResponse",
|
|
2499
|
+
responseHeaders: [
|
|
2500
|
+
{
|
|
2501
|
+
value: response.headers.get("etag"),
|
|
2502
|
+
key: "etag",
|
|
2503
|
+
dataType: "string"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
value: response.headers.get("opc-request-id"),
|
|
2507
|
+
key: "opcRequestId",
|
|
2508
|
+
dataType: "string"
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
});
|
|
2512
|
+
return sdkResponse;
|
|
2513
|
+
}
|
|
2514
|
+
catch (err) {
|
|
2515
|
+
throw err;
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
* Get the resource principal public key for a rover node
|
|
2521
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2522
|
+
* @param RoverNodeActionSetKeyRequest
|
|
2523
|
+
* @return RoverNodeActionSetKeyResponse
|
|
2524
|
+
* @throws OciError when an error occurs
|
|
2525
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeActionSetKey.ts.html |here} to see how to use RoverNodeActionSetKey API.
|
|
2526
|
+
*/
|
|
2527
|
+
roverNodeActionSetKey(roverNodeActionSetKeyRequest) {
|
|
2528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2529
|
+
if (this.logger)
|
|
2530
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeActionSetKey.");
|
|
2531
|
+
const operationName = "roverNodeActionSetKey";
|
|
2532
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNodeSetKey/RoverNodeActionSetKey";
|
|
2533
|
+
const pathParams = {
|
|
2534
|
+
"{roverNodeId}": roverNodeActionSetKeyRequest.roverNodeId
|
|
2535
|
+
};
|
|
2536
|
+
const queryParams = {};
|
|
2537
|
+
let headerParams = {
|
|
2538
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2539
|
+
"jwt": roverNodeActionSetKeyRequest.jwt,
|
|
2540
|
+
"if-match": roverNodeActionSetKeyRequest.ifMatch,
|
|
2541
|
+
"opc-request-id": roverNodeActionSetKeyRequest.opcRequestId,
|
|
2542
|
+
"opc-retry-token": roverNodeActionSetKeyRequest.opcRetryToken
|
|
2543
|
+
};
|
|
2544
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2545
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeActionSetKeyRequest.retryConfiguration, specRetryConfiguration);
|
|
2546
|
+
if (this.logger)
|
|
2547
|
+
retrier.logger = this.logger;
|
|
2548
|
+
const request = yield oci_common_1.composeRequest({
|
|
2549
|
+
baseEndpoint: this._endpoint,
|
|
2550
|
+
defaultHeaders: this._defaultHeaders,
|
|
2551
|
+
path: "/roverNodes/{roverNodeId}/actions/setKey",
|
|
2552
|
+
method: "POST",
|
|
2553
|
+
bodyContent: common.ObjectSerializer.serialize(roverNodeActionSetKeyRequest.roverNodeActionSetKeyDetails, "RoverNodeActionSetKeyDetails", model.RoverNodeActionSetKeyDetails.getJsonObj),
|
|
2554
|
+
pathParams: pathParams,
|
|
2555
|
+
headerParams: headerParams,
|
|
2556
|
+
queryParams: queryParams
|
|
2557
|
+
});
|
|
2558
|
+
try {
|
|
2559
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2560
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2561
|
+
responseObject: {},
|
|
2562
|
+
body: yield response.json(),
|
|
2563
|
+
bodyKey: "roverNodeSetKey",
|
|
2564
|
+
bodyModel: model.RoverNodeSetKey,
|
|
2565
|
+
type: "model.RoverNodeSetKey",
|
|
2566
|
+
responseHeaders: [
|
|
2567
|
+
{
|
|
2568
|
+
value: response.headers.get("etag"),
|
|
2569
|
+
key: "etag",
|
|
2570
|
+
dataType: "string"
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
value: response.headers.get("opc-request-id"),
|
|
2574
|
+
key: "opcRequestId",
|
|
2575
|
+
dataType: "string"
|
|
2576
|
+
}
|
|
2577
|
+
]
|
|
2578
|
+
});
|
|
2579
|
+
return sdkResponse;
|
|
2580
|
+
}
|
|
2581
|
+
catch (err) {
|
|
2582
|
+
throw err;
|
|
2583
|
+
}
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Request to generate certificate for a roverNode.
|
|
2588
|
+
*
|
|
2589
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2590
|
+
* @param RoverNodeGenerateCertificateRequest
|
|
2591
|
+
* @return RoverNodeGenerateCertificateResponse
|
|
2592
|
+
* @throws OciError when an error occurs
|
|
2593
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeGenerateCertificate.ts.html |here} to see how to use RoverNodeGenerateCertificate API.
|
|
2594
|
+
*/
|
|
2595
|
+
roverNodeGenerateCertificate(roverNodeGenerateCertificateRequest) {
|
|
2596
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2597
|
+
if (this.logger)
|
|
2598
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeGenerateCertificate.");
|
|
2599
|
+
const operationName = "roverNodeGenerateCertificate";
|
|
2600
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RoverNodeGenerateCertificate";
|
|
2601
|
+
const pathParams = {
|
|
2602
|
+
"{roverNodeId}": roverNodeGenerateCertificateRequest.roverNodeId
|
|
2603
|
+
};
|
|
2604
|
+
const queryParams = {};
|
|
2605
|
+
let headerParams = {
|
|
2606
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2607
|
+
"opc-request-id": roverNodeGenerateCertificateRequest.opcRequestId,
|
|
2608
|
+
"if-match": roverNodeGenerateCertificateRequest.ifMatch,
|
|
2609
|
+
"opc-retry-token": roverNodeGenerateCertificateRequest.opcRetryToken
|
|
2610
|
+
};
|
|
2611
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2612
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeGenerateCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
2613
|
+
if (this.logger)
|
|
2614
|
+
retrier.logger = this.logger;
|
|
2615
|
+
const request = yield oci_common_1.composeRequest({
|
|
2616
|
+
baseEndpoint: this._endpoint,
|
|
2617
|
+
defaultHeaders: this._defaultHeaders,
|
|
2618
|
+
path: "/roverNodes/{roverNodeId}/actions/generateCertificate",
|
|
2619
|
+
method: "POST",
|
|
2620
|
+
bodyContent: common.ObjectSerializer.serialize(roverNodeGenerateCertificateRequest.roverNodeGenerateCertificateDetails, "RoverNodeGenerateCertificateDetails", model.RoverNodeGenerateCertificateDetails.getJsonObj),
|
|
2621
|
+
pathParams: pathParams,
|
|
2622
|
+
headerParams: headerParams,
|
|
2623
|
+
queryParams: queryParams
|
|
2624
|
+
});
|
|
2625
|
+
try {
|
|
2626
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2627
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2628
|
+
responseObject: {},
|
|
2629
|
+
body: yield response.json(),
|
|
2630
|
+
bodyKey: "generateCertificateResponse",
|
|
2631
|
+
bodyModel: model.GenerateCertificateResponse,
|
|
2632
|
+
type: "model.GenerateCertificateResponse",
|
|
2633
|
+
responseHeaders: [
|
|
2634
|
+
{
|
|
2635
|
+
value: response.headers.get("etag"),
|
|
2636
|
+
key: "etag",
|
|
2637
|
+
dataType: "string"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
value: response.headers.get("opc-request-id"),
|
|
2641
|
+
key: "opcRequestId",
|
|
2642
|
+
dataType: "string"
|
|
2643
|
+
}
|
|
2644
|
+
]
|
|
2645
|
+
});
|
|
2646
|
+
return sdkResponse;
|
|
2647
|
+
}
|
|
2648
|
+
catch (err) {
|
|
2649
|
+
throw err;
|
|
2650
|
+
}
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
/**
|
|
2654
|
+
* Request to renew certificate for a roverNode.
|
|
2655
|
+
*
|
|
2656
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2657
|
+
* @param RoverNodeRenewCertificateRequest
|
|
2658
|
+
* @return RoverNodeRenewCertificateResponse
|
|
2659
|
+
* @throws OciError when an error occurs
|
|
2660
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeRenewCertificate.ts.html |here} to see how to use RoverNodeRenewCertificate API.
|
|
2661
|
+
*/
|
|
2662
|
+
roverNodeRenewCertificate(roverNodeRenewCertificateRequest) {
|
|
2663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2664
|
+
if (this.logger)
|
|
2665
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeRenewCertificate.");
|
|
2666
|
+
const operationName = "roverNodeRenewCertificate";
|
|
2667
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RoverNodeRenewCertificate";
|
|
2668
|
+
const pathParams = {
|
|
2669
|
+
"{roverNodeId}": roverNodeRenewCertificateRequest.roverNodeId
|
|
2670
|
+
};
|
|
2671
|
+
const queryParams = {};
|
|
2672
|
+
let headerParams = {
|
|
2673
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2674
|
+
"opc-request-id": roverNodeRenewCertificateRequest.opcRequestId,
|
|
2675
|
+
"if-match": roverNodeRenewCertificateRequest.ifMatch,
|
|
2676
|
+
"opc-retry-token": roverNodeRenewCertificateRequest.opcRetryToken
|
|
2677
|
+
};
|
|
2678
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2679
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeRenewCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
2680
|
+
if (this.logger)
|
|
2681
|
+
retrier.logger = this.logger;
|
|
2682
|
+
const request = yield oci_common_1.composeRequest({
|
|
2683
|
+
baseEndpoint: this._endpoint,
|
|
2684
|
+
defaultHeaders: this._defaultHeaders,
|
|
2685
|
+
path: "/roverNodes/{roverNodeId}/actions/renewCertificate",
|
|
2686
|
+
method: "POST",
|
|
2687
|
+
bodyContent: common.ObjectSerializer.serialize(roverNodeRenewCertificateRequest.roverNodeRenewCertificateDetails, "RoverNodeRenewCertificateDetails", model.RoverNodeRenewCertificateDetails.getJsonObj),
|
|
2688
|
+
pathParams: pathParams,
|
|
2689
|
+
headerParams: headerParams,
|
|
2690
|
+
queryParams: queryParams
|
|
2691
|
+
});
|
|
2692
|
+
try {
|
|
2693
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2694
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2695
|
+
responseObject: {},
|
|
2696
|
+
body: yield response.json(),
|
|
2697
|
+
bodyKey: "renewCertificateResponse",
|
|
2698
|
+
bodyModel: model.RenewCertificateResponse,
|
|
2699
|
+
type: "model.RenewCertificateResponse",
|
|
2700
|
+
responseHeaders: [
|
|
2701
|
+
{
|
|
2702
|
+
value: response.headers.get("etag"),
|
|
2703
|
+
key: "etag",
|
|
2704
|
+
dataType: "string"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
value: response.headers.get("opc-request-id"),
|
|
2708
|
+
key: "opcRequestId",
|
|
2709
|
+
dataType: "string"
|
|
2710
|
+
}
|
|
2711
|
+
]
|
|
2712
|
+
});
|
|
2713
|
+
return sdkResponse;
|
|
2714
|
+
}
|
|
2715
|
+
catch (err) {
|
|
2716
|
+
throw err;
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* Request to replace certificate authority for a roverNode.
|
|
2722
|
+
*
|
|
2723
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2724
|
+
* @param RoverNodeReplaceCertificateAuthorityRequest
|
|
2725
|
+
* @return RoverNodeReplaceCertificateAuthorityResponse
|
|
2726
|
+
* @throws OciError when an error occurs
|
|
2727
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeReplaceCertificateAuthority.ts.html |here} to see how to use RoverNodeReplaceCertificateAuthority API.
|
|
2728
|
+
*/
|
|
2729
|
+
roverNodeReplaceCertificateAuthority(roverNodeReplaceCertificateAuthorityRequest) {
|
|
2730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2731
|
+
if (this.logger)
|
|
2732
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeReplaceCertificateAuthority.");
|
|
2733
|
+
const operationName = "roverNodeReplaceCertificateAuthority";
|
|
2734
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RoverNodeReplaceCertificateAuthority";
|
|
2735
|
+
const pathParams = {
|
|
2736
|
+
"{roverNodeId}": roverNodeReplaceCertificateAuthorityRequest.roverNodeId
|
|
2737
|
+
};
|
|
2738
|
+
const queryParams = {};
|
|
2739
|
+
let headerParams = {
|
|
2740
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2741
|
+
"opc-request-id": roverNodeReplaceCertificateAuthorityRequest.opcRequestId,
|
|
2742
|
+
"if-match": roverNodeReplaceCertificateAuthorityRequest.ifMatch,
|
|
2743
|
+
"opc-retry-token": roverNodeReplaceCertificateAuthorityRequest.opcRetryToken
|
|
2744
|
+
};
|
|
2745
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2746
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeReplaceCertificateAuthorityRequest.retryConfiguration, specRetryConfiguration);
|
|
2747
|
+
if (this.logger)
|
|
2748
|
+
retrier.logger = this.logger;
|
|
2749
|
+
const request = yield oci_common_1.composeRequest({
|
|
2750
|
+
baseEndpoint: this._endpoint,
|
|
2751
|
+
defaultHeaders: this._defaultHeaders,
|
|
2752
|
+
path: "/roverNodes/{roverNodeId}/actions/replaceCertificateAuthority",
|
|
2753
|
+
method: "POST",
|
|
2754
|
+
bodyContent: common.ObjectSerializer.serialize(roverNodeReplaceCertificateAuthorityRequest.roverNodeReplaceCertificateAuthorityDetails, "RoverNodeReplaceCertificateAuthorityDetails", model.RoverNodeReplaceCertificateAuthorityDetails.getJsonObj),
|
|
2755
|
+
pathParams: pathParams,
|
|
2756
|
+
headerParams: headerParams,
|
|
2757
|
+
queryParams: queryParams
|
|
2758
|
+
});
|
|
2759
|
+
try {
|
|
2760
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2761
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2762
|
+
responseObject: {},
|
|
2763
|
+
body: yield response.json(),
|
|
2764
|
+
bodyKey: "replaceCertificateAuthorityResponse",
|
|
2765
|
+
bodyModel: model.ReplaceCertificateAuthorityResponse,
|
|
2766
|
+
type: "model.ReplaceCertificateAuthorityResponse",
|
|
2767
|
+
responseHeaders: [
|
|
2768
|
+
{
|
|
2769
|
+
value: response.headers.get("etag"),
|
|
2770
|
+
key: "etag",
|
|
2771
|
+
dataType: "string"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
value: response.headers.get("opc-request-id"),
|
|
2775
|
+
key: "opcRequestId",
|
|
2776
|
+
dataType: "string"
|
|
2777
|
+
}
|
|
2778
|
+
]
|
|
2779
|
+
});
|
|
2780
|
+
return sdkResponse;
|
|
2781
|
+
}
|
|
2782
|
+
catch (err) {
|
|
2783
|
+
throw err;
|
|
2784
|
+
}
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
* Retrieve the leaf certificate info for a rover node
|
|
2789
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2790
|
+
* @param RoverNodeRetrieveLeafCertificateRequest
|
|
2791
|
+
* @return RoverNodeRetrieveLeafCertificateResponse
|
|
2792
|
+
* @throws OciError when an error occurs
|
|
2793
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/RoverNodeRetrieveLeafCertificate.ts.html |here} to see how to use RoverNodeRetrieveLeafCertificate API.
|
|
2794
|
+
*/
|
|
2795
|
+
roverNodeRetrieveLeafCertificate(roverNodeRetrieveLeafCertificateRequest) {
|
|
2796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2797
|
+
if (this.logger)
|
|
2798
|
+
this.logger.debug("Calling operation RoverNodeClient#roverNodeRetrieveLeafCertificate.");
|
|
2799
|
+
const operationName = "roverNodeRetrieveLeafCertificate";
|
|
2800
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/RoverNodeRetrieveLeafCertificate";
|
|
2801
|
+
const pathParams = {
|
|
2802
|
+
"{roverNodeId}": roverNodeRetrieveLeafCertificateRequest.roverNodeId
|
|
2803
|
+
};
|
|
2804
|
+
const queryParams = {};
|
|
2805
|
+
let headerParams = {
|
|
2806
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2807
|
+
"opc-request-id": roverNodeRetrieveLeafCertificateRequest.opcRequestId,
|
|
2808
|
+
"if-match": roverNodeRetrieveLeafCertificateRequest.ifMatch,
|
|
2809
|
+
"opc-retry-token": roverNodeRetrieveLeafCertificateRequest.opcRetryToken
|
|
2810
|
+
};
|
|
2811
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2812
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, roverNodeRetrieveLeafCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
2813
|
+
if (this.logger)
|
|
2814
|
+
retrier.logger = this.logger;
|
|
2815
|
+
const request = yield oci_common_1.composeRequest({
|
|
2816
|
+
baseEndpoint: this._endpoint,
|
|
2817
|
+
defaultHeaders: this._defaultHeaders,
|
|
2818
|
+
path: "/roverNodes/{roverNodeId}/actions/retrieveLeafCertificate",
|
|
2819
|
+
method: "POST",
|
|
2820
|
+
pathParams: pathParams,
|
|
2821
|
+
headerParams: headerParams,
|
|
2822
|
+
queryParams: queryParams
|
|
2823
|
+
});
|
|
2824
|
+
try {
|
|
2825
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2826
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2827
|
+
responseObject: {},
|
|
2828
|
+
body: yield response.json(),
|
|
2829
|
+
bodyKey: "leafCertificateResponse",
|
|
2830
|
+
bodyModel: model.LeafCertificateResponse,
|
|
2831
|
+
type: "model.LeafCertificateResponse",
|
|
2832
|
+
responseHeaders: [
|
|
2833
|
+
{
|
|
2834
|
+
value: response.headers.get("etag"),
|
|
2835
|
+
key: "etag",
|
|
2836
|
+
dataType: "string"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
value: response.headers.get("opc-request-id"),
|
|
2840
|
+
key: "opcRequestId",
|
|
2841
|
+
dataType: "string"
|
|
2842
|
+
}
|
|
2843
|
+
]
|
|
2844
|
+
});
|
|
2845
|
+
return sdkResponse;
|
|
2846
|
+
}
|
|
2847
|
+
catch (err) {
|
|
2848
|
+
throw err;
|
|
2849
|
+
}
|
|
2850
|
+
});
|
|
2851
|
+
}
|
|
2852
|
+
/**
|
|
2853
|
+
* Updates the RoverNode
|
|
2854
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2855
|
+
* @param UpdateRoverNodeRequest
|
|
2856
|
+
* @return UpdateRoverNodeResponse
|
|
2857
|
+
* @throws OciError when an error occurs
|
|
2858
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/UpdateRoverNode.ts.html |here} to see how to use UpdateRoverNode API.
|
|
2859
|
+
*/
|
|
2860
|
+
updateRoverNode(updateRoverNodeRequest) {
|
|
2861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2862
|
+
if (this.logger)
|
|
2863
|
+
this.logger.debug("Calling operation RoverNodeClient#updateRoverNode.");
|
|
2864
|
+
const operationName = "updateRoverNode";
|
|
2865
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/RoverNode/UpdateRoverNode";
|
|
2866
|
+
const pathParams = {
|
|
2867
|
+
"{roverNodeId}": updateRoverNodeRequest.roverNodeId
|
|
2868
|
+
};
|
|
2869
|
+
const queryParams = {};
|
|
2870
|
+
let headerParams = {
|
|
2871
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2872
|
+
"if-match": updateRoverNodeRequest.ifMatch,
|
|
2873
|
+
"opc-request-id": updateRoverNodeRequest.opcRequestId
|
|
2874
|
+
};
|
|
2875
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2876
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRoverNodeRequest.retryConfiguration, specRetryConfiguration);
|
|
2877
|
+
if (this.logger)
|
|
2878
|
+
retrier.logger = this.logger;
|
|
2879
|
+
const request = yield oci_common_1.composeRequest({
|
|
2880
|
+
baseEndpoint: this._endpoint,
|
|
2881
|
+
defaultHeaders: this._defaultHeaders,
|
|
2882
|
+
path: "/roverNodes/{roverNodeId}",
|
|
2883
|
+
method: "PUT",
|
|
2884
|
+
bodyContent: common.ObjectSerializer.serialize(updateRoverNodeRequest.updateRoverNodeDetails, "UpdateRoverNodeDetails", model.UpdateRoverNodeDetails.getJsonObj),
|
|
2885
|
+
pathParams: pathParams,
|
|
2886
|
+
headerParams: headerParams,
|
|
2887
|
+
queryParams: queryParams
|
|
2888
|
+
});
|
|
2889
|
+
try {
|
|
2890
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2891
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2892
|
+
responseObject: {},
|
|
2893
|
+
body: yield response.json(),
|
|
2894
|
+
bodyKey: "roverNode",
|
|
2895
|
+
bodyModel: model.RoverNode,
|
|
2896
|
+
type: "model.RoverNode",
|
|
2897
|
+
responseHeaders: [
|
|
2898
|
+
{
|
|
2899
|
+
value: response.headers.get("etag"),
|
|
2900
|
+
key: "etag",
|
|
2901
|
+
dataType: "string"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
value: response.headers.get("opc-request-id"),
|
|
2905
|
+
key: "opcRequestId",
|
|
2906
|
+
dataType: "string"
|
|
2907
|
+
}
|
|
2908
|
+
]
|
|
2909
|
+
});
|
|
2910
|
+
return sdkResponse;
|
|
2911
|
+
}
|
|
2912
|
+
catch (err) {
|
|
2913
|
+
throw err;
|
|
2914
|
+
}
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
exports.RoverNodeClient = RoverNodeClient;
|
|
2919
|
+
RoverNodeClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
2920
|
+
RoverNodeClient.endpointServiceName = "";
|
|
2921
|
+
var ShapeApiKeys;
|
|
2922
|
+
(function (ShapeApiKeys) {
|
|
2923
|
+
})(ShapeApiKeys = exports.ShapeApiKeys || (exports.ShapeApiKeys = {}));
|
|
2924
|
+
/**
|
|
2925
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2926
|
+
*/
|
|
2927
|
+
class ShapeClient {
|
|
2928
|
+
constructor(params, clientConfiguration) {
|
|
2929
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
2930
|
+
this["_endpoint"] = "";
|
|
2931
|
+
this["_defaultHeaders"] = {};
|
|
2932
|
+
this._circuitBreaker = null;
|
|
2933
|
+
this._httpOptions = undefined;
|
|
2934
|
+
this.targetService = "Shape";
|
|
2935
|
+
this._regionId = "";
|
|
2936
|
+
this._lastSetRegionOrRegionId = "";
|
|
2937
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2938
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2939
|
+
: null;
|
|
2940
|
+
if (clientConfiguration) {
|
|
2941
|
+
this._clientConfiguration = clientConfiguration;
|
|
2942
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2943
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2944
|
+
: null;
|
|
2945
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2946
|
+
? clientConfiguration.httpOptions
|
|
2947
|
+
: undefined;
|
|
2948
|
+
}
|
|
2949
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2950
|
+
const specCircuitBreakerEnabled = true;
|
|
2951
|
+
if (!this._circuitBreaker &&
|
|
2952
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2953
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2954
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2955
|
+
}
|
|
2956
|
+
this._httpClient =
|
|
2957
|
+
params.httpClient ||
|
|
2958
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
2959
|
+
if (params.authenticationDetailsProvider &&
|
|
2960
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2961
|
+
const provider = params.authenticationDetailsProvider;
|
|
2962
|
+
if (provider.getRegion()) {
|
|
2963
|
+
this.region = provider.getRegion();
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
/**
|
|
2968
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2969
|
+
*/
|
|
2970
|
+
get endpoint() {
|
|
2971
|
+
return this._endpoint;
|
|
2972
|
+
}
|
|
2973
|
+
/**
|
|
2974
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2975
|
+
* @param endpoint The endpoint of the service.
|
|
2976
|
+
*/
|
|
2977
|
+
set endpoint(endpoint) {
|
|
2978
|
+
this._endpoint = endpoint;
|
|
2979
|
+
this._endpoint = this._endpoint + "/20201210";
|
|
2980
|
+
if (this.logger)
|
|
2981
|
+
this.logger.info(`ShapeClient endpoint set to ${this._endpoint}`);
|
|
2982
|
+
}
|
|
2983
|
+
get logger() {
|
|
2984
|
+
return common.LOG.logger;
|
|
2985
|
+
}
|
|
2986
|
+
/**
|
|
2987
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2988
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2989
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2990
|
+
*/
|
|
2991
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2992
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2993
|
+
if (this.logger)
|
|
2994
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2995
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2996
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, this._region, ShapeClient.endpointServiceName);
|
|
2997
|
+
}
|
|
2998
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2999
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, this._regionId, ShapeClient.endpointServiceName);
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
/**
|
|
3003
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3004
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3005
|
+
* @param region The region of the service.
|
|
3006
|
+
*/
|
|
3007
|
+
set region(region) {
|
|
3008
|
+
this._region = region;
|
|
3009
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, region, ShapeClient.endpointServiceName);
|
|
3010
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3011
|
+
}
|
|
3012
|
+
/**
|
|
3013
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
3014
|
+
*
|
|
3015
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
3016
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
3017
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
3018
|
+
* @param regionId The public region ID.
|
|
3019
|
+
*/
|
|
3020
|
+
set regionId(regionId) {
|
|
3021
|
+
this._regionId = regionId;
|
|
3022
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, regionId, ShapeClient.endpointServiceName);
|
|
3023
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3024
|
+
}
|
|
3025
|
+
/**
|
|
3026
|
+
* Returns a list of Shapes.
|
|
3027
|
+
*
|
|
3028
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3029
|
+
* @param ListShapesRequest
|
|
3030
|
+
* @return ListShapesResponse
|
|
3031
|
+
* @throws OciError when an error occurs
|
|
3032
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListShapes.ts.html |here} to see how to use ListShapes API.
|
|
3033
|
+
*/
|
|
3034
|
+
listShapes(listShapesRequest) {
|
|
3035
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3036
|
+
if (this.logger)
|
|
3037
|
+
this.logger.debug("Calling operation ShapeClient#listShapes.");
|
|
3038
|
+
const operationName = "listShapes";
|
|
3039
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/ShapeSummary/ListShapes";
|
|
3040
|
+
const pathParams = {};
|
|
3041
|
+
const queryParams = {
|
|
3042
|
+
"compartmentId": listShapesRequest.compartmentId,
|
|
3043
|
+
"limit": listShapesRequest.limit,
|
|
3044
|
+
"page": listShapesRequest.page,
|
|
3045
|
+
"sortOrder": listShapesRequest.sortOrder,
|
|
3046
|
+
"sortBy": listShapesRequest.sortBy
|
|
3047
|
+
};
|
|
3048
|
+
let headerParams = {
|
|
3049
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3050
|
+
"opc-request-id": listShapesRequest.opcRequestId
|
|
3051
|
+
};
|
|
3052
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3053
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listShapesRequest.retryConfiguration, specRetryConfiguration);
|
|
3054
|
+
if (this.logger)
|
|
3055
|
+
retrier.logger = this.logger;
|
|
3056
|
+
const request = yield oci_common_1.composeRequest({
|
|
3057
|
+
baseEndpoint: this._endpoint,
|
|
3058
|
+
defaultHeaders: this._defaultHeaders,
|
|
3059
|
+
path: "/shapes",
|
|
3060
|
+
method: "GET",
|
|
3061
|
+
pathParams: pathParams,
|
|
3062
|
+
headerParams: headerParams,
|
|
3063
|
+
queryParams: queryParams
|
|
3064
|
+
});
|
|
3065
|
+
try {
|
|
3066
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3067
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3068
|
+
responseObject: {},
|
|
3069
|
+
body: yield response.json(),
|
|
3070
|
+
bodyKey: "shapeCollection",
|
|
3071
|
+
bodyModel: model.ShapeCollection,
|
|
3072
|
+
type: "model.ShapeCollection",
|
|
3073
|
+
responseHeaders: [
|
|
3074
|
+
{
|
|
3075
|
+
value: response.headers.get("opc-request-id"),
|
|
3076
|
+
key: "opcRequestId",
|
|
3077
|
+
dataType: "string"
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
value: response.headers.get("opc-next-page"),
|
|
3081
|
+
key: "opcNextPage",
|
|
3082
|
+
dataType: "string"
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
value: response.headers.get("opc-prev-page"),
|
|
3086
|
+
key: "opcPrevPage",
|
|
3087
|
+
dataType: "string"
|
|
3088
|
+
}
|
|
3089
|
+
]
|
|
3090
|
+
});
|
|
3091
|
+
return sdkResponse;
|
|
3092
|
+
}
|
|
3093
|
+
catch (err) {
|
|
3094
|
+
throw err;
|
|
3095
|
+
}
|
|
3096
|
+
});
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
exports.ShapeClient = ShapeClient;
|
|
3100
|
+
ShapeClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
3101
|
+
ShapeClient.endpointServiceName = "";
|
|
3102
|
+
var WorkRequestsApiKeys;
|
|
3103
|
+
(function (WorkRequestsApiKeys) {
|
|
3104
|
+
})(WorkRequestsApiKeys = exports.WorkRequestsApiKeys || (exports.WorkRequestsApiKeys = {}));
|
|
3105
|
+
/**
|
|
3106
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
3107
|
+
*/
|
|
3108
|
+
class WorkRequestsClient {
|
|
3109
|
+
constructor(params, clientConfiguration) {
|
|
3110
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
3111
|
+
this["_endpoint"] = "";
|
|
3112
|
+
this["_defaultHeaders"] = {};
|
|
3113
|
+
this._circuitBreaker = null;
|
|
3114
|
+
this._httpOptions = undefined;
|
|
3115
|
+
this.targetService = "WorkRequests";
|
|
3116
|
+
this._regionId = "";
|
|
3117
|
+
this._lastSetRegionOrRegionId = "";
|
|
3118
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
3119
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3120
|
+
: null;
|
|
3121
|
+
if (clientConfiguration) {
|
|
3122
|
+
this._clientConfiguration = clientConfiguration;
|
|
3123
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
3124
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
3125
|
+
: null;
|
|
3126
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
3127
|
+
? clientConfiguration.httpOptions
|
|
3128
|
+
: undefined;
|
|
3129
|
+
}
|
|
3130
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
3131
|
+
const specCircuitBreakerEnabled = true;
|
|
3132
|
+
if (!this._circuitBreaker &&
|
|
3133
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
3134
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
3135
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
3136
|
+
}
|
|
3137
|
+
this._httpClient =
|
|
3138
|
+
params.httpClient ||
|
|
3139
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
3140
|
+
if (params.authenticationDetailsProvider &&
|
|
3141
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
3142
|
+
const provider = params.authenticationDetailsProvider;
|
|
3143
|
+
if (provider.getRegion()) {
|
|
3144
|
+
this.region = provider.getRegion();
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
3150
|
+
*/
|
|
3151
|
+
get endpoint() {
|
|
3152
|
+
return this._endpoint;
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
3156
|
+
* @param endpoint The endpoint of the service.
|
|
3157
|
+
*/
|
|
3158
|
+
set endpoint(endpoint) {
|
|
3159
|
+
this._endpoint = endpoint;
|
|
3160
|
+
this._endpoint = this._endpoint + "/20201210";
|
|
3161
|
+
if (this.logger)
|
|
3162
|
+
this.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
|
|
3163
|
+
}
|
|
3164
|
+
get logger() {
|
|
3165
|
+
return common.LOG.logger;
|
|
3166
|
+
}
|
|
3167
|
+
/**
|
|
3168
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3169
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3170
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3171
|
+
*/
|
|
3172
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3173
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3174
|
+
if (this.logger)
|
|
3175
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3176
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3177
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, this._region, WorkRequestsClient.endpointServiceName);
|
|
3178
|
+
}
|
|
3179
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3180
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, this._regionId, WorkRequestsClient.endpointServiceName);
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
/**
|
|
3184
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3185
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3186
|
+
* @param region The region of the service.
|
|
3187
|
+
*/
|
|
3188
|
+
set region(region) {
|
|
3189
|
+
this._region = region;
|
|
3190
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, region, WorkRequestsClient.endpointServiceName);
|
|
3191
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3192
|
+
}
|
|
3193
|
+
/**
|
|
3194
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
3195
|
+
*
|
|
3196
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
3197
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
3198
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
3199
|
+
* @param regionId The public region ID.
|
|
3200
|
+
*/
|
|
3201
|
+
set regionId(regionId) {
|
|
3202
|
+
this._regionId = regionId;
|
|
3203
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, regionId, WorkRequestsClient.endpointServiceName);
|
|
3204
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3205
|
+
}
|
|
3206
|
+
/**
|
|
3207
|
+
* Creates a new WorkRequestsWaiter for resources for this service.
|
|
3208
|
+
*
|
|
3209
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
3210
|
+
* @return The service waiters.
|
|
3211
|
+
*/
|
|
3212
|
+
createWaiters(config) {
|
|
3213
|
+
this._waiters = new workrequests_waiter_1.WorkRequestsWaiter(this, config);
|
|
3214
|
+
return this._waiters;
|
|
3215
|
+
}
|
|
3216
|
+
/**
|
|
3217
|
+
* Gets the waiters available for resources for this service.
|
|
3218
|
+
*
|
|
3219
|
+
* @return The service waiters.
|
|
3220
|
+
*/
|
|
3221
|
+
getWaiters() {
|
|
3222
|
+
if (this._waiters) {
|
|
3223
|
+
return this._waiters;
|
|
3224
|
+
}
|
|
3225
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
3226
|
+
}
|
|
1628
3227
|
/**
|
|
1629
|
-
*
|
|
3228
|
+
* Cancel the work request.
|
|
1630
3229
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1631
|
-
* @param
|
|
1632
|
-
* @return
|
|
3230
|
+
* @param CancelWorkRequestRequest
|
|
3231
|
+
* @return CancelWorkRequestResponse
|
|
1633
3232
|
* @throws OciError when an error occurs
|
|
1634
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3233
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
1635
3234
|
*/
|
|
1636
|
-
|
|
3235
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
1637
3236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1638
3237
|
if (this.logger)
|
|
1639
|
-
this.logger.debug("Calling operation
|
|
1640
|
-
const operationName = "
|
|
1641
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
3238
|
+
this.logger.debug("Calling operation WorkRequestsClient#cancelWorkRequest.");
|
|
3239
|
+
const operationName = "cancelWorkRequest";
|
|
3240
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/WorkRequest/CancelWorkRequest";
|
|
1642
3241
|
const pathParams = {
|
|
1643
|
-
"{
|
|
3242
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
1644
3243
|
};
|
|
1645
3244
|
const queryParams = {};
|
|
1646
3245
|
let headerParams = {
|
|
1647
3246
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1648
|
-
"
|
|
1649
|
-
"
|
|
3247
|
+
"opc-retry-token": cancelWorkRequestRequest.opcRetryToken,
|
|
3248
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
3249
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
1650
3250
|
};
|
|
1651
3251
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1652
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3252
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1653
3253
|
if (this.logger)
|
|
1654
3254
|
retrier.logger = this.logger;
|
|
1655
3255
|
const request = yield oci_common_1.composeRequest({
|
|
1656
3256
|
baseEndpoint: this._endpoint,
|
|
1657
3257
|
defaultHeaders: this._defaultHeaders,
|
|
1658
|
-
path: "/
|
|
1659
|
-
method: "
|
|
3258
|
+
path: "/workRequests/{workRequestId}",
|
|
3259
|
+
method: "DELETE",
|
|
1660
3260
|
pathParams: pathParams,
|
|
1661
3261
|
headerParams: headerParams,
|
|
1662
3262
|
queryParams: queryParams
|
|
@@ -1665,16 +3265,7 @@ class RoverNodeClient {
|
|
|
1665
3265
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1666
3266
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1667
3267
|
responseObject: {},
|
|
1668
|
-
body: yield response.json(),
|
|
1669
|
-
bodyKey: "roverNodeGetRpt",
|
|
1670
|
-
bodyModel: model.RoverNodeGetRpt,
|
|
1671
|
-
type: "model.RoverNodeGetRpt",
|
|
1672
3268
|
responseHeaders: [
|
|
1673
|
-
{
|
|
1674
|
-
value: response.headers.get("etag"),
|
|
1675
|
-
key: "etag",
|
|
1676
|
-
dataType: "string"
|
|
1677
|
-
},
|
|
1678
3269
|
{
|
|
1679
3270
|
value: response.headers.get("opc-request-id"),
|
|
1680
3271
|
key: "opcRequestId",
|
|
@@ -1690,44 +3281,35 @@ class RoverNodeClient {
|
|
|
1690
3281
|
});
|
|
1691
3282
|
}
|
|
1692
3283
|
/**
|
|
1693
|
-
*
|
|
1694
|
-
*
|
|
3284
|
+
* Gets the status of the work request with the given ID.
|
|
1695
3285
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1696
|
-
* @param
|
|
1697
|
-
* @return
|
|
3286
|
+
* @param GetWorkRequestRequest
|
|
3287
|
+
* @return GetWorkRequestResponse
|
|
1698
3288
|
* @throws OciError when an error occurs
|
|
1699
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3289
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1700
3290
|
*/
|
|
1701
|
-
|
|
3291
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1702
3292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1703
3293
|
if (this.logger)
|
|
1704
|
-
this.logger.debug("Calling operation
|
|
1705
|
-
const operationName = "
|
|
1706
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
1707
|
-
const pathParams = {
|
|
1708
|
-
|
|
1709
|
-
"compartmentId": listRoverNodesRequest.compartmentId,
|
|
1710
|
-
"displayName": listRoverNodesRequest.displayName,
|
|
1711
|
-
"nodeType": listRoverNodesRequest.nodeType,
|
|
1712
|
-
"shape": listRoverNodesRequest.shape,
|
|
1713
|
-
"limit": listRoverNodesRequest.limit,
|
|
1714
|
-
"page": listRoverNodesRequest.page,
|
|
1715
|
-
"lifecycleState": listRoverNodesRequest.lifecycleState,
|
|
1716
|
-
"sortOrder": listRoverNodesRequest.sortOrder,
|
|
1717
|
-
"sortBy": listRoverNodesRequest.sortBy
|
|
3294
|
+
this.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
|
|
3295
|
+
const operationName = "getWorkRequest";
|
|
3296
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/WorkRequest/GetWorkRequest";
|
|
3297
|
+
const pathParams = {
|
|
3298
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1718
3299
|
};
|
|
3300
|
+
const queryParams = {};
|
|
1719
3301
|
let headerParams = {
|
|
1720
3302
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1721
|
-
"opc-request-id":
|
|
3303
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1722
3304
|
};
|
|
1723
3305
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1724
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1725
3307
|
if (this.logger)
|
|
1726
3308
|
retrier.logger = this.logger;
|
|
1727
3309
|
const request = yield oci_common_1.composeRequest({
|
|
1728
3310
|
baseEndpoint: this._endpoint,
|
|
1729
3311
|
defaultHeaders: this._defaultHeaders,
|
|
1730
|
-
path: "/
|
|
3312
|
+
path: "/workRequests/{workRequestId}",
|
|
1731
3313
|
method: "GET",
|
|
1732
3314
|
pathParams: pathParams,
|
|
1733
3315
|
headerParams: headerParams,
|
|
@@ -1738,24 +3320,24 @@ class RoverNodeClient {
|
|
|
1738
3320
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1739
3321
|
responseObject: {},
|
|
1740
3322
|
body: yield response.json(),
|
|
1741
|
-
bodyKey: "
|
|
1742
|
-
bodyModel: model.
|
|
1743
|
-
type: "model.
|
|
3323
|
+
bodyKey: "workRequest",
|
|
3324
|
+
bodyModel: model.WorkRequest,
|
|
3325
|
+
type: "model.WorkRequest",
|
|
1744
3326
|
responseHeaders: [
|
|
1745
3327
|
{
|
|
1746
|
-
value: response.headers.get("
|
|
1747
|
-
key: "
|
|
3328
|
+
value: response.headers.get("etag"),
|
|
3329
|
+
key: "etag",
|
|
1748
3330
|
dataType: "string"
|
|
1749
3331
|
},
|
|
1750
3332
|
{
|
|
1751
|
-
value: response.headers.get("opc-
|
|
1752
|
-
key: "
|
|
3333
|
+
value: response.headers.get("opc-request-id"),
|
|
3334
|
+
key: "opcRequestId",
|
|
1753
3335
|
dataType: "string"
|
|
1754
3336
|
},
|
|
1755
3337
|
{
|
|
1756
|
-
value: response.headers.get("
|
|
1757
|
-
key: "
|
|
1758
|
-
dataType: "
|
|
3338
|
+
value: response.headers.get("retry-after"),
|
|
3339
|
+
key: "retryAfter",
|
|
3340
|
+
dataType: "number"
|
|
1759
3341
|
}
|
|
1760
3342
|
]
|
|
1761
3343
|
});
|
|
@@ -1767,40 +3349,42 @@ class RoverNodeClient {
|
|
|
1767
3349
|
});
|
|
1768
3350
|
}
|
|
1769
3351
|
/**
|
|
1770
|
-
*
|
|
3352
|
+
* Return a (paginated) list of errors for a given work request.
|
|
3353
|
+
*
|
|
1771
3354
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1772
|
-
* @param
|
|
1773
|
-
* @return
|
|
3355
|
+
* @param ListWorkRequestErrorsRequest
|
|
3356
|
+
* @return ListWorkRequestErrorsResponse
|
|
1774
3357
|
* @throws OciError when an error occurs
|
|
1775
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3358
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1776
3359
|
*/
|
|
1777
|
-
|
|
3360
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1778
3361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1779
3362
|
if (this.logger)
|
|
1780
|
-
this.logger.debug("Calling operation
|
|
1781
|
-
const operationName = "
|
|
1782
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
3363
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
|
|
3364
|
+
const operationName = "listWorkRequestErrors";
|
|
3365
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/WorkRequest/ListWorkRequestErrors";
|
|
1783
3366
|
const pathParams = {
|
|
1784
|
-
"{
|
|
3367
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
3368
|
+
};
|
|
3369
|
+
const queryParams = {
|
|
3370
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
3371
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
3372
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder,
|
|
3373
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy
|
|
1785
3374
|
};
|
|
1786
|
-
const queryParams = {};
|
|
1787
3375
|
let headerParams = {
|
|
1788
3376
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1789
|
-
"
|
|
1790
|
-
"if-match": roverNodeActionSetKeyRequest.ifMatch,
|
|
1791
|
-
"opc-request-id": roverNodeActionSetKeyRequest.opcRequestId,
|
|
1792
|
-
"opc-retry-token": roverNodeActionSetKeyRequest.opcRetryToken
|
|
3377
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1793
3378
|
};
|
|
1794
3379
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1795
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3380
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1796
3381
|
if (this.logger)
|
|
1797
3382
|
retrier.logger = this.logger;
|
|
1798
3383
|
const request = yield oci_common_1.composeRequest({
|
|
1799
3384
|
baseEndpoint: this._endpoint,
|
|
1800
3385
|
defaultHeaders: this._defaultHeaders,
|
|
1801
|
-
path: "/
|
|
1802
|
-
method: "
|
|
1803
|
-
bodyContent: common.ObjectSerializer.serialize(roverNodeActionSetKeyRequest.roverNodeActionSetKeyDetails, "RoverNodeActionSetKeyDetails", model.RoverNodeActionSetKeyDetails.getJsonObj),
|
|
3386
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
3387
|
+
method: "GET",
|
|
1804
3388
|
pathParams: pathParams,
|
|
1805
3389
|
headerParams: headerParams,
|
|
1806
3390
|
queryParams: queryParams
|
|
@@ -1810,13 +3394,18 @@ class RoverNodeClient {
|
|
|
1810
3394
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1811
3395
|
responseObject: {},
|
|
1812
3396
|
body: yield response.json(),
|
|
1813
|
-
bodyKey: "
|
|
1814
|
-
bodyModel: model.
|
|
1815
|
-
type: "model.
|
|
3397
|
+
bodyKey: "workRequestErrorCollection",
|
|
3398
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
3399
|
+
type: "model.WorkRequestErrorCollection",
|
|
1816
3400
|
responseHeaders: [
|
|
1817
3401
|
{
|
|
1818
|
-
value: response.headers.get("
|
|
1819
|
-
key: "
|
|
3402
|
+
value: response.headers.get("opc-prev-page"),
|
|
3403
|
+
key: "opcPrevPage",
|
|
3404
|
+
dataType: "string"
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
value: response.headers.get("opc-next-page"),
|
|
3408
|
+
key: "opcNextPage",
|
|
1820
3409
|
dataType: "string"
|
|
1821
3410
|
},
|
|
1822
3411
|
{
|
|
@@ -1834,38 +3423,42 @@ class RoverNodeClient {
|
|
|
1834
3423
|
});
|
|
1835
3424
|
}
|
|
1836
3425
|
/**
|
|
1837
|
-
*
|
|
3426
|
+
* Return a (paginated) list of logs for a given work request.
|
|
3427
|
+
*
|
|
1838
3428
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1839
|
-
* @param
|
|
1840
|
-
* @return
|
|
3429
|
+
* @param ListWorkRequestLogsRequest
|
|
3430
|
+
* @return ListWorkRequestLogsResponse
|
|
1841
3431
|
* @throws OciError when an error occurs
|
|
1842
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3432
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1843
3433
|
*/
|
|
1844
|
-
|
|
3434
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1845
3435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1846
3436
|
if (this.logger)
|
|
1847
|
-
this.logger.debug("Calling operation
|
|
1848
|
-
const operationName = "
|
|
1849
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
3437
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
|
|
3438
|
+
const operationName = "listWorkRequestLogs";
|
|
3439
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/WorkRequest/ListWorkRequestLogs";
|
|
1850
3440
|
const pathParams = {
|
|
1851
|
-
"{
|
|
3441
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
3442
|
+
};
|
|
3443
|
+
const queryParams = {
|
|
3444
|
+
"page": listWorkRequestLogsRequest.page,
|
|
3445
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
3446
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder,
|
|
3447
|
+
"sortBy": listWorkRequestLogsRequest.sortBy
|
|
1852
3448
|
};
|
|
1853
|
-
const queryParams = {};
|
|
1854
3449
|
let headerParams = {
|
|
1855
3450
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1856
|
-
"
|
|
1857
|
-
"opc-request-id": updateRoverNodeRequest.opcRequestId
|
|
3451
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1858
3452
|
};
|
|
1859
3453
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1860
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3454
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1861
3455
|
if (this.logger)
|
|
1862
3456
|
retrier.logger = this.logger;
|
|
1863
3457
|
const request = yield oci_common_1.composeRequest({
|
|
1864
3458
|
baseEndpoint: this._endpoint,
|
|
1865
3459
|
defaultHeaders: this._defaultHeaders,
|
|
1866
|
-
path: "/
|
|
1867
|
-
method: "
|
|
1868
|
-
bodyContent: common.ObjectSerializer.serialize(updateRoverNodeRequest.updateRoverNodeDetails, "UpdateRoverNodeDetails", model.UpdateRoverNodeDetails.getJsonObj),
|
|
3460
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
3461
|
+
method: "GET",
|
|
1869
3462
|
pathParams: pathParams,
|
|
1870
3463
|
headerParams: headerParams,
|
|
1871
3464
|
queryParams: queryParams
|
|
@@ -1875,13 +3468,18 @@ class RoverNodeClient {
|
|
|
1875
3468
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1876
3469
|
responseObject: {},
|
|
1877
3470
|
body: yield response.json(),
|
|
1878
|
-
bodyKey: "
|
|
1879
|
-
bodyModel: model.
|
|
1880
|
-
type: "model.
|
|
3471
|
+
bodyKey: "workRequestLogCollection",
|
|
3472
|
+
bodyModel: model.WorkRequestLogCollection,
|
|
3473
|
+
type: "model.WorkRequestLogCollection",
|
|
1881
3474
|
responseHeaders: [
|
|
1882
3475
|
{
|
|
1883
|
-
value: response.headers.get("
|
|
1884
|
-
key: "
|
|
3476
|
+
value: response.headers.get("opc-next-page"),
|
|
3477
|
+
key: "opcNextPage",
|
|
3478
|
+
dataType: "string"
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
value: response.headers.get("opc-prev-page"),
|
|
3482
|
+
key: "opcPrevPage",
|
|
1885
3483
|
dataType: "string"
|
|
1886
3484
|
},
|
|
1887
3485
|
{
|
|
@@ -1898,149 +3496,44 @@ class RoverNodeClient {
|
|
|
1898
3496
|
}
|
|
1899
3497
|
});
|
|
1900
3498
|
}
|
|
1901
|
-
}
|
|
1902
|
-
exports.RoverNodeClient = RoverNodeClient;
|
|
1903
|
-
RoverNodeClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
1904
|
-
RoverNodeClient.endpointServiceName = "";
|
|
1905
|
-
var ShapeApiKeys;
|
|
1906
|
-
(function (ShapeApiKeys) {
|
|
1907
|
-
})(ShapeApiKeys = exports.ShapeApiKeys || (exports.ShapeApiKeys = {}));
|
|
1908
|
-
/**
|
|
1909
|
-
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1910
|
-
*/
|
|
1911
|
-
class ShapeClient {
|
|
1912
|
-
constructor(params, clientConfiguration) {
|
|
1913
|
-
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
1914
|
-
this["_endpoint"] = "";
|
|
1915
|
-
this["_defaultHeaders"] = {};
|
|
1916
|
-
this._circuitBreaker = null;
|
|
1917
|
-
this._httpOptions = undefined;
|
|
1918
|
-
this.targetService = "Shape";
|
|
1919
|
-
this._regionId = "";
|
|
1920
|
-
this._lastSetRegionOrRegionId = "";
|
|
1921
|
-
const requestSigner = params.authenticationDetailsProvider
|
|
1922
|
-
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1923
|
-
: null;
|
|
1924
|
-
if (clientConfiguration) {
|
|
1925
|
-
this._clientConfiguration = clientConfiguration;
|
|
1926
|
-
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1927
|
-
? clientConfiguration.circuitBreaker.circuit
|
|
1928
|
-
: null;
|
|
1929
|
-
this._httpOptions = clientConfiguration.httpOptions
|
|
1930
|
-
? clientConfiguration.httpOptions
|
|
1931
|
-
: undefined;
|
|
1932
|
-
}
|
|
1933
|
-
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1934
|
-
const specCircuitBreakerEnabled = true;
|
|
1935
|
-
if (!this._circuitBreaker &&
|
|
1936
|
-
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1937
|
-
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1938
|
-
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1939
|
-
}
|
|
1940
|
-
this._httpClient =
|
|
1941
|
-
params.httpClient ||
|
|
1942
|
-
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1943
|
-
if (params.authenticationDetailsProvider &&
|
|
1944
|
-
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1945
|
-
const provider = params.authenticationDetailsProvider;
|
|
1946
|
-
if (provider.getRegion()) {
|
|
1947
|
-
this.region = provider.getRegion();
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
/**
|
|
1952
|
-
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1953
|
-
*/
|
|
1954
|
-
get endpoint() {
|
|
1955
|
-
return this._endpoint;
|
|
1956
|
-
}
|
|
1957
|
-
/**
|
|
1958
|
-
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1959
|
-
* @param endpoint The endpoint of the service.
|
|
1960
|
-
*/
|
|
1961
|
-
set endpoint(endpoint) {
|
|
1962
|
-
this._endpoint = endpoint;
|
|
1963
|
-
this._endpoint = this._endpoint + "/20201210";
|
|
1964
|
-
if (this.logger)
|
|
1965
|
-
this.logger.info(`ShapeClient endpoint set to ${this._endpoint}`);
|
|
1966
|
-
}
|
|
1967
|
-
get logger() {
|
|
1968
|
-
return common.LOG.logger;
|
|
1969
|
-
}
|
|
1970
|
-
/**
|
|
1971
|
-
* Determines whether realm specific endpoint should be used or not.
|
|
1972
|
-
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1973
|
-
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1974
|
-
*/
|
|
1975
|
-
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1976
|
-
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1977
|
-
if (this.logger)
|
|
1978
|
-
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1979
|
-
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1980
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, this._region, ShapeClient.endpointServiceName);
|
|
1981
|
-
}
|
|
1982
|
-
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1983
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, this._regionId, ShapeClient.endpointServiceName);
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1988
|
-
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1989
|
-
* @param region The region of the service.
|
|
1990
|
-
*/
|
|
1991
|
-
set region(region) {
|
|
1992
|
-
this._region = region;
|
|
1993
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, region, ShapeClient.endpointServiceName);
|
|
1994
|
-
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1995
|
-
}
|
|
1996
|
-
/**
|
|
1997
|
-
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1998
|
-
*
|
|
1999
|
-
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2000
|
-
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2001
|
-
* and then call {@link #endpoint(String) endpoint}.
|
|
2002
|
-
* @param regionId The public region ID.
|
|
2003
|
-
*/
|
|
2004
|
-
set regionId(regionId) {
|
|
2005
|
-
this._regionId = regionId;
|
|
2006
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, regionId, ShapeClient.endpointServiceName);
|
|
2007
|
-
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2008
|
-
}
|
|
2009
3499
|
/**
|
|
2010
|
-
*
|
|
3500
|
+
* Lists the work requests in a compartment.
|
|
2011
3501
|
*
|
|
2012
3502
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2013
|
-
* @param
|
|
2014
|
-
* @return
|
|
3503
|
+
* @param ListWorkRequestsRequest
|
|
3504
|
+
* @return ListWorkRequestsResponse
|
|
2015
3505
|
* @throws OciError when an error occurs
|
|
2016
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3506
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.3/rover/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2017
3507
|
*/
|
|
2018
|
-
|
|
3508
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
2019
3509
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2020
3510
|
if (this.logger)
|
|
2021
|
-
this.logger.debug("Calling operation
|
|
2022
|
-
const operationName = "
|
|
2023
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/
|
|
3511
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
|
|
3512
|
+
const operationName = "listWorkRequests";
|
|
3513
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/rover/20201210/WorkRequest/ListWorkRequests";
|
|
2024
3514
|
const pathParams = {};
|
|
2025
3515
|
const queryParams = {
|
|
2026
|
-
"compartmentId":
|
|
2027
|
-
"
|
|
2028
|
-
"
|
|
2029
|
-
"
|
|
2030
|
-
"
|
|
3516
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
3517
|
+
"operationType": listWorkRequestsRequest.operationType,
|
|
3518
|
+
"status": listWorkRequestsRequest.status,
|
|
3519
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
3520
|
+
"page": listWorkRequestsRequest.page,
|
|
3521
|
+
"limit": listWorkRequestsRequest.limit,
|
|
3522
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
3523
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
2031
3524
|
};
|
|
2032
3525
|
let headerParams = {
|
|
2033
3526
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2034
|
-
"opc-request-id":
|
|
3527
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
2035
3528
|
};
|
|
2036
3529
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2037
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
3530
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2038
3531
|
if (this.logger)
|
|
2039
3532
|
retrier.logger = this.logger;
|
|
2040
3533
|
const request = yield oci_common_1.composeRequest({
|
|
2041
3534
|
baseEndpoint: this._endpoint,
|
|
2042
3535
|
defaultHeaders: this._defaultHeaders,
|
|
2043
|
-
path: "/
|
|
3536
|
+
path: "/workRequests",
|
|
2044
3537
|
method: "GET",
|
|
2045
3538
|
pathParams: pathParams,
|
|
2046
3539
|
headerParams: headerParams,
|
|
@@ -2051,9 +3544,9 @@ class ShapeClient {
|
|
|
2051
3544
|
const sdkResponse = oci_common_1.composeResponse({
|
|
2052
3545
|
responseObject: {},
|
|
2053
3546
|
body: yield response.json(),
|
|
2054
|
-
bodyKey: "
|
|
2055
|
-
bodyModel: model.
|
|
2056
|
-
type: "model.
|
|
3547
|
+
bodyKey: "workRequestCollection",
|
|
3548
|
+
bodyModel: model.WorkRequestCollection,
|
|
3549
|
+
type: "model.WorkRequestCollection",
|
|
2057
3550
|
responseHeaders: [
|
|
2058
3551
|
{
|
|
2059
3552
|
value: response.headers.get("opc-request-id"),
|
|
@@ -2080,7 +3573,7 @@ class ShapeClient {
|
|
|
2080
3573
|
});
|
|
2081
3574
|
}
|
|
2082
3575
|
}
|
|
2083
|
-
exports.
|
|
2084
|
-
|
|
2085
|
-
|
|
3576
|
+
exports.WorkRequestsClient = WorkRequestsClient;
|
|
3577
|
+
WorkRequestsClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
3578
|
+
WorkRequestsClient.endpointServiceName = "";
|
|
2086
3579
|
//# sourceMappingURL=client.js.map
|