Skip to content

Commit b129bce

Browse files
Releasing version 2.84.1
Releasing version 2.84.1
2 parents da53e95 + 2fee7bc commit b129bce

File tree

354 files changed

+2554
-160
lines changed

Some content is hidden

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

354 files changed

+2554
-160
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
6+
## 2.84.1 - 2024-04-09
7+
### Added
8+
- Support for calling Oracle Cloud Infrastructure services in the ap-dcc-gazipur-1 region
9+
- Support for the DNS-based backend health check in the Network Load Balancer service
10+
- Support for Fail Open in the Network Load Balancer service
11+
- Support for adding and updating Instant failover in the Network Load Balancer service
12+
- Support for adding and updating source type and resource category for resource types in the Stack Monitoring service
13+
- Support for searching resources based on resource category, source type, multiple compartments, multiple lifecycle states in the Stack Monitoring service
14+
- Support for filtering listed resources based on lifecycle status in the Stack Monitoring service
15+
- Support for creating tasks with new config parameters in the Stack Monitoring service
16+
- Support for Composite Resource Principal integration in the Data Flow service
17+
18+
619
## 2.84.0 - 2024-04-02
720
### Added
821
- Support for assigned private IP and single stack IPV6 feature for Network Load Balancer Service

examples/typescript/add-new-region.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ identityClient.region = newRegion;
2222
(async () => {
2323
const response = await listUsers(compartmentId);
2424
console.log("List User response " + response);
25+
identityClient.close();
2526
})();
2627

2728
async function listUsers(compartmentId: string): Promise<identity.responses.ListUsersResponse> {

examples/typescript/audit.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,7 @@ async function getAuditEvents(
9898
const auditEvents = await getAuditEvents(auditClient, compartments, startTime, endTime);
9999
console.log("auditEvent: ", auditEvents);
100100
}
101+
102+
identityClient.close();
103+
auditClient.close();
101104
})();

examples/typescript/circuit-breaker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ const compartmentId = provider.getTenantId();
5959
}
6060

6161
// Shut down circuit breakers used by clients if they are no longer needed
62-
identityClient.shutdownCircuitBreaker();
63-
auditClient.shutdownCircuitBreaker();
62+
identityClient.close();
63+
auditClient.close();
6464
})();

examples/typescript/conatinerengine-cluster.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ async function main() {
126126
} catch (error) {
127127
throw "Error Executing container engine example";
128128
}
129+
130+
containerEngineClient.close();
131+
vcnClient.close();
132+
identityClient.close();
133+
workRequestClient.close();
129134
}
130135

131136
async function getAvailabilityDomains(

examples/typescript/containerengine-node-pool.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ let nodePool: oke.models.NodePool;
180180
} catch (error) {
181181
throw "Error running Container Engine nodepool example";
182182
}
183+
184+
containerEngineClient.close();
185+
vcnClient.close();
186+
identityClient.close();
187+
workRequestClient.close();
183188
})();
184189

185190
async function getAvailabilityDomains(

examples/typescript/create-preauth-req.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ const client = new ObjectStorageClient({ authenticationDetailsProvider: provider
7373
} catch (ex) {
7474
console.error(`Failed due to ${ex}`);
7575
}
76+
77+
client.close();
7678
})();

examples/typescript/custom-retry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ async function getAvailabilityDomain(): Promise<identity.models.AvailabilityDoma
5151
} finally {
5252
console.debug("DONE");
5353
}
54+
55+
identityClient.close();
5456
})();

examples/typescript/data-labeling.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,7 @@ async function listAnnotation(id: string) {
237237
await deleteDataset();
238238
}
239239
console.debug("DONE");
240+
241+
dlsCPClient.close();
242+
dlsDPClient.close();
240243
})();

examples/typescript/database.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,10 @@ async function terminateDbSystem() {
230230
await deleteVcn();
231231

232232
console.debug("DONE");
233+
234+
virtualNetworkClient.close();
235+
workRequestClient.close();
236+
identityClient.close();
237+
databaseClient.close();
233238
}
234239
})();

examples/typescript/delete.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ const client = new ObjectStorageClient({ authenticationDetailsProvider: provider
4949
} catch (ex) {
5050
console.error(`Failed due to ${ex}`);
5151
}
52+
53+
client.close();
5254
})();

examples/typescript/email.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,7 @@ async function deleteSmtpCredential(
249249

250250
// Delete SMTP credential
251251
await deleteSmtpCredential(smtpCredential);
252+
253+
emailClient.close();
254+
identityClient.close();
252255
})();

examples/typescript/filestorage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ let exportModel: fs.models.Export;
159159
} catch (error) {
160160
throw " Not able to execut File Storage example. Error:" + error;
161161
}
162+
163+
fsClient.close();
164+
vcnClient.close();
165+
identityClient.close();
166+
workRequestClient.close();
162167
})();
163168

164169
/**

examples/typescript/generate-text.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ import common = require("oci-common");
8282
} catch (e) {
8383
console.log(e);
8484
}
85+
86+
client.close();
8587
})();

examples/typescript/identity.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ const tenancy = provider.getTenantId();
9090
};
9191
await identityClient.deleteGroup(deleteGroupReq);
9292
console.log("Finished cleaning all resources");
93+
94+
identityClient.close();
9395
})();

examples/typescript/identitydomains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,7 @@ const provider: common.ConfigFileAuthenticationDetailsProvider = new common.Conf
216216
await identityDomainsClient.deleteDynamicResourceGroup(deleteDynamicResourceGroupsIdRequest);
217217
console.log(`Deleted dynamic group: ${createdDynamicGroup.displayName}`);
218218

219+
identityDomainsClient.close();
220+
219221
//#endregion Manage Dynamic groups
220222
})();

examples/typescript/instance-principal.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ import common = require("oci-common");
1616

1717
(async () => {
1818
const authenticationProvider = await new common.InstancePrincipalsAuthenticationDetailsProviderBuilder().build();
19+
const identityClient = new identity.IdentityClient({
20+
authenticationDetailsProvider: authenticationProvider
21+
});
22+
1923
try {
20-
const identityClient = new identity.IdentityClient({
21-
authenticationDetailsProvider: authenticationProvider
22-
});
2324
const regions = await identityClient.listRegions({});
2425
console.log("Regions: ", JSON.stringify(regions));
2526
} catch (e) {
2627
throw Error(`Failed with error: ${e}`);
2728
}
29+
30+
identityClient.close();
2831
})();

examples/typescript/invoke-function.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ const fnInvokeClient: fn.FunctionsInvokeClient = new fn.FunctionsInvokeClient({
104104
} catch (error) {
105105
console.log("Not able to run Invoke function example . Error" + error);
106106
}
107+
108+
identityClient.close();
109+
fnManagementClient.close();
110+
vcnClient.close();
111+
fnInvokeClient.close();
107112
})();
108113

109114
/**

examples/typescript/keymanagement.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ const kmsCryptoClient = new kms.KmsCryptoClient({ authenticationDetailsProvider:
127127
} catch (error) {
128128
console.log("Error Running KMS example");
129129
}
130+
131+
kmsVaultClient.close();
132+
kmsManagementClient.close();
133+
kmsCryptoClient.close();
130134
})();
131135

132136
async function createVaultTest(

examples/typescript/launch_instance.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,9 @@ async function terminateInstance() {
272272

273273
console.debug("DONE");
274274
}
275+
276+
computeClient.close();
277+
workRequestClient.close();
278+
virtualNetworkClient.close();
279+
identityClient.close();
275280
})();

examples/typescript/loadbalancer-ruleset.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ console.log("Creating new rule set " + ruleSetName + "...");
5656
} catch (error) {
5757
console.log(" Not able to run Loadbalancer Example " + error);
5858
}
59+
lbClient.close();
5960
})();
6061

6162
async function createRuleSetDetails(

examples/typescript/logging.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ const provider = new oci.common.ConfigFileAuthenticationDetailsProvider();
2727
for (let i = 0; i < regions.items.length; i++) {
2828
console.log(`Region fetched ${regions.items[i].regionName}`);
2929
}
30+
31+
identityClient.close();
3032
})();

examples/typescript/monitoring-alarm.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,6 @@ let alarmId: any;
146146
} catch (error) {
147147
console.log(" Not able to run monitoring alarm example. Error: " + error);
148148
}
149+
150+
monitoringClient.close();
149151
})();

examples/typescript/monitoring-post-metric.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ monitoringClient.endpoint = "https://telemetry-ingestion.us-phoenix-1.oracleclou
8585
} catch (error) {
8686
console.log(" Not able to run post metric monitoring example. Error: " + error);
8787
}
88+
89+
monitoringClient.close();
8890
})();

examples/typescript/move-compartment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@ const compartmentId = provider.getTenantId();
6060
const moveCompartmentResponse = await identityClient.moveCompartment(moveCompartmentRequest);
6161

6262
console.log("Compartment moved successfully");
63+
64+
identityClient.close();
6365
})();

examples/typescript/objectstorage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ const client = new os.ObjectStorageClient({ authenticationDetailsProvider: provi
114114
} catch (error) {
115115
console.log("Error executing example " + error);
116116
}
117+
118+
client.close();
117119
})();
118120

119121
function compareStreams(stream1: any, stream2: any): boolean {

examples/typescript/oke-workload-identity-authentication-details-provider-example.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ var common = require("oci-common");
1717
const identityClient = new identity.IdentityClient({
1818
authenticationDetailsProvider: authProvider
1919
});
20+
21+
identityClient.close();
2022
})();

examples/typescript/pagination.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ const compartmentId = provider.getTenantId();
137137
});
138138
}
139139
console.log("Total Results: ", rawResponse);
140+
141+
identityClient.close();
140142
})();

examples/typescript/rename.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ const client = new ObjectStorageClient({ authenticationDetailsProvider: provider
5757
`The object '${sourceName}' may not exist in bucket '${bucketName}' with namespace '${namespaceName}'`
5858
);
5959
}
60+
61+
client.close();
6062
})();

examples/typescript/resource-principal.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ import common = require("oci-common");
88

99
(async () => {
1010
const authenticationProvider = await common.ResourcePrincipalAuthenticationDetailsProvider.builder();
11+
const identityClient = new identity.IdentityClient({
12+
authenticationDetailsProvider: authenticationProvider
13+
});
14+
1115
try {
12-
const identityClient = new identity.IdentityClient({
13-
authenticationDetailsProvider: authenticationProvider
14-
});
1516
const regions = await identityClient.listRegions({});
1617
console.log("Regions: ", JSON.stringify(regions));
1718
} catch (e) {
1819
throw Error(`Failed with error: ${e}`);
1920
}
21+
22+
identityClient.close();
2023
})();

examples/typescript/resourceresearch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,6 @@ async function usersByFreeformTagAndValue(tag: string, value: string) {
176176

177177
await userByFreeformTag("<your_tag_here>");
178178
await usersByFreeformTagAndValue("<your_tag_here>", "<your_value_here>");
179+
180+
searchClient.close();
179181
})();

examples/typescript/session-auth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import common = require("oci-common");
77
import * as identity from "oci-identity";
88

99
(async () => {
10+
const identityClient = new identity.IdentityClient({ authenticationDetailsProvider: provider });
11+
1012
try {
1113
const provider: common.SessionAuthDetailProvider = new common.SessionAuthDetailProvider(
1214
undefined,
1315
"profile_name_here"
1416
);
1517
const compartmentId = provider.getTenantId();
16-
const identityClient = new identity.IdentityClient({ authenticationDetailsProvider: provider });
17-
1818
const listUserReq = { compartmentId: compartmentId };
1919
let users = await identityClient.listUsers(listUserReq);
2020

@@ -25,4 +25,6 @@ import * as identity from "oci-identity";
2525
} catch (e) {
2626
console.log("error: ", e);
2727
}
28+
29+
identityClient.close();
2830
})();

examples/typescript/simple-authentication.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ const provider = new common.SimpleAuthenticationDetailsProvider(
4242
} catch (err) {
4343
console.log(err);
4444
}
45+
46+
client.close();
4547
})();

examples/typescript/streaming.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ const waiters = adminClient.createWaiters();
8787
// Stream deletion is an asynchronous operation, give it some time to complete.
8888
const getStreamRequest: st.requests.GetStreamRequest = { streamId: streamId };
8989
await waiters.forStream(getStreamRequest, st.models.Stream.LifecycleState.Deleted);
90+
91+
adminClient.close();
92+
client.close();
9093
})();
9194

9295
async function getOrCreateStream(

examples/typescript/tagging.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,5 @@ const provider: common.ConfigFileAuthenticationDetailsProvider = new common.Conf
200200
updateTagNamespaceDetails: updateTagNamespaceDetails
201201
};
202202
identityClient.updateTagNamespace(updateTagNameSpaceReq);
203+
identityClient.close();
203204
})();

examples/typescript/uploadmanager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ const uploadManager = new UploadManager(client, { enforceMD5: true });
7474
}
7575
});
7676
});
77+
78+
client.close();
7779
})();

examples/typescript/use-plugin-httpstack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ const listUsersRequest: identity.requests.ListUsersRequest = {
5151
} catch (err) {
5252
console.log(err);
5353
}
54+
55+
identityClient.close();
5456
})();

examples/typescript/use-realm-specific-endpoint.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ client.useRealmSpecificEndpointTemplate = true;
6363
} catch (error) {
6464
console.log("Error executing example " + error);
6565
}
66+
67+
client.close();
6668
})();

lib/accessgovernancecp/lib/client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,13 @@ export class AccessGovernanceCPClient {
215215
}
216216
}
217217

218+
/**
219+
* Close the client once it is no longer needed
220+
*/
221+
public close() {
222+
this.shutdownCircuitBreaker();
223+
}
224+
218225
/**
219226
* Moves a GovernanceInstance resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
220227
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.

lib/accessgovernancecp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-accessgovernancecp",
3-
"version": "2.84.0",
3+
"version": "2.84.1",
44
"description": "OCI NodeJS client for Access Governance Cp Service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)