oci-osuborganizationsubscription 2.57.0 → 2.59.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/lib/client.d.ts
CHANGED
|
@@ -23,12 +23,16 @@ export declare enum OrganizationSubscriptionApiKeys {
|
|
|
23
23
|
export declare class OrganizationSubscriptionClient {
|
|
24
24
|
protected static serviceEndpointTemplate: string;
|
|
25
25
|
protected static endpointServiceName: string;
|
|
26
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean;
|
|
26
27
|
protected "_endpoint": string;
|
|
27
28
|
protected "_defaultHeaders": any;
|
|
28
29
|
protected "_clientConfiguration": common.ClientConfiguration;
|
|
29
30
|
protected _circuitBreaker: null;
|
|
30
31
|
protected _httpOptions: any;
|
|
31
32
|
targetService: string;
|
|
33
|
+
protected _regionId: string;
|
|
34
|
+
protected "_region": common.Region;
|
|
35
|
+
protected _lastSetRegionOrRegionId: string;
|
|
32
36
|
protected _httpClient: common.HttpClient;
|
|
33
37
|
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
34
38
|
/**
|
|
@@ -41,6 +45,12 @@ export declare class OrganizationSubscriptionClient {
|
|
|
41
45
|
*/
|
|
42
46
|
set endpoint(endpoint: string);
|
|
43
47
|
get logger(): import("oci-common/lib/log").Logger;
|
|
48
|
+
/**
|
|
49
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
50
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
51
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
52
|
+
*/
|
|
53
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
44
54
|
/**
|
|
45
55
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
46
56
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
@@ -63,7 +73,7 @@ export declare class OrganizationSubscriptionClient {
|
|
|
63
73
|
* @param ListOrganizationSubscriptionsRequest
|
|
64
74
|
* @return ListOrganizationSubscriptionsResponse
|
|
65
75
|
* @throws OciError when an error occurs
|
|
66
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
76
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/osuborganizationsubscription/ListOrganizationSubscriptions.ts.html |here} to see how to use ListOrganizationSubscriptions API.
|
|
67
77
|
*/
|
|
68
78
|
listOrganizationSubscriptions(listOrganizationSubscriptionsRequest: requests.ListOrganizationSubscriptionsRequest): Promise<responses.ListOrganizationSubscriptionsResponse>;
|
|
69
79
|
/**
|
package/lib/client.js
CHANGED
|
@@ -57,11 +57,14 @@ var OrganizationSubscriptionApiKeys;
|
|
|
57
57
|
*/
|
|
58
58
|
class OrganizationSubscriptionClient {
|
|
59
59
|
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
60
61
|
this["_endpoint"] = "";
|
|
61
62
|
this["_defaultHeaders"] = {};
|
|
62
63
|
this._circuitBreaker = null;
|
|
63
64
|
this._httpOptions = undefined;
|
|
64
65
|
this.targetService = "OrganizationSubscription";
|
|
66
|
+
this._regionId = "";
|
|
67
|
+
this._lastSetRegionOrRegionId = "";
|
|
65
68
|
const requestSigner = params.authenticationDetailsProvider
|
|
66
69
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
67
70
|
: null;
|
|
@@ -111,13 +114,31 @@ class OrganizationSubscriptionClient {
|
|
|
111
114
|
get logger() {
|
|
112
115
|
return common.LOG.logger;
|
|
113
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
119
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
120
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
121
|
+
*/
|
|
122
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
123
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
124
|
+
if (this.logger)
|
|
125
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
126
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
127
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationSubscriptionClient.serviceEndpointTemplate, this._region, OrganizationSubscriptionClient.endpointServiceName);
|
|
128
|
+
}
|
|
129
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
130
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationSubscriptionClient.serviceEndpointTemplate, this._regionId, OrganizationSubscriptionClient.endpointServiceName);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
114
133
|
/**
|
|
115
134
|
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
116
135
|
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
117
136
|
* @param region The region of the service.
|
|
118
137
|
*/
|
|
119
138
|
set region(region) {
|
|
139
|
+
this._region = region;
|
|
120
140
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OrganizationSubscriptionClient.serviceEndpointTemplate, region, OrganizationSubscriptionClient.endpointServiceName);
|
|
141
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
121
142
|
}
|
|
122
143
|
/**
|
|
123
144
|
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
@@ -128,7 +149,9 @@ class OrganizationSubscriptionClient {
|
|
|
128
149
|
* @param regionId The public region ID.
|
|
129
150
|
*/
|
|
130
151
|
set regionId(regionId) {
|
|
152
|
+
this._regionId = regionId;
|
|
131
153
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OrganizationSubscriptionClient.serviceEndpointTemplate, regionId, OrganizationSubscriptionClient.endpointServiceName);
|
|
154
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
132
155
|
}
|
|
133
156
|
/**
|
|
134
157
|
* API that returns data for the list of subscription ids returned from Organizations API
|
|
@@ -137,7 +160,7 @@ class OrganizationSubscriptionClient {
|
|
|
137
160
|
* @param ListOrganizationSubscriptionsRequest
|
|
138
161
|
* @return ListOrganizationSubscriptionsResponse
|
|
139
162
|
* @throws OciError when an error occurs
|
|
140
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
163
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/osuborganizationsubscription/ListOrganizationSubscriptions.ts.html |here} to see how to use ListOrganizationSubscriptions API.
|
|
141
164
|
*/
|
|
142
165
|
listOrganizationSubscriptions(listOrganizationSubscriptionsRequest) {
|
|
143
166
|
return __awaiter(this, void 0, void 0, function* () {
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/osuborganizationsubscription/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,2CAAgE;AAChE,2CAA6E;AAE7E,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAElD,IAAY,+BAAkC;AAA9C,WAAY,+BAA+B;AAAE,CAAC,EAAlC,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAAG;AAC9C;;GAEG;AACH,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/osuborganizationsubscription/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;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CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IACI,6CAA6C,CAClD,OAAsD;QAEtD,OAAO,8BAAiB,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAAC,CAAC;IACpF,CAAC;;AA7QH,wEA8QC;AA7QkB,sDAAuB,GAAG,4BAA4B,CAAC;AACvD,kDAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/osuborganizationsubscription/ListOrganizationSubscriptions.ts.html |here} to see how to use ListOrganizationSubscriptionsRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface ListOrganizationSubscriptionsRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-osuborganizationsubscription",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.59.0",
|
|
4
4
|
"description": "OCI NodeJS client for Osub Organization Subscription Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.59.0",
|
|
19
|
+
"oci-workrequests": "2.59.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|