oci-ocvp 2.123.0 → 2.124.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 -0
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +126 -0
- package/lib/client.js +477 -1
- package/lib/client.js.map +1 -1
- package/lib/managementappliance-waiter.d.ts +31 -0
- package/lib/managementappliance-waiter.js +67 -0
- package/lib/managementappliance-waiter.js.map +1 -0
- package/lib/model/create-management-appliance-details.d.ts +66 -0
- package/lib/model/create-management-appliance-details.js +69 -0
- package/lib/model/create-management-appliance-details.js.map +1 -0
- package/lib/model/esxi-host.d.ts +5 -0
- package/lib/model/esxi-host.js.map +1 -1
- package/lib/model/index.d.ts +26 -0
- package/lib/model/index.js +28 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/management-appliance-collection.d.ts +28 -0
- package/lib/model/management-appliance-collection.js +63 -0
- package/lib/model/management-appliance-collection.js.map +1 -0
- package/lib/model/management-appliance-configuration.d.ts +40 -0
- package/lib/model/management-appliance-configuration.js +31 -0
- package/lib/model/management-appliance-configuration.js.map +1 -0
- package/lib/model/management-appliance-connection-state.d.ts +31 -0
- package/lib/model/management-appliance-connection-state.js +42 -0
- package/lib/model/management-appliance-connection-state.js.map +1 -0
- package/lib/model/management-appliance-connection-status.d.ts +36 -0
- package/lib/model/management-appliance-connection-status.js +31 -0
- package/lib/model/management-appliance-connection-status.js.map +1 -0
- package/lib/model/management-appliance-connection-type.d.ts +31 -0
- package/lib/model/management-appliance-connection-type.js +42 -0
- package/lib/model/management-appliance-connection-type.js.map +1 -0
- package/lib/model/management-appliance-connection.d.ts +33 -0
- package/lib/model/management-appliance-connection.js +31 -0
- package/lib/model/management-appliance-connection.js.map +1 -0
- package/lib/model/management-appliance-heartbeat-connection-type.d.ts +32 -0
- package/lib/model/management-appliance-heartbeat-connection-type.js +43 -0
- package/lib/model/management-appliance-heartbeat-connection-type.js.map +1 -0
- package/lib/model/management-appliance-lifecycle-details.d.ts +39 -0
- package/lib/model/management-appliance-lifecycle-details.js +50 -0
- package/lib/model/management-appliance-lifecycle-details.js.map +1 -0
- package/lib/model/management-appliance-lifecycle-state.d.ts +35 -0
- package/lib/model/management-appliance-lifecycle-state.js +46 -0
- package/lib/model/management-appliance-lifecycle-state.js.map +1 -0
- package/lib/model/management-appliance-summary.d.ts +118 -0
- package/lib/model/management-appliance-summary.js +79 -0
- package/lib/model/management-appliance-summary.js.map +1 -0
- package/lib/model/management-appliance.d.ts +118 -0
- package/lib/model/management-appliance.js +79 -0
- package/lib/model/management-appliance.js.map +1 -0
- package/lib/model/update-management-appliance-details.d.ts +55 -0
- package/lib/model/update-management-appliance-details.js +69 -0
- package/lib/model/update-management-appliance-details.js.map +1 -0
- package/lib/request/create-management-appliance-request.d.ts +38 -0
- package/lib/request/create-management-appliance-request.js +15 -0
- package/lib/request/create-management-appliance-request.js.map +1 -0
- package/lib/request/delete-management-appliance-request.d.ts +37 -0
- package/lib/request/delete-management-appliance-request.js +15 -0
- package/lib/request/delete-management-appliance-request.js.map +1 -0
- package/lib/request/get-management-appliance-request.d.ts +28 -0
- package/lib/request/get-management-appliance-request.js +15 -0
- package/lib/request/get-management-appliance-request.js.map +1 -0
- package/lib/request/index.d.ts +10 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-management-appliances-request.d.ts +79 -0
- package/lib/request/list-management-appliances-request.js +24 -0
- package/lib/request/list-management-appliances-request.js.map +1 -0
- package/lib/request/update-management-appliance-request.d.ts +42 -0
- package/lib/request/update-management-appliance-request.js +15 -0
- package/lib/request/update-management-appliance-request.js.map +1 -0
- package/lib/response/create-management-appliance-response.d.ts +25 -0
- package/lib/response/create-management-appliance-response.js +15 -0
- package/lib/response/create-management-appliance-response.js.map +1 -0
- package/lib/response/delete-management-appliance-response.d.ts +25 -0
- package/lib/response/delete-management-appliance-response.js +15 -0
- package/lib/response/delete-management-appliance-response.js.map +1 -0
- package/lib/response/get-management-appliance-response.d.ts +30 -0
- package/lib/response/get-management-appliance-response.js +15 -0
- package/lib/response/get-management-appliance-response.js.map +1 -0
- package/lib/response/index.d.ts +10 -0
- package/lib/response/list-management-appliances-response.d.ts +32 -0
- package/lib/response/list-management-appliances-response.js +15 -0
- package/lib/response/list-management-appliances-response.js.map +1 -0
- package/lib/response/update-management-appliance-response.d.ts +25 -0
- package/lib/response/update-management-appliance-response.js +15 -0
- package/lib/response/update-management-appliance-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -42,13 +42,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SddcClient = exports.SddcApiKeys = exports.EsxiHostClient = exports.EsxiHostApiKeys = exports.DatastoreClusterClient = exports.DatastoreClusterApiKeys = exports.DatastoreClient = exports.DatastoreApiKeys = exports.ClusterClient = exports.ClusterApiKeys = void 0;
|
|
45
|
+
exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SddcClient = exports.SddcApiKeys = exports.ManagementApplianceClient = exports.ManagementApplianceApiKeys = exports.EsxiHostClient = exports.EsxiHostApiKeys = exports.DatastoreClusterClient = exports.DatastoreClusterApiKeys = exports.DatastoreClient = exports.DatastoreApiKeys = exports.ClusterClient = exports.ClusterApiKeys = void 0;
|
|
46
46
|
const common = require("oci-common");
|
|
47
47
|
const model = __importStar(require("./model"));
|
|
48
48
|
const cluster_waiter_1 = require("./cluster-waiter");
|
|
49
49
|
const datastore_waiter_1 = require("./datastore-waiter");
|
|
50
50
|
const datastorecluster_waiter_1 = require("./datastorecluster-waiter");
|
|
51
51
|
const esxihost_waiter_1 = require("./esxihost-waiter");
|
|
52
|
+
const managementappliance_waiter_1 = require("./managementappliance-waiter");
|
|
52
53
|
const sddc_waiter_1 = require("./sddc-waiter");
|
|
53
54
|
const workrequest_waiter_1 = require("./workrequest-waiter");
|
|
54
55
|
const oci_common_1 = require("oci-common");
|
|
@@ -2803,6 +2804,481 @@ class EsxiHostClient {
|
|
|
2803
2804
|
exports.EsxiHostClient = EsxiHostClient;
|
|
2804
2805
|
EsxiHostClient.serviceEndpointTemplate = "https://ocvps.{region}.oci.{secondLevelDomain}";
|
|
2805
2806
|
EsxiHostClient.endpointServiceName = "";
|
|
2807
|
+
var ManagementApplianceApiKeys;
|
|
2808
|
+
(function (ManagementApplianceApiKeys) {
|
|
2809
|
+
})(ManagementApplianceApiKeys = exports.ManagementApplianceApiKeys || (exports.ManagementApplianceApiKeys = {}));
|
|
2810
|
+
/**
|
|
2811
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2812
|
+
*/
|
|
2813
|
+
class ManagementApplianceClient {
|
|
2814
|
+
constructor(params, clientConfiguration) {
|
|
2815
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2816
|
+
this["_endpoint"] = "";
|
|
2817
|
+
this["_defaultHeaders"] = {};
|
|
2818
|
+
this._circuitBreaker = null;
|
|
2819
|
+
this._httpOptions = undefined;
|
|
2820
|
+
this._bodyDuplexMode = undefined;
|
|
2821
|
+
this.targetService = "ManagementAppliance";
|
|
2822
|
+
this._regionId = "";
|
|
2823
|
+
this._lastSetRegionOrRegionId = "";
|
|
2824
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
2825
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2826
|
+
: null;
|
|
2827
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
2828
|
+
if (clientConfiguration) {
|
|
2829
|
+
this._clientConfiguration = clientConfiguration;
|
|
2830
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2831
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
2832
|
+
: null;
|
|
2833
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2834
|
+
? clientConfiguration.httpOptions
|
|
2835
|
+
: undefined;
|
|
2836
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
2837
|
+
? clientConfiguration.bodyDuplexMode
|
|
2838
|
+
: undefined;
|
|
2839
|
+
}
|
|
2840
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("ocvp")) {
|
|
2841
|
+
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 : ";
|
|
2842
|
+
throw errmsg.concat("ocvp");
|
|
2843
|
+
}
|
|
2844
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2845
|
+
const specCircuitBreakerEnabled = true;
|
|
2846
|
+
if (!this._circuitBreaker &&
|
|
2847
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2848
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2849
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2850
|
+
}
|
|
2851
|
+
this._httpClient =
|
|
2852
|
+
params.httpClient ||
|
|
2853
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
2854
|
+
if (params.authenticationDetailsProvider &&
|
|
2855
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2856
|
+
const provider = params.authenticationDetailsProvider;
|
|
2857
|
+
if (provider.getRegion()) {
|
|
2858
|
+
this.region = provider.getRegion();
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
2864
|
+
*/
|
|
2865
|
+
get endpoint() {
|
|
2866
|
+
return this._endpoint;
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
2870
|
+
* @param endpoint The endpoint of the service.
|
|
2871
|
+
*/
|
|
2872
|
+
set endpoint(endpoint) {
|
|
2873
|
+
this._endpoint = endpoint;
|
|
2874
|
+
this._endpoint = this._endpoint + "/20230701";
|
|
2875
|
+
if (this.logger)
|
|
2876
|
+
this.logger.info(`ManagementApplianceClient endpoint set to ${this._endpoint}`);
|
|
2877
|
+
}
|
|
2878
|
+
get logger() {
|
|
2879
|
+
return common.LOG.logger;
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
2883
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
2884
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
2885
|
+
*/
|
|
2886
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2887
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2888
|
+
if (this.logger)
|
|
2889
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2890
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2891
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ManagementApplianceClient.serviceEndpointTemplate, this._region, ManagementApplianceClient.endpointServiceName);
|
|
2892
|
+
}
|
|
2893
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
2894
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ManagementApplianceClient.serviceEndpointTemplate, this._regionId, ManagementApplianceClient.endpointServiceName);
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
/**
|
|
2898
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
2899
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
2900
|
+
* @param region The region of the service.
|
|
2901
|
+
*/
|
|
2902
|
+
set region(region) {
|
|
2903
|
+
this._region = region;
|
|
2904
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ManagementApplianceClient.serviceEndpointTemplate, region, ManagementApplianceClient.endpointServiceName);
|
|
2905
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
2906
|
+
}
|
|
2907
|
+
/**
|
|
2908
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
2909
|
+
*
|
|
2910
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
2911
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
2912
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
2913
|
+
* @param regionId The public region ID.
|
|
2914
|
+
*/
|
|
2915
|
+
set regionId(regionId) {
|
|
2916
|
+
this._regionId = regionId;
|
|
2917
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ManagementApplianceClient.serviceEndpointTemplate, regionId, ManagementApplianceClient.endpointServiceName);
|
|
2918
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
2919
|
+
}
|
|
2920
|
+
/**
|
|
2921
|
+
* Creates a new ManagementApplianceWaiter for resources for this service.
|
|
2922
|
+
*
|
|
2923
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
2924
|
+
* @return The service waiters.
|
|
2925
|
+
*/
|
|
2926
|
+
createWaiters(config) {
|
|
2927
|
+
this._waiters = new managementappliance_waiter_1.ManagementApplianceWaiter(this, config);
|
|
2928
|
+
return this._waiters;
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* Gets the waiters available for resources for this service.
|
|
2932
|
+
*
|
|
2933
|
+
* @return The service waiters.
|
|
2934
|
+
*/
|
|
2935
|
+
getWaiters() {
|
|
2936
|
+
if (this._waiters) {
|
|
2937
|
+
return this._waiters;
|
|
2938
|
+
}
|
|
2939
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
2940
|
+
}
|
|
2941
|
+
/**
|
|
2942
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
2943
|
+
*/
|
|
2944
|
+
shutdownCircuitBreaker() {
|
|
2945
|
+
if (this._circuitBreaker) {
|
|
2946
|
+
this._circuitBreaker.shutdown();
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
/**
|
|
2950
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
2951
|
+
*/
|
|
2952
|
+
closeProvider() {
|
|
2953
|
+
if (this._authProvider) {
|
|
2954
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
2955
|
+
(this._authProvider).closeProvider();
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
* Close the client once it is no longer needed
|
|
2960
|
+
*/
|
|
2961
|
+
close() {
|
|
2962
|
+
this.shutdownCircuitBreaker();
|
|
2963
|
+
this.closeProvider();
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Creates a management appliance.
|
|
2967
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2968
|
+
* @param CreateManagementApplianceRequest
|
|
2969
|
+
* @return CreateManagementApplianceResponse
|
|
2970
|
+
* @throws OciError when an error occurs
|
|
2971
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/CreateManagementAppliance.ts.html |here} to see how to use CreateManagementAppliance API.
|
|
2972
|
+
*/
|
|
2973
|
+
createManagementAppliance(createManagementApplianceRequest) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
if (this.logger)
|
|
2976
|
+
this.logger.debug("Calling operation ManagementApplianceClient#createManagementAppliance.");
|
|
2977
|
+
const operationName = "createManagementAppliance";
|
|
2978
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ManagementAppliance/CreateManagementAppliance";
|
|
2979
|
+
const pathParams = {};
|
|
2980
|
+
const queryParams = {};
|
|
2981
|
+
let headerParams = {
|
|
2982
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2983
|
+
"opc-retry-token": createManagementApplianceRequest.opcRetryToken,
|
|
2984
|
+
"opc-request-id": createManagementApplianceRequest.opcRequestId
|
|
2985
|
+
};
|
|
2986
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2987
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createManagementApplianceRequest.retryConfiguration, specRetryConfiguration);
|
|
2988
|
+
if (this.logger)
|
|
2989
|
+
retrier.logger = this.logger;
|
|
2990
|
+
const request = yield oci_common_1.composeRequest({
|
|
2991
|
+
baseEndpoint: this._endpoint,
|
|
2992
|
+
defaultHeaders: this._defaultHeaders,
|
|
2993
|
+
path: "/managementAppliances",
|
|
2994
|
+
method: "POST",
|
|
2995
|
+
bodyContent: common.ObjectSerializer.serialize(createManagementApplianceRequest.createManagementApplianceDetails, "CreateManagementApplianceDetails", model.CreateManagementApplianceDetails.getJsonObj),
|
|
2996
|
+
pathParams: pathParams,
|
|
2997
|
+
headerParams: headerParams,
|
|
2998
|
+
queryParams: queryParams
|
|
2999
|
+
});
|
|
3000
|
+
try {
|
|
3001
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3002
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3003
|
+
responseObject: {},
|
|
3004
|
+
responseHeaders: [
|
|
3005
|
+
{
|
|
3006
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3007
|
+
key: "opcWorkRequestId",
|
|
3008
|
+
dataType: "string"
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
value: response.headers.get("opc-request-id"),
|
|
3012
|
+
key: "opcRequestId",
|
|
3013
|
+
dataType: "string"
|
|
3014
|
+
}
|
|
3015
|
+
]
|
|
3016
|
+
});
|
|
3017
|
+
return sdkResponse;
|
|
3018
|
+
}
|
|
3019
|
+
catch (err) {
|
|
3020
|
+
throw err;
|
|
3021
|
+
}
|
|
3022
|
+
});
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
3025
|
+
* Deletes management appliance specified.
|
|
3026
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3027
|
+
* @param DeleteManagementApplianceRequest
|
|
3028
|
+
* @return DeleteManagementApplianceResponse
|
|
3029
|
+
* @throws OciError when an error occurs
|
|
3030
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/DeleteManagementAppliance.ts.html |here} to see how to use DeleteManagementAppliance API.
|
|
3031
|
+
*/
|
|
3032
|
+
deleteManagementAppliance(deleteManagementApplianceRequest) {
|
|
3033
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3034
|
+
if (this.logger)
|
|
3035
|
+
this.logger.debug("Calling operation ManagementApplianceClient#deleteManagementAppliance.");
|
|
3036
|
+
const operationName = "deleteManagementAppliance";
|
|
3037
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ManagementAppliance/DeleteManagementAppliance";
|
|
3038
|
+
const pathParams = {
|
|
3039
|
+
"{managementApplianceId}": deleteManagementApplianceRequest.managementApplianceId
|
|
3040
|
+
};
|
|
3041
|
+
const queryParams = {};
|
|
3042
|
+
let headerParams = {
|
|
3043
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3044
|
+
"if-match": deleteManagementApplianceRequest.ifMatch,
|
|
3045
|
+
"opc-request-id": deleteManagementApplianceRequest.opcRequestId
|
|
3046
|
+
};
|
|
3047
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3048
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteManagementApplianceRequest.retryConfiguration, specRetryConfiguration);
|
|
3049
|
+
if (this.logger)
|
|
3050
|
+
retrier.logger = this.logger;
|
|
3051
|
+
const request = yield oci_common_1.composeRequest({
|
|
3052
|
+
baseEndpoint: this._endpoint,
|
|
3053
|
+
defaultHeaders: this._defaultHeaders,
|
|
3054
|
+
path: "/managementAppliances/{managementApplianceId}",
|
|
3055
|
+
method: "DELETE",
|
|
3056
|
+
pathParams: pathParams,
|
|
3057
|
+
headerParams: headerParams,
|
|
3058
|
+
queryParams: queryParams
|
|
3059
|
+
});
|
|
3060
|
+
try {
|
|
3061
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3062
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3063
|
+
responseObject: {},
|
|
3064
|
+
responseHeaders: [
|
|
3065
|
+
{
|
|
3066
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3067
|
+
key: "opcWorkRequestId",
|
|
3068
|
+
dataType: "string"
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
value: response.headers.get("opc-request-id"),
|
|
3072
|
+
key: "opcRequestId",
|
|
3073
|
+
dataType: "string"
|
|
3074
|
+
}
|
|
3075
|
+
]
|
|
3076
|
+
});
|
|
3077
|
+
return sdkResponse;
|
|
3078
|
+
}
|
|
3079
|
+
catch (err) {
|
|
3080
|
+
throw err;
|
|
3081
|
+
}
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* Get the specified management appliance information.
|
|
3086
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3087
|
+
* @param GetManagementApplianceRequest
|
|
3088
|
+
* @return GetManagementApplianceResponse
|
|
3089
|
+
* @throws OciError when an error occurs
|
|
3090
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/GetManagementAppliance.ts.html |here} to see how to use GetManagementAppliance API.
|
|
3091
|
+
*/
|
|
3092
|
+
getManagementAppliance(getManagementApplianceRequest) {
|
|
3093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3094
|
+
if (this.logger)
|
|
3095
|
+
this.logger.debug("Calling operation ManagementApplianceClient#getManagementAppliance.");
|
|
3096
|
+
const operationName = "getManagementAppliance";
|
|
3097
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ManagementAppliance/GetManagementAppliance";
|
|
3098
|
+
const pathParams = {
|
|
3099
|
+
"{managementApplianceId}": getManagementApplianceRequest.managementApplianceId
|
|
3100
|
+
};
|
|
3101
|
+
const queryParams = {};
|
|
3102
|
+
let headerParams = {
|
|
3103
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3104
|
+
"opc-request-id": getManagementApplianceRequest.opcRequestId
|
|
3105
|
+
};
|
|
3106
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3107
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagementApplianceRequest.retryConfiguration, specRetryConfiguration);
|
|
3108
|
+
if (this.logger)
|
|
3109
|
+
retrier.logger = this.logger;
|
|
3110
|
+
const request = yield oci_common_1.composeRequest({
|
|
3111
|
+
baseEndpoint: this._endpoint,
|
|
3112
|
+
defaultHeaders: this._defaultHeaders,
|
|
3113
|
+
path: "/managementAppliances/{managementApplianceId}",
|
|
3114
|
+
method: "GET",
|
|
3115
|
+
pathParams: pathParams,
|
|
3116
|
+
headerParams: headerParams,
|
|
3117
|
+
queryParams: queryParams
|
|
3118
|
+
});
|
|
3119
|
+
try {
|
|
3120
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3121
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3122
|
+
responseObject: {},
|
|
3123
|
+
body: yield response.json(),
|
|
3124
|
+
bodyKey: "managementAppliance",
|
|
3125
|
+
bodyModel: model.ManagementAppliance,
|
|
3126
|
+
type: "model.ManagementAppliance",
|
|
3127
|
+
responseHeaders: [
|
|
3128
|
+
{
|
|
3129
|
+
value: response.headers.get("etag"),
|
|
3130
|
+
key: "etag",
|
|
3131
|
+
dataType: "string"
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
value: response.headers.get("opc-request-id"),
|
|
3135
|
+
key: "opcRequestId",
|
|
3136
|
+
dataType: "string"
|
|
3137
|
+
}
|
|
3138
|
+
]
|
|
3139
|
+
});
|
|
3140
|
+
return sdkResponse;
|
|
3141
|
+
}
|
|
3142
|
+
catch (err) {
|
|
3143
|
+
throw err;
|
|
3144
|
+
}
|
|
3145
|
+
});
|
|
3146
|
+
}
|
|
3147
|
+
/**
|
|
3148
|
+
* Lists management appliances in compartment specified. List can be filtered by management appliance, compartment, name and lifecycle state.
|
|
3149
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3150
|
+
* @param ListManagementAppliancesRequest
|
|
3151
|
+
* @return ListManagementAppliancesResponse
|
|
3152
|
+
* @throws OciError when an error occurs
|
|
3153
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/ListManagementAppliances.ts.html |here} to see how to use ListManagementAppliances API.
|
|
3154
|
+
*/
|
|
3155
|
+
listManagementAppliances(listManagementAppliancesRequest) {
|
|
3156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3157
|
+
if (this.logger)
|
|
3158
|
+
this.logger.debug("Calling operation ManagementApplianceClient#listManagementAppliances.");
|
|
3159
|
+
const operationName = "listManagementAppliances";
|
|
3160
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ManagementAppliance/ListManagementAppliances";
|
|
3161
|
+
const pathParams = {};
|
|
3162
|
+
const queryParams = {
|
|
3163
|
+
"managementApplianceId": listManagementAppliancesRequest.managementApplianceId,
|
|
3164
|
+
"compartmentId": listManagementAppliancesRequest.compartmentId,
|
|
3165
|
+
"displayName": listManagementAppliancesRequest.displayName,
|
|
3166
|
+
"lifecycleState": listManagementAppliancesRequest.lifecycleState,
|
|
3167
|
+
"limit": listManagementAppliancesRequest.limit,
|
|
3168
|
+
"page": listManagementAppliancesRequest.page,
|
|
3169
|
+
"sortOrder": listManagementAppliancesRequest.sortOrder,
|
|
3170
|
+
"sortBy": listManagementAppliancesRequest.sortBy
|
|
3171
|
+
};
|
|
3172
|
+
let headerParams = {
|
|
3173
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3174
|
+
"opc-request-id": listManagementAppliancesRequest.opcRequestId
|
|
3175
|
+
};
|
|
3176
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3177
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagementAppliancesRequest.retryConfiguration, specRetryConfiguration);
|
|
3178
|
+
if (this.logger)
|
|
3179
|
+
retrier.logger = this.logger;
|
|
3180
|
+
const request = yield oci_common_1.composeRequest({
|
|
3181
|
+
baseEndpoint: this._endpoint,
|
|
3182
|
+
defaultHeaders: this._defaultHeaders,
|
|
3183
|
+
path: "/managementAppliances",
|
|
3184
|
+
method: "GET",
|
|
3185
|
+
pathParams: pathParams,
|
|
3186
|
+
headerParams: headerParams,
|
|
3187
|
+
queryParams: queryParams
|
|
3188
|
+
});
|
|
3189
|
+
try {
|
|
3190
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3191
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3192
|
+
responseObject: {},
|
|
3193
|
+
body: yield response.json(),
|
|
3194
|
+
bodyKey: "managementApplianceCollection",
|
|
3195
|
+
bodyModel: model.ManagementApplianceCollection,
|
|
3196
|
+
type: "model.ManagementApplianceCollection",
|
|
3197
|
+
responseHeaders: [
|
|
3198
|
+
{
|
|
3199
|
+
value: response.headers.get("opc-request-id"),
|
|
3200
|
+
key: "opcRequestId",
|
|
3201
|
+
dataType: "string"
|
|
3202
|
+
},
|
|
3203
|
+
{
|
|
3204
|
+
value: response.headers.get("opc-next-page"),
|
|
3205
|
+
key: "opcNextPage",
|
|
3206
|
+
dataType: "string"
|
|
3207
|
+
}
|
|
3208
|
+
]
|
|
3209
|
+
});
|
|
3210
|
+
return sdkResponse;
|
|
3211
|
+
}
|
|
3212
|
+
catch (err) {
|
|
3213
|
+
throw err;
|
|
3214
|
+
}
|
|
3215
|
+
});
|
|
3216
|
+
}
|
|
3217
|
+
/**
|
|
3218
|
+
* Updates management appliance specified.
|
|
3219
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3220
|
+
* @param UpdateManagementApplianceRequest
|
|
3221
|
+
* @return UpdateManagementApplianceResponse
|
|
3222
|
+
* @throws OciError when an error occurs
|
|
3223
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ocvp/UpdateManagementAppliance.ts.html |here} to see how to use UpdateManagementAppliance API.
|
|
3224
|
+
*/
|
|
3225
|
+
updateManagementAppliance(updateManagementApplianceRequest) {
|
|
3226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3227
|
+
if (this.logger)
|
|
3228
|
+
this.logger.debug("Calling operation ManagementApplianceClient#updateManagementAppliance.");
|
|
3229
|
+
const operationName = "updateManagementAppliance";
|
|
3230
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ManagementAppliance/UpdateManagementAppliance";
|
|
3231
|
+
const pathParams = {
|
|
3232
|
+
"{managementApplianceId}": updateManagementApplianceRequest.managementApplianceId
|
|
3233
|
+
};
|
|
3234
|
+
const queryParams = {};
|
|
3235
|
+
let headerParams = {
|
|
3236
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3237
|
+
"if-match": updateManagementApplianceRequest.ifMatch,
|
|
3238
|
+
"opc-request-id": updateManagementApplianceRequest.opcRequestId
|
|
3239
|
+
};
|
|
3240
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3241
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateManagementApplianceRequest.retryConfiguration, specRetryConfiguration);
|
|
3242
|
+
if (this.logger)
|
|
3243
|
+
retrier.logger = this.logger;
|
|
3244
|
+
const request = yield oci_common_1.composeRequest({
|
|
3245
|
+
baseEndpoint: this._endpoint,
|
|
3246
|
+
defaultHeaders: this._defaultHeaders,
|
|
3247
|
+
path: "/managementAppliances/{managementApplianceId}",
|
|
3248
|
+
method: "PUT",
|
|
3249
|
+
bodyContent: common.ObjectSerializer.serialize(updateManagementApplianceRequest.updateManagementApplianceDetails, "UpdateManagementApplianceDetails", model.UpdateManagementApplianceDetails.getJsonObj),
|
|
3250
|
+
pathParams: pathParams,
|
|
3251
|
+
headerParams: headerParams,
|
|
3252
|
+
queryParams: queryParams
|
|
3253
|
+
});
|
|
3254
|
+
try {
|
|
3255
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3256
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3257
|
+
responseObject: {},
|
|
3258
|
+
responseHeaders: [
|
|
3259
|
+
{
|
|
3260
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3261
|
+
key: "opcWorkRequestId",
|
|
3262
|
+
dataType: "string"
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
value: response.headers.get("opc-request-id"),
|
|
3266
|
+
key: "opcRequestId",
|
|
3267
|
+
dataType: "string"
|
|
3268
|
+
}
|
|
3269
|
+
]
|
|
3270
|
+
});
|
|
3271
|
+
return sdkResponse;
|
|
3272
|
+
}
|
|
3273
|
+
catch (err) {
|
|
3274
|
+
throw err;
|
|
3275
|
+
}
|
|
3276
|
+
});
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
exports.ManagementApplianceClient = ManagementApplianceClient;
|
|
3280
|
+
ManagementApplianceClient.serviceEndpointTemplate = "https://ocvps.{region}.oci.{secondLevelDomain}";
|
|
3281
|
+
ManagementApplianceClient.endpointServiceName = "";
|
|
2806
3282
|
var SddcApiKeys;
|
|
2807
3283
|
(function (SddcApiKeys) {
|
|
2808
3284
|
})(SddcApiKeys = exports.SddcApiKeys || (exports.SddcApiKeys = {}));
|