Skip to content

Commit 473ef83

Browse files
authored
Releasing version 1.5.2
Releasing version 1.5.2
2 parents fb5945d + fec9acb commit 473ef83

File tree

179 files changed

+11472
-9895
lines changed

Some content is hidden

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

179 files changed

+11472
-9895
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ 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+
## 1.5.2 - 2020-09-01
7+
### Added
8+
- Support for calling Oracle Cloud Infrastructure services in the ap-chiyoda-1 region
9+
- Support for VM database cloning in the Database service
10+
- Support for the MAINTENANCE_IN_PROGRESS lifecycle state on database systems, VM clusters, and Cloud Exadata in the Database service
11+
- Support for provisioning refreshable clones in the Database service
12+
- Support for new options on listeners and backend sets for specifying SSL protocols, SSL cipher suites, and server ordering preferences in the Load Balancing service
13+
- Support for AMD flexible shapes with configurable CPU in the Container Engine for Kubernetes service
14+
- Support for network sources in authentication policies in the Identity service
15+
616
## 1.5.1 - 2020-08-18
717
### Added
818
- Support for custom boot volume size and other node pool updates in the Container Engine for Kubernetes service

examples/javascript/custom-retry.js

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Copyright (c) 2020, 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+
* This example shows how to configure the retries for operations
6+
@param args Arguments to provide to the example. The following arguments are expected:
7+
* <ul>
8+
* <li>The first argument is the OCID of the tenancy.</li>
9+
* <li>The second argument is region.</li>
10+
* </ul>
11+
*/
12+
13+
const identity = require("oci-identity");
14+
const common = require("oci-common");
15+
16+
const configurationFilePath = "~/.oci/config";
17+
const configProfile = "DEFAULT";
18+
19+
const provider = new common.ConfigFileAuthenticationDetailsProvider(
20+
configurationFilePath,
21+
configProfile
22+
);
23+
const args = process.argv.slice(2);
24+
console.log(args);
25+
if (args.length !== 2) {
26+
console.error(
27+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
28+
);
29+
process.exit(-1);
30+
}
31+
32+
const tenancyId = args[0];
33+
const region = args[1];
34+
35+
const identityClient = new identity.IdentityClient({
36+
authenticationDetailsProvider: provider
37+
});
38+
identityClient.regionId = region;
39+
40+
async function getAvailabilityDomain() {
41+
const request = {
42+
compartmentId: tenancyId
43+
};
44+
45+
// Set the retry configuration to attempt 5 times on failure with default retry condition
46+
// with exponential backoff delay of 30 seconds
47+
request.retryConfiguration = {
48+
terminationStrategy: new common.MaxAttemptsTerminationStrategy(5),
49+
delayStrategy: new common.ExponentialBackoffDelayStrategy(30)
50+
};
51+
const response = await identityClient.listAvailabilityDomains(request);
52+
return response.items[0];
53+
}
54+
55+
(async () => {
56+
try {
57+
const availabilityDomain = await getAvailabilityDomain();
58+
console.log("Availability Domain :" + availabilityDomain.name);
59+
} catch (error) {
60+
console.log("Error executing example" + error);
61+
}
62+
})();

examples/javascript/uploadmanager.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,22 @@ const uploadManager = new os.UploadManager(client, { enforceMD5: true });
5757

5858
try {
5959
console.time("Upload Time");
60-
61-
await uploadManager.upload({
62-
content: {
63-
filePath: join(directoryPath, filename)
60+
const callback = res => {
61+
console.log("Progress: ", res);
62+
};
63+
await uploadManager.upload(
64+
{
65+
content: {
66+
filePath: join(directoryPath, filename)
67+
},
68+
requestDetails: {
69+
namespaceName: namespaceName,
70+
bucketName: bucketName,
71+
objectName: objectName
72+
}
6473
},
65-
requestDetails: {
66-
namespaceName: namespaceName,
67-
bucketName: bucketName,
68-
objectName: objectName
69-
}
70-
});
74+
callback
75+
);
7176

7277
console.timeEnd("Upload Time");
7378
} catch (ex) {

examples/typescript/custom-retry.ts

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* Copyright (c) 2020, 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+
* This example shows how to configure the retries for operations
6+
@param args Arguments to provide to the example. The following arguments are expected:
7+
* <ul>
8+
* <li>The first argument is the OCID of the tenancy.</li>
9+
* <li>The second argument is region.</li>
10+
* </ul>
11+
*/
12+
13+
import common = require("oci-common");
14+
import * as identity from "oci-identity";
15+
16+
const configurationFilePath = "~/.oci/config";
17+
const configProfile = "DEFAULT";
18+
19+
const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider(
20+
configurationFilePath,
21+
configProfile
22+
);
23+
24+
const args = process.argv.slice(2);
25+
console.log(args);
26+
if (args.length !== 2) {
27+
console.error(
28+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
29+
);
30+
process.exit(-1);
31+
}
32+
33+
const tenancyId: string = args[0];
34+
const region: string = args[1];
35+
36+
const identityClient = new identity.IdentityClient({ authenticationDetailsProvider: provider });
37+
identityClient.regionId = region;
38+
39+
async function getAvailabilityDomain(): Promise<identity.models.AvailabilityDomain> {
40+
const request: identity.requests.ListAvailabilityDomainsRequest = {
41+
compartmentId: tenancyId
42+
};
43+
44+
// Set the retry configuration to attempt 5 times on failure with default retry condition
45+
// with exponential backoff delay of 30 seconds
46+
request.retryConfiguration = {
47+
terminationStrategy: new common.MaxAttemptsTerminationStrategy(5),
48+
delayStrategy: new common.ExponentialBackoffDelayStrategy(30)
49+
};
50+
const response = await identityClient.listAvailabilityDomains(request);
51+
return response.items[0];
52+
}
53+
54+
(async () => {
55+
try {
56+
const availabilityDomain = await getAvailabilityDomain();
57+
console.log("Availability Domain :" + availabilityDomain.name);
58+
} catch (error) {
59+
console.log("Error executing example" + error);
60+
} finally {
61+
console.debug("DONE");
62+
}
63+
})();

examples/typescript/uploadmanager.ts

+16-9
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,23 @@ const uploadManager = new UploadManager(client, { enforceMD5: true });
5656
try {
5757
console.time("Upload Time");
5858

59-
await uploadManager.upload({
60-
content: {
61-
filePath: join(directoryPath, filename)
59+
const callback = (res: any) => {
60+
console.log("Progress: ", res);
61+
};
62+
63+
await uploadManager.upload(
64+
{
65+
content: {
66+
filePath: join(directoryPath, filename)
67+
},
68+
requestDetails: {
69+
namespaceName: namespaceName,
70+
bucketName: bucketName,
71+
objectName: objectName
72+
}
6273
},
63-
requestDetails: {
64-
namespaceName: namespaceName,
65-
bucketName: bucketName,
66-
objectName: objectName
67-
}
68-
});
74+
callback
75+
);
6976

7077
console.timeEnd("Upload Time");
7178
} catch (ex) {

0 commit comments

Comments
 (0)