oci-multicloud 2.121.0 → 2.122.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 (78) hide show
  1. package/index.d.ts +2 -2
  2. package/index.js +3 -3
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +153 -189
  5. package/lib/client.js +440 -204
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/cloud-service-provider-metadata-item.d.ts +15 -1
  8. package/lib/model/cloud-service-provider-metadata-item.js.map +1 -1
  9. package/lib/model/cloud-service-provider-network-metadata-item.d.ts +6 -0
  10. package/lib/model/cloud-service-provider-network-metadata-item.js.map +1 -1
  11. package/lib/model/external-location-detail.d.ts +4 -0
  12. package/lib/model/external-location-detail.js.map +1 -1
  13. package/lib/model/external-locations-metadatum-summary.d.ts +17 -1
  14. package/lib/model/external-locations-metadatum-summary.js.map +1 -1
  15. package/lib/model/index.d.ts +10 -0
  16. package/lib/model/index.js +11 -1
  17. package/lib/model/index.js.map +1 -1
  18. package/lib/model/multicloud-resource-collection.d.ts +26 -0
  19. package/lib/model/multicloud-resource-collection.js +61 -0
  20. package/lib/model/multicloud-resource-collection.js.map +1 -0
  21. package/lib/model/multicloud-resource-summary.d.ts +126 -0
  22. package/lib/model/multicloud-resource-summary.js +39 -0
  23. package/lib/model/multicloud-resource-summary.js.map +1 -0
  24. package/lib/model/multicloud-subscription-collection.d.ts +26 -0
  25. package/lib/model/multicloud-subscription-collection.js +61 -0
  26. package/lib/model/multicloud-subscription-collection.js.map +1 -0
  27. package/lib/model/multicloud-subscription-summary.d.ts +122 -0
  28. package/lib/model/multicloud-subscription-summary.js +39 -0
  29. package/lib/model/multicloud-subscription-summary.js.map +1 -0
  30. package/lib/model/network-anchor-connection-status.d.ts +47 -0
  31. package/lib/model/network-anchor-connection-status.js +58 -0
  32. package/lib/model/network-anchor-connection-status.js.map +1 -0
  33. package/lib/model/network-anchor-summary.d.ts +28 -1
  34. package/lib/model/network-anchor-summary.js.map +1 -1
  35. package/lib/model/network-anchor.d.ts +6 -2
  36. package/lib/model/network-anchor.js +10 -10
  37. package/lib/model/network-anchor.js.map +1 -1
  38. package/lib/model/oci-network-metadata.d.ts +2 -30
  39. package/lib/model/oci-network-metadata.js +0 -18
  40. package/lib/model/oci-network-metadata.js.map +1 -1
  41. package/lib/model/oci-vcn.d.ts +4 -0
  42. package/lib/model/oci-vcn.js.map +1 -1
  43. package/lib/model/resource-anchor-summary.d.ts +32 -0
  44. package/lib/model/resource-anchor-summary.js.map +1 -1
  45. package/lib/model/resource-anchor.d.ts +8 -0
  46. package/lib/model/resource-anchor.js.map +1 -1
  47. package/lib/request/get-network-anchor-request.d.ts +7 -3
  48. package/lib/request/get-resource-anchor-request.d.ts +6 -2
  49. package/lib/request/index.d.ts +4 -0
  50. package/lib/request/index.js +5 -1
  51. package/lib/request/index.js.map +1 -1
  52. package/lib/request/list-external-location-details-metadata-request.d.ts +21 -7
  53. package/lib/request/list-external-location-details-metadata-request.js.map +1 -1
  54. package/lib/request/list-external-location-mapping-metadata-request.d.ts +5 -3
  55. package/lib/request/list-external-location-mapping-metadata-request.js.map +1 -1
  56. package/lib/request/list-external-location-summaries-metadata-request.d.ts +5 -3
  57. package/lib/request/list-external-location-summaries-metadata-request.js.map +1 -1
  58. package/lib/request/list-multicloud-resources-request.d.ts +77 -0
  59. package/lib/request/list-multicloud-resources-request.js +24 -0
  60. package/lib/request/list-multicloud-resources-request.js.map +1 -0
  61. package/lib/request/list-multicloud-subscriptions-request.d.ts +65 -0
  62. package/lib/request/list-multicloud-subscriptions-request.js +24 -0
  63. package/lib/request/list-multicloud-subscriptions-request.js.map +1 -0
  64. package/lib/request/list-network-anchors-request.d.ts +21 -11
  65. package/lib/request/list-network-anchors-request.js.map +1 -1
  66. package/lib/request/list-resource-anchors-request.d.ts +16 -10
  67. package/lib/request/list-resource-anchors-request.js.map +1 -1
  68. package/lib/response/index.d.ts +4 -0
  69. package/lib/response/list-multicloud-resources-response.d.ts +31 -0
  70. package/lib/response/list-multicloud-resources-response.js +15 -0
  71. package/lib/response/list-multicloud-resources-response.js.map +1 -0
  72. package/lib/response/list-multicloud-subscriptions-response.d.ts +31 -0
  73. package/lib/response/list-multicloud-subscriptions-response.js +15 -0
  74. package/lib/response/list-multicloud-subscriptions-response.js.map +1 -0
  75. package/package.json +3 -3
  76. package/lib/omhubnetworkanchor-waiter.d.ts +0 -29
  77. package/lib/omhubnetworkanchor-waiter.js +0 -65
  78. package/lib/omhubnetworkanchor-waiter.js.map +0 -1
package/lib/client.js CHANGED
@@ -40,10 +40,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
40
40
  });
41
41
  };
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.OmhubResourceAnchorClient = exports.OmhubResourceAnchorApiKeys = exports.OmhubNetworkAnchorClient = exports.OmhubNetworkAnchorApiKeys = exports.MultiCloudsMetadataClient = exports.MultiCloudsMetadataApiKeys = exports.MetadataClient = exports.MetadataApiKeys = void 0;
43
+ exports.OmhubResourceAnchorClient = exports.OmhubResourceAnchorApiKeys = exports.OmhubNetworkAnchorClient = exports.OmhubNetworkAnchorApiKeys = exports.MulticloudsubscriptionsClient = exports.MulticloudsubscriptionsApiKeys = exports.MulticloudResourcesClient = exports.MulticloudResourcesApiKeys = exports.MultiCloudsMetadataClient = exports.MultiCloudsMetadataApiKeys = exports.MetadataClient = exports.MetadataApiKeys = void 0;
44
44
  const common = require("oci-common");
45
45
  const model = __importStar(require("./model"));
46
- const omhubnetworkanchor_waiter_1 = require("./omhubnetworkanchor-waiter");
47
46
  const omhubresourceanchor_waiter_1 = require("./omhubresourceanchor-waiter");
48
47
  const oci_common_1 = require("oci-common");
49
48
  const Breaker = require("opossum");
@@ -189,112 +188,6 @@ class MetadataClient {
189
188
  }
190
189
  /**
191
190
  * List externalLocationDetail metadata from OCI to Cloud Service Provider for regions, Availability Zones, and Cluster Placement Group ID.
192
- * examples:
193
- * application-json: |
194
- * [
195
- * {
196
- * \"externalLocation\": {
197
- * \"cspRegion\": \"East US\",
198
- * \"cspPhysicalAz\": \"az1-xyz\",
199
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
200
- * \"cspLogicalAz\": \"az1\",
201
- * \"serviceName\": \"ORACLEDBATAZURE\",
202
- * \"cspZoneKeyReferenceId\": {
203
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
204
- * \"keyValue\": \"azure-subscriptionId-1 or aws-account-id-1, gcp-project-id-1\"
205
- * }
206
- * },
207
- * \"ociPhysicalAd\": \"ad1-xyb\",
208
- * \"ociLogicalAd\": \"ad2\",
209
- * \"ociRegion\": \"us-ashburn-1\",
210
- * \"cpgId\": \"cpg-1\"
211
- * },
212
- * {
213
- * \"externalLocation\": {
214
- * \"cspRegion\": \"East US\",
215
- * \"cspPhysicalAz\": \"az2-abc\",
216
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
217
- * \"cspLogicalAz\": \"az2\",
218
- * \"serviceName\": \"ORACLEDBATAZURE\",
219
- * \"cspZoneKeyReferenceId\": {
220
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
221
- * \"keyValue\": \"azure-subscriptionId-2 or aws-account-id-2, gcp-project-id-2\"
222
- * }
223
- * },
224
- * \"ociPhysicalAd\": \"ad2-xby\",
225
- * \"ociLogicalAd\": \"ad1\",
226
- * \"ociRegion\": \"us-ashburn-1\",
227
- * \"cpgId\": \"cpg-2\"
228
- * },
229
- * {
230
- * \"externalLocation\": {
231
- * \"cspRegion\": \"East US\",
232
- * \"cspPhysicalAz\": \"az3-abz\",
233
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
234
- * \"cspLogicalAz\": \"az3\",
235
- * \"serviceName\": \"ORACLEDBATAZURE\",
236
- * \"cspZoneKeyReferenceId\": {
237
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
238
- * \"keyValue\": \"azure-subscriptionId-3 or aws-account-id-3, gcp-project-id-3\"
239
- * }
240
- * },
241
- * \"ociPhysicalAd\": \"ad3-cde\",
242
- * \"ociLogicalAd\": \"ad3\",
243
- * \"ociRegion\": \"us-ashburn-1\",
244
- * \"cpgId\": \"cpg-3\"
245
- * },
246
- * {
247
- * \"externalLocation\": {
248
- * \"cspRegion\": \"East US 2\",
249
- * \"cspPhysicalAz\": \"az1-def\",
250
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
251
- * \"cspLogicalAz\": \"az1\",
252
- * \"serviceName\": \"ORACLEDBATAZURE\",
253
- * \"cspZoneKeyReferenceId\": {
254
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
255
- * \"keyValue\": \"azure-subscriptionId-4 or aws-account-id-4, gcp-project-id-4\"
256
- * }
257
- * },
258
- * \"ociPhysicalAd\": \"ad1-bce\",
259
- * \"ociLogicalAd\": \"ad2\",
260
- * \"ociRegion\": \"us-ashburn-1\",
261
- * \"cpgId\": \"cpg-4\"
262
- * },
263
- * {
264
- * \"externalLocation\": {
265
- * \"cspRegion\": \"East US 2\",
266
- * \"cspPhysicalAz\": \"az2-uvw\",
267
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
268
- * \"cspLogicalAz\": \"az2\",
269
- * \"serviceName\": \"ORACLEDBATAZURE\",
270
- * \"cspZoneKeyReferenceId\": {
271
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
272
- * \"keyValue\": \"azure-subscriptionId-3 or aws-account-id-3, gcp-project-id-3\"
273
- * }
274
- * },
275
- * \"ociPhysicalAd\": \"ad2-ftc\",
276
- * \"ociLogicalAd\": \"ad1\",
277
- * \"ociRegion\": \"us-ashburn-1\",
278
- * \"cpgId\": \"cpg-5\"
279
- * },
280
- * {
281
- * \"externalLocation\": {
282
- * \"cspRegion\": \"East US 2\",
283
- * \"cspPhysicalAz\": \"az3-uvw\",
284
- * \"cspPhysicalAzDisplayName\": \"(US) East US 2\",
285
- * \"cspLogicalAz\": \"az3\",
286
- * \"serviceName\": \"ORACLEDBATAZURE\",
287
- * \"cspZoneKeyReferenceId\": {
288
- * \"keyName\": \"AzureSubscriptionId or AwsAccountId, GcpProjectName\",
289
- * \"keyValue\": \"azure-subscriptionId-3 or aws-account-id-3, gcp-project-id-3\"
290
- * }
291
- * },
292
- * \"ociPhysicalAd\": \"ad3-stc\",
293
- * \"ociLogicalAd\": \"ad3\",
294
- * \"ociRegion\": \"us-ashburn-1\",
295
- * \"cpgId\": \"cpg-6\"
296
- * }
297
- * ]
298
191
  *
299
192
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
300
193
  * @param ListExternalLocationDetailsMetadataRequest
@@ -315,6 +208,9 @@ class MetadataClient {
315
208
  "compartmentId": listExternalLocationDetailsMetadataRequest.compartmentId,
316
209
  "linkedCompartmentId": listExternalLocationDetailsMetadataRequest.linkedCompartmentId,
317
210
  "subscriptionServiceName": listExternalLocationDetailsMetadataRequest.subscriptionServiceName,
211
+ "externalLocation": listExternalLocationDetailsMetadataRequest.externalLocation,
212
+ "logicalZone": listExternalLocationDetailsMetadataRequest.logicalZone,
213
+ "clusterPlacementGroupId": listExternalLocationDetailsMetadataRequest.clusterPlacementGroupId,
318
214
  "limit": listExternalLocationDetailsMetadataRequest.limit,
319
215
  "page": listExternalLocationDetailsMetadataRequest.page,
320
216
  "sortOrder": listExternalLocationDetailsMetadataRequest.sortOrder,
@@ -367,54 +263,6 @@ class MetadataClient {
367
263
  }
368
264
  /**
369
265
  * List externalLocation metadata from OCI to the Cloud Service Provider for regions, Physical Availability Zones.
370
- * examples:
371
- * application-json: |
372
- * [
373
- * {
374
- * \"externalLocation\": {
375
- * \"cspRegion\": \"eastus\",
376
- * \"cspPhysicalAz\": \"eastus-az1\",
377
- * \"cspPhysicalAzDisplayName\": \"(US) East US 1\",
378
- * \"serviceName\": \"ORACLEDBATAZURE\"
379
- * },
380
- * \"ociPhysicalAd\": \"iad-ad-1\",
381
- * \"ociLogicalAd\": \"ad1\",
382
- * \"ociRegion\": \"us-ashburn-1\"
383
- * },
384
- * {
385
- * \"externalLocation\": {
386
- * \"cspRegion\": \"eastus\",
387
- * \"cspPhysicalAz\": \"eastus-az1\",
388
- * \"cspPhysicalAzDisplayName\": \"(US) East US 1\",
389
- * \"serviceName\": \"ORACLEDBATAZURE\"
390
- * },
391
- * \"ociPhysicalAd\": \"iad-ad-1\",
392
- * \"ociLogicalAd\": \"ad1\",
393
- * \"ociRegion\": \"us-ashburn-1\"
394
- * },
395
- * {
396
- * \"externalLocation\": {
397
- * \"cspRegion\": \"eastus2\",
398
- * \"cspPhysicalAz\": \"eastus2-az3\",
399
- * \"cspPhysicalAzDisplayName\": \"(US) East US 1\",
400
- * \"serviceName\": \"ORACLEDBATAZURE\"
401
- * },
402
- * \"ociPhysicalAd\": \"iad-ad-2\",
403
- * \"ociLogicalAd\": \"ad1\",
404
- * \"ociRegion\": \"us-ashburn-1\"
405
- * },
406
- * {
407
- * \"externalLocation\": {
408
- * \"cspRegion\": \"eastus\",
409
- * \"cspPhysicalAz\": \"eastus-az3\"
410
- * \"cspPhysicalAzDisplayName\": \"(US) East US 1\",
411
- * \"serviceName\": \"ORACLEDBATAZURE\"
412
- * },
413
- * \"ociPhysicalAd\": \"iad-ad-333\",
414
- * \"ociLogicalAd\": \"ad1\",
415
- * \"ociRegion\": \"us-ashburn-1\"
416
- * }
417
- * ]
418
266
  *
419
267
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
420
268
  * @param ListExternalLocationMappingMetadataRequest
@@ -485,28 +333,6 @@ class MetadataClient {
485
333
  }
486
334
  /**
487
335
  * List externalLocationSummary metadata from OCI Region to the Cloud Service Provider region across all regions.
488
- * examples:
489
- * application-json: |
490
- * [
491
- * {
492
- * \"externalLocation\": {
493
- * \"cspRegion\": \"East US\"
494
- * },
495
- * \"ociRegion\": \"us-ashburn-1\"
496
- * },
497
- * {
498
- * \"externalLocation\": {
499
- * \"cspRegion\": \"East US 2\"
500
- * },
501
- * \"ociRegion\": \"us-ashburn-1\"
502
- * },
503
- * {
504
- * \"externalLocation\": {
505
- * \"cspRegion\": \"Germany West Central\"
506
- * },
507
- * \"ociRegion\": \"eu-frankfurt-1\",
508
- * }
509
- * ]
510
336
  *
511
337
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
512
338
  * @param ListExternalLocationSummariesMetadataRequest
@@ -718,7 +544,9 @@ class MultiCloudsMetadataClient {
718
544
  this.closeProvider();
719
545
  }
720
546
  /**
721
- * Gets information about multicloud base compartment
547
+ * Gets information about the Multicloud base compartment for a given tenancy Id.
548
+ * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud).
549
+ *
722
550
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
723
551
  * @param GetMultiCloudMetadataRequest
724
552
  * @return GetMultiCloudMetadataResponse
@@ -783,7 +611,8 @@ class MultiCloudsMetadataClient {
783
611
  });
784
612
  }
785
613
  /**
786
- * Gets a list of multicloud metadata with multicloud base compartment and subscription across Cloud Service Providers.
614
+ * Gets a list of multicloud metadata with pairs of Multicloud base compartment and subscription across Cloud Service Providers from a tenancy Id.
615
+ * A Multicloud base compartment is an OCI compartment that maps to a subscription in a Cloud Service Provider (such as Azure, AWS, or Google Cloud).
787
616
  *
788
617
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
789
618
  * @param ListMultiCloudMetadataRequest
@@ -854,6 +683,429 @@ class MultiCloudsMetadataClient {
854
683
  exports.MultiCloudsMetadataClient = MultiCloudsMetadataClient;
855
684
  MultiCloudsMetadataClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
856
685
  MultiCloudsMetadataClient.endpointServiceName = "";
686
+ var MulticloudResourcesApiKeys;
687
+ (function (MulticloudResourcesApiKeys) {
688
+ })(MulticloudResourcesApiKeys = exports.MulticloudResourcesApiKeys || (exports.MulticloudResourcesApiKeys = {}));
689
+ /**
690
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
691
+ */
692
+ class MulticloudResourcesClient {
693
+ constructor(params, clientConfiguration) {
694
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
695
+ this["_endpoint"] = "";
696
+ this["_defaultHeaders"] = {};
697
+ this._circuitBreaker = null;
698
+ this._httpOptions = undefined;
699
+ this._bodyDuplexMode = undefined;
700
+ this.targetService = "MulticloudResources";
701
+ this._regionId = "";
702
+ this._lastSetRegionOrRegionId = "";
703
+ const requestSigner = params.authenticationDetailsProvider
704
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
705
+ : null;
706
+ this._authProvider = params.authenticationDetailsProvider;
707
+ if (clientConfiguration) {
708
+ this._clientConfiguration = clientConfiguration;
709
+ this._circuitBreaker = clientConfiguration.circuitBreaker
710
+ ? clientConfiguration.circuitBreaker.circuit
711
+ : null;
712
+ this._httpOptions = clientConfiguration.httpOptions
713
+ ? clientConfiguration.httpOptions
714
+ : undefined;
715
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
716
+ ? clientConfiguration.bodyDuplexMode
717
+ : undefined;
718
+ }
719
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("multicloud")) {
720
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
721
+ throw errmsg.concat("multicloud");
722
+ }
723
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
724
+ const specCircuitBreakerEnabled = true;
725
+ if (!this._circuitBreaker &&
726
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
727
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
728
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
729
+ }
730
+ this._httpClient =
731
+ params.httpClient ||
732
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
733
+ if (params.authenticationDetailsProvider &&
734
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
735
+ const provider = params.authenticationDetailsProvider;
736
+ if (provider.getRegion()) {
737
+ this.region = provider.getRegion();
738
+ }
739
+ }
740
+ }
741
+ /**
742
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
743
+ */
744
+ get endpoint() {
745
+ return this._endpoint;
746
+ }
747
+ /**
748
+ * Sets the endpoint to call (ex, https://www.example.com).
749
+ * @param endpoint The endpoint of the service.
750
+ */
751
+ set endpoint(endpoint) {
752
+ this._endpoint = endpoint;
753
+ this._endpoint = this._endpoint + "/20180828";
754
+ if (this.logger)
755
+ this.logger.info(`MulticloudResourcesClient endpoint set to ${this._endpoint}`);
756
+ }
757
+ get logger() {
758
+ return common.LOG.logger;
759
+ }
760
+ /**
761
+ * Determines whether realm specific endpoint should be used or not.
762
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
763
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
764
+ */
765
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
766
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
767
+ if (this.logger)
768
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
769
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
770
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudResourcesClient.serviceEndpointTemplate, this._region, MulticloudResourcesClient.endpointServiceName);
771
+ }
772
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
773
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudResourcesClient.serviceEndpointTemplate, this._regionId, MulticloudResourcesClient.endpointServiceName);
774
+ }
775
+ }
776
+ /**
777
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
778
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
779
+ * @param region The region of the service.
780
+ */
781
+ set region(region) {
782
+ this._region = region;
783
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudResourcesClient.serviceEndpointTemplate, region, MulticloudResourcesClient.endpointServiceName);
784
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
785
+ }
786
+ /**
787
+ * Sets the regionId to call (ex, 'us-phoenix-1').
788
+ *
789
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
790
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
791
+ * and then call {@link #endpoint(String) endpoint}.
792
+ * @param regionId The public region ID.
793
+ */
794
+ set regionId(regionId) {
795
+ this._regionId = regionId;
796
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudResourcesClient.serviceEndpointTemplate, regionId, MulticloudResourcesClient.endpointServiceName);
797
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
798
+ }
799
+ /**
800
+ * Shutdown the circuit breaker used by the client when it is no longer needed
801
+ */
802
+ shutdownCircuitBreaker() {
803
+ if (this._circuitBreaker) {
804
+ this._circuitBreaker.shutdown();
805
+ }
806
+ }
807
+ /**
808
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
809
+ */
810
+ closeProvider() {
811
+ if (this._authProvider) {
812
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
813
+ (this._authProvider).closeProvider();
814
+ }
815
+ }
816
+ /**
817
+ * Close the client once it is no longer needed
818
+ */
819
+ close() {
820
+ this.shutdownCircuitBreaker();
821
+ this.closeProvider();
822
+ }
823
+ /**
824
+ * Gets a list of multicloud resources with multicloud base compartment and subscription across Cloud Service Providers.
825
+ *
826
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
827
+ * @param ListMulticloudResourcesRequest
828
+ * @return ListMulticloudResourcesResponse
829
+ * @throws OciError when an error occurs
830
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/multicloud/ListMulticloudResources.ts.html |here} to see how to use ListMulticloudResources API.
831
+ */
832
+ listMulticloudResources(listMulticloudResourcesRequest) {
833
+ return __awaiter(this, void 0, void 0, function* () {
834
+ if (this.logger)
835
+ this.logger.debug("Calling operation MulticloudResourcesClient#listMulticloudResources.");
836
+ const operationName = "listMulticloudResources";
837
+ const apiReferenceLink = "";
838
+ const pathParams = {};
839
+ const queryParams = {
840
+ "resourceAnchorId": listMulticloudResourcesRequest.resourceAnchorId,
841
+ "compartmentId": listMulticloudResourcesRequest.compartmentId,
842
+ "limit": listMulticloudResourcesRequest.limit,
843
+ "page": listMulticloudResourcesRequest.page,
844
+ "sortOrder": listMulticloudResourcesRequest.sortOrder,
845
+ "sortBy": listMulticloudResourcesRequest.sortBy,
846
+ "subscriptionServiceName": listMulticloudResourcesRequest.subscriptionServiceName,
847
+ "subscriptionId": listMulticloudResourcesRequest.subscriptionId,
848
+ "externalLocation": listMulticloudResourcesRequest.externalLocation
849
+ };
850
+ let headerParams = {
851
+ "Content-Type": common.Constants.APPLICATION_JSON,
852
+ "opc-request-id": listMulticloudResourcesRequest.opcRequestId
853
+ };
854
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
855
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMulticloudResourcesRequest.retryConfiguration, specRetryConfiguration);
856
+ if (this.logger)
857
+ retrier.logger = this.logger;
858
+ const request = yield oci_common_1.composeRequest({
859
+ baseEndpoint: this._endpoint,
860
+ defaultHeaders: this._defaultHeaders,
861
+ path: "/omHub/multicloudResources",
862
+ method: "GET",
863
+ pathParams: pathParams,
864
+ headerParams: headerParams,
865
+ queryParams: queryParams
866
+ });
867
+ try {
868
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
869
+ const sdkResponse = oci_common_1.composeResponse({
870
+ responseObject: {},
871
+ body: yield response.json(),
872
+ bodyKey: "multicloudResourceCollection",
873
+ bodyModel: model.MulticloudResourceCollection,
874
+ type: "model.MulticloudResourceCollection",
875
+ responseHeaders: [
876
+ {
877
+ value: response.headers.get("opc-request-id"),
878
+ key: "opcRequestId",
879
+ dataType: "string"
880
+ },
881
+ {
882
+ value: response.headers.get("opc-next-page"),
883
+ key: "opcNextPage",
884
+ dataType: "string"
885
+ }
886
+ ]
887
+ });
888
+ return sdkResponse;
889
+ }
890
+ catch (err) {
891
+ throw err;
892
+ }
893
+ });
894
+ }
895
+ }
896
+ exports.MulticloudResourcesClient = MulticloudResourcesClient;
897
+ MulticloudResourcesClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
898
+ MulticloudResourcesClient.endpointServiceName = "";
899
+ var MulticloudsubscriptionsApiKeys;
900
+ (function (MulticloudsubscriptionsApiKeys) {
901
+ })(MulticloudsubscriptionsApiKeys = exports.MulticloudsubscriptionsApiKeys || (exports.MulticloudsubscriptionsApiKeys = {}));
902
+ /**
903
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
904
+ */
905
+ class MulticloudsubscriptionsClient {
906
+ constructor(params, clientConfiguration) {
907
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
908
+ this["_endpoint"] = "";
909
+ this["_defaultHeaders"] = {};
910
+ this._circuitBreaker = null;
911
+ this._httpOptions = undefined;
912
+ this._bodyDuplexMode = undefined;
913
+ this.targetService = "Multicloudsubscriptions";
914
+ this._regionId = "";
915
+ this._lastSetRegionOrRegionId = "";
916
+ const requestSigner = params.authenticationDetailsProvider
917
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
918
+ : null;
919
+ this._authProvider = params.authenticationDetailsProvider;
920
+ if (clientConfiguration) {
921
+ this._clientConfiguration = clientConfiguration;
922
+ this._circuitBreaker = clientConfiguration.circuitBreaker
923
+ ? clientConfiguration.circuitBreaker.circuit
924
+ : null;
925
+ this._httpOptions = clientConfiguration.httpOptions
926
+ ? clientConfiguration.httpOptions
927
+ : undefined;
928
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
929
+ ? clientConfiguration.bodyDuplexMode
930
+ : undefined;
931
+ }
932
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("multicloud")) {
933
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
934
+ throw errmsg.concat("multicloud");
935
+ }
936
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
937
+ const specCircuitBreakerEnabled = true;
938
+ if (!this._circuitBreaker &&
939
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
940
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
941
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
942
+ }
943
+ this._httpClient =
944
+ params.httpClient ||
945
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
946
+ if (params.authenticationDetailsProvider &&
947
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
948
+ const provider = params.authenticationDetailsProvider;
949
+ if (provider.getRegion()) {
950
+ this.region = provider.getRegion();
951
+ }
952
+ }
953
+ }
954
+ /**
955
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
956
+ */
957
+ get endpoint() {
958
+ return this._endpoint;
959
+ }
960
+ /**
961
+ * Sets the endpoint to call (ex, https://www.example.com).
962
+ * @param endpoint The endpoint of the service.
963
+ */
964
+ set endpoint(endpoint) {
965
+ this._endpoint = endpoint;
966
+ this._endpoint = this._endpoint + "/20180828";
967
+ if (this.logger)
968
+ this.logger.info(`MulticloudsubscriptionsClient endpoint set to ${this._endpoint}`);
969
+ }
970
+ get logger() {
971
+ return common.LOG.logger;
972
+ }
973
+ /**
974
+ * Determines whether realm specific endpoint should be used or not.
975
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
976
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
977
+ */
978
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
979
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
980
+ if (this.logger)
981
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
982
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
983
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudsubscriptionsClient.serviceEndpointTemplate, this._region, MulticloudsubscriptionsClient.endpointServiceName);
984
+ }
985
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
986
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudsubscriptionsClient.serviceEndpointTemplate, this._regionId, MulticloudsubscriptionsClient.endpointServiceName);
987
+ }
988
+ }
989
+ /**
990
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
991
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
992
+ * @param region The region of the service.
993
+ */
994
+ set region(region) {
995
+ this._region = region;
996
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudsubscriptionsClient.serviceEndpointTemplate, region, MulticloudsubscriptionsClient.endpointServiceName);
997
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
998
+ }
999
+ /**
1000
+ * Sets the regionId to call (ex, 'us-phoenix-1').
1001
+ *
1002
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1003
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1004
+ * and then call {@link #endpoint(String) endpoint}.
1005
+ * @param regionId The public region ID.
1006
+ */
1007
+ set regionId(regionId) {
1008
+ this._regionId = regionId;
1009
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudsubscriptionsClient.serviceEndpointTemplate, regionId, MulticloudsubscriptionsClient.endpointServiceName);
1010
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1011
+ }
1012
+ /**
1013
+ * Shutdown the circuit breaker used by the client when it is no longer needed
1014
+ */
1015
+ shutdownCircuitBreaker() {
1016
+ if (this._circuitBreaker) {
1017
+ this._circuitBreaker.shutdown();
1018
+ }
1019
+ }
1020
+ /**
1021
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
1022
+ */
1023
+ closeProvider() {
1024
+ if (this._authProvider) {
1025
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
1026
+ (this._authProvider).closeProvider();
1027
+ }
1028
+ }
1029
+ /**
1030
+ * Close the client once it is no longer needed
1031
+ */
1032
+ close() {
1033
+ this.shutdownCircuitBreaker();
1034
+ this.closeProvider();
1035
+ }
1036
+ /**
1037
+ * Gets a list of Multicloud Resources.
1038
+ *
1039
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1040
+ * @param ListMulticloudSubscriptionsRequest
1041
+ * @return ListMulticloudSubscriptionsResponse
1042
+ * @throws OciError when an error occurs
1043
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/multicloud/ListMulticloudSubscriptions.ts.html |here} to see how to use ListMulticloudSubscriptions API.
1044
+ */
1045
+ listMulticloudSubscriptions(listMulticloudSubscriptionsRequest) {
1046
+ return __awaiter(this, void 0, void 0, function* () {
1047
+ if (this.logger)
1048
+ this.logger.debug("Calling operation MulticloudsubscriptionsClient#listMulticloudSubscriptions.");
1049
+ const operationName = "listMulticloudSubscriptions";
1050
+ const apiReferenceLink = "";
1051
+ const pathParams = {};
1052
+ const queryParams = {
1053
+ "compartmentId": listMulticloudSubscriptionsRequest.compartmentId,
1054
+ "limit": listMulticloudSubscriptionsRequest.limit,
1055
+ "page": listMulticloudSubscriptionsRequest.page,
1056
+ "displayName": listMulticloudSubscriptionsRequest.displayName,
1057
+ "sortBy": listMulticloudSubscriptionsRequest.sortBy,
1058
+ "sortOrder": listMulticloudSubscriptionsRequest.sortOrder
1059
+ };
1060
+ let headerParams = {
1061
+ "Content-Type": common.Constants.APPLICATION_JSON,
1062
+ "opc-request-id": listMulticloudSubscriptionsRequest.opcRequestId
1063
+ };
1064
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1065
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMulticloudSubscriptionsRequest.retryConfiguration, specRetryConfiguration);
1066
+ if (this.logger)
1067
+ retrier.logger = this.logger;
1068
+ const request = yield oci_common_1.composeRequest({
1069
+ baseEndpoint: this._endpoint,
1070
+ defaultHeaders: this._defaultHeaders,
1071
+ path: "/multicloudsubscriptions",
1072
+ method: "GET",
1073
+ pathParams: pathParams,
1074
+ headerParams: headerParams,
1075
+ queryParams: queryParams
1076
+ });
1077
+ try {
1078
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1079
+ const sdkResponse = oci_common_1.composeResponse({
1080
+ responseObject: {},
1081
+ body: yield response.json(),
1082
+ bodyKey: "multicloudSubscriptionCollection",
1083
+ bodyModel: model.MulticloudSubscriptionCollection,
1084
+ type: "model.MulticloudSubscriptionCollection",
1085
+ responseHeaders: [
1086
+ {
1087
+ value: response.headers.get("opc-request-id"),
1088
+ key: "opcRequestId",
1089
+ dataType: "string"
1090
+ },
1091
+ {
1092
+ value: response.headers.get("opc-next-page"),
1093
+ key: "opcNextPage",
1094
+ dataType: "string"
1095
+ }
1096
+ ]
1097
+ });
1098
+ return sdkResponse;
1099
+ }
1100
+ catch (err) {
1101
+ throw err;
1102
+ }
1103
+ });
1104
+ }
1105
+ }
1106
+ exports.MulticloudsubscriptionsClient = MulticloudsubscriptionsClient;
1107
+ MulticloudsubscriptionsClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
1108
+ MulticloudsubscriptionsClient.endpointServiceName = "";
857
1109
  var OmhubNetworkAnchorApiKeys;
858
1110
  (function (OmhubNetworkAnchorApiKeys) {
859
1111
  })(OmhubNetworkAnchorApiKeys = exports.OmhubNetworkAnchorApiKeys || (exports.OmhubNetworkAnchorApiKeys = {}));
@@ -967,27 +1219,6 @@ class OmhubNetworkAnchorClient {
967
1219
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OmhubNetworkAnchorClient.serviceEndpointTemplate, regionId, OmhubNetworkAnchorClient.endpointServiceName);
968
1220
  this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
969
1221
  }
970
- /**
971
- * Creates a new OmhubNetworkAnchorWaiter for resources for this service.
972
- *
973
- * @param config The waiter configuration for termination and delay strategy
974
- * @return The service waiters.
975
- */
976
- createWaiters(config) {
977
- this._waiters = new omhubnetworkanchor_waiter_1.OmhubNetworkAnchorWaiter(this, config);
978
- return this._waiters;
979
- }
980
- /**
981
- * Gets the waiters available for resources for this service.
982
- *
983
- * @return The service waiters.
984
- */
985
- getWaiters() {
986
- if (this._waiters) {
987
- return this._waiters;
988
- }
989
- throw Error("Waiters do not exist. Please create waiters.");
990
- }
991
1222
  /**
992
1223
  * Shutdown the circuit breaker used by the client when it is no longer needed
993
1224
  */
@@ -1032,7 +1263,8 @@ class OmhubNetworkAnchorClient {
1032
1263
  const queryParams = {
1033
1264
  "subscriptionServiceName": getNetworkAnchorRequest.subscriptionServiceName,
1034
1265
  "subscriptionId": getNetworkAnchorRequest.subscriptionId,
1035
- "externalLocation": getNetworkAnchorRequest.externalLocation
1266
+ "externalLocation": getNetworkAnchorRequest.externalLocation,
1267
+ "shouldFetchVcnName": getNetworkAnchorRequest.shouldFetchVcnName
1036
1268
  };
1037
1269
  let headerParams = {
1038
1270
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1099,14 +1331,16 @@ class OmhubNetworkAnchorClient {
1099
1331
  "compartmentId": listNetworkAnchorsRequest.compartmentId,
1100
1332
  "subscriptionId": listNetworkAnchorsRequest.subscriptionId,
1101
1333
  "subscriptionServiceName": listNetworkAnchorsRequest.subscriptionServiceName,
1102
- "lifecycleState": listNetworkAnchorsRequest.lifecycleState,
1334
+ "networkAnchorLifecycleState": listNetworkAnchorsRequest.networkAnchorLifecycleState,
1103
1335
  "displayName": listNetworkAnchorsRequest.displayName,
1104
1336
  "externalLocation": listNetworkAnchorsRequest.externalLocation,
1105
1337
  "networkAnchorOciSubnetId": listNetworkAnchorsRequest.networkAnchorOciSubnetId,
1338
+ "compartmentIdInSubtree": listNetworkAnchorsRequest.compartmentIdInSubtree,
1106
1339
  "networkAnchorOciVcnId": listNetworkAnchorsRequest.networkAnchorOciVcnId,
1107
1340
  "id": listNetworkAnchorsRequest.id,
1108
1341
  "limit": listNetworkAnchorsRequest.limit,
1109
1342
  "page": listNetworkAnchorsRequest.page,
1343
+ "shouldFetchVcnName": listNetworkAnchorsRequest.shouldFetchVcnName,
1110
1344
  "sortOrder": listNetworkAnchorsRequest.sortOrder,
1111
1345
  "sortBy": listNetworkAnchorsRequest.sortBy
1112
1346
  };
@@ -1336,7 +1570,8 @@ class OmhubResourceAnchorClient {
1336
1570
  };
1337
1571
  const queryParams = {
1338
1572
  "subscriptionServiceName": getResourceAnchorRequest.subscriptionServiceName,
1339
- "subscriptionId": getResourceAnchorRequest.subscriptionId
1573
+ "subscriptionId": getResourceAnchorRequest.subscriptionId,
1574
+ "shouldFetchCompartmentName": getResourceAnchorRequest.shouldFetchCompartmentName
1340
1575
  };
1341
1576
  let headerParams = {
1342
1577
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1410,6 +1645,7 @@ class OmhubResourceAnchorClient {
1410
1645
  "sortOrder": listResourceAnchorsRequest.sortOrder,
1411
1646
  "sortBy": listResourceAnchorsRequest.sortBy,
1412
1647
  "isCompartmentIdInSubtree": listResourceAnchorsRequest.isCompartmentIdInSubtree,
1648
+ "shouldFetchCompartmentName": listResourceAnchorsRequest.shouldFetchCompartmentName,
1413
1649
  "subscriptionServiceName": listResourceAnchorsRequest.subscriptionServiceName,
1414
1650
  "subscriptionId": listResourceAnchorsRequest.subscriptionId
1415
1651
  };