Skip to content

Commit b7b576b

Browse files
Releasing version 2.58.1
Releasing version 2.58.1
2 parents 75f1b31 + 83a458c commit b7b576b

File tree

493 files changed

+15998
-1035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

493 files changed

+15998
-1035
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## 2.58.1 - 2023-04-25
7+
### Added
8+
- Support for enabling mTLS authentication with Listener and for providing custom value for TLS port and Non-TLS Port during AVM Cluster Creation in Database service
9+
- Support for usedDataStorageSizeInGbs property for autonomous database in the Database service
10+
- Support for csiNumber organization in Tenant Manager Control Plane service
11+
- Support for creating and updating an infrastructure with LACP support in Database service
12+
- Support for changePrivateEndpointOutboundConnection operation in Integration Cloud service
13+
- Support for Enable Process in Integration Cloud service
14+
- Support for Disaster Recovery, DR enablement, switchover, and failover feature in Fusion Apps service
15+
- Support for discovery and monitoring of External Exadata infrastructure in Database Management Service
16+
617
## 2.58.0 - 2023-04-18
718
### Added
819
- Support for private endpoints in the Digital Assistant service
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
3+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4+
5+
@param args Arguments to provide to the example. The following arguments are expected:
6+
* <ul>
7+
* <li>The first argument is the OCID of the compartment.</li>
8+
* <li>The second is the name of bucket to create and later fetch</li>
9+
* </ul>
10+
*/
11+
12+
const os = require("oci-objectstorage");
13+
const common = require("oci-common");
14+
15+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
16+
const args = process.argv.slice(2);
17+
console.log(args);
18+
if (args.length !== 2) {
19+
console.error(
20+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
21+
);
22+
process.exit(-1);
23+
}
24+
25+
const compartmentId = args[0];
26+
const bucket = args[1];
27+
28+
const client = new os.ObjectStorageClient({
29+
authenticationDetailsProvider: provider
30+
});
31+
32+
// Enable realm specific endpoint template for the Object Storage Client
33+
client.useRealmSpecificEndpointTemplate = true;
34+
35+
(async () => {
36+
try {
37+
console.log("Getting the namespace...");
38+
const request = {};
39+
const response = await client.getNamespace(request);
40+
const namespace = response.value;
41+
42+
console.log("Creating the source bucket.");
43+
const bucketDetails = {
44+
name: bucket,
45+
compartmentId: compartmentId
46+
};
47+
const createBucketRequest = {
48+
namespaceName: namespace,
49+
createBucketDetails: bucketDetails
50+
};
51+
const createBucketResponse = await client.createBucket(createBucketRequest);
52+
console.log("Create Bucket executed successfully" + createBucketResponse);
53+
54+
console.log("Bucket is created. Fetch the bucket.");
55+
const getBucketRequest = {
56+
namespaceName: namespace,
57+
bucketName: bucket
58+
};
59+
const getBucketResponse = await client.getBucket(getBucketRequest);
60+
console.log("Get bucket executed successfully." + getBucketResponse.bucket);
61+
} catch (error) {
62+
console.log("Error executing example " + error);
63+
}
64+
})();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
3+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4+
*/
5+
6+
/**
7+
* This script provides an example on how to enable realm specific endpoints for the service. This example uses
8+
* ObjectStorageClient as the example client
9+
* @param args Arguments to provide to the example. The following arguments are expected:
10+
* <ul>
11+
* <li>The first argument is the OCID of the compartment.</li>
12+
* <li>The second is the name of bucket to create and later fetch</li>
13+
* </ul>
14+
*/
15+
16+
import os = require("oci-objectstorage");
17+
import common = require("oci-common");
18+
19+
const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();
20+
const args = process.argv.slice(2);
21+
22+
if (args.length !== 2) {
23+
console.error(
24+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
25+
);
26+
process.exit(-1);
27+
}
28+
29+
const compartmentId: string = args[0];
30+
const bucket: string = args[1];
31+
32+
const client = new os.ObjectStorageClient({ authenticationDetailsProvider: provider });
33+
34+
// Enable realm specific endpoint template for the Object Storage Client
35+
client.useRealmSpecificEndpointTemplate = true;
36+
37+
(async () => {
38+
try {
39+
console.log("Getting the namespace...");
40+
const request: os.requests.GetNamespaceRequest = {};
41+
const response = await client.getNamespace(request);
42+
const namespace = response.value;
43+
44+
console.log("Creating the source bucket.");
45+
const bucketDetails: os.models.CreateBucketDetails = {
46+
name: bucket,
47+
compartmentId: compartmentId
48+
};
49+
const createBucketRequest: os.requests.CreateBucketRequest = {
50+
namespaceName: namespace,
51+
createBucketDetails: bucketDetails
52+
};
53+
const createBucketResponse = await client.createBucket(createBucketRequest);
54+
console.log("Create Bucket executed successfully" + createBucketResponse);
55+
56+
console.log("Bucket is created. Fetch the bucket.");
57+
const getBucketRequest: os.requests.GetBucketRequest = {
58+
namespaceName: namespace,
59+
bucketName: bucket
60+
};
61+
const getBucketResponse = await client.getBucket(getBucketRequest);
62+
console.log("Get bucket executed successfully." + getBucketResponse.bucket);
63+
} catch (error) {
64+
console.log("Error executing example " + error);
65+
}
66+
})();

lib/adm/lib/client.ts

+34
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ export enum ApplicationDependencyManagementApiKeys {}
2929
export class ApplicationDependencyManagementClient {
3030
protected static serviceEndpointTemplate = "https://adm.{region}.oci.{secondLevelDomain}";
3131
protected static endpointServiceName = "";
32+
protected "_realmSpecificEndpointTemplateEnabled": boolean = false;
3233
protected "_endpoint": string = "";
3334
protected "_defaultHeaders": any = {};
3435
protected "_waiters": ApplicationDependencyManagementWaiter;
3536
protected "_clientConfiguration": common.ClientConfiguration;
3637
protected _circuitBreaker = null;
3738
protected _httpOptions: any = undefined;
3839
public targetService = "ApplicationDependencyManagement";
40+
protected _regionId: string = "";
41+
protected "_region": common.Region;
42+
protected _lastSetRegionOrRegionId: string = "";
3943

4044
protected _httpClient: common.HttpClient;
4145

@@ -98,17 +102,45 @@ export class ApplicationDependencyManagementClient {
98102
return common.LOG.logger;
99103
}
100104

105+
/**
106+
* Determines whether realm specific endpoint should be used or not.
107+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
108+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
109+
*/
110+
public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) {
111+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
112+
if (this.logger)
113+
this.logger.info(
114+
`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`
115+
);
116+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
117+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
118+
ApplicationDependencyManagementClient.serviceEndpointTemplate,
119+
this._region,
120+
ApplicationDependencyManagementClient.endpointServiceName
121+
);
122+
} else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
123+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
124+
ApplicationDependencyManagementClient.serviceEndpointTemplate,
125+
this._regionId,
126+
ApplicationDependencyManagementClient.endpointServiceName
127+
);
128+
}
129+
}
130+
101131
/**
102132
* Sets the region to call (ex, Region.US_PHOENIX_1).
103133
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
104134
* @param region The region of the service.
105135
*/
106136
public set region(region: common.Region) {
137+
this._region = region;
107138
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
108139
ApplicationDependencyManagementClient.serviceEndpointTemplate,
109140
region,
110141
ApplicationDependencyManagementClient.endpointServiceName
111142
);
143+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
112144
}
113145

114146
/**
@@ -120,11 +152,13 @@ export class ApplicationDependencyManagementClient {
120152
* @param regionId The public region ID.
121153
*/
122154
public set regionId(regionId: string) {
155+
this._regionId = regionId;
123156
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
124157
ApplicationDependencyManagementClient.serviceEndpointTemplate,
125158
regionId,
126159
ApplicationDependencyManagementClient.endpointServiceName
127160
);
161+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
128162
}
129163

130164
/**

lib/adm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-adm",
3-
"version": "2.58.0",
3+
"version": "2.58.1",
44
"description": "OCI NodeJS client for Adm Service",
55
"repository": {
66
"type": "git",

lib/aianomalydetection/lib/client.ts

+34
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ export class AnomalyDetectionClient {
3333
protected static serviceEndpointTemplate =
3434
"https://anomalydetection.aiservice.{region}.oci.{secondLevelDomain}";
3535
protected static endpointServiceName = "";
36+
protected "_realmSpecificEndpointTemplateEnabled": boolean = false;
3637
protected "_endpoint": string = "";
3738
protected "_defaultHeaders": any = {};
3839
protected "_waiters": AnomalyDetectionWaiter;
3940
protected "_clientConfiguration": common.ClientConfiguration;
4041
protected _circuitBreaker = null;
4142
protected _httpOptions: any = undefined;
4243
public targetService = "AnomalyDetection";
44+
protected _regionId: string = "";
45+
protected "_region": common.Region;
46+
protected _lastSetRegionOrRegionId: string = "";
4347

4448
protected _httpClient: common.HttpClient;
4549

@@ -101,17 +105,45 @@ export class AnomalyDetectionClient {
101105
return common.LOG.logger;
102106
}
103107

108+
/**
109+
* Determines whether realm specific endpoint should be used or not.
110+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
111+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
112+
*/
113+
public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) {
114+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
115+
if (this.logger)
116+
this.logger.info(
117+
`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`
118+
);
119+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
120+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
121+
AnomalyDetectionClient.serviceEndpointTemplate,
122+
this._region,
123+
AnomalyDetectionClient.endpointServiceName
124+
);
125+
} else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
126+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
127+
AnomalyDetectionClient.serviceEndpointTemplate,
128+
this._regionId,
129+
AnomalyDetectionClient.endpointServiceName
130+
);
131+
}
132+
}
133+
104134
/**
105135
* Sets the region to call (ex, Region.US_PHOENIX_1).
106136
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
107137
* @param region The region of the service.
108138
*/
109139
public set region(region: common.Region) {
140+
this._region = region;
110141
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
111142
AnomalyDetectionClient.serviceEndpointTemplate,
112143
region,
113144
AnomalyDetectionClient.endpointServiceName
114145
);
146+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
115147
}
116148

117149
/**
@@ -123,11 +155,13 @@ export class AnomalyDetectionClient {
123155
* @param regionId The public region ID.
124156
*/
125157
public set regionId(regionId: string) {
158+
this._regionId = regionId;
126159
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
127160
AnomalyDetectionClient.serviceEndpointTemplate,
128161
regionId,
129162
AnomalyDetectionClient.endpointServiceName
130163
);
164+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
131165
}
132166

133167
/**

lib/aianomalydetection/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aianomalydetection",
3-
"version": "2.58.0",
3+
"version": "2.58.1",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/aidocument/lib/client.ts

+34
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ export class AIServiceDocumentClient {
3030
protected static serviceEndpointTemplate =
3131
"https://document.aiservice.{region}.oci.{secondLevelDomain}";
3232
protected static endpointServiceName = "";
33+
protected "_realmSpecificEndpointTemplateEnabled": boolean = false;
3334
protected "_endpoint": string = "";
3435
protected "_defaultHeaders": any = {};
3536
protected "_waiters": AIServiceDocumentWaiter;
3637
protected "_clientConfiguration": common.ClientConfiguration;
3738
protected _circuitBreaker = null;
3839
protected _httpOptions: any = undefined;
3940
public targetService = "AIServiceDocument";
41+
protected _regionId: string = "";
42+
protected "_region": common.Region;
43+
protected _lastSetRegionOrRegionId: string = "";
4044

4145
protected _httpClient: common.HttpClient;
4246

@@ -98,17 +102,45 @@ export class AIServiceDocumentClient {
98102
return common.LOG.logger;
99103
}
100104

105+
/**
106+
* Determines whether realm specific endpoint should be used or not.
107+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
108+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
109+
*/
110+
public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) {
111+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
112+
if (this.logger)
113+
this.logger.info(
114+
`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`
115+
);
116+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
117+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
118+
AIServiceDocumentClient.serviceEndpointTemplate,
119+
this._region,
120+
AIServiceDocumentClient.endpointServiceName
121+
);
122+
} else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
123+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
124+
AIServiceDocumentClient.serviceEndpointTemplate,
125+
this._regionId,
126+
AIServiceDocumentClient.endpointServiceName
127+
);
128+
}
129+
}
130+
101131
/**
102132
* Sets the region to call (ex, Region.US_PHOENIX_1).
103133
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
104134
* @param region The region of the service.
105135
*/
106136
public set region(region: common.Region) {
137+
this._region = region;
107138
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
108139
AIServiceDocumentClient.serviceEndpointTemplate,
109140
region,
110141
AIServiceDocumentClient.endpointServiceName
111142
);
143+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
112144
}
113145

114146
/**
@@ -120,11 +152,13 @@ export class AIServiceDocumentClient {
120152
* @param regionId The public region ID.
121153
*/
122154
public set regionId(regionId: string) {
155+
this._regionId = regionId;
123156
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(
124157
AIServiceDocumentClient.serviceEndpointTemplate,
125158
regionId,
126159
AIServiceDocumentClient.endpointServiceName
127160
);
161+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
128162
}
129163

130164
/**

0 commit comments

Comments
 (0)