oci-resourceanalytics 2.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +28 -0
- package/index.js +51 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +471 -0
- package/lib/client.js +1997 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/adw-admin-password-details.d.ts +27 -0
- package/lib/model/adw-admin-password-details.js +72 -0
- package/lib/model/adw-admin-password-details.js.map +1 -0
- package/lib/model/change-resource-analytics-instance-compartment-details.d.ts +26 -0
- package/lib/model/change-resource-analytics-instance-compartment-details.js +29 -0
- package/lib/model/change-resource-analytics-instance-compartment-details.js.map +1 -0
- package/lib/model/create-monitored-region-details.d.ts +29 -0
- package/lib/model/create-monitored-region-details.js +29 -0
- package/lib/model/create-monitored-region-details.js.map +1 -0
- package/lib/model/create-resource-analytics-instance-details.d.ts +81 -0
- package/lib/model/create-resource-analytics-instance-details.js +62 -0
- package/lib/model/create-resource-analytics-instance-details.js.map +1 -0
- package/lib/model/create-tenancy-attachment-details.d.ts +33 -0
- package/lib/model/create-tenancy-attachment-details.js +29 -0
- package/lib/model/create-tenancy-attachment-details.js.map +1 -0
- package/lib/model/index.d.ts +80 -0
- package/lib/model/index.js +103 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/monitored-region-collection.d.ts +26 -0
- package/lib/model/monitored-region-collection.js +61 -0
- package/lib/model/monitored-region-collection.js.map +1 -0
- package/lib/model/monitored-region-summary.d.ts +68 -0
- package/lib/model/monitored-region-summary.js +29 -0
- package/lib/model/monitored-region-summary.js.map +1 -0
- package/lib/model/monitored-region.d.ts +86 -0
- package/lib/model/monitored-region.js +43 -0
- package/lib/model/monitored-region.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +37 -0
- package/lib/model/operation-type.js +48 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/plain-text-password-details.d.ts +28 -0
- package/lib/model/plain-text-password-details.js +54 -0
- package/lib/model/plain-text-password-details.js.map +1 -0
- package/lib/model/resource-analytics-instance-collection.d.ts +26 -0
- package/lib/model/resource-analytics-instance-collection.js +61 -0
- package/lib/model/resource-analytics-instance-collection.js.map +1 -0
- package/lib/model/resource-analytics-instance-enable-oac-details.d.ts +33 -0
- package/lib/model/resource-analytics-instance-enable-oac-details.js +61 -0
- package/lib/model/resource-analytics-instance-enable-oac-details.js.map +1 -0
- package/lib/model/resource-analytics-instance-oac-attachment-details.d.ts +46 -0
- package/lib/model/resource-analytics-instance-oac-attachment-details.js +62 -0
- package/lib/model/resource-analytics-instance-oac-attachment-details.js.map +1 -0
- package/lib/model/resource-analytics-instance-oac-network-details.d.ts +35 -0
- package/lib/model/resource-analytics-instance-oac-network-details.js +29 -0
- package/lib/model/resource-analytics-instance-oac-network-details.js.map +1 -0
- package/lib/model/resource-analytics-instance-summary.d.ts +94 -0
- package/lib/model/resource-analytics-instance-summary.js +29 -0
- package/lib/model/resource-analytics-instance-summary.js.map +1 -0
- package/lib/model/resource-analytics-instance.d.ts +120 -0
- package/lib/model/resource-analytics-instance.js +44 -0
- package/lib/model/resource-analytics-instance.js.map +1 -0
- package/lib/model/sort-order.d.ts +30 -0
- package/lib/model/sort-order.js +41 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/tenancy-attachment-collection.d.ts +26 -0
- package/lib/model/tenancy-attachment-collection.js +61 -0
- package/lib/model/tenancy-attachment-collection.js.map +1 -0
- package/lib/model/tenancy-attachment-summary.d.ts +76 -0
- package/lib/model/tenancy-attachment-summary.js +29 -0
- package/lib/model/tenancy-attachment-summary.js.map +1 -0
- package/lib/model/tenancy-attachment.d.ts +95 -0
- package/lib/model/tenancy-attachment.js +44 -0
- package/lib/model/tenancy-attachment.js.map +1 -0
- package/lib/model/update-resource-analytics-instance-details.d.ts +51 -0
- package/lib/model/update-resource-analytics-instance-details.js +29 -0
- package/lib/model/update-resource-analytics-instance-details.js.map +1 -0
- package/lib/model/update-tenancy-attachment-details.d.ts +25 -0
- package/lib/model/update-tenancy-attachment-details.js +29 -0
- package/lib/model/update-tenancy-attachment-details.js.map +1 -0
- package/lib/model/vault-secret-password-details.d.ts +28 -0
- package/lib/model/vault-secret-password-details.js +54 -0
- package/lib/model/vault-secret-password-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +37 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +31 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +73 -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 +76 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/monitoredregion-waiter.d.ts +29 -0
- package/lib/monitoredregion-waiter.js +65 -0
- package/lib/monitoredregion-waiter.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +38 -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-resource-analytics-instance-compartment-request.d.ts +43 -0
- package/lib/request/change-resource-analytics-instance-compartment-request.js +15 -0
- package/lib/request/change-resource-analytics-instance-compartment-request.js.map +1 -0
- package/lib/request/create-monitored-region-request.d.ts +40 -0
- package/lib/request/create-monitored-region-request.js +15 -0
- package/lib/request/create-monitored-region-request.js.map +1 -0
- package/lib/request/create-resource-analytics-instance-request.d.ts +40 -0
- package/lib/request/create-resource-analytics-instance-request.js +15 -0
- package/lib/request/create-resource-analytics-instance-request.js.map +1 -0
- package/lib/request/create-tenancy-attachment-request.d.ts +40 -0
- package/lib/request/create-tenancy-attachment-request.js +15 -0
- package/lib/request/create-tenancy-attachment-request.js.map +1 -0
- package/lib/request/delete-monitored-region-request.d.ts +38 -0
- package/lib/request/delete-monitored-region-request.js +15 -0
- package/lib/request/delete-monitored-region-request.js.map +1 -0
- package/lib/request/delete-resource-analytics-instance-request.d.ts +38 -0
- package/lib/request/delete-resource-analytics-instance-request.js +15 -0
- package/lib/request/delete-resource-analytics-instance-request.js.map +1 -0
- package/lib/request/delete-tenancy-attachment-request.d.ts +38 -0
- package/lib/request/delete-tenancy-attachment-request.js +15 -0
- package/lib/request/delete-tenancy-attachment-request.js.map +1 -0
- package/lib/request/get-monitored-region-request.d.ts +30 -0
- package/lib/request/get-monitored-region-request.js +15 -0
- package/lib/request/get-monitored-region-request.js.map +1 -0
- package/lib/request/get-resource-analytics-instance-request.d.ts +30 -0
- package/lib/request/get-resource-analytics-instance-request.js +15 -0
- package/lib/request/get-resource-analytics-instance-request.js.map +1 -0
- package/lib/request/get-tenancy-attachment-request.d.ts +30 -0
- package/lib/request/get-tenancy-attachment-request.js +15 -0
- package/lib/request/get-tenancy-attachment-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +30 -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 +56 -0
- package/lib/request/index.js +47 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-monitored-regions-request.d.ts +71 -0
- package/lib/request/list-monitored-regions-request.js +24 -0
- package/lib/request/list-monitored-regions-request.js.map +1 -0
- package/lib/request/list-resource-analytics-instances-request.d.ts +75 -0
- package/lib/request/list-resource-analytics-instances-request.js +24 -0
- package/lib/request/list-resource-analytics-instances-request.js.map +1 -0
- package/lib/request/list-tenancy-attachments-request.d.ts +71 -0
- package/lib/request/list-tenancy-attachments-request.js +24 -0
- package/lib/request/list-tenancy-attachments-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +59 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +59 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +71 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/resource-analytics-instance-disable-oac-request.d.ts +38 -0
- package/lib/request/resource-analytics-instance-disable-oac-request.js +15 -0
- package/lib/request/resource-analytics-instance-disable-oac-request.js.map +1 -0
- package/lib/request/resource-analytics-instance-enable-oac-request.d.ts +43 -0
- package/lib/request/resource-analytics-instance-enable-oac-request.js +15 -0
- package/lib/request/resource-analytics-instance-enable-oac-request.js.map +1 -0
- package/lib/request/update-resource-analytics-instance-request.d.ts +43 -0
- package/lib/request/update-resource-analytics-instance-request.js +15 -0
- package/lib/request/update-resource-analytics-instance-request.js.map +1 -0
- package/lib/request/update-tenancy-attachment-request.d.ts +43 -0
- package/lib/request/update-tenancy-attachment-request.js +15 -0
- package/lib/request/update-tenancy-attachment-request.js.map +1 -0
- package/lib/resourceanalyticsinstance-waiter.d.ts +36 -0
- package/lib/resourceanalyticsinstance-waiter.js +76 -0
- package/lib/resourceanalyticsinstance-waiter.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-resource-analytics-instance-compartment-response.d.ts +26 -0
- package/lib/response/change-resource-analytics-instance-compartment-response.js +15 -0
- package/lib/response/change-resource-analytics-instance-compartment-response.js.map +1 -0
- package/lib/response/create-monitored-region-response.d.ts +44 -0
- package/lib/response/create-monitored-region-response.js +15 -0
- package/lib/response/create-monitored-region-response.js.map +1 -0
- package/lib/response/create-resource-analytics-instance-response.d.ts +44 -0
- package/lib/response/create-resource-analytics-instance-response.js +15 -0
- package/lib/response/create-resource-analytics-instance-response.js.map +1 -0
- package/lib/response/create-tenancy-attachment-response.d.ts +44 -0
- package/lib/response/create-tenancy-attachment-response.js +15 -0
- package/lib/response/create-tenancy-attachment-response.js.map +1 -0
- package/lib/response/delete-monitored-region-response.d.ts +26 -0
- package/lib/response/delete-monitored-region-response.js +15 -0
- package/lib/response/delete-monitored-region-response.js.map +1 -0
- package/lib/response/delete-resource-analytics-instance-response.d.ts +26 -0
- package/lib/response/delete-resource-analytics-instance-response.js +15 -0
- package/lib/response/delete-resource-analytics-instance-response.js.map +1 -0
- package/lib/response/delete-tenancy-attachment-response.d.ts +26 -0
- package/lib/response/delete-tenancy-attachment-response.js +15 -0
- package/lib/response/delete-tenancy-attachment-response.js.map +1 -0
- package/lib/response/get-monitored-region-response.d.ts +30 -0
- package/lib/response/get-monitored-region-response.js +15 -0
- package/lib/response/get-monitored-region-response.js.map +1 -0
- package/lib/response/get-resource-analytics-instance-response.d.ts +30 -0
- package/lib/response/get-resource-analytics-instance-response.js +15 -0
- package/lib/response/get-resource-analytics-instance-response.js.map +1 -0
- package/lib/response/get-tenancy-attachment-response.d.ts +30 -0
- package/lib/response/get-tenancy-attachment-response.js +15 -0
- package/lib/response/get-tenancy-attachment-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 +56 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-monitored-regions-response.d.ts +31 -0
- package/lib/response/list-monitored-regions-response.js +15 -0
- package/lib/response/list-monitored-regions-response.js.map +1 -0
- package/lib/response/list-resource-analytics-instances-response.d.ts +31 -0
- package/lib/response/list-resource-analytics-instances-response.js +15 -0
- package/lib/response/list-resource-analytics-instances-response.js.map +1 -0
- package/lib/response/list-tenancy-attachments-response.d.ts +31 -0
- package/lib/response/list-tenancy-attachments-response.js +15 -0
- package/lib/response/list-tenancy-attachments-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +31 -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 +31 -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 +31 -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/resource-analytics-instance-disable-oac-response.d.ts +26 -0
- package/lib/response/resource-analytics-instance-disable-oac-response.js +15 -0
- package/lib/response/resource-analytics-instance-disable-oac-response.js.map +1 -0
- package/lib/response/resource-analytics-instance-enable-oac-response.d.ts +26 -0
- package/lib/response/resource-analytics-instance-enable-oac-response.js +15 -0
- package/lib/response/resource-analytics-instance-enable-oac-response.js.map +1 -0
- package/lib/response/update-resource-analytics-instance-response.d.ts +26 -0
- package/lib/response/update-resource-analytics-instance-response.js +15 -0
- package/lib/response/update-resource-analytics-instance-response.js.map +1 -0
- package/lib/response/update-tenancy-attachment-response.d.ts +26 -0
- package/lib/response/update-tenancy-attachment-response.js +15 -0
- package/lib/response/update-tenancy-attachment-response.js.map +1 -0
- package/lib/tenancyattachment-waiter.d.ts +29 -0
- package/lib/tenancyattachment-waiter.js +65 -0
- package/lib/tenancyattachment-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1997 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Resource Analytics API
|
|
4
|
+
* Use the Resource Analytics API to manage Resource Analytics Instances.
|
|
5
|
+
* OpenAPI spec version: 20241031
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.TenancyAttachmentClient = exports.TenancyAttachmentApiKeys = exports.ResourceAnalyticsInstanceClient = exports.ResourceAnalyticsInstanceApiKeys = exports.MonitoredRegionClient = exports.MonitoredRegionApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const monitoredregion_waiter_1 = require("./monitoredregion-waiter");
|
|
47
|
+
const resourceanalyticsinstance_waiter_1 = require("./resourceanalyticsinstance-waiter");
|
|
48
|
+
const tenancyattachment_waiter_1 = require("./tenancyattachment-waiter");
|
|
49
|
+
const oci_common_1 = require("oci-common");
|
|
50
|
+
const Breaker = require("opossum");
|
|
51
|
+
// ===============================================
|
|
52
|
+
// This file is autogenerated - Please do not edit
|
|
53
|
+
// ===============================================
|
|
54
|
+
var MonitoredRegionApiKeys;
|
|
55
|
+
(function (MonitoredRegionApiKeys) {
|
|
56
|
+
})(MonitoredRegionApiKeys = exports.MonitoredRegionApiKeys || (exports.MonitoredRegionApiKeys = {}));
|
|
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.
|
|
59
|
+
*/
|
|
60
|
+
class MonitoredRegionClient {
|
|
61
|
+
constructor(params, clientConfiguration) {
|
|
62
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
63
|
+
this["_endpoint"] = "";
|
|
64
|
+
this["_defaultHeaders"] = {};
|
|
65
|
+
this._circuitBreaker = null;
|
|
66
|
+
this._httpOptions = undefined;
|
|
67
|
+
this._bodyDuplexMode = undefined;
|
|
68
|
+
this.targetService = "MonitoredRegion";
|
|
69
|
+
this._regionId = "";
|
|
70
|
+
this._lastSetRegionOrRegionId = "";
|
|
71
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
72
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
73
|
+
: null;
|
|
74
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
75
|
+
if (clientConfiguration) {
|
|
76
|
+
this._clientConfiguration = clientConfiguration;
|
|
77
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
78
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
79
|
+
: null;
|
|
80
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
81
|
+
? clientConfiguration.httpOptions
|
|
82
|
+
: undefined;
|
|
83
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
84
|
+
? clientConfiguration.bodyDuplexMode
|
|
85
|
+
: undefined;
|
|
86
|
+
}
|
|
87
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("resourceanalytics")) {
|
|
88
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
89
|
+
throw errmsg.concat("resourceanalytics");
|
|
90
|
+
}
|
|
91
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
92
|
+
const specCircuitBreakerEnabled = true;
|
|
93
|
+
if (!this._circuitBreaker &&
|
|
94
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
95
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
96
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
97
|
+
}
|
|
98
|
+
this._httpClient =
|
|
99
|
+
params.httpClient ||
|
|
100
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
101
|
+
if (params.authenticationDetailsProvider &&
|
|
102
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
103
|
+
const provider = params.authenticationDetailsProvider;
|
|
104
|
+
if (provider.getRegion()) {
|
|
105
|
+
this.region = provider.getRegion();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
111
|
+
*/
|
|
112
|
+
get endpoint() {
|
|
113
|
+
return this._endpoint;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
117
|
+
* @param endpoint The endpoint of the service.
|
|
118
|
+
*/
|
|
119
|
+
set endpoint(endpoint) {
|
|
120
|
+
this._endpoint = endpoint;
|
|
121
|
+
this._endpoint = this._endpoint + "/20241031";
|
|
122
|
+
if (this.logger)
|
|
123
|
+
this.logger.info(`MonitoredRegionClient endpoint set to ${this._endpoint}`);
|
|
124
|
+
}
|
|
125
|
+
get logger() {
|
|
126
|
+
return common.LOG.logger;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
130
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
131
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
132
|
+
*/
|
|
133
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
134
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
135
|
+
if (this.logger)
|
|
136
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
137
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
138
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MonitoredRegionClient.serviceEndpointTemplate, this._region, MonitoredRegionClient.endpointServiceName);
|
|
139
|
+
}
|
|
140
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
141
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MonitoredRegionClient.serviceEndpointTemplate, this._regionId, MonitoredRegionClient.endpointServiceName);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
146
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
147
|
+
* @param region The region of the service.
|
|
148
|
+
*/
|
|
149
|
+
set region(region) {
|
|
150
|
+
this._region = region;
|
|
151
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MonitoredRegionClient.serviceEndpointTemplate, region, MonitoredRegionClient.endpointServiceName);
|
|
152
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
156
|
+
*
|
|
157
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
158
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
159
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
160
|
+
* @param regionId The public region ID.
|
|
161
|
+
*/
|
|
162
|
+
set regionId(regionId) {
|
|
163
|
+
this._regionId = regionId;
|
|
164
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MonitoredRegionClient.serviceEndpointTemplate, regionId, MonitoredRegionClient.endpointServiceName);
|
|
165
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Creates a new MonitoredRegionWaiter for resources for this service.
|
|
169
|
+
*
|
|
170
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
171
|
+
* @return The service waiters.
|
|
172
|
+
*/
|
|
173
|
+
createWaiters(config) {
|
|
174
|
+
this._waiters = new monitoredregion_waiter_1.MonitoredRegionWaiter(this, config);
|
|
175
|
+
return this._waiters;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Gets the waiters available for resources for this service.
|
|
179
|
+
*
|
|
180
|
+
* @return The service waiters.
|
|
181
|
+
*/
|
|
182
|
+
getWaiters() {
|
|
183
|
+
if (this._waiters) {
|
|
184
|
+
return this._waiters;
|
|
185
|
+
}
|
|
186
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
190
|
+
*/
|
|
191
|
+
shutdownCircuitBreaker() {
|
|
192
|
+
if (this._circuitBreaker) {
|
|
193
|
+
this._circuitBreaker.shutdown();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
198
|
+
*/
|
|
199
|
+
closeProvider() {
|
|
200
|
+
if (this._authProvider) {
|
|
201
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
202
|
+
(this._authProvider).closeProvider();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Close the client once it is no longer needed
|
|
207
|
+
*/
|
|
208
|
+
close() {
|
|
209
|
+
this.shutdownCircuitBreaker();
|
|
210
|
+
this.closeProvider();
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Creates a MonitoredRegion.
|
|
214
|
+
*
|
|
215
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
216
|
+
* @param CreateMonitoredRegionRequest
|
|
217
|
+
* @return CreateMonitoredRegionResponse
|
|
218
|
+
* @throws OciError when an error occurs
|
|
219
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/CreateMonitoredRegion.ts.html |here} to see how to use CreateMonitoredRegion API.
|
|
220
|
+
*/
|
|
221
|
+
createMonitoredRegion(createMonitoredRegionRequest) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
if (this.logger)
|
|
224
|
+
this.logger.debug("Calling operation MonitoredRegionClient#createMonitoredRegion.");
|
|
225
|
+
const operationName = "createMonitoredRegion";
|
|
226
|
+
const apiReferenceLink = "";
|
|
227
|
+
const pathParams = {};
|
|
228
|
+
const queryParams = {};
|
|
229
|
+
let headerParams = {
|
|
230
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
231
|
+
"opc-retry-token": createMonitoredRegionRequest.opcRetryToken,
|
|
232
|
+
"opc-request-id": createMonitoredRegionRequest.opcRequestId
|
|
233
|
+
};
|
|
234
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
235
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMonitoredRegionRequest.retryConfiguration, specRetryConfiguration);
|
|
236
|
+
if (this.logger)
|
|
237
|
+
retrier.logger = this.logger;
|
|
238
|
+
const request = yield oci_common_1.composeRequest({
|
|
239
|
+
baseEndpoint: this._endpoint,
|
|
240
|
+
defaultHeaders: this._defaultHeaders,
|
|
241
|
+
path: "/monitoredRegions",
|
|
242
|
+
method: "POST",
|
|
243
|
+
bodyContent: common.ObjectSerializer.serialize(createMonitoredRegionRequest.createMonitoredRegionDetails, "CreateMonitoredRegionDetails", model.CreateMonitoredRegionDetails.getJsonObj),
|
|
244
|
+
pathParams: pathParams,
|
|
245
|
+
headerParams: headerParams,
|
|
246
|
+
queryParams: queryParams
|
|
247
|
+
});
|
|
248
|
+
try {
|
|
249
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
250
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
251
|
+
responseObject: {},
|
|
252
|
+
body: yield response.json(),
|
|
253
|
+
bodyKey: "monitoredRegion",
|
|
254
|
+
bodyModel: model.MonitoredRegion,
|
|
255
|
+
type: "model.MonitoredRegion",
|
|
256
|
+
responseHeaders: [
|
|
257
|
+
{
|
|
258
|
+
value: response.headers.get("location"),
|
|
259
|
+
key: "location",
|
|
260
|
+
dataType: "string"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
value: response.headers.get("content-location"),
|
|
264
|
+
key: "contentLocation",
|
|
265
|
+
dataType: "string"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
value: response.headers.get("etag"),
|
|
269
|
+
key: "etag",
|
|
270
|
+
dataType: "string"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
value: response.headers.get("opc-work-request-id"),
|
|
274
|
+
key: "opcWorkRequestId",
|
|
275
|
+
dataType: "string"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
value: response.headers.get("opc-request-id"),
|
|
279
|
+
key: "opcRequestId",
|
|
280
|
+
dataType: "string"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
});
|
|
284
|
+
return sdkResponse;
|
|
285
|
+
}
|
|
286
|
+
catch (err) {
|
|
287
|
+
throw err;
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Deletes a MonitoredRegion.
|
|
293
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
294
|
+
* @param DeleteMonitoredRegionRequest
|
|
295
|
+
* @return DeleteMonitoredRegionResponse
|
|
296
|
+
* @throws OciError when an error occurs
|
|
297
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/DeleteMonitoredRegion.ts.html |here} to see how to use DeleteMonitoredRegion API.
|
|
298
|
+
*/
|
|
299
|
+
deleteMonitoredRegion(deleteMonitoredRegionRequest) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
if (this.logger)
|
|
302
|
+
this.logger.debug("Calling operation MonitoredRegionClient#deleteMonitoredRegion.");
|
|
303
|
+
const operationName = "deleteMonitoredRegion";
|
|
304
|
+
const apiReferenceLink = "";
|
|
305
|
+
const pathParams = {
|
|
306
|
+
"{monitoredRegionId}": deleteMonitoredRegionRequest.monitoredRegionId
|
|
307
|
+
};
|
|
308
|
+
const queryParams = {};
|
|
309
|
+
let headerParams = {
|
|
310
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
311
|
+
"if-match": deleteMonitoredRegionRequest.ifMatch,
|
|
312
|
+
"opc-request-id": deleteMonitoredRegionRequest.opcRequestId
|
|
313
|
+
};
|
|
314
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
315
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMonitoredRegionRequest.retryConfiguration, specRetryConfiguration);
|
|
316
|
+
if (this.logger)
|
|
317
|
+
retrier.logger = this.logger;
|
|
318
|
+
const request = yield oci_common_1.composeRequest({
|
|
319
|
+
baseEndpoint: this._endpoint,
|
|
320
|
+
defaultHeaders: this._defaultHeaders,
|
|
321
|
+
path: "/monitoredRegions/{monitoredRegionId}",
|
|
322
|
+
method: "DELETE",
|
|
323
|
+
pathParams: pathParams,
|
|
324
|
+
headerParams: headerParams,
|
|
325
|
+
queryParams: queryParams
|
|
326
|
+
});
|
|
327
|
+
try {
|
|
328
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
329
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
330
|
+
responseObject: {},
|
|
331
|
+
responseHeaders: [
|
|
332
|
+
{
|
|
333
|
+
value: response.headers.get("opc-work-request-id"),
|
|
334
|
+
key: "opcWorkRequestId",
|
|
335
|
+
dataType: "string"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
value: response.headers.get("opc-request-id"),
|
|
339
|
+
key: "opcRequestId",
|
|
340
|
+
dataType: "string"
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
});
|
|
344
|
+
return sdkResponse;
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
throw err;
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Gets information about a MonitoredRegion.
|
|
353
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
354
|
+
* @param GetMonitoredRegionRequest
|
|
355
|
+
* @return GetMonitoredRegionResponse
|
|
356
|
+
* @throws OciError when an error occurs
|
|
357
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/GetMonitoredRegion.ts.html |here} to see how to use GetMonitoredRegion API.
|
|
358
|
+
*/
|
|
359
|
+
getMonitoredRegion(getMonitoredRegionRequest) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
if (this.logger)
|
|
362
|
+
this.logger.debug("Calling operation MonitoredRegionClient#getMonitoredRegion.");
|
|
363
|
+
const operationName = "getMonitoredRegion";
|
|
364
|
+
const apiReferenceLink = "";
|
|
365
|
+
const pathParams = {
|
|
366
|
+
"{monitoredRegionId}": getMonitoredRegionRequest.monitoredRegionId
|
|
367
|
+
};
|
|
368
|
+
const queryParams = {};
|
|
369
|
+
let headerParams = {
|
|
370
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
371
|
+
"opc-request-id": getMonitoredRegionRequest.opcRequestId
|
|
372
|
+
};
|
|
373
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
374
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMonitoredRegionRequest.retryConfiguration, specRetryConfiguration);
|
|
375
|
+
if (this.logger)
|
|
376
|
+
retrier.logger = this.logger;
|
|
377
|
+
const request = yield oci_common_1.composeRequest({
|
|
378
|
+
baseEndpoint: this._endpoint,
|
|
379
|
+
defaultHeaders: this._defaultHeaders,
|
|
380
|
+
path: "/monitoredRegions/{monitoredRegionId}",
|
|
381
|
+
method: "GET",
|
|
382
|
+
pathParams: pathParams,
|
|
383
|
+
headerParams: headerParams,
|
|
384
|
+
queryParams: queryParams
|
|
385
|
+
});
|
|
386
|
+
try {
|
|
387
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
388
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
389
|
+
responseObject: {},
|
|
390
|
+
body: yield response.json(),
|
|
391
|
+
bodyKey: "monitoredRegion",
|
|
392
|
+
bodyModel: model.MonitoredRegion,
|
|
393
|
+
type: "model.MonitoredRegion",
|
|
394
|
+
responseHeaders: [
|
|
395
|
+
{
|
|
396
|
+
value: response.headers.get("etag"),
|
|
397
|
+
key: "etag",
|
|
398
|
+
dataType: "string"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
value: response.headers.get("opc-request-id"),
|
|
402
|
+
key: "opcRequestId",
|
|
403
|
+
dataType: "string"
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
});
|
|
407
|
+
return sdkResponse;
|
|
408
|
+
}
|
|
409
|
+
catch (err) {
|
|
410
|
+
throw err;
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Gets a list of MonitoredRegions.
|
|
416
|
+
*
|
|
417
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
418
|
+
* @param ListMonitoredRegionsRequest
|
|
419
|
+
* @return ListMonitoredRegionsResponse
|
|
420
|
+
* @throws OciError when an error occurs
|
|
421
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListMonitoredRegions.ts.html |here} to see how to use ListMonitoredRegions API.
|
|
422
|
+
*/
|
|
423
|
+
listMonitoredRegions(listMonitoredRegionsRequest) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
if (this.logger)
|
|
426
|
+
this.logger.debug("Calling operation MonitoredRegionClient#listMonitoredRegions.");
|
|
427
|
+
const operationName = "listMonitoredRegions";
|
|
428
|
+
const apiReferenceLink = "";
|
|
429
|
+
const pathParams = {};
|
|
430
|
+
const queryParams = {
|
|
431
|
+
"resourceAnalyticsInstanceId": listMonitoredRegionsRequest.resourceAnalyticsInstanceId,
|
|
432
|
+
"lifecycleState": listMonitoredRegionsRequest.lifecycleState,
|
|
433
|
+
"id": listMonitoredRegionsRequest.id,
|
|
434
|
+
"limit": listMonitoredRegionsRequest.limit,
|
|
435
|
+
"page": listMonitoredRegionsRequest.page,
|
|
436
|
+
"sortOrder": listMonitoredRegionsRequest.sortOrder,
|
|
437
|
+
"sortBy": listMonitoredRegionsRequest.sortBy
|
|
438
|
+
};
|
|
439
|
+
let headerParams = {
|
|
440
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
441
|
+
"opc-request-id": listMonitoredRegionsRequest.opcRequestId
|
|
442
|
+
};
|
|
443
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
444
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMonitoredRegionsRequest.retryConfiguration, specRetryConfiguration);
|
|
445
|
+
if (this.logger)
|
|
446
|
+
retrier.logger = this.logger;
|
|
447
|
+
const request = yield oci_common_1.composeRequest({
|
|
448
|
+
baseEndpoint: this._endpoint,
|
|
449
|
+
defaultHeaders: this._defaultHeaders,
|
|
450
|
+
path: "/monitoredRegions",
|
|
451
|
+
method: "GET",
|
|
452
|
+
pathParams: pathParams,
|
|
453
|
+
headerParams: headerParams,
|
|
454
|
+
queryParams: queryParams
|
|
455
|
+
});
|
|
456
|
+
try {
|
|
457
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
458
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
459
|
+
responseObject: {},
|
|
460
|
+
body: yield response.json(),
|
|
461
|
+
bodyKey: "monitoredRegionCollection",
|
|
462
|
+
bodyModel: model.MonitoredRegionCollection,
|
|
463
|
+
type: "model.MonitoredRegionCollection",
|
|
464
|
+
responseHeaders: [
|
|
465
|
+
{
|
|
466
|
+
value: response.headers.get("opc-request-id"),
|
|
467
|
+
key: "opcRequestId",
|
|
468
|
+
dataType: "string"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
value: response.headers.get("opc-next-page"),
|
|
472
|
+
key: "opcNextPage",
|
|
473
|
+
dataType: "string"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
});
|
|
477
|
+
return sdkResponse;
|
|
478
|
+
}
|
|
479
|
+
catch (err) {
|
|
480
|
+
throw err;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
exports.MonitoredRegionClient = MonitoredRegionClient;
|
|
486
|
+
MonitoredRegionClient.serviceEndpointTemplate = "https://resource-analytics.{region}.ocp.{secondLevelDomain}";
|
|
487
|
+
MonitoredRegionClient.endpointServiceName = "";
|
|
488
|
+
var ResourceAnalyticsInstanceApiKeys;
|
|
489
|
+
(function (ResourceAnalyticsInstanceApiKeys) {
|
|
490
|
+
})(ResourceAnalyticsInstanceApiKeys = exports.ResourceAnalyticsInstanceApiKeys || (exports.ResourceAnalyticsInstanceApiKeys = {}));
|
|
491
|
+
/**
|
|
492
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
493
|
+
*/
|
|
494
|
+
class ResourceAnalyticsInstanceClient {
|
|
495
|
+
constructor(params, clientConfiguration) {
|
|
496
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
497
|
+
this["_endpoint"] = "";
|
|
498
|
+
this["_defaultHeaders"] = {};
|
|
499
|
+
this._circuitBreaker = null;
|
|
500
|
+
this._httpOptions = undefined;
|
|
501
|
+
this._bodyDuplexMode = undefined;
|
|
502
|
+
this.targetService = "ResourceAnalyticsInstance";
|
|
503
|
+
this._regionId = "";
|
|
504
|
+
this._lastSetRegionOrRegionId = "";
|
|
505
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
506
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
507
|
+
: null;
|
|
508
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
509
|
+
if (clientConfiguration) {
|
|
510
|
+
this._clientConfiguration = clientConfiguration;
|
|
511
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
512
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
513
|
+
: null;
|
|
514
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
515
|
+
? clientConfiguration.httpOptions
|
|
516
|
+
: undefined;
|
|
517
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
518
|
+
? clientConfiguration.bodyDuplexMode
|
|
519
|
+
: undefined;
|
|
520
|
+
}
|
|
521
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("resourceanalytics")) {
|
|
522
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
523
|
+
throw errmsg.concat("resourceanalytics");
|
|
524
|
+
}
|
|
525
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
526
|
+
const specCircuitBreakerEnabled = true;
|
|
527
|
+
if (!this._circuitBreaker &&
|
|
528
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
529
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
530
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
531
|
+
}
|
|
532
|
+
this._httpClient =
|
|
533
|
+
params.httpClient ||
|
|
534
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
535
|
+
if (params.authenticationDetailsProvider &&
|
|
536
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
537
|
+
const provider = params.authenticationDetailsProvider;
|
|
538
|
+
if (provider.getRegion()) {
|
|
539
|
+
this.region = provider.getRegion();
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
545
|
+
*/
|
|
546
|
+
get endpoint() {
|
|
547
|
+
return this._endpoint;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
551
|
+
* @param endpoint The endpoint of the service.
|
|
552
|
+
*/
|
|
553
|
+
set endpoint(endpoint) {
|
|
554
|
+
this._endpoint = endpoint;
|
|
555
|
+
this._endpoint = this._endpoint + "/20241031";
|
|
556
|
+
if (this.logger)
|
|
557
|
+
this.logger.info(`ResourceAnalyticsInstanceClient endpoint set to ${this._endpoint}`);
|
|
558
|
+
}
|
|
559
|
+
get logger() {
|
|
560
|
+
return common.LOG.logger;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
564
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
565
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
566
|
+
*/
|
|
567
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
568
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
569
|
+
if (this.logger)
|
|
570
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
571
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
572
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ResourceAnalyticsInstanceClient.serviceEndpointTemplate, this._region, ResourceAnalyticsInstanceClient.endpointServiceName);
|
|
573
|
+
}
|
|
574
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
575
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ResourceAnalyticsInstanceClient.serviceEndpointTemplate, this._regionId, ResourceAnalyticsInstanceClient.endpointServiceName);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
580
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
581
|
+
* @param region The region of the service.
|
|
582
|
+
*/
|
|
583
|
+
set region(region) {
|
|
584
|
+
this._region = region;
|
|
585
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ResourceAnalyticsInstanceClient.serviceEndpointTemplate, region, ResourceAnalyticsInstanceClient.endpointServiceName);
|
|
586
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
590
|
+
*
|
|
591
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
592
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
593
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
594
|
+
* @param regionId The public region ID.
|
|
595
|
+
*/
|
|
596
|
+
set regionId(regionId) {
|
|
597
|
+
this._regionId = regionId;
|
|
598
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ResourceAnalyticsInstanceClient.serviceEndpointTemplate, regionId, ResourceAnalyticsInstanceClient.endpointServiceName);
|
|
599
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Creates a new ResourceAnalyticsInstanceWaiter for resources for this service.
|
|
603
|
+
*
|
|
604
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
605
|
+
* @return The service waiters.
|
|
606
|
+
*/
|
|
607
|
+
createWaiters(config) {
|
|
608
|
+
this._waiters = new resourceanalyticsinstance_waiter_1.ResourceAnalyticsInstanceWaiter(this, config);
|
|
609
|
+
return this._waiters;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Gets the waiters available for resources for this service.
|
|
613
|
+
*
|
|
614
|
+
* @return The service waiters.
|
|
615
|
+
*/
|
|
616
|
+
getWaiters() {
|
|
617
|
+
if (this._waiters) {
|
|
618
|
+
return this._waiters;
|
|
619
|
+
}
|
|
620
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
624
|
+
*/
|
|
625
|
+
shutdownCircuitBreaker() {
|
|
626
|
+
if (this._circuitBreaker) {
|
|
627
|
+
this._circuitBreaker.shutdown();
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
632
|
+
*/
|
|
633
|
+
closeProvider() {
|
|
634
|
+
if (this._authProvider) {
|
|
635
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
636
|
+
(this._authProvider).closeProvider();
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Close the client once it is no longer needed
|
|
641
|
+
*/
|
|
642
|
+
close() {
|
|
643
|
+
this.shutdownCircuitBreaker();
|
|
644
|
+
this.closeProvider();
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Cancels a work request.
|
|
648
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
649
|
+
* @param CancelWorkRequestRequest
|
|
650
|
+
* @return CancelWorkRequestResponse
|
|
651
|
+
* @throws OciError when an error occurs
|
|
652
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
653
|
+
*/
|
|
654
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
+
if (this.logger)
|
|
657
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#cancelWorkRequest.");
|
|
658
|
+
const operationName = "cancelWorkRequest";
|
|
659
|
+
const apiReferenceLink = "";
|
|
660
|
+
const pathParams = {
|
|
661
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
662
|
+
};
|
|
663
|
+
const queryParams = {};
|
|
664
|
+
let headerParams = {
|
|
665
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
666
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
667
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
668
|
+
};
|
|
669
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
670
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
671
|
+
if (this.logger)
|
|
672
|
+
retrier.logger = this.logger;
|
|
673
|
+
const request = yield oci_common_1.composeRequest({
|
|
674
|
+
baseEndpoint: this._endpoint,
|
|
675
|
+
defaultHeaders: this._defaultHeaders,
|
|
676
|
+
path: "/workRequests/{workRequestId}",
|
|
677
|
+
method: "DELETE",
|
|
678
|
+
pathParams: pathParams,
|
|
679
|
+
headerParams: headerParams,
|
|
680
|
+
queryParams: queryParams
|
|
681
|
+
});
|
|
682
|
+
try {
|
|
683
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
684
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
685
|
+
responseObject: {},
|
|
686
|
+
responseHeaders: [
|
|
687
|
+
{
|
|
688
|
+
value: response.headers.get("opc-request-id"),
|
|
689
|
+
key: "opcRequestId",
|
|
690
|
+
dataType: "string"
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
});
|
|
694
|
+
return sdkResponse;
|
|
695
|
+
}
|
|
696
|
+
catch (err) {
|
|
697
|
+
throw err;
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Moves a ResourceAnalyticsInstance into a different compartment within the same tenancy. For information about moving resources between
|
|
703
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
704
|
+
*
|
|
705
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
706
|
+
* @param ChangeResourceAnalyticsInstanceCompartmentRequest
|
|
707
|
+
* @return ChangeResourceAnalyticsInstanceCompartmentResponse
|
|
708
|
+
* @throws OciError when an error occurs
|
|
709
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ChangeResourceAnalyticsInstanceCompartment.ts.html |here} to see how to use ChangeResourceAnalyticsInstanceCompartment API.
|
|
710
|
+
*/
|
|
711
|
+
changeResourceAnalyticsInstanceCompartment(changeResourceAnalyticsInstanceCompartmentRequest) {
|
|
712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
713
|
+
if (this.logger)
|
|
714
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#changeResourceAnalyticsInstanceCompartment.");
|
|
715
|
+
const operationName = "changeResourceAnalyticsInstanceCompartment";
|
|
716
|
+
const apiReferenceLink = "";
|
|
717
|
+
const pathParams = {
|
|
718
|
+
"{resourceAnalyticsInstanceId}": changeResourceAnalyticsInstanceCompartmentRequest.resourceAnalyticsInstanceId
|
|
719
|
+
};
|
|
720
|
+
const queryParams = {};
|
|
721
|
+
let headerParams = {
|
|
722
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
723
|
+
"if-match": changeResourceAnalyticsInstanceCompartmentRequest.ifMatch,
|
|
724
|
+
"opc-request-id": changeResourceAnalyticsInstanceCompartmentRequest.opcRequestId
|
|
725
|
+
};
|
|
726
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
727
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeResourceAnalyticsInstanceCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
728
|
+
if (this.logger)
|
|
729
|
+
retrier.logger = this.logger;
|
|
730
|
+
const request = yield oci_common_1.composeRequest({
|
|
731
|
+
baseEndpoint: this._endpoint,
|
|
732
|
+
defaultHeaders: this._defaultHeaders,
|
|
733
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}/actions/changeCompartment",
|
|
734
|
+
method: "POST",
|
|
735
|
+
bodyContent: common.ObjectSerializer.serialize(changeResourceAnalyticsInstanceCompartmentRequest.changeResourceAnalyticsInstanceCompartmentDetails, "ChangeResourceAnalyticsInstanceCompartmentDetails", model.ChangeResourceAnalyticsInstanceCompartmentDetails.getJsonObj),
|
|
736
|
+
pathParams: pathParams,
|
|
737
|
+
headerParams: headerParams,
|
|
738
|
+
queryParams: queryParams
|
|
739
|
+
});
|
|
740
|
+
try {
|
|
741
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
742
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
743
|
+
responseObject: {},
|
|
744
|
+
responseHeaders: [
|
|
745
|
+
{
|
|
746
|
+
value: response.headers.get("opc-work-request-id"),
|
|
747
|
+
key: "opcWorkRequestId",
|
|
748
|
+
dataType: "string"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
value: response.headers.get("opc-request-id"),
|
|
752
|
+
key: "opcRequestId",
|
|
753
|
+
dataType: "string"
|
|
754
|
+
}
|
|
755
|
+
]
|
|
756
|
+
});
|
|
757
|
+
return sdkResponse;
|
|
758
|
+
}
|
|
759
|
+
catch (err) {
|
|
760
|
+
throw err;
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Creates a ResourceAnalyticsInstance.
|
|
766
|
+
*
|
|
767
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
768
|
+
* @param CreateResourceAnalyticsInstanceRequest
|
|
769
|
+
* @return CreateResourceAnalyticsInstanceResponse
|
|
770
|
+
* @throws OciError when an error occurs
|
|
771
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/CreateResourceAnalyticsInstance.ts.html |here} to see how to use CreateResourceAnalyticsInstance API.
|
|
772
|
+
*/
|
|
773
|
+
createResourceAnalyticsInstance(createResourceAnalyticsInstanceRequest) {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
775
|
+
if (this.logger)
|
|
776
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#createResourceAnalyticsInstance.");
|
|
777
|
+
const operationName = "createResourceAnalyticsInstance";
|
|
778
|
+
const apiReferenceLink = "";
|
|
779
|
+
const pathParams = {};
|
|
780
|
+
const queryParams = {};
|
|
781
|
+
let headerParams = {
|
|
782
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
783
|
+
"opc-retry-token": createResourceAnalyticsInstanceRequest.opcRetryToken,
|
|
784
|
+
"opc-request-id": createResourceAnalyticsInstanceRequest.opcRequestId
|
|
785
|
+
};
|
|
786
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
787
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createResourceAnalyticsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
788
|
+
if (this.logger)
|
|
789
|
+
retrier.logger = this.logger;
|
|
790
|
+
const request = yield oci_common_1.composeRequest({
|
|
791
|
+
baseEndpoint: this._endpoint,
|
|
792
|
+
defaultHeaders: this._defaultHeaders,
|
|
793
|
+
path: "/resourceAnalyticsInstances",
|
|
794
|
+
method: "POST",
|
|
795
|
+
bodyContent: common.ObjectSerializer.serialize(createResourceAnalyticsInstanceRequest.createResourceAnalyticsInstanceDetails, "CreateResourceAnalyticsInstanceDetails", model.CreateResourceAnalyticsInstanceDetails.getJsonObj),
|
|
796
|
+
pathParams: pathParams,
|
|
797
|
+
headerParams: headerParams,
|
|
798
|
+
queryParams: queryParams
|
|
799
|
+
});
|
|
800
|
+
try {
|
|
801
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
802
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
803
|
+
responseObject: {},
|
|
804
|
+
body: yield response.json(),
|
|
805
|
+
bodyKey: "resourceAnalyticsInstance",
|
|
806
|
+
bodyModel: model.ResourceAnalyticsInstance,
|
|
807
|
+
type: "model.ResourceAnalyticsInstance",
|
|
808
|
+
responseHeaders: [
|
|
809
|
+
{
|
|
810
|
+
value: response.headers.get("location"),
|
|
811
|
+
key: "location",
|
|
812
|
+
dataType: "string"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
value: response.headers.get("content-location"),
|
|
816
|
+
key: "contentLocation",
|
|
817
|
+
dataType: "string"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
value: response.headers.get("etag"),
|
|
821
|
+
key: "etag",
|
|
822
|
+
dataType: "string"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
value: response.headers.get("opc-work-request-id"),
|
|
826
|
+
key: "opcWorkRequestId",
|
|
827
|
+
dataType: "string"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
value: response.headers.get("opc-request-id"),
|
|
831
|
+
key: "opcRequestId",
|
|
832
|
+
dataType: "string"
|
|
833
|
+
}
|
|
834
|
+
]
|
|
835
|
+
});
|
|
836
|
+
return sdkResponse;
|
|
837
|
+
}
|
|
838
|
+
catch (err) {
|
|
839
|
+
throw err;
|
|
840
|
+
}
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Deletes a ResourceAnalyticsInstance.
|
|
845
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
846
|
+
* @param DeleteResourceAnalyticsInstanceRequest
|
|
847
|
+
* @return DeleteResourceAnalyticsInstanceResponse
|
|
848
|
+
* @throws OciError when an error occurs
|
|
849
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/DeleteResourceAnalyticsInstance.ts.html |here} to see how to use DeleteResourceAnalyticsInstance API.
|
|
850
|
+
*/
|
|
851
|
+
deleteResourceAnalyticsInstance(deleteResourceAnalyticsInstanceRequest) {
|
|
852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
+
if (this.logger)
|
|
854
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#deleteResourceAnalyticsInstance.");
|
|
855
|
+
const operationName = "deleteResourceAnalyticsInstance";
|
|
856
|
+
const apiReferenceLink = "";
|
|
857
|
+
const pathParams = {
|
|
858
|
+
"{resourceAnalyticsInstanceId}": deleteResourceAnalyticsInstanceRequest.resourceAnalyticsInstanceId
|
|
859
|
+
};
|
|
860
|
+
const queryParams = {};
|
|
861
|
+
let headerParams = {
|
|
862
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
863
|
+
"if-match": deleteResourceAnalyticsInstanceRequest.ifMatch,
|
|
864
|
+
"opc-request-id": deleteResourceAnalyticsInstanceRequest.opcRequestId
|
|
865
|
+
};
|
|
866
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
867
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteResourceAnalyticsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
868
|
+
if (this.logger)
|
|
869
|
+
retrier.logger = this.logger;
|
|
870
|
+
const request = yield oci_common_1.composeRequest({
|
|
871
|
+
baseEndpoint: this._endpoint,
|
|
872
|
+
defaultHeaders: this._defaultHeaders,
|
|
873
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}",
|
|
874
|
+
method: "DELETE",
|
|
875
|
+
pathParams: pathParams,
|
|
876
|
+
headerParams: headerParams,
|
|
877
|
+
queryParams: queryParams
|
|
878
|
+
});
|
|
879
|
+
try {
|
|
880
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
881
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
882
|
+
responseObject: {},
|
|
883
|
+
responseHeaders: [
|
|
884
|
+
{
|
|
885
|
+
value: response.headers.get("opc-work-request-id"),
|
|
886
|
+
key: "opcWorkRequestId",
|
|
887
|
+
dataType: "string"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
value: response.headers.get("opc-request-id"),
|
|
891
|
+
key: "opcRequestId",
|
|
892
|
+
dataType: "string"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
});
|
|
896
|
+
return sdkResponse;
|
|
897
|
+
}
|
|
898
|
+
catch (err) {
|
|
899
|
+
throw err;
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Gets information about a ResourceAnalyticsInstance.
|
|
905
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
906
|
+
* @param GetResourceAnalyticsInstanceRequest
|
|
907
|
+
* @return GetResourceAnalyticsInstanceResponse
|
|
908
|
+
* @throws OciError when an error occurs
|
|
909
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/GetResourceAnalyticsInstance.ts.html |here} to see how to use GetResourceAnalyticsInstance API.
|
|
910
|
+
*/
|
|
911
|
+
getResourceAnalyticsInstance(getResourceAnalyticsInstanceRequest) {
|
|
912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
913
|
+
if (this.logger)
|
|
914
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#getResourceAnalyticsInstance.");
|
|
915
|
+
const operationName = "getResourceAnalyticsInstance";
|
|
916
|
+
const apiReferenceLink = "";
|
|
917
|
+
const pathParams = {
|
|
918
|
+
"{resourceAnalyticsInstanceId}": getResourceAnalyticsInstanceRequest.resourceAnalyticsInstanceId
|
|
919
|
+
};
|
|
920
|
+
const queryParams = {};
|
|
921
|
+
let headerParams = {
|
|
922
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
923
|
+
"opc-request-id": getResourceAnalyticsInstanceRequest.opcRequestId
|
|
924
|
+
};
|
|
925
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
926
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResourceAnalyticsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
927
|
+
if (this.logger)
|
|
928
|
+
retrier.logger = this.logger;
|
|
929
|
+
const request = yield oci_common_1.composeRequest({
|
|
930
|
+
baseEndpoint: this._endpoint,
|
|
931
|
+
defaultHeaders: this._defaultHeaders,
|
|
932
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}",
|
|
933
|
+
method: "GET",
|
|
934
|
+
pathParams: pathParams,
|
|
935
|
+
headerParams: headerParams,
|
|
936
|
+
queryParams: queryParams
|
|
937
|
+
});
|
|
938
|
+
try {
|
|
939
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
940
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
941
|
+
responseObject: {},
|
|
942
|
+
body: yield response.json(),
|
|
943
|
+
bodyKey: "resourceAnalyticsInstance",
|
|
944
|
+
bodyModel: model.ResourceAnalyticsInstance,
|
|
945
|
+
type: "model.ResourceAnalyticsInstance",
|
|
946
|
+
responseHeaders: [
|
|
947
|
+
{
|
|
948
|
+
value: response.headers.get("etag"),
|
|
949
|
+
key: "etag",
|
|
950
|
+
dataType: "string"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
value: response.headers.get("opc-request-id"),
|
|
954
|
+
key: "opcRequestId",
|
|
955
|
+
dataType: "string"
|
|
956
|
+
}
|
|
957
|
+
]
|
|
958
|
+
});
|
|
959
|
+
return sdkResponse;
|
|
960
|
+
}
|
|
961
|
+
catch (err) {
|
|
962
|
+
throw err;
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Gets the details of a work request.
|
|
968
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
969
|
+
* @param GetWorkRequestRequest
|
|
970
|
+
* @return GetWorkRequestResponse
|
|
971
|
+
* @throws OciError when an error occurs
|
|
972
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
973
|
+
*/
|
|
974
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
976
|
+
if (this.logger)
|
|
977
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#getWorkRequest.");
|
|
978
|
+
const operationName = "getWorkRequest";
|
|
979
|
+
const apiReferenceLink = "";
|
|
980
|
+
const pathParams = {
|
|
981
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
982
|
+
};
|
|
983
|
+
const queryParams = {};
|
|
984
|
+
let headerParams = {
|
|
985
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
986
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
987
|
+
};
|
|
988
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
989
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
990
|
+
if (this.logger)
|
|
991
|
+
retrier.logger = this.logger;
|
|
992
|
+
const request = yield oci_common_1.composeRequest({
|
|
993
|
+
baseEndpoint: this._endpoint,
|
|
994
|
+
defaultHeaders: this._defaultHeaders,
|
|
995
|
+
path: "/workRequests/{workRequestId}",
|
|
996
|
+
method: "GET",
|
|
997
|
+
pathParams: pathParams,
|
|
998
|
+
headerParams: headerParams,
|
|
999
|
+
queryParams: queryParams
|
|
1000
|
+
});
|
|
1001
|
+
try {
|
|
1002
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1003
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1004
|
+
responseObject: {},
|
|
1005
|
+
body: yield response.json(),
|
|
1006
|
+
bodyKey: "workRequest",
|
|
1007
|
+
bodyModel: model.WorkRequest,
|
|
1008
|
+
type: "model.WorkRequest",
|
|
1009
|
+
responseHeaders: [
|
|
1010
|
+
{
|
|
1011
|
+
value: response.headers.get("etag"),
|
|
1012
|
+
key: "etag",
|
|
1013
|
+
dataType: "string"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
value: response.headers.get("opc-request-id"),
|
|
1017
|
+
key: "opcRequestId",
|
|
1018
|
+
dataType: "string"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
value: response.headers.get("retry-after"),
|
|
1022
|
+
key: "retryAfter",
|
|
1023
|
+
dataType: "number"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
});
|
|
1027
|
+
return sdkResponse;
|
|
1028
|
+
}
|
|
1029
|
+
catch (err) {
|
|
1030
|
+
throw err;
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Gets a list of ResourceAnalyticsInstances.
|
|
1036
|
+
*
|
|
1037
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1038
|
+
* @param ListResourceAnalyticsInstancesRequest
|
|
1039
|
+
* @return ListResourceAnalyticsInstancesResponse
|
|
1040
|
+
* @throws OciError when an error occurs
|
|
1041
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListResourceAnalyticsInstances.ts.html |here} to see how to use ListResourceAnalyticsInstances API.
|
|
1042
|
+
*/
|
|
1043
|
+
listResourceAnalyticsInstances(listResourceAnalyticsInstancesRequest) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
+
if (this.logger)
|
|
1046
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#listResourceAnalyticsInstances.");
|
|
1047
|
+
const operationName = "listResourceAnalyticsInstances";
|
|
1048
|
+
const apiReferenceLink = "";
|
|
1049
|
+
const pathParams = {};
|
|
1050
|
+
const queryParams = {
|
|
1051
|
+
"compartmentId": listResourceAnalyticsInstancesRequest.compartmentId,
|
|
1052
|
+
"lifecycleState": listResourceAnalyticsInstancesRequest.lifecycleState,
|
|
1053
|
+
"displayName": listResourceAnalyticsInstancesRequest.displayName,
|
|
1054
|
+
"id": listResourceAnalyticsInstancesRequest.id,
|
|
1055
|
+
"limit": listResourceAnalyticsInstancesRequest.limit,
|
|
1056
|
+
"page": listResourceAnalyticsInstancesRequest.page,
|
|
1057
|
+
"sortOrder": listResourceAnalyticsInstancesRequest.sortOrder,
|
|
1058
|
+
"sortBy": listResourceAnalyticsInstancesRequest.sortBy
|
|
1059
|
+
};
|
|
1060
|
+
let headerParams = {
|
|
1061
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1062
|
+
"opc-request-id": listResourceAnalyticsInstancesRequest.opcRequestId
|
|
1063
|
+
};
|
|
1064
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1065
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceAnalyticsInstancesRequest.retryConfiguration, specRetryConfiguration);
|
|
1066
|
+
if (this.logger)
|
|
1067
|
+
retrier.logger = this.logger;
|
|
1068
|
+
const request = yield oci_common_1.composeRequest({
|
|
1069
|
+
baseEndpoint: this._endpoint,
|
|
1070
|
+
defaultHeaders: this._defaultHeaders,
|
|
1071
|
+
path: "/resourceAnalyticsInstances",
|
|
1072
|
+
method: "GET",
|
|
1073
|
+
pathParams: pathParams,
|
|
1074
|
+
headerParams: headerParams,
|
|
1075
|
+
queryParams: queryParams
|
|
1076
|
+
});
|
|
1077
|
+
try {
|
|
1078
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1079
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1080
|
+
responseObject: {},
|
|
1081
|
+
body: yield response.json(),
|
|
1082
|
+
bodyKey: "resourceAnalyticsInstanceCollection",
|
|
1083
|
+
bodyModel: model.ResourceAnalyticsInstanceCollection,
|
|
1084
|
+
type: "model.ResourceAnalyticsInstanceCollection",
|
|
1085
|
+
responseHeaders: [
|
|
1086
|
+
{
|
|
1087
|
+
value: response.headers.get("opc-request-id"),
|
|
1088
|
+
key: "opcRequestId",
|
|
1089
|
+
dataType: "string"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
value: response.headers.get("opc-next-page"),
|
|
1093
|
+
key: "opcNextPage",
|
|
1094
|
+
dataType: "string"
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1097
|
+
});
|
|
1098
|
+
return sdkResponse;
|
|
1099
|
+
}
|
|
1100
|
+
catch (err) {
|
|
1101
|
+
throw err;
|
|
1102
|
+
}
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Lists the errors for a work request.
|
|
1107
|
+
*
|
|
1108
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1109
|
+
* @param ListWorkRequestErrorsRequest
|
|
1110
|
+
* @return ListWorkRequestErrorsResponse
|
|
1111
|
+
* @throws OciError when an error occurs
|
|
1112
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1113
|
+
*/
|
|
1114
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1116
|
+
if (this.logger)
|
|
1117
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#listWorkRequestErrors.");
|
|
1118
|
+
const operationName = "listWorkRequestErrors";
|
|
1119
|
+
const apiReferenceLink = "";
|
|
1120
|
+
const pathParams = {
|
|
1121
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1122
|
+
};
|
|
1123
|
+
const queryParams = {
|
|
1124
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1125
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1126
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1127
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1128
|
+
};
|
|
1129
|
+
let headerParams = {
|
|
1130
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1131
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1132
|
+
};
|
|
1133
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1134
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1135
|
+
if (this.logger)
|
|
1136
|
+
retrier.logger = this.logger;
|
|
1137
|
+
const request = yield oci_common_1.composeRequest({
|
|
1138
|
+
baseEndpoint: this._endpoint,
|
|
1139
|
+
defaultHeaders: this._defaultHeaders,
|
|
1140
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1141
|
+
method: "GET",
|
|
1142
|
+
pathParams: pathParams,
|
|
1143
|
+
headerParams: headerParams,
|
|
1144
|
+
queryParams: queryParams
|
|
1145
|
+
});
|
|
1146
|
+
try {
|
|
1147
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1148
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1149
|
+
responseObject: {},
|
|
1150
|
+
body: yield response.json(),
|
|
1151
|
+
bodyKey: "workRequestErrorCollection",
|
|
1152
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1153
|
+
type: "model.WorkRequestErrorCollection",
|
|
1154
|
+
responseHeaders: [
|
|
1155
|
+
{
|
|
1156
|
+
value: response.headers.get("opc-next-page"),
|
|
1157
|
+
key: "opcNextPage",
|
|
1158
|
+
dataType: "string"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
value: response.headers.get("opc-request-id"),
|
|
1162
|
+
key: "opcRequestId",
|
|
1163
|
+
dataType: "string"
|
|
1164
|
+
}
|
|
1165
|
+
]
|
|
1166
|
+
});
|
|
1167
|
+
return sdkResponse;
|
|
1168
|
+
}
|
|
1169
|
+
catch (err) {
|
|
1170
|
+
throw err;
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Lists the logs for a work request.
|
|
1176
|
+
*
|
|
1177
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1178
|
+
* @param ListWorkRequestLogsRequest
|
|
1179
|
+
* @return ListWorkRequestLogsResponse
|
|
1180
|
+
* @throws OciError when an error occurs
|
|
1181
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1182
|
+
*/
|
|
1183
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1185
|
+
if (this.logger)
|
|
1186
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#listWorkRequestLogs.");
|
|
1187
|
+
const operationName = "listWorkRequestLogs";
|
|
1188
|
+
const apiReferenceLink = "";
|
|
1189
|
+
const pathParams = {
|
|
1190
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1191
|
+
};
|
|
1192
|
+
const queryParams = {
|
|
1193
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1194
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1195
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1196
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1197
|
+
};
|
|
1198
|
+
let headerParams = {
|
|
1199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1200
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1201
|
+
};
|
|
1202
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1203
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1204
|
+
if (this.logger)
|
|
1205
|
+
retrier.logger = this.logger;
|
|
1206
|
+
const request = yield oci_common_1.composeRequest({
|
|
1207
|
+
baseEndpoint: this._endpoint,
|
|
1208
|
+
defaultHeaders: this._defaultHeaders,
|
|
1209
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1210
|
+
method: "GET",
|
|
1211
|
+
pathParams: pathParams,
|
|
1212
|
+
headerParams: headerParams,
|
|
1213
|
+
queryParams: queryParams
|
|
1214
|
+
});
|
|
1215
|
+
try {
|
|
1216
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1217
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1218
|
+
responseObject: {},
|
|
1219
|
+
body: yield response.json(),
|
|
1220
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1221
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1222
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1223
|
+
responseHeaders: [
|
|
1224
|
+
{
|
|
1225
|
+
value: response.headers.get("opc-next-page"),
|
|
1226
|
+
key: "opcNextPage",
|
|
1227
|
+
dataType: "string"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
value: response.headers.get("opc-request-id"),
|
|
1231
|
+
key: "opcRequestId",
|
|
1232
|
+
dataType: "string"
|
|
1233
|
+
}
|
|
1234
|
+
]
|
|
1235
|
+
});
|
|
1236
|
+
return sdkResponse;
|
|
1237
|
+
}
|
|
1238
|
+
catch (err) {
|
|
1239
|
+
throw err;
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Lists the work requests in a compartment.
|
|
1245
|
+
*
|
|
1246
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1247
|
+
* @param ListWorkRequestsRequest
|
|
1248
|
+
* @return ListWorkRequestsResponse
|
|
1249
|
+
* @throws OciError when an error occurs
|
|
1250
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1251
|
+
*/
|
|
1252
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
+
if (this.logger)
|
|
1255
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#listWorkRequests.");
|
|
1256
|
+
const operationName = "listWorkRequests";
|
|
1257
|
+
const apiReferenceLink = "";
|
|
1258
|
+
const pathParams = {};
|
|
1259
|
+
const queryParams = {
|
|
1260
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1261
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1262
|
+
"status": listWorkRequestsRequest.status,
|
|
1263
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1264
|
+
"page": listWorkRequestsRequest.page,
|
|
1265
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1266
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1267
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1268
|
+
};
|
|
1269
|
+
let headerParams = {
|
|
1270
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1271
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1272
|
+
};
|
|
1273
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1274
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1275
|
+
if (this.logger)
|
|
1276
|
+
retrier.logger = this.logger;
|
|
1277
|
+
const request = yield oci_common_1.composeRequest({
|
|
1278
|
+
baseEndpoint: this._endpoint,
|
|
1279
|
+
defaultHeaders: this._defaultHeaders,
|
|
1280
|
+
path: "/workRequests",
|
|
1281
|
+
method: "GET",
|
|
1282
|
+
pathParams: pathParams,
|
|
1283
|
+
headerParams: headerParams,
|
|
1284
|
+
queryParams: queryParams
|
|
1285
|
+
});
|
|
1286
|
+
try {
|
|
1287
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1288
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1289
|
+
responseObject: {},
|
|
1290
|
+
body: yield response.json(),
|
|
1291
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1292
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1293
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1294
|
+
responseHeaders: [
|
|
1295
|
+
{
|
|
1296
|
+
value: response.headers.get("opc-request-id"),
|
|
1297
|
+
key: "opcRequestId",
|
|
1298
|
+
dataType: "string"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
value: response.headers.get("opc-next-page"),
|
|
1302
|
+
key: "opcNextPage",
|
|
1303
|
+
dataType: "string"
|
|
1304
|
+
}
|
|
1305
|
+
]
|
|
1306
|
+
});
|
|
1307
|
+
return sdkResponse;
|
|
1308
|
+
}
|
|
1309
|
+
catch (err) {
|
|
1310
|
+
throw err;
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Disable an OAC instance for a ResourceAnalyticsInstance.
|
|
1316
|
+
*
|
|
1317
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1318
|
+
* @param ResourceAnalyticsInstanceDisableOacRequest
|
|
1319
|
+
* @return ResourceAnalyticsInstanceDisableOacResponse
|
|
1320
|
+
* @throws OciError when an error occurs
|
|
1321
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ResourceAnalyticsInstanceDisableOac.ts.html |here} to see how to use ResourceAnalyticsInstanceDisableOac API.
|
|
1322
|
+
*/
|
|
1323
|
+
resourceAnalyticsInstanceDisableOac(resourceAnalyticsInstanceDisableOacRequest) {
|
|
1324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1325
|
+
if (this.logger)
|
|
1326
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#resourceAnalyticsInstanceDisableOac.");
|
|
1327
|
+
const operationName = "resourceAnalyticsInstanceDisableOac";
|
|
1328
|
+
const apiReferenceLink = "";
|
|
1329
|
+
const pathParams = {
|
|
1330
|
+
"{resourceAnalyticsInstanceId}": resourceAnalyticsInstanceDisableOacRequest.resourceAnalyticsInstanceId
|
|
1331
|
+
};
|
|
1332
|
+
const queryParams = {};
|
|
1333
|
+
let headerParams = {
|
|
1334
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1335
|
+
"if-match": resourceAnalyticsInstanceDisableOacRequest.ifMatch,
|
|
1336
|
+
"opc-request-id": resourceAnalyticsInstanceDisableOacRequest.opcRequestId
|
|
1337
|
+
};
|
|
1338
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1339
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resourceAnalyticsInstanceDisableOacRequest.retryConfiguration, specRetryConfiguration);
|
|
1340
|
+
if (this.logger)
|
|
1341
|
+
retrier.logger = this.logger;
|
|
1342
|
+
const request = yield oci_common_1.composeRequest({
|
|
1343
|
+
baseEndpoint: this._endpoint,
|
|
1344
|
+
defaultHeaders: this._defaultHeaders,
|
|
1345
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}/actions/disableOac",
|
|
1346
|
+
method: "POST",
|
|
1347
|
+
pathParams: pathParams,
|
|
1348
|
+
headerParams: headerParams,
|
|
1349
|
+
queryParams: queryParams
|
|
1350
|
+
});
|
|
1351
|
+
try {
|
|
1352
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1353
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1354
|
+
responseObject: {},
|
|
1355
|
+
responseHeaders: [
|
|
1356
|
+
{
|
|
1357
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1358
|
+
key: "opcWorkRequestId",
|
|
1359
|
+
dataType: "string"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
value: response.headers.get("opc-request-id"),
|
|
1363
|
+
key: "opcRequestId",
|
|
1364
|
+
dataType: "string"
|
|
1365
|
+
}
|
|
1366
|
+
]
|
|
1367
|
+
});
|
|
1368
|
+
return sdkResponse;
|
|
1369
|
+
}
|
|
1370
|
+
catch (err) {
|
|
1371
|
+
throw err;
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Attaches an OAC instance to a ResourceAnalyticsInstance.
|
|
1377
|
+
*
|
|
1378
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1379
|
+
* @param ResourceAnalyticsInstanceEnableOacRequest
|
|
1380
|
+
* @return ResourceAnalyticsInstanceEnableOacResponse
|
|
1381
|
+
* @throws OciError when an error occurs
|
|
1382
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ResourceAnalyticsInstanceEnableOac.ts.html |here} to see how to use ResourceAnalyticsInstanceEnableOac API.
|
|
1383
|
+
*/
|
|
1384
|
+
resourceAnalyticsInstanceEnableOac(resourceAnalyticsInstanceEnableOacRequest) {
|
|
1385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1386
|
+
if (this.logger)
|
|
1387
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#resourceAnalyticsInstanceEnableOac.");
|
|
1388
|
+
const operationName = "resourceAnalyticsInstanceEnableOac";
|
|
1389
|
+
const apiReferenceLink = "";
|
|
1390
|
+
const pathParams = {
|
|
1391
|
+
"{resourceAnalyticsInstanceId}": resourceAnalyticsInstanceEnableOacRequest.resourceAnalyticsInstanceId
|
|
1392
|
+
};
|
|
1393
|
+
const queryParams = {};
|
|
1394
|
+
let headerParams = {
|
|
1395
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1396
|
+
"if-match": resourceAnalyticsInstanceEnableOacRequest.ifMatch,
|
|
1397
|
+
"opc-request-id": resourceAnalyticsInstanceEnableOacRequest.opcRequestId
|
|
1398
|
+
};
|
|
1399
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1400
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resourceAnalyticsInstanceEnableOacRequest.retryConfiguration, specRetryConfiguration);
|
|
1401
|
+
if (this.logger)
|
|
1402
|
+
retrier.logger = this.logger;
|
|
1403
|
+
const request = yield oci_common_1.composeRequest({
|
|
1404
|
+
baseEndpoint: this._endpoint,
|
|
1405
|
+
defaultHeaders: this._defaultHeaders,
|
|
1406
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}/actions/enableOac",
|
|
1407
|
+
method: "POST",
|
|
1408
|
+
bodyContent: common.ObjectSerializer.serialize(resourceAnalyticsInstanceEnableOacRequest.resourceAnalyticsInstanceEnableOacDetails, "ResourceAnalyticsInstanceEnableOacDetails", model.ResourceAnalyticsInstanceEnableOacDetails.getJsonObj),
|
|
1409
|
+
pathParams: pathParams,
|
|
1410
|
+
headerParams: headerParams,
|
|
1411
|
+
queryParams: queryParams
|
|
1412
|
+
});
|
|
1413
|
+
try {
|
|
1414
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1415
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1416
|
+
responseObject: {},
|
|
1417
|
+
responseHeaders: [
|
|
1418
|
+
{
|
|
1419
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1420
|
+
key: "opcWorkRequestId",
|
|
1421
|
+
dataType: "string"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
value: response.headers.get("opc-request-id"),
|
|
1425
|
+
key: "opcRequestId",
|
|
1426
|
+
dataType: "string"
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1429
|
+
});
|
|
1430
|
+
return sdkResponse;
|
|
1431
|
+
}
|
|
1432
|
+
catch (err) {
|
|
1433
|
+
throw err;
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Updates a ResourceAnalyticsInstance.
|
|
1439
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1440
|
+
* @param UpdateResourceAnalyticsInstanceRequest
|
|
1441
|
+
* @return UpdateResourceAnalyticsInstanceResponse
|
|
1442
|
+
* @throws OciError when an error occurs
|
|
1443
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/UpdateResourceAnalyticsInstance.ts.html |here} to see how to use UpdateResourceAnalyticsInstance API.
|
|
1444
|
+
*/
|
|
1445
|
+
updateResourceAnalyticsInstance(updateResourceAnalyticsInstanceRequest) {
|
|
1446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1447
|
+
if (this.logger)
|
|
1448
|
+
this.logger.debug("Calling operation ResourceAnalyticsInstanceClient#updateResourceAnalyticsInstance.");
|
|
1449
|
+
const operationName = "updateResourceAnalyticsInstance";
|
|
1450
|
+
const apiReferenceLink = "";
|
|
1451
|
+
const pathParams = {
|
|
1452
|
+
"{resourceAnalyticsInstanceId}": updateResourceAnalyticsInstanceRequest.resourceAnalyticsInstanceId
|
|
1453
|
+
};
|
|
1454
|
+
const queryParams = {};
|
|
1455
|
+
let headerParams = {
|
|
1456
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1457
|
+
"if-match": updateResourceAnalyticsInstanceRequest.ifMatch,
|
|
1458
|
+
"opc-request-id": updateResourceAnalyticsInstanceRequest.opcRequestId
|
|
1459
|
+
};
|
|
1460
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1461
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateResourceAnalyticsInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1462
|
+
if (this.logger)
|
|
1463
|
+
retrier.logger = this.logger;
|
|
1464
|
+
const request = yield oci_common_1.composeRequest({
|
|
1465
|
+
baseEndpoint: this._endpoint,
|
|
1466
|
+
defaultHeaders: this._defaultHeaders,
|
|
1467
|
+
path: "/resourceAnalyticsInstances/{resourceAnalyticsInstanceId}",
|
|
1468
|
+
method: "PUT",
|
|
1469
|
+
bodyContent: common.ObjectSerializer.serialize(updateResourceAnalyticsInstanceRequest.updateResourceAnalyticsInstanceDetails, "UpdateResourceAnalyticsInstanceDetails", model.UpdateResourceAnalyticsInstanceDetails.getJsonObj),
|
|
1470
|
+
pathParams: pathParams,
|
|
1471
|
+
headerParams: headerParams,
|
|
1472
|
+
queryParams: queryParams
|
|
1473
|
+
});
|
|
1474
|
+
try {
|
|
1475
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1476
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1477
|
+
responseObject: {},
|
|
1478
|
+
responseHeaders: [
|
|
1479
|
+
{
|
|
1480
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1481
|
+
key: "opcWorkRequestId",
|
|
1482
|
+
dataType: "string"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
value: response.headers.get("opc-request-id"),
|
|
1486
|
+
key: "opcRequestId",
|
|
1487
|
+
dataType: "string"
|
|
1488
|
+
}
|
|
1489
|
+
]
|
|
1490
|
+
});
|
|
1491
|
+
return sdkResponse;
|
|
1492
|
+
}
|
|
1493
|
+
catch (err) {
|
|
1494
|
+
throw err;
|
|
1495
|
+
}
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
exports.ResourceAnalyticsInstanceClient = ResourceAnalyticsInstanceClient;
|
|
1500
|
+
ResourceAnalyticsInstanceClient.serviceEndpointTemplate = "https://resource-analytics.{region}.ocp.{secondLevelDomain}";
|
|
1501
|
+
ResourceAnalyticsInstanceClient.endpointServiceName = "";
|
|
1502
|
+
var TenancyAttachmentApiKeys;
|
|
1503
|
+
(function (TenancyAttachmentApiKeys) {
|
|
1504
|
+
})(TenancyAttachmentApiKeys = exports.TenancyAttachmentApiKeys || (exports.TenancyAttachmentApiKeys = {}));
|
|
1505
|
+
/**
|
|
1506
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1507
|
+
*/
|
|
1508
|
+
class TenancyAttachmentClient {
|
|
1509
|
+
constructor(params, clientConfiguration) {
|
|
1510
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1511
|
+
this["_endpoint"] = "";
|
|
1512
|
+
this["_defaultHeaders"] = {};
|
|
1513
|
+
this._circuitBreaker = null;
|
|
1514
|
+
this._httpOptions = undefined;
|
|
1515
|
+
this._bodyDuplexMode = undefined;
|
|
1516
|
+
this.targetService = "TenancyAttachment";
|
|
1517
|
+
this._regionId = "";
|
|
1518
|
+
this._lastSetRegionOrRegionId = "";
|
|
1519
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1520
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1521
|
+
: null;
|
|
1522
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
1523
|
+
if (clientConfiguration) {
|
|
1524
|
+
this._clientConfiguration = clientConfiguration;
|
|
1525
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1526
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1527
|
+
: null;
|
|
1528
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1529
|
+
? clientConfiguration.httpOptions
|
|
1530
|
+
: undefined;
|
|
1531
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1532
|
+
? clientConfiguration.bodyDuplexMode
|
|
1533
|
+
: undefined;
|
|
1534
|
+
}
|
|
1535
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("resourceanalytics")) {
|
|
1536
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
1537
|
+
throw errmsg.concat("resourceanalytics");
|
|
1538
|
+
}
|
|
1539
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1540
|
+
const specCircuitBreakerEnabled = true;
|
|
1541
|
+
if (!this._circuitBreaker &&
|
|
1542
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1543
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1544
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1545
|
+
}
|
|
1546
|
+
this._httpClient =
|
|
1547
|
+
params.httpClient ||
|
|
1548
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1549
|
+
if (params.authenticationDetailsProvider &&
|
|
1550
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1551
|
+
const provider = params.authenticationDetailsProvider;
|
|
1552
|
+
if (provider.getRegion()) {
|
|
1553
|
+
this.region = provider.getRegion();
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1559
|
+
*/
|
|
1560
|
+
get endpoint() {
|
|
1561
|
+
return this._endpoint;
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1565
|
+
* @param endpoint The endpoint of the service.
|
|
1566
|
+
*/
|
|
1567
|
+
set endpoint(endpoint) {
|
|
1568
|
+
this._endpoint = endpoint;
|
|
1569
|
+
this._endpoint = this._endpoint + "/20241031";
|
|
1570
|
+
if (this.logger)
|
|
1571
|
+
this.logger.info(`TenancyAttachmentClient endpoint set to ${this._endpoint}`);
|
|
1572
|
+
}
|
|
1573
|
+
get logger() {
|
|
1574
|
+
return common.LOG.logger;
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1578
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1579
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1580
|
+
*/
|
|
1581
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1582
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1583
|
+
if (this.logger)
|
|
1584
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1585
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1586
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(TenancyAttachmentClient.serviceEndpointTemplate, this._region, TenancyAttachmentClient.endpointServiceName);
|
|
1587
|
+
}
|
|
1588
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1589
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(TenancyAttachmentClient.serviceEndpointTemplate, this._regionId, TenancyAttachmentClient.endpointServiceName);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1594
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1595
|
+
* @param region The region of the service.
|
|
1596
|
+
*/
|
|
1597
|
+
set region(region) {
|
|
1598
|
+
this._region = region;
|
|
1599
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(TenancyAttachmentClient.serviceEndpointTemplate, region, TenancyAttachmentClient.endpointServiceName);
|
|
1600
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1604
|
+
*
|
|
1605
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1606
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1607
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1608
|
+
* @param regionId The public region ID.
|
|
1609
|
+
*/
|
|
1610
|
+
set regionId(regionId) {
|
|
1611
|
+
this._regionId = regionId;
|
|
1612
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(TenancyAttachmentClient.serviceEndpointTemplate, regionId, TenancyAttachmentClient.endpointServiceName);
|
|
1613
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Creates a new TenancyAttachmentWaiter for resources for this service.
|
|
1617
|
+
*
|
|
1618
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1619
|
+
* @return The service waiters.
|
|
1620
|
+
*/
|
|
1621
|
+
createWaiters(config) {
|
|
1622
|
+
this._waiters = new tenancyattachment_waiter_1.TenancyAttachmentWaiter(this, config);
|
|
1623
|
+
return this._waiters;
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Gets the waiters available for resources for this service.
|
|
1627
|
+
*
|
|
1628
|
+
* @return The service waiters.
|
|
1629
|
+
*/
|
|
1630
|
+
getWaiters() {
|
|
1631
|
+
if (this._waiters) {
|
|
1632
|
+
return this._waiters;
|
|
1633
|
+
}
|
|
1634
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1638
|
+
*/
|
|
1639
|
+
shutdownCircuitBreaker() {
|
|
1640
|
+
if (this._circuitBreaker) {
|
|
1641
|
+
this._circuitBreaker.shutdown();
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1646
|
+
*/
|
|
1647
|
+
closeProvider() {
|
|
1648
|
+
if (this._authProvider) {
|
|
1649
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1650
|
+
(this._authProvider).closeProvider();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Close the client once it is no longer needed
|
|
1655
|
+
*/
|
|
1656
|
+
close() {
|
|
1657
|
+
this.shutdownCircuitBreaker();
|
|
1658
|
+
this.closeProvider();
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* Creates a TenancyAttachment.
|
|
1662
|
+
*
|
|
1663
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1664
|
+
* @param CreateTenancyAttachmentRequest
|
|
1665
|
+
* @return CreateTenancyAttachmentResponse
|
|
1666
|
+
* @throws OciError when an error occurs
|
|
1667
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/CreateTenancyAttachment.ts.html |here} to see how to use CreateTenancyAttachment API.
|
|
1668
|
+
*/
|
|
1669
|
+
createTenancyAttachment(createTenancyAttachmentRequest) {
|
|
1670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1671
|
+
if (this.logger)
|
|
1672
|
+
this.logger.debug("Calling operation TenancyAttachmentClient#createTenancyAttachment.");
|
|
1673
|
+
const operationName = "createTenancyAttachment";
|
|
1674
|
+
const apiReferenceLink = "";
|
|
1675
|
+
const pathParams = {};
|
|
1676
|
+
const queryParams = {};
|
|
1677
|
+
let headerParams = {
|
|
1678
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1679
|
+
"opc-retry-token": createTenancyAttachmentRequest.opcRetryToken,
|
|
1680
|
+
"opc-request-id": createTenancyAttachmentRequest.opcRequestId
|
|
1681
|
+
};
|
|
1682
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1683
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1684
|
+
if (this.logger)
|
|
1685
|
+
retrier.logger = this.logger;
|
|
1686
|
+
const request = yield oci_common_1.composeRequest({
|
|
1687
|
+
baseEndpoint: this._endpoint,
|
|
1688
|
+
defaultHeaders: this._defaultHeaders,
|
|
1689
|
+
path: "/tenancyAttachments",
|
|
1690
|
+
method: "POST",
|
|
1691
|
+
bodyContent: common.ObjectSerializer.serialize(createTenancyAttachmentRequest.createTenancyAttachmentDetails, "CreateTenancyAttachmentDetails", model.CreateTenancyAttachmentDetails.getJsonObj),
|
|
1692
|
+
pathParams: pathParams,
|
|
1693
|
+
headerParams: headerParams,
|
|
1694
|
+
queryParams: queryParams
|
|
1695
|
+
});
|
|
1696
|
+
try {
|
|
1697
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1698
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1699
|
+
responseObject: {},
|
|
1700
|
+
body: yield response.json(),
|
|
1701
|
+
bodyKey: "tenancyAttachment",
|
|
1702
|
+
bodyModel: model.TenancyAttachment,
|
|
1703
|
+
type: "model.TenancyAttachment",
|
|
1704
|
+
responseHeaders: [
|
|
1705
|
+
{
|
|
1706
|
+
value: response.headers.get("location"),
|
|
1707
|
+
key: "location",
|
|
1708
|
+
dataType: "string"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
value: response.headers.get("content-location"),
|
|
1712
|
+
key: "contentLocation",
|
|
1713
|
+
dataType: "string"
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
value: response.headers.get("etag"),
|
|
1717
|
+
key: "etag",
|
|
1718
|
+
dataType: "string"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1722
|
+
key: "opcWorkRequestId",
|
|
1723
|
+
dataType: "string"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
value: response.headers.get("opc-request-id"),
|
|
1727
|
+
key: "opcRequestId",
|
|
1728
|
+
dataType: "string"
|
|
1729
|
+
}
|
|
1730
|
+
]
|
|
1731
|
+
});
|
|
1732
|
+
return sdkResponse;
|
|
1733
|
+
}
|
|
1734
|
+
catch (err) {
|
|
1735
|
+
throw err;
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Deletes a TenancyAttachment.
|
|
1741
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1742
|
+
* @param DeleteTenancyAttachmentRequest
|
|
1743
|
+
* @return DeleteTenancyAttachmentResponse
|
|
1744
|
+
* @throws OciError when an error occurs
|
|
1745
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/DeleteTenancyAttachment.ts.html |here} to see how to use DeleteTenancyAttachment API.
|
|
1746
|
+
*/
|
|
1747
|
+
deleteTenancyAttachment(deleteTenancyAttachmentRequest) {
|
|
1748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1749
|
+
if (this.logger)
|
|
1750
|
+
this.logger.debug("Calling operation TenancyAttachmentClient#deleteTenancyAttachment.");
|
|
1751
|
+
const operationName = "deleteTenancyAttachment";
|
|
1752
|
+
const apiReferenceLink = "";
|
|
1753
|
+
const pathParams = {
|
|
1754
|
+
"{tenancyAttachmentId}": deleteTenancyAttachmentRequest.tenancyAttachmentId
|
|
1755
|
+
};
|
|
1756
|
+
const queryParams = {};
|
|
1757
|
+
let headerParams = {
|
|
1758
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1759
|
+
"if-match": deleteTenancyAttachmentRequest.ifMatch,
|
|
1760
|
+
"opc-request-id": deleteTenancyAttachmentRequest.opcRequestId
|
|
1761
|
+
};
|
|
1762
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1763
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1764
|
+
if (this.logger)
|
|
1765
|
+
retrier.logger = this.logger;
|
|
1766
|
+
const request = yield oci_common_1.composeRequest({
|
|
1767
|
+
baseEndpoint: this._endpoint,
|
|
1768
|
+
defaultHeaders: this._defaultHeaders,
|
|
1769
|
+
path: "/tenancyAttachments/{tenancyAttachmentId}",
|
|
1770
|
+
method: "DELETE",
|
|
1771
|
+
pathParams: pathParams,
|
|
1772
|
+
headerParams: headerParams,
|
|
1773
|
+
queryParams: queryParams
|
|
1774
|
+
});
|
|
1775
|
+
try {
|
|
1776
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1777
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1778
|
+
responseObject: {},
|
|
1779
|
+
responseHeaders: [
|
|
1780
|
+
{
|
|
1781
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1782
|
+
key: "opcWorkRequestId",
|
|
1783
|
+
dataType: "string"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
value: response.headers.get("opc-request-id"),
|
|
1787
|
+
key: "opcRequestId",
|
|
1788
|
+
dataType: "string"
|
|
1789
|
+
}
|
|
1790
|
+
]
|
|
1791
|
+
});
|
|
1792
|
+
return sdkResponse;
|
|
1793
|
+
}
|
|
1794
|
+
catch (err) {
|
|
1795
|
+
throw err;
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Gets information about a TenancyAttachment.
|
|
1801
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1802
|
+
* @param GetTenancyAttachmentRequest
|
|
1803
|
+
* @return GetTenancyAttachmentResponse
|
|
1804
|
+
* @throws OciError when an error occurs
|
|
1805
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/GetTenancyAttachment.ts.html |here} to see how to use GetTenancyAttachment API.
|
|
1806
|
+
*/
|
|
1807
|
+
getTenancyAttachment(getTenancyAttachmentRequest) {
|
|
1808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1809
|
+
if (this.logger)
|
|
1810
|
+
this.logger.debug("Calling operation TenancyAttachmentClient#getTenancyAttachment.");
|
|
1811
|
+
const operationName = "getTenancyAttachment";
|
|
1812
|
+
const apiReferenceLink = "";
|
|
1813
|
+
const pathParams = {
|
|
1814
|
+
"{tenancyAttachmentId}": getTenancyAttachmentRequest.tenancyAttachmentId
|
|
1815
|
+
};
|
|
1816
|
+
const queryParams = {};
|
|
1817
|
+
let headerParams = {
|
|
1818
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1819
|
+
"opc-request-id": getTenancyAttachmentRequest.opcRequestId
|
|
1820
|
+
};
|
|
1821
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1822
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1823
|
+
if (this.logger)
|
|
1824
|
+
retrier.logger = this.logger;
|
|
1825
|
+
const request = yield oci_common_1.composeRequest({
|
|
1826
|
+
baseEndpoint: this._endpoint,
|
|
1827
|
+
defaultHeaders: this._defaultHeaders,
|
|
1828
|
+
path: "/tenancyAttachments/{tenancyAttachmentId}",
|
|
1829
|
+
method: "GET",
|
|
1830
|
+
pathParams: pathParams,
|
|
1831
|
+
headerParams: headerParams,
|
|
1832
|
+
queryParams: queryParams
|
|
1833
|
+
});
|
|
1834
|
+
try {
|
|
1835
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1836
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1837
|
+
responseObject: {},
|
|
1838
|
+
body: yield response.json(),
|
|
1839
|
+
bodyKey: "tenancyAttachment",
|
|
1840
|
+
bodyModel: model.TenancyAttachment,
|
|
1841
|
+
type: "model.TenancyAttachment",
|
|
1842
|
+
responseHeaders: [
|
|
1843
|
+
{
|
|
1844
|
+
value: response.headers.get("etag"),
|
|
1845
|
+
key: "etag",
|
|
1846
|
+
dataType: "string"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
value: response.headers.get("opc-request-id"),
|
|
1850
|
+
key: "opcRequestId",
|
|
1851
|
+
dataType: "string"
|
|
1852
|
+
}
|
|
1853
|
+
]
|
|
1854
|
+
});
|
|
1855
|
+
return sdkResponse;
|
|
1856
|
+
}
|
|
1857
|
+
catch (err) {
|
|
1858
|
+
throw err;
|
|
1859
|
+
}
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
/**
|
|
1863
|
+
* Gets a list of TenancyAttachments.
|
|
1864
|
+
*
|
|
1865
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1866
|
+
* @param ListTenancyAttachmentsRequest
|
|
1867
|
+
* @return ListTenancyAttachmentsResponse
|
|
1868
|
+
* @throws OciError when an error occurs
|
|
1869
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/ListTenancyAttachments.ts.html |here} to see how to use ListTenancyAttachments API.
|
|
1870
|
+
*/
|
|
1871
|
+
listTenancyAttachments(listTenancyAttachmentsRequest) {
|
|
1872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1873
|
+
if (this.logger)
|
|
1874
|
+
this.logger.debug("Calling operation TenancyAttachmentClient#listTenancyAttachments.");
|
|
1875
|
+
const operationName = "listTenancyAttachments";
|
|
1876
|
+
const apiReferenceLink = "";
|
|
1877
|
+
const pathParams = {};
|
|
1878
|
+
const queryParams = {
|
|
1879
|
+
"resourceAnalyticsInstanceId": listTenancyAttachmentsRequest.resourceAnalyticsInstanceId,
|
|
1880
|
+
"lifecycleState": listTenancyAttachmentsRequest.lifecycleState,
|
|
1881
|
+
"id": listTenancyAttachmentsRequest.id,
|
|
1882
|
+
"limit": listTenancyAttachmentsRequest.limit,
|
|
1883
|
+
"page": listTenancyAttachmentsRequest.page,
|
|
1884
|
+
"sortOrder": listTenancyAttachmentsRequest.sortOrder,
|
|
1885
|
+
"sortBy": listTenancyAttachmentsRequest.sortBy
|
|
1886
|
+
};
|
|
1887
|
+
let headerParams = {
|
|
1888
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1889
|
+
"opc-request-id": listTenancyAttachmentsRequest.opcRequestId
|
|
1890
|
+
};
|
|
1891
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1892
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTenancyAttachmentsRequest.retryConfiguration, specRetryConfiguration);
|
|
1893
|
+
if (this.logger)
|
|
1894
|
+
retrier.logger = this.logger;
|
|
1895
|
+
const request = yield oci_common_1.composeRequest({
|
|
1896
|
+
baseEndpoint: this._endpoint,
|
|
1897
|
+
defaultHeaders: this._defaultHeaders,
|
|
1898
|
+
path: "/tenancyAttachments",
|
|
1899
|
+
method: "GET",
|
|
1900
|
+
pathParams: pathParams,
|
|
1901
|
+
headerParams: headerParams,
|
|
1902
|
+
queryParams: queryParams
|
|
1903
|
+
});
|
|
1904
|
+
try {
|
|
1905
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1906
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1907
|
+
responseObject: {},
|
|
1908
|
+
body: yield response.json(),
|
|
1909
|
+
bodyKey: "tenancyAttachmentCollection",
|
|
1910
|
+
bodyModel: model.TenancyAttachmentCollection,
|
|
1911
|
+
type: "model.TenancyAttachmentCollection",
|
|
1912
|
+
responseHeaders: [
|
|
1913
|
+
{
|
|
1914
|
+
value: response.headers.get("opc-request-id"),
|
|
1915
|
+
key: "opcRequestId",
|
|
1916
|
+
dataType: "string"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
value: response.headers.get("opc-next-page"),
|
|
1920
|
+
key: "opcNextPage",
|
|
1921
|
+
dataType: "string"
|
|
1922
|
+
}
|
|
1923
|
+
]
|
|
1924
|
+
});
|
|
1925
|
+
return sdkResponse;
|
|
1926
|
+
}
|
|
1927
|
+
catch (err) {
|
|
1928
|
+
throw err;
|
|
1929
|
+
}
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Updates a TenancyAttachment.
|
|
1934
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1935
|
+
* @param UpdateTenancyAttachmentRequest
|
|
1936
|
+
* @return UpdateTenancyAttachmentResponse
|
|
1937
|
+
* @throws OciError when an error occurs
|
|
1938
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/resourceanalytics/UpdateTenancyAttachment.ts.html |here} to see how to use UpdateTenancyAttachment API.
|
|
1939
|
+
*/
|
|
1940
|
+
updateTenancyAttachment(updateTenancyAttachmentRequest) {
|
|
1941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1942
|
+
if (this.logger)
|
|
1943
|
+
this.logger.debug("Calling operation TenancyAttachmentClient#updateTenancyAttachment.");
|
|
1944
|
+
const operationName = "updateTenancyAttachment";
|
|
1945
|
+
const apiReferenceLink = "";
|
|
1946
|
+
const pathParams = {
|
|
1947
|
+
"{tenancyAttachmentId}": updateTenancyAttachmentRequest.tenancyAttachmentId
|
|
1948
|
+
};
|
|
1949
|
+
const queryParams = {};
|
|
1950
|
+
let headerParams = {
|
|
1951
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1952
|
+
"if-match": updateTenancyAttachmentRequest.ifMatch,
|
|
1953
|
+
"opc-request-id": updateTenancyAttachmentRequest.opcRequestId
|
|
1954
|
+
};
|
|
1955
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1956
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1957
|
+
if (this.logger)
|
|
1958
|
+
retrier.logger = this.logger;
|
|
1959
|
+
const request = yield oci_common_1.composeRequest({
|
|
1960
|
+
baseEndpoint: this._endpoint,
|
|
1961
|
+
defaultHeaders: this._defaultHeaders,
|
|
1962
|
+
path: "/tenancyAttachments/{tenancyAttachmentId}",
|
|
1963
|
+
method: "PUT",
|
|
1964
|
+
bodyContent: common.ObjectSerializer.serialize(updateTenancyAttachmentRequest.updateTenancyAttachmentDetails, "UpdateTenancyAttachmentDetails", model.UpdateTenancyAttachmentDetails.getJsonObj),
|
|
1965
|
+
pathParams: pathParams,
|
|
1966
|
+
headerParams: headerParams,
|
|
1967
|
+
queryParams: queryParams
|
|
1968
|
+
});
|
|
1969
|
+
try {
|
|
1970
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1971
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1972
|
+
responseObject: {},
|
|
1973
|
+
responseHeaders: [
|
|
1974
|
+
{
|
|
1975
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1976
|
+
key: "opcWorkRequestId",
|
|
1977
|
+
dataType: "string"
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
value: response.headers.get("opc-request-id"),
|
|
1981
|
+
key: "opcRequestId",
|
|
1982
|
+
dataType: "string"
|
|
1983
|
+
}
|
|
1984
|
+
]
|
|
1985
|
+
});
|
|
1986
|
+
return sdkResponse;
|
|
1987
|
+
}
|
|
1988
|
+
catch (err) {
|
|
1989
|
+
throw err;
|
|
1990
|
+
}
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
exports.TenancyAttachmentClient = TenancyAttachmentClient;
|
|
1995
|
+
TenancyAttachmentClient.serviceEndpointTemplate = "https://resource-analytics.{region}.ocp.{secondLevelDomain}";
|
|
1996
|
+
TenancyAttachmentClient.endpointServiceName = "";
|
|
1997
|
+
//# sourceMappingURL=client.js.map
|