Skip to content

Commit fa4a65b

Browse files
authored
Merge pull request #11 from oracle/release_2020-07-07
Releasing version 1.2.2
2 parents 9e8e817 + f75b901 commit fa4a65b

File tree

131 files changed

+936
-1380
lines changed

Some content is hidden

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

131 files changed

+936
-1380
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ 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.2.2 - 2020-07-07
7+
### Added
8+
- Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service
9+
- Support for switching between non-private-endpoints and private endpoints on autonomous databases in the Database service
10+
- Support for returning group names when listing identity provider groups in the Identity service
11+
- Support for server-side object re-encryption in the Object Storage service
12+
- Support for private endpoint (ingress) and public endpoint whitelisting in the Analytics Cloud service
13+
614
## 1.2.1 - 2020-06-30
715
### Added
816
- Support for the Usage service

examples/javascript/logging.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
6+
/*
7+
* This is an example shows how to integrate a logger with the SDK
8+
*/
9+
10+
var identity = require("oci-identity");
11+
var common = require("oci-common");
12+
var bunyan = require("bunyan");
13+
14+
// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed.
15+
// You can integrate with log4js, winston or any other logger as well.
16+
var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" });
17+
common.LOG.logger = bunLog;
18+
19+
const configurationFilePath = "~/.oci/config";
20+
const configProfile = "DEFAULT";
21+
22+
const provider = new common.ConfigFileAuthenticationDetailsProvider(
23+
configurationFilePath,
24+
configProfile
25+
);
26+
27+
const tenancyId = {
28+
tenancyId: provider.getTenantId() || ""
29+
};
30+
31+
(async () => {
32+
const identityClient = new identity.IdentityClient({
33+
authenticationDetailsProvider: provider
34+
});
35+
const regions = await identityClient.listRegionSubscriptions(tenancyId);
36+
for (let i = 0; i < regions.items.length; i++) {
37+
console.log(`Region fetched ${regions.items[i].regionName}`);
38+
}
39+
})();

examples/typescript/audit.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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-
coding: utf-8
5-
This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
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+
6+
/* This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
67
for a timespan defined by startTime and endTime.
78
This sample script retrieves Audit events for last 5 days.
89
This script will work at a tenancy level only.

examples/typescript/database.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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+
*/
45

5-
@param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
68
* <ul>
79
* <li>The first argument is the OCID of the tenancy.</li>
810
* <li>The second argument is the OCID of the compartment.</li>

examples/typescript/identity.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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 is an example where we will create a new user, a new group and assign that user to the group
6-
We will then remove the user from the group, delete the group, delete the user.
4+
*/
5+
6+
/**
7+
* This is an example where we will create a new user, a new group and assign that user to the group
8+
* We will then remove the user from the group, delete the group, delete the user.
79
*/
810
import * as identity from "oci-identity";
911
import common = require("oci-common");

examples/typescript/launch_instance.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
78
* <ul>
89
* <li>The first argument is the OCID of the tenancy.</li>
910
* <li>The second argument is the OCID of the compartment.</li>

examples/typescript/logging.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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 is an example shows how to integrate a logger with the SDK
4+
*/
5+
6+
/**
7+
* This is an example shows how to integrate a logger with the SDK
68
*/
79

810
var oci = require("oci-sdk");

examples/typescript/move-compartment.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* 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.
44
*/
55

6-
/*
7-
This script provides an example on how to move a compartment to a different compartment
8-
This script will:
9-
* create cp_source_TSSDK under tenancy
10-
* create cp_target_TSSDK under tenancy
11-
* move cp_source_TSSDK under cp_target_TSSDK
12-
*/
6+
/**
7+
* This script provides an example on how to move a compartment to a different compartment
8+
* This script will:
9+
* create cp_source_TSSDK under tenancy
10+
* create cp_target_TSSDK under tenancy
11+
* move cp_source_TSSDK under cp_target_TSSDK
12+
*/
1313

1414
import * as identity from "oci-identity";
1515
import common = require("oci-common");

examples/typescript/objectstorage.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
78
* <ul>
89
* <li>The first argument is the OCID of the compartment.</li>
910
* <li>The second is the name of bucket to create and later fetch</li>

examples/typescript/streaming.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/**
7-
* This example provides an example of basic streaming usage.
7+
* This example provides an example of basic streaming usage.
88
* - List streams
99
* - Get a stream
1010
* - Create a stream

examples/typescript/tagging.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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+
*/
45

5-
This script provides an example on how to use tagging in the SDK for TypeScript to manage tags and tag namespaces,
6+
/**
7+
*
8+
* This script provides an example on how to use tagging in the SDK for TypeScript to manage tags and tag namespaces,
69
as well as how to apply freeform and defined tags to a resource.
710
*/
811

lib/analytics/lib/client.ts

+67
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,73 @@ export class AnalyticsClient {
180180
}
181181
}
182182

183+
/**
184+
* Change an Analytics instance network endpoint. The operation is long-running
185+
* and creates a new WorkRequest.
186+
*
187+
* @param ChangeAnalyticsInstanceNetworkEndpointRequest
188+
* @return ChangeAnalyticsInstanceNetworkEndpointResponse
189+
* @throws OciError when an error occurs
190+
*/
191+
public async changeAnalyticsInstanceNetworkEndpoint(
192+
changeAnalyticsInstanceNetworkEndpointRequest: requests.ChangeAnalyticsInstanceNetworkEndpointRequest
193+
): Promise<responses.ChangeAnalyticsInstanceNetworkEndpointResponse> {
194+
if (this.logger)
195+
this.logger.debug(
196+
"Calling operation AnalyticsClient#changeAnalyticsInstanceNetworkEndpoint."
197+
);
198+
const pathParams = {
199+
"{analyticsInstanceId}": changeAnalyticsInstanceNetworkEndpointRequest.analyticsInstanceId
200+
};
201+
202+
const queryParams = {};
203+
204+
let headerParams = {
205+
"if-match": changeAnalyticsInstanceNetworkEndpointRequest.ifMatch,
206+
"opc-request-id": changeAnalyticsInstanceNetworkEndpointRequest.opcRequestId,
207+
"opc-retry-token": changeAnalyticsInstanceNetworkEndpointRequest.opcRetryToken
208+
};
209+
210+
const request = await composeRequest({
211+
baseEndpoint: this._endpoint,
212+
defaultHeaders: this._defaultHeaders,
213+
path: "/analyticsInstances/{analyticsInstanceId}/actions/changeNetworkEndpoint",
214+
method: "POST",
215+
bodyContent: common.ObjectSerializer.serialize(
216+
changeAnalyticsInstanceNetworkEndpointRequest.changeAnalyticsInstanceNetworkEndpointDetails,
217+
"ChangeAnalyticsInstanceNetworkEndpointDetails",
218+
models.ChangeAnalyticsInstanceNetworkEndpointDetails.getJsonObj
219+
),
220+
pathParams: pathParams,
221+
headerParams: headerParams,
222+
queryParams: queryParams
223+
});
224+
225+
const response = await this._httpClient.send(request);
226+
if (response.status && response.status >= 200 && response.status <= 299) {
227+
const sdkResponse = composeResponse({
228+
responseObject: <responses.ChangeAnalyticsInstanceNetworkEndpointResponse>{},
229+
responseHeaders: [
230+
{
231+
value: response.headers.get("opc-request-id"),
232+
key: "opcRequestId",
233+
dataType: "string"
234+
},
235+
{
236+
value: response.headers.get("opc-work-request-id"),
237+
key: "opcWorkRequestId",
238+
dataType: "string"
239+
}
240+
]
241+
});
242+
243+
return sdkResponse;
244+
} else {
245+
const errBody = await common.handleErrorBody(response);
246+
throw common.handleErrorResponse(response, errBody);
247+
}
248+
}
249+
183250
/**
184251
* Create a new AnalyticsInstance in the specified compartment. The operation is long-running
185252
* and creates a new WorkRequest.

lib/analytics/lib/model/analytics-instance-summary.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface AnalyticsInstanceSummary {
6161
*
6262
*/
6363
"emailNotification"?: string;
64+
"networkEndpointDetails": model.PrivateEndpointDetails | model.PublicEndpointDetails;
6465
/**
6566
* URL of the Analytics service.
6667
*
@@ -87,7 +88,11 @@ export namespace AnalyticsInstanceSummary {
8788
const jsonObj = {
8889
...obj,
8990
...{
90-
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined
91+
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined,
92+
93+
"networkEndpointDetails": obj.networkEndpointDetails
94+
? model.NetworkEndpointDetails.getJsonObj(obj.networkEndpointDetails)
95+
: undefined
9196
}
9297
};
9398

lib/analytics/lib/model/analytics-instance.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface AnalyticsInstance {
6161
*
6262
*/
6363
"emailNotification"?: string;
64+
"networkEndpointDetails": model.PrivateEndpointDetails | model.PublicEndpointDetails;
6465
/**
6566
* URL of the Analytics service.
6667
*
@@ -103,7 +104,11 @@ export namespace AnalyticsInstance {
103104
const jsonObj = {
104105
...obj,
105106
...{
106-
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined
107+
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined,
108+
109+
"networkEndpointDetails": obj.networkEndpointDetails
110+
? model.NetworkEndpointDetails.getJsonObj(obj.networkEndpointDetails)
111+
: undefined
107112
}
108113
};
109114

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* Analytics API
3+
* Analytics API.
4+
5+
* OpenAPI spec version: 20190331
6+
*
7+
*
8+
* NOTE: This class is auto generated by OracleSDKGenerator.
9+
* Do not edit the class manually.
10+
*
11+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
12+
* 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.
13+
*/
14+
15+
import * as model from "../model";
16+
import common = require("oci-common");
17+
18+
/**
19+
* Input payload to update an Analytics instance endpoint details.
20+
*
21+
*/
22+
export interface ChangeAnalyticsInstanceNetworkEndpointDetails {
23+
"networkEndpointDetails": model.PrivateEndpointDetails | model.PublicEndpointDetails;
24+
}
25+
26+
export namespace ChangeAnalyticsInstanceNetworkEndpointDetails {
27+
export function getJsonObj(obj: ChangeAnalyticsInstanceNetworkEndpointDetails): object {
28+
const jsonObj = {
29+
...obj,
30+
...{
31+
"networkEndpointDetails": obj.networkEndpointDetails
32+
? model.NetworkEndpointDetails.getJsonObj(obj.networkEndpointDetails)
33+
: undefined
34+
}
35+
};
36+
37+
return jsonObj;
38+
}
39+
}

lib/analytics/lib/model/create-analytics-instance-details.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export interface CreateAnalyticsInstanceDetails {
5151
*
5252
*/
5353
"emailNotification"?: string;
54+
"networkEndpointDetails"?: model.PrivateEndpointDetails | model.PublicEndpointDetails;
5455
/**
5556
* IDCS access token identifying a stripe and service administrator user.
5657
*
@@ -79,7 +80,11 @@ export namespace CreateAnalyticsInstanceDetails {
7980
const jsonObj = {
8081
...obj,
8182
...{
82-
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined
83+
"capacity": obj.capacity ? model.Capacity.getJsonObj(obj.capacity) : undefined,
84+
85+
"networkEndpointDetails": obj.networkEndpointDetails
86+
? model.NetworkEndpointDetails.getJsonObj(obj.networkEndpointDetails)
87+
: undefined
8388
}
8489
};
8590

lib/analytics/lib/model/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import * as Capacity from "./capacity";
2222
export import Capacity = Capacity.Capacity;
2323
import * as CapacityType from "./capacity-type";
2424
export import CapacityType = CapacityType.CapacityType;
25+
import * as ChangeAnalyticsInstanceNetworkEndpointDetails from "./change-analytics-instance-network-endpoint-details";
26+
export import ChangeAnalyticsInstanceNetworkEndpointDetails = ChangeAnalyticsInstanceNetworkEndpointDetails.ChangeAnalyticsInstanceNetworkEndpointDetails;
2527
import * as ChangeCompartmentDetails from "./change-compartment-details";
2628
export import ChangeCompartmentDetails = ChangeCompartmentDetails.ChangeCompartmentDetails;
2729
import * as CreateAnalyticsInstanceDetails from "./create-analytics-instance-details";
@@ -30,6 +32,10 @@ import * as FeatureSet from "./feature-set";
3032
export import FeatureSet = FeatureSet.FeatureSet;
3133
import * as LicenseType from "./license-type";
3234
export import LicenseType = LicenseType.LicenseType;
35+
import * as NetworkEndpointDetails from "./network-endpoint-details";
36+
export import NetworkEndpointDetails = NetworkEndpointDetails.NetworkEndpointDetails;
37+
import * as NetworkEndpointType from "./network-endpoint-type";
38+
export import NetworkEndpointType = NetworkEndpointType.NetworkEndpointType;
3339
import * as ScaleAnalyticsInstanceDetails from "./scale-analytics-instance-details";
3440
export import ScaleAnalyticsInstanceDetails = ScaleAnalyticsInstanceDetails.ScaleAnalyticsInstanceDetails;
3541
import * as SortBy from "./sort-by";
@@ -38,6 +44,8 @@ import * as SortOrder from "./sort-order";
3844
export import SortOrder = SortOrder.SortOrder;
3945
import * as UpdateAnalyticsInstanceDetails from "./update-analytics-instance-details";
4046
export import UpdateAnalyticsInstanceDetails = UpdateAnalyticsInstanceDetails.UpdateAnalyticsInstanceDetails;
47+
import * as VirtualCloudNetwork from "./virtual-cloud-network";
48+
export import VirtualCloudNetwork = VirtualCloudNetwork.VirtualCloudNetwork;
4149
import * as WorkRequest from "./work-request";
4250
export import WorkRequest = WorkRequest.WorkRequest;
4351
import * as WorkRequestActionResult from "./work-request-action-result";
@@ -58,3 +66,8 @@ import * as WorkRequestStatus from "./work-request-status";
5866
export import WorkRequestStatus = WorkRequestStatus.WorkRequestStatus;
5967
import * as WorkRequestSummary from "./work-request-summary";
6068
export import WorkRequestSummary = WorkRequestSummary.WorkRequestSummary;
69+
70+
import * as PrivateEndpointDetails from "./private-endpoint-details";
71+
export import PrivateEndpointDetails = PrivateEndpointDetails.PrivateEndpointDetails;
72+
import * as PublicEndpointDetails from "./public-endpoint-details";
73+
export import PublicEndpointDetails = PublicEndpointDetails.PublicEndpointDetails;

0 commit comments

Comments
 (0)