Skip to content

Commit 28a105f

Browse files
authored
Releasing version 2.1.0
Releasing version 2.1.0
2 parents 3c94150 + 5780bfc commit 28a105f

File tree

129 files changed

+2177
-520
lines changed

Some content is hidden

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

129 files changed

+2177
-520
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ 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.1.0 - 2021-08-03
7+
### Added
8+
- Support for manually copying volume group backups across regions in the Block Volume service
9+
- Support for work requests for the copy volume backup and copy boot volume backup operations in the Block Volume service
10+
- Support for specifying external Hive metastores during application creation in the Data Flow service
11+
- Support for changing the compartment of a backup in the MySQL Database service
12+
- Support for model catalog features including provenance, metadata, schemas, and artifact introspection in the Data Science service
13+
- Support for Exadata system network bonding in the Database service
14+
- Support for creating autonomous databases with early patching enabled in the Database service
15+
16+
### Breaking changes
17+
- Default retries and circuit breakers in the SDK removed for the following services : Functions, Streaming, Big Data and Notifications
18+
619
## 2.0.1 - 2021-07-27
720
### Added
821
- Support for filtering by tag on capacity planning and SQL warehouse list operations in the Operations Insights service

THIRD_PARTY_LICENSES.txt

+419-393
Large diffs are not rendered by default.

THIRD_PARTY_LICENSES_DEV.txt

+730
Large diffs are not rendered by default.

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.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/ailanguage/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

lib/analytics/package.json

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

lib/announcementsservice/package.json

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

lib/apigateway/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apigateway",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/apmcontrolplane/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmcontrolplane",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Apm Control Plane Service",
55
"repository": {
66
"type": "git",

lib/apmsynthetics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmsynthetics",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Apm Synthetics Service",
55
"repository": {
66
"type": "git",

lib/apmtraces/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmtraces",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Apm Traces Service",
55
"repository": {
66
"type": "git",

lib/applicationmigration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-applicationmigration",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

lib/artifacts/package.json

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

lib/audit/package.json

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

lib/autoscaling/package.json

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

lib/bastion/package.json

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

lib/bds/lib/client.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ export class BdsClient {
4646
this._circuitBreaker = clientConfiguration.circuitBreaker
4747
? clientConfiguration.circuitBreaker!.circuit
4848
: null;
49-
}
50-
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
51-
if (!this._circuitBreaker && common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!)) {
52-
this._circuitBreaker = new common.CircuitBreaker().circuit;
49+
if (!clientConfiguration.retryConfiguration) {
50+
this._clientConfiguration.retryConfiguration = common.NoRetryConfigurationDetails;
51+
}
52+
} else {
53+
// Disable default retries for the service
54+
this._clientConfiguration = {
55+
retryConfiguration: common.NoRetryConfigurationDetails
56+
};
5357
}
5458
this._httpClient =
5559
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);

lib/bds/package.json

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

lib/blockchain/package.json

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

lib/budget/package.json

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

lib/cims/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cims",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

lib/cloudguard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudguard",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/common/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
MaxAttemptsTerminationStrategy,
3030
FixedTimeDelayStrategy
3131
} from "./lib/waiter";
32-
import { GenericRetrier, RetryConfiguration } from "./lib/retrier";
32+
import { GenericRetrier, RetryConfiguration, NoRetryConfigurationDetails } from "./lib/retrier";
3333
import { RequireOnlyOne, AuthParams } from "./lib/types";
3434
import { HttpRequest } from "./lib/http-request";
3535
import InstancePrincipalsAuthenticationDetailsProviderBuilder from "./lib/auth/instance-principals-authentication-detail-provider";
@@ -105,6 +105,7 @@ export {
105105
FixedTimeDelayStrategy,
106106
MaxAttemptsTerminationStrategy,
107107
RetryConfiguration,
108+
NoRetryConfigurationDetails,
108109
BaseRequest,
109110
ClientConfiguration,
110111
Constants,

lib/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",

lib/computeinstanceagent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-computeinstanceagent",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Compute Instance Agent Service",
55
"repository": {
66
"type": "git",

lib/containerengine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerengine",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/core/lib/blockstorage-waiter.ts

+42
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,48 @@ export class BlockstorageWaiter {
3030
private readonly config?: WaiterConfiguration
3131
) {}
3232

33+
/**
34+
* Waits forCopyBootVolumeBackup
35+
*
36+
* @param request the request to send
37+
* @return response returns CopyBootVolumeBackupResponse, GetWorkRequestResponse tuple
38+
*/
39+
public async forCopyBootVolumeBackup(
40+
request: serviceRequests.CopyBootVolumeBackupRequest
41+
): Promise<{
42+
response: serviceResponses.CopyBootVolumeBackupResponse;
43+
workRequestResponse: responses.GetWorkRequestResponse;
44+
}> {
45+
const copyBootVolumeBackupResponse = await this.client.copyBootVolumeBackup(request);
46+
const getWorkRequestResponse = await waitForWorkRequest(
47+
this.config,
48+
this.workRequestClient,
49+
copyBootVolumeBackupResponse.opcWorkRequestId
50+
);
51+
return { response: copyBootVolumeBackupResponse, workRequestResponse: getWorkRequestResponse };
52+
}
53+
54+
/**
55+
* Waits forCopyVolumeBackup
56+
*
57+
* @param request the request to send
58+
* @return response returns CopyVolumeBackupResponse, GetWorkRequestResponse tuple
59+
*/
60+
public async forCopyVolumeBackup(
61+
request: serviceRequests.CopyVolumeBackupRequest
62+
): Promise<{
63+
response: serviceResponses.CopyVolumeBackupResponse;
64+
workRequestResponse: responses.GetWorkRequestResponse;
65+
}> {
66+
const copyVolumeBackupResponse = await this.client.copyVolumeBackup(request);
67+
const getWorkRequestResponse = await waitForWorkRequest(
68+
this.config,
69+
this.workRequestClient,
70+
copyVolumeBackupResponse.opcWorkRequestId
71+
);
72+
return { response: copyVolumeBackupResponse, workRequestResponse: getWorkRequestResponse };
73+
}
74+
3375
/**
3476
* Waits forBlockVolumeReplica till it reaches any of the provided states
3577
*

lib/core/lib/client.ts

+103
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,21 @@ export class BlockstorageClient {
624624
value: response.headers.get("opc-request-id"),
625625
key: "opcRequestId",
626626
dataType: "string"
627+
},
628+
{
629+
value: response.headers.get("opc-work-request-id"),
630+
key: "opcWorkRequestId",
631+
dataType: "string"
632+
},
633+
{
634+
value: response.headers.get("location"),
635+
key: "location",
636+
dataType: "string"
637+
},
638+
{
639+
value: response.headers.get("content-location"),
640+
key: "contentLocation",
641+
dataType: "string"
627642
}
628643
]
629644
});
@@ -686,6 +701,94 @@ export class BlockstorageClient {
686701
bodyKey: "volumeBackup",
687702
bodyModel: model.VolumeBackup,
688703
type: "model.VolumeBackup",
704+
responseHeaders: [
705+
{
706+
value: response.headers.get("etag"),
707+
key: "etag",
708+
dataType: "string"
709+
},
710+
{
711+
value: response.headers.get("opc-request-id"),
712+
key: "opcRequestId",
713+
dataType: "string"
714+
},
715+
{
716+
value: response.headers.get("opc-work-request-id"),
717+
key: "opcWorkRequestId",
718+
dataType: "string"
719+
},
720+
{
721+
value: response.headers.get("location"),
722+
key: "location",
723+
dataType: "string"
724+
},
725+
{
726+
value: response.headers.get("content-location"),
727+
key: "contentLocation",
728+
dataType: "string"
729+
}
730+
]
731+
});
732+
733+
return sdkResponse;
734+
} catch (err) {
735+
throw err;
736+
}
737+
}
738+
739+
/**
740+
* Creates a volume group backup copy in specified region. For general information about volume group backups,
741+
* see [Overview of Block Volume Service Backups](https://docs.cloud.oracle.com/Content/Block/Concepts/blockvolumebackups.htm)
742+
*
743+
* @param CopyVolumeGroupBackupRequest
744+
* @return CopyVolumeGroupBackupResponse
745+
* @throws OciError when an error occurs
746+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/CopyVolumeGroupBackup.ts.html |here} to see how to use CopyVolumeGroupBackup API.
747+
*/
748+
public async copyVolumeGroupBackup(
749+
copyVolumeGroupBackupRequest: requests.CopyVolumeGroupBackupRequest
750+
): Promise<responses.CopyVolumeGroupBackupResponse> {
751+
if (this.logger)
752+
this.logger.debug("Calling operation BlockstorageClient#copyVolumeGroupBackup.");
753+
const pathParams = {
754+
"{volumeGroupBackupId}": copyVolumeGroupBackupRequest.volumeGroupBackupId
755+
};
756+
757+
const queryParams = {};
758+
759+
let headerParams = {
760+
"Content-Type": common.Constants.APPLICATION_JSON,
761+
"opc-retry-token": copyVolumeGroupBackupRequest.opcRetryToken,
762+
"opc-request-id": copyVolumeGroupBackupRequest.opcRequestId
763+
};
764+
765+
const retrier = GenericRetrier.createPreferredRetrier(
766+
this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {},
767+
copyVolumeGroupBackupRequest.retryConfiguration
768+
);
769+
if (this.logger) retrier.logger = this.logger;
770+
const request = await composeRequest({
771+
baseEndpoint: this._endpoint,
772+
defaultHeaders: this._defaultHeaders,
773+
path: "/volumeGroupBackups/{volumeGroupBackupId}/actions/copy",
774+
method: "POST",
775+
bodyContent: common.ObjectSerializer.serialize(
776+
copyVolumeGroupBackupRequest.copyVolumeGroupBackupDetails,
777+
"CopyVolumeGroupBackupDetails",
778+
model.CopyVolumeGroupBackupDetails.getJsonObj
779+
),
780+
pathParams: pathParams,
781+
headerParams: headerParams,
782+
queryParams: queryParams
783+
});
784+
try {
785+
const response = await retrier.makeServiceCall(this._httpClient, request);
786+
const sdkResponse = composeResponse({
787+
responseObject: <responses.CopyVolumeGroupBackupResponse>{},
788+
body: await response.json(),
789+
bodyKey: "volumeGroupBackup",
790+
bodyModel: model.VolumeGroupBackup,
791+
type: "model.VolumeGroupBackup",
689792
responseHeaders: [
690793
{
691794
value: response.headers.get("etag"),

0 commit comments

Comments
 (0)