oci-redis 2.125.3 → 2.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +76 -0
- package/lib/client.js +210 -1
- package/lib/client.js.map +1 -1
- package/lib/model/engine-version.d.ts +29 -0
- package/lib/model/engine-version.js +29 -0
- package/lib/model/engine-version.js.map +1 -0
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +8 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/oci-cache-config-set.d.ts +1 -0
- package/lib/model/oci-cache-config-set.js +1 -0
- package/lib/model/oci-cache-config-set.js.map +1 -1
- package/lib/model/oci-cache-engine-option-summary.d.ts +26 -0
- package/lib/model/oci-cache-engine-option-summary.js +61 -0
- package/lib/model/oci-cache-engine-option-summary.js.map +1 -0
- package/lib/model/oci-cache-engine-options-collection.d.ts +26 -0
- package/lib/model/oci-cache-engine-options-collection.js +61 -0
- package/lib/model/oci-cache-engine-options-collection.js.map +1 -0
- package/lib/model/operation-type.d.ts +2 -0
- package/lib/model/operation-type.js +2 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/redis-cluster.d.ts +1 -0
- package/lib/model/redis-cluster.js +1 -0
- package/lib/model/redis-cluster.js.map +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-oci-cache-engine-options-request.d.ts +50 -0
- package/lib/request/list-oci-cache-engine-options-request.js +24 -0
- package/lib/request/list-oci-cache-engine-options-request.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/lib/response/list-oci-cache-engine-options-response.d.ts +32 -0
- package/lib/response/list-oci-cache-engine-options-response.js +15 -0
- package/lib/response/list-oci-cache-engine-options-response.js.map +1 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export import OciCacheConfigSetClient = client.OciCacheConfigSetClient;
|
|
|
25
25
|
export import OciCacheConfigSetWaiter = ocicacheconfigset_waiter.OciCacheConfigSetWaiter;
|
|
26
26
|
export import OciCacheDefaultConfigSetClient = client.OciCacheDefaultConfigSetClient;
|
|
27
27
|
export import OciCacheDefaultConfigSetWaiter = ocicachedefaultconfigset_waiter.OciCacheDefaultConfigSetWaiter;
|
|
28
|
+
export import OciCacheEngineOptionsClient = client.OciCacheEngineOptionsClient;
|
|
28
29
|
export import OciCacheUserClient = client.OciCacheUserClient;
|
|
29
30
|
export import OciCacheUserWaiter = ocicacheuser_waiter.OciCacheUserWaiter;
|
|
30
31
|
export import RedisClusterClient = client.RedisClusterClient;
|
package/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
return result;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.RedisIdentityClient = exports.RedisClusterWaiter = exports.RedisClusterClient = exports.OciCacheUserWaiter = exports.OciCacheUserClient = exports.OciCacheDefaultConfigSetWaiter = exports.OciCacheDefaultConfigSetClient = exports.OciCacheConfigSetWaiter = exports.OciCacheConfigSetClient = exports.responses = exports.requests = exports.models = void 0;
|
|
34
|
+
exports.RedisIdentityClient = exports.RedisClusterWaiter = exports.RedisClusterClient = exports.OciCacheUserWaiter = exports.OciCacheUserClient = exports.OciCacheEngineOptionsClient = exports.OciCacheDefaultConfigSetWaiter = exports.OciCacheDefaultConfigSetClient = exports.OciCacheConfigSetWaiter = exports.OciCacheConfigSetClient = exports.responses = exports.requests = exports.models = void 0;
|
|
35
35
|
const requests = __importStar(require("./lib/request"));
|
|
36
36
|
exports.requests = requests;
|
|
37
37
|
const models = __importStar(require("./lib/model"));
|
|
@@ -47,6 +47,7 @@ exports.OciCacheConfigSetClient = client.OciCacheConfigSetClient;
|
|
|
47
47
|
exports.OciCacheConfigSetWaiter = ocicacheconfigset_waiter.OciCacheConfigSetWaiter;
|
|
48
48
|
exports.OciCacheDefaultConfigSetClient = client.OciCacheDefaultConfigSetClient;
|
|
49
49
|
exports.OciCacheDefaultConfigSetWaiter = ocicachedefaultconfigset_waiter.OciCacheDefaultConfigSetWaiter;
|
|
50
|
+
exports.OciCacheEngineOptionsClient = client.OciCacheEngineOptionsClient;
|
|
50
51
|
exports.OciCacheUserClient = client.OciCacheUserClient;
|
|
51
52
|
exports.OciCacheUserWaiter = ocicacheuser_waiter.OciCacheUserWaiter;
|
|
52
53
|
exports.RedisClusterClient = client.RedisClusterClient;
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/redis/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAUjC,4BAAQ;AATjB,oDAAsC;AAQ7B,wBAAM;AAPf,0DAA4C;AASnC,8BAAS;AARlB,qDAAuC;AACvC,yFAA2E;AAC3E,uGAAyF;AACzF,+EAAiE;AACjE,+EAAiE;AAKnD,QAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACzD,QAAA,uBAAuB,GAAG,wBAAwB,CAAC,uBAAuB,CAAC;AAC3E,QAAA,8BAA8B,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACvE,QAAA,8BAA8B,GAAG,+BAA+B,CAAC,8BAA8B,CAAC;AAChG,QAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC/C,QAAA,kBAAkB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC5D,QAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC/C,QAAA,kBAAkB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC5D,QAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/redis/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAUjC,4BAAQ;AATjB,oDAAsC;AAQ7B,wBAAM;AAPf,0DAA4C;AASnC,8BAAS;AARlB,qDAAuC;AACvC,yFAA2E;AAC3E,uGAAyF;AACzF,+EAAiE;AACjE,+EAAiE;AAKnD,QAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACzD,QAAA,uBAAuB,GAAG,wBAAwB,CAAC,uBAAuB,CAAC;AAC3E,QAAA,8BAA8B,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACvE,QAAA,8BAA8B,GAAG,+BAA+B,CAAC,8BAA8B,CAAC;AAChG,QAAA,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC;AACjE,QAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC/C,QAAA,kBAAkB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC5D,QAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC/C,QAAA,kBAAkB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC5D,QAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC"}
|
package/lib/client.d.ts
CHANGED
|
@@ -263,6 +263,82 @@ export declare class OciCacheDefaultConfigSetClient {
|
|
|
263
263
|
*/
|
|
264
264
|
listOciCacheDefaultConfigSets(listOciCacheDefaultConfigSetsRequest: requests.ListOciCacheDefaultConfigSetsRequest): Promise<responses.ListOciCacheDefaultConfigSetsResponse>;
|
|
265
265
|
}
|
|
266
|
+
export declare enum OciCacheEngineOptionsApiKeys {
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
270
|
+
*/
|
|
271
|
+
export declare class OciCacheEngineOptionsClient {
|
|
272
|
+
protected static serviceEndpointTemplate: string;
|
|
273
|
+
protected static endpointServiceName: string;
|
|
274
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
275
|
+
protected "_endpoint": string;
|
|
276
|
+
protected "_defaultHeaders": any;
|
|
277
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
278
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
279
|
+
protected _httpOptions: any;
|
|
280
|
+
protected _bodyDuplexMode: any;
|
|
281
|
+
targetService: string;
|
|
282
|
+
protected _regionId: string;
|
|
283
|
+
protected "_region": common.Region;
|
|
284
|
+
protected _lastSetRegionOrRegionId: string;
|
|
285
|
+
protected _httpClient: common.HttpClient;
|
|
286
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
287
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
288
|
+
/**
|
|
289
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
290
|
+
*/
|
|
291
|
+
get endpoint(): string;
|
|
292
|
+
/**
|
|
293
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
294
|
+
* @param endpoint The endpoint of the service.
|
|
295
|
+
*/
|
|
296
|
+
set endpoint(endpoint: string);
|
|
297
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
298
|
+
/**
|
|
299
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
300
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
301
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
302
|
+
*/
|
|
303
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
304
|
+
/**
|
|
305
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
306
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
307
|
+
* @param region The region of the service.
|
|
308
|
+
*/
|
|
309
|
+
set region(region: common.Region);
|
|
310
|
+
/**
|
|
311
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
312
|
+
*
|
|
313
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
314
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
315
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
316
|
+
* @param regionId The public region ID.
|
|
317
|
+
*/
|
|
318
|
+
set regionId(regionId: string);
|
|
319
|
+
/**
|
|
320
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
321
|
+
*/
|
|
322
|
+
shutdownCircuitBreaker(): void;
|
|
323
|
+
/**
|
|
324
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
325
|
+
*/
|
|
326
|
+
closeProvider(): void;
|
|
327
|
+
/**
|
|
328
|
+
* Close the client once it is no longer needed
|
|
329
|
+
*/
|
|
330
|
+
close(): void;
|
|
331
|
+
/**
|
|
332
|
+
* Lists OCI Cache Engine options
|
|
333
|
+
*
|
|
334
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
335
|
+
* @param ListOciCacheEngineOptionsRequest
|
|
336
|
+
* @return ListOciCacheEngineOptionsResponse
|
|
337
|
+
* @throws OciError when an error occurs
|
|
338
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/redis/ListOciCacheEngineOptions.ts.html |here} to see how to use ListOciCacheEngineOptions API.
|
|
339
|
+
*/
|
|
340
|
+
listOciCacheEngineOptions(listOciCacheEngineOptionsRequest: requests.ListOciCacheEngineOptionsRequest): Promise<responses.ListOciCacheEngineOptionsResponse>;
|
|
341
|
+
}
|
|
266
342
|
export declare enum OciCacheUserApiKeys {
|
|
267
343
|
}
|
|
268
344
|
/**
|
package/lib/client.js
CHANGED
|
@@ -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.RedisIdentityClient = exports.RedisIdentityApiKeys = exports.RedisClusterClient = exports.RedisClusterApiKeys = exports.OciCacheUserClient = exports.OciCacheUserApiKeys = exports.OciCacheDefaultConfigSetClient = exports.OciCacheDefaultConfigSetApiKeys = exports.OciCacheConfigSetClient = exports.OciCacheConfigSetApiKeys = void 0;
|
|
43
|
+
exports.RedisIdentityClient = exports.RedisIdentityApiKeys = exports.RedisClusterClient = exports.RedisClusterApiKeys = exports.OciCacheUserClient = exports.OciCacheUserApiKeys = exports.OciCacheEngineOptionsClient = exports.OciCacheEngineOptionsApiKeys = exports.OciCacheDefaultConfigSetClient = exports.OciCacheDefaultConfigSetApiKeys = exports.OciCacheConfigSetClient = exports.OciCacheConfigSetApiKeys = void 0;
|
|
44
44
|
const common = require("oci-common");
|
|
45
45
|
const model = __importStar(require("./model"));
|
|
46
46
|
const oci_common_1 = require("oci-common");
|
|
@@ -969,6 +969,215 @@ class OciCacheDefaultConfigSetClient {
|
|
|
969
969
|
exports.OciCacheDefaultConfigSetClient = OciCacheDefaultConfigSetClient;
|
|
970
970
|
OciCacheDefaultConfigSetClient.serviceEndpointTemplate = "https://redis.{region}.oci.{secondLevelDomain}";
|
|
971
971
|
OciCacheDefaultConfigSetClient.endpointServiceName = "";
|
|
972
|
+
var OciCacheEngineOptionsApiKeys;
|
|
973
|
+
(function (OciCacheEngineOptionsApiKeys) {
|
|
974
|
+
})(OciCacheEngineOptionsApiKeys = exports.OciCacheEngineOptionsApiKeys || (exports.OciCacheEngineOptionsApiKeys = {}));
|
|
975
|
+
/**
|
|
976
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
977
|
+
*/
|
|
978
|
+
class OciCacheEngineOptionsClient {
|
|
979
|
+
constructor(params, clientConfiguration) {
|
|
980
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
981
|
+
this["_endpoint"] = "";
|
|
982
|
+
this["_defaultHeaders"] = {};
|
|
983
|
+
this._circuitBreaker = null;
|
|
984
|
+
this._httpOptions = undefined;
|
|
985
|
+
this._bodyDuplexMode = undefined;
|
|
986
|
+
this.targetService = "OciCacheEngineOptions";
|
|
987
|
+
this._regionId = "";
|
|
988
|
+
this._lastSetRegionOrRegionId = "";
|
|
989
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
990
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
991
|
+
: null;
|
|
992
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
993
|
+
if (clientConfiguration) {
|
|
994
|
+
this._clientConfiguration = clientConfiguration;
|
|
995
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
996
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
997
|
+
: null;
|
|
998
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
999
|
+
? clientConfiguration.httpOptions
|
|
1000
|
+
: undefined;
|
|
1001
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
1002
|
+
? clientConfiguration.bodyDuplexMode
|
|
1003
|
+
: undefined;
|
|
1004
|
+
}
|
|
1005
|
+
if (!oci_common_2.developerToolConfiguration.isServiceEnabled("redis")) {
|
|
1006
|
+
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 : ";
|
|
1007
|
+
throw errmsg.concat("redis");
|
|
1008
|
+
}
|
|
1009
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1010
|
+
const specCircuitBreakerEnabled = true;
|
|
1011
|
+
if (!this._circuitBreaker &&
|
|
1012
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1013
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1014
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1015
|
+
}
|
|
1016
|
+
this._httpClient =
|
|
1017
|
+
params.httpClient ||
|
|
1018
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
1019
|
+
if (params.authenticationDetailsProvider &&
|
|
1020
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1021
|
+
const provider = params.authenticationDetailsProvider;
|
|
1022
|
+
if (provider.getRegion()) {
|
|
1023
|
+
this.region = provider.getRegion();
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1029
|
+
*/
|
|
1030
|
+
get endpoint() {
|
|
1031
|
+
return this._endpoint;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1035
|
+
* @param endpoint The endpoint of the service.
|
|
1036
|
+
*/
|
|
1037
|
+
set endpoint(endpoint) {
|
|
1038
|
+
this._endpoint = endpoint;
|
|
1039
|
+
this._endpoint = this._endpoint + "/20220315";
|
|
1040
|
+
if (this.logger)
|
|
1041
|
+
this.logger.info(`OciCacheEngineOptionsClient endpoint set to ${this._endpoint}`);
|
|
1042
|
+
}
|
|
1043
|
+
get logger() {
|
|
1044
|
+
return common.LOG.logger;
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
1048
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
1049
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
1050
|
+
*/
|
|
1051
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1052
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1053
|
+
if (this.logger)
|
|
1054
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1055
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1056
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OciCacheEngineOptionsClient.serviceEndpointTemplate, this._region, OciCacheEngineOptionsClient.endpointServiceName);
|
|
1057
|
+
}
|
|
1058
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
1059
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OciCacheEngineOptionsClient.serviceEndpointTemplate, this._regionId, OciCacheEngineOptionsClient.endpointServiceName);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1064
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1065
|
+
* @param region The region of the service.
|
|
1066
|
+
*/
|
|
1067
|
+
set region(region) {
|
|
1068
|
+
this._region = region;
|
|
1069
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OciCacheEngineOptionsClient.serviceEndpointTemplate, region, OciCacheEngineOptionsClient.endpointServiceName);
|
|
1070
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1074
|
+
*
|
|
1075
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1076
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1077
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1078
|
+
* @param regionId The public region ID.
|
|
1079
|
+
*/
|
|
1080
|
+
set regionId(regionId) {
|
|
1081
|
+
this._regionId = regionId;
|
|
1082
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OciCacheEngineOptionsClient.serviceEndpointTemplate, regionId, OciCacheEngineOptionsClient.endpointServiceName);
|
|
1083
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
1087
|
+
*/
|
|
1088
|
+
shutdownCircuitBreaker() {
|
|
1089
|
+
if (this._circuitBreaker) {
|
|
1090
|
+
this._circuitBreaker.shutdown();
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
1095
|
+
*/
|
|
1096
|
+
closeProvider() {
|
|
1097
|
+
if (this._authProvider) {
|
|
1098
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
1099
|
+
(this._authProvider).closeProvider();
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Close the client once it is no longer needed
|
|
1104
|
+
*/
|
|
1105
|
+
close() {
|
|
1106
|
+
this.shutdownCircuitBreaker();
|
|
1107
|
+
this.closeProvider();
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Lists OCI Cache Engine options
|
|
1111
|
+
*
|
|
1112
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1113
|
+
* @param ListOciCacheEngineOptionsRequest
|
|
1114
|
+
* @return ListOciCacheEngineOptionsResponse
|
|
1115
|
+
* @throws OciError when an error occurs
|
|
1116
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/redis/ListOciCacheEngineOptions.ts.html |here} to see how to use ListOciCacheEngineOptions API.
|
|
1117
|
+
*/
|
|
1118
|
+
listOciCacheEngineOptions(listOciCacheEngineOptionsRequest) {
|
|
1119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1120
|
+
if (this.logger)
|
|
1121
|
+
this.logger.debug("Calling operation OciCacheEngineOptionsClient#listOciCacheEngineOptions.");
|
|
1122
|
+
const operationName = "listOciCacheEngineOptions";
|
|
1123
|
+
const apiReferenceLink = "";
|
|
1124
|
+
const pathParams = {};
|
|
1125
|
+
const queryParams = {
|
|
1126
|
+
"compartmentId": listOciCacheEngineOptionsRequest.compartmentId,
|
|
1127
|
+
"limit": listOciCacheEngineOptionsRequest.limit,
|
|
1128
|
+
"page": listOciCacheEngineOptionsRequest.page,
|
|
1129
|
+
"sortOrder": listOciCacheEngineOptionsRequest.sortOrder,
|
|
1130
|
+
"sortBy": listOciCacheEngineOptionsRequest.sortBy
|
|
1131
|
+
};
|
|
1132
|
+
let headerParams = {
|
|
1133
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1134
|
+
"opc-request-id": listOciCacheEngineOptionsRequest.opcRequestId
|
|
1135
|
+
};
|
|
1136
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1137
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOciCacheEngineOptionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1138
|
+
if (this.logger)
|
|
1139
|
+
retrier.logger = this.logger;
|
|
1140
|
+
const request = yield oci_common_2.composeRequest({
|
|
1141
|
+
baseEndpoint: this._endpoint,
|
|
1142
|
+
defaultHeaders: this._defaultHeaders,
|
|
1143
|
+
path: "/ociCacheEngineOptions",
|
|
1144
|
+
method: "GET",
|
|
1145
|
+
pathParams: pathParams,
|
|
1146
|
+
headerParams: headerParams,
|
|
1147
|
+
queryParams: queryParams
|
|
1148
|
+
});
|
|
1149
|
+
try {
|
|
1150
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1151
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1152
|
+
responseObject: {},
|
|
1153
|
+
body: yield response.json(),
|
|
1154
|
+
bodyKey: "ociCacheEngineOptionsCollection",
|
|
1155
|
+
bodyModel: model.OciCacheEngineOptionsCollection,
|
|
1156
|
+
type: "model.OciCacheEngineOptionsCollection",
|
|
1157
|
+
responseHeaders: [
|
|
1158
|
+
{
|
|
1159
|
+
value: response.headers.get("opc-request-id"),
|
|
1160
|
+
key: "opcRequestId",
|
|
1161
|
+
dataType: "string"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
value: response.headers.get("opc-next-page"),
|
|
1165
|
+
key: "opcNextPage",
|
|
1166
|
+
dataType: "string"
|
|
1167
|
+
}
|
|
1168
|
+
]
|
|
1169
|
+
});
|
|
1170
|
+
return sdkResponse;
|
|
1171
|
+
}
|
|
1172
|
+
catch (err) {
|
|
1173
|
+
throw err;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
exports.OciCacheEngineOptionsClient = OciCacheEngineOptionsClient;
|
|
1179
|
+
OciCacheEngineOptionsClient.serviceEndpointTemplate = "https://redis.{region}.oci.{secondLevelDomain}";
|
|
1180
|
+
OciCacheEngineOptionsClient.endpointServiceName = "";
|
|
972
1181
|
var OciCacheUserApiKeys;
|
|
973
1182
|
(function (OciCacheUserApiKeys) {
|
|
974
1183
|
})(OciCacheUserApiKeys = exports.OciCacheUserApiKeys || (exports.OciCacheUserApiKeys = {}));
|