Skip to content

Commit 3fa3458

Browse files
authored
Releasing version 2.7.0
Releasing version 2.7.0
2 parents 2f98cc0 + 1e043fd commit 3fa3458

File tree

134 files changed

+568
-115
lines changed

Some content is hidden

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

134 files changed

+568
-115
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions

examples/javascript/identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const tenancyId = {
1313
};
1414

1515
(async () => {
16-
const identityClient = await new identity.IdentityClient({
16+
const identityClient = new identity.IdentityClient({
1717
authenticationDetailsProvider: provider
1818
});
1919
const regions = await identityClient.listRegionSubscriptions(tenancyId);

examples/javascript/instance-principal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const common = require("oci-common");
1717
(async () => {
1818
const authenticationProvider = await new common.InstancePrincipalsAuthenticationDetailsProviderBuilder().build();
1919
try {
20-
const identityClient = await new identity.IdentityClient({
20+
const identityClient = new identity.IdentityClient({
2121
authenticationDetailsProvider: authenticationProvider
2222
});
2323
const regions = await identityClient.listRegions({});

examples/javascript/resource-principal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const common = require("oci-common");
99
(async () => {
1010
const authenticationProvider = await common.ResourcePrincipalAuthenticationDetailsProvider.builder();
1111
try {
12-
const identityClient = await new identity.IdentityClient({
12+
const identityClient = new identity.IdentityClient({
1313
authenticationDetailsProvider: authenticationProvider
1414
});
1515
const regions = await identityClient.listRegions({});

examples/javascript/resourceresearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async function usersByFreeformTagAndValue(tag, value) {
156156
}
157157

158158
(async () => {
159-
searchClient = await new resourceSearch.ResourceSearchClient({
159+
searchClient = new resourceSearch.ResourceSearchClient({
160160
authenticationDetailsProvider: provider
161161
});
162162
await resourceType();

examples/javascript/tagging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const provider = new common.ConfigFileAuthenticationDetailsProvider();
1111

1212
(async () => {
1313
const compartmentId = provider.getTenantId() || "";
14-
const identityClient = await new identity.IdentityClient({
14+
const identityClient = new identity.IdentityClient({
1515
authenticationDetailsProvider: provider
1616
});
1717

examples/typescript/audit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ async function getAuditEvents(
8181
}
8282

8383
(async () => {
84-
identityClient = await new identity.IdentityClient({ authenticationDetailsProvider: provider });
85-
auditClient = await new audit.AuditClient({ authenticationDetailsProvider: provider });
84+
identityClient = new identity.IdentityClient({ authenticationDetailsProvider: provider });
85+
auditClient = new audit.AuditClient({ authenticationDetailsProvider: provider });
8686

8787
const endTime: Date = new Date();
8888
const offset = new Date().setDate(new Date().getDate() - 5);

examples/typescript/instance-principal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import common = require("oci-common");
1717
(async () => {
1818
const authenticationProvider = await new common.InstancePrincipalsAuthenticationDetailsProviderBuilder().build();
1919
try {
20-
const identityClient = await new identity.IdentityClient({
20+
const identityClient = new identity.IdentityClient({
2121
authenticationDetailsProvider: authenticationProvider
2222
});
2323
const regions = await identityClient.listRegions({});

examples/typescript/resource-principal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import common = require("oci-common");
99
(async () => {
1010
const authenticationProvider = await common.ResourcePrincipalAuthenticationDetailsProvider.builder();
1111
try {
12-
const identityClient = await new identity.IdentityClient({
12+
const identityClient = new identity.IdentityClient({
1313
authenticationDetailsProvider: authenticationProvider
1414
});
1515
const regions = await identityClient.listRegions({});

examples/typescript/resourceresearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function usersByFreeformTagAndValue(tag: string, value: string) {
157157
}
158158

159159
(async () => {
160-
searchClient = await new ResourceSearchClient({
160+
searchClient = new ResourceSearchClient({
161161
authenticationDetailsProvider: provider
162162
});
163163
await resourceType();

0 commit comments

Comments
 (0)