oci-tenantmanagercontrolplane 2.57.0 → 2.59.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/index.d.ts +2 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/lib/client.d.ts +214 -54
- package/lib/client.js +494 -55
- package/lib/client.js.map +1 -1
- package/lib/domain-waiter.d.ts +1 -1
- package/lib/domain-waiter.js +1 -1
- package/lib/domaingovernance-waiter.d.ts +1 -1
- package/lib/domaingovernance-waiter.js +1 -1
- package/lib/link-waiter.d.ts +1 -1
- package/lib/link-waiter.js +1 -1
- package/lib/model/action-type.d.ts +1 -1
- package/lib/model/action-type.js +1 -1
- package/lib/model/activate-order-details.d.ts +1 -1
- package/lib/model/activate-order-details.js +1 -1
- package/lib/model/assigned-subscription-collection.d.ts +1 -1
- package/lib/model/assigned-subscription-collection.js +1 -1
- package/lib/model/assigned-subscription-summary.d.ts +5 -1
- package/lib/model/assigned-subscription-summary.js +1 -1
- package/lib/model/assigned-subscription-summary.js.map +1 -1
- package/lib/model/assigned-subscription.d.ts +4 -4
- package/lib/model/assigned-subscription.js +1 -1
- package/lib/model/available-region-collection.d.ts +1 -1
- package/lib/model/available-region-collection.js +1 -1
- package/lib/model/available-region-summary.d.ts +1 -1
- package/lib/model/available-region-summary.js +1 -1
- package/lib/model/create-child-tenancy-details.d.ts +7 -2
- package/lib/model/create-child-tenancy-details.js +1 -1
- package/lib/model/create-child-tenancy-details.js.map +1 -1
- package/lib/model/create-domain-details.d.ts +2 -2
- package/lib/model/create-domain-details.js +1 -1
- package/lib/model/create-domain-governance-details.d.ts +2 -2
- package/lib/model/create-domain-governance-details.js +1 -1
- package/lib/model/create-sender-invitation-details.d.ts +6 -1
- package/lib/model/create-sender-invitation-details.js +35 -3
- package/lib/model/create-sender-invitation-details.js.map +1 -1
- package/lib/model/create-subscription-mapping-details.d.ts +1 -1
- package/lib/model/create-subscription-mapping-details.js +1 -1
- package/lib/model/domain-collection.d.ts +1 -1
- package/lib/model/domain-collection.js +1 -1
- package/lib/model/domain-governance-collection.d.ts +1 -1
- package/lib/model/domain-governance-collection.js +1 -1
- package/lib/model/domain-governance-summary.d.ts +2 -2
- package/lib/model/domain-governance-summary.js +1 -1
- package/lib/model/domain-governance.d.ts +2 -2
- package/lib/model/domain-governance.js +1 -1
- package/lib/model/domain-summary.d.ts +1 -1
- package/lib/model/domain-summary.js +1 -1
- package/lib/model/domain.d.ts +1 -1
- package/lib/model/domain.js +1 -1
- package/lib/model/governance-status.d.ts +28 -0
- package/lib/model/governance-status.js +39 -0
- package/lib/model/governance-status.js.map +1 -0
- package/lib/model/index.d.ts +5 -1
- package/lib/model/index.js +7 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/invitation-subject.d.ts +28 -0
- package/lib/model/invitation-subject.js +39 -0
- package/lib/model/invitation-subject.js.map +1 -0
- package/lib/model/lifecycle-state.d.ts +1 -1
- package/lib/model/lifecycle-state.js +1 -1
- package/lib/model/link-collection.d.ts +1 -1
- package/lib/model/link-collection.js +1 -1
- package/lib/model/link-summary.d.ts +1 -1
- package/lib/model/link-summary.js +1 -1
- package/lib/model/link.d.ts +1 -1
- package/lib/model/link.js +1 -1
- package/lib/model/operation-status.d.ts +1 -1
- package/lib/model/operation-status.js +1 -1
- package/lib/model/operation-type.d.ts +1 -1
- package/lib/model/operation-type.js +1 -1
- package/lib/model/order.d.ts +2 -2
- package/lib/model/order.js +1 -1
- package/lib/model/organization-collection.d.ts +1 -1
- package/lib/model/organization-collection.js +1 -1
- package/lib/model/organization-summary.d.ts +4 -4
- package/lib/model/organization-summary.js +1 -1
- package/lib/model/organization-tenancy-collection.d.ts +1 -1
- package/lib/model/organization-tenancy-collection.js +1 -1
- package/lib/model/organization-tenancy-lifecycle-state.d.ts +2 -2
- package/lib/model/organization-tenancy-lifecycle-state.js +2 -2
- package/lib/model/organization-tenancy-role.d.ts +2 -2
- package/lib/model/organization-tenancy-role.js +2 -2
- package/lib/model/organization-tenancy-summary.d.ts +10 -6
- package/lib/model/organization-tenancy-summary.js +1 -1
- package/lib/model/organization-tenancy-summary.js.map +1 -1
- package/lib/model/organization-tenancy.d.ts +11 -7
- package/lib/model/organization-tenancy.js +1 -1
- package/lib/model/organization-tenancy.js.map +1 -1
- package/lib/model/organization.d.ts +4 -4
- package/lib/model/organization.js +1 -1
- package/lib/model/promotion.d.ts +7 -7
- package/lib/model/promotion.js +1 -1
- package/lib/model/recipient-invitation-collection.d.ts +1 -1
- package/lib/model/recipient-invitation-collection.js +1 -1
- package/lib/model/recipient-invitation-status.d.ts +1 -1
- package/lib/model/recipient-invitation-status.js +1 -1
- package/lib/model/recipient-invitation-summary.d.ts +7 -3
- package/lib/model/recipient-invitation-summary.js +35 -3
- package/lib/model/recipient-invitation-summary.js.map +1 -1
- package/lib/model/recipient-invitation.d.ts +7 -3
- package/lib/model/recipient-invitation.js +35 -3
- package/lib/model/recipient-invitation.js.map +1 -1
- package/lib/model/sender-invitation-collection.d.ts +1 -1
- package/lib/model/sender-invitation-collection.js +1 -1
- package/lib/model/sender-invitation-status.d.ts +1 -1
- package/lib/model/sender-invitation-status.js +1 -1
- package/lib/model/sender-invitation-summary.d.ts +7 -3
- package/lib/model/sender-invitation-summary.js +35 -3
- package/lib/model/sender-invitation-summary.js.map +1 -1
- package/lib/model/sender-invitation.d.ts +7 -3
- package/lib/model/sender-invitation.js +35 -3
- package/lib/model/sender-invitation.js.map +1 -1
- package/lib/model/sku.d.ts +1 -1
- package/lib/model/sku.js +1 -1
- package/lib/model/sort-order.d.ts +1 -1
- package/lib/model/sort-order.js +1 -1
- package/lib/model/subscription-collection.d.ts +1 -1
- package/lib/model/subscription-collection.js +1 -1
- package/lib/model/subscription-info.d.ts +2 -2
- package/lib/model/subscription-info.js +1 -1
- package/lib/model/subscription-lifecycle-state.d.ts +1 -1
- package/lib/model/subscription-lifecycle-state.js +1 -1
- package/lib/model/subscription-mapping-collection.d.ts +1 -1
- package/lib/model/subscription-mapping-collection.js +1 -1
- package/lib/model/subscription-mapping-summary.d.ts +1 -1
- package/lib/model/subscription-mapping-summary.js +1 -1
- package/lib/model/subscription-mapping.d.ts +1 -1
- package/lib/model/subscription-mapping.js +1 -1
- package/lib/model/subscription-sku.d.ts +1 -1
- package/lib/model/subscription-sku.js +1 -1
- package/lib/model/subscription-summary.d.ts +1 -1
- package/lib/model/subscription-summary.js +1 -1
- package/lib/model/subscription.d.ts +4 -4
- package/lib/model/subscription.js +1 -1
- package/lib/model/update-domain-details.d.ts +1 -1
- package/lib/model/update-domain-details.js +1 -1
- package/lib/model/update-domain-governance-details.d.ts +2 -2
- package/lib/model/update-domain-governance-details.js +1 -1
- package/lib/model/update-organization-details.d.ts +2 -2
- package/lib/model/update-organization-details.js +1 -1
- package/lib/model/update-recipient-invitation-details.d.ts +1 -1
- package/lib/model/update-recipient-invitation-details.js +1 -1
- package/lib/model/update-sender-invitation-details.d.ts +1 -1
- package/lib/model/update-sender-invitation-details.js +1 -1
- package/lib/model/work-request-collection.d.ts +1 -1
- package/lib/model/work-request-collection.js +1 -1
- package/lib/model/work-request-error-collection.d.ts +1 -1
- package/lib/model/work-request-error-collection.js +1 -1
- package/lib/model/work-request-error.d.ts +1 -1
- package/lib/model/work-request-error.js +1 -1
- package/lib/model/work-request-log-entry-collection.d.ts +1 -1
- package/lib/model/work-request-log-entry-collection.js +1 -1
- package/lib/model/work-request-log-entry.d.ts +1 -1
- package/lib/model/work-request-log-entry.js +1 -1
- package/lib/model/work-request-resource.d.ts +1 -1
- package/lib/model/work-request-resource.js +1 -1
- package/lib/model/work-request-summary.d.ts +1 -1
- package/lib/model/work-request-summary.js +1 -1
- package/lib/model/work-request.d.ts +1 -1
- package/lib/model/work-request.js +1 -1
- package/lib/organization-waiter.d.ts +1 -1
- package/lib/organization-waiter.js +1 -1
- package/lib/recipientinvitation-waiter.d.ts +1 -1
- package/lib/recipientinvitation-waiter.js +1 -1
- package/lib/request/accept-recipient-invitation-request.d.ts +2 -2
- package/lib/request/activate-order-request.d.ts +3 -3
- package/lib/request/add-governance-request.d.ts +48 -0
- package/lib/request/add-governance-request.js +15 -0
- package/lib/request/add-governance-request.js.map +1 -0
- package/lib/request/approve-organization-tenancy-for-transfer-request.d.ts +3 -3
- package/lib/request/cancel-sender-invitation-request.d.ts +2 -2
- package/lib/request/create-child-tenancy-request.d.ts +2 -2
- package/lib/request/create-domain-governance-request.d.ts +2 -2
- package/lib/request/create-domain-request.d.ts +2 -2
- package/lib/request/create-sender-invitation-request.d.ts +2 -2
- package/lib/request/create-subscription-mapping-request.d.ts +2 -2
- package/lib/request/delete-domain-governance-request.d.ts +1 -1
- package/lib/request/delete-domain-request.d.ts +1 -1
- package/lib/request/delete-link-request.d.ts +1 -1
- package/lib/request/delete-organization-tenancy-request.d.ts +2 -2
- package/lib/request/delete-subscription-mapping-request.d.ts +1 -1
- package/lib/request/get-assigned-subscription-request.d.ts +1 -1
- package/lib/request/get-domain-governance-request.d.ts +1 -1
- package/lib/request/get-domain-request.d.ts +1 -1
- package/lib/request/get-link-request.d.ts +1 -1
- package/lib/request/get-order-request.d.ts +2 -2
- package/lib/request/get-organization-request.d.ts +1 -1
- package/lib/request/get-organization-tenancy-request.d.ts +1 -1
- package/lib/request/get-recipient-invitation-request.d.ts +1 -1
- package/lib/request/get-sender-invitation-request.d.ts +1 -1
- package/lib/request/get-subscription-mapping-request.d.ts +1 -1
- package/lib/request/get-subscription-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/ignore-recipient-invitation-request.d.ts +2 -2
- package/lib/request/index.d.ts +5 -1
- package/lib/request/index.js +1 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-assigned-subscriptions-request.d.ts +2 -2
- package/lib/request/list-available-regions-request.d.ts +1 -1
- package/lib/request/list-domain-governances-request.d.ts +2 -2
- package/lib/request/list-domains-request.d.ts +2 -2
- package/lib/request/list-links-request.d.ts +1 -1
- package/lib/request/list-organization-tenancies-request.d.ts +1 -1
- package/lib/request/list-organizations-request.d.ts +2 -2
- package/lib/request/list-recipient-invitations-request.d.ts +2 -2
- package/lib/request/list-sender-invitations-request.d.ts +2 -2
- package/lib/request/list-subscription-mappings-request.d.ts +3 -3
- package/lib/request/list-subscriptions-request.d.ts +2 -2
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +2 -2
- package/lib/request/remove-governance-request.d.ts +48 -0
- package/lib/request/remove-governance-request.js +15 -0
- package/lib/request/remove-governance-request.js.map +1 -0
- package/lib/request/restore-organization-tenancy-request.d.ts +1 -1
- package/lib/request/unapprove-organization-tenancy-for-transfer-request.d.ts +3 -3
- package/lib/request/update-domain-governance-request.d.ts +1 -1
- package/lib/request/update-domain-request.d.ts +1 -1
- package/lib/request/update-organization-request.d.ts +2 -2
- package/lib/request/update-recipient-invitation-request.d.ts +1 -1
- package/lib/request/update-sender-invitation-request.d.ts +1 -1
- package/lib/response/accept-recipient-invitation-response.d.ts +1 -1
- package/lib/response/activate-order-response.d.ts +1 -1
- package/lib/response/add-governance-response.d.ts +25 -0
- package/lib/response/add-governance-response.js +15 -0
- package/lib/response/add-governance-response.js.map +1 -0
- package/lib/response/cancel-sender-invitation-response.d.ts +1 -1
- package/lib/response/create-child-tenancy-response.d.ts +1 -1
- package/lib/response/create-domain-response.d.ts +1 -1
- package/lib/response/create-sender-invitation-response.d.ts +1 -1
- package/lib/response/create-subscription-mapping-response.d.ts +1 -1
- package/lib/response/delete-link-response.d.ts +1 -1
- package/lib/response/delete-organization-tenancy-response.d.ts +1 -1
- package/lib/response/index.d.ts +5 -1
- package/lib/response/index.js +1 -1
- package/lib/response/remove-governance-response.d.ts +25 -0
- package/lib/response/remove-governance-response.js +15 -0
- package/lib/response/remove-governance-response.js.map +1 -0
- package/lib/response/restore-organization-tenancy-response.d.ts +1 -1
- package/lib/response/update-organization-response.d.ts +1 -1
- package/lib/senderinvitation-waiter.d.ts +1 -1
- package/lib/senderinvitation-waiter.js +1 -1
- package/lib/subscription-waiter.d.ts +1 -1
- package/lib/subscription-waiter.js +1 -1
- package/lib/workrequest-waiter.d.ts +1 -1
- package/lib/workrequest-waiter.js +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Organizations API
|
|
4
|
-
*
|
|
4
|
+
* Use the Organizations API to consolidate multiple OCI tenancies into an organization, and centrally manage your tenancies and organization resources. For more information, see [Organization Management Overview](/iaas/Content/General/Concepts/organization_management_overview.htm).
|
|
5
5
|
* OpenAPI spec version: 20200801
|
|
6
6
|
*
|
|
7
7
|
*
|
|
@@ -40,7 +40,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SubscriptionClient = exports.SubscriptionApiKeys = exports.SenderInvitationClient = exports.SenderInvitationApiKeys = exports.RecipientInvitationClient = exports.RecipientInvitationApiKeys = exports.OrganizationClient = exports.OrganizationApiKeys = exports.OrdersClient = exports.OrdersApiKeys = exports.LinkClient = exports.LinkApiKeys = exports.DomainGovernanceClient = exports.DomainGovernanceApiKeys = exports.DomainClient = exports.DomainApiKeys = void 0;
|
|
43
|
+
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SubscriptionClient = exports.SubscriptionApiKeys = exports.SenderInvitationClient = exports.SenderInvitationApiKeys = exports.RecipientInvitationClient = exports.RecipientInvitationApiKeys = exports.OrganizationClient = exports.OrganizationApiKeys = exports.OrdersClient = exports.OrdersApiKeys = exports.LinkClient = exports.LinkApiKeys = exports.GovernanceClient = exports.GovernanceApiKeys = exports.DomainGovernanceClient = exports.DomainGovernanceApiKeys = exports.DomainClient = exports.DomainApiKeys = void 0;
|
|
44
44
|
const common = require("oci-common");
|
|
45
45
|
const model = __importStar(require("./model"));
|
|
46
46
|
const domain_waiter_1 = require("./domain-waiter");
|
|
@@ -63,11 +63,14 @@ var DomainApiKeys;
|
|
|
63
63
|
*/
|
|
64
64
|
class DomainClient {
|
|
65
65
|
constructor(params, clientConfiguration) {
|
|
66
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
66
67
|
this["_endpoint"] = "";
|
|
67
68
|
this["_defaultHeaders"] = {};
|
|
68
69
|
this._circuitBreaker = null;
|
|
69
70
|
this._httpOptions = undefined;
|
|
70
71
|
this.targetService = "Domain";
|
|
72
|
+
this._regionId = "";
|
|
73
|
+
this._lastSetRegionOrRegionId = "";
|
|
71
74
|
const requestSigner = params.authenticationDetailsProvider
|
|
72
75
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
73
76
|
: null;
|
|
@@ -117,13 +120,31 @@ class DomainClient {
|
|
|
117
120
|
get logger() {
|
|
118
121
|
return common.LOG.logger;
|
|
119
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
125
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
126
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
127
|
+
*/
|
|
128
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
129
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
130
|
+
if (this.logger)
|
|
131
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
132
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DomainClient.serviceEndpointTemplate, this._region, DomainClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DomainClient.serviceEndpointTemplate, this._regionId, DomainClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
120
139
|
/**
|
|
121
140
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
122
141
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
123
142
|
* @param region The region of the service.
|
|
124
143
|
*/
|
|
125
144
|
set region(region) {
|
|
145
|
+
this._region = region;
|
|
126
146
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DomainClient.serviceEndpointTemplate, region, DomainClient.endpointServiceName);
|
|
147
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
127
148
|
}
|
|
128
149
|
/**
|
|
129
150
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -134,7 +155,9 @@ class DomainClient {
|
|
|
134
155
|
* @param regionId The public region ID.
|
|
135
156
|
*/
|
|
136
157
|
set regionId(regionId) {
|
|
158
|
+
this._regionId = regionId;
|
|
137
159
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DomainClient.serviceEndpointTemplate, regionId, DomainClient.endpointServiceName);
|
|
160
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
138
161
|
}
|
|
139
162
|
/**
|
|
140
163
|
* Creates a new DomainWaiter for resources for this service.
|
|
@@ -163,7 +186,7 @@ class DomainClient {
|
|
|
163
186
|
* @param CreateDomainRequest
|
|
164
187
|
* @return CreateDomainResponse
|
|
165
188
|
* @throws OciError when an error occurs
|
|
166
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
189
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CreateDomain.ts.html |here} to see how to use CreateDomain API.
|
|
167
190
|
*/
|
|
168
191
|
createDomain(createDomainRequest) {
|
|
169
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -231,7 +254,7 @@ class DomainClient {
|
|
|
231
254
|
* @param DeleteDomainRequest
|
|
232
255
|
* @return DeleteDomainResponse
|
|
233
256
|
* @throws OciError when an error occurs
|
|
234
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
257
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/DeleteDomain.ts.html |here} to see how to use DeleteDomain API.
|
|
235
258
|
*/
|
|
236
259
|
deleteDomain(deleteDomainRequest) {
|
|
237
260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -286,7 +309,7 @@ class DomainClient {
|
|
|
286
309
|
* @param GetDomainRequest
|
|
287
310
|
* @return GetDomainResponse
|
|
288
311
|
* @throws OciError when an error occurs
|
|
289
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
312
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetDomain.ts.html |here} to see how to use GetDomain API.
|
|
290
313
|
*/
|
|
291
314
|
getDomain(getDomainRequest) {
|
|
292
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -350,7 +373,7 @@ class DomainClient {
|
|
|
350
373
|
* @param ListDomainsRequest
|
|
351
374
|
* @return ListDomainsResponse
|
|
352
375
|
* @throws OciError when an error occurs
|
|
353
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
376
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListDomains.ts.html |here} to see how to use ListDomains API.
|
|
354
377
|
*/
|
|
355
378
|
listDomains(listDomainsRequest) {
|
|
356
379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -421,7 +444,7 @@ class DomainClient {
|
|
|
421
444
|
* @param UpdateDomainRequest
|
|
422
445
|
* @return UpdateDomainResponse
|
|
423
446
|
* @throws OciError when an error occurs
|
|
424
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
447
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UpdateDomain.ts.html |here} to see how to use UpdateDomain API.
|
|
425
448
|
*/
|
|
426
449
|
updateDomain(updateDomainRequest) {
|
|
427
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -492,11 +515,14 @@ var DomainGovernanceApiKeys;
|
|
|
492
515
|
*/
|
|
493
516
|
class DomainGovernanceClient {
|
|
494
517
|
constructor(params, clientConfiguration) {
|
|
518
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
495
519
|
this["_endpoint"] = "";
|
|
496
520
|
this["_defaultHeaders"] = {};
|
|
497
521
|
this._circuitBreaker = null;
|
|
498
522
|
this._httpOptions = undefined;
|
|
499
523
|
this.targetService = "DomainGovernance";
|
|
524
|
+
this._regionId = "";
|
|
525
|
+
this._lastSetRegionOrRegionId = "";
|
|
500
526
|
const requestSigner = params.authenticationDetailsProvider
|
|
501
527
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
502
528
|
: null;
|
|
@@ -546,13 +572,31 @@ class DomainGovernanceClient {
|
|
|
546
572
|
get logger() {
|
|
547
573
|
return common.LOG.logger;
|
|
548
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
577
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
578
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
579
|
+
*/
|
|
580
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
581
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
582
|
+
if (this.logger)
|
|
583
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
584
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
585
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DomainGovernanceClient.serviceEndpointTemplate, this._region, DomainGovernanceClient.endpointServiceName);
|
|
586
|
+
}
|
|
587
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
588
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DomainGovernanceClient.serviceEndpointTemplate, this._regionId, DomainGovernanceClient.endpointServiceName);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
549
591
|
/**
|
|
550
592
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
551
593
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
552
594
|
* @param region The region of the service.
|
|
553
595
|
*/
|
|
554
596
|
set region(region) {
|
|
597
|
+
this._region = region;
|
|
555
598
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DomainGovernanceClient.serviceEndpointTemplate, region, DomainGovernanceClient.endpointServiceName);
|
|
599
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
556
600
|
}
|
|
557
601
|
/**
|
|
558
602
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -563,7 +607,9 @@ class DomainGovernanceClient {
|
|
|
563
607
|
* @param regionId The public region ID.
|
|
564
608
|
*/
|
|
565
609
|
set regionId(regionId) {
|
|
610
|
+
this._regionId = regionId;
|
|
566
611
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DomainGovernanceClient.serviceEndpointTemplate, regionId, DomainGovernanceClient.endpointServiceName);
|
|
612
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
567
613
|
}
|
|
568
614
|
/**
|
|
569
615
|
* Creates a new DomainGovernanceWaiter for resources for this service.
|
|
@@ -592,7 +638,7 @@ class DomainGovernanceClient {
|
|
|
592
638
|
* @param CreateDomainGovernanceRequest
|
|
593
639
|
* @return CreateDomainGovernanceResponse
|
|
594
640
|
* @throws OciError when an error occurs
|
|
595
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
641
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CreateDomainGovernance.ts.html |here} to see how to use CreateDomainGovernance API.
|
|
596
642
|
*/
|
|
597
643
|
createDomainGovernance(createDomainGovernanceRequest) {
|
|
598
644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -655,7 +701,7 @@ class DomainGovernanceClient {
|
|
|
655
701
|
* @param DeleteDomainGovernanceRequest
|
|
656
702
|
* @return DeleteDomainGovernanceResponse
|
|
657
703
|
* @throws OciError when an error occurs
|
|
658
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
704
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/DeleteDomainGovernance.ts.html |here} to see how to use DeleteDomainGovernance API.
|
|
659
705
|
*/
|
|
660
706
|
deleteDomainGovernance(deleteDomainGovernanceRequest) {
|
|
661
707
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -710,7 +756,7 @@ class DomainGovernanceClient {
|
|
|
710
756
|
* @param GetDomainGovernanceRequest
|
|
711
757
|
* @return GetDomainGovernanceResponse
|
|
712
758
|
* @throws OciError when an error occurs
|
|
713
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
759
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetDomainGovernance.ts.html |here} to see how to use GetDomainGovernance API.
|
|
714
760
|
*/
|
|
715
761
|
getDomainGovernance(getDomainGovernanceRequest) {
|
|
716
762
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -774,7 +820,7 @@ class DomainGovernanceClient {
|
|
|
774
820
|
* @param ListDomainGovernancesRequest
|
|
775
821
|
* @return ListDomainGovernancesResponse
|
|
776
822
|
* @throws OciError when an error occurs
|
|
777
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
823
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListDomainGovernances.ts.html |here} to see how to use ListDomainGovernances API.
|
|
778
824
|
*/
|
|
779
825
|
listDomainGovernances(listDomainGovernancesRequest) {
|
|
780
826
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -845,7 +891,7 @@ class DomainGovernanceClient {
|
|
|
845
891
|
* @param UpdateDomainGovernanceRequest
|
|
846
892
|
* @return UpdateDomainGovernanceResponse
|
|
847
893
|
* @throws OciError when an error occurs
|
|
848
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
894
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UpdateDomainGovernance.ts.html |here} to see how to use UpdateDomainGovernance API.
|
|
849
895
|
*/
|
|
850
896
|
updateDomainGovernance(updateDomainGovernanceRequest) {
|
|
851
897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -908,6 +954,238 @@ class DomainGovernanceClient {
|
|
|
908
954
|
exports.DomainGovernanceClient = DomainGovernanceClient;
|
|
909
955
|
DomainGovernanceClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
|
|
910
956
|
DomainGovernanceClient.endpointServiceName = "";
|
|
957
|
+
var GovernanceApiKeys;
|
|
958
|
+
(function (GovernanceApiKeys) {
|
|
959
|
+
})(GovernanceApiKeys = exports.GovernanceApiKeys || (exports.GovernanceApiKeys = {}));
|
|
960
|
+
/**
|
|
961
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
962
|
+
*/
|
|
963
|
+
class GovernanceClient {
|
|
964
|
+
constructor(params, clientConfiguration) {
|
|
965
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
966
|
+
this["_endpoint"] = "";
|
|
967
|
+
this["_defaultHeaders"] = {};
|
|
968
|
+
this._circuitBreaker = null;
|
|
969
|
+
this._httpOptions = undefined;
|
|
970
|
+
this.targetService = "Governance";
|
|
971
|
+
this._regionId = "";
|
|
972
|
+
this._lastSetRegionOrRegionId = "";
|
|
973
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
974
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
975
|
+
: null;
|
|
976
|
+
if (clientConfiguration) {
|
|
977
|
+
this._clientConfiguration = clientConfiguration;
|
|
978
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
979
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
980
|
+
: null;
|
|
981
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
982
|
+
? clientConfiguration.httpOptions
|
|
983
|
+
: undefined;
|
|
984
|
+
}
|
|
985
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
986
|
+
const specCircuitBreakerEnabled = true;
|
|
987
|
+
if (!this._circuitBreaker &&
|
|
988
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
989
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
990
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
991
|
+
}
|
|
992
|
+
this._httpClient =
|
|
993
|
+
params.httpClient ||
|
|
994
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
995
|
+
if (params.authenticationDetailsProvider &&
|
|
996
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
997
|
+
const provider = params.authenticationDetailsProvider;
|
|
998
|
+
if (provider.getRegion()) {
|
|
999
|
+
this.region = provider.getRegion();
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1005
|
+
*/
|
|
1006
|
+
get endpoint() {
|
|
1007
|
+
return this._endpoint;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1011
|
+
* @param endpoint The endpoint of the service.
|
|
1012
|
+
*/
|
|
1013
|
+
set endpoint(endpoint) {
|
|
1014
|
+
this._endpoint = endpoint;
|
|
1015
|
+
this._endpoint = this._endpoint + "/20200801";
|
|
1016
|
+
if (this.logger)
|
|
1017
|
+
this.logger.info(`GovernanceClient endpoint set to ${this._endpoint}`);
|
|
1018
|
+
}
|
|
1019
|
+
get logger() {
|
|
1020
|
+
return common.LOG.logger;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1024
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1025
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1026
|
+
*/
|
|
1027
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1028
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1029
|
+
if (this.logger)
|
|
1030
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1031
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1032
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GovernanceClient.serviceEndpointTemplate, this._region, GovernanceClient.endpointServiceName);
|
|
1033
|
+
}
|
|
1034
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1035
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GovernanceClient.serviceEndpointTemplate, this._regionId, GovernanceClient.endpointServiceName);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1040
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1041
|
+
* @param region The region of the service.
|
|
1042
|
+
*/
|
|
1043
|
+
set region(region) {
|
|
1044
|
+
this._region = region;
|
|
1045
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GovernanceClient.serviceEndpointTemplate, region, GovernanceClient.endpointServiceName);
|
|
1046
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1050
|
+
*
|
|
1051
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1052
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1053
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1054
|
+
* @param regionId The public region ID.
|
|
1055
|
+
*/
|
|
1056
|
+
set regionId(regionId) {
|
|
1057
|
+
this._regionId = regionId;
|
|
1058
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GovernanceClient.serviceEndpointTemplate, regionId, GovernanceClient.endpointServiceName);
|
|
1059
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Starts a work request to opt the tenancy in to governance rules.
|
|
1063
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1064
|
+
* @param AddGovernanceRequest
|
|
1065
|
+
* @return AddGovernanceResponse
|
|
1066
|
+
* @throws OciError when an error occurs
|
|
1067
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/AddGovernance.ts.html |here} to see how to use AddGovernance API.
|
|
1068
|
+
*/
|
|
1069
|
+
addGovernance(addGovernanceRequest) {
|
|
1070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
|
+
if (this.logger)
|
|
1072
|
+
this.logger.debug("Calling operation GovernanceClient#addGovernance.");
|
|
1073
|
+
const operationName = "addGovernance";
|
|
1074
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/organizations/20200801/OrganizationTenancy/AddGovernance";
|
|
1075
|
+
const pathParams = {
|
|
1076
|
+
"{organizationId}": addGovernanceRequest.organizationId,
|
|
1077
|
+
"{organizationTenancyId}": addGovernanceRequest.organizationTenancyId
|
|
1078
|
+
};
|
|
1079
|
+
const queryParams = {};
|
|
1080
|
+
let headerParams = {
|
|
1081
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1082
|
+
"if-match": addGovernanceRequest.ifMatch,
|
|
1083
|
+
"opc-retry-token": addGovernanceRequest.opcRetryToken,
|
|
1084
|
+
"opc-request-id": addGovernanceRequest.opcRequestId
|
|
1085
|
+
};
|
|
1086
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1087
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addGovernanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1088
|
+
if (this.logger)
|
|
1089
|
+
retrier.logger = this.logger;
|
|
1090
|
+
const request = yield oci_common_1.composeRequest({
|
|
1091
|
+
baseEndpoint: this._endpoint,
|
|
1092
|
+
defaultHeaders: this._defaultHeaders,
|
|
1093
|
+
path: "/organizations/{organizationId}/tenancies/{organizationTenancyId}/actions/addGovernance",
|
|
1094
|
+
method: "POST",
|
|
1095
|
+
pathParams: pathParams,
|
|
1096
|
+
headerParams: headerParams,
|
|
1097
|
+
queryParams: queryParams
|
|
1098
|
+
});
|
|
1099
|
+
try {
|
|
1100
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1101
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1102
|
+
responseObject: {},
|
|
1103
|
+
responseHeaders: [
|
|
1104
|
+
{
|
|
1105
|
+
value: response.headers.get("opc-request-id"),
|
|
1106
|
+
key: "opcRequestId",
|
|
1107
|
+
dataType: "string"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1111
|
+
key: "opcWorkRequestId",
|
|
1112
|
+
dataType: "string"
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
});
|
|
1116
|
+
return sdkResponse;
|
|
1117
|
+
}
|
|
1118
|
+
catch (err) {
|
|
1119
|
+
throw err;
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Starts a work request to opt the tenancy out of governance rules.
|
|
1125
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1126
|
+
* @param RemoveGovernanceRequest
|
|
1127
|
+
* @return RemoveGovernanceResponse
|
|
1128
|
+
* @throws OciError when an error occurs
|
|
1129
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/RemoveGovernance.ts.html |here} to see how to use RemoveGovernance API.
|
|
1130
|
+
*/
|
|
1131
|
+
removeGovernance(removeGovernanceRequest) {
|
|
1132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1133
|
+
if (this.logger)
|
|
1134
|
+
this.logger.debug("Calling operation GovernanceClient#removeGovernance.");
|
|
1135
|
+
const operationName = "removeGovernance";
|
|
1136
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/organizations/20200801/OrganizationTenancy/RemoveGovernance";
|
|
1137
|
+
const pathParams = {
|
|
1138
|
+
"{organizationId}": removeGovernanceRequest.organizationId,
|
|
1139
|
+
"{organizationTenancyId}": removeGovernanceRequest.organizationTenancyId
|
|
1140
|
+
};
|
|
1141
|
+
const queryParams = {};
|
|
1142
|
+
let headerParams = {
|
|
1143
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1144
|
+
"if-match": removeGovernanceRequest.ifMatch,
|
|
1145
|
+
"opc-retry-token": removeGovernanceRequest.opcRetryToken,
|
|
1146
|
+
"opc-request-id": removeGovernanceRequest.opcRequestId
|
|
1147
|
+
};
|
|
1148
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1149
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeGovernanceRequest.retryConfiguration, specRetryConfiguration);
|
|
1150
|
+
if (this.logger)
|
|
1151
|
+
retrier.logger = this.logger;
|
|
1152
|
+
const request = yield oci_common_1.composeRequest({
|
|
1153
|
+
baseEndpoint: this._endpoint,
|
|
1154
|
+
defaultHeaders: this._defaultHeaders,
|
|
1155
|
+
path: "/organizations/{organizationId}/tenancies/{organizationTenancyId}/actions/removeGovernance",
|
|
1156
|
+
method: "POST",
|
|
1157
|
+
pathParams: pathParams,
|
|
1158
|
+
headerParams: headerParams,
|
|
1159
|
+
queryParams: queryParams
|
|
1160
|
+
});
|
|
1161
|
+
try {
|
|
1162
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1163
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1164
|
+
responseObject: {},
|
|
1165
|
+
responseHeaders: [
|
|
1166
|
+
{
|
|
1167
|
+
value: response.headers.get("opc-request-id"),
|
|
1168
|
+
key: "opcRequestId",
|
|
1169
|
+
dataType: "string"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1173
|
+
key: "opcWorkRequestId",
|
|
1174
|
+
dataType: "string"
|
|
1175
|
+
}
|
|
1176
|
+
]
|
|
1177
|
+
});
|
|
1178
|
+
return sdkResponse;
|
|
1179
|
+
}
|
|
1180
|
+
catch (err) {
|
|
1181
|
+
throw err;
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
exports.GovernanceClient = GovernanceClient;
|
|
1187
|
+
GovernanceClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
|
|
1188
|
+
GovernanceClient.endpointServiceName = "";
|
|
911
1189
|
var LinkApiKeys;
|
|
912
1190
|
(function (LinkApiKeys) {
|
|
913
1191
|
})(LinkApiKeys = exports.LinkApiKeys || (exports.LinkApiKeys = {}));
|
|
@@ -916,11 +1194,14 @@ var LinkApiKeys;
|
|
|
916
1194
|
*/
|
|
917
1195
|
class LinkClient {
|
|
918
1196
|
constructor(params, clientConfiguration) {
|
|
1197
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
919
1198
|
this["_endpoint"] = "";
|
|
920
1199
|
this["_defaultHeaders"] = {};
|
|
921
1200
|
this._circuitBreaker = null;
|
|
922
1201
|
this._httpOptions = undefined;
|
|
923
1202
|
this.targetService = "Link";
|
|
1203
|
+
this._regionId = "";
|
|
1204
|
+
this._lastSetRegionOrRegionId = "";
|
|
924
1205
|
const requestSigner = params.authenticationDetailsProvider
|
|
925
1206
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
926
1207
|
: null;
|
|
@@ -970,13 +1251,31 @@ class LinkClient {
|
|
|
970
1251
|
get logger() {
|
|
971
1252
|
return common.LOG.logger;
|
|
972
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1256
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1257
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1258
|
+
*/
|
|
1259
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1260
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1261
|
+
if (this.logger)
|
|
1262
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1263
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1264
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LinkClient.serviceEndpointTemplate, this._region, LinkClient.endpointServiceName);
|
|
1265
|
+
}
|
|
1266
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1267
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LinkClient.serviceEndpointTemplate, this._regionId, LinkClient.endpointServiceName);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
973
1270
|
/**
|
|
974
1271
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
975
1272
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
976
1273
|
* @param region The region of the service.
|
|
977
1274
|
*/
|
|
978
1275
|
set region(region) {
|
|
1276
|
+
this._region = region;
|
|
979
1277
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LinkClient.serviceEndpointTemplate, region, LinkClient.endpointServiceName);
|
|
1278
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
980
1279
|
}
|
|
981
1280
|
/**
|
|
982
1281
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -987,7 +1286,9 @@ class LinkClient {
|
|
|
987
1286
|
* @param regionId The public region ID.
|
|
988
1287
|
*/
|
|
989
1288
|
set regionId(regionId) {
|
|
1289
|
+
this._regionId = regionId;
|
|
990
1290
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LinkClient.serviceEndpointTemplate, regionId, LinkClient.endpointServiceName);
|
|
1291
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
991
1292
|
}
|
|
992
1293
|
/**
|
|
993
1294
|
* Creates a new LinkWaiter for resources for this service.
|
|
@@ -1016,7 +1317,7 @@ class LinkClient {
|
|
|
1016
1317
|
* @param DeleteLinkRequest
|
|
1017
1318
|
* @return DeleteLinkResponse
|
|
1018
1319
|
* @throws OciError when an error occurs
|
|
1019
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1320
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/DeleteLink.ts.html |here} to see how to use DeleteLink API.
|
|
1020
1321
|
*/
|
|
1021
1322
|
deleteLink(deleteLinkRequest) {
|
|
1022
1323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1076,7 +1377,7 @@ class LinkClient {
|
|
|
1076
1377
|
* @param GetLinkRequest
|
|
1077
1378
|
* @return GetLinkResponse
|
|
1078
1379
|
* @throws OciError when an error occurs
|
|
1079
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1380
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetLink.ts.html |here} to see how to use GetLink API.
|
|
1080
1381
|
*/
|
|
1081
1382
|
getLink(getLinkRequest) {
|
|
1082
1383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1139,7 +1440,7 @@ class LinkClient {
|
|
|
1139
1440
|
* @param ListLinksRequest
|
|
1140
1441
|
* @return ListLinksResponse
|
|
1141
1442
|
* @throws OciError when an error occurs
|
|
1142
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1443
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListLinks.ts.html |here} to see how to use ListLinks API.
|
|
1143
1444
|
*/
|
|
1144
1445
|
listLinks(listLinksRequest) {
|
|
1145
1446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1213,11 +1514,14 @@ var OrdersApiKeys;
|
|
|
1213
1514
|
*/
|
|
1214
1515
|
class OrdersClient {
|
|
1215
1516
|
constructor(params, clientConfiguration) {
|
|
1517
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
1216
1518
|
this["_endpoint"] = "";
|
|
1217
1519
|
this["_defaultHeaders"] = {};
|
|
1218
1520
|
this._circuitBreaker = null;
|
|
1219
1521
|
this._httpOptions = undefined;
|
|
1220
1522
|
this.targetService = "Orders";
|
|
1523
|
+
this._regionId = "";
|
|
1524
|
+
this._lastSetRegionOrRegionId = "";
|
|
1221
1525
|
const requestSigner = params.authenticationDetailsProvider
|
|
1222
1526
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1223
1527
|
: null;
|
|
@@ -1267,13 +1571,31 @@ class OrdersClient {
|
|
|
1267
1571
|
get logger() {
|
|
1268
1572
|
return common.LOG.logger;
|
|
1269
1573
|
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1576
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1577
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1578
|
+
*/
|
|
1579
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1580
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1581
|
+
if (this.logger)
|
|
1582
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1583
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1584
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrdersClient.serviceEndpointTemplate, this._region, OrdersClient.endpointServiceName);
|
|
1585
|
+
}
|
|
1586
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1587
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrdersClient.serviceEndpointTemplate, this._regionId, OrdersClient.endpointServiceName);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1270
1590
|
/**
|
|
1271
1591
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1272
1592
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1273
1593
|
* @param region The region of the service.
|
|
1274
1594
|
*/
|
|
1275
1595
|
set region(region) {
|
|
1596
|
+
this._region = region;
|
|
1276
1597
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrdersClient.serviceEndpointTemplate, region, OrdersClient.endpointServiceName);
|
|
1598
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1277
1599
|
}
|
|
1278
1600
|
/**
|
|
1279
1601
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -1284,7 +1606,9 @@ class OrdersClient {
|
|
|
1284
1606
|
* @param regionId The public region ID.
|
|
1285
1607
|
*/
|
|
1286
1608
|
set regionId(regionId) {
|
|
1609
|
+
this._regionId = regionId;
|
|
1287
1610
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrdersClient.serviceEndpointTemplate, regionId, OrdersClient.endpointServiceName);
|
|
1611
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1288
1612
|
}
|
|
1289
1613
|
/**
|
|
1290
1614
|
* Triggers an order activation workflow on behalf of the tenant, given by compartment ID in the body.
|
|
@@ -1292,7 +1616,7 @@ class OrdersClient {
|
|
|
1292
1616
|
* @param ActivateOrderRequest
|
|
1293
1617
|
* @return ActivateOrderResponse
|
|
1294
1618
|
* @throws OciError when an error occurs
|
|
1295
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1619
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ActivateOrder.ts.html |here} to see how to use ActivateOrder API.
|
|
1296
1620
|
*/
|
|
1297
1621
|
activateOrder(activateOrderRequest) {
|
|
1298
1622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1348,13 +1672,13 @@ class OrdersClient {
|
|
|
1348
1672
|
});
|
|
1349
1673
|
}
|
|
1350
1674
|
/**
|
|
1351
|
-
* Returns the
|
|
1675
|
+
* Returns the order details given by the order ID in the JWT.
|
|
1352
1676
|
*
|
|
1353
1677
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1354
1678
|
* @param GetOrderRequest
|
|
1355
1679
|
* @return GetOrderResponse
|
|
1356
1680
|
* @throws OciError when an error occurs
|
|
1357
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1681
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetOrder.ts.html |here} to see how to use GetOrder API.
|
|
1358
1682
|
*/
|
|
1359
1683
|
getOrder(getOrderRequest) {
|
|
1360
1684
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1418,11 +1742,14 @@ var OrganizationApiKeys;
|
|
|
1418
1742
|
*/
|
|
1419
1743
|
class OrganizationClient {
|
|
1420
1744
|
constructor(params, clientConfiguration) {
|
|
1745
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
1421
1746
|
this["_endpoint"] = "";
|
|
1422
1747
|
this["_defaultHeaders"] = {};
|
|
1423
1748
|
this._circuitBreaker = null;
|
|
1424
1749
|
this._httpOptions = undefined;
|
|
1425
1750
|
this.targetService = "Organization";
|
|
1751
|
+
this._regionId = "";
|
|
1752
|
+
this._lastSetRegionOrRegionId = "";
|
|
1426
1753
|
const requestSigner = params.authenticationDetailsProvider
|
|
1427
1754
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1428
1755
|
: null;
|
|
@@ -1472,13 +1799,31 @@ class OrganizationClient {
|
|
|
1472
1799
|
get logger() {
|
|
1473
1800
|
return common.LOG.logger;
|
|
1474
1801
|
}
|
|
1802
|
+
/**
|
|
1803
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1804
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1805
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1806
|
+
*/
|
|
1807
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1808
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1809
|
+
if (this.logger)
|
|
1810
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1811
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1812
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationClient.serviceEndpointTemplate, this._region, OrganizationClient.endpointServiceName);
|
|
1813
|
+
}
|
|
1814
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1815
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationClient.serviceEndpointTemplate, this._regionId, OrganizationClient.endpointServiceName);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1475
1818
|
/**
|
|
1476
1819
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1477
1820
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1478
1821
|
* @param region The region of the service.
|
|
1479
1822
|
*/
|
|
1480
1823
|
set region(region) {
|
|
1824
|
+
this._region = region;
|
|
1481
1825
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationClient.serviceEndpointTemplate, region, OrganizationClient.endpointServiceName);
|
|
1826
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1482
1827
|
}
|
|
1483
1828
|
/**
|
|
1484
1829
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -1489,7 +1834,9 @@ class OrganizationClient {
|
|
|
1489
1834
|
* @param regionId The public region ID.
|
|
1490
1835
|
*/
|
|
1491
1836
|
set regionId(regionId) {
|
|
1837
|
+
this._regionId = regionId;
|
|
1492
1838
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationClient.serviceEndpointTemplate, regionId, OrganizationClient.endpointServiceName);
|
|
1839
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1493
1840
|
}
|
|
1494
1841
|
/**
|
|
1495
1842
|
* Creates a new OrganizationWaiter for resources for this service.
|
|
@@ -1518,7 +1865,7 @@ class OrganizationClient {
|
|
|
1518
1865
|
* @param ApproveOrganizationTenancyForTransferRequest
|
|
1519
1866
|
* @return ApproveOrganizationTenancyForTransferResponse
|
|
1520
1867
|
* @throws OciError when an error occurs
|
|
1521
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1868
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ApproveOrganizationTenancyForTransfer.ts.html |here} to see how to use ApproveOrganizationTenancyForTransfer API.
|
|
1522
1869
|
*/
|
|
1523
1870
|
approveOrganizationTenancyForTransfer(approveOrganizationTenancyForTransferRequest) {
|
|
1524
1871
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1585,7 +1932,7 @@ class OrganizationClient {
|
|
|
1585
1932
|
* @param CreateChildTenancyRequest
|
|
1586
1933
|
* @return CreateChildTenancyResponse
|
|
1587
1934
|
* @throws OciError when an error occurs
|
|
1588
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1935
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CreateChildTenancy.ts.html |here} to see how to use CreateChildTenancy API.
|
|
1589
1936
|
*/
|
|
1590
1937
|
createChildTenancy(createChildTenancyRequest) {
|
|
1591
1938
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1644,7 +1991,7 @@ class OrganizationClient {
|
|
|
1644
1991
|
* @param DeleteOrganizationTenancyRequest
|
|
1645
1992
|
* @return DeleteOrganizationTenancyResponse
|
|
1646
1993
|
* @throws OciError when an error occurs
|
|
1647
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1994
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/DeleteOrganizationTenancy.ts.html |here} to see how to use DeleteOrganizationTenancy API.
|
|
1648
1995
|
*/
|
|
1649
1996
|
deleteOrganizationTenancy(deleteOrganizationTenancyRequest) {
|
|
1650
1997
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1705,7 +2052,7 @@ class OrganizationClient {
|
|
|
1705
2052
|
* @param GetOrganizationRequest
|
|
1706
2053
|
* @return GetOrganizationResponse
|
|
1707
2054
|
* @throws OciError when an error occurs
|
|
1708
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2055
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetOrganization.ts.html |here} to see how to use GetOrganization API.
|
|
1709
2056
|
*/
|
|
1710
2057
|
getOrganization(getOrganizationRequest) {
|
|
1711
2058
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1768,7 +2115,7 @@ class OrganizationClient {
|
|
|
1768
2115
|
* @param GetOrganizationTenancyRequest
|
|
1769
2116
|
* @return GetOrganizationTenancyResponse
|
|
1770
2117
|
* @throws OciError when an error occurs
|
|
1771
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2118
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetOrganizationTenancy.ts.html |here} to see how to use GetOrganizationTenancy API.
|
|
1772
2119
|
*/
|
|
1773
2120
|
getOrganizationTenancy(getOrganizationTenancyRequest) {
|
|
1774
2121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1832,7 +2179,7 @@ class OrganizationClient {
|
|
|
1832
2179
|
* @param ListOrganizationTenanciesRequest
|
|
1833
2180
|
* @return ListOrganizationTenanciesResponse
|
|
1834
2181
|
* @throws OciError when an error occurs
|
|
1835
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2182
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListOrganizationTenancies.ts.html |here} to see how to use ListOrganizationTenancies API.
|
|
1836
2183
|
*/
|
|
1837
2184
|
listOrganizationTenancies(listOrganizationTenanciesRequest) {
|
|
1838
2185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1898,7 +2245,7 @@ class OrganizationClient {
|
|
|
1898
2245
|
* @param ListOrganizationsRequest
|
|
1899
2246
|
* @return ListOrganizationsResponse
|
|
1900
2247
|
* @throws OciError when an error occurs
|
|
1901
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2248
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListOrganizations.ts.html |here} to see how to use ListOrganizations API.
|
|
1902
2249
|
*/
|
|
1903
2250
|
listOrganizations(listOrganizationsRequest) {
|
|
1904
2251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1958,12 +2305,12 @@ class OrganizationClient {
|
|
|
1958
2305
|
});
|
|
1959
2306
|
}
|
|
1960
2307
|
/**
|
|
1961
|
-
* An asynchronous API to restore tenancy.
|
|
2308
|
+
* An asynchronous API to restore a tenancy.
|
|
1962
2309
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1963
2310
|
* @param RestoreOrganizationTenancyRequest
|
|
1964
2311
|
* @return RestoreOrganizationTenancyResponse
|
|
1965
2312
|
* @throws OciError when an error occurs
|
|
1966
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2313
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/RestoreOrganizationTenancy.ts.html |here} to see how to use RestoreOrganizationTenancy API.
|
|
1967
2314
|
*/
|
|
1968
2315
|
restoreOrganizationTenancy(restoreOrganizationTenancyRequest) {
|
|
1969
2316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2023,7 +2370,7 @@ class OrganizationClient {
|
|
|
2023
2370
|
* @param UnapproveOrganizationTenancyForTransferRequest
|
|
2024
2371
|
* @return UnapproveOrganizationTenancyForTransferResponse
|
|
2025
2372
|
* @throws OciError when an error occurs
|
|
2026
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2373
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UnapproveOrganizationTenancyForTransfer.ts.html |here} to see how to use UnapproveOrganizationTenancyForTransfer API.
|
|
2027
2374
|
*/
|
|
2028
2375
|
unapproveOrganizationTenancyForTransfer(unapproveOrganizationTenancyForTransferRequest) {
|
|
2029
2376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2085,12 +2432,12 @@ class OrganizationClient {
|
|
|
2085
2432
|
});
|
|
2086
2433
|
}
|
|
2087
2434
|
/**
|
|
2088
|
-
*
|
|
2435
|
+
* Map the default subscription to the organization.
|
|
2089
2436
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2090
2437
|
* @param UpdateOrganizationRequest
|
|
2091
2438
|
* @return UpdateOrganizationResponse
|
|
2092
2439
|
* @throws OciError when an error occurs
|
|
2093
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2440
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UpdateOrganization.ts.html |here} to see how to use UpdateOrganization API.
|
|
2094
2441
|
*/
|
|
2095
2442
|
updateOrganization(updateOrganizationRequest) {
|
|
2096
2443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2158,11 +2505,14 @@ var RecipientInvitationApiKeys;
|
|
|
2158
2505
|
*/
|
|
2159
2506
|
class RecipientInvitationClient {
|
|
2160
2507
|
constructor(params, clientConfiguration) {
|
|
2508
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
2161
2509
|
this["_endpoint"] = "";
|
|
2162
2510
|
this["_defaultHeaders"] = {};
|
|
2163
2511
|
this._circuitBreaker = null;
|
|
2164
2512
|
this._httpOptions = undefined;
|
|
2165
2513
|
this.targetService = "RecipientInvitation";
|
|
2514
|
+
this._regionId = "";
|
|
2515
|
+
this._lastSetRegionOrRegionId = "";
|
|
2166
2516
|
const requestSigner = params.authenticationDetailsProvider
|
|
2167
2517
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2168
2518
|
: null;
|
|
@@ -2212,13 +2562,31 @@ class RecipientInvitationClient {
|
|
|
2212
2562
|
get logger() {
|
|
2213
2563
|
return common.LOG.logger;
|
|
2214
2564
|
}
|
|
2565
|
+
/**
|
|
2566
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2567
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2568
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2569
|
+
*/
|
|
2570
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2571
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2572
|
+
if (this.logger)
|
|
2573
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2574
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2575
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, this._region, RecipientInvitationClient.endpointServiceName);
|
|
2576
|
+
}
|
|
2577
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2578
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, this._regionId, RecipientInvitationClient.endpointServiceName);
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2215
2581
|
/**
|
|
2216
2582
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2217
2583
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2218
2584
|
* @param region The region of the service.
|
|
2219
2585
|
*/
|
|
2220
2586
|
set region(region) {
|
|
2587
|
+
this._region = region;
|
|
2221
2588
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, region, RecipientInvitationClient.endpointServiceName);
|
|
2589
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2222
2590
|
}
|
|
2223
2591
|
/**
|
|
2224
2592
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -2229,7 +2597,9 @@ class RecipientInvitationClient {
|
|
|
2229
2597
|
* @param regionId The public region ID.
|
|
2230
2598
|
*/
|
|
2231
2599
|
set regionId(regionId) {
|
|
2600
|
+
this._regionId = regionId;
|
|
2232
2601
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, regionId, RecipientInvitationClient.endpointServiceName);
|
|
2602
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2233
2603
|
}
|
|
2234
2604
|
/**
|
|
2235
2605
|
* Creates a new RecipientInvitationWaiter for resources for this service.
|
|
@@ -2258,7 +2628,7 @@ class RecipientInvitationClient {
|
|
|
2258
2628
|
* @param AcceptRecipientInvitationRequest
|
|
2259
2629
|
* @return AcceptRecipientInvitationResponse
|
|
2260
2630
|
* @throws OciError when an error occurs
|
|
2261
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2631
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/AcceptRecipientInvitation.ts.html |here} to see how to use AcceptRecipientInvitation API.
|
|
2262
2632
|
*/
|
|
2263
2633
|
acceptRecipientInvitation(acceptRecipientInvitationRequest) {
|
|
2264
2634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2319,7 +2689,7 @@ class RecipientInvitationClient {
|
|
|
2319
2689
|
* @param GetRecipientInvitationRequest
|
|
2320
2690
|
* @return GetRecipientInvitationResponse
|
|
2321
2691
|
* @throws OciError when an error occurs
|
|
2322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2692
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetRecipientInvitation.ts.html |here} to see how to use GetRecipientInvitation API.
|
|
2323
2693
|
*/
|
|
2324
2694
|
getRecipientInvitation(getRecipientInvitationRequest) {
|
|
2325
2695
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2382,7 +2752,7 @@ class RecipientInvitationClient {
|
|
|
2382
2752
|
* @param IgnoreRecipientInvitationRequest
|
|
2383
2753
|
* @return IgnoreRecipientInvitationResponse
|
|
2384
2754
|
* @throws OciError when an error occurs
|
|
2385
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2755
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/IgnoreRecipientInvitation.ts.html |here} to see how to use IgnoreRecipientInvitation API.
|
|
2386
2756
|
*/
|
|
2387
2757
|
ignoreRecipientInvitation(ignoreRecipientInvitationRequest) {
|
|
2388
2758
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2448,7 +2818,7 @@ class RecipientInvitationClient {
|
|
|
2448
2818
|
* @param ListRecipientInvitationsRequest
|
|
2449
2819
|
* @return ListRecipientInvitationsResponse
|
|
2450
2820
|
* @throws OciError when an error occurs
|
|
2451
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2821
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListRecipientInvitations.ts.html |here} to see how to use ListRecipientInvitations API.
|
|
2452
2822
|
*/
|
|
2453
2823
|
listRecipientInvitations(listRecipientInvitationsRequest) {
|
|
2454
2824
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2510,12 +2880,12 @@ class RecipientInvitationClient {
|
|
|
2510
2880
|
});
|
|
2511
2881
|
}
|
|
2512
2882
|
/**
|
|
2513
|
-
* Updates the
|
|
2883
|
+
* Updates the recipient invitation.
|
|
2514
2884
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2515
2885
|
* @param UpdateRecipientInvitationRequest
|
|
2516
2886
|
* @return UpdateRecipientInvitationResponse
|
|
2517
2887
|
* @throws OciError when an error occurs
|
|
2518
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2888
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UpdateRecipientInvitation.ts.html |here} to see how to use UpdateRecipientInvitation API.
|
|
2519
2889
|
*/
|
|
2520
2890
|
updateRecipientInvitation(updateRecipientInvitationRequest) {
|
|
2521
2891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2586,11 +2956,14 @@ var SenderInvitationApiKeys;
|
|
|
2586
2956
|
*/
|
|
2587
2957
|
class SenderInvitationClient {
|
|
2588
2958
|
constructor(params, clientConfiguration) {
|
|
2959
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
2589
2960
|
this["_endpoint"] = "";
|
|
2590
2961
|
this["_defaultHeaders"] = {};
|
|
2591
2962
|
this._circuitBreaker = null;
|
|
2592
2963
|
this._httpOptions = undefined;
|
|
2593
2964
|
this.targetService = "SenderInvitation";
|
|
2965
|
+
this._regionId = "";
|
|
2966
|
+
this._lastSetRegionOrRegionId = "";
|
|
2594
2967
|
const requestSigner = params.authenticationDetailsProvider
|
|
2595
2968
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2596
2969
|
: null;
|
|
@@ -2640,13 +3013,31 @@ class SenderInvitationClient {
|
|
|
2640
3013
|
get logger() {
|
|
2641
3014
|
return common.LOG.logger;
|
|
2642
3015
|
}
|
|
3016
|
+
/**
|
|
3017
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3018
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3019
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3020
|
+
*/
|
|
3021
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3022
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3023
|
+
if (this.logger)
|
|
3024
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3025
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3026
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, this._region, SenderInvitationClient.endpointServiceName);
|
|
3027
|
+
}
|
|
3028
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3029
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, this._regionId, SenderInvitationClient.endpointServiceName);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
2643
3032
|
/**
|
|
2644
3033
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2645
3034
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2646
3035
|
* @param region The region of the service.
|
|
2647
3036
|
*/
|
|
2648
3037
|
set region(region) {
|
|
3038
|
+
this._region = region;
|
|
2649
3039
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, region, SenderInvitationClient.endpointServiceName);
|
|
3040
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2650
3041
|
}
|
|
2651
3042
|
/**
|
|
2652
3043
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -2657,7 +3048,9 @@ class SenderInvitationClient {
|
|
|
2657
3048
|
* @param regionId The public region ID.
|
|
2658
3049
|
*/
|
|
2659
3050
|
set regionId(regionId) {
|
|
3051
|
+
this._regionId = regionId;
|
|
2660
3052
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, regionId, SenderInvitationClient.endpointServiceName);
|
|
3053
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2661
3054
|
}
|
|
2662
3055
|
/**
|
|
2663
3056
|
* Creates a new SenderInvitationWaiter for resources for this service.
|
|
@@ -2686,7 +3079,7 @@ class SenderInvitationClient {
|
|
|
2686
3079
|
* @param CancelSenderInvitationRequest
|
|
2687
3080
|
* @return CancelSenderInvitationResponse
|
|
2688
3081
|
* @throws OciError when an error occurs
|
|
2689
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3082
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CancelSenderInvitation.ts.html |here} to see how to use CancelSenderInvitation API.
|
|
2690
3083
|
*/
|
|
2691
3084
|
cancelSenderInvitation(cancelSenderInvitationRequest) {
|
|
2692
3085
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2747,7 +3140,7 @@ class SenderInvitationClient {
|
|
|
2747
3140
|
* @param CreateSenderInvitationRequest
|
|
2748
3141
|
* @return CreateSenderInvitationResponse
|
|
2749
3142
|
* @throws OciError when an error occurs
|
|
2750
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3143
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CreateSenderInvitation.ts.html |here} to see how to use CreateSenderInvitation API.
|
|
2751
3144
|
*/
|
|
2752
3145
|
createSenderInvitation(createSenderInvitationRequest) {
|
|
2753
3146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2815,7 +3208,7 @@ class SenderInvitationClient {
|
|
|
2815
3208
|
* @param GetSenderInvitationRequest
|
|
2816
3209
|
* @return GetSenderInvitationResponse
|
|
2817
3210
|
* @throws OciError when an error occurs
|
|
2818
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3211
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetSenderInvitation.ts.html |here} to see how to use GetSenderInvitation API.
|
|
2819
3212
|
*/
|
|
2820
3213
|
getSenderInvitation(getSenderInvitationRequest) {
|
|
2821
3214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2879,7 +3272,7 @@ class SenderInvitationClient {
|
|
|
2879
3272
|
* @param ListSenderInvitationsRequest
|
|
2880
3273
|
* @return ListSenderInvitationsResponse
|
|
2881
3274
|
* @throws OciError when an error occurs
|
|
2882
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListSenderInvitations.ts.html |here} to see how to use ListSenderInvitations API.
|
|
2883
3276
|
*/
|
|
2884
3277
|
listSenderInvitations(listSenderInvitationsRequest) {
|
|
2885
3278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2945,12 +3338,12 @@ class SenderInvitationClient {
|
|
|
2945
3338
|
});
|
|
2946
3339
|
}
|
|
2947
3340
|
/**
|
|
2948
|
-
* Updates the
|
|
3341
|
+
* Updates the sender invitation.
|
|
2949
3342
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2950
3343
|
* @param UpdateSenderInvitationRequest
|
|
2951
3344
|
* @return UpdateSenderInvitationResponse
|
|
2952
3345
|
* @throws OciError when an error occurs
|
|
2953
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3346
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/UpdateSenderInvitation.ts.html |here} to see how to use UpdateSenderInvitation API.
|
|
2954
3347
|
*/
|
|
2955
3348
|
updateSenderInvitation(updateSenderInvitationRequest) {
|
|
2956
3349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3021,11 +3414,14 @@ var SubscriptionApiKeys;
|
|
|
3021
3414
|
*/
|
|
3022
3415
|
class SubscriptionClient {
|
|
3023
3416
|
constructor(params, clientConfiguration) {
|
|
3417
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
3024
3418
|
this["_endpoint"] = "";
|
|
3025
3419
|
this["_defaultHeaders"] = {};
|
|
3026
3420
|
this._circuitBreaker = null;
|
|
3027
3421
|
this._httpOptions = undefined;
|
|
3028
3422
|
this.targetService = "Subscription";
|
|
3423
|
+
this._regionId = "";
|
|
3424
|
+
this._lastSetRegionOrRegionId = "";
|
|
3029
3425
|
const requestSigner = params.authenticationDetailsProvider
|
|
3030
3426
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3031
3427
|
: null;
|
|
@@ -3075,13 +3471,31 @@ class SubscriptionClient {
|
|
|
3075
3471
|
get logger() {
|
|
3076
3472
|
return common.LOG.logger;
|
|
3077
3473
|
}
|
|
3474
|
+
/**
|
|
3475
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
3476
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
3477
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
3478
|
+
*/
|
|
3479
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3480
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3481
|
+
if (this.logger)
|
|
3482
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3483
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3484
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscriptionClient.serviceEndpointTemplate, this._region, SubscriptionClient.endpointServiceName);
|
|
3485
|
+
}
|
|
3486
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
3487
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscriptionClient.serviceEndpointTemplate, this._regionId, SubscriptionClient.endpointServiceName);
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3078
3490
|
/**
|
|
3079
3491
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3080
3492
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3081
3493
|
* @param region The region of the service.
|
|
3082
3494
|
*/
|
|
3083
3495
|
set region(region) {
|
|
3496
|
+
this._region = region;
|
|
3084
3497
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscriptionClient.serviceEndpointTemplate, region, SubscriptionClient.endpointServiceName);
|
|
3498
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3085
3499
|
}
|
|
3086
3500
|
/**
|
|
3087
3501
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -3092,7 +3506,9 @@ class SubscriptionClient {
|
|
|
3092
3506
|
* @param regionId The public region ID.
|
|
3093
3507
|
*/
|
|
3094
3508
|
set regionId(regionId) {
|
|
3509
|
+
this._regionId = regionId;
|
|
3095
3510
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscriptionClient.serviceEndpointTemplate, regionId, SubscriptionClient.endpointServiceName);
|
|
3511
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3096
3512
|
}
|
|
3097
3513
|
/**
|
|
3098
3514
|
* Creates a new SubscriptionWaiter for resources for this service.
|
|
@@ -3121,7 +3537,7 @@ class SubscriptionClient {
|
|
|
3121
3537
|
* @param CreateSubscriptionMappingRequest
|
|
3122
3538
|
* @return CreateSubscriptionMappingResponse
|
|
3123
3539
|
* @throws OciError when an error occurs
|
|
3124
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3540
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/CreateSubscriptionMapping.ts.html |here} to see how to use CreateSubscriptionMapping API.
|
|
3125
3541
|
*/
|
|
3126
3542
|
createSubscriptionMapping(createSubscriptionMappingRequest) {
|
|
3127
3543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3190,7 +3606,7 @@ class SubscriptionClient {
|
|
|
3190
3606
|
* @param DeleteSubscriptionMappingRequest
|
|
3191
3607
|
* @return DeleteSubscriptionMappingResponse
|
|
3192
3608
|
* @throws OciError when an error occurs
|
|
3193
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3609
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/DeleteSubscriptionMapping.ts.html |here} to see how to use DeleteSubscriptionMapping API.
|
|
3194
3610
|
*/
|
|
3195
3611
|
deleteSubscriptionMapping(deleteSubscriptionMappingRequest) {
|
|
3196
3612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3245,7 +3661,7 @@ class SubscriptionClient {
|
|
|
3245
3661
|
* @param GetAssignedSubscriptionRequest
|
|
3246
3662
|
* @return GetAssignedSubscriptionResponse
|
|
3247
3663
|
* @throws OciError when an error occurs
|
|
3248
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3664
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetAssignedSubscription.ts.html |here} to see how to use GetAssignedSubscription API.
|
|
3249
3665
|
*/
|
|
3250
3666
|
getAssignedSubscription(getAssignedSubscriptionRequest) {
|
|
3251
3667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3308,7 +3724,7 @@ class SubscriptionClient {
|
|
|
3308
3724
|
* @param GetSubscriptionRequest
|
|
3309
3725
|
* @return GetSubscriptionResponse
|
|
3310
3726
|
* @throws OciError when an error occurs
|
|
3311
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3727
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetSubscription.ts.html |here} to see how to use GetSubscription API.
|
|
3312
3728
|
*/
|
|
3313
3729
|
getSubscription(getSubscriptionRequest) {
|
|
3314
3730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3371,7 +3787,7 @@ class SubscriptionClient {
|
|
|
3371
3787
|
* @param GetSubscriptionMappingRequest
|
|
3372
3788
|
* @return GetSubscriptionMappingResponse
|
|
3373
3789
|
* @throws OciError when an error occurs
|
|
3374
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3790
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetSubscriptionMapping.ts.html |here} to see how to use GetSubscriptionMapping API.
|
|
3375
3791
|
*/
|
|
3376
3792
|
getSubscriptionMapping(getSubscriptionMappingRequest) {
|
|
3377
3793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3434,7 +3850,7 @@ class SubscriptionClient {
|
|
|
3434
3850
|
* @param ListAssignedSubscriptionsRequest
|
|
3435
3851
|
* @return ListAssignedSubscriptionsResponse
|
|
3436
3852
|
* @throws OciError when an error occurs
|
|
3437
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3853
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListAssignedSubscriptions.ts.html |here} to see how to use ListAssignedSubscriptions API.
|
|
3438
3854
|
*/
|
|
3439
3855
|
listAssignedSubscriptions(listAssignedSubscriptionsRequest) {
|
|
3440
3856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3502,7 +3918,7 @@ class SubscriptionClient {
|
|
|
3502
3918
|
* @param ListAvailableRegionsRequest
|
|
3503
3919
|
* @return ListAvailableRegionsResponse
|
|
3504
3920
|
* @throws OciError when an error occurs
|
|
3505
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3921
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListAvailableRegions.ts.html |here} to see how to use ListAvailableRegions API.
|
|
3506
3922
|
*/
|
|
3507
3923
|
listAvailableRegions(listAvailableRegionsRequest) {
|
|
3508
3924
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3567,7 +3983,7 @@ class SubscriptionClient {
|
|
|
3567
3983
|
* @param ListSubscriptionMappingsRequest
|
|
3568
3984
|
* @return ListSubscriptionMappingsResponse
|
|
3569
3985
|
* @throws OciError when an error occurs
|
|
3570
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3986
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListSubscriptionMappings.ts.html |here} to see how to use ListSubscriptionMappings API.
|
|
3571
3987
|
*/
|
|
3572
3988
|
listSubscriptionMappings(listSubscriptionMappingsRequest) {
|
|
3573
3989
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3637,7 +4053,7 @@ class SubscriptionClient {
|
|
|
3637
4053
|
* @param ListSubscriptionsRequest
|
|
3638
4054
|
* @return ListSubscriptionsResponse
|
|
3639
4055
|
* @throws OciError when an error occurs
|
|
3640
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4056
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
|
|
3641
4057
|
*/
|
|
3642
4058
|
listSubscriptions(listSubscriptionsRequest) {
|
|
3643
4059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3711,11 +4127,14 @@ var WorkRequestApiKeys;
|
|
|
3711
4127
|
*/
|
|
3712
4128
|
class WorkRequestClient {
|
|
3713
4129
|
constructor(params, clientConfiguration) {
|
|
4130
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
3714
4131
|
this["_endpoint"] = "";
|
|
3715
4132
|
this["_defaultHeaders"] = {};
|
|
3716
4133
|
this._circuitBreaker = null;
|
|
3717
4134
|
this._httpOptions = undefined;
|
|
3718
4135
|
this.targetService = "WorkRequest";
|
|
4136
|
+
this._regionId = "";
|
|
4137
|
+
this._lastSetRegionOrRegionId = "";
|
|
3719
4138
|
const requestSigner = params.authenticationDetailsProvider
|
|
3720
4139
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
3721
4140
|
: null;
|
|
@@ -3765,13 +4184,31 @@ class WorkRequestClient {
|
|
|
3765
4184
|
get logger() {
|
|
3766
4185
|
return common.LOG.logger;
|
|
3767
4186
|
}
|
|
4187
|
+
/**
|
|
4188
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
4189
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
4190
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
4191
|
+
*/
|
|
4192
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
4193
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
4194
|
+
if (this.logger)
|
|
4195
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
4196
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
4197
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
|
|
4198
|
+
}
|
|
4199
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
4200
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, this._regionId, WorkRequestClient.endpointServiceName);
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
3768
4203
|
/**
|
|
3769
4204
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
3770
4205
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
3771
4206
|
* @param region The region of the service.
|
|
3772
4207
|
*/
|
|
3773
4208
|
set region(region) {
|
|
4209
|
+
this._region = region;
|
|
3774
4210
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, region, WorkRequestClient.endpointServiceName);
|
|
4211
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
3775
4212
|
}
|
|
3776
4213
|
/**
|
|
3777
4214
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -3782,7 +4219,9 @@ class WorkRequestClient {
|
|
|
3782
4219
|
* @param regionId The public region ID.
|
|
3783
4220
|
*/
|
|
3784
4221
|
set regionId(regionId) {
|
|
4222
|
+
this._regionId = regionId;
|
|
3785
4223
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, regionId, WorkRequestClient.endpointServiceName);
|
|
4224
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
3786
4225
|
}
|
|
3787
4226
|
/**
|
|
3788
4227
|
* Creates a new WorkRequestWaiter for resources for this service.
|
|
@@ -3811,7 +4250,7 @@ class WorkRequestClient {
|
|
|
3811
4250
|
* @param GetWorkRequestRequest
|
|
3812
4251
|
* @return GetWorkRequestResponse
|
|
3813
4252
|
* @throws OciError when an error occurs
|
|
3814
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4253
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
3815
4254
|
*/
|
|
3816
4255
|
getWorkRequest(getWorkRequestRequest) {
|
|
3817
4256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3875,7 +4314,7 @@ class WorkRequestClient {
|
|
|
3875
4314
|
* @param ListWorkRequestErrorsRequest
|
|
3876
4315
|
* @return ListWorkRequestErrorsResponse
|
|
3877
4316
|
* @throws OciError when an error occurs
|
|
3878
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4317
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3879
4318
|
*/
|
|
3880
4319
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3881
4320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3943,7 +4382,7 @@ class WorkRequestClient {
|
|
|
3943
4382
|
* @param ListWorkRequestLogsRequest
|
|
3944
4383
|
* @return ListWorkRequestLogsResponse
|
|
3945
4384
|
* @throws OciError when an error occurs
|
|
3946
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4385
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3947
4386
|
*/
|
|
3948
4387
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3949
4388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4011,7 +4450,7 @@ class WorkRequestClient {
|
|
|
4011
4450
|
* @param ListWorkRequestsRequest
|
|
4012
4451
|
* @return ListWorkRequestsResponse
|
|
4013
4452
|
* @throws OciError when an error occurs
|
|
4014
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4453
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/tenantmanagercontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
4015
4454
|
*/
|
|
4016
4455
|
listWorkRequests(listWorkRequestsRequest) {
|
|
4017
4456
|
return __awaiter(this, void 0, void 0, function* () {
|