oci-tenantmanagercontrolplane 2.56.0 → 2.58.1

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.
Files changed (249) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +3 -2
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +204 -54
  5. package/lib/client.js +471 -55
  6. package/lib/client.js.map +1 -1
  7. package/lib/domain-waiter.d.ts +1 -1
  8. package/lib/domain-waiter.js +1 -1
  9. package/lib/domaingovernance-waiter.d.ts +1 -1
  10. package/lib/domaingovernance-waiter.js +1 -1
  11. package/lib/link-waiter.d.ts +1 -1
  12. package/lib/link-waiter.js +1 -1
  13. package/lib/model/action-type.d.ts +1 -1
  14. package/lib/model/action-type.js +1 -1
  15. package/lib/model/activate-order-details.d.ts +1 -1
  16. package/lib/model/activate-order-details.js +1 -1
  17. package/lib/model/assigned-subscription-collection.d.ts +1 -1
  18. package/lib/model/assigned-subscription-collection.js +1 -1
  19. package/lib/model/assigned-subscription-summary.d.ts +5 -1
  20. package/lib/model/assigned-subscription-summary.js +1 -1
  21. package/lib/model/assigned-subscription-summary.js.map +1 -1
  22. package/lib/model/assigned-subscription.d.ts +4 -4
  23. package/lib/model/assigned-subscription.js +1 -1
  24. package/lib/model/available-region-collection.d.ts +1 -1
  25. package/lib/model/available-region-collection.js +1 -1
  26. package/lib/model/available-region-summary.d.ts +1 -1
  27. package/lib/model/available-region-summary.js +1 -1
  28. package/lib/model/create-child-tenancy-details.d.ts +7 -2
  29. package/lib/model/create-child-tenancy-details.js +1 -1
  30. package/lib/model/create-child-tenancy-details.js.map +1 -1
  31. package/lib/model/create-domain-details.d.ts +2 -2
  32. package/lib/model/create-domain-details.js +1 -1
  33. package/lib/model/create-domain-governance-details.d.ts +2 -2
  34. package/lib/model/create-domain-governance-details.js +1 -1
  35. package/lib/model/create-sender-invitation-details.d.ts +6 -1
  36. package/lib/model/create-sender-invitation-details.js +35 -3
  37. package/lib/model/create-sender-invitation-details.js.map +1 -1
  38. package/lib/model/create-subscription-mapping-details.d.ts +1 -1
  39. package/lib/model/create-subscription-mapping-details.js +1 -1
  40. package/lib/model/domain-collection.d.ts +1 -1
  41. package/lib/model/domain-collection.js +1 -1
  42. package/lib/model/domain-governance-collection.d.ts +1 -1
  43. package/lib/model/domain-governance-collection.js +1 -1
  44. package/lib/model/domain-governance-summary.d.ts +2 -2
  45. package/lib/model/domain-governance-summary.js +1 -1
  46. package/lib/model/domain-governance.d.ts +2 -2
  47. package/lib/model/domain-governance.js +1 -1
  48. package/lib/model/domain-summary.d.ts +1 -1
  49. package/lib/model/domain-summary.js +1 -1
  50. package/lib/model/domain.d.ts +1 -1
  51. package/lib/model/domain.js +1 -1
  52. package/lib/model/governance-status.d.ts +28 -0
  53. package/lib/model/governance-status.js +39 -0
  54. package/lib/model/governance-status.js.map +1 -0
  55. package/lib/model/index.d.ts +5 -1
  56. package/lib/model/index.js +7 -3
  57. package/lib/model/index.js.map +1 -1
  58. package/lib/model/invitation-subject.d.ts +28 -0
  59. package/lib/model/invitation-subject.js +39 -0
  60. package/lib/model/invitation-subject.js.map +1 -0
  61. package/lib/model/lifecycle-state.d.ts +1 -1
  62. package/lib/model/lifecycle-state.js +1 -1
  63. package/lib/model/link-collection.d.ts +1 -1
  64. package/lib/model/link-collection.js +1 -1
  65. package/lib/model/link-summary.d.ts +1 -1
  66. package/lib/model/link-summary.js +1 -1
  67. package/lib/model/link.d.ts +1 -1
  68. package/lib/model/link.js +1 -1
  69. package/lib/model/operation-status.d.ts +1 -1
  70. package/lib/model/operation-status.js +1 -1
  71. package/lib/model/operation-type.d.ts +1 -1
  72. package/lib/model/operation-type.js +1 -1
  73. package/lib/model/order.d.ts +2 -2
  74. package/lib/model/order.js +1 -1
  75. package/lib/model/organization-collection.d.ts +1 -1
  76. package/lib/model/organization-collection.js +1 -1
  77. package/lib/model/organization-summary.d.ts +4 -4
  78. package/lib/model/organization-summary.js +1 -1
  79. package/lib/model/organization-tenancy-collection.d.ts +1 -1
  80. package/lib/model/organization-tenancy-collection.js +1 -1
  81. package/lib/model/organization-tenancy-lifecycle-state.d.ts +2 -2
  82. package/lib/model/organization-tenancy-lifecycle-state.js +2 -2
  83. package/lib/model/organization-tenancy-role.d.ts +2 -2
  84. package/lib/model/organization-tenancy-role.js +2 -2
  85. package/lib/model/organization-tenancy-summary.d.ts +10 -6
  86. package/lib/model/organization-tenancy-summary.js +1 -1
  87. package/lib/model/organization-tenancy-summary.js.map +1 -1
  88. package/lib/model/organization-tenancy.d.ts +11 -7
  89. package/lib/model/organization-tenancy.js +1 -1
  90. package/lib/model/organization-tenancy.js.map +1 -1
  91. package/lib/model/organization.d.ts +4 -4
  92. package/lib/model/organization.js +1 -1
  93. package/lib/model/promotion.d.ts +7 -7
  94. package/lib/model/promotion.js +1 -1
  95. package/lib/model/recipient-invitation-collection.d.ts +1 -1
  96. package/lib/model/recipient-invitation-collection.js +1 -1
  97. package/lib/model/recipient-invitation-status.d.ts +1 -1
  98. package/lib/model/recipient-invitation-status.js +1 -1
  99. package/lib/model/recipient-invitation-summary.d.ts +7 -3
  100. package/lib/model/recipient-invitation-summary.js +35 -3
  101. package/lib/model/recipient-invitation-summary.js.map +1 -1
  102. package/lib/model/recipient-invitation.d.ts +7 -3
  103. package/lib/model/recipient-invitation.js +35 -3
  104. package/lib/model/recipient-invitation.js.map +1 -1
  105. package/lib/model/sender-invitation-collection.d.ts +1 -1
  106. package/lib/model/sender-invitation-collection.js +1 -1
  107. package/lib/model/sender-invitation-status.d.ts +1 -1
  108. package/lib/model/sender-invitation-status.js +1 -1
  109. package/lib/model/sender-invitation-summary.d.ts +7 -3
  110. package/lib/model/sender-invitation-summary.js +35 -3
  111. package/lib/model/sender-invitation-summary.js.map +1 -1
  112. package/lib/model/sender-invitation.d.ts +7 -3
  113. package/lib/model/sender-invitation.js +35 -3
  114. package/lib/model/sender-invitation.js.map +1 -1
  115. package/lib/model/sku.d.ts +1 -1
  116. package/lib/model/sku.js +1 -1
  117. package/lib/model/sort-order.d.ts +1 -1
  118. package/lib/model/sort-order.js +1 -1
  119. package/lib/model/subscription-collection.d.ts +1 -1
  120. package/lib/model/subscription-collection.js +1 -1
  121. package/lib/model/subscription-info.d.ts +2 -2
  122. package/lib/model/subscription-info.js +1 -1
  123. package/lib/model/subscription-lifecycle-state.d.ts +1 -1
  124. package/lib/model/subscription-lifecycle-state.js +1 -1
  125. package/lib/model/subscription-mapping-collection.d.ts +1 -1
  126. package/lib/model/subscription-mapping-collection.js +1 -1
  127. package/lib/model/subscription-mapping-summary.d.ts +1 -1
  128. package/lib/model/subscription-mapping-summary.js +1 -1
  129. package/lib/model/subscription-mapping.d.ts +1 -1
  130. package/lib/model/subscription-mapping.js +1 -1
  131. package/lib/model/subscription-sku.d.ts +1 -1
  132. package/lib/model/subscription-sku.js +1 -1
  133. package/lib/model/subscription-summary.d.ts +1 -1
  134. package/lib/model/subscription-summary.js +1 -1
  135. package/lib/model/subscription.d.ts +4 -4
  136. package/lib/model/subscription.js +1 -1
  137. package/lib/model/update-domain-details.d.ts +1 -1
  138. package/lib/model/update-domain-details.js +1 -1
  139. package/lib/model/update-domain-governance-details.d.ts +2 -2
  140. package/lib/model/update-domain-governance-details.js +1 -1
  141. package/lib/model/update-organization-details.d.ts +2 -2
  142. package/lib/model/update-organization-details.js +1 -1
  143. package/lib/model/update-recipient-invitation-details.d.ts +1 -1
  144. package/lib/model/update-recipient-invitation-details.js +1 -1
  145. package/lib/model/update-sender-invitation-details.d.ts +1 -1
  146. package/lib/model/update-sender-invitation-details.js +1 -1
  147. package/lib/model/work-request-collection.d.ts +1 -1
  148. package/lib/model/work-request-collection.js +1 -1
  149. package/lib/model/work-request-error-collection.d.ts +1 -1
  150. package/lib/model/work-request-error-collection.js +1 -1
  151. package/lib/model/work-request-error.d.ts +1 -1
  152. package/lib/model/work-request-error.js +1 -1
  153. package/lib/model/work-request-log-entry-collection.d.ts +1 -1
  154. package/lib/model/work-request-log-entry-collection.js +1 -1
  155. package/lib/model/work-request-log-entry.d.ts +1 -1
  156. package/lib/model/work-request-log-entry.js +1 -1
  157. package/lib/model/work-request-resource.d.ts +1 -1
  158. package/lib/model/work-request-resource.js +1 -1
  159. package/lib/model/work-request-summary.d.ts +1 -1
  160. package/lib/model/work-request-summary.js +1 -1
  161. package/lib/model/work-request.d.ts +1 -1
  162. package/lib/model/work-request.js +1 -1
  163. package/lib/organization-waiter.d.ts +1 -1
  164. package/lib/organization-waiter.js +1 -1
  165. package/lib/recipientinvitation-waiter.d.ts +1 -1
  166. package/lib/recipientinvitation-waiter.js +1 -1
  167. package/lib/request/accept-recipient-invitation-request.d.ts +2 -2
  168. package/lib/request/activate-order-request.d.ts +3 -3
  169. package/lib/request/add-governance-request.d.ts +48 -0
  170. package/lib/request/add-governance-request.js +15 -0
  171. package/lib/request/add-governance-request.js.map +1 -0
  172. package/lib/request/approve-organization-tenancy-for-transfer-request.d.ts +3 -3
  173. package/lib/request/cancel-sender-invitation-request.d.ts +2 -2
  174. package/lib/request/create-child-tenancy-request.d.ts +2 -2
  175. package/lib/request/create-domain-governance-request.d.ts +2 -2
  176. package/lib/request/create-domain-request.d.ts +2 -2
  177. package/lib/request/create-sender-invitation-request.d.ts +2 -2
  178. package/lib/request/create-subscription-mapping-request.d.ts +2 -2
  179. package/lib/request/delete-domain-governance-request.d.ts +1 -1
  180. package/lib/request/delete-domain-request.d.ts +1 -1
  181. package/lib/request/delete-link-request.d.ts +1 -1
  182. package/lib/request/delete-organization-tenancy-request.d.ts +2 -2
  183. package/lib/request/delete-subscription-mapping-request.d.ts +1 -1
  184. package/lib/request/get-assigned-subscription-request.d.ts +1 -1
  185. package/lib/request/get-domain-governance-request.d.ts +1 -1
  186. package/lib/request/get-domain-request.d.ts +1 -1
  187. package/lib/request/get-link-request.d.ts +1 -1
  188. package/lib/request/get-order-request.d.ts +2 -2
  189. package/lib/request/get-organization-request.d.ts +1 -1
  190. package/lib/request/get-organization-tenancy-request.d.ts +1 -1
  191. package/lib/request/get-recipient-invitation-request.d.ts +1 -1
  192. package/lib/request/get-sender-invitation-request.d.ts +1 -1
  193. package/lib/request/get-subscription-mapping-request.d.ts +1 -1
  194. package/lib/request/get-subscription-request.d.ts +1 -1
  195. package/lib/request/get-work-request-request.d.ts +1 -1
  196. package/lib/request/ignore-recipient-invitation-request.d.ts +2 -2
  197. package/lib/request/index.d.ts +5 -1
  198. package/lib/request/index.js +1 -1
  199. package/lib/request/index.js.map +1 -1
  200. package/lib/request/list-assigned-subscriptions-request.d.ts +2 -2
  201. package/lib/request/list-available-regions-request.d.ts +1 -1
  202. package/lib/request/list-domain-governances-request.d.ts +2 -2
  203. package/lib/request/list-domains-request.d.ts +2 -2
  204. package/lib/request/list-links-request.d.ts +1 -1
  205. package/lib/request/list-organization-tenancies-request.d.ts +1 -1
  206. package/lib/request/list-organizations-request.d.ts +2 -2
  207. package/lib/request/list-recipient-invitations-request.d.ts +2 -2
  208. package/lib/request/list-sender-invitations-request.d.ts +2 -2
  209. package/lib/request/list-subscription-mappings-request.d.ts +3 -3
  210. package/lib/request/list-subscriptions-request.d.ts +2 -2
  211. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  212. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  213. package/lib/request/list-work-requests-request.d.ts +2 -2
  214. package/lib/request/remove-governance-request.d.ts +48 -0
  215. package/lib/request/remove-governance-request.js +15 -0
  216. package/lib/request/remove-governance-request.js.map +1 -0
  217. package/lib/request/restore-organization-tenancy-request.d.ts +1 -1
  218. package/lib/request/unapprove-organization-tenancy-for-transfer-request.d.ts +3 -3
  219. package/lib/request/update-domain-governance-request.d.ts +1 -1
  220. package/lib/request/update-domain-request.d.ts +1 -1
  221. package/lib/request/update-organization-request.d.ts +2 -2
  222. package/lib/request/update-recipient-invitation-request.d.ts +1 -1
  223. package/lib/request/update-sender-invitation-request.d.ts +1 -1
  224. package/lib/response/accept-recipient-invitation-response.d.ts +1 -1
  225. package/lib/response/activate-order-response.d.ts +1 -1
  226. package/lib/response/add-governance-response.d.ts +25 -0
  227. package/lib/response/add-governance-response.js +15 -0
  228. package/lib/response/add-governance-response.js.map +1 -0
  229. package/lib/response/cancel-sender-invitation-response.d.ts +1 -1
  230. package/lib/response/create-child-tenancy-response.d.ts +1 -1
  231. package/lib/response/create-domain-response.d.ts +1 -1
  232. package/lib/response/create-sender-invitation-response.d.ts +1 -1
  233. package/lib/response/create-subscription-mapping-response.d.ts +1 -1
  234. package/lib/response/delete-link-response.d.ts +1 -1
  235. package/lib/response/delete-organization-tenancy-response.d.ts +1 -1
  236. package/lib/response/index.d.ts +5 -1
  237. package/lib/response/index.js +1 -1
  238. package/lib/response/remove-governance-response.d.ts +25 -0
  239. package/lib/response/remove-governance-response.js +15 -0
  240. package/lib/response/remove-governance-response.js.map +1 -0
  241. package/lib/response/restore-organization-tenancy-response.d.ts +1 -1
  242. package/lib/response/update-organization-response.d.ts +1 -1
  243. package/lib/senderinvitation-waiter.d.ts +1 -1
  244. package/lib/senderinvitation-waiter.js +1 -1
  245. package/lib/subscription-waiter.d.ts +1 -1
  246. package/lib/subscription-waiter.js +1 -1
  247. package/lib/workrequest-waiter.d.ts +1 -1
  248. package/lib/workrequest-waiter.js +1 -1
  249. 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
- * The Organizations API allows you to consolidate multiple OCI tenancies into an organization, and centrally manage your tenancies and its resources.
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.56.0/tenantmanagercontrolplane/CreateDomain.ts.html |here} to see how to use CreateDomain API.
189
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/DeleteDomain.ts.html |here} to see how to use DeleteDomain API.
257
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/GetDomain.ts.html |here} to see how to use GetDomain API.
312
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/ListDomains.ts.html |here} to see how to use ListDomains API.
376
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/UpdateDomain.ts.html |here} to see how to use UpdateDomain API.
447
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/CreateDomainGovernance.ts.html |here} to see how to use CreateDomainGovernance API.
641
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/DeleteDomainGovernance.ts.html |here} to see how to use DeleteDomainGovernance API.
704
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/GetDomainGovernance.ts.html |here} to see how to use GetDomainGovernance API.
759
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/ListDomainGovernances.ts.html |here} to see how to use ListDomainGovernances API.
823
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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.56.0/tenantmanagercontrolplane/UpdateDomainGovernance.ts.html |here} to see how to use UpdateDomainGovernance API.
894
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/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,215 @@ 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["_endpoint"] = "";
966
+ this["_defaultHeaders"] = {};
967
+ this._circuitBreaker = null;
968
+ this._httpOptions = undefined;
969
+ this.targetService = "Governance";
970
+ const requestSigner = params.authenticationDetailsProvider
971
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
972
+ : null;
973
+ if (clientConfiguration) {
974
+ this._clientConfiguration = clientConfiguration;
975
+ this._circuitBreaker = clientConfiguration.circuitBreaker
976
+ ? clientConfiguration.circuitBreaker.circuit
977
+ : null;
978
+ this._httpOptions = clientConfiguration.httpOptions
979
+ ? clientConfiguration.httpOptions
980
+ : undefined;
981
+ }
982
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
983
+ const specCircuitBreakerEnabled = true;
984
+ if (!this._circuitBreaker &&
985
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
986
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
987
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
988
+ }
989
+ this._httpClient =
990
+ params.httpClient ||
991
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
992
+ if (params.authenticationDetailsProvider &&
993
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
994
+ const provider = params.authenticationDetailsProvider;
995
+ if (provider.getRegion()) {
996
+ this.region = provider.getRegion();
997
+ }
998
+ }
999
+ }
1000
+ /**
1001
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
1002
+ */
1003
+ get endpoint() {
1004
+ return this._endpoint;
1005
+ }
1006
+ /**
1007
+ * Sets the endpoint to call (ex, https://www.example.com).
1008
+ * @param endpoint The endpoint of the service.
1009
+ */
1010
+ set endpoint(endpoint) {
1011
+ this._endpoint = endpoint;
1012
+ this._endpoint = this._endpoint + "/20200801";
1013
+ if (this.logger)
1014
+ this.logger.info(`GovernanceClient endpoint set to ${this._endpoint}`);
1015
+ }
1016
+ get logger() {
1017
+ return common.LOG.logger;
1018
+ }
1019
+ /**
1020
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
1021
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1022
+ * @param region The region of the service.
1023
+ */
1024
+ set region(region) {
1025
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GovernanceClient.serviceEndpointTemplate, region, GovernanceClient.endpointServiceName);
1026
+ }
1027
+ /**
1028
+ * Sets the regionId to call (ex, 'us-phoenix-1').
1029
+ *
1030
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1031
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1032
+ * and then call {@link #endpoint(String) endpoint}.
1033
+ * @param regionId The public region ID.
1034
+ */
1035
+ set regionId(regionId) {
1036
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GovernanceClient.serviceEndpointTemplate, regionId, GovernanceClient.endpointServiceName);
1037
+ }
1038
+ /**
1039
+ * Starts a work request to opt the tenancy in to governance rules.
1040
+ * This operation does not retry by default if the user has not defined a retry configuration.
1041
+ * @param AddGovernanceRequest
1042
+ * @return AddGovernanceResponse
1043
+ * @throws OciError when an error occurs
1044
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/AddGovernance.ts.html |here} to see how to use AddGovernance API.
1045
+ */
1046
+ addGovernance(addGovernanceRequest) {
1047
+ return __awaiter(this, void 0, void 0, function* () {
1048
+ if (this.logger)
1049
+ this.logger.debug("Calling operation GovernanceClient#addGovernance.");
1050
+ const operationName = "addGovernance";
1051
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/organizations/20200801/OrganizationTenancy/AddGovernance";
1052
+ const pathParams = {
1053
+ "{organizationId}": addGovernanceRequest.organizationId,
1054
+ "{organizationTenancyId}": addGovernanceRequest.organizationTenancyId
1055
+ };
1056
+ const queryParams = {};
1057
+ let headerParams = {
1058
+ "Content-Type": common.Constants.APPLICATION_JSON,
1059
+ "if-match": addGovernanceRequest.ifMatch,
1060
+ "opc-retry-token": addGovernanceRequest.opcRetryToken,
1061
+ "opc-request-id": addGovernanceRequest.opcRequestId
1062
+ };
1063
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1064
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addGovernanceRequest.retryConfiguration, specRetryConfiguration);
1065
+ if (this.logger)
1066
+ retrier.logger = this.logger;
1067
+ const request = yield oci_common_1.composeRequest({
1068
+ baseEndpoint: this._endpoint,
1069
+ defaultHeaders: this._defaultHeaders,
1070
+ path: "/organizations/{organizationId}/tenancies/{organizationTenancyId}/actions/addGovernance",
1071
+ method: "POST",
1072
+ pathParams: pathParams,
1073
+ headerParams: headerParams,
1074
+ queryParams: queryParams
1075
+ });
1076
+ try {
1077
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1078
+ const sdkResponse = oci_common_1.composeResponse({
1079
+ responseObject: {},
1080
+ responseHeaders: [
1081
+ {
1082
+ value: response.headers.get("opc-request-id"),
1083
+ key: "opcRequestId",
1084
+ dataType: "string"
1085
+ },
1086
+ {
1087
+ value: response.headers.get("opc-work-request-id"),
1088
+ key: "opcWorkRequestId",
1089
+ dataType: "string"
1090
+ }
1091
+ ]
1092
+ });
1093
+ return sdkResponse;
1094
+ }
1095
+ catch (err) {
1096
+ throw err;
1097
+ }
1098
+ });
1099
+ }
1100
+ /**
1101
+ * Starts a work request to opt the tenancy out of governance rules.
1102
+ * This operation does not retry by default if the user has not defined a retry configuration.
1103
+ * @param RemoveGovernanceRequest
1104
+ * @return RemoveGovernanceResponse
1105
+ * @throws OciError when an error occurs
1106
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/RemoveGovernance.ts.html |here} to see how to use RemoveGovernance API.
1107
+ */
1108
+ removeGovernance(removeGovernanceRequest) {
1109
+ return __awaiter(this, void 0, void 0, function* () {
1110
+ if (this.logger)
1111
+ this.logger.debug("Calling operation GovernanceClient#removeGovernance.");
1112
+ const operationName = "removeGovernance";
1113
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/organizations/20200801/OrganizationTenancy/RemoveGovernance";
1114
+ const pathParams = {
1115
+ "{organizationId}": removeGovernanceRequest.organizationId,
1116
+ "{organizationTenancyId}": removeGovernanceRequest.organizationTenancyId
1117
+ };
1118
+ const queryParams = {};
1119
+ let headerParams = {
1120
+ "Content-Type": common.Constants.APPLICATION_JSON,
1121
+ "if-match": removeGovernanceRequest.ifMatch,
1122
+ "opc-retry-token": removeGovernanceRequest.opcRetryToken,
1123
+ "opc-request-id": removeGovernanceRequest.opcRequestId
1124
+ };
1125
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1126
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeGovernanceRequest.retryConfiguration, specRetryConfiguration);
1127
+ if (this.logger)
1128
+ retrier.logger = this.logger;
1129
+ const request = yield oci_common_1.composeRequest({
1130
+ baseEndpoint: this._endpoint,
1131
+ defaultHeaders: this._defaultHeaders,
1132
+ path: "/organizations/{organizationId}/tenancies/{organizationTenancyId}/actions/removeGovernance",
1133
+ method: "POST",
1134
+ pathParams: pathParams,
1135
+ headerParams: headerParams,
1136
+ queryParams: queryParams
1137
+ });
1138
+ try {
1139
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1140
+ const sdkResponse = oci_common_1.composeResponse({
1141
+ responseObject: {},
1142
+ responseHeaders: [
1143
+ {
1144
+ value: response.headers.get("opc-request-id"),
1145
+ key: "opcRequestId",
1146
+ dataType: "string"
1147
+ },
1148
+ {
1149
+ value: response.headers.get("opc-work-request-id"),
1150
+ key: "opcWorkRequestId",
1151
+ dataType: "string"
1152
+ }
1153
+ ]
1154
+ });
1155
+ return sdkResponse;
1156
+ }
1157
+ catch (err) {
1158
+ throw err;
1159
+ }
1160
+ });
1161
+ }
1162
+ }
1163
+ exports.GovernanceClient = GovernanceClient;
1164
+ GovernanceClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
1165
+ GovernanceClient.endpointServiceName = "";
911
1166
  var LinkApiKeys;
912
1167
  (function (LinkApiKeys) {
913
1168
  })(LinkApiKeys = exports.LinkApiKeys || (exports.LinkApiKeys = {}));
@@ -916,11 +1171,14 @@ var LinkApiKeys;
916
1171
  */
917
1172
  class LinkClient {
918
1173
  constructor(params, clientConfiguration) {
1174
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
919
1175
  this["_endpoint"] = "";
920
1176
  this["_defaultHeaders"] = {};
921
1177
  this._circuitBreaker = null;
922
1178
  this._httpOptions = undefined;
923
1179
  this.targetService = "Link";
1180
+ this._regionId = "";
1181
+ this._lastSetRegionOrRegionId = "";
924
1182
  const requestSigner = params.authenticationDetailsProvider
925
1183
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
926
1184
  : null;
@@ -970,13 +1228,31 @@ class LinkClient {
970
1228
  get logger() {
971
1229
  return common.LOG.logger;
972
1230
  }
1231
+ /**
1232
+ * Determines whether realm specific endpoint should be used or not.
1233
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1234
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1235
+ */
1236
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1237
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1238
+ if (this.logger)
1239
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1240
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1241
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LinkClient.serviceEndpointTemplate, this._region, LinkClient.endpointServiceName);
1242
+ }
1243
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1244
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LinkClient.serviceEndpointTemplate, this._regionId, LinkClient.endpointServiceName);
1245
+ }
1246
+ }
973
1247
  /**
974
1248
  * Sets the region to call (ex, Region.US_PHOENIX_1).
975
1249
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
976
1250
  * @param region The region of the service.
977
1251
  */
978
1252
  set region(region) {
1253
+ this._region = region;
979
1254
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LinkClient.serviceEndpointTemplate, region, LinkClient.endpointServiceName);
1255
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
980
1256
  }
981
1257
  /**
982
1258
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -987,7 +1263,9 @@ class LinkClient {
987
1263
  * @param regionId The public region ID.
988
1264
  */
989
1265
  set regionId(regionId) {
1266
+ this._regionId = regionId;
990
1267
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LinkClient.serviceEndpointTemplate, regionId, LinkClient.endpointServiceName);
1268
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
991
1269
  }
992
1270
  /**
993
1271
  * Creates a new LinkWaiter for resources for this service.
@@ -1016,7 +1294,7 @@ class LinkClient {
1016
1294
  * @param DeleteLinkRequest
1017
1295
  * @return DeleteLinkResponse
1018
1296
  * @throws OciError when an error occurs
1019
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/DeleteLink.ts.html |here} to see how to use DeleteLink API.
1297
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/DeleteLink.ts.html |here} to see how to use DeleteLink API.
1020
1298
  */
1021
1299
  deleteLink(deleteLinkRequest) {
1022
1300
  return __awaiter(this, void 0, void 0, function* () {
@@ -1076,7 +1354,7 @@ class LinkClient {
1076
1354
  * @param GetLinkRequest
1077
1355
  * @return GetLinkResponse
1078
1356
  * @throws OciError when an error occurs
1079
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetLink.ts.html |here} to see how to use GetLink API.
1357
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetLink.ts.html |here} to see how to use GetLink API.
1080
1358
  */
1081
1359
  getLink(getLinkRequest) {
1082
1360
  return __awaiter(this, void 0, void 0, function* () {
@@ -1139,7 +1417,7 @@ class LinkClient {
1139
1417
  * @param ListLinksRequest
1140
1418
  * @return ListLinksResponse
1141
1419
  * @throws OciError when an error occurs
1142
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListLinks.ts.html |here} to see how to use ListLinks API.
1420
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListLinks.ts.html |here} to see how to use ListLinks API.
1143
1421
  */
1144
1422
  listLinks(listLinksRequest) {
1145
1423
  return __awaiter(this, void 0, void 0, function* () {
@@ -1213,11 +1491,14 @@ var OrdersApiKeys;
1213
1491
  */
1214
1492
  class OrdersClient {
1215
1493
  constructor(params, clientConfiguration) {
1494
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1216
1495
  this["_endpoint"] = "";
1217
1496
  this["_defaultHeaders"] = {};
1218
1497
  this._circuitBreaker = null;
1219
1498
  this._httpOptions = undefined;
1220
1499
  this.targetService = "Orders";
1500
+ this._regionId = "";
1501
+ this._lastSetRegionOrRegionId = "";
1221
1502
  const requestSigner = params.authenticationDetailsProvider
1222
1503
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1223
1504
  : null;
@@ -1267,13 +1548,31 @@ class OrdersClient {
1267
1548
  get logger() {
1268
1549
  return common.LOG.logger;
1269
1550
  }
1551
+ /**
1552
+ * Determines whether realm specific endpoint should be used or not.
1553
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1554
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1555
+ */
1556
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1557
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1558
+ if (this.logger)
1559
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1560
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1561
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrdersClient.serviceEndpointTemplate, this._region, OrdersClient.endpointServiceName);
1562
+ }
1563
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1564
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrdersClient.serviceEndpointTemplate, this._regionId, OrdersClient.endpointServiceName);
1565
+ }
1566
+ }
1270
1567
  /**
1271
1568
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1272
1569
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1273
1570
  * @param region The region of the service.
1274
1571
  */
1275
1572
  set region(region) {
1573
+ this._region = region;
1276
1574
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrdersClient.serviceEndpointTemplate, region, OrdersClient.endpointServiceName);
1575
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1277
1576
  }
1278
1577
  /**
1279
1578
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1284,7 +1583,9 @@ class OrdersClient {
1284
1583
  * @param regionId The public region ID.
1285
1584
  */
1286
1585
  set regionId(regionId) {
1586
+ this._regionId = regionId;
1287
1587
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrdersClient.serviceEndpointTemplate, regionId, OrdersClient.endpointServiceName);
1588
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1288
1589
  }
1289
1590
  /**
1290
1591
  * Triggers an order activation workflow on behalf of the tenant, given by compartment ID in the body.
@@ -1292,7 +1593,7 @@ class OrdersClient {
1292
1593
  * @param ActivateOrderRequest
1293
1594
  * @return ActivateOrderResponse
1294
1595
  * @throws OciError when an error occurs
1295
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ActivateOrder.ts.html |here} to see how to use ActivateOrder API.
1596
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ActivateOrder.ts.html |here} to see how to use ActivateOrder API.
1296
1597
  */
1297
1598
  activateOrder(activateOrderRequest) {
1298
1599
  return __awaiter(this, void 0, void 0, function* () {
@@ -1348,13 +1649,13 @@ class OrdersClient {
1348
1649
  });
1349
1650
  }
1350
1651
  /**
1351
- * Returns the Order Details given by the order ID in the JWT.
1652
+ * Returns the order details given by the order ID in the JWT.
1352
1653
  *
1353
1654
  * This operation does not retry by default if the user has not defined a retry configuration.
1354
1655
  * @param GetOrderRequest
1355
1656
  * @return GetOrderResponse
1356
1657
  * @throws OciError when an error occurs
1357
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetOrder.ts.html |here} to see how to use GetOrder API.
1658
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetOrder.ts.html |here} to see how to use GetOrder API.
1358
1659
  */
1359
1660
  getOrder(getOrderRequest) {
1360
1661
  return __awaiter(this, void 0, void 0, function* () {
@@ -1418,11 +1719,14 @@ var OrganizationApiKeys;
1418
1719
  */
1419
1720
  class OrganizationClient {
1420
1721
  constructor(params, clientConfiguration) {
1722
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1421
1723
  this["_endpoint"] = "";
1422
1724
  this["_defaultHeaders"] = {};
1423
1725
  this._circuitBreaker = null;
1424
1726
  this._httpOptions = undefined;
1425
1727
  this.targetService = "Organization";
1728
+ this._regionId = "";
1729
+ this._lastSetRegionOrRegionId = "";
1426
1730
  const requestSigner = params.authenticationDetailsProvider
1427
1731
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1428
1732
  : null;
@@ -1472,13 +1776,31 @@ class OrganizationClient {
1472
1776
  get logger() {
1473
1777
  return common.LOG.logger;
1474
1778
  }
1779
+ /**
1780
+ * Determines whether realm specific endpoint should be used or not.
1781
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1782
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1783
+ */
1784
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1785
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1786
+ if (this.logger)
1787
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1788
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1789
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationClient.serviceEndpointTemplate, this._region, OrganizationClient.endpointServiceName);
1790
+ }
1791
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1792
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationClient.serviceEndpointTemplate, this._regionId, OrganizationClient.endpointServiceName);
1793
+ }
1794
+ }
1475
1795
  /**
1476
1796
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1477
1797
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1478
1798
  * @param region The region of the service.
1479
1799
  */
1480
1800
  set region(region) {
1801
+ this._region = region;
1481
1802
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationClient.serviceEndpointTemplate, region, OrganizationClient.endpointServiceName);
1803
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1482
1804
  }
1483
1805
  /**
1484
1806
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1489,7 +1811,9 @@ class OrganizationClient {
1489
1811
  * @param regionId The public region ID.
1490
1812
  */
1491
1813
  set regionId(regionId) {
1814
+ this._regionId = regionId;
1492
1815
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationClient.serviceEndpointTemplate, regionId, OrganizationClient.endpointServiceName);
1816
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1493
1817
  }
1494
1818
  /**
1495
1819
  * Creates a new OrganizationWaiter for resources for this service.
@@ -1518,7 +1842,7 @@ class OrganizationClient {
1518
1842
  * @param ApproveOrganizationTenancyForTransferRequest
1519
1843
  * @return ApproveOrganizationTenancyForTransferResponse
1520
1844
  * @throws OciError when an error occurs
1521
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ApproveOrganizationTenancyForTransfer.ts.html |here} to see how to use ApproveOrganizationTenancyForTransfer API.
1845
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ApproveOrganizationTenancyForTransfer.ts.html |here} to see how to use ApproveOrganizationTenancyForTransfer API.
1522
1846
  */
1523
1847
  approveOrganizationTenancyForTransfer(approveOrganizationTenancyForTransferRequest) {
1524
1848
  return __awaiter(this, void 0, void 0, function* () {
@@ -1585,7 +1909,7 @@ class OrganizationClient {
1585
1909
  * @param CreateChildTenancyRequest
1586
1910
  * @return CreateChildTenancyResponse
1587
1911
  * @throws OciError when an error occurs
1588
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/CreateChildTenancy.ts.html |here} to see how to use CreateChildTenancy API.
1912
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/CreateChildTenancy.ts.html |here} to see how to use CreateChildTenancy API.
1589
1913
  */
1590
1914
  createChildTenancy(createChildTenancyRequest) {
1591
1915
  return __awaiter(this, void 0, void 0, function* () {
@@ -1644,7 +1968,7 @@ class OrganizationClient {
1644
1968
  * @param DeleteOrganizationTenancyRequest
1645
1969
  * @return DeleteOrganizationTenancyResponse
1646
1970
  * @throws OciError when an error occurs
1647
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/DeleteOrganizationTenancy.ts.html |here} to see how to use DeleteOrganizationTenancy API.
1971
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/DeleteOrganizationTenancy.ts.html |here} to see how to use DeleteOrganizationTenancy API.
1648
1972
  */
1649
1973
  deleteOrganizationTenancy(deleteOrganizationTenancyRequest) {
1650
1974
  return __awaiter(this, void 0, void 0, function* () {
@@ -1705,7 +2029,7 @@ class OrganizationClient {
1705
2029
  * @param GetOrganizationRequest
1706
2030
  * @return GetOrganizationResponse
1707
2031
  * @throws OciError when an error occurs
1708
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetOrganization.ts.html |here} to see how to use GetOrganization API.
2032
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetOrganization.ts.html |here} to see how to use GetOrganization API.
1709
2033
  */
1710
2034
  getOrganization(getOrganizationRequest) {
1711
2035
  return __awaiter(this, void 0, void 0, function* () {
@@ -1768,7 +2092,7 @@ class OrganizationClient {
1768
2092
  * @param GetOrganizationTenancyRequest
1769
2093
  * @return GetOrganizationTenancyResponse
1770
2094
  * @throws OciError when an error occurs
1771
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetOrganizationTenancy.ts.html |here} to see how to use GetOrganizationTenancy API.
2095
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetOrganizationTenancy.ts.html |here} to see how to use GetOrganizationTenancy API.
1772
2096
  */
1773
2097
  getOrganizationTenancy(getOrganizationTenancyRequest) {
1774
2098
  return __awaiter(this, void 0, void 0, function* () {
@@ -1832,7 +2156,7 @@ class OrganizationClient {
1832
2156
  * @param ListOrganizationTenanciesRequest
1833
2157
  * @return ListOrganizationTenanciesResponse
1834
2158
  * @throws OciError when an error occurs
1835
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListOrganizationTenancies.ts.html |here} to see how to use ListOrganizationTenancies API.
2159
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListOrganizationTenancies.ts.html |here} to see how to use ListOrganizationTenancies API.
1836
2160
  */
1837
2161
  listOrganizationTenancies(listOrganizationTenanciesRequest) {
1838
2162
  return __awaiter(this, void 0, void 0, function* () {
@@ -1898,7 +2222,7 @@ class OrganizationClient {
1898
2222
  * @param ListOrganizationsRequest
1899
2223
  * @return ListOrganizationsResponse
1900
2224
  * @throws OciError when an error occurs
1901
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListOrganizations.ts.html |here} to see how to use ListOrganizations API.
2225
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListOrganizations.ts.html |here} to see how to use ListOrganizations API.
1902
2226
  */
1903
2227
  listOrganizations(listOrganizationsRequest) {
1904
2228
  return __awaiter(this, void 0, void 0, function* () {
@@ -1958,12 +2282,12 @@ class OrganizationClient {
1958
2282
  });
1959
2283
  }
1960
2284
  /**
1961
- * An asynchronous API to restore tenancy.
2285
+ * An asynchronous API to restore a tenancy.
1962
2286
  * This operation does not retry by default if the user has not defined a retry configuration.
1963
2287
  * @param RestoreOrganizationTenancyRequest
1964
2288
  * @return RestoreOrganizationTenancyResponse
1965
2289
  * @throws OciError when an error occurs
1966
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/RestoreOrganizationTenancy.ts.html |here} to see how to use RestoreOrganizationTenancy API.
2290
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/RestoreOrganizationTenancy.ts.html |here} to see how to use RestoreOrganizationTenancy API.
1967
2291
  */
1968
2292
  restoreOrganizationTenancy(restoreOrganizationTenancyRequest) {
1969
2293
  return __awaiter(this, void 0, void 0, function* () {
@@ -2023,7 +2347,7 @@ class OrganizationClient {
2023
2347
  * @param UnapproveOrganizationTenancyForTransferRequest
2024
2348
  * @return UnapproveOrganizationTenancyForTransferResponse
2025
2349
  * @throws OciError when an error occurs
2026
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/UnapproveOrganizationTenancyForTransfer.ts.html |here} to see how to use UnapproveOrganizationTenancyForTransfer API.
2350
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/UnapproveOrganizationTenancyForTransfer.ts.html |here} to see how to use UnapproveOrganizationTenancyForTransfer API.
2027
2351
  */
2028
2352
  unapproveOrganizationTenancyForTransfer(unapproveOrganizationTenancyForTransferRequest) {
2029
2353
  return __awaiter(this, void 0, void 0, function* () {
@@ -2085,12 +2409,12 @@ class OrganizationClient {
2085
2409
  });
2086
2410
  }
2087
2411
  /**
2088
- * Assign the default subscription to the organization.
2412
+ * Map the default subscription to the organization.
2089
2413
  * This operation does not retry by default if the user has not defined a retry configuration.
2090
2414
  * @param UpdateOrganizationRequest
2091
2415
  * @return UpdateOrganizationResponse
2092
2416
  * @throws OciError when an error occurs
2093
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/UpdateOrganization.ts.html |here} to see how to use UpdateOrganization API.
2417
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/UpdateOrganization.ts.html |here} to see how to use UpdateOrganization API.
2094
2418
  */
2095
2419
  updateOrganization(updateOrganizationRequest) {
2096
2420
  return __awaiter(this, void 0, void 0, function* () {
@@ -2158,11 +2482,14 @@ var RecipientInvitationApiKeys;
2158
2482
  */
2159
2483
  class RecipientInvitationClient {
2160
2484
  constructor(params, clientConfiguration) {
2485
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
2161
2486
  this["_endpoint"] = "";
2162
2487
  this["_defaultHeaders"] = {};
2163
2488
  this._circuitBreaker = null;
2164
2489
  this._httpOptions = undefined;
2165
2490
  this.targetService = "RecipientInvitation";
2491
+ this._regionId = "";
2492
+ this._lastSetRegionOrRegionId = "";
2166
2493
  const requestSigner = params.authenticationDetailsProvider
2167
2494
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2168
2495
  : null;
@@ -2212,13 +2539,31 @@ class RecipientInvitationClient {
2212
2539
  get logger() {
2213
2540
  return common.LOG.logger;
2214
2541
  }
2542
+ /**
2543
+ * Determines whether realm specific endpoint should be used or not.
2544
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
2545
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
2546
+ */
2547
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2548
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2549
+ if (this.logger)
2550
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2551
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2552
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, this._region, RecipientInvitationClient.endpointServiceName);
2553
+ }
2554
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
2555
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, this._regionId, RecipientInvitationClient.endpointServiceName);
2556
+ }
2557
+ }
2215
2558
  /**
2216
2559
  * Sets the region to call (ex, Region.US_PHOENIX_1).
2217
2560
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2218
2561
  * @param region The region of the service.
2219
2562
  */
2220
2563
  set region(region) {
2564
+ this._region = region;
2221
2565
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, region, RecipientInvitationClient.endpointServiceName);
2566
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
2222
2567
  }
2223
2568
  /**
2224
2569
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -2229,7 +2574,9 @@ class RecipientInvitationClient {
2229
2574
  * @param regionId The public region ID.
2230
2575
  */
2231
2576
  set regionId(regionId) {
2577
+ this._regionId = regionId;
2232
2578
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, regionId, RecipientInvitationClient.endpointServiceName);
2579
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
2233
2580
  }
2234
2581
  /**
2235
2582
  * Creates a new RecipientInvitationWaiter for resources for this service.
@@ -2258,7 +2605,7 @@ class RecipientInvitationClient {
2258
2605
  * @param AcceptRecipientInvitationRequest
2259
2606
  * @return AcceptRecipientInvitationResponse
2260
2607
  * @throws OciError when an error occurs
2261
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/AcceptRecipientInvitation.ts.html |here} to see how to use AcceptRecipientInvitation API.
2608
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/AcceptRecipientInvitation.ts.html |here} to see how to use AcceptRecipientInvitation API.
2262
2609
  */
2263
2610
  acceptRecipientInvitation(acceptRecipientInvitationRequest) {
2264
2611
  return __awaiter(this, void 0, void 0, function* () {
@@ -2319,7 +2666,7 @@ class RecipientInvitationClient {
2319
2666
  * @param GetRecipientInvitationRequest
2320
2667
  * @return GetRecipientInvitationResponse
2321
2668
  * @throws OciError when an error occurs
2322
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetRecipientInvitation.ts.html |here} to see how to use GetRecipientInvitation API.
2669
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetRecipientInvitation.ts.html |here} to see how to use GetRecipientInvitation API.
2323
2670
  */
2324
2671
  getRecipientInvitation(getRecipientInvitationRequest) {
2325
2672
  return __awaiter(this, void 0, void 0, function* () {
@@ -2382,7 +2729,7 @@ class RecipientInvitationClient {
2382
2729
  * @param IgnoreRecipientInvitationRequest
2383
2730
  * @return IgnoreRecipientInvitationResponse
2384
2731
  * @throws OciError when an error occurs
2385
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/IgnoreRecipientInvitation.ts.html |here} to see how to use IgnoreRecipientInvitation API.
2732
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/IgnoreRecipientInvitation.ts.html |here} to see how to use IgnoreRecipientInvitation API.
2386
2733
  */
2387
2734
  ignoreRecipientInvitation(ignoreRecipientInvitationRequest) {
2388
2735
  return __awaiter(this, void 0, void 0, function* () {
@@ -2448,7 +2795,7 @@ class RecipientInvitationClient {
2448
2795
  * @param ListRecipientInvitationsRequest
2449
2796
  * @return ListRecipientInvitationsResponse
2450
2797
  * @throws OciError when an error occurs
2451
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListRecipientInvitations.ts.html |here} to see how to use ListRecipientInvitations API.
2798
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListRecipientInvitations.ts.html |here} to see how to use ListRecipientInvitations API.
2452
2799
  */
2453
2800
  listRecipientInvitations(listRecipientInvitationsRequest) {
2454
2801
  return __awaiter(this, void 0, void 0, function* () {
@@ -2510,12 +2857,12 @@ class RecipientInvitationClient {
2510
2857
  });
2511
2858
  }
2512
2859
  /**
2513
- * Updates the RecipientInvitation.
2860
+ * Updates the recipient invitation.
2514
2861
  * This operation does not retry by default if the user has not defined a retry configuration.
2515
2862
  * @param UpdateRecipientInvitationRequest
2516
2863
  * @return UpdateRecipientInvitationResponse
2517
2864
  * @throws OciError when an error occurs
2518
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/UpdateRecipientInvitation.ts.html |here} to see how to use UpdateRecipientInvitation API.
2865
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/UpdateRecipientInvitation.ts.html |here} to see how to use UpdateRecipientInvitation API.
2519
2866
  */
2520
2867
  updateRecipientInvitation(updateRecipientInvitationRequest) {
2521
2868
  return __awaiter(this, void 0, void 0, function* () {
@@ -2586,11 +2933,14 @@ var SenderInvitationApiKeys;
2586
2933
  */
2587
2934
  class SenderInvitationClient {
2588
2935
  constructor(params, clientConfiguration) {
2936
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
2589
2937
  this["_endpoint"] = "";
2590
2938
  this["_defaultHeaders"] = {};
2591
2939
  this._circuitBreaker = null;
2592
2940
  this._httpOptions = undefined;
2593
2941
  this.targetService = "SenderInvitation";
2942
+ this._regionId = "";
2943
+ this._lastSetRegionOrRegionId = "";
2594
2944
  const requestSigner = params.authenticationDetailsProvider
2595
2945
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2596
2946
  : null;
@@ -2640,13 +2990,31 @@ class SenderInvitationClient {
2640
2990
  get logger() {
2641
2991
  return common.LOG.logger;
2642
2992
  }
2993
+ /**
2994
+ * Determines whether realm specific endpoint should be used or not.
2995
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
2996
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
2997
+ */
2998
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2999
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3000
+ if (this.logger)
3001
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3002
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3003
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, this._region, SenderInvitationClient.endpointServiceName);
3004
+ }
3005
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3006
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, this._regionId, SenderInvitationClient.endpointServiceName);
3007
+ }
3008
+ }
2643
3009
  /**
2644
3010
  * Sets the region to call (ex, Region.US_PHOENIX_1).
2645
3011
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2646
3012
  * @param region The region of the service.
2647
3013
  */
2648
3014
  set region(region) {
3015
+ this._region = region;
2649
3016
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, region, SenderInvitationClient.endpointServiceName);
3017
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
2650
3018
  }
2651
3019
  /**
2652
3020
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -2657,7 +3025,9 @@ class SenderInvitationClient {
2657
3025
  * @param regionId The public region ID.
2658
3026
  */
2659
3027
  set regionId(regionId) {
3028
+ this._regionId = regionId;
2660
3029
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, regionId, SenderInvitationClient.endpointServiceName);
3030
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
2661
3031
  }
2662
3032
  /**
2663
3033
  * Creates a new SenderInvitationWaiter for resources for this service.
@@ -2686,7 +3056,7 @@ class SenderInvitationClient {
2686
3056
  * @param CancelSenderInvitationRequest
2687
3057
  * @return CancelSenderInvitationResponse
2688
3058
  * @throws OciError when an error occurs
2689
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/CancelSenderInvitation.ts.html |here} to see how to use CancelSenderInvitation API.
3059
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/CancelSenderInvitation.ts.html |here} to see how to use CancelSenderInvitation API.
2690
3060
  */
2691
3061
  cancelSenderInvitation(cancelSenderInvitationRequest) {
2692
3062
  return __awaiter(this, void 0, void 0, function* () {
@@ -2747,7 +3117,7 @@ class SenderInvitationClient {
2747
3117
  * @param CreateSenderInvitationRequest
2748
3118
  * @return CreateSenderInvitationResponse
2749
3119
  * @throws OciError when an error occurs
2750
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/CreateSenderInvitation.ts.html |here} to see how to use CreateSenderInvitation API.
3120
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/CreateSenderInvitation.ts.html |here} to see how to use CreateSenderInvitation API.
2751
3121
  */
2752
3122
  createSenderInvitation(createSenderInvitationRequest) {
2753
3123
  return __awaiter(this, void 0, void 0, function* () {
@@ -2815,7 +3185,7 @@ class SenderInvitationClient {
2815
3185
  * @param GetSenderInvitationRequest
2816
3186
  * @return GetSenderInvitationResponse
2817
3187
  * @throws OciError when an error occurs
2818
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetSenderInvitation.ts.html |here} to see how to use GetSenderInvitation API.
3188
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetSenderInvitation.ts.html |here} to see how to use GetSenderInvitation API.
2819
3189
  */
2820
3190
  getSenderInvitation(getSenderInvitationRequest) {
2821
3191
  return __awaiter(this, void 0, void 0, function* () {
@@ -2879,7 +3249,7 @@ class SenderInvitationClient {
2879
3249
  * @param ListSenderInvitationsRequest
2880
3250
  * @return ListSenderInvitationsResponse
2881
3251
  * @throws OciError when an error occurs
2882
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListSenderInvitations.ts.html |here} to see how to use ListSenderInvitations API.
3252
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListSenderInvitations.ts.html |here} to see how to use ListSenderInvitations API.
2883
3253
  */
2884
3254
  listSenderInvitations(listSenderInvitationsRequest) {
2885
3255
  return __awaiter(this, void 0, void 0, function* () {
@@ -2945,12 +3315,12 @@ class SenderInvitationClient {
2945
3315
  });
2946
3316
  }
2947
3317
  /**
2948
- * Updates the SenderInvitation.
3318
+ * Updates the sender invitation.
2949
3319
  * This operation does not retry by default if the user has not defined a retry configuration.
2950
3320
  * @param UpdateSenderInvitationRequest
2951
3321
  * @return UpdateSenderInvitationResponse
2952
3322
  * @throws OciError when an error occurs
2953
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/UpdateSenderInvitation.ts.html |here} to see how to use UpdateSenderInvitation API.
3323
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/UpdateSenderInvitation.ts.html |here} to see how to use UpdateSenderInvitation API.
2954
3324
  */
2955
3325
  updateSenderInvitation(updateSenderInvitationRequest) {
2956
3326
  return __awaiter(this, void 0, void 0, function* () {
@@ -3021,11 +3391,14 @@ var SubscriptionApiKeys;
3021
3391
  */
3022
3392
  class SubscriptionClient {
3023
3393
  constructor(params, clientConfiguration) {
3394
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3024
3395
  this["_endpoint"] = "";
3025
3396
  this["_defaultHeaders"] = {};
3026
3397
  this._circuitBreaker = null;
3027
3398
  this._httpOptions = undefined;
3028
3399
  this.targetService = "Subscription";
3400
+ this._regionId = "";
3401
+ this._lastSetRegionOrRegionId = "";
3029
3402
  const requestSigner = params.authenticationDetailsProvider
3030
3403
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3031
3404
  : null;
@@ -3075,13 +3448,31 @@ class SubscriptionClient {
3075
3448
  get logger() {
3076
3449
  return common.LOG.logger;
3077
3450
  }
3451
+ /**
3452
+ * Determines whether realm specific endpoint should be used or not.
3453
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
3454
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
3455
+ */
3456
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3457
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3458
+ if (this.logger)
3459
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3460
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3461
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscriptionClient.serviceEndpointTemplate, this._region, SubscriptionClient.endpointServiceName);
3462
+ }
3463
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3464
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscriptionClient.serviceEndpointTemplate, this._regionId, SubscriptionClient.endpointServiceName);
3465
+ }
3466
+ }
3078
3467
  /**
3079
3468
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3080
3469
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3081
3470
  * @param region The region of the service.
3082
3471
  */
3083
3472
  set region(region) {
3473
+ this._region = region;
3084
3474
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscriptionClient.serviceEndpointTemplate, region, SubscriptionClient.endpointServiceName);
3475
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3085
3476
  }
3086
3477
  /**
3087
3478
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3092,7 +3483,9 @@ class SubscriptionClient {
3092
3483
  * @param regionId The public region ID.
3093
3484
  */
3094
3485
  set regionId(regionId) {
3486
+ this._regionId = regionId;
3095
3487
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscriptionClient.serviceEndpointTemplate, regionId, SubscriptionClient.endpointServiceName);
3488
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3096
3489
  }
3097
3490
  /**
3098
3491
  * Creates a new SubscriptionWaiter for resources for this service.
@@ -3121,7 +3514,7 @@ class SubscriptionClient {
3121
3514
  * @param CreateSubscriptionMappingRequest
3122
3515
  * @return CreateSubscriptionMappingResponse
3123
3516
  * @throws OciError when an error occurs
3124
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/CreateSubscriptionMapping.ts.html |here} to see how to use CreateSubscriptionMapping API.
3517
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/CreateSubscriptionMapping.ts.html |here} to see how to use CreateSubscriptionMapping API.
3125
3518
  */
3126
3519
  createSubscriptionMapping(createSubscriptionMappingRequest) {
3127
3520
  return __awaiter(this, void 0, void 0, function* () {
@@ -3190,7 +3583,7 @@ class SubscriptionClient {
3190
3583
  * @param DeleteSubscriptionMappingRequest
3191
3584
  * @return DeleteSubscriptionMappingResponse
3192
3585
  * @throws OciError when an error occurs
3193
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/DeleteSubscriptionMapping.ts.html |here} to see how to use DeleteSubscriptionMapping API.
3586
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/DeleteSubscriptionMapping.ts.html |here} to see how to use DeleteSubscriptionMapping API.
3194
3587
  */
3195
3588
  deleteSubscriptionMapping(deleteSubscriptionMappingRequest) {
3196
3589
  return __awaiter(this, void 0, void 0, function* () {
@@ -3245,7 +3638,7 @@ class SubscriptionClient {
3245
3638
  * @param GetAssignedSubscriptionRequest
3246
3639
  * @return GetAssignedSubscriptionResponse
3247
3640
  * @throws OciError when an error occurs
3248
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetAssignedSubscription.ts.html |here} to see how to use GetAssignedSubscription API.
3641
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetAssignedSubscription.ts.html |here} to see how to use GetAssignedSubscription API.
3249
3642
  */
3250
3643
  getAssignedSubscription(getAssignedSubscriptionRequest) {
3251
3644
  return __awaiter(this, void 0, void 0, function* () {
@@ -3308,7 +3701,7 @@ class SubscriptionClient {
3308
3701
  * @param GetSubscriptionRequest
3309
3702
  * @return GetSubscriptionResponse
3310
3703
  * @throws OciError when an error occurs
3311
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetSubscription.ts.html |here} to see how to use GetSubscription API.
3704
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetSubscription.ts.html |here} to see how to use GetSubscription API.
3312
3705
  */
3313
3706
  getSubscription(getSubscriptionRequest) {
3314
3707
  return __awaiter(this, void 0, void 0, function* () {
@@ -3371,7 +3764,7 @@ class SubscriptionClient {
3371
3764
  * @param GetSubscriptionMappingRequest
3372
3765
  * @return GetSubscriptionMappingResponse
3373
3766
  * @throws OciError when an error occurs
3374
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetSubscriptionMapping.ts.html |here} to see how to use GetSubscriptionMapping API.
3767
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetSubscriptionMapping.ts.html |here} to see how to use GetSubscriptionMapping API.
3375
3768
  */
3376
3769
  getSubscriptionMapping(getSubscriptionMappingRequest) {
3377
3770
  return __awaiter(this, void 0, void 0, function* () {
@@ -3434,7 +3827,7 @@ class SubscriptionClient {
3434
3827
  * @param ListAssignedSubscriptionsRequest
3435
3828
  * @return ListAssignedSubscriptionsResponse
3436
3829
  * @throws OciError when an error occurs
3437
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListAssignedSubscriptions.ts.html |here} to see how to use ListAssignedSubscriptions API.
3830
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListAssignedSubscriptions.ts.html |here} to see how to use ListAssignedSubscriptions API.
3438
3831
  */
3439
3832
  listAssignedSubscriptions(listAssignedSubscriptionsRequest) {
3440
3833
  return __awaiter(this, void 0, void 0, function* () {
@@ -3502,7 +3895,7 @@ class SubscriptionClient {
3502
3895
  * @param ListAvailableRegionsRequest
3503
3896
  * @return ListAvailableRegionsResponse
3504
3897
  * @throws OciError when an error occurs
3505
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListAvailableRegions.ts.html |here} to see how to use ListAvailableRegions API.
3898
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListAvailableRegions.ts.html |here} to see how to use ListAvailableRegions API.
3506
3899
  */
3507
3900
  listAvailableRegions(listAvailableRegionsRequest) {
3508
3901
  return __awaiter(this, void 0, void 0, function* () {
@@ -3567,7 +3960,7 @@ class SubscriptionClient {
3567
3960
  * @param ListSubscriptionMappingsRequest
3568
3961
  * @return ListSubscriptionMappingsResponse
3569
3962
  * @throws OciError when an error occurs
3570
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListSubscriptionMappings.ts.html |here} to see how to use ListSubscriptionMappings API.
3963
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListSubscriptionMappings.ts.html |here} to see how to use ListSubscriptionMappings API.
3571
3964
  */
3572
3965
  listSubscriptionMappings(listSubscriptionMappingsRequest) {
3573
3966
  return __awaiter(this, void 0, void 0, function* () {
@@ -3637,7 +4030,7 @@ class SubscriptionClient {
3637
4030
  * @param ListSubscriptionsRequest
3638
4031
  * @return ListSubscriptionsResponse
3639
4032
  * @throws OciError when an error occurs
3640
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
4033
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
3641
4034
  */
3642
4035
  listSubscriptions(listSubscriptionsRequest) {
3643
4036
  return __awaiter(this, void 0, void 0, function* () {
@@ -3711,11 +4104,14 @@ var WorkRequestApiKeys;
3711
4104
  */
3712
4105
  class WorkRequestClient {
3713
4106
  constructor(params, clientConfiguration) {
4107
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3714
4108
  this["_endpoint"] = "";
3715
4109
  this["_defaultHeaders"] = {};
3716
4110
  this._circuitBreaker = null;
3717
4111
  this._httpOptions = undefined;
3718
4112
  this.targetService = "WorkRequest";
4113
+ this._regionId = "";
4114
+ this._lastSetRegionOrRegionId = "";
3719
4115
  const requestSigner = params.authenticationDetailsProvider
3720
4116
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3721
4117
  : null;
@@ -3765,13 +4161,31 @@ class WorkRequestClient {
3765
4161
  get logger() {
3766
4162
  return common.LOG.logger;
3767
4163
  }
4164
+ /**
4165
+ * Determines whether realm specific endpoint should be used or not.
4166
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
4167
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
4168
+ */
4169
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
4170
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
4171
+ if (this.logger)
4172
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
4173
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
4174
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
4175
+ }
4176
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
4177
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, this._regionId, WorkRequestClient.endpointServiceName);
4178
+ }
4179
+ }
3768
4180
  /**
3769
4181
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3770
4182
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3771
4183
  * @param region The region of the service.
3772
4184
  */
3773
4185
  set region(region) {
4186
+ this._region = region;
3774
4187
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, region, WorkRequestClient.endpointServiceName);
4188
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3775
4189
  }
3776
4190
  /**
3777
4191
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3782,7 +4196,9 @@ class WorkRequestClient {
3782
4196
  * @param regionId The public region ID.
3783
4197
  */
3784
4198
  set regionId(regionId) {
4199
+ this._regionId = regionId;
3785
4200
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, regionId, WorkRequestClient.endpointServiceName);
4201
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3786
4202
  }
3787
4203
  /**
3788
4204
  * Creates a new WorkRequestWaiter for resources for this service.
@@ -3811,7 +4227,7 @@ class WorkRequestClient {
3811
4227
  * @param GetWorkRequestRequest
3812
4228
  * @return GetWorkRequestResponse
3813
4229
  * @throws OciError when an error occurs
3814
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
4230
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3815
4231
  */
3816
4232
  getWorkRequest(getWorkRequestRequest) {
3817
4233
  return __awaiter(this, void 0, void 0, function* () {
@@ -3875,7 +4291,7 @@ class WorkRequestClient {
3875
4291
  * @param ListWorkRequestErrorsRequest
3876
4292
  * @return ListWorkRequestErrorsResponse
3877
4293
  * @throws OciError when an error occurs
3878
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
4294
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3879
4295
  */
3880
4296
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
3881
4297
  return __awaiter(this, void 0, void 0, function* () {
@@ -3943,7 +4359,7 @@ class WorkRequestClient {
3943
4359
  * @param ListWorkRequestLogsRequest
3944
4360
  * @return ListWorkRequestLogsResponse
3945
4361
  * @throws OciError when an error occurs
3946
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4362
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3947
4363
  */
3948
4364
  listWorkRequestLogs(listWorkRequestLogsRequest) {
3949
4365
  return __awaiter(this, void 0, void 0, function* () {
@@ -4011,7 +4427,7 @@ class WorkRequestClient {
4011
4427
  * @param ListWorkRequestsRequest
4012
4428
  * @return ListWorkRequestsResponse
4013
4429
  * @throws OciError when an error occurs
4014
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/tenantmanagercontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4430
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/tenantmanagercontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4015
4431
  */
4016
4432
  listWorkRequests(listWorkRequestsRequest) {
4017
4433
  return __awaiter(this, void 0, void 0, function* () {