oci-tenantmanagercontrolplane 2.5.2 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/index.d.ts +6 -0
  2. package/index.js +7 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +351 -31
  5. package/lib/client.js +1781 -326
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/activate-order-details.d.ts +2 -2
  8. package/lib/model/assigned-subscription-collection.d.ts +26 -0
  9. package/lib/model/assigned-subscription-collection.js +61 -0
  10. package/lib/model/assigned-subscription-collection.js.map +1 -0
  11. package/lib/model/assigned-subscription-summary.d.ts +66 -0
  12. package/lib/model/assigned-subscription-summary.js +29 -0
  13. package/lib/model/assigned-subscription-summary.js.map +1 -0
  14. package/lib/model/assigned-subscription.d.ts +74 -0
  15. package/lib/model/assigned-subscription.js +61 -0
  16. package/lib/model/assigned-subscription.js.map +1 -0
  17. package/lib/model/available-region-collection.d.ts +26 -0
  18. package/lib/model/available-region-collection.js +61 -0
  19. package/lib/model/available-region-collection.js.map +1 -0
  20. package/lib/model/available-region-summary.d.ts +25 -0
  21. package/lib/model/available-region-summary.js +29 -0
  22. package/lib/model/available-region-summary.js.map +1 -0
  23. package/lib/model/create-child-tenancy-details.d.ts +41 -0
  24. package/lib/model/create-child-tenancy-details.js +29 -0
  25. package/lib/model/create-child-tenancy-details.js.map +1 -0
  26. package/lib/model/create-subscription-mapping-details.d.ts +29 -0
  27. package/lib/model/create-subscription-mapping-details.js +29 -0
  28. package/lib/model/create-subscription-mapping-details.js.map +1 -0
  29. package/lib/model/domain-governance-summary.d.ts +2 -2
  30. package/lib/model/domain-governance.d.ts +2 -2
  31. package/lib/model/domain-summary.d.ts +2 -2
  32. package/lib/model/domain.d.ts +2 -2
  33. package/lib/model/index.d.ts +48 -0
  34. package/lib/model/index.js +50 -1
  35. package/lib/model/index.js.map +1 -1
  36. package/lib/model/link.d.ts +1 -1
  37. package/lib/model/operation-type.d.ts +4 -0
  38. package/lib/model/operation-type.js +4 -0
  39. package/lib/model/operation-type.js.map +1 -1
  40. package/lib/model/order.d.ts +4 -4
  41. package/lib/model/organization-collection.d.ts +26 -0
  42. package/lib/model/organization-collection.js +61 -0
  43. package/lib/model/organization-collection.js.map +1 -0
  44. package/lib/model/organization-summary.d.ts +53 -0
  45. package/lib/model/organization-summary.js +29 -0
  46. package/lib/model/organization-summary.js.map +1 -0
  47. package/lib/model/organization-tenancy-collection.d.ts +26 -0
  48. package/lib/model/organization-tenancy-collection.js +61 -0
  49. package/lib/model/organization-tenancy-collection.js.map +1 -0
  50. package/lib/model/organization-tenancy-lifecycle-state.d.ts +32 -0
  51. package/lib/model/organization-tenancy-lifecycle-state.js +43 -0
  52. package/lib/model/organization-tenancy-lifecycle-state.js.map +1 -0
  53. package/lib/model/organization-tenancy-role.d.ts +29 -0
  54. package/lib/model/organization-tenancy-role.js +40 -0
  55. package/lib/model/organization-tenancy-role.js.map +1 -0
  56. package/lib/model/organization-tenancy-summary.d.ts +50 -0
  57. package/lib/model/organization-tenancy-summary.js +29 -0
  58. package/lib/model/organization-tenancy-summary.js.map +1 -0
  59. package/lib/model/organization-tenancy.d.ts +50 -0
  60. package/lib/model/organization-tenancy.js +29 -0
  61. package/lib/model/organization-tenancy.js.map +1 -0
  62. package/lib/model/organization.d.ts +66 -0
  63. package/lib/model/organization.js +43 -0
  64. package/lib/model/organization.js.map +1 -0
  65. package/lib/model/sku.d.ts +4 -4
  66. package/lib/model/subscription-collection.d.ts +26 -0
  67. package/lib/model/subscription-collection.js +61 -0
  68. package/lib/model/subscription-collection.js.map +1 -0
  69. package/lib/model/subscription-info.d.ts +6 -6
  70. package/lib/model/subscription-lifecycle-state.d.ts +33 -0
  71. package/lib/model/subscription-lifecycle-state.js +44 -0
  72. package/lib/model/subscription-lifecycle-state.js.map +1 -0
  73. package/lib/model/subscription-mapping-collection.d.ts +26 -0
  74. package/lib/model/subscription-mapping-collection.js +61 -0
  75. package/lib/model/subscription-mapping-collection.js.map +1 -0
  76. package/lib/model/subscription-mapping-summary.d.ts +53 -0
  77. package/lib/model/subscription-mapping-summary.js +29 -0
  78. package/lib/model/subscription-mapping-summary.js.map +1 -0
  79. package/lib/model/subscription-mapping.d.ts +67 -0
  80. package/lib/model/subscription-mapping.js +44 -0
  81. package/lib/model/subscription-mapping.js.map +1 -0
  82. package/lib/model/subscription-sku.d.ts +61 -0
  83. package/lib/model/subscription-sku.js +29 -0
  84. package/lib/model/subscription-sku.js.map +1 -0
  85. package/lib/model/subscription-summary.d.ts +70 -0
  86. package/lib/model/subscription-summary.js +29 -0
  87. package/lib/model/subscription-summary.js.map +1 -0
  88. package/lib/model/subscription.d.ts +74 -0
  89. package/lib/model/subscription.js +61 -0
  90. package/lib/model/subscription.js.map +1 -0
  91. package/lib/model/update-organization-details.d.ts +25 -0
  92. package/lib/model/update-organization-details.js +29 -0
  93. package/lib/model/update-organization-details.js.map +1 -0
  94. package/lib/model/work-request-error.d.ts +1 -1
  95. package/lib/model/work-request-log-entry.d.ts +1 -1
  96. package/lib/model/work-request.d.ts +2 -2
  97. package/lib/organization-waiter.d.ts +37 -0
  98. package/lib/organization-waiter.js +77 -0
  99. package/lib/organization-waiter.js.map +1 -0
  100. package/lib/request/accept-recipient-invitation-request.d.ts +1 -1
  101. package/lib/request/activate-order-request.d.ts +1 -1
  102. package/lib/request/approve-organization-tenancy-for-transfer-request.d.ts +48 -0
  103. package/lib/request/approve-organization-tenancy-for-transfer-request.js +15 -0
  104. package/lib/request/approve-organization-tenancy-for-transfer-request.js.map +1 -0
  105. package/lib/request/cancel-sender-invitation-request.d.ts +1 -1
  106. package/lib/request/create-child-tenancy-request.d.ts +36 -0
  107. package/lib/request/create-child-tenancy-request.js +15 -0
  108. package/lib/request/create-child-tenancy-request.js.map +1 -0
  109. package/lib/request/create-domain-governance-request.d.ts +1 -1
  110. package/lib/request/create-domain-request.d.ts +1 -1
  111. package/lib/request/create-sender-invitation-request.d.ts +1 -1
  112. package/lib/request/create-subscription-mapping-request.d.ts +45 -0
  113. package/lib/request/create-subscription-mapping-request.js +15 -0
  114. package/lib/request/create-subscription-mapping-request.js.map +1 -0
  115. package/lib/request/delete-domain-governance-request.d.ts +1 -1
  116. package/lib/request/delete-domain-request.d.ts +1 -1
  117. package/lib/request/delete-link-request.d.ts +1 -1
  118. package/lib/request/delete-organization-tenancy-request.d.ts +44 -0
  119. package/lib/request/delete-organization-tenancy-request.js +15 -0
  120. package/lib/request/delete-organization-tenancy-request.js.map +1 -0
  121. package/lib/request/delete-subscription-mapping-request.d.ts +35 -0
  122. package/lib/request/delete-subscription-mapping-request.js +15 -0
  123. package/lib/request/delete-subscription-mapping-request.js.map +1 -0
  124. package/lib/request/get-assigned-subscription-request.d.ts +26 -0
  125. package/lib/request/get-assigned-subscription-request.js +15 -0
  126. package/lib/request/get-assigned-subscription-request.js.map +1 -0
  127. package/lib/request/get-domain-governance-request.d.ts +1 -1
  128. package/lib/request/get-domain-request.d.ts +1 -1
  129. package/lib/request/get-link-request.d.ts +1 -1
  130. package/lib/request/get-order-request.d.ts +1 -1
  131. package/lib/request/get-organization-request.d.ts +26 -0
  132. package/lib/request/get-organization-request.js +15 -0
  133. package/lib/request/get-organization-request.js.map +1 -0
  134. package/lib/request/get-organization-tenancy-request.d.ts +30 -0
  135. package/lib/request/get-organization-tenancy-request.js +15 -0
  136. package/lib/request/get-organization-tenancy-request.js.map +1 -0
  137. package/lib/request/get-recipient-invitation-request.d.ts +1 -1
  138. package/lib/request/get-sender-invitation-request.d.ts +1 -1
  139. package/lib/request/get-subscription-mapping-request.d.ts +26 -0
  140. package/lib/request/get-subscription-mapping-request.js +15 -0
  141. package/lib/request/get-subscription-mapping-request.js.map +1 -0
  142. package/lib/request/get-subscription-request.d.ts +26 -0
  143. package/lib/request/get-subscription-request.js +15 -0
  144. package/lib/request/get-subscription-request.js.map +1 -0
  145. package/lib/request/get-work-request-request.d.ts +1 -1
  146. package/lib/request/ignore-recipient-invitation-request.d.ts +1 -1
  147. package/lib/request/index.d.ts +36 -0
  148. package/lib/request/index.js +7 -1
  149. package/lib/request/index.js.map +1 -1
  150. package/lib/request/list-assigned-subscriptions-request.d.ts +57 -0
  151. package/lib/request/list-assigned-subscriptions-request.js +24 -0
  152. package/lib/request/list-assigned-subscriptions-request.js.map +1 -0
  153. package/lib/request/list-available-regions-request.d.ts +30 -0
  154. package/lib/request/list-available-regions-request.js +15 -0
  155. package/lib/request/list-available-regions-request.js.map +1 -0
  156. package/lib/request/list-domain-governances-request.d.ts +1 -1
  157. package/lib/request/list-domains-request.d.ts +1 -1
  158. package/lib/request/list-links-request.d.ts +1 -1
  159. package/lib/request/list-organization-tenancies-request.d.ts +34 -0
  160. package/lib/request/list-organization-tenancies-request.js +15 -0
  161. package/lib/request/list-organization-tenancies-request.js.map +1 -0
  162. package/lib/request/list-organizations-request.d.ts +34 -0
  163. package/lib/request/list-organizations-request.js +15 -0
  164. package/lib/request/list-organizations-request.js.map +1 -0
  165. package/lib/request/list-recipient-invitations-request.d.ts +1 -1
  166. package/lib/request/list-sender-invitations-request.d.ts +1 -1
  167. package/lib/request/list-subscription-mappings-request.d.ts +65 -0
  168. package/lib/request/list-subscription-mappings-request.js +24 -0
  169. package/lib/request/list-subscription-mappings-request.js.map +1 -0
  170. package/lib/request/list-subscriptions-request.d.ts +57 -0
  171. package/lib/request/list-subscriptions-request.js +24 -0
  172. package/lib/request/list-subscriptions-request.js.map +1 -0
  173. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  174. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  175. package/lib/request/list-work-requests-request.d.ts +1 -1
  176. package/lib/request/unapprove-organization-tenancy-for-transfer-request.d.ts +48 -0
  177. package/lib/request/unapprove-organization-tenancy-for-transfer-request.js +15 -0
  178. package/lib/request/unapprove-organization-tenancy-for-transfer-request.js.map +1 -0
  179. package/lib/request/update-domain-governance-request.d.ts +1 -1
  180. package/lib/request/update-domain-request.d.ts +1 -1
  181. package/lib/request/update-organization-request.d.ts +49 -0
  182. package/lib/request/update-organization-request.js +15 -0
  183. package/lib/request/update-organization-request.js.map +1 -0
  184. package/lib/request/update-recipient-invitation-request.d.ts +1 -1
  185. package/lib/request/update-sender-invitation-request.d.ts +1 -1
  186. package/lib/response/approve-organization-tenancy-for-transfer-response.d.ts +30 -0
  187. package/lib/response/approve-organization-tenancy-for-transfer-response.js +15 -0
  188. package/lib/response/approve-organization-tenancy-for-transfer-response.js.map +1 -0
  189. package/lib/response/create-child-tenancy-response.d.ts +25 -0
  190. package/lib/response/create-child-tenancy-response.js +15 -0
  191. package/lib/response/create-child-tenancy-response.js.map +1 -0
  192. package/lib/response/create-subscription-mapping-response.d.ts +35 -0
  193. package/lib/response/create-subscription-mapping-response.js +15 -0
  194. package/lib/response/create-subscription-mapping-response.js.map +1 -0
  195. package/lib/response/delete-link-response.d.ts +5 -0
  196. package/lib/response/delete-organization-tenancy-response.d.ts +25 -0
  197. package/lib/response/delete-organization-tenancy-response.js +15 -0
  198. package/lib/response/delete-organization-tenancy-response.js.map +1 -0
  199. package/lib/response/delete-subscription-mapping-response.d.ts +20 -0
  200. package/lib/response/delete-subscription-mapping-response.js +15 -0
  201. package/lib/response/delete-subscription-mapping-response.js.map +1 -0
  202. package/lib/response/get-assigned-subscription-response.d.ts +30 -0
  203. package/lib/response/get-assigned-subscription-response.js +15 -0
  204. package/lib/response/get-assigned-subscription-response.js.map +1 -0
  205. package/lib/response/get-organization-response.d.ts +30 -0
  206. package/lib/response/get-organization-response.js +15 -0
  207. package/lib/response/get-organization-response.js.map +1 -0
  208. package/lib/response/get-organization-tenancy-response.d.ts +30 -0
  209. package/lib/response/get-organization-tenancy-response.js +15 -0
  210. package/lib/response/get-organization-tenancy-response.js.map +1 -0
  211. package/lib/response/get-subscription-mapping-response.d.ts +30 -0
  212. package/lib/response/get-subscription-mapping-response.js +15 -0
  213. package/lib/response/get-subscription-mapping-response.js.map +1 -0
  214. package/lib/response/get-subscription-response.d.ts +30 -0
  215. package/lib/response/get-subscription-response.js +15 -0
  216. package/lib/response/get-subscription-response.js.map +1 -0
  217. package/lib/response/index.d.ts +36 -0
  218. package/lib/response/list-assigned-subscriptions-response.d.ts +32 -0
  219. package/lib/response/list-assigned-subscriptions-response.js +15 -0
  220. package/lib/response/list-assigned-subscriptions-response.js.map +1 -0
  221. package/lib/response/list-available-regions-response.d.ts +32 -0
  222. package/lib/response/list-available-regions-response.js +15 -0
  223. package/lib/response/list-available-regions-response.js.map +1 -0
  224. package/lib/response/list-organization-tenancies-response.d.ts +32 -0
  225. package/lib/response/list-organization-tenancies-response.js +15 -0
  226. package/lib/response/list-organization-tenancies-response.js.map +1 -0
  227. package/lib/response/list-organizations-response.d.ts +32 -0
  228. package/lib/response/list-organizations-response.js +15 -0
  229. package/lib/response/list-organizations-response.js.map +1 -0
  230. package/lib/response/list-subscription-mappings-response.d.ts +32 -0
  231. package/lib/response/list-subscription-mappings-response.js +15 -0
  232. package/lib/response/list-subscription-mappings-response.js.map +1 -0
  233. package/lib/response/list-subscriptions-response.d.ts +32 -0
  234. package/lib/response/list-subscriptions-response.js +15 -0
  235. package/lib/response/list-subscriptions-response.js.map +1 -0
  236. package/lib/response/unapprove-organization-tenancy-for-transfer-response.d.ts +30 -0
  237. package/lib/response/unapprove-organization-tenancy-for-transfer-response.js +15 -0
  238. package/lib/response/unapprove-organization-tenancy-for-transfer-response.js.map +1 -0
  239. package/lib/response/update-organization-response.d.ts +25 -0
  240. package/lib/response/update-organization-response.js +15 -0
  241. package/lib/response/update-organization-response.js.map +1 -0
  242. package/lib/subscription-waiter.d.ts +45 -0
  243. package/lib/subscription-waiter.js +89 -0
  244. package/lib/subscription-waiter.js.map +1 -0
  245. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -40,14 +40,16 @@ 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.SenderInvitationClient = exports.SenderInvitationApiKeys = exports.RecipientInvitationClient = exports.RecipientInvitationApiKeys = 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.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");
47
47
  const domaingovernance_waiter_1 = require("./domaingovernance-waiter");
48
48
  const link_waiter_1 = require("./link-waiter");
49
+ const organization_waiter_1 = require("./organization-waiter");
49
50
  const recipientinvitation_waiter_1 = require("./recipientinvitation-waiter");
50
51
  const senderinvitation_waiter_1 = require("./senderinvitation-waiter");
52
+ const subscription_waiter_1 = require("./subscription-waiter");
51
53
  const workrequest_waiter_1 = require("./workrequest-waiter");
52
54
  const oci_common_1 = require("oci-common");
53
55
  // ===============================================
@@ -56,6 +58,9 @@ const oci_common_1 = require("oci-common");
56
58
  var DomainApiKeys;
57
59
  (function (DomainApiKeys) {
58
60
  })(DomainApiKeys = exports.DomainApiKeys || (exports.DomainApiKeys = {}));
61
+ /**
62
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
63
+ */
59
64
  class DomainClient {
60
65
  constructor(params, clientConfiguration) {
61
66
  this["_endpoint"] = "";
@@ -70,6 +75,13 @@ class DomainClient {
70
75
  ? clientConfiguration.circuitBreaker.circuit
71
76
  : null;
72
77
  }
78
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
79
+ const specCircuitBreakerEnabled = false;
80
+ if (!this._circuitBreaker &&
81
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
82
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
83
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
84
+ }
73
85
  this._httpClient =
74
86
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
75
87
  if (params.authenticationDetailsProvider &&
@@ -141,10 +153,11 @@ class DomainClient {
141
153
  }
142
154
  /**
143
155
  * Begins the registration process for claiming a domain.
156
+ * This operation does not retry by default if the user has not defined a retry configuration.
144
157
  * @param CreateDomainRequest
145
158
  * @return CreateDomainResponse
146
159
  * @throws OciError when an error occurs
147
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/CreateDomain.ts.html |here} to see how to use CreateDomain API.
160
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CreateDomain.ts.html |here} to see how to use CreateDomain API.
148
161
  */
149
162
  createDomain(createDomainRequest) {
150
163
  return __awaiter(this, void 0, void 0, function* () {
@@ -157,7 +170,8 @@ class DomainClient {
157
170
  "opc-retry-token": createDomainRequest.opcRetryToken,
158
171
  "opc-request-id": createDomainRequest.opcRequestId
159
172
  };
160
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createDomainRequest.retryConfiguration);
173
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
174
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDomainRequest.retryConfiguration, specRetryConfiguration);
161
175
  if (this.logger)
162
176
  retrier.logger = this.logger;
163
177
  const request = yield oci_common_1.composeRequest({
@@ -205,10 +219,11 @@ class DomainClient {
205
219
  }
206
220
  /**
207
221
  * Releases the domain, making it available to be claimed again by another tenancy.
222
+ * This operation does not retry by default if the user has not defined a retry configuration.
208
223
  * @param DeleteDomainRequest
209
224
  * @return DeleteDomainResponse
210
225
  * @throws OciError when an error occurs
211
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/DeleteDomain.ts.html |here} to see how to use DeleteDomain API.
226
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/DeleteDomain.ts.html |here} to see how to use DeleteDomain API.
212
227
  */
213
228
  deleteDomain(deleteDomainRequest) {
214
229
  return __awaiter(this, void 0, void 0, function* () {
@@ -223,7 +238,8 @@ class DomainClient {
223
238
  "if-match": deleteDomainRequest.ifMatch,
224
239
  "opc-request-id": deleteDomainRequest.opcRequestId
225
240
  };
226
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteDomainRequest.retryConfiguration);
241
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
242
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDomainRequest.retryConfiguration, specRetryConfiguration);
227
243
  if (this.logger)
228
244
  retrier.logger = this.logger;
229
245
  const request = yield oci_common_1.composeRequest({
@@ -256,10 +272,11 @@ class DomainClient {
256
272
  }
257
273
  /**
258
274
  * Gets information about the domain.
275
+ * This operation does not retry by default if the user has not defined a retry configuration.
259
276
  * @param GetDomainRequest
260
277
  * @return GetDomainResponse
261
278
  * @throws OciError when an error occurs
262
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetDomain.ts.html |here} to see how to use GetDomain API.
279
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetDomain.ts.html |here} to see how to use GetDomain API.
263
280
  */
264
281
  getDomain(getDomainRequest) {
265
282
  return __awaiter(this, void 0, void 0, function* () {
@@ -273,7 +290,8 @@ class DomainClient {
273
290
  "Content-Type": common.Constants.APPLICATION_JSON,
274
291
  "opc-request-id": getDomainRequest.opcRequestId
275
292
  };
276
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDomainRequest.retryConfiguration);
293
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
294
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDomainRequest.retryConfiguration, specRetryConfiguration);
277
295
  if (this.logger)
278
296
  retrier.logger = this.logger;
279
297
  const request = yield oci_common_1.composeRequest({
@@ -316,10 +334,11 @@ class DomainClient {
316
334
  /**
317
335
  * Return a (paginated) list of domains.
318
336
  *
337
+ * This operation does not retry by default if the user has not defined a retry configuration.
319
338
  * @param ListDomainsRequest
320
339
  * @return ListDomainsResponse
321
340
  * @throws OciError when an error occurs
322
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListDomains.ts.html |here} to see how to use ListDomains API.
341
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListDomains.ts.html |here} to see how to use ListDomains API.
323
342
  */
324
343
  listDomains(listDomainsRequest) {
325
344
  return __awaiter(this, void 0, void 0, function* () {
@@ -341,7 +360,8 @@ class DomainClient {
341
360
  "Content-Type": common.Constants.APPLICATION_JSON,
342
361
  "opc-request-id": listDomainsRequest.opcRequestId
343
362
  };
344
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listDomainsRequest.retryConfiguration);
363
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
364
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDomainsRequest.retryConfiguration, specRetryConfiguration);
345
365
  if (this.logger)
346
366
  retrier.logger = this.logger;
347
367
  const request = yield oci_common_1.composeRequest({
@@ -383,10 +403,11 @@ class DomainClient {
383
403
  }
384
404
  /**
385
405
  * Updates the domain.
406
+ * This operation does not retry by default if the user has not defined a retry configuration.
386
407
  * @param UpdateDomainRequest
387
408
  * @return UpdateDomainResponse
388
409
  * @throws OciError when an error occurs
389
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/UpdateDomain.ts.html |here} to see how to use UpdateDomain API.
410
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UpdateDomain.ts.html |here} to see how to use UpdateDomain API.
390
411
  */
391
412
  updateDomain(updateDomainRequest) {
392
413
  return __awaiter(this, void 0, void 0, function* () {
@@ -401,7 +422,8 @@ class DomainClient {
401
422
  "if-match": updateDomainRequest.ifMatch,
402
423
  "opc-request-id": updateDomainRequest.opcRequestId
403
424
  };
404
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateDomainRequest.retryConfiguration);
425
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
426
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDomainRequest.retryConfiguration, specRetryConfiguration);
405
427
  if (this.logger)
406
428
  retrier.logger = this.logger;
407
429
  const request = yield oci_common_1.composeRequest({
@@ -448,6 +470,9 @@ DomainClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{seco
448
470
  var DomainGovernanceApiKeys;
449
471
  (function (DomainGovernanceApiKeys) {
450
472
  })(DomainGovernanceApiKeys = exports.DomainGovernanceApiKeys || (exports.DomainGovernanceApiKeys = {}));
473
+ /**
474
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
475
+ */
451
476
  class DomainGovernanceClient {
452
477
  constructor(params, clientConfiguration) {
453
478
  this["_endpoint"] = "";
@@ -462,6 +487,13 @@ class DomainGovernanceClient {
462
487
  ? clientConfiguration.circuitBreaker.circuit
463
488
  : null;
464
489
  }
490
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
491
+ const specCircuitBreakerEnabled = false;
492
+ if (!this._circuitBreaker &&
493
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
494
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
495
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
496
+ }
465
497
  this._httpClient =
466
498
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
467
499
  if (params.authenticationDetailsProvider &&
@@ -533,10 +565,11 @@ class DomainGovernanceClient {
533
565
  }
534
566
  /**
535
567
  * Adds domain governance to a claimed domain.
568
+ * This operation does not retry by default if the user has not defined a retry configuration.
536
569
  * @param CreateDomainGovernanceRequest
537
570
  * @return CreateDomainGovernanceResponse
538
571
  * @throws OciError when an error occurs
539
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/CreateDomainGovernance.ts.html |here} to see how to use CreateDomainGovernance API.
572
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CreateDomainGovernance.ts.html |here} to see how to use CreateDomainGovernance API.
540
573
  */
541
574
  createDomainGovernance(createDomainGovernanceRequest) {
542
575
  return __awaiter(this, void 0, void 0, function* () {
@@ -549,7 +582,8 @@ class DomainGovernanceClient {
549
582
  "opc-retry-token": createDomainGovernanceRequest.opcRetryToken,
550
583
  "opc-request-id": createDomainGovernanceRequest.opcRequestId
551
584
  };
552
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createDomainGovernanceRequest.retryConfiguration);
585
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
586
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDomainGovernanceRequest.retryConfiguration, specRetryConfiguration);
553
587
  if (this.logger)
554
588
  retrier.logger = this.logger;
555
589
  const request = yield oci_common_1.composeRequest({
@@ -592,10 +626,11 @@ class DomainGovernanceClient {
592
626
  }
593
627
  /**
594
628
  * Removes domain governance from a claimed domain.
629
+ * This operation does not retry by default if the user has not defined a retry configuration.
595
630
  * @param DeleteDomainGovernanceRequest
596
631
  * @return DeleteDomainGovernanceResponse
597
632
  * @throws OciError when an error occurs
598
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/DeleteDomainGovernance.ts.html |here} to see how to use DeleteDomainGovernance API.
633
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/DeleteDomainGovernance.ts.html |here} to see how to use DeleteDomainGovernance API.
599
634
  */
600
635
  deleteDomainGovernance(deleteDomainGovernanceRequest) {
601
636
  return __awaiter(this, void 0, void 0, function* () {
@@ -610,7 +645,8 @@ class DomainGovernanceClient {
610
645
  "if-match": deleteDomainGovernanceRequest.ifMatch,
611
646
  "opc-request-id": deleteDomainGovernanceRequest.opcRequestId
612
647
  };
613
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteDomainGovernanceRequest.retryConfiguration);
648
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
649
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDomainGovernanceRequest.retryConfiguration, specRetryConfiguration);
614
650
  if (this.logger)
615
651
  retrier.logger = this.logger;
616
652
  const request = yield oci_common_1.composeRequest({
@@ -643,10 +679,11 @@ class DomainGovernanceClient {
643
679
  }
644
680
  /**
645
681
  * Gets information about the domain governance entity.
682
+ * This operation does not retry by default if the user has not defined a retry configuration.
646
683
  * @param GetDomainGovernanceRequest
647
684
  * @return GetDomainGovernanceResponse
648
685
  * @throws OciError when an error occurs
649
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetDomainGovernance.ts.html |here} to see how to use GetDomainGovernance API.
686
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetDomainGovernance.ts.html |here} to see how to use GetDomainGovernance API.
650
687
  */
651
688
  getDomainGovernance(getDomainGovernanceRequest) {
652
689
  return __awaiter(this, void 0, void 0, function* () {
@@ -660,7 +697,8 @@ class DomainGovernanceClient {
660
697
  "Content-Type": common.Constants.APPLICATION_JSON,
661
698
  "opc-request-id": getDomainGovernanceRequest.opcRequestId
662
699
  };
663
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getDomainGovernanceRequest.retryConfiguration);
700
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
701
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDomainGovernanceRequest.retryConfiguration, specRetryConfiguration);
664
702
  if (this.logger)
665
703
  retrier.logger = this.logger;
666
704
  const request = yield oci_common_1.composeRequest({
@@ -703,10 +741,11 @@ class DomainGovernanceClient {
703
741
  /**
704
742
  * Return a (paginated) list of domain governance entities.
705
743
  *
744
+ * This operation does not retry by default if the user has not defined a retry configuration.
706
745
  * @param ListDomainGovernancesRequest
707
746
  * @return ListDomainGovernancesResponse
708
747
  * @throws OciError when an error occurs
709
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListDomainGovernances.ts.html |here} to see how to use ListDomainGovernances API.
748
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListDomainGovernances.ts.html |here} to see how to use ListDomainGovernances API.
710
749
  */
711
750
  listDomainGovernances(listDomainGovernancesRequest) {
712
751
  return __awaiter(this, void 0, void 0, function* () {
@@ -728,7 +767,8 @@ class DomainGovernanceClient {
728
767
  "Content-Type": common.Constants.APPLICATION_JSON,
729
768
  "opc-request-id": listDomainGovernancesRequest.opcRequestId
730
769
  };
731
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listDomainGovernancesRequest.retryConfiguration);
770
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
771
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDomainGovernancesRequest.retryConfiguration, specRetryConfiguration);
732
772
  if (this.logger)
733
773
  retrier.logger = this.logger;
734
774
  const request = yield oci_common_1.composeRequest({
@@ -770,10 +810,11 @@ class DomainGovernanceClient {
770
810
  }
771
811
  /**
772
812
  * Updates the domain governance entity.
813
+ * This operation does not retry by default if the user has not defined a retry configuration.
773
814
  * @param UpdateDomainGovernanceRequest
774
815
  * @return UpdateDomainGovernanceResponse
775
816
  * @throws OciError when an error occurs
776
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/UpdateDomainGovernance.ts.html |here} to see how to use UpdateDomainGovernance API.
817
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UpdateDomainGovernance.ts.html |here} to see how to use UpdateDomainGovernance API.
777
818
  */
778
819
  updateDomainGovernance(updateDomainGovernanceRequest) {
779
820
  return __awaiter(this, void 0, void 0, function* () {
@@ -788,7 +829,8 @@ class DomainGovernanceClient {
788
829
  "if-match": updateDomainGovernanceRequest.ifMatch,
789
830
  "opc-request-id": updateDomainGovernanceRequest.opcRequestId
790
831
  };
791
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateDomainGovernanceRequest.retryConfiguration);
832
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
833
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDomainGovernanceRequest.retryConfiguration, specRetryConfiguration);
792
834
  if (this.logger)
793
835
  retrier.logger = this.logger;
794
836
  const request = yield oci_common_1.composeRequest({
@@ -835,6 +877,9 @@ DomainGovernanceClient.serviceEndpointTemplate = "https://organizations.{region}
835
877
  var LinkApiKeys;
836
878
  (function (LinkApiKeys) {
837
879
  })(LinkApiKeys = exports.LinkApiKeys || (exports.LinkApiKeys = {}));
880
+ /**
881
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
882
+ */
838
883
  class LinkClient {
839
884
  constructor(params, clientConfiguration) {
840
885
  this["_endpoint"] = "";
@@ -849,6 +894,13 @@ class LinkClient {
849
894
  ? clientConfiguration.circuitBreaker.circuit
850
895
  : null;
851
896
  }
897
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
898
+ const specCircuitBreakerEnabled = false;
899
+ if (!this._circuitBreaker &&
900
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
901
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
902
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
903
+ }
852
904
  this._httpClient =
853
905
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
854
906
  if (params.authenticationDetailsProvider &&
@@ -919,11 +971,12 @@ class LinkClient {
919
971
  throw Error("Waiters do not exist. Please create waiters.");
920
972
  }
921
973
  /**
922
- * Terminate the link.
974
+ * Starts the link termination workflow.
975
+ * This operation does not retry by default if the user has not defined a retry configuration.
923
976
  * @param DeleteLinkRequest
924
977
  * @return DeleteLinkResponse
925
978
  * @throws OciError when an error occurs
926
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/DeleteLink.ts.html |here} to see how to use DeleteLink API.
979
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/DeleteLink.ts.html |here} to see how to use DeleteLink API.
927
980
  */
928
981
  deleteLink(deleteLinkRequest) {
929
982
  return __awaiter(this, void 0, void 0, function* () {
@@ -938,7 +991,8 @@ class LinkClient {
938
991
  "if-match": deleteLinkRequest.ifMatch,
939
992
  "opc-request-id": deleteLinkRequest.opcRequestId
940
993
  };
941
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteLinkRequest.retryConfiguration);
994
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
995
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteLinkRequest.retryConfiguration, specRetryConfiguration);
942
996
  if (this.logger)
943
997
  retrier.logger = this.logger;
944
998
  const request = yield oci_common_1.composeRequest({
@@ -959,6 +1013,11 @@ class LinkClient {
959
1013
  value: response.headers.get("opc-request-id"),
960
1014
  key: "opcRequestId",
961
1015
  dataType: "string"
1016
+ },
1017
+ {
1018
+ value: response.headers.get("opc-work-request-id"),
1019
+ key: "opcWorkRequestId",
1020
+ dataType: "string"
962
1021
  }
963
1022
  ]
964
1023
  });
@@ -971,10 +1030,11 @@ class LinkClient {
971
1030
  }
972
1031
  /**
973
1032
  * Gets information about the link.
1033
+ * This operation does not retry by default if the user has not defined a retry configuration.
974
1034
  * @param GetLinkRequest
975
1035
  * @return GetLinkResponse
976
1036
  * @throws OciError when an error occurs
977
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetLink.ts.html |here} to see how to use GetLink API.
1037
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetLink.ts.html |here} to see how to use GetLink API.
978
1038
  */
979
1039
  getLink(getLinkRequest) {
980
1040
  return __awaiter(this, void 0, void 0, function* () {
@@ -988,7 +1048,8 @@ class LinkClient {
988
1048
  "Content-Type": common.Constants.APPLICATION_JSON,
989
1049
  "opc-request-id": getLinkRequest.opcRequestId
990
1050
  };
991
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getLinkRequest.retryConfiguration);
1051
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1052
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getLinkRequest.retryConfiguration, specRetryConfiguration);
992
1053
  if (this.logger)
993
1054
  retrier.logger = this.logger;
994
1055
  const request = yield oci_common_1.composeRequest({
@@ -1030,10 +1091,11 @@ class LinkClient {
1030
1091
  }
1031
1092
  /**
1032
1093
  * Return a (paginated) list of links.
1094
+ * This operation does not retry by default if the user has not defined a retry configuration.
1033
1095
  * @param ListLinksRequest
1034
1096
  * @return ListLinksResponse
1035
1097
  * @throws OciError when an error occurs
1036
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListLinks.ts.html |here} to see how to use ListLinks API.
1098
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListLinks.ts.html |here} to see how to use ListLinks API.
1037
1099
  */
1038
1100
  listLinks(listLinksRequest) {
1039
1101
  return __awaiter(this, void 0, void 0, function* () {
@@ -1052,7 +1114,8 @@ class LinkClient {
1052
1114
  "Content-Type": common.Constants.APPLICATION_JSON,
1053
1115
  "opc-request-id": listLinksRequest.opcRequestId
1054
1116
  };
1055
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listLinksRequest.retryConfiguration);
1117
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1118
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listLinksRequest.retryConfiguration, specRetryConfiguration);
1056
1119
  if (this.logger)
1057
1120
  retrier.logger = this.logger;
1058
1121
  const request = yield oci_common_1.composeRequest({
@@ -1098,6 +1161,9 @@ LinkClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{second
1098
1161
  var OrdersApiKeys;
1099
1162
  (function (OrdersApiKeys) {
1100
1163
  })(OrdersApiKeys = exports.OrdersApiKeys || (exports.OrdersApiKeys = {}));
1164
+ /**
1165
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
1166
+ */
1101
1167
  class OrdersClient {
1102
1168
  constructor(params, clientConfiguration) {
1103
1169
  this["_endpoint"] = "";
@@ -1112,6 +1178,13 @@ class OrdersClient {
1112
1178
  ? clientConfiguration.circuitBreaker.circuit
1113
1179
  : null;
1114
1180
  }
1181
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
1182
+ const specCircuitBreakerEnabled = false;
1183
+ if (!this._circuitBreaker &&
1184
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
1185
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
1186
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
1187
+ }
1115
1188
  this._httpClient =
1116
1189
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
1117
1190
  if (params.authenticationDetailsProvider &&
@@ -1161,11 +1234,12 @@ class OrdersClient {
1161
1234
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrdersClient.serviceEndpointTemplate, regionId);
1162
1235
  }
1163
1236
  /**
1164
- * Triggers an order activation workflow on behalf of the tenant given by compartment id in the body.
1237
+ * Triggers an order activation workflow on behalf of the tenant, given by compartment ID in the body.
1238
+ * This operation does not retry by default if the user has not defined a retry configuration.
1165
1239
  * @param ActivateOrderRequest
1166
1240
  * @return ActivateOrderResponse
1167
1241
  * @throws OciError when an error occurs
1168
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ActivateOrder.ts.html |here} to see how to use ActivateOrder API.
1242
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ActivateOrder.ts.html |here} to see how to use ActivateOrder API.
1169
1243
  */
1170
1244
  activateOrder(activateOrderRequest) {
1171
1245
  return __awaiter(this, void 0, void 0, function* () {
@@ -1180,7 +1254,8 @@ class OrdersClient {
1180
1254
  "opc-retry-token": activateOrderRequest.opcRetryToken,
1181
1255
  "opc-request-id": activateOrderRequest.opcRequestId
1182
1256
  };
1183
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, activateOrderRequest.retryConfiguration);
1257
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1258
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateOrderRequest.retryConfiguration, specRetryConfiguration);
1184
1259
  if (this.logger)
1185
1260
  retrier.logger = this.logger;
1186
1261
  const request = yield oci_common_1.composeRequest({
@@ -1220,10 +1295,11 @@ class OrdersClient {
1220
1295
  /**
1221
1296
  * Returns the Order Details given by the order id in the JWT
1222
1297
  *
1298
+ * This operation does not retry by default if the user has not defined a retry configuration.
1223
1299
  * @param GetOrderRequest
1224
1300
  * @return GetOrderResponse
1225
1301
  * @throws OciError when an error occurs
1226
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetOrder.ts.html |here} to see how to use GetOrder API.
1302
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetOrder.ts.html |here} to see how to use GetOrder API.
1227
1303
  */
1228
1304
  getOrder(getOrderRequest) {
1229
1305
  return __awaiter(this, void 0, void 0, function* () {
@@ -1237,7 +1313,8 @@ class OrdersClient {
1237
1313
  "Content-Type": common.Constants.APPLICATION_JSON,
1238
1314
  "opc-request-id": getOrderRequest.opcRequestId
1239
1315
  };
1240
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getOrderRequest.retryConfiguration);
1316
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1317
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOrderRequest.retryConfiguration, specRetryConfiguration);
1241
1318
  if (this.logger)
1242
1319
  retrier.logger = this.logger;
1243
1320
  const request = yield oci_common_1.composeRequest({
@@ -1275,10 +1352,13 @@ class OrdersClient {
1275
1352
  }
1276
1353
  exports.OrdersClient = OrdersClient;
1277
1354
  OrdersClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
1278
- var RecipientInvitationApiKeys;
1279
- (function (RecipientInvitationApiKeys) {
1280
- })(RecipientInvitationApiKeys = exports.RecipientInvitationApiKeys || (exports.RecipientInvitationApiKeys = {}));
1281
- class RecipientInvitationClient {
1355
+ var OrganizationApiKeys;
1356
+ (function (OrganizationApiKeys) {
1357
+ })(OrganizationApiKeys = exports.OrganizationApiKeys || (exports.OrganizationApiKeys = {}));
1358
+ /**
1359
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
1360
+ */
1361
+ class OrganizationClient {
1282
1362
  constructor(params, clientConfiguration) {
1283
1363
  this["_endpoint"] = "";
1284
1364
  this["_defaultHeaders"] = {};
@@ -1292,6 +1372,13 @@ class RecipientInvitationClient {
1292
1372
  ? clientConfiguration.circuitBreaker.circuit
1293
1373
  : null;
1294
1374
  }
1375
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
1376
+ const specCircuitBreakerEnabled = false;
1377
+ if (!this._circuitBreaker &&
1378
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
1379
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
1380
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
1381
+ }
1295
1382
  this._httpClient =
1296
1383
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
1297
1384
  if (params.authenticationDetailsProvider &&
@@ -1316,7 +1403,7 @@ class RecipientInvitationClient {
1316
1403
  this._endpoint = endpoint;
1317
1404
  this._endpoint = this._endpoint + "/20200801";
1318
1405
  if (this.logger)
1319
- this.logger.info(`RecipientInvitationClient endpoint set to ${this._endpoint}`);
1406
+ this.logger.info(`OrganizationClient endpoint set to ${this._endpoint}`);
1320
1407
  }
1321
1408
  get logger() {
1322
1409
  return common.LOG.logger;
@@ -1327,7 +1414,7 @@ class RecipientInvitationClient {
1327
1414
  * @param region The region of the service.
1328
1415
  */
1329
1416
  set region(region) {
1330
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, region);
1417
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationClient.serviceEndpointTemplate, region);
1331
1418
  }
1332
1419
  /**
1333
1420
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1338,16 +1425,16 @@ class RecipientInvitationClient {
1338
1425
  * @param regionId The public region ID.
1339
1426
  */
1340
1427
  set regionId(regionId) {
1341
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, regionId);
1428
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationClient.serviceEndpointTemplate, regionId);
1342
1429
  }
1343
1430
  /**
1344
- * Creates a new RecipientInvitationWaiter for resources for this service.
1431
+ * Creates a new OrganizationWaiter for resources for this service.
1345
1432
  *
1346
1433
  * @param config The waiter configuration for termination and delay strategy
1347
1434
  * @return The service waiters.
1348
1435
  */
1349
1436
  createWaiters(config) {
1350
- this._waiters = new recipientinvitation_waiter_1.RecipientInvitationWaiter(this, config);
1437
+ this._waiters = new organization_waiter_1.OrganizationWaiter(this, config);
1351
1438
  return this._waiters;
1352
1439
  }
1353
1440
  /**
@@ -1362,33 +1449,37 @@ class RecipientInvitationClient {
1362
1449
  throw Error("Waiters do not exist. Please create waiters.");
1363
1450
  }
1364
1451
  /**
1365
- * Accepts a recipient invitation.
1366
- * @param AcceptRecipientInvitationRequest
1367
- * @return AcceptRecipientInvitationResponse
1452
+ * Approve an organization's child tenancy for transfer.
1453
+ * This operation does not retry by default if the user has not defined a retry configuration.
1454
+ * @param ApproveOrganizationTenancyForTransferRequest
1455
+ * @return ApproveOrganizationTenancyForTransferResponse
1368
1456
  * @throws OciError when an error occurs
1369
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/AcceptRecipientInvitation.ts.html |here} to see how to use AcceptRecipientInvitation API.
1457
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ApproveOrganizationTenancyForTransfer.ts.html |here} to see how to use ApproveOrganizationTenancyForTransfer API.
1370
1458
  */
1371
- acceptRecipientInvitation(acceptRecipientInvitationRequest) {
1459
+ approveOrganizationTenancyForTransfer(approveOrganizationTenancyForTransferRequest) {
1372
1460
  return __awaiter(this, void 0, void 0, function* () {
1373
1461
  if (this.logger)
1374
- this.logger.debug("Calling operation RecipientInvitationClient#acceptRecipientInvitation.");
1462
+ this.logger.debug("Calling operation OrganizationClient#approveOrganizationTenancyForTransfer.");
1375
1463
  const pathParams = {
1376
- "{recipientInvitationId}": acceptRecipientInvitationRequest.recipientInvitationId
1464
+ "{organizationTenancyId}": approveOrganizationTenancyForTransferRequest.organizationTenancyId
1465
+ };
1466
+ const queryParams = {
1467
+ "compartmentId": approveOrganizationTenancyForTransferRequest.compartmentId
1377
1468
  };
1378
- const queryParams = {};
1379
1469
  let headerParams = {
1380
1470
  "Content-Type": common.Constants.APPLICATION_JSON,
1381
- "if-match": acceptRecipientInvitationRequest.ifMatch,
1382
- "opc-retry-token": acceptRecipientInvitationRequest.opcRetryToken,
1383
- "opc-request-id": acceptRecipientInvitationRequest.opcRequestId
1471
+ "if-match": approveOrganizationTenancyForTransferRequest.ifMatch,
1472
+ "opc-retry-token": approveOrganizationTenancyForTransferRequest.opcRetryToken,
1473
+ "opc-request-id": approveOrganizationTenancyForTransferRequest.opcRequestId
1384
1474
  };
1385
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, acceptRecipientInvitationRequest.retryConfiguration);
1475
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1476
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, approveOrganizationTenancyForTransferRequest.retryConfiguration, specRetryConfiguration);
1386
1477
  if (this.logger)
1387
1478
  retrier.logger = this.logger;
1388
1479
  const request = yield oci_common_1.composeRequest({
1389
1480
  baseEndpoint: this._endpoint,
1390
1481
  defaultHeaders: this._defaultHeaders,
1391
- path: "/recipientInvitations/{recipientInvitationId}/actions/accept",
1482
+ path: "/organizationTenancies/{organizationTenancyId}/actions/approveForTransfer",
1392
1483
  method: "POST",
1393
1484
  pathParams: pathParams,
1394
1485
  headerParams: headerParams,
@@ -1398,6 +1489,10 @@ class RecipientInvitationClient {
1398
1489
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1399
1490
  const sdkResponse = oci_common_1.composeResponse({
1400
1491
  responseObject: {},
1492
+ body: yield response.json(),
1493
+ bodyKey: "organizationTenancy",
1494
+ bodyModel: model.OrganizationTenancy,
1495
+ type: "model.OrganizationTenancy",
1401
1496
  responseHeaders: [
1402
1497
  {
1403
1498
  value: response.headers.get("opc-request-id"),
@@ -1405,8 +1500,8 @@ class RecipientInvitationClient {
1405
1500
  dataType: "string"
1406
1501
  },
1407
1502
  {
1408
- value: response.headers.get("opc-work-request-id"),
1409
- key: "opcWorkRequestId",
1503
+ value: response.headers.get("etag"),
1504
+ key: "etag",
1410
1505
  dataType: "string"
1411
1506
  }
1412
1507
  ]
@@ -1419,32 +1514,34 @@ class RecipientInvitationClient {
1419
1514
  });
1420
1515
  }
1421
1516
  /**
1422
- * Gets information about the recipient invitation.
1423
- * @param GetRecipientInvitationRequest
1424
- * @return GetRecipientInvitationResponse
1517
+ * Creates a child tenancy asynchronously.
1518
+ * This operation does not retry by default if the user has not defined a retry configuration.
1519
+ * @param CreateChildTenancyRequest
1520
+ * @return CreateChildTenancyResponse
1425
1521
  * @throws OciError when an error occurs
1426
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetRecipientInvitation.ts.html |here} to see how to use GetRecipientInvitation API.
1522
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CreateChildTenancy.ts.html |here} to see how to use CreateChildTenancy API.
1427
1523
  */
1428
- getRecipientInvitation(getRecipientInvitationRequest) {
1524
+ createChildTenancy(createChildTenancyRequest) {
1429
1525
  return __awaiter(this, void 0, void 0, function* () {
1430
1526
  if (this.logger)
1431
- this.logger.debug("Calling operation RecipientInvitationClient#getRecipientInvitation.");
1432
- const pathParams = {
1433
- "{recipientInvitationId}": getRecipientInvitationRequest.recipientInvitationId
1434
- };
1527
+ this.logger.debug("Calling operation OrganizationClient#createChildTenancy.");
1528
+ const pathParams = {};
1435
1529
  const queryParams = {};
1436
1530
  let headerParams = {
1437
1531
  "Content-Type": common.Constants.APPLICATION_JSON,
1438
- "opc-request-id": getRecipientInvitationRequest.opcRequestId
1532
+ "opc-retry-token": createChildTenancyRequest.opcRetryToken,
1533
+ "opc-request-id": createChildTenancyRequest.opcRequestId
1439
1534
  };
1440
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getRecipientInvitationRequest.retryConfiguration);
1535
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1536
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createChildTenancyRequest.retryConfiguration, specRetryConfiguration);
1441
1537
  if (this.logger)
1442
1538
  retrier.logger = this.logger;
1443
1539
  const request = yield oci_common_1.composeRequest({
1444
1540
  baseEndpoint: this._endpoint,
1445
1541
  defaultHeaders: this._defaultHeaders,
1446
- path: "/recipientInvitations/{recipientInvitationId}",
1447
- method: "GET",
1542
+ path: "/childTenancies",
1543
+ method: "POST",
1544
+ bodyContent: common.ObjectSerializer.serialize(createChildTenancyRequest.createChildTenancyDetails, "CreateChildTenancyDetails", model.CreateChildTenancyDetails.getJsonObj),
1448
1545
  pathParams: pathParams,
1449
1546
  headerParams: headerParams,
1450
1547
  queryParams: queryParams
@@ -1453,10 +1550,6 @@ class RecipientInvitationClient {
1453
1550
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1454
1551
  const sdkResponse = oci_common_1.composeResponse({
1455
1552
  responseObject: {},
1456
- body: yield response.json(),
1457
- bodyKey: "recipientInvitation",
1458
- bodyModel: model.RecipientInvitation,
1459
- type: "model.RecipientInvitation",
1460
1553
  responseHeaders: [
1461
1554
  {
1462
1555
  value: response.headers.get("opc-request-id"),
@@ -1464,8 +1557,8 @@ class RecipientInvitationClient {
1464
1557
  dataType: "string"
1465
1558
  },
1466
1559
  {
1467
- value: response.headers.get("etag"),
1468
- key: "etag",
1560
+ value: response.headers.get("opc-work-request-id"),
1561
+ key: "opcWorkRequestId",
1469
1562
  dataType: "string"
1470
1563
  }
1471
1564
  ]
@@ -1478,34 +1571,36 @@ class RecipientInvitationClient {
1478
1571
  });
1479
1572
  }
1480
1573
  /**
1481
- * Ignores a recipient invitation.
1482
- * @param IgnoreRecipientInvitationRequest
1483
- * @return IgnoreRecipientInvitationResponse
1574
+ * If certain validations are successful, initiate tenancy termination.
1575
+ * This operation does not retry by default if the user has not defined a retry configuration.
1576
+ * @param DeleteOrganizationTenancyRequest
1577
+ * @return DeleteOrganizationTenancyResponse
1484
1578
  * @throws OciError when an error occurs
1485
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/IgnoreRecipientInvitation.ts.html |here} to see how to use IgnoreRecipientInvitation API.
1579
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/DeleteOrganizationTenancy.ts.html |here} to see how to use DeleteOrganizationTenancy API.
1486
1580
  */
1487
- ignoreRecipientInvitation(ignoreRecipientInvitationRequest) {
1581
+ deleteOrganizationTenancy(deleteOrganizationTenancyRequest) {
1488
1582
  return __awaiter(this, void 0, void 0, function* () {
1489
1583
  if (this.logger)
1490
- this.logger.debug("Calling operation RecipientInvitationClient#ignoreRecipientInvitation.");
1584
+ this.logger.debug("Calling operation OrganizationClient#deleteOrganizationTenancy.");
1491
1585
  const pathParams = {
1492
- "{recipientInvitationId}": ignoreRecipientInvitationRequest.recipientInvitationId
1586
+ "{organizationTenancyId}": deleteOrganizationTenancyRequest.organizationTenancyId
1493
1587
  };
1494
1588
  const queryParams = {};
1495
1589
  let headerParams = {
1496
1590
  "Content-Type": common.Constants.APPLICATION_JSON,
1497
- "if-match": ignoreRecipientInvitationRequest.ifMatch,
1498
- "opc-retry-token": ignoreRecipientInvitationRequest.opcRetryToken,
1499
- "opc-request-id": ignoreRecipientInvitationRequest.opcRequestId
1591
+ "if-match": deleteOrganizationTenancyRequest.ifMatch,
1592
+ "opc-request-id": deleteOrganizationTenancyRequest.opcRequestId,
1593
+ "opc-retry-token": deleteOrganizationTenancyRequest.opcRetryToken
1500
1594
  };
1501
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, ignoreRecipientInvitationRequest.retryConfiguration);
1595
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1596
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOrganizationTenancyRequest.retryConfiguration, specRetryConfiguration);
1502
1597
  if (this.logger)
1503
1598
  retrier.logger = this.logger;
1504
1599
  const request = yield oci_common_1.composeRequest({
1505
1600
  baseEndpoint: this._endpoint,
1506
1601
  defaultHeaders: this._defaultHeaders,
1507
- path: "/recipientInvitations/{recipientInvitationId}/actions/ignore",
1508
- method: "POST",
1602
+ path: "/organizationTenancies/{organizationTenancyId}",
1603
+ method: "DELETE",
1509
1604
  pathParams: pathParams,
1510
1605
  headerParams: headerParams,
1511
1606
  queryParams: queryParams
@@ -1514,10 +1609,6 @@ class RecipientInvitationClient {
1514
1609
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1515
1610
  const sdkResponse = oci_common_1.composeResponse({
1516
1611
  responseObject: {},
1517
- body: yield response.json(),
1518
- bodyKey: "recipientInvitation",
1519
- bodyModel: model.RecipientInvitation,
1520
- type: "model.RecipientInvitation",
1521
1612
  responseHeaders: [
1522
1613
  {
1523
1614
  value: response.headers.get("opc-request-id"),
@@ -1525,8 +1616,8 @@ class RecipientInvitationClient {
1525
1616
  dataType: "string"
1526
1617
  },
1527
1618
  {
1528
- value: response.headers.get("etag"),
1529
- key: "etag",
1619
+ value: response.headers.get("opc-work-request-id"),
1620
+ key: "opcWorkRequestId",
1530
1621
  dataType: "string"
1531
1622
  }
1532
1623
  ]
@@ -1539,36 +1630,33 @@ class RecipientInvitationClient {
1539
1630
  });
1540
1631
  }
1541
1632
  /**
1542
- * Return a (paginated) list of recipient invitations.
1543
- *
1544
- * @param ListRecipientInvitationsRequest
1545
- * @return ListRecipientInvitationsResponse
1633
+ * Gets information about the organization.
1634
+ * This operation does not retry by default if the user has not defined a retry configuration.
1635
+ * @param GetOrganizationRequest
1636
+ * @return GetOrganizationResponse
1546
1637
  * @throws OciError when an error occurs
1547
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListRecipientInvitations.ts.html |here} to see how to use ListRecipientInvitations API.
1638
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetOrganization.ts.html |here} to see how to use GetOrganization API.
1548
1639
  */
1549
- listRecipientInvitations(listRecipientInvitationsRequest) {
1640
+ getOrganization(getOrganizationRequest) {
1550
1641
  return __awaiter(this, void 0, void 0, function* () {
1551
1642
  if (this.logger)
1552
- this.logger.debug("Calling operation RecipientInvitationClient#listRecipientInvitations.");
1553
- const pathParams = {};
1554
- const queryParams = {
1555
- "senderTenancyId": listRecipientInvitationsRequest.senderTenancyId,
1556
- "lifecycleState": listRecipientInvitationsRequest.lifecycleState,
1557
- "status": listRecipientInvitationsRequest.status,
1558
- "compartmentId": listRecipientInvitationsRequest.compartmentId,
1559
- "page": listRecipientInvitationsRequest.page
1643
+ this.logger.debug("Calling operation OrganizationClient#getOrganization.");
1644
+ const pathParams = {
1645
+ "{organizationId}": getOrganizationRequest.organizationId
1560
1646
  };
1647
+ const queryParams = {};
1561
1648
  let headerParams = {
1562
1649
  "Content-Type": common.Constants.APPLICATION_JSON,
1563
- "opc-request-id": listRecipientInvitationsRequest.opcRequestId
1650
+ "opc-request-id": getOrganizationRequest.opcRequestId
1564
1651
  };
1565
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listRecipientInvitationsRequest.retryConfiguration);
1652
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1653
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOrganizationRequest.retryConfiguration, specRetryConfiguration);
1566
1654
  if (this.logger)
1567
1655
  retrier.logger = this.logger;
1568
1656
  const request = yield oci_common_1.composeRequest({
1569
1657
  baseEndpoint: this._endpoint,
1570
1658
  defaultHeaders: this._defaultHeaders,
1571
- path: "/recipientInvitations",
1659
+ path: "/organizations/{organizationId}",
1572
1660
  method: "GET",
1573
1661
  pathParams: pathParams,
1574
1662
  headerParams: headerParams,
@@ -1579,13 +1667,13 @@ class RecipientInvitationClient {
1579
1667
  const sdkResponse = oci_common_1.composeResponse({
1580
1668
  responseObject: {},
1581
1669
  body: yield response.json(),
1582
- bodyKey: "recipientInvitationCollection",
1583
- bodyModel: model.RecipientInvitationCollection,
1584
- type: "model.RecipientInvitationCollection",
1670
+ bodyKey: "organization",
1671
+ bodyModel: model.Organization,
1672
+ type: "model.Organization",
1585
1673
  responseHeaders: [
1586
1674
  {
1587
- value: response.headers.get("opc-next-page"),
1588
- key: "opcNextPage",
1675
+ value: response.headers.get("etag"),
1676
+ key: "etag",
1589
1677
  dataType: "string"
1590
1678
  },
1591
1679
  {
@@ -1603,34 +1691,35 @@ class RecipientInvitationClient {
1603
1691
  });
1604
1692
  }
1605
1693
  /**
1606
- * Updates the RecipientInvitation.
1607
- * @param UpdateRecipientInvitationRequest
1608
- * @return UpdateRecipientInvitationResponse
1694
+ * Gets information about the organization's tenancy.
1695
+ * This operation does not retry by default if the user has not defined a retry configuration.
1696
+ * @param GetOrganizationTenancyRequest
1697
+ * @return GetOrganizationTenancyResponse
1609
1698
  * @throws OciError when an error occurs
1610
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/UpdateRecipientInvitation.ts.html |here} to see how to use UpdateRecipientInvitation API.
1699
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetOrganizationTenancy.ts.html |here} to see how to use GetOrganizationTenancy API.
1611
1700
  */
1612
- updateRecipientInvitation(updateRecipientInvitationRequest) {
1701
+ getOrganizationTenancy(getOrganizationTenancyRequest) {
1613
1702
  return __awaiter(this, void 0, void 0, function* () {
1614
1703
  if (this.logger)
1615
- this.logger.debug("Calling operation RecipientInvitationClient#updateRecipientInvitation.");
1704
+ this.logger.debug("Calling operation OrganizationClient#getOrganizationTenancy.");
1616
1705
  const pathParams = {
1617
- "{recipientInvitationId}": updateRecipientInvitationRequest.recipientInvitationId
1706
+ "{organizationId}": getOrganizationTenancyRequest.organizationId,
1707
+ "{tenancyId}": getOrganizationTenancyRequest.tenancyId
1618
1708
  };
1619
1709
  const queryParams = {};
1620
1710
  let headerParams = {
1621
1711
  "Content-Type": common.Constants.APPLICATION_JSON,
1622
- "if-match": updateRecipientInvitationRequest.ifMatch,
1623
- "opc-request-id": updateRecipientInvitationRequest.opcRequestId
1712
+ "opc-request-id": getOrganizationTenancyRequest.opcRequestId
1624
1713
  };
1625
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateRecipientInvitationRequest.retryConfiguration);
1714
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1715
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOrganizationTenancyRequest.retryConfiguration, specRetryConfiguration);
1626
1716
  if (this.logger)
1627
1717
  retrier.logger = this.logger;
1628
1718
  const request = yield oci_common_1.composeRequest({
1629
1719
  baseEndpoint: this._endpoint,
1630
1720
  defaultHeaders: this._defaultHeaders,
1631
- path: "/recipientInvitations/{recipientInvitationId}",
1632
- method: "PUT",
1633
- bodyContent: common.ObjectSerializer.serialize(updateRecipientInvitationRequest.updateRecipientInvitationDetails, "UpdateRecipientInvitationDetails", model.UpdateRecipientInvitationDetails.getJsonObj),
1721
+ path: "/organizations/{organizationId}/tenancies/{tenancyId}",
1722
+ method: "GET",
1634
1723
  pathParams: pathParams,
1635
1724
  headerParams: headerParams,
1636
1725
  queryParams: queryParams
@@ -1640,18 +1729,18 @@ class RecipientInvitationClient {
1640
1729
  const sdkResponse = oci_common_1.composeResponse({
1641
1730
  responseObject: {},
1642
1731
  body: yield response.json(),
1643
- bodyKey: "recipientInvitation",
1644
- bodyModel: model.RecipientInvitation,
1645
- type: "model.RecipientInvitation",
1732
+ bodyKey: "organizationTenancy",
1733
+ bodyModel: model.OrganizationTenancy,
1734
+ type: "model.OrganizationTenancy",
1646
1735
  responseHeaders: [
1647
1736
  {
1648
- value: response.headers.get("opc-request-id"),
1649
- key: "opcRequestId",
1737
+ value: response.headers.get("etag"),
1738
+ key: "etag",
1650
1739
  dataType: "string"
1651
1740
  },
1652
1741
  {
1653
- value: response.headers.get("etag"),
1654
- key: "etag",
1742
+ value: response.headers.get("opc-request-id"),
1743
+ key: "opcRequestId",
1655
1744
  dataType: "string"
1656
1745
  }
1657
1746
  ]
@@ -1663,124 +1752,38 @@ class RecipientInvitationClient {
1663
1752
  }
1664
1753
  });
1665
1754
  }
1666
- }
1667
- exports.RecipientInvitationClient = RecipientInvitationClient;
1668
- RecipientInvitationClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
1669
- var SenderInvitationApiKeys;
1670
- (function (SenderInvitationApiKeys) {
1671
- })(SenderInvitationApiKeys = exports.SenderInvitationApiKeys || (exports.SenderInvitationApiKeys = {}));
1672
- class SenderInvitationClient {
1673
- constructor(params, clientConfiguration) {
1674
- this["_endpoint"] = "";
1675
- this["_defaultHeaders"] = {};
1676
- this._circuitBreaker = null;
1677
- const requestSigner = params.authenticationDetailsProvider
1678
- ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1679
- : null;
1680
- if (clientConfiguration) {
1681
- this._clientConfiguration = clientConfiguration;
1682
- this._circuitBreaker = clientConfiguration.circuitBreaker
1683
- ? clientConfiguration.circuitBreaker.circuit
1684
- : null;
1685
- }
1686
- this._httpClient =
1687
- params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
1688
- if (params.authenticationDetailsProvider &&
1689
- common.isRegionProvider(params.authenticationDetailsProvider)) {
1690
- const provider = params.authenticationDetailsProvider;
1691
- if (provider.getRegion()) {
1692
- this.region = provider.getRegion();
1693
- }
1694
- }
1695
- }
1696
- /**
1697
- * Get the endpoint that is being used to call (ex, https://www.example.com).
1698
- */
1699
- get endpoint() {
1700
- return this._endpoint;
1701
- }
1702
- /**
1703
- * Sets the endpoint to call (ex, https://www.example.com).
1704
- * @param endpoint The endpoint of the service.
1705
- */
1706
- set endpoint(endpoint) {
1707
- this._endpoint = endpoint;
1708
- this._endpoint = this._endpoint + "/20200801";
1709
- if (this.logger)
1710
- this.logger.info(`SenderInvitationClient endpoint set to ${this._endpoint}`);
1711
- }
1712
- get logger() {
1713
- return common.LOG.logger;
1714
- }
1715
- /**
1716
- * Sets the region to call (ex, Region.US_PHOENIX_1).
1717
- * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1718
- * @param region The region of the service.
1719
- */
1720
- set region(region) {
1721
- this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, region);
1722
- }
1723
1755
  /**
1724
- * Sets the regionId to call (ex, 'us-phoenix-1').
1725
- *
1726
- * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1727
- * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1728
- * and then call {@link #endpoint(String) endpoint}.
1729
- * @param regionId The public region ID.
1730
- */
1731
- set regionId(regionId) {
1732
- this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, regionId);
1733
- }
1734
- /**
1735
- * Creates a new SenderInvitationWaiter for resources for this service.
1736
- *
1737
- * @param config The waiter configuration for termination and delay strategy
1738
- * @return The service waiters.
1739
- */
1740
- createWaiters(config) {
1741
- this._waiters = new senderinvitation_waiter_1.SenderInvitationWaiter(this, config);
1742
- return this._waiters;
1743
- }
1744
- /**
1745
- * Gets the waiters available for resources for this service.
1746
- *
1747
- * @return The service waiters.
1748
- */
1749
- getWaiters() {
1750
- if (this._waiters) {
1751
- return this._waiters;
1752
- }
1753
- throw Error("Waiters do not exist. Please create waiters.");
1754
- }
1755
- /**
1756
- * Cancels a sender invitation.
1757
- * @param CancelSenderInvitationRequest
1758
- * @return CancelSenderInvitationResponse
1756
+ * Gets a list of tenancies in the organization.
1757
+ * This operation does not retry by default if the user has not defined a retry configuration.
1758
+ * @param ListOrganizationTenanciesRequest
1759
+ * @return ListOrganizationTenanciesResponse
1759
1760
  * @throws OciError when an error occurs
1760
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/CancelSenderInvitation.ts.html |here} to see how to use CancelSenderInvitation API.
1761
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListOrganizationTenancies.ts.html |here} to see how to use ListOrganizationTenancies API.
1761
1762
  */
1762
- cancelSenderInvitation(cancelSenderInvitationRequest) {
1763
+ listOrganizationTenancies(listOrganizationTenanciesRequest) {
1763
1764
  return __awaiter(this, void 0, void 0, function* () {
1764
1765
  if (this.logger)
1765
- this.logger.debug("Calling operation SenderInvitationClient#cancelSenderInvitation.");
1766
+ this.logger.debug("Calling operation OrganizationClient#listOrganizationTenancies.");
1766
1767
  const pathParams = {
1767
- "{senderInvitationId}": cancelSenderInvitationRequest.senderInvitationId
1768
+ "{organizationId}": listOrganizationTenanciesRequest.organizationId
1769
+ };
1770
+ const queryParams = {
1771
+ "page": listOrganizationTenanciesRequest.page,
1772
+ "limit": listOrganizationTenanciesRequest.limit
1768
1773
  };
1769
- const queryParams = {};
1770
1774
  let headerParams = {
1771
1775
  "Content-Type": common.Constants.APPLICATION_JSON,
1772
- "if-match": cancelSenderInvitationRequest.ifMatch,
1773
- "opc-retry-token": cancelSenderInvitationRequest.opcRetryToken,
1774
- "opc-request-id": cancelSenderInvitationRequest.opcRequestId
1776
+ "opc-request-id": listOrganizationTenanciesRequest.opcRequestId
1775
1777
  };
1776
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, cancelSenderInvitationRequest.retryConfiguration);
1778
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1779
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOrganizationTenanciesRequest.retryConfiguration, specRetryConfiguration);
1777
1780
  if (this.logger)
1778
1781
  retrier.logger = this.logger;
1779
1782
  const request = yield oci_common_1.composeRequest({
1780
1783
  baseEndpoint: this._endpoint,
1781
1784
  defaultHeaders: this._defaultHeaders,
1782
- path: "/senderInvitations/{senderInvitationId}/actions/cancel",
1783
- method: "POST",
1785
+ path: "/organizations/{organizationId}/tenancies",
1786
+ method: "GET",
1784
1787
  pathParams: pathParams,
1785
1788
  headerParams: headerParams,
1786
1789
  queryParams: queryParams
@@ -1789,15 +1792,19 @@ class SenderInvitationClient {
1789
1792
  const response = yield retrier.makeServiceCall(this._httpClient, request);
1790
1793
  const sdkResponse = oci_common_1.composeResponse({
1791
1794
  responseObject: {},
1795
+ body: yield response.json(),
1796
+ bodyKey: "organizationTenancyCollection",
1797
+ bodyModel: model.OrganizationTenancyCollection,
1798
+ type: "model.OrganizationTenancyCollection",
1792
1799
  responseHeaders: [
1793
1800
  {
1794
- value: response.headers.get("opc-request-id"),
1795
- key: "opcRequestId",
1801
+ value: response.headers.get("opc-next-page"),
1802
+ key: "opcNextPage",
1796
1803
  dataType: "string"
1797
1804
  },
1798
1805
  {
1799
- value: response.headers.get("opc-work-request-id"),
1800
- key: "opcWorkRequestId",
1806
+ value: response.headers.get("opc-request-id"),
1807
+ key: "opcRequestId",
1801
1808
  dataType: "string"
1802
1809
  }
1803
1810
  ]
@@ -1810,32 +1817,1270 @@ class SenderInvitationClient {
1810
1817
  });
1811
1818
  }
1812
1819
  /**
1813
- * Creates a sender invitation and asynchronously sends the invitation to the recipient.
1814
- * @param CreateSenderInvitationRequest
1815
- * @return CreateSenderInvitationResponse
1820
+ * Lists organizations associated with the caller.
1821
+ * This operation does not retry by default if the user has not defined a retry configuration.
1822
+ * @param ListOrganizationsRequest
1823
+ * @return ListOrganizationsResponse
1816
1824
  * @throws OciError when an error occurs
1817
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/CreateSenderInvitation.ts.html |here} to see how to use CreateSenderInvitation API.
1825
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListOrganizations.ts.html |here} to see how to use ListOrganizations API.
1818
1826
  */
1819
- createSenderInvitation(createSenderInvitationRequest) {
1827
+ listOrganizations(listOrganizationsRequest) {
1820
1828
  return __awaiter(this, void 0, void 0, function* () {
1821
1829
  if (this.logger)
1822
- this.logger.debug("Calling operation SenderInvitationClient#createSenderInvitation.");
1830
+ this.logger.debug("Calling operation OrganizationClient#listOrganizations.");
1823
1831
  const pathParams = {};
1824
- const queryParams = {};
1832
+ const queryParams = {
1833
+ "compartmentId": listOrganizationsRequest.compartmentId,
1834
+ "page": listOrganizationsRequest.page,
1835
+ "limit": listOrganizationsRequest.limit
1836
+ };
1837
+ let headerParams = {
1838
+ "Content-Type": common.Constants.APPLICATION_JSON,
1839
+ "opc-request-id": listOrganizationsRequest.opcRequestId
1840
+ };
1841
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1842
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOrganizationsRequest.retryConfiguration, specRetryConfiguration);
1843
+ if (this.logger)
1844
+ retrier.logger = this.logger;
1845
+ const request = yield oci_common_1.composeRequest({
1846
+ baseEndpoint: this._endpoint,
1847
+ defaultHeaders: this._defaultHeaders,
1848
+ path: "/organizations",
1849
+ method: "GET",
1850
+ pathParams: pathParams,
1851
+ headerParams: headerParams,
1852
+ queryParams: queryParams
1853
+ });
1854
+ try {
1855
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1856
+ const sdkResponse = oci_common_1.composeResponse({
1857
+ responseObject: {},
1858
+ body: yield response.json(),
1859
+ bodyKey: "organizationCollection",
1860
+ bodyModel: model.OrganizationCollection,
1861
+ type: "model.OrganizationCollection",
1862
+ responseHeaders: [
1863
+ {
1864
+ value: response.headers.get("opc-next-page"),
1865
+ key: "opcNextPage",
1866
+ dataType: "string"
1867
+ },
1868
+ {
1869
+ value: response.headers.get("opc-request-id"),
1870
+ key: "opcRequestId",
1871
+ dataType: "string"
1872
+ }
1873
+ ]
1874
+ });
1875
+ return sdkResponse;
1876
+ }
1877
+ catch (err) {
1878
+ throw err;
1879
+ }
1880
+ });
1881
+ }
1882
+ /**
1883
+ * Cancel an organization's child tenancy for transfer.
1884
+ * This operation does not retry by default if the user has not defined a retry configuration.
1885
+ * @param UnapproveOrganizationTenancyForTransferRequest
1886
+ * @return UnapproveOrganizationTenancyForTransferResponse
1887
+ * @throws OciError when an error occurs
1888
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UnapproveOrganizationTenancyForTransfer.ts.html |here} to see how to use UnapproveOrganizationTenancyForTransfer API.
1889
+ */
1890
+ unapproveOrganizationTenancyForTransfer(unapproveOrganizationTenancyForTransferRequest) {
1891
+ return __awaiter(this, void 0, void 0, function* () {
1892
+ if (this.logger)
1893
+ this.logger.debug("Calling operation OrganizationClient#unapproveOrganizationTenancyForTransfer.");
1894
+ const pathParams = {
1895
+ "{organizationTenancyId}": unapproveOrganizationTenancyForTransferRequest.organizationTenancyId
1896
+ };
1897
+ const queryParams = {
1898
+ "compartmentId": unapproveOrganizationTenancyForTransferRequest.compartmentId
1899
+ };
1900
+ let headerParams = {
1901
+ "Content-Type": common.Constants.APPLICATION_JSON,
1902
+ "if-match": unapproveOrganizationTenancyForTransferRequest.ifMatch,
1903
+ "opc-retry-token": unapproveOrganizationTenancyForTransferRequest.opcRetryToken,
1904
+ "opc-request-id": unapproveOrganizationTenancyForTransferRequest.opcRequestId
1905
+ };
1906
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1907
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, unapproveOrganizationTenancyForTransferRequest.retryConfiguration, specRetryConfiguration);
1908
+ if (this.logger)
1909
+ retrier.logger = this.logger;
1910
+ const request = yield oci_common_1.composeRequest({
1911
+ baseEndpoint: this._endpoint,
1912
+ defaultHeaders: this._defaultHeaders,
1913
+ path: "/organizationTenancies/{organizationTenancyId}/actions/unapproveForTransfer",
1914
+ method: "POST",
1915
+ pathParams: pathParams,
1916
+ headerParams: headerParams,
1917
+ queryParams: queryParams
1918
+ });
1919
+ try {
1920
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1921
+ const sdkResponse = oci_common_1.composeResponse({
1922
+ responseObject: {},
1923
+ body: yield response.json(),
1924
+ bodyKey: "organizationTenancy",
1925
+ bodyModel: model.OrganizationTenancy,
1926
+ type: "model.OrganizationTenancy",
1927
+ responseHeaders: [
1928
+ {
1929
+ value: response.headers.get("opc-request-id"),
1930
+ key: "opcRequestId",
1931
+ dataType: "string"
1932
+ },
1933
+ {
1934
+ value: response.headers.get("etag"),
1935
+ key: "etag",
1936
+ dataType: "string"
1937
+ }
1938
+ ]
1939
+ });
1940
+ return sdkResponse;
1941
+ }
1942
+ catch (err) {
1943
+ throw err;
1944
+ }
1945
+ });
1946
+ }
1947
+ /**
1948
+ * Assign the default subscription to the organization.
1949
+ * This operation does not retry by default if the user has not defined a retry configuration.
1950
+ * @param UpdateOrganizationRequest
1951
+ * @return UpdateOrganizationResponse
1952
+ * @throws OciError when an error occurs
1953
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UpdateOrganization.ts.html |here} to see how to use UpdateOrganization API.
1954
+ */
1955
+ updateOrganization(updateOrganizationRequest) {
1956
+ return __awaiter(this, void 0, void 0, function* () {
1957
+ if (this.logger)
1958
+ this.logger.debug("Calling operation OrganizationClient#updateOrganization.");
1959
+ const pathParams = {
1960
+ "{organizationId}": updateOrganizationRequest.organizationId
1961
+ };
1962
+ const queryParams = {};
1963
+ let headerParams = {
1964
+ "Content-Type": common.Constants.APPLICATION_JSON,
1965
+ "opc-request-id": updateOrganizationRequest.opcRequestId,
1966
+ "if-match": updateOrganizationRequest.ifMatch,
1967
+ "opc-retry-token": updateOrganizationRequest.opcRetryToken
1968
+ };
1969
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1970
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOrganizationRequest.retryConfiguration, specRetryConfiguration);
1971
+ if (this.logger)
1972
+ retrier.logger = this.logger;
1973
+ const request = yield oci_common_1.composeRequest({
1974
+ baseEndpoint: this._endpoint,
1975
+ defaultHeaders: this._defaultHeaders,
1976
+ path: "/organizations/{organizationId}",
1977
+ method: "PUT",
1978
+ bodyContent: common.ObjectSerializer.serialize(updateOrganizationRequest.updateOrganizationDetails, "UpdateOrganizationDetails", model.UpdateOrganizationDetails.getJsonObj),
1979
+ pathParams: pathParams,
1980
+ headerParams: headerParams,
1981
+ queryParams: queryParams
1982
+ });
1983
+ try {
1984
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1985
+ const sdkResponse = oci_common_1.composeResponse({
1986
+ responseObject: {},
1987
+ responseHeaders: [
1988
+ {
1989
+ value: response.headers.get("opc-request-id"),
1990
+ key: "opcRequestId",
1991
+ dataType: "string"
1992
+ },
1993
+ {
1994
+ value: response.headers.get("opc-work-request-id"),
1995
+ key: "opcWorkRequestId",
1996
+ dataType: "string"
1997
+ }
1998
+ ]
1999
+ });
2000
+ return sdkResponse;
2001
+ }
2002
+ catch (err) {
2003
+ throw err;
2004
+ }
2005
+ });
2006
+ }
2007
+ }
2008
+ exports.OrganizationClient = OrganizationClient;
2009
+ OrganizationClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
2010
+ var RecipientInvitationApiKeys;
2011
+ (function (RecipientInvitationApiKeys) {
2012
+ })(RecipientInvitationApiKeys = exports.RecipientInvitationApiKeys || (exports.RecipientInvitationApiKeys = {}));
2013
+ /**
2014
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
2015
+ */
2016
+ class RecipientInvitationClient {
2017
+ constructor(params, clientConfiguration) {
2018
+ this["_endpoint"] = "";
2019
+ this["_defaultHeaders"] = {};
2020
+ this._circuitBreaker = null;
2021
+ const requestSigner = params.authenticationDetailsProvider
2022
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2023
+ : null;
2024
+ if (clientConfiguration) {
2025
+ this._clientConfiguration = clientConfiguration;
2026
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2027
+ ? clientConfiguration.circuitBreaker.circuit
2028
+ : null;
2029
+ }
2030
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2031
+ const specCircuitBreakerEnabled = false;
2032
+ if (!this._circuitBreaker &&
2033
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2034
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2035
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2036
+ }
2037
+ this._httpClient =
2038
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
2039
+ if (params.authenticationDetailsProvider &&
2040
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2041
+ const provider = params.authenticationDetailsProvider;
2042
+ if (provider.getRegion()) {
2043
+ this.region = provider.getRegion();
2044
+ }
2045
+ }
2046
+ }
2047
+ /**
2048
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2049
+ */
2050
+ get endpoint() {
2051
+ return this._endpoint;
2052
+ }
2053
+ /**
2054
+ * Sets the endpoint to call (ex, https://www.example.com).
2055
+ * @param endpoint The endpoint of the service.
2056
+ */
2057
+ set endpoint(endpoint) {
2058
+ this._endpoint = endpoint;
2059
+ this._endpoint = this._endpoint + "/20200801";
2060
+ if (this.logger)
2061
+ this.logger.info(`RecipientInvitationClient endpoint set to ${this._endpoint}`);
2062
+ }
2063
+ get logger() {
2064
+ return common.LOG.logger;
2065
+ }
2066
+ /**
2067
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2068
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2069
+ * @param region The region of the service.
2070
+ */
2071
+ set region(region) {
2072
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RecipientInvitationClient.serviceEndpointTemplate, region);
2073
+ }
2074
+ /**
2075
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2076
+ *
2077
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2078
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2079
+ * and then call {@link #endpoint(String) endpoint}.
2080
+ * @param regionId The public region ID.
2081
+ */
2082
+ set regionId(regionId) {
2083
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RecipientInvitationClient.serviceEndpointTemplate, regionId);
2084
+ }
2085
+ /**
2086
+ * Creates a new RecipientInvitationWaiter for resources for this service.
2087
+ *
2088
+ * @param config The waiter configuration for termination and delay strategy
2089
+ * @return The service waiters.
2090
+ */
2091
+ createWaiters(config) {
2092
+ this._waiters = new recipientinvitation_waiter_1.RecipientInvitationWaiter(this, config);
2093
+ return this._waiters;
2094
+ }
2095
+ /**
2096
+ * Gets the waiters available for resources for this service.
2097
+ *
2098
+ * @return The service waiters.
2099
+ */
2100
+ getWaiters() {
2101
+ if (this._waiters) {
2102
+ return this._waiters;
2103
+ }
2104
+ throw Error("Waiters do not exist. Please create waiters.");
2105
+ }
2106
+ /**
2107
+ * Accepts a recipient invitation.
2108
+ * This operation does not retry by default if the user has not defined a retry configuration.
2109
+ * @param AcceptRecipientInvitationRequest
2110
+ * @return AcceptRecipientInvitationResponse
2111
+ * @throws OciError when an error occurs
2112
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/AcceptRecipientInvitation.ts.html |here} to see how to use AcceptRecipientInvitation API.
2113
+ */
2114
+ acceptRecipientInvitation(acceptRecipientInvitationRequest) {
2115
+ return __awaiter(this, void 0, void 0, function* () {
2116
+ if (this.logger)
2117
+ this.logger.debug("Calling operation RecipientInvitationClient#acceptRecipientInvitation.");
2118
+ const pathParams = {
2119
+ "{recipientInvitationId}": acceptRecipientInvitationRequest.recipientInvitationId
2120
+ };
2121
+ const queryParams = {};
2122
+ let headerParams = {
2123
+ "Content-Type": common.Constants.APPLICATION_JSON,
2124
+ "if-match": acceptRecipientInvitationRequest.ifMatch,
2125
+ "opc-retry-token": acceptRecipientInvitationRequest.opcRetryToken,
2126
+ "opc-request-id": acceptRecipientInvitationRequest.opcRequestId
2127
+ };
2128
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2129
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, acceptRecipientInvitationRequest.retryConfiguration, specRetryConfiguration);
2130
+ if (this.logger)
2131
+ retrier.logger = this.logger;
2132
+ const request = yield oci_common_1.composeRequest({
2133
+ baseEndpoint: this._endpoint,
2134
+ defaultHeaders: this._defaultHeaders,
2135
+ path: "/recipientInvitations/{recipientInvitationId}/actions/accept",
2136
+ method: "POST",
2137
+ pathParams: pathParams,
2138
+ headerParams: headerParams,
2139
+ queryParams: queryParams
2140
+ });
2141
+ try {
2142
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2143
+ const sdkResponse = oci_common_1.composeResponse({
2144
+ responseObject: {},
2145
+ responseHeaders: [
2146
+ {
2147
+ value: response.headers.get("opc-request-id"),
2148
+ key: "opcRequestId",
2149
+ dataType: "string"
2150
+ },
2151
+ {
2152
+ value: response.headers.get("opc-work-request-id"),
2153
+ key: "opcWorkRequestId",
2154
+ dataType: "string"
2155
+ }
2156
+ ]
2157
+ });
2158
+ return sdkResponse;
2159
+ }
2160
+ catch (err) {
2161
+ throw err;
2162
+ }
2163
+ });
2164
+ }
2165
+ /**
2166
+ * Gets information about the recipient invitation.
2167
+ * This operation does not retry by default if the user has not defined a retry configuration.
2168
+ * @param GetRecipientInvitationRequest
2169
+ * @return GetRecipientInvitationResponse
2170
+ * @throws OciError when an error occurs
2171
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetRecipientInvitation.ts.html |here} to see how to use GetRecipientInvitation API.
2172
+ */
2173
+ getRecipientInvitation(getRecipientInvitationRequest) {
2174
+ return __awaiter(this, void 0, void 0, function* () {
2175
+ if (this.logger)
2176
+ this.logger.debug("Calling operation RecipientInvitationClient#getRecipientInvitation.");
2177
+ const pathParams = {
2178
+ "{recipientInvitationId}": getRecipientInvitationRequest.recipientInvitationId
2179
+ };
2180
+ const queryParams = {};
2181
+ let headerParams = {
2182
+ "Content-Type": common.Constants.APPLICATION_JSON,
2183
+ "opc-request-id": getRecipientInvitationRequest.opcRequestId
2184
+ };
2185
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2186
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRecipientInvitationRequest.retryConfiguration, specRetryConfiguration);
2187
+ if (this.logger)
2188
+ retrier.logger = this.logger;
2189
+ const request = yield oci_common_1.composeRequest({
2190
+ baseEndpoint: this._endpoint,
2191
+ defaultHeaders: this._defaultHeaders,
2192
+ path: "/recipientInvitations/{recipientInvitationId}",
2193
+ method: "GET",
2194
+ pathParams: pathParams,
2195
+ headerParams: headerParams,
2196
+ queryParams: queryParams
2197
+ });
2198
+ try {
2199
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2200
+ const sdkResponse = oci_common_1.composeResponse({
2201
+ responseObject: {},
2202
+ body: yield response.json(),
2203
+ bodyKey: "recipientInvitation",
2204
+ bodyModel: model.RecipientInvitation,
2205
+ type: "model.RecipientInvitation",
2206
+ responseHeaders: [
2207
+ {
2208
+ value: response.headers.get("opc-request-id"),
2209
+ key: "opcRequestId",
2210
+ dataType: "string"
2211
+ },
2212
+ {
2213
+ value: response.headers.get("etag"),
2214
+ key: "etag",
2215
+ dataType: "string"
2216
+ }
2217
+ ]
2218
+ });
2219
+ return sdkResponse;
2220
+ }
2221
+ catch (err) {
2222
+ throw err;
2223
+ }
2224
+ });
2225
+ }
2226
+ /**
2227
+ * Ignores a recipient invitation.
2228
+ * This operation does not retry by default if the user has not defined a retry configuration.
2229
+ * @param IgnoreRecipientInvitationRequest
2230
+ * @return IgnoreRecipientInvitationResponse
2231
+ * @throws OciError when an error occurs
2232
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/IgnoreRecipientInvitation.ts.html |here} to see how to use IgnoreRecipientInvitation API.
2233
+ */
2234
+ ignoreRecipientInvitation(ignoreRecipientInvitationRequest) {
2235
+ return __awaiter(this, void 0, void 0, function* () {
2236
+ if (this.logger)
2237
+ this.logger.debug("Calling operation RecipientInvitationClient#ignoreRecipientInvitation.");
2238
+ const pathParams = {
2239
+ "{recipientInvitationId}": ignoreRecipientInvitationRequest.recipientInvitationId
2240
+ };
2241
+ const queryParams = {};
2242
+ let headerParams = {
2243
+ "Content-Type": common.Constants.APPLICATION_JSON,
2244
+ "if-match": ignoreRecipientInvitationRequest.ifMatch,
2245
+ "opc-retry-token": ignoreRecipientInvitationRequest.opcRetryToken,
2246
+ "opc-request-id": ignoreRecipientInvitationRequest.opcRequestId
2247
+ };
2248
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2249
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, ignoreRecipientInvitationRequest.retryConfiguration, specRetryConfiguration);
2250
+ if (this.logger)
2251
+ retrier.logger = this.logger;
2252
+ const request = yield oci_common_1.composeRequest({
2253
+ baseEndpoint: this._endpoint,
2254
+ defaultHeaders: this._defaultHeaders,
2255
+ path: "/recipientInvitations/{recipientInvitationId}/actions/ignore",
2256
+ method: "POST",
2257
+ pathParams: pathParams,
2258
+ headerParams: headerParams,
2259
+ queryParams: queryParams
2260
+ });
2261
+ try {
2262
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2263
+ const sdkResponse = oci_common_1.composeResponse({
2264
+ responseObject: {},
2265
+ body: yield response.json(),
2266
+ bodyKey: "recipientInvitation",
2267
+ bodyModel: model.RecipientInvitation,
2268
+ type: "model.RecipientInvitation",
2269
+ responseHeaders: [
2270
+ {
2271
+ value: response.headers.get("opc-request-id"),
2272
+ key: "opcRequestId",
2273
+ dataType: "string"
2274
+ },
2275
+ {
2276
+ value: response.headers.get("etag"),
2277
+ key: "etag",
2278
+ dataType: "string"
2279
+ }
2280
+ ]
2281
+ });
2282
+ return sdkResponse;
2283
+ }
2284
+ catch (err) {
2285
+ throw err;
2286
+ }
2287
+ });
2288
+ }
2289
+ /**
2290
+ * Return a (paginated) list of recipient invitations.
2291
+ *
2292
+ * This operation does not retry by default if the user has not defined a retry configuration.
2293
+ * @param ListRecipientInvitationsRequest
2294
+ * @return ListRecipientInvitationsResponse
2295
+ * @throws OciError when an error occurs
2296
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListRecipientInvitations.ts.html |here} to see how to use ListRecipientInvitations API.
2297
+ */
2298
+ listRecipientInvitations(listRecipientInvitationsRequest) {
2299
+ return __awaiter(this, void 0, void 0, function* () {
2300
+ if (this.logger)
2301
+ this.logger.debug("Calling operation RecipientInvitationClient#listRecipientInvitations.");
2302
+ const pathParams = {};
2303
+ const queryParams = {
2304
+ "senderTenancyId": listRecipientInvitationsRequest.senderTenancyId,
2305
+ "lifecycleState": listRecipientInvitationsRequest.lifecycleState,
2306
+ "status": listRecipientInvitationsRequest.status,
2307
+ "compartmentId": listRecipientInvitationsRequest.compartmentId,
2308
+ "page": listRecipientInvitationsRequest.page
2309
+ };
2310
+ let headerParams = {
2311
+ "Content-Type": common.Constants.APPLICATION_JSON,
2312
+ "opc-request-id": listRecipientInvitationsRequest.opcRequestId
2313
+ };
2314
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2315
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecipientInvitationsRequest.retryConfiguration, specRetryConfiguration);
2316
+ if (this.logger)
2317
+ retrier.logger = this.logger;
2318
+ const request = yield oci_common_1.composeRequest({
2319
+ baseEndpoint: this._endpoint,
2320
+ defaultHeaders: this._defaultHeaders,
2321
+ path: "/recipientInvitations",
2322
+ method: "GET",
2323
+ pathParams: pathParams,
2324
+ headerParams: headerParams,
2325
+ queryParams: queryParams
2326
+ });
2327
+ try {
2328
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2329
+ const sdkResponse = oci_common_1.composeResponse({
2330
+ responseObject: {},
2331
+ body: yield response.json(),
2332
+ bodyKey: "recipientInvitationCollection",
2333
+ bodyModel: model.RecipientInvitationCollection,
2334
+ type: "model.RecipientInvitationCollection",
2335
+ responseHeaders: [
2336
+ {
2337
+ value: response.headers.get("opc-next-page"),
2338
+ key: "opcNextPage",
2339
+ dataType: "string"
2340
+ },
2341
+ {
2342
+ value: response.headers.get("opc-request-id"),
2343
+ key: "opcRequestId",
2344
+ dataType: "string"
2345
+ }
2346
+ ]
2347
+ });
2348
+ return sdkResponse;
2349
+ }
2350
+ catch (err) {
2351
+ throw err;
2352
+ }
2353
+ });
2354
+ }
2355
+ /**
2356
+ * Updates the RecipientInvitation.
2357
+ * This operation does not retry by default if the user has not defined a retry configuration.
2358
+ * @param UpdateRecipientInvitationRequest
2359
+ * @return UpdateRecipientInvitationResponse
2360
+ * @throws OciError when an error occurs
2361
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UpdateRecipientInvitation.ts.html |here} to see how to use UpdateRecipientInvitation API.
2362
+ */
2363
+ updateRecipientInvitation(updateRecipientInvitationRequest) {
2364
+ return __awaiter(this, void 0, void 0, function* () {
2365
+ if (this.logger)
2366
+ this.logger.debug("Calling operation RecipientInvitationClient#updateRecipientInvitation.");
2367
+ const pathParams = {
2368
+ "{recipientInvitationId}": updateRecipientInvitationRequest.recipientInvitationId
2369
+ };
2370
+ const queryParams = {};
2371
+ let headerParams = {
2372
+ "Content-Type": common.Constants.APPLICATION_JSON,
2373
+ "if-match": updateRecipientInvitationRequest.ifMatch,
2374
+ "opc-request-id": updateRecipientInvitationRequest.opcRequestId
2375
+ };
2376
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2377
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRecipientInvitationRequest.retryConfiguration, specRetryConfiguration);
2378
+ if (this.logger)
2379
+ retrier.logger = this.logger;
2380
+ const request = yield oci_common_1.composeRequest({
2381
+ baseEndpoint: this._endpoint,
2382
+ defaultHeaders: this._defaultHeaders,
2383
+ path: "/recipientInvitations/{recipientInvitationId}",
2384
+ method: "PUT",
2385
+ bodyContent: common.ObjectSerializer.serialize(updateRecipientInvitationRequest.updateRecipientInvitationDetails, "UpdateRecipientInvitationDetails", model.UpdateRecipientInvitationDetails.getJsonObj),
2386
+ pathParams: pathParams,
2387
+ headerParams: headerParams,
2388
+ queryParams: queryParams
2389
+ });
2390
+ try {
2391
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2392
+ const sdkResponse = oci_common_1.composeResponse({
2393
+ responseObject: {},
2394
+ body: yield response.json(),
2395
+ bodyKey: "recipientInvitation",
2396
+ bodyModel: model.RecipientInvitation,
2397
+ type: "model.RecipientInvitation",
2398
+ responseHeaders: [
2399
+ {
2400
+ value: response.headers.get("opc-request-id"),
2401
+ key: "opcRequestId",
2402
+ dataType: "string"
2403
+ },
2404
+ {
2405
+ value: response.headers.get("etag"),
2406
+ key: "etag",
2407
+ dataType: "string"
2408
+ }
2409
+ ]
2410
+ });
2411
+ return sdkResponse;
2412
+ }
2413
+ catch (err) {
2414
+ throw err;
2415
+ }
2416
+ });
2417
+ }
2418
+ }
2419
+ exports.RecipientInvitationClient = RecipientInvitationClient;
2420
+ RecipientInvitationClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
2421
+ var SenderInvitationApiKeys;
2422
+ (function (SenderInvitationApiKeys) {
2423
+ })(SenderInvitationApiKeys = exports.SenderInvitationApiKeys || (exports.SenderInvitationApiKeys = {}));
2424
+ /**
2425
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
2426
+ */
2427
+ class SenderInvitationClient {
2428
+ constructor(params, clientConfiguration) {
2429
+ this["_endpoint"] = "";
2430
+ this["_defaultHeaders"] = {};
2431
+ this._circuitBreaker = null;
2432
+ const requestSigner = params.authenticationDetailsProvider
2433
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2434
+ : null;
2435
+ if (clientConfiguration) {
2436
+ this._clientConfiguration = clientConfiguration;
2437
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2438
+ ? clientConfiguration.circuitBreaker.circuit
2439
+ : null;
2440
+ }
2441
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2442
+ const specCircuitBreakerEnabled = false;
2443
+ if (!this._circuitBreaker &&
2444
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2445
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2446
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2447
+ }
2448
+ this._httpClient =
2449
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
2450
+ if (params.authenticationDetailsProvider &&
2451
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2452
+ const provider = params.authenticationDetailsProvider;
2453
+ if (provider.getRegion()) {
2454
+ this.region = provider.getRegion();
2455
+ }
2456
+ }
2457
+ }
2458
+ /**
2459
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2460
+ */
2461
+ get endpoint() {
2462
+ return this._endpoint;
2463
+ }
2464
+ /**
2465
+ * Sets the endpoint to call (ex, https://www.example.com).
2466
+ * @param endpoint The endpoint of the service.
2467
+ */
2468
+ set endpoint(endpoint) {
2469
+ this._endpoint = endpoint;
2470
+ this._endpoint = this._endpoint + "/20200801";
2471
+ if (this.logger)
2472
+ this.logger.info(`SenderInvitationClient endpoint set to ${this._endpoint}`);
2473
+ }
2474
+ get logger() {
2475
+ return common.LOG.logger;
2476
+ }
2477
+ /**
2478
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2479
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2480
+ * @param region The region of the service.
2481
+ */
2482
+ set region(region) {
2483
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SenderInvitationClient.serviceEndpointTemplate, region);
2484
+ }
2485
+ /**
2486
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2487
+ *
2488
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2489
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2490
+ * and then call {@link #endpoint(String) endpoint}.
2491
+ * @param regionId The public region ID.
2492
+ */
2493
+ set regionId(regionId) {
2494
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SenderInvitationClient.serviceEndpointTemplate, regionId);
2495
+ }
2496
+ /**
2497
+ * Creates a new SenderInvitationWaiter for resources for this service.
2498
+ *
2499
+ * @param config The waiter configuration for termination and delay strategy
2500
+ * @return The service waiters.
2501
+ */
2502
+ createWaiters(config) {
2503
+ this._waiters = new senderinvitation_waiter_1.SenderInvitationWaiter(this, config);
2504
+ return this._waiters;
2505
+ }
2506
+ /**
2507
+ * Gets the waiters available for resources for this service.
2508
+ *
2509
+ * @return The service waiters.
2510
+ */
2511
+ getWaiters() {
2512
+ if (this._waiters) {
2513
+ return this._waiters;
2514
+ }
2515
+ throw Error("Waiters do not exist. Please create waiters.");
2516
+ }
2517
+ /**
2518
+ * Cancels a sender invitation.
2519
+ * This operation does not retry by default if the user has not defined a retry configuration.
2520
+ * @param CancelSenderInvitationRequest
2521
+ * @return CancelSenderInvitationResponse
2522
+ * @throws OciError when an error occurs
2523
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CancelSenderInvitation.ts.html |here} to see how to use CancelSenderInvitation API.
2524
+ */
2525
+ cancelSenderInvitation(cancelSenderInvitationRequest) {
2526
+ return __awaiter(this, void 0, void 0, function* () {
2527
+ if (this.logger)
2528
+ this.logger.debug("Calling operation SenderInvitationClient#cancelSenderInvitation.");
2529
+ const pathParams = {
2530
+ "{senderInvitationId}": cancelSenderInvitationRequest.senderInvitationId
2531
+ };
2532
+ const queryParams = {};
2533
+ let headerParams = {
2534
+ "Content-Type": common.Constants.APPLICATION_JSON,
2535
+ "if-match": cancelSenderInvitationRequest.ifMatch,
2536
+ "opc-retry-token": cancelSenderInvitationRequest.opcRetryToken,
2537
+ "opc-request-id": cancelSenderInvitationRequest.opcRequestId
2538
+ };
2539
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2540
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelSenderInvitationRequest.retryConfiguration, specRetryConfiguration);
2541
+ if (this.logger)
2542
+ retrier.logger = this.logger;
2543
+ const request = yield oci_common_1.composeRequest({
2544
+ baseEndpoint: this._endpoint,
2545
+ defaultHeaders: this._defaultHeaders,
2546
+ path: "/senderInvitations/{senderInvitationId}/actions/cancel",
2547
+ method: "POST",
2548
+ pathParams: pathParams,
2549
+ headerParams: headerParams,
2550
+ queryParams: queryParams
2551
+ });
2552
+ try {
2553
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2554
+ const sdkResponse = oci_common_1.composeResponse({
2555
+ responseObject: {},
2556
+ responseHeaders: [
2557
+ {
2558
+ value: response.headers.get("opc-request-id"),
2559
+ key: "opcRequestId",
2560
+ dataType: "string"
2561
+ },
2562
+ {
2563
+ value: response.headers.get("opc-work-request-id"),
2564
+ key: "opcWorkRequestId",
2565
+ dataType: "string"
2566
+ }
2567
+ ]
2568
+ });
2569
+ return sdkResponse;
2570
+ }
2571
+ catch (err) {
2572
+ throw err;
2573
+ }
2574
+ });
2575
+ }
2576
+ /**
2577
+ * Creates a sender invitation and asynchronously sends the invitation to the recipient.
2578
+ * This operation does not retry by default if the user has not defined a retry configuration.
2579
+ * @param CreateSenderInvitationRequest
2580
+ * @return CreateSenderInvitationResponse
2581
+ * @throws OciError when an error occurs
2582
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CreateSenderInvitation.ts.html |here} to see how to use CreateSenderInvitation API.
2583
+ */
2584
+ createSenderInvitation(createSenderInvitationRequest) {
2585
+ return __awaiter(this, void 0, void 0, function* () {
2586
+ if (this.logger)
2587
+ this.logger.debug("Calling operation SenderInvitationClient#createSenderInvitation.");
2588
+ const pathParams = {};
2589
+ const queryParams = {};
1825
2590
  let headerParams = {
1826
2591
  "Content-Type": common.Constants.APPLICATION_JSON,
1827
2592
  "opc-retry-token": createSenderInvitationRequest.opcRetryToken,
1828
2593
  "opc-request-id": createSenderInvitationRequest.opcRequestId
1829
2594
  };
1830
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createSenderInvitationRequest.retryConfiguration);
2595
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2596
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSenderInvitationRequest.retryConfiguration, specRetryConfiguration);
2597
+ if (this.logger)
2598
+ retrier.logger = this.logger;
2599
+ const request = yield oci_common_1.composeRequest({
2600
+ baseEndpoint: this._endpoint,
2601
+ defaultHeaders: this._defaultHeaders,
2602
+ path: "/senderInvitations",
2603
+ method: "POST",
2604
+ bodyContent: common.ObjectSerializer.serialize(createSenderInvitationRequest.createSenderInvitationDetails, "CreateSenderInvitationDetails", model.CreateSenderInvitationDetails.getJsonObj),
2605
+ pathParams: pathParams,
2606
+ headerParams: headerParams,
2607
+ queryParams: queryParams
2608
+ });
2609
+ try {
2610
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2611
+ const sdkResponse = oci_common_1.composeResponse({
2612
+ responseObject: {},
2613
+ body: yield response.json(),
2614
+ bodyKey: "senderInvitation",
2615
+ bodyModel: model.SenderInvitation,
2616
+ type: "model.SenderInvitation",
2617
+ responseHeaders: [
2618
+ {
2619
+ value: response.headers.get("opc-request-id"),
2620
+ key: "opcRequestId",
2621
+ dataType: "string"
2622
+ },
2623
+ {
2624
+ value: response.headers.get("opc-work-request-id"),
2625
+ key: "opcWorkRequestId",
2626
+ dataType: "string"
2627
+ },
2628
+ {
2629
+ value: response.headers.get("etag"),
2630
+ key: "etag",
2631
+ dataType: "string"
2632
+ }
2633
+ ]
2634
+ });
2635
+ return sdkResponse;
2636
+ }
2637
+ catch (err) {
2638
+ throw err;
2639
+ }
2640
+ });
2641
+ }
2642
+ /**
2643
+ * Gets information about the sender invitation.
2644
+ * This operation does not retry by default if the user has not defined a retry configuration.
2645
+ * @param GetSenderInvitationRequest
2646
+ * @return GetSenderInvitationResponse
2647
+ * @throws OciError when an error occurs
2648
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetSenderInvitation.ts.html |here} to see how to use GetSenderInvitation API.
2649
+ */
2650
+ getSenderInvitation(getSenderInvitationRequest) {
2651
+ return __awaiter(this, void 0, void 0, function* () {
2652
+ if (this.logger)
2653
+ this.logger.debug("Calling operation SenderInvitationClient#getSenderInvitation.");
2654
+ const pathParams = {
2655
+ "{senderInvitationId}": getSenderInvitationRequest.senderInvitationId
2656
+ };
2657
+ const queryParams = {};
2658
+ let headerParams = {
2659
+ "Content-Type": common.Constants.APPLICATION_JSON,
2660
+ "opc-request-id": getSenderInvitationRequest.opcRequestId
2661
+ };
2662
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2663
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSenderInvitationRequest.retryConfiguration, specRetryConfiguration);
2664
+ if (this.logger)
2665
+ retrier.logger = this.logger;
2666
+ const request = yield oci_common_1.composeRequest({
2667
+ baseEndpoint: this._endpoint,
2668
+ defaultHeaders: this._defaultHeaders,
2669
+ path: "/senderInvitations/{senderInvitationId}",
2670
+ method: "GET",
2671
+ pathParams: pathParams,
2672
+ headerParams: headerParams,
2673
+ queryParams: queryParams
2674
+ });
2675
+ try {
2676
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2677
+ const sdkResponse = oci_common_1.composeResponse({
2678
+ responseObject: {},
2679
+ body: yield response.json(),
2680
+ bodyKey: "senderInvitation",
2681
+ bodyModel: model.SenderInvitation,
2682
+ type: "model.SenderInvitation",
2683
+ responseHeaders: [
2684
+ {
2685
+ value: response.headers.get("etag"),
2686
+ key: "etag",
2687
+ dataType: "string"
2688
+ },
2689
+ {
2690
+ value: response.headers.get("opc-request-id"),
2691
+ key: "opcRequestId",
2692
+ dataType: "string"
2693
+ }
2694
+ ]
2695
+ });
2696
+ return sdkResponse;
2697
+ }
2698
+ catch (err) {
2699
+ throw err;
2700
+ }
2701
+ });
2702
+ }
2703
+ /**
2704
+ * Return a (paginated) list of sender invitations.
2705
+ *
2706
+ * This operation does not retry by default if the user has not defined a retry configuration.
2707
+ * @param ListSenderInvitationsRequest
2708
+ * @return ListSenderInvitationsResponse
2709
+ * @throws OciError when an error occurs
2710
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListSenderInvitations.ts.html |here} to see how to use ListSenderInvitations API.
2711
+ */
2712
+ listSenderInvitations(listSenderInvitationsRequest) {
2713
+ return __awaiter(this, void 0, void 0, function* () {
2714
+ if (this.logger)
2715
+ this.logger.debug("Calling operation SenderInvitationClient#listSenderInvitations.");
2716
+ const pathParams = {};
2717
+ const queryParams = {
2718
+ "compartmentId": listSenderInvitationsRequest.compartmentId,
2719
+ "recipientTenancyId": listSenderInvitationsRequest.recipientTenancyId,
2720
+ "lifecycleState": listSenderInvitationsRequest.lifecycleState,
2721
+ "status": listSenderInvitationsRequest.status,
2722
+ "displayName": listSenderInvitationsRequest.displayName,
2723
+ "page": listSenderInvitationsRequest.page,
2724
+ "limit": listSenderInvitationsRequest.limit,
2725
+ "sortBy": listSenderInvitationsRequest.sortBy,
2726
+ "sortOrder": listSenderInvitationsRequest.sortOrder
2727
+ };
2728
+ let headerParams = {
2729
+ "Content-Type": common.Constants.APPLICATION_JSON,
2730
+ "opc-request-id": listSenderInvitationsRequest.opcRequestId
2731
+ };
2732
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2733
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSenderInvitationsRequest.retryConfiguration, specRetryConfiguration);
2734
+ if (this.logger)
2735
+ retrier.logger = this.logger;
2736
+ const request = yield oci_common_1.composeRequest({
2737
+ baseEndpoint: this._endpoint,
2738
+ defaultHeaders: this._defaultHeaders,
2739
+ path: "/senderInvitations",
2740
+ method: "GET",
2741
+ pathParams: pathParams,
2742
+ headerParams: headerParams,
2743
+ queryParams: queryParams
2744
+ });
2745
+ try {
2746
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2747
+ const sdkResponse = oci_common_1.composeResponse({
2748
+ responseObject: {},
2749
+ body: yield response.json(),
2750
+ bodyKey: "senderInvitationCollection",
2751
+ bodyModel: model.SenderInvitationCollection,
2752
+ type: "model.SenderInvitationCollection",
2753
+ responseHeaders: [
2754
+ {
2755
+ value: response.headers.get("opc-next-page"),
2756
+ key: "opcNextPage",
2757
+ dataType: "string"
2758
+ },
2759
+ {
2760
+ value: response.headers.get("opc-request-id"),
2761
+ key: "opcRequestId",
2762
+ dataType: "string"
2763
+ }
2764
+ ]
2765
+ });
2766
+ return sdkResponse;
2767
+ }
2768
+ catch (err) {
2769
+ throw err;
2770
+ }
2771
+ });
2772
+ }
2773
+ /**
2774
+ * Updates the SenderInvitation.
2775
+ * This operation does not retry by default if the user has not defined a retry configuration.
2776
+ * @param UpdateSenderInvitationRequest
2777
+ * @return UpdateSenderInvitationResponse
2778
+ * @throws OciError when an error occurs
2779
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/UpdateSenderInvitation.ts.html |here} to see how to use UpdateSenderInvitation API.
2780
+ */
2781
+ updateSenderInvitation(updateSenderInvitationRequest) {
2782
+ return __awaiter(this, void 0, void 0, function* () {
2783
+ if (this.logger)
2784
+ this.logger.debug("Calling operation SenderInvitationClient#updateSenderInvitation.");
2785
+ const pathParams = {
2786
+ "{senderInvitationId}": updateSenderInvitationRequest.senderInvitationId
2787
+ };
2788
+ const queryParams = {};
2789
+ let headerParams = {
2790
+ "Content-Type": common.Constants.APPLICATION_JSON,
2791
+ "if-match": updateSenderInvitationRequest.ifMatch,
2792
+ "opc-request-id": updateSenderInvitationRequest.opcRequestId
2793
+ };
2794
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2795
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSenderInvitationRequest.retryConfiguration, specRetryConfiguration);
2796
+ if (this.logger)
2797
+ retrier.logger = this.logger;
2798
+ const request = yield oci_common_1.composeRequest({
2799
+ baseEndpoint: this._endpoint,
2800
+ defaultHeaders: this._defaultHeaders,
2801
+ path: "/senderInvitations/{senderInvitationId}",
2802
+ method: "PUT",
2803
+ bodyContent: common.ObjectSerializer.serialize(updateSenderInvitationRequest.updateSenderInvitationDetails, "UpdateSenderInvitationDetails", model.UpdateSenderInvitationDetails.getJsonObj),
2804
+ pathParams: pathParams,
2805
+ headerParams: headerParams,
2806
+ queryParams: queryParams
2807
+ });
2808
+ try {
2809
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2810
+ const sdkResponse = oci_common_1.composeResponse({
2811
+ responseObject: {},
2812
+ body: yield response.json(),
2813
+ bodyKey: "senderInvitation",
2814
+ bodyModel: model.SenderInvitation,
2815
+ type: "model.SenderInvitation",
2816
+ responseHeaders: [
2817
+ {
2818
+ value: response.headers.get("opc-request-id"),
2819
+ key: "opcRequestId",
2820
+ dataType: "string"
2821
+ },
2822
+ {
2823
+ value: response.headers.get("etag"),
2824
+ key: "etag",
2825
+ dataType: "string"
2826
+ }
2827
+ ]
2828
+ });
2829
+ return sdkResponse;
2830
+ }
2831
+ catch (err) {
2832
+ throw err;
2833
+ }
2834
+ });
2835
+ }
2836
+ }
2837
+ exports.SenderInvitationClient = SenderInvitationClient;
2838
+ SenderInvitationClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
2839
+ var SubscriptionApiKeys;
2840
+ (function (SubscriptionApiKeys) {
2841
+ })(SubscriptionApiKeys = exports.SubscriptionApiKeys || (exports.SubscriptionApiKeys = {}));
2842
+ /**
2843
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
2844
+ */
2845
+ class SubscriptionClient {
2846
+ constructor(params, clientConfiguration) {
2847
+ this["_endpoint"] = "";
2848
+ this["_defaultHeaders"] = {};
2849
+ this._circuitBreaker = null;
2850
+ const requestSigner = params.authenticationDetailsProvider
2851
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2852
+ : null;
2853
+ if (clientConfiguration) {
2854
+ this._clientConfiguration = clientConfiguration;
2855
+ this._circuitBreaker = clientConfiguration.circuitBreaker
2856
+ ? clientConfiguration.circuitBreaker.circuit
2857
+ : null;
2858
+ }
2859
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
2860
+ const specCircuitBreakerEnabled = false;
2861
+ if (!this._circuitBreaker &&
2862
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
2863
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
2864
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
2865
+ }
2866
+ this._httpClient =
2867
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
2868
+ if (params.authenticationDetailsProvider &&
2869
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
2870
+ const provider = params.authenticationDetailsProvider;
2871
+ if (provider.getRegion()) {
2872
+ this.region = provider.getRegion();
2873
+ }
2874
+ }
2875
+ }
2876
+ /**
2877
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
2878
+ */
2879
+ get endpoint() {
2880
+ return this._endpoint;
2881
+ }
2882
+ /**
2883
+ * Sets the endpoint to call (ex, https://www.example.com).
2884
+ * @param endpoint The endpoint of the service.
2885
+ */
2886
+ set endpoint(endpoint) {
2887
+ this._endpoint = endpoint;
2888
+ this._endpoint = this._endpoint + "/20200801";
2889
+ if (this.logger)
2890
+ this.logger.info(`SubscriptionClient endpoint set to ${this._endpoint}`);
2891
+ }
2892
+ get logger() {
2893
+ return common.LOG.logger;
2894
+ }
2895
+ /**
2896
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
2897
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2898
+ * @param region The region of the service.
2899
+ */
2900
+ set region(region) {
2901
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscriptionClient.serviceEndpointTemplate, region);
2902
+ }
2903
+ /**
2904
+ * Sets the regionId to call (ex, 'us-phoenix-1').
2905
+ *
2906
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
2907
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
2908
+ * and then call {@link #endpoint(String) endpoint}.
2909
+ * @param regionId The public region ID.
2910
+ */
2911
+ set regionId(regionId) {
2912
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscriptionClient.serviceEndpointTemplate, regionId);
2913
+ }
2914
+ /**
2915
+ * Creates a new SubscriptionWaiter for resources for this service.
2916
+ *
2917
+ * @param config The waiter configuration for termination and delay strategy
2918
+ * @return The service waiters.
2919
+ */
2920
+ createWaiters(config) {
2921
+ this._waiters = new subscription_waiter_1.SubscriptionWaiter(this, config);
2922
+ return this._waiters;
2923
+ }
2924
+ /**
2925
+ * Gets the waiters available for resources for this service.
2926
+ *
2927
+ * @return The service waiters.
2928
+ */
2929
+ getWaiters() {
2930
+ if (this._waiters) {
2931
+ return this._waiters;
2932
+ }
2933
+ throw Error("Waiters do not exist. Please create waiters.");
2934
+ }
2935
+ /**
2936
+ * Assign the tenancy record identified by the compartment ID to the given subscription ID.
2937
+ * This operation does not retry by default if the user has not defined a retry configuration.
2938
+ * @param CreateSubscriptionMappingRequest
2939
+ * @return CreateSubscriptionMappingResponse
2940
+ * @throws OciError when an error occurs
2941
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/CreateSubscriptionMapping.ts.html |here} to see how to use CreateSubscriptionMapping API.
2942
+ */
2943
+ createSubscriptionMapping(createSubscriptionMappingRequest) {
2944
+ return __awaiter(this, void 0, void 0, function* () {
2945
+ if (this.logger)
2946
+ this.logger.debug("Calling operation SubscriptionClient#createSubscriptionMapping.");
2947
+ const pathParams = {};
2948
+ const queryParams = {};
2949
+ let headerParams = {
2950
+ "Content-Type": common.Constants.APPLICATION_JSON,
2951
+ "if-match": createSubscriptionMappingRequest.ifMatch,
2952
+ "opc-retry-token": createSubscriptionMappingRequest.opcRetryToken,
2953
+ "opc-request-id": createSubscriptionMappingRequest.opcRequestId
2954
+ };
2955
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2956
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSubscriptionMappingRequest.retryConfiguration, specRetryConfiguration);
2957
+ if (this.logger)
2958
+ retrier.logger = this.logger;
2959
+ const request = yield oci_common_1.composeRequest({
2960
+ baseEndpoint: this._endpoint,
2961
+ defaultHeaders: this._defaultHeaders,
2962
+ path: "/subscriptionMappings",
2963
+ method: "POST",
2964
+ bodyContent: common.ObjectSerializer.serialize(createSubscriptionMappingRequest.createSubscriptionMappingDetails, "CreateSubscriptionMappingDetails", model.CreateSubscriptionMappingDetails.getJsonObj),
2965
+ pathParams: pathParams,
2966
+ headerParams: headerParams,
2967
+ queryParams: queryParams
2968
+ });
2969
+ try {
2970
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
2971
+ const sdkResponse = oci_common_1.composeResponse({
2972
+ responseObject: {},
2973
+ body: yield response.json(),
2974
+ bodyKey: "subscriptionMapping",
2975
+ bodyModel: model.SubscriptionMapping,
2976
+ type: "model.SubscriptionMapping",
2977
+ responseHeaders: [
2978
+ {
2979
+ value: response.headers.get("opc-request-id"),
2980
+ key: "opcRequestId",
2981
+ dataType: "string"
2982
+ },
2983
+ {
2984
+ value: response.headers.get("opc-work-request-id"),
2985
+ key: "opcWorkRequestId",
2986
+ dataType: "string"
2987
+ },
2988
+ {
2989
+ value: response.headers.get("etag"),
2990
+ key: "etag",
2991
+ dataType: "string"
2992
+ }
2993
+ ]
2994
+ });
2995
+ return sdkResponse;
2996
+ }
2997
+ catch (err) {
2998
+ throw err;
2999
+ }
3000
+ });
3001
+ }
3002
+ /**
3003
+ * Delete the subscription mapping details by subscription mapping ID.
3004
+ * This operation does not retry by default if the user has not defined a retry configuration.
3005
+ * @param DeleteSubscriptionMappingRequest
3006
+ * @return DeleteSubscriptionMappingResponse
3007
+ * @throws OciError when an error occurs
3008
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/DeleteSubscriptionMapping.ts.html |here} to see how to use DeleteSubscriptionMapping API.
3009
+ */
3010
+ deleteSubscriptionMapping(deleteSubscriptionMappingRequest) {
3011
+ return __awaiter(this, void 0, void 0, function* () {
3012
+ if (this.logger)
3013
+ this.logger.debug("Calling operation SubscriptionClient#deleteSubscriptionMapping.");
3014
+ const pathParams = {
3015
+ "{subscriptionMappingId}": deleteSubscriptionMappingRequest.subscriptionMappingId
3016
+ };
3017
+ const queryParams = {};
3018
+ let headerParams = {
3019
+ "Content-Type": common.Constants.APPLICATION_JSON,
3020
+ "opc-request-id": deleteSubscriptionMappingRequest.opcRequestId,
3021
+ "if-match": deleteSubscriptionMappingRequest.ifMatch
3022
+ };
3023
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3024
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSubscriptionMappingRequest.retryConfiguration, specRetryConfiguration);
1831
3025
  if (this.logger)
1832
3026
  retrier.logger = this.logger;
1833
3027
  const request = yield oci_common_1.composeRequest({
1834
3028
  baseEndpoint: this._endpoint,
1835
3029
  defaultHeaders: this._defaultHeaders,
1836
- path: "/senderInvitations",
1837
- method: "POST",
1838
- bodyContent: common.ObjectSerializer.serialize(createSenderInvitationRequest.createSenderInvitationDetails, "CreateSenderInvitationDetails", model.CreateSenderInvitationDetails.getJsonObj),
3030
+ path: "/subscriptionMappings/{subscriptionMappingId}",
3031
+ method: "DELETE",
3032
+ pathParams: pathParams,
3033
+ headerParams: headerParams,
3034
+ queryParams: queryParams
3035
+ });
3036
+ try {
3037
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3038
+ const sdkResponse = oci_common_1.composeResponse({
3039
+ responseObject: {},
3040
+ responseHeaders: [
3041
+ {
3042
+ value: response.headers.get("opc-request-id"),
3043
+ key: "opcRequestId",
3044
+ dataType: "string"
3045
+ }
3046
+ ]
3047
+ });
3048
+ return sdkResponse;
3049
+ }
3050
+ catch (err) {
3051
+ throw err;
3052
+ }
3053
+ });
3054
+ }
3055
+ /**
3056
+ * Get the assigned subscription details by assigned subscription ID.
3057
+ * This operation does not retry by default if the user has not defined a retry configuration.
3058
+ * @param GetAssignedSubscriptionRequest
3059
+ * @return GetAssignedSubscriptionResponse
3060
+ * @throws OciError when an error occurs
3061
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetAssignedSubscription.ts.html |here} to see how to use GetAssignedSubscription API.
3062
+ */
3063
+ getAssignedSubscription(getAssignedSubscriptionRequest) {
3064
+ return __awaiter(this, void 0, void 0, function* () {
3065
+ if (this.logger)
3066
+ this.logger.debug("Calling operation SubscriptionClient#getAssignedSubscription.");
3067
+ const pathParams = {
3068
+ "{assignedSubscriptionId}": getAssignedSubscriptionRequest.assignedSubscriptionId
3069
+ };
3070
+ const queryParams = {};
3071
+ let headerParams = {
3072
+ "Content-Type": common.Constants.APPLICATION_JSON,
3073
+ "opc-request-id": getAssignedSubscriptionRequest.opcRequestId
3074
+ };
3075
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3076
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAssignedSubscriptionRequest.retryConfiguration, specRetryConfiguration);
3077
+ if (this.logger)
3078
+ retrier.logger = this.logger;
3079
+ const request = yield oci_common_1.composeRequest({
3080
+ baseEndpoint: this._endpoint,
3081
+ defaultHeaders: this._defaultHeaders,
3082
+ path: "/assignedSubscriptions/{assignedSubscriptionId}",
3083
+ method: "GET",
1839
3084
  pathParams: pathParams,
1840
3085
  headerParams: headerParams,
1841
3086
  queryParams: queryParams
@@ -1845,9 +3090,9 @@ class SenderInvitationClient {
1845
3090
  const sdkResponse = oci_common_1.composeResponse({
1846
3091
  responseObject: {},
1847
3092
  body: yield response.json(),
1848
- bodyKey: "senderInvitation",
1849
- bodyModel: model.SenderInvitation,
1850
- type: "model.SenderInvitation",
3093
+ bodyKey: "assignedSubscription",
3094
+ bodyModel: model.AssignedSubscription,
3095
+ type: "model.AssignedSubscription",
1851
3096
  responseHeaders: [
1852
3097
  {
1853
3098
  value: response.headers.get("opc-request-id"),
@@ -1855,8 +3100,64 @@ class SenderInvitationClient {
1855
3100
  dataType: "string"
1856
3101
  },
1857
3102
  {
1858
- value: response.headers.get("opc-work-request-id"),
1859
- key: "opcWorkRequestId",
3103
+ value: response.headers.get("etag"),
3104
+ key: "etag",
3105
+ dataType: "string"
3106
+ }
3107
+ ]
3108
+ });
3109
+ return sdkResponse;
3110
+ }
3111
+ catch (err) {
3112
+ throw err;
3113
+ }
3114
+ });
3115
+ }
3116
+ /**
3117
+ * Gets the subscription details by subscriptionId.
3118
+ * This operation does not retry by default if the user has not defined a retry configuration.
3119
+ * @param GetSubscriptionRequest
3120
+ * @return GetSubscriptionResponse
3121
+ * @throws OciError when an error occurs
3122
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetSubscription.ts.html |here} to see how to use GetSubscription API.
3123
+ */
3124
+ getSubscription(getSubscriptionRequest) {
3125
+ return __awaiter(this, void 0, void 0, function* () {
3126
+ if (this.logger)
3127
+ this.logger.debug("Calling operation SubscriptionClient#getSubscription.");
3128
+ const pathParams = {
3129
+ "{subscriptionId}": getSubscriptionRequest.subscriptionId
3130
+ };
3131
+ const queryParams = {};
3132
+ let headerParams = {
3133
+ "Content-Type": common.Constants.APPLICATION_JSON,
3134
+ "opc-request-id": getSubscriptionRequest.opcRequestId
3135
+ };
3136
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3137
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriptionRequest.retryConfiguration, specRetryConfiguration);
3138
+ if (this.logger)
3139
+ retrier.logger = this.logger;
3140
+ const request = yield oci_common_1.composeRequest({
3141
+ baseEndpoint: this._endpoint,
3142
+ defaultHeaders: this._defaultHeaders,
3143
+ path: "/subscriptions/{subscriptionId}",
3144
+ method: "GET",
3145
+ pathParams: pathParams,
3146
+ headerParams: headerParams,
3147
+ queryParams: queryParams
3148
+ });
3149
+ try {
3150
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3151
+ const sdkResponse = oci_common_1.composeResponse({
3152
+ responseObject: {},
3153
+ body: yield response.json(),
3154
+ bodyKey: "subscription",
3155
+ bodyModel: model.Subscription,
3156
+ type: "model.Subscription",
3157
+ responseHeaders: [
3158
+ {
3159
+ value: response.headers.get("opc-request-id"),
3160
+ key: "opcRequestId",
1860
3161
  dataType: "string"
1861
3162
  },
1862
3163
  {
@@ -1874,31 +3175,33 @@ class SenderInvitationClient {
1874
3175
  });
1875
3176
  }
1876
3177
  /**
1877
- * Gets information about the sender invitation.
1878
- * @param GetSenderInvitationRequest
1879
- * @return GetSenderInvitationResponse
3178
+ * Get the subscription mapping details by subscription mapping ID.
3179
+ * This operation does not retry by default if the user has not defined a retry configuration.
3180
+ * @param GetSubscriptionMappingRequest
3181
+ * @return GetSubscriptionMappingResponse
1880
3182
  * @throws OciError when an error occurs
1881
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetSenderInvitation.ts.html |here} to see how to use GetSenderInvitation API.
3183
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetSubscriptionMapping.ts.html |here} to see how to use GetSubscriptionMapping API.
1882
3184
  */
1883
- getSenderInvitation(getSenderInvitationRequest) {
3185
+ getSubscriptionMapping(getSubscriptionMappingRequest) {
1884
3186
  return __awaiter(this, void 0, void 0, function* () {
1885
3187
  if (this.logger)
1886
- this.logger.debug("Calling operation SenderInvitationClient#getSenderInvitation.");
3188
+ this.logger.debug("Calling operation SubscriptionClient#getSubscriptionMapping.");
1887
3189
  const pathParams = {
1888
- "{senderInvitationId}": getSenderInvitationRequest.senderInvitationId
3190
+ "{subscriptionMappingId}": getSubscriptionMappingRequest.subscriptionMappingId
1889
3191
  };
1890
3192
  const queryParams = {};
1891
3193
  let headerParams = {
1892
3194
  "Content-Type": common.Constants.APPLICATION_JSON,
1893
- "opc-request-id": getSenderInvitationRequest.opcRequestId
3195
+ "opc-request-id": getSubscriptionMappingRequest.opcRequestId
1894
3196
  };
1895
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getSenderInvitationRequest.retryConfiguration);
3197
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3198
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriptionMappingRequest.retryConfiguration, specRetryConfiguration);
1896
3199
  if (this.logger)
1897
3200
  retrier.logger = this.logger;
1898
3201
  const request = yield oci_common_1.composeRequest({
1899
3202
  baseEndpoint: this._endpoint,
1900
3203
  defaultHeaders: this._defaultHeaders,
1901
- path: "/senderInvitations/{senderInvitationId}",
3204
+ path: "/subscriptionMappings/{subscriptionMappingId}",
1902
3205
  method: "GET",
1903
3206
  pathParams: pathParams,
1904
3207
  headerParams: headerParams,
@@ -1909,14 +3212,80 @@ class SenderInvitationClient {
1909
3212
  const sdkResponse = oci_common_1.composeResponse({
1910
3213
  responseObject: {},
1911
3214
  body: yield response.json(),
1912
- bodyKey: "senderInvitation",
1913
- bodyModel: model.SenderInvitation,
1914
- type: "model.SenderInvitation",
3215
+ bodyKey: "subscriptionMapping",
3216
+ bodyModel: model.SubscriptionMapping,
3217
+ type: "model.SubscriptionMapping",
1915
3218
  responseHeaders: [
3219
+ {
3220
+ value: response.headers.get("opc-request-id"),
3221
+ key: "opcRequestId",
3222
+ dataType: "string"
3223
+ },
1916
3224
  {
1917
3225
  value: response.headers.get("etag"),
1918
3226
  key: "etag",
1919
3227
  dataType: "string"
3228
+ }
3229
+ ]
3230
+ });
3231
+ return sdkResponse;
3232
+ }
3233
+ catch (err) {
3234
+ throw err;
3235
+ }
3236
+ });
3237
+ }
3238
+ /**
3239
+ * Lists subscriptions that are consumed by the compartment. Only the root compartment is allowed.
3240
+ * This operation does not retry by default if the user has not defined a retry configuration.
3241
+ * @param ListAssignedSubscriptionsRequest
3242
+ * @return ListAssignedSubscriptionsResponse
3243
+ * @throws OciError when an error occurs
3244
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListAssignedSubscriptions.ts.html |here} to see how to use ListAssignedSubscriptions API.
3245
+ */
3246
+ listAssignedSubscriptions(listAssignedSubscriptionsRequest) {
3247
+ return __awaiter(this, void 0, void 0, function* () {
3248
+ if (this.logger)
3249
+ this.logger.debug("Calling operation SubscriptionClient#listAssignedSubscriptions.");
3250
+ const pathParams = {};
3251
+ const queryParams = {
3252
+ "compartmentId": listAssignedSubscriptionsRequest.compartmentId,
3253
+ "subscriptionId": listAssignedSubscriptionsRequest.subscriptionId,
3254
+ "page": listAssignedSubscriptionsRequest.page,
3255
+ "limit": listAssignedSubscriptionsRequest.limit,
3256
+ "sortOrder": listAssignedSubscriptionsRequest.sortOrder,
3257
+ "sortBy": listAssignedSubscriptionsRequest.sortBy
3258
+ };
3259
+ let headerParams = {
3260
+ "Content-Type": common.Constants.APPLICATION_JSON,
3261
+ "opc-request-id": listAssignedSubscriptionsRequest.opcRequestId
3262
+ };
3263
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3264
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAssignedSubscriptionsRequest.retryConfiguration, specRetryConfiguration);
3265
+ if (this.logger)
3266
+ retrier.logger = this.logger;
3267
+ const request = yield oci_common_1.composeRequest({
3268
+ baseEndpoint: this._endpoint,
3269
+ defaultHeaders: this._defaultHeaders,
3270
+ path: "/assignedSubscriptions",
3271
+ method: "GET",
3272
+ pathParams: pathParams,
3273
+ headerParams: headerParams,
3274
+ queryParams: queryParams
3275
+ });
3276
+ try {
3277
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3278
+ const sdkResponse = oci_common_1.composeResponse({
3279
+ responseObject: {},
3280
+ body: yield response.json(),
3281
+ bodyKey: "assignedSubscriptionCollection",
3282
+ bodyModel: model.AssignedSubscriptionCollection,
3283
+ type: "model.AssignedSubscriptionCollection",
3284
+ responseHeaders: [
3285
+ {
3286
+ value: response.headers.get("opc-next-page"),
3287
+ key: "opcNextPage",
3288
+ dataType: "string"
1920
3289
  },
1921
3290
  {
1922
3291
  value: response.headers.get("opc-request-id"),
@@ -1933,40 +3302,35 @@ class SenderInvitationClient {
1933
3302
  });
1934
3303
  }
1935
3304
  /**
1936
- * Return a (paginated) list of sender invitations.
1937
- *
1938
- * @param ListSenderInvitationsRequest
1939
- * @return ListSenderInvitationsResponse
3305
+ * List the available regions based on subscription ID.
3306
+ * This operation does not retry by default if the user has not defined a retry configuration.
3307
+ * @param ListAvailableRegionsRequest
3308
+ * @return ListAvailableRegionsResponse
1940
3309
  * @throws OciError when an error occurs
1941
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListSenderInvitations.ts.html |here} to see how to use ListSenderInvitations API.
3310
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListAvailableRegions.ts.html |here} to see how to use ListAvailableRegions API.
1942
3311
  */
1943
- listSenderInvitations(listSenderInvitationsRequest) {
3312
+ listAvailableRegions(listAvailableRegionsRequest) {
1944
3313
  return __awaiter(this, void 0, void 0, function* () {
1945
3314
  if (this.logger)
1946
- this.logger.debug("Calling operation SenderInvitationClient#listSenderInvitations.");
1947
- const pathParams = {};
3315
+ this.logger.debug("Calling operation SubscriptionClient#listAvailableRegions.");
3316
+ const pathParams = {
3317
+ "{subscriptionId}": listAvailableRegionsRequest.subscriptionId
3318
+ };
1948
3319
  const queryParams = {
1949
- "compartmentId": listSenderInvitationsRequest.compartmentId,
1950
- "recipientTenancyId": listSenderInvitationsRequest.recipientTenancyId,
1951
- "lifecycleState": listSenderInvitationsRequest.lifecycleState,
1952
- "status": listSenderInvitationsRequest.status,
1953
- "displayName": listSenderInvitationsRequest.displayName,
1954
- "page": listSenderInvitationsRequest.page,
1955
- "limit": listSenderInvitationsRequest.limit,
1956
- "sortBy": listSenderInvitationsRequest.sortBy,
1957
- "sortOrder": listSenderInvitationsRequest.sortOrder
3320
+ "page": listAvailableRegionsRequest.page
1958
3321
  };
1959
3322
  let headerParams = {
1960
3323
  "Content-Type": common.Constants.APPLICATION_JSON,
1961
- "opc-request-id": listSenderInvitationsRequest.opcRequestId
3324
+ "opc-request-id": listAvailableRegionsRequest.opcRequestId
1962
3325
  };
1963
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listSenderInvitationsRequest.retryConfiguration);
3326
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3327
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAvailableRegionsRequest.retryConfiguration, specRetryConfiguration);
1964
3328
  if (this.logger)
1965
3329
  retrier.logger = this.logger;
1966
3330
  const request = yield oci_common_1.composeRequest({
1967
3331
  baseEndpoint: this._endpoint,
1968
3332
  defaultHeaders: this._defaultHeaders,
1969
- path: "/senderInvitations",
3333
+ path: "/subscriptions/{subscriptionId}/availableRegions",
1970
3334
  method: "GET",
1971
3335
  pathParams: pathParams,
1972
3336
  headerParams: headerParams,
@@ -1977,9 +3341,9 @@ class SenderInvitationClient {
1977
3341
  const sdkResponse = oci_common_1.composeResponse({
1978
3342
  responseObject: {},
1979
3343
  body: yield response.json(),
1980
- bodyKey: "senderInvitationCollection",
1981
- bodyModel: model.SenderInvitationCollection,
1982
- type: "model.SenderInvitationCollection",
3344
+ bodyKey: "availableRegionCollection",
3345
+ bodyModel: model.AvailableRegionCollection,
3346
+ type: "model.AvailableRegionCollection",
1983
3347
  responseHeaders: [
1984
3348
  {
1985
3349
  value: response.headers.get("opc-next-page"),
@@ -2001,34 +3365,41 @@ class SenderInvitationClient {
2001
3365
  });
2002
3366
  }
2003
3367
  /**
2004
- * Updates the SenderInvitation.
2005
- * @param UpdateSenderInvitationRequest
2006
- * @return UpdateSenderInvitationResponse
3368
+ * Lists the subscription mappings for all the subscriptions owned by a given compartmentId. Only the root compartment is allowed.
3369
+ * This operation does not retry by default if the user has not defined a retry configuration.
3370
+ * @param ListSubscriptionMappingsRequest
3371
+ * @return ListSubscriptionMappingsResponse
2007
3372
  * @throws OciError when an error occurs
2008
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/UpdateSenderInvitation.ts.html |here} to see how to use UpdateSenderInvitation API.
3373
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListSubscriptionMappings.ts.html |here} to see how to use ListSubscriptionMappings API.
2009
3374
  */
2010
- updateSenderInvitation(updateSenderInvitationRequest) {
3375
+ listSubscriptionMappings(listSubscriptionMappingsRequest) {
2011
3376
  return __awaiter(this, void 0, void 0, function* () {
2012
3377
  if (this.logger)
2013
- this.logger.debug("Calling operation SenderInvitationClient#updateSenderInvitation.");
2014
- const pathParams = {
2015
- "{senderInvitationId}": updateSenderInvitationRequest.senderInvitationId
3378
+ this.logger.debug("Calling operation SubscriptionClient#listSubscriptionMappings.");
3379
+ const pathParams = {};
3380
+ const queryParams = {
3381
+ "subscriptionId": listSubscriptionMappingsRequest.subscriptionId,
3382
+ "subscriptionMappingId": listSubscriptionMappingsRequest.subscriptionMappingId,
3383
+ "compartmentId": listSubscriptionMappingsRequest.compartmentId,
3384
+ "lifecycleState": listSubscriptionMappingsRequest.lifecycleState,
3385
+ "page": listSubscriptionMappingsRequest.page,
3386
+ "limit": listSubscriptionMappingsRequest.limit,
3387
+ "sortOrder": listSubscriptionMappingsRequest.sortOrder,
3388
+ "sortBy": listSubscriptionMappingsRequest.sortBy
2016
3389
  };
2017
- const queryParams = {};
2018
3390
  let headerParams = {
2019
3391
  "Content-Type": common.Constants.APPLICATION_JSON,
2020
- "if-match": updateSenderInvitationRequest.ifMatch,
2021
- "opc-request-id": updateSenderInvitationRequest.opcRequestId
3392
+ "opc-request-id": listSubscriptionMappingsRequest.opcRequestId
2022
3393
  };
2023
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateSenderInvitationRequest.retryConfiguration);
3394
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3395
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSubscriptionMappingsRequest.retryConfiguration, specRetryConfiguration);
2024
3396
  if (this.logger)
2025
3397
  retrier.logger = this.logger;
2026
3398
  const request = yield oci_common_1.composeRequest({
2027
3399
  baseEndpoint: this._endpoint,
2028
3400
  defaultHeaders: this._defaultHeaders,
2029
- path: "/senderInvitations/{senderInvitationId}",
2030
- method: "PUT",
2031
- bodyContent: common.ObjectSerializer.serialize(updateSenderInvitationRequest.updateSenderInvitationDetails, "UpdateSenderInvitationDetails", model.UpdateSenderInvitationDetails.getJsonObj),
3401
+ path: "/subscriptionMappings",
3402
+ method: "GET",
2032
3403
  pathParams: pathParams,
2033
3404
  headerParams: headerParams,
2034
3405
  queryParams: queryParams
@@ -2038,18 +3409,84 @@ class SenderInvitationClient {
2038
3409
  const sdkResponse = oci_common_1.composeResponse({
2039
3410
  responseObject: {},
2040
3411
  body: yield response.json(),
2041
- bodyKey: "senderInvitation",
2042
- bodyModel: model.SenderInvitation,
2043
- type: "model.SenderInvitation",
3412
+ bodyKey: "subscriptionMappingCollection",
3413
+ bodyModel: model.SubscriptionMappingCollection,
3414
+ type: "model.SubscriptionMappingCollection",
2044
3415
  responseHeaders: [
3416
+ {
3417
+ value: response.headers.get("opc-next-page"),
3418
+ key: "opcNextPage",
3419
+ dataType: "string"
3420
+ },
2045
3421
  {
2046
3422
  value: response.headers.get("opc-request-id"),
2047
3423
  key: "opcRequestId",
2048
3424
  dataType: "string"
3425
+ }
3426
+ ]
3427
+ });
3428
+ return sdkResponse;
3429
+ }
3430
+ catch (err) {
3431
+ throw err;
3432
+ }
3433
+ });
3434
+ }
3435
+ /**
3436
+ * List the subscriptions that a compartment owns. Only the root compartment is allowed.
3437
+ * This operation does not retry by default if the user has not defined a retry configuration.
3438
+ * @param ListSubscriptionsRequest
3439
+ * @return ListSubscriptionsResponse
3440
+ * @throws OciError when an error occurs
3441
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
3442
+ */
3443
+ listSubscriptions(listSubscriptionsRequest) {
3444
+ return __awaiter(this, void 0, void 0, function* () {
3445
+ if (this.logger)
3446
+ this.logger.debug("Calling operation SubscriptionClient#listSubscriptions.");
3447
+ const pathParams = {};
3448
+ const queryParams = {
3449
+ "compartmentId": listSubscriptionsRequest.compartmentId,
3450
+ "subscriptionId": listSubscriptionsRequest.subscriptionId,
3451
+ "page": listSubscriptionsRequest.page,
3452
+ "limit": listSubscriptionsRequest.limit,
3453
+ "sortOrder": listSubscriptionsRequest.sortOrder,
3454
+ "sortBy": listSubscriptionsRequest.sortBy
3455
+ };
3456
+ let headerParams = {
3457
+ "Content-Type": common.Constants.APPLICATION_JSON,
3458
+ "opc-request-id": listSubscriptionsRequest.opcRequestId
3459
+ };
3460
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3461
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSubscriptionsRequest.retryConfiguration, specRetryConfiguration);
3462
+ if (this.logger)
3463
+ retrier.logger = this.logger;
3464
+ const request = yield oci_common_1.composeRequest({
3465
+ baseEndpoint: this._endpoint,
3466
+ defaultHeaders: this._defaultHeaders,
3467
+ path: "/subscriptions",
3468
+ method: "GET",
3469
+ pathParams: pathParams,
3470
+ headerParams: headerParams,
3471
+ queryParams: queryParams
3472
+ });
3473
+ try {
3474
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
3475
+ const sdkResponse = oci_common_1.composeResponse({
3476
+ responseObject: {},
3477
+ body: yield response.json(),
3478
+ bodyKey: "subscriptionCollection",
3479
+ bodyModel: model.SubscriptionCollection,
3480
+ type: "model.SubscriptionCollection",
3481
+ responseHeaders: [
3482
+ {
3483
+ value: response.headers.get("opc-next-page"),
3484
+ key: "opcNextPage",
3485
+ dataType: "string"
2049
3486
  },
2050
3487
  {
2051
- value: response.headers.get("etag"),
2052
- key: "etag",
3488
+ value: response.headers.get("opc-request-id"),
3489
+ key: "opcRequestId",
2053
3490
  dataType: "string"
2054
3491
  }
2055
3492
  ]
@@ -2062,11 +3499,14 @@ class SenderInvitationClient {
2062
3499
  });
2063
3500
  }
2064
3501
  }
2065
- exports.SenderInvitationClient = SenderInvitationClient;
2066
- SenderInvitationClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
3502
+ exports.SubscriptionClient = SubscriptionClient;
3503
+ SubscriptionClient.serviceEndpointTemplate = "https://organizations.{region}.oci.{secondLevelDomain}";
2067
3504
  var WorkRequestApiKeys;
2068
3505
  (function (WorkRequestApiKeys) {
2069
3506
  })(WorkRequestApiKeys = exports.WorkRequestApiKeys || (exports.WorkRequestApiKeys = {}));
3507
+ /**
3508
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
3509
+ */
2070
3510
  class WorkRequestClient {
2071
3511
  constructor(params, clientConfiguration) {
2072
3512
  this["_endpoint"] = "";
@@ -2081,6 +3521,13 @@ class WorkRequestClient {
2081
3521
  ? clientConfiguration.circuitBreaker.circuit
2082
3522
  : null;
2083
3523
  }
3524
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
3525
+ const specCircuitBreakerEnabled = false;
3526
+ if (!this._circuitBreaker &&
3527
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
3528
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
3529
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
3530
+ }
2084
3531
  this._httpClient =
2085
3532
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
2086
3533
  if (params.authenticationDetailsProvider &&
@@ -2152,10 +3599,11 @@ class WorkRequestClient {
2152
3599
  }
2153
3600
  /**
2154
3601
  * Gets the status of the work request with the given ID.
3602
+ * This operation does not retry by default if the user has not defined a retry configuration.
2155
3603
  * @param GetWorkRequestRequest
2156
3604
  * @return GetWorkRequestResponse
2157
3605
  * @throws OciError when an error occurs
2158
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3606
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2159
3607
  */
2160
3608
  getWorkRequest(getWorkRequestRequest) {
2161
3609
  return __awaiter(this, void 0, void 0, function* () {
@@ -2169,7 +3617,8 @@ class WorkRequestClient {
2169
3617
  "Content-Type": common.Constants.APPLICATION_JSON,
2170
3618
  "opc-request-id": getWorkRequestRequest.opcRequestId
2171
3619
  };
2172
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getWorkRequestRequest.retryConfiguration);
3620
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3621
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
2173
3622
  if (this.logger)
2174
3623
  retrier.logger = this.logger;
2175
3624
  const request = yield oci_common_1.composeRequest({
@@ -2212,10 +3661,11 @@ class WorkRequestClient {
2212
3661
  /**
2213
3662
  * Return a (paginated) list of errors for a given work request.
2214
3663
  *
3664
+ * This operation does not retry by default if the user has not defined a retry configuration.
2215
3665
  * @param ListWorkRequestErrorsRequest
2216
3666
  * @return ListWorkRequestErrorsResponse
2217
3667
  * @throws OciError when an error occurs
2218
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3668
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2219
3669
  */
2220
3670
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
2221
3671
  return __awaiter(this, void 0, void 0, function* () {
@@ -2233,7 +3683,8 @@ class WorkRequestClient {
2233
3683
  "Content-Type": common.Constants.APPLICATION_JSON,
2234
3684
  "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
2235
3685
  };
2236
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestErrorsRequest.retryConfiguration);
3686
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3687
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2237
3688
  if (this.logger)
2238
3689
  retrier.logger = this.logger;
2239
3690
  const request = yield oci_common_1.composeRequest({
@@ -2276,10 +3727,11 @@ class WorkRequestClient {
2276
3727
  /**
2277
3728
  * Return a (paginated) list of logs for a given work request.
2278
3729
  *
3730
+ * This operation does not retry by default if the user has not defined a retry configuration.
2279
3731
  * @param ListWorkRequestLogsRequest
2280
3732
  * @return ListWorkRequestLogsResponse
2281
3733
  * @throws OciError when an error occurs
2282
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3734
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2283
3735
  */
2284
3736
  listWorkRequestLogs(listWorkRequestLogsRequest) {
2285
3737
  return __awaiter(this, void 0, void 0, function* () {
@@ -2297,7 +3749,8 @@ class WorkRequestClient {
2297
3749
  "Content-Type": common.Constants.APPLICATION_JSON,
2298
3750
  "opc-request-id": listWorkRequestLogsRequest.opcRequestId
2299
3751
  };
2300
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestLogsRequest.retryConfiguration);
3752
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3753
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2301
3754
  if (this.logger)
2302
3755
  retrier.logger = this.logger;
2303
3756
  const request = yield oci_common_1.composeRequest({
@@ -2340,10 +3793,11 @@ class WorkRequestClient {
2340
3793
  /**
2341
3794
  * Lists the work requests in a compartment.
2342
3795
  *
3796
+ * This operation does not retry by default if the user has not defined a retry configuration.
2343
3797
  * @param ListWorkRequestsRequest
2344
3798
  * @return ListWorkRequestsResponse
2345
3799
  * @throws OciError when an error occurs
2346
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/tenantmanagercontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3800
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/tenantmanagercontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2347
3801
  */
2348
3802
  listWorkRequests(listWorkRequestsRequest) {
2349
3803
  return __awaiter(this, void 0, void 0, function* () {
@@ -2360,7 +3814,8 @@ class WorkRequestClient {
2360
3814
  "Content-Type": common.Constants.APPLICATION_JSON,
2361
3815
  "opc-request-id": listWorkRequestsRequest.opcRequestId
2362
3816
  };
2363
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestsRequest.retryConfiguration);
3817
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3818
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2364
3819
  if (this.logger)
2365
3820
  retrier.logger = this.logger;
2366
3821
  const request = yield oci_common_1.composeRequest({