oci-multicloud 2.126.3 → 2.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/lib/client.d.ts +192 -12
- package/lib/client.js +473 -15
- package/lib/client.js.map +1 -1
- package/lib/model/action-kind-header.d.ts +1 -1
- package/lib/model/action-kind-header.js +1 -1
- package/lib/model/aws-cloud-service-provider-metadata-item.d.ts +1 -1
- package/lib/model/aws-cloud-service-provider-metadata-item.js +1 -1
- package/lib/model/azure-cloud-service-provider-metadata-item.d.ts +1 -1
- package/lib/model/azure-cloud-service-provider-metadata-item.js +1 -1
- package/lib/model/cloud-service-provider-metadata-item.d.ts +1 -1
- package/lib/model/cloud-service-provider-metadata-item.js +1 -1
- package/lib/model/cloud-service-provider-network-metadata-item.d.ts +1 -1
- package/lib/model/cloud-service-provider-network-metadata-item.js +1 -1
- package/lib/model/csp-zone-key-reference-id.d.ts +1 -1
- package/lib/model/csp-zone-key-reference-id.js +1 -1
- package/lib/model/external-location-detail.d.ts +1 -1
- package/lib/model/external-location-detail.js +1 -1
- package/lib/model/external-location-mapping-metadatum-summary-collection.d.ts +1 -1
- package/lib/model/external-location-mapping-metadatum-summary-collection.js +1 -1
- package/lib/model/external-location-mapping-metadatum-summary.d.ts +2 -4
- package/lib/model/external-location-mapping-metadatum-summary.js +1 -1
- package/lib/model/external-location-mapping-metadatum-summary.js.map +1 -1
- package/lib/model/external-location-summaries-metadatum-summary-collection.d.ts +1 -1
- package/lib/model/external-location-summaries-metadatum-summary-collection.js +1 -1
- package/lib/model/external-location-summaries-metadatum-summary.d.ts +1 -1
- package/lib/model/external-location-summaries-metadatum-summary.js +1 -1
- package/lib/model/external-location-summary.d.ts +1 -1
- package/lib/model/external-location-summary.js +1 -1
- package/lib/model/external-location.d.ts +1 -1
- package/lib/model/external-location.js +1 -1
- package/lib/model/external-locations-metadatum-collection.d.ts +1 -1
- package/lib/model/external-locations-metadatum-collection.js +1 -1
- package/lib/model/external-locations-metadatum-summary.d.ts +1 -1
- package/lib/model/external-locations-metadatum-summary.js +1 -1
- package/lib/model/gcp-cloud-service-provider-metadata-item.d.ts +1 -1
- package/lib/model/gcp-cloud-service-provider-metadata-item.js +1 -1
- package/lib/model/index.d.ts +13 -1
- package/lib/model/index.js +14 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/multi-cloud-metadata-collection.d.ts +5 -2
- package/lib/model/multi-cloud-metadata-collection.js +1 -1
- package/lib/model/multi-cloud-metadata-collection.js.map +1 -1
- package/lib/model/multi-cloud-metadata-summary.d.ts +8 -5
- package/lib/model/multi-cloud-metadata-summary.js +1 -1
- package/lib/model/multi-cloud-metadata-summary.js.map +1 -1
- package/lib/model/multi-cloud-metadata.d.ts +8 -5
- package/lib/model/multi-cloud-metadata.js +1 -1
- package/lib/model/multi-cloud-metadata.js.map +1 -1
- package/lib/model/multicloud-alert-collection.d.ts +26 -0
- package/lib/model/multicloud-alert-collection.js +61 -0
- package/lib/model/multicloud-alert-collection.js.map +1 -0
- package/lib/model/multicloud-alert-summary.d.ts +67 -0
- package/lib/model/multicloud-alert-summary.js +61 -0
- package/lib/model/multicloud-alert-summary.js.map +1 -0
- package/lib/model/multicloud-alert.d.ts +167 -0
- package/lib/model/multicloud-alert.js +66 -0
- package/lib/model/multicloud-alert.js.map +1 -0
- package/lib/model/multicloud-policy-collection.d.ts +30 -0
- package/lib/model/multicloud-policy-collection.js +61 -0
- package/lib/model/multicloud-policy-collection.js.map +1 -0
- package/lib/model/multicloud-policy-summary.d.ts +75 -0
- package/lib/model/multicloud-policy-summary.js +61 -0
- package/lib/model/multicloud-policy-summary.js.map +1 -0
- package/lib/model/multicloud-policy.d.ts +91 -0
- package/lib/model/multicloud-policy.js +43 -0
- package/lib/model/multicloud-policy.js.map +1 -0
- package/lib/model/multicloud-resource-collection.d.ts +5 -2
- package/lib/model/multicloud-resource-collection.js +1 -1
- package/lib/model/multicloud-resource-collection.js.map +1 -1
- package/lib/model/multicloud-resource-summary.d.ts +22 -13
- package/lib/model/multicloud-resource-summary.js +1 -1
- package/lib/model/multicloud-resource-summary.js.map +1 -1
- package/lib/model/multicloud-subscription-collection.d.ts +6 -3
- package/lib/model/multicloud-subscription-collection.js +1 -1
- package/lib/model/multicloud-subscription-collection.js.map +1 -1
- package/lib/model/multicloud-subscription-summary.d.ts +17 -10
- package/lib/model/multicloud-subscription-summary.js +1 -1
- package/lib/model/multicloud-subscription-summary.js.map +1 -1
- package/lib/model/network-anchor-collection.d.ts +1 -1
- package/lib/model/network-anchor-collection.js +1 -1
- package/lib/model/network-anchor-connection-status.d.ts +1 -1
- package/lib/model/network-anchor-connection-status.js +1 -1
- package/lib/model/network-anchor-summary.d.ts +5 -1
- package/lib/model/network-anchor-summary.js +1 -1
- package/lib/model/network-anchor-summary.js.map +1 -1
- package/lib/model/network-anchor.d.ts +1 -1
- package/lib/model/network-anchor.js +1 -1
- package/lib/model/oci-dns.d.ts +1 -1
- package/lib/model/oci-dns.js +1 -1
- package/lib/model/oci-network-metadata.d.ts +1 -1
- package/lib/model/oci-network-metadata.js +1 -1
- package/lib/model/oci-network-subnet.d.ts +1 -1
- package/lib/model/oci-network-subnet.js +1 -1
- package/lib/model/oci-vcn.d.ts +1 -1
- package/lib/model/oci-vcn.js +1 -1
- package/lib/model/om-hub-cp.d.ts +1 -1
- package/lib/model/om-hub-cp.js +1 -1
- package/lib/model/properties.d.ts +1 -1
- package/lib/model/properties.js +1 -1
- package/lib/model/resource-anchor-collection.d.ts +3 -3
- package/lib/model/resource-anchor-collection.js +1 -1
- package/lib/model/resource-anchor-summary.d.ts +20 -14
- package/lib/model/resource-anchor-summary.js +1 -1
- package/lib/model/resource-anchor-summary.js.map +1 -1
- package/lib/model/resource-anchor.d.ts +7 -7
- package/lib/model/resource-anchor.js +1 -1
- package/lib/model/sort-order.d.ts +1 -1
- package/lib/model/sort-order.js +1 -1
- package/lib/model/subscription-type.d.ts +1 -1
- package/lib/model/subscription-type.js +1 -1
- package/lib/omhubresourceanchor-waiter.d.ts +1 -1
- package/lib/omhubresourceanchor-waiter.js +1 -1
- package/lib/request/get-network-anchor-request.d.ts +2 -2
- package/lib/request/get-resource-anchor-request.d.ts +5 -3
- package/lib/request/index.d.ts +5 -1
- package/lib/request/index.js +6 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-external-location-details-metadata-request.d.ts +8 -6
- package/lib/request/list-external-location-details-metadata-request.js.map +1 -1
- package/lib/request/list-external-location-mapping-metadata-request.d.ts +4 -2
- package/lib/request/list-external-location-mapping-metadata-request.js.map +1 -1
- package/lib/request/list-external-location-summaries-metadata-request.d.ts +5 -3
- package/lib/request/list-external-location-summaries-metadata-request.js.map +1 -1
- package/lib/request/list-multi-cloud-metadata-request.d.ts +2 -0
- package/lib/request/list-multi-cloud-metadata-request.js.map +1 -1
- package/lib/request/list-multicloud-alerts-request.d.ts +115 -0
- package/lib/request/list-multicloud-alerts-request.js +37 -0
- package/lib/request/list-multicloud-alerts-request.js.map +1 -0
- package/lib/request/list-multicloud-policies-request.d.ts +75 -0
- package/lib/request/list-multicloud-policies-request.js +24 -0
- package/lib/request/list-multicloud-policies-request.js.map +1 -0
- package/lib/request/list-multicloud-resources-request.d.ts +16 -10
- package/lib/request/list-multicloud-resources-request.js.map +1 -1
- package/lib/request/list-multicloud-subscriptions-request.d.ts +2 -0
- package/lib/request/list-multicloud-subscriptions-request.js.map +1 -1
- package/lib/request/list-network-anchors-request.d.ts +5 -7
- package/lib/request/list-network-anchors-request.js.map +1 -1
- package/lib/request/list-resource-anchors-request.d.ts +9 -5
- package/lib/request/list-resource-anchors-request.js.map +1 -1
- package/lib/response/index.d.ts +5 -1
- package/lib/response/index.js +1 -1
- package/lib/response/list-multicloud-alerts-response.d.ts +31 -0
- package/lib/response/list-multicloud-alerts-response.js +15 -0
- package/lib/response/list-multicloud-alerts-response.js.map +1 -0
- package/lib/response/list-multicloud-policies-response.d.ts +31 -0
- package/lib/response/list-multicloud-policies-response.js +15 -0
- package/lib/response/list-multicloud-policies-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Oracle Multicloud API
|
|
4
|
-
* Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see
|
|
4
|
+
* Use the Oracle Multicloud API to retrieve resource anchors and network anchors, and the metadata mappings related a Cloud Service Provider. For more information, see [Oracle Multicloud Hub](https://docs.oracle.com/iaas/Content/multicloud-hub/home.htm).
|
|
5
5
|
* OpenAPI spec version: 20180828
|
|
6
6
|
*
|
|
7
7
|
*
|
|
@@ -40,7 +40,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.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;
|
|
43
|
+
exports.OmhubResourceAnchorClient = exports.OmhubResourceAnchorApiKeys = exports.OmhubNetworkAnchorClient = exports.OmhubNetworkAnchorApiKeys = exports.MulticloudsubscriptionsClient = exports.MulticloudsubscriptionsApiKeys = exports.MulticloudResourcesClient = exports.MulticloudResourcesApiKeys = exports.MulticloudPoliciesClient = exports.MulticloudPoliciesApiKeys = exports.MulticloudAlertsClient = exports.MulticloudAlertsApiKeys = 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
46
|
const omhubresourceanchor_waiter_1 = require("./omhubresourceanchor-waiter");
|
|
@@ -262,7 +262,13 @@ class MetadataClient {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* List
|
|
265
|
+
* List mapped partner cloud regions and zones across cloud service providers
|
|
266
|
+
* for the specified Multicloud base compartment and subscription service name.
|
|
267
|
+
* Each mapping includes the OCI region, logical availability domain, and physical availability domain,
|
|
268
|
+
* along with mapped partner cloud details that depend on the partner cloud.
|
|
269
|
+
* For example, Azure includes a logical zone while AWS doesn't.
|
|
270
|
+
* For more information, see
|
|
271
|
+
* [Cross-Cloud Region-Zone Mapping](https://docs.oracle.com/iaas/Content/multicloud-hub/view-cloud-mapping.htm).
|
|
266
272
|
*
|
|
267
273
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
268
274
|
* @param ListExternalLocationMappingMetadataRequest
|
|
@@ -544,8 +550,10 @@ class MultiCloudsMetadataClient {
|
|
|
544
550
|
this.closeProvider();
|
|
545
551
|
}
|
|
546
552
|
/**
|
|
547
|
-
* Gets
|
|
548
|
-
*
|
|
553
|
+
* Gets details for Multicloud metadata for the specified Multicloud subscription.
|
|
554
|
+
* Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment).
|
|
555
|
+
* For more information, see
|
|
556
|
+
* [Getting Details for Multicloud Metadata](https://docs.oracle.com/iaas/Content/multicloud-hub/get-subscription-metadata.htm).
|
|
549
557
|
*
|
|
550
558
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
551
559
|
* @param GetMultiCloudMetadataRequest
|
|
@@ -611,8 +619,10 @@ class MultiCloudsMetadataClient {
|
|
|
611
619
|
});
|
|
612
620
|
}
|
|
613
621
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
622
|
+
* Lists Multicloud metadata for Multicloud subscriptions in the specified compartment.
|
|
623
|
+
* Multicloud metadata for a subscription includes the Multicloud base compartment (top-level OCI compartment).
|
|
624
|
+
* For more information, see
|
|
625
|
+
* [Listing Multicloud Metadata for a Subscription](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscription-metadata.htm).
|
|
616
626
|
*
|
|
617
627
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
618
628
|
* @param ListMultiCloudMetadataRequest
|
|
@@ -683,6 +693,438 @@ class MultiCloudsMetadataClient {
|
|
|
683
693
|
exports.MultiCloudsMetadataClient = MultiCloudsMetadataClient;
|
|
684
694
|
MultiCloudsMetadataClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
|
|
685
695
|
MultiCloudsMetadataClient.endpointServiceName = "";
|
|
696
|
+
var MulticloudAlertsApiKeys;
|
|
697
|
+
(function (MulticloudAlertsApiKeys) {
|
|
698
|
+
})(MulticloudAlertsApiKeys = exports.MulticloudAlertsApiKeys || (exports.MulticloudAlertsApiKeys = {}));
|
|
699
|
+
/**
|
|
700
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
701
|
+
*/
|
|
702
|
+
class MulticloudAlertsClient {
|
|
703
|
+
constructor(params, clientConfiguration) {
|
|
704
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
705
|
+
this["_endpoint"] = "";
|
|
706
|
+
this["_defaultHeaders"] = {};
|
|
707
|
+
this._circuitBreaker = null;
|
|
708
|
+
this._httpOptions = undefined;
|
|
709
|
+
this._bodyDuplexMode = undefined;
|
|
710
|
+
this.targetService = "MulticloudAlerts";
|
|
711
|
+
this._regionId = "";
|
|
712
|
+
this._lastSetRegionOrRegionId = "";
|
|
713
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
714
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
715
|
+
: null;
|
|
716
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
717
|
+
if (clientConfiguration) {
|
|
718
|
+
this._clientConfiguration = clientConfiguration;
|
|
719
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
720
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
721
|
+
: null;
|
|
722
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
723
|
+
? clientConfiguration.httpOptions
|
|
724
|
+
: undefined;
|
|
725
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
726
|
+
? clientConfiguration.bodyDuplexMode
|
|
727
|
+
: undefined;
|
|
728
|
+
}
|
|
729
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("multicloud")) {
|
|
730
|
+
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 : ";
|
|
731
|
+
throw errmsg.concat("multicloud");
|
|
732
|
+
}
|
|
733
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
734
|
+
const specCircuitBreakerEnabled = true;
|
|
735
|
+
if (!this._circuitBreaker &&
|
|
736
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
737
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
738
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
739
|
+
}
|
|
740
|
+
this._httpClient =
|
|
741
|
+
params.httpClient ||
|
|
742
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
743
|
+
if (params.authenticationDetailsProvider &&
|
|
744
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
745
|
+
const provider = params.authenticationDetailsProvider;
|
|
746
|
+
if (provider.getRegion()) {
|
|
747
|
+
this.region = provider.getRegion();
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
753
|
+
*/
|
|
754
|
+
get endpoint() {
|
|
755
|
+
return this._endpoint;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
759
|
+
* @param endpoint The endpoint of the service.
|
|
760
|
+
*/
|
|
761
|
+
set endpoint(endpoint) {
|
|
762
|
+
this._endpoint = endpoint;
|
|
763
|
+
this._endpoint = this._endpoint + "/20180828";
|
|
764
|
+
if (this.logger)
|
|
765
|
+
this.logger.info(`MulticloudAlertsClient endpoint set to ${this._endpoint}`);
|
|
766
|
+
}
|
|
767
|
+
get logger() {
|
|
768
|
+
return common.LOG.logger;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
772
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
773
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
774
|
+
*/
|
|
775
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
776
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
777
|
+
if (this.logger)
|
|
778
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
779
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
780
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudAlertsClient.serviceEndpointTemplate, this._region, MulticloudAlertsClient.endpointServiceName);
|
|
781
|
+
}
|
|
782
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
783
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudAlertsClient.serviceEndpointTemplate, this._regionId, MulticloudAlertsClient.endpointServiceName);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
788
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
789
|
+
* @param region The region of the service.
|
|
790
|
+
*/
|
|
791
|
+
set region(region) {
|
|
792
|
+
this._region = region;
|
|
793
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudAlertsClient.serviceEndpointTemplate, region, MulticloudAlertsClient.endpointServiceName);
|
|
794
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
798
|
+
*
|
|
799
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
800
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
801
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
802
|
+
* @param regionId The public region ID.
|
|
803
|
+
*/
|
|
804
|
+
set regionId(regionId) {
|
|
805
|
+
this._regionId = regionId;
|
|
806
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudAlertsClient.serviceEndpointTemplate, regionId, MulticloudAlertsClient.endpointServiceName);
|
|
807
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
811
|
+
*/
|
|
812
|
+
shutdownCircuitBreaker() {
|
|
813
|
+
if (this._circuitBreaker) {
|
|
814
|
+
this._circuitBreaker.shutdown();
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
819
|
+
*/
|
|
820
|
+
closeProvider() {
|
|
821
|
+
if (this._authProvider) {
|
|
822
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
823
|
+
(this._authProvider).closeProvider();
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Close the client once it is no longer needed
|
|
828
|
+
*/
|
|
829
|
+
close() {
|
|
830
|
+
this.shutdownCircuitBreaker();
|
|
831
|
+
this.closeProvider();
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Gets a list of Multicloud Alerts for a given root compartment.
|
|
835
|
+
* Optional query parameters can be used to filter alerts by resource,
|
|
836
|
+
* subscription, severity, lifecycle state, and alert status.
|
|
837
|
+
*
|
|
838
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
839
|
+
* @param ListMulticloudAlertsRequest
|
|
840
|
+
* @return ListMulticloudAlertsResponse
|
|
841
|
+
* @throws OciError when an error occurs
|
|
842
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/multicloud/ListMulticloudAlerts.ts.html |here} to see how to use ListMulticloudAlerts API.
|
|
843
|
+
*/
|
|
844
|
+
listMulticloudAlerts(listMulticloudAlertsRequest) {
|
|
845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
846
|
+
if (this.logger)
|
|
847
|
+
this.logger.debug("Calling operation MulticloudAlertsClient#listMulticloudAlerts.");
|
|
848
|
+
const operationName = "listMulticloudAlerts";
|
|
849
|
+
const apiReferenceLink = "";
|
|
850
|
+
const pathParams = {};
|
|
851
|
+
const queryParams = {
|
|
852
|
+
"compartmentId": listMulticloudAlertsRequest.compartmentId,
|
|
853
|
+
"resourceId": listMulticloudAlertsRequest.resourceId,
|
|
854
|
+
"resourceType": listMulticloudAlertsRequest.resourceType,
|
|
855
|
+
"alertType": listMulticloudAlertsRequest.alertType,
|
|
856
|
+
"alertFunctionName": listMulticloudAlertsRequest.alertFunctionName,
|
|
857
|
+
"severity": listMulticloudAlertsRequest.severity,
|
|
858
|
+
"alertStatus": listMulticloudAlertsRequest.alertStatus,
|
|
859
|
+
"subscriptionServiceName": listMulticloudAlertsRequest.subscriptionServiceName,
|
|
860
|
+
"subscriptionId": listMulticloudAlertsRequest.subscriptionId,
|
|
861
|
+
"limit": listMulticloudAlertsRequest.limit,
|
|
862
|
+
"page": listMulticloudAlertsRequest.page,
|
|
863
|
+
"displayName": listMulticloudAlertsRequest.displayName,
|
|
864
|
+
"sortBy": listMulticloudAlertsRequest.sortBy,
|
|
865
|
+
"sortOrder": listMulticloudAlertsRequest.sortOrder
|
|
866
|
+
};
|
|
867
|
+
let headerParams = {
|
|
868
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
869
|
+
"opc-request-id": listMulticloudAlertsRequest.opcRequestId
|
|
870
|
+
};
|
|
871
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
872
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMulticloudAlertsRequest.retryConfiguration, specRetryConfiguration);
|
|
873
|
+
if (this.logger)
|
|
874
|
+
retrier.logger = this.logger;
|
|
875
|
+
const request = yield oci_common_1.composeRequest({
|
|
876
|
+
baseEndpoint: this._endpoint,
|
|
877
|
+
defaultHeaders: this._defaultHeaders,
|
|
878
|
+
path: "/multicloudalerts",
|
|
879
|
+
method: "GET",
|
|
880
|
+
pathParams: pathParams,
|
|
881
|
+
headerParams: headerParams,
|
|
882
|
+
queryParams: queryParams
|
|
883
|
+
});
|
|
884
|
+
try {
|
|
885
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
886
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
887
|
+
responseObject: {},
|
|
888
|
+
body: yield response.json(),
|
|
889
|
+
bodyKey: "multicloudAlertCollection",
|
|
890
|
+
bodyModel: model.MulticloudAlertCollection,
|
|
891
|
+
type: "model.MulticloudAlertCollection",
|
|
892
|
+
responseHeaders: [
|
|
893
|
+
{
|
|
894
|
+
value: response.headers.get("opc-request-id"),
|
|
895
|
+
key: "opcRequestId",
|
|
896
|
+
dataType: "string"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
value: response.headers.get("opc-next-page"),
|
|
900
|
+
key: "opcNextPage",
|
|
901
|
+
dataType: "string"
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
});
|
|
905
|
+
return sdkResponse;
|
|
906
|
+
}
|
|
907
|
+
catch (err) {
|
|
908
|
+
throw err;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
exports.MulticloudAlertsClient = MulticloudAlertsClient;
|
|
914
|
+
MulticloudAlertsClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
|
|
915
|
+
MulticloudAlertsClient.endpointServiceName = "";
|
|
916
|
+
var MulticloudPoliciesApiKeys;
|
|
917
|
+
(function (MulticloudPoliciesApiKeys) {
|
|
918
|
+
})(MulticloudPoliciesApiKeys = exports.MulticloudPoliciesApiKeys || (exports.MulticloudPoliciesApiKeys = {}));
|
|
919
|
+
/**
|
|
920
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
921
|
+
*/
|
|
922
|
+
class MulticloudPoliciesClient {
|
|
923
|
+
constructor(params, clientConfiguration) {
|
|
924
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
925
|
+
this["_endpoint"] = "";
|
|
926
|
+
this["_defaultHeaders"] = {};
|
|
927
|
+
this._circuitBreaker = null;
|
|
928
|
+
this._httpOptions = undefined;
|
|
929
|
+
this._bodyDuplexMode = undefined;
|
|
930
|
+
this.targetService = "MulticloudPolicies";
|
|
931
|
+
this._regionId = "";
|
|
932
|
+
this._lastSetRegionOrRegionId = "";
|
|
933
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
934
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
935
|
+
: null;
|
|
936
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
937
|
+
if (clientConfiguration) {
|
|
938
|
+
this._clientConfiguration = clientConfiguration;
|
|
939
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
940
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
941
|
+
: null;
|
|
942
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
943
|
+
? clientConfiguration.httpOptions
|
|
944
|
+
: undefined;
|
|
945
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
946
|
+
? clientConfiguration.bodyDuplexMode
|
|
947
|
+
: undefined;
|
|
948
|
+
}
|
|
949
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("multicloud")) {
|
|
950
|
+
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 : ";
|
|
951
|
+
throw errmsg.concat("multicloud");
|
|
952
|
+
}
|
|
953
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
954
|
+
const specCircuitBreakerEnabled = true;
|
|
955
|
+
if (!this._circuitBreaker &&
|
|
956
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
957
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
958
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
959
|
+
}
|
|
960
|
+
this._httpClient =
|
|
961
|
+
params.httpClient ||
|
|
962
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
963
|
+
if (params.authenticationDetailsProvider &&
|
|
964
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
965
|
+
const provider = params.authenticationDetailsProvider;
|
|
966
|
+
if (provider.getRegion()) {
|
|
967
|
+
this.region = provider.getRegion();
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
973
|
+
*/
|
|
974
|
+
get endpoint() {
|
|
975
|
+
return this._endpoint;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
979
|
+
* @param endpoint The endpoint of the service.
|
|
980
|
+
*/
|
|
981
|
+
set endpoint(endpoint) {
|
|
982
|
+
this._endpoint = endpoint;
|
|
983
|
+
this._endpoint = this._endpoint + "/20180828";
|
|
984
|
+
if (this.logger)
|
|
985
|
+
this.logger.info(`MulticloudPoliciesClient endpoint set to ${this._endpoint}`);
|
|
986
|
+
}
|
|
987
|
+
get logger() {
|
|
988
|
+
return common.LOG.logger;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
992
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
993
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
994
|
+
*/
|
|
995
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
996
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
997
|
+
if (this.logger)
|
|
998
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
999
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1000
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudPoliciesClient.serviceEndpointTemplate, this._region, MulticloudPoliciesClient.endpointServiceName);
|
|
1001
|
+
}
|
|
1002
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1003
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudPoliciesClient.serviceEndpointTemplate, this._regionId, MulticloudPoliciesClient.endpointServiceName);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1008
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1009
|
+
* @param region The region of the service.
|
|
1010
|
+
*/
|
|
1011
|
+
set region(region) {
|
|
1012
|
+
this._region = region;
|
|
1013
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MulticloudPoliciesClient.serviceEndpointTemplate, region, MulticloudPoliciesClient.endpointServiceName);
|
|
1014
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1018
|
+
*
|
|
1019
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1020
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1021
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1022
|
+
* @param regionId The public region ID.
|
|
1023
|
+
*/
|
|
1024
|
+
set regionId(regionId) {
|
|
1025
|
+
this._regionId = regionId;
|
|
1026
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MulticloudPoliciesClient.serviceEndpointTemplate, regionId, MulticloudPoliciesClient.endpointServiceName);
|
|
1027
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1031
|
+
*/
|
|
1032
|
+
shutdownCircuitBreaker() {
|
|
1033
|
+
if (this._circuitBreaker) {
|
|
1034
|
+
this._circuitBreaker.shutdown();
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1039
|
+
*/
|
|
1040
|
+
closeProvider() {
|
|
1041
|
+
if (this._authProvider) {
|
|
1042
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1043
|
+
(this._authProvider).closeProvider();
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Close the client once it is no longer needed
|
|
1048
|
+
*/
|
|
1049
|
+
close() {
|
|
1050
|
+
this.shutdownCircuitBreaker();
|
|
1051
|
+
this.closeProvider();
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Gets a list of Multicloud IAM Policies.
|
|
1055
|
+
*
|
|
1056
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1057
|
+
* @param ListMulticloudPoliciesRequest
|
|
1058
|
+
* @return ListMulticloudPoliciesResponse
|
|
1059
|
+
* @throws OciError when an error occurs
|
|
1060
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/multicloud/ListMulticloudPolicies.ts.html |here} to see how to use ListMulticloudPolicies API.
|
|
1061
|
+
*/
|
|
1062
|
+
listMulticloudPolicies(listMulticloudPoliciesRequest) {
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
+
if (this.logger)
|
|
1065
|
+
this.logger.debug("Calling operation MulticloudPoliciesClient#listMulticloudPolicies.");
|
|
1066
|
+
const operationName = "listMulticloudPolicies";
|
|
1067
|
+
const apiReferenceLink = "";
|
|
1068
|
+
const pathParams = {};
|
|
1069
|
+
const queryParams = {
|
|
1070
|
+
"compartmentId": listMulticloudPoliciesRequest.compartmentId,
|
|
1071
|
+
"isForceRefresh": listMulticloudPoliciesRequest.isForceRefresh,
|
|
1072
|
+
"subscriptionId": listMulticloudPoliciesRequest.subscriptionId,
|
|
1073
|
+
"limit": listMulticloudPoliciesRequest.limit,
|
|
1074
|
+
"page": listMulticloudPoliciesRequest.page,
|
|
1075
|
+
"displayName": listMulticloudPoliciesRequest.displayName,
|
|
1076
|
+
"sortBy": listMulticloudPoliciesRequest.sortBy,
|
|
1077
|
+
"sortOrder": listMulticloudPoliciesRequest.sortOrder
|
|
1078
|
+
};
|
|
1079
|
+
let headerParams = {
|
|
1080
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1081
|
+
"opc-request-id": listMulticloudPoliciesRequest.opcRequestId
|
|
1082
|
+
};
|
|
1083
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1084
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMulticloudPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
1085
|
+
if (this.logger)
|
|
1086
|
+
retrier.logger = this.logger;
|
|
1087
|
+
const request = yield oci_common_1.composeRequest({
|
|
1088
|
+
baseEndpoint: this._endpoint,
|
|
1089
|
+
defaultHeaders: this._defaultHeaders,
|
|
1090
|
+
path: "/multicloudpolicies",
|
|
1091
|
+
method: "GET",
|
|
1092
|
+
pathParams: pathParams,
|
|
1093
|
+
headerParams: headerParams,
|
|
1094
|
+
queryParams: queryParams
|
|
1095
|
+
});
|
|
1096
|
+
try {
|
|
1097
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1098
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1099
|
+
responseObject: {},
|
|
1100
|
+
body: yield response.json(),
|
|
1101
|
+
bodyKey: "multicloudPolicyCollection",
|
|
1102
|
+
bodyModel: model.MulticloudPolicyCollection,
|
|
1103
|
+
type: "model.MulticloudPolicyCollection",
|
|
1104
|
+
responseHeaders: [
|
|
1105
|
+
{
|
|
1106
|
+
value: response.headers.get("opc-request-id"),
|
|
1107
|
+
key: "opcRequestId",
|
|
1108
|
+
dataType: "string"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
value: response.headers.get("opc-next-page"),
|
|
1112
|
+
key: "opcNextPage",
|
|
1113
|
+
dataType: "string"
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
});
|
|
1117
|
+
return sdkResponse;
|
|
1118
|
+
}
|
|
1119
|
+
catch (err) {
|
|
1120
|
+
throw err;
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
exports.MulticloudPoliciesClient = MulticloudPoliciesClient;
|
|
1126
|
+
MulticloudPoliciesClient.serviceEndpointTemplate = "https://multicloud.{region}.oci.{secondLevelDomain}";
|
|
1127
|
+
MulticloudPoliciesClient.endpointServiceName = "";
|
|
686
1128
|
var MulticloudResourcesApiKeys;
|
|
687
1129
|
(function (MulticloudResourcesApiKeys) {
|
|
688
1130
|
})(MulticloudResourcesApiKeys = exports.MulticloudResourcesApiKeys || (exports.MulticloudResourcesApiKeys = {}));
|
|
@@ -821,7 +1263,10 @@ class MulticloudResourcesClient {
|
|
|
821
1263
|
this.closeProvider();
|
|
822
1264
|
}
|
|
823
1265
|
/**
|
|
824
|
-
*
|
|
1266
|
+
* Lists Multicloud resources in the specified Multicloud subscription.
|
|
1267
|
+
* Details for each resource include Multicloud base compartment, name, state, resource type, and network anchor.
|
|
1268
|
+
* For more information, see
|
|
1269
|
+
* [Multicloud Resources](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resources.htm).
|
|
825
1270
|
*
|
|
826
1271
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
827
1272
|
* @param ListMulticloudResourcesRequest
|
|
@@ -845,7 +1290,8 @@ class MulticloudResourcesClient {
|
|
|
845
1290
|
"sortBy": listMulticloudResourcesRequest.sortBy,
|
|
846
1291
|
"subscriptionServiceName": listMulticloudResourcesRequest.subscriptionServiceName,
|
|
847
1292
|
"subscriptionId": listMulticloudResourcesRequest.subscriptionId,
|
|
848
|
-
"externalLocation": listMulticloudResourcesRequest.externalLocation
|
|
1293
|
+
"externalLocation": listMulticloudResourcesRequest.externalLocation,
|
|
1294
|
+
"resourceType": listMulticloudResourcesRequest.resourceType
|
|
849
1295
|
};
|
|
850
1296
|
let headerParams = {
|
|
851
1297
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -1034,7 +1480,8 @@ class MulticloudsubscriptionsClient {
|
|
|
1034
1480
|
this.closeProvider();
|
|
1035
1481
|
}
|
|
1036
1482
|
/**
|
|
1037
|
-
*
|
|
1483
|
+
* Lists activated Multicloud subscriptions in the specified compartment. For more information, see
|
|
1484
|
+
* [Listing Multicloud Subscriptions](https://docs.oracle.com/iaas/Content/multicloud-hub/list-subscriptions.htm).
|
|
1038
1485
|
*
|
|
1039
1486
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1040
1487
|
* @param ListMulticloudSubscriptionsRequest
|
|
@@ -1244,7 +1691,10 @@ class OmhubNetworkAnchorClient {
|
|
|
1244
1691
|
this.closeProvider();
|
|
1245
1692
|
}
|
|
1246
1693
|
/**
|
|
1247
|
-
* Gets
|
|
1694
|
+
* Gets details for the specified network anchor. The subscription OCID and service name are required.
|
|
1695
|
+
* For more information, see
|
|
1696
|
+
* [Getting a Network Anchor's Details](https://docs.oracle.com/iaas/Content/multicloud-hub/get-network-anchor.htm).
|
|
1697
|
+
*
|
|
1248
1698
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1249
1699
|
* @param GetNetworkAnchorRequest
|
|
1250
1700
|
* @return GetNetworkAnchorResponse
|
|
@@ -1312,7 +1762,10 @@ class OmhubNetworkAnchorClient {
|
|
|
1312
1762
|
});
|
|
1313
1763
|
}
|
|
1314
1764
|
/**
|
|
1315
|
-
*
|
|
1765
|
+
* Lists network anchors in the specified Multicloud subscription, Multicloud compartment, and partner cloud region.
|
|
1766
|
+
* Details listed for each resource include name, state, VCN, and ODB network ID.
|
|
1767
|
+
* For more information, see
|
|
1768
|
+
* [Listing Network Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-network-anchors.htm).
|
|
1316
1769
|
*
|
|
1317
1770
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1318
1771
|
* @param ListNetworkAnchorsRequest
|
|
@@ -1335,7 +1788,6 @@ class OmhubNetworkAnchorClient {
|
|
|
1335
1788
|
"displayName": listNetworkAnchorsRequest.displayName,
|
|
1336
1789
|
"externalLocation": listNetworkAnchorsRequest.externalLocation,
|
|
1337
1790
|
"networkAnchorOciSubnetId": listNetworkAnchorsRequest.networkAnchorOciSubnetId,
|
|
1338
|
-
"compartmentIdInSubtree": listNetworkAnchorsRequest.compartmentIdInSubtree,
|
|
1339
1791
|
"networkAnchorOciVcnId": listNetworkAnchorsRequest.networkAnchorOciVcnId,
|
|
1340
1792
|
"id": listNetworkAnchorsRequest.id,
|
|
1341
1793
|
"limit": listNetworkAnchorsRequest.limit,
|
|
@@ -1552,7 +2004,10 @@ class OmhubResourceAnchorClient {
|
|
|
1552
2004
|
this.closeProvider();
|
|
1553
2005
|
}
|
|
1554
2006
|
/**
|
|
1555
|
-
* Gets
|
|
2007
|
+
* Gets details for the specified resource anchor. The subscription OCID and service name are required.
|
|
2008
|
+
* For more information, see
|
|
2009
|
+
* [Getting a Resource Anchor's Details (OCI)](https://docs.oracle.com/iaas/Content/multicloud-hub/get-resource-anchor.htm).
|
|
2010
|
+
*
|
|
1556
2011
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1557
2012
|
* @param GetResourceAnchorRequest
|
|
1558
2013
|
* @return GetResourceAnchorResponse
|
|
@@ -1619,7 +2074,10 @@ class OmhubResourceAnchorClient {
|
|
|
1619
2074
|
});
|
|
1620
2075
|
}
|
|
1621
2076
|
/**
|
|
1622
|
-
*
|
|
2077
|
+
* Lists resource anchors in the specified Multicloud subscription.
|
|
2078
|
+
* Details listed for each resource anchor include name, state, and the related Multicloud compartment.
|
|
2079
|
+
* For more information, see
|
|
2080
|
+
* [Listing Resource Anchors](https://docs.oracle.com/iaas/Content/multicloud-hub/list-resource-anchors.htm).
|
|
1623
2081
|
*
|
|
1624
2082
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1625
2083
|
* @param ListResourceAnchorsRequest
|