Skip to content

Commit adfa68f

Browse files
Releasing version 2.80.0
Releasing version 2.80.0
2 parents e0cff55 + e7c4de1 commit adfa68f

File tree

1,131 files changed

+27032
-9681
lines changed

Some content is hidden

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

1,131 files changed

+27032
-9681
lines changed

CHANGELOG.md

+13
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.80.0 - 2024-02-20
7+
### Added
8+
- Support for calling Oracle Cloud Infrastructure services in the me-dcc-doha-1 region
9+
- Support for Secure Desktops service
10+
- Support for enabling and disabling Simultaneous Multithreading (SMT) for virtual machines in the Compute service
11+
- Support for Bring Your Own Container Jobs (BYOC v2) in the Data Science service
12+
- Support for expanded language translation in the AI Language service
13+
- Support for additional flags for ignoring transliteration and text length to be considered for determining dominant language in the AI Language service
14+
15+
### Breaking Changes
16+
- Class `PreTrainedPhiModelDetails` has been removed in the AI Language service
17+
18+
619
## 2.79.1 - 2024-02-13
720
### Added
821
- Support for adding automatic backups during cross region operations and disaster recovery in the Autonomous Database service

examples/javascript/logging.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99

1010
var identity = require("oci-identity");
1111
var common = require("oci-common");
12+
var bunyan = require("bunyan");
1213

1314
// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed.
1415
// You can integrate with log4js, winston or any other logger as well.
15-
process.env.USE_BUNYAN = "true";
16+
var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" });
17+
common.LOG.logger = bunLog;
1618
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1719

1820
(async () => {

examples/typescript/logging.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@
77
* This is an example shows how to integrate a logger with the SDK
88
*/
99

10-
var identity = require("oci-identity");
11-
var common = require("oci-common");
10+
var oci = require("oci-sdk");
11+
var bunyan = require("bunyan");
1212

1313
// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed.
1414
// You can integrate with log4js, winston or any other logger as well.
15-
process.env.USE_BUNYAN = "true";
16-
const provider = new common.ConfigFileAuthenticationDetailsProvider();
15+
var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" });
16+
oci.LOG.logger = bunLog;
17+
18+
const provider = new oci.common.ConfigFileAuthenticationDetailsProvider();
1719

1820
(async () => {
19-
const identityClient = new identity.IdentityClient({
21+
const identityClient = new oci.identity.IdentityClient({
2022
authenticationDetailsProvider: provider
2123
});
2224
const regions = await identityClient.listRegionSubscriptions({
2325
tenancyId: provider.getTenantId() || ""
2426
});
2527
for (let i = 0; i < regions.items.length; i++) {
26-
common.logger.info(`Region fetched ${regions.items[i].regionName}`);
28+
console.log(`Region fetched ${regions.items[i].regionName}`);
2729
}
2830
})();

index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export import DefaultRequestSigner = common.DefaultRequestSigner;
1313
export import OciError = common.OciError;
1414
export import HandleErrorResponse = common.handleErrorResponse;
1515
export import ConvertStringToType = common.convertStringToType;
16+
export import LOG = common.LOG;
1617
export import ConfigFileAuthenticationDetailsProvider = common.ConfigFileAuthenticationDetailsProvider;
1718
// Analytics Service
1819
export import analytics = require("oci-analytics");
@@ -221,3 +222,4 @@ export import generativeai = require("oci-generativeai");
221222
export import generativeaiinference = require("oci-generativeaiinference");
222223
export import capacitymanagement = require("oci-capacitymanagement");
223224
export import globallydistributeddatabase = require("oci-globallydistributeddatabase");
225+
export import desktops = require("oci-desktops");

lib/accessgovernancecp/lib/client.ts

+41-17
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import {
2020
composeResponse,
2121
composeRequest,
2222
GenericRetrier,
23-
developerToolConfiguration,
24-
logger
23+
developerToolConfiguration
2524
} from "oci-common";
2625
const Breaker = require("opossum");
2726

@@ -37,7 +36,7 @@ export class AccessGovernanceCPClient {
3736
protected static serviceEndpointTemplate =
3837
"https://cp-prod.access-governance.{region}.oci.{secondLevelDomain}";
3938
protected static endpointServiceName = "";
40-
protected "_realmSpecificEndpointTemplateEnabled": boolean = false;
39+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined;
4140
protected "_endpoint": string = "";
4241
protected "_defaultHeaders": any = {};
4342
protected "_waiters": AccessGovernanceCPWaiter;
@@ -118,7 +117,11 @@ export class AccessGovernanceCPClient {
118117
public set endpoint(endpoint: string) {
119118
this._endpoint = endpoint;
120119
this._endpoint = this._endpoint + "/20220518";
121-
logger.info(`AccessGovernanceCPClient endpoint set to ${this._endpoint}`);
120+
if (this.logger) this.logger.info(`AccessGovernanceCPClient endpoint set to ${this._endpoint}`);
121+
}
122+
123+
public get logger() {
124+
return common.LOG.logger;
122125
}
123126

124127
/**
@@ -128,9 +131,10 @@ export class AccessGovernanceCPClient {
128131
*/
129132
public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) {
130133
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
131-
logger.info(
132-
`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`
133-
);
134+
if (this.logger)
135+
this.logger.info(
136+
`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`
137+
);
134138
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
135139
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(
136140
AccessGovernanceCPClient.serviceEndpointTemplate,
@@ -222,7 +226,10 @@ export class AccessGovernanceCPClient {
222226
public async changeGovernanceInstanceCompartment(
223227
changeGovernanceInstanceCompartmentRequest: requests.ChangeGovernanceInstanceCompartmentRequest
224228
): Promise<responses.ChangeGovernanceInstanceCompartmentResponse> {
225-
logger.debug("Calling operation AccessGovernanceCPClient#changeGovernanceInstanceCompartment.");
229+
if (this.logger)
230+
this.logger.debug(
231+
"Calling operation AccessGovernanceCPClient#changeGovernanceInstanceCompartment."
232+
);
226233
const operationName = "changeGovernanceInstanceCompartment";
227234
const apiReferenceLink = "";
228235
const pathParams = {
@@ -244,6 +251,7 @@ export class AccessGovernanceCPClient {
244251
changeGovernanceInstanceCompartmentRequest.retryConfiguration,
245252
specRetryConfiguration
246253
);
254+
if (this.logger) retrier.logger = this.logger;
247255
const request = await composeRequest({
248256
baseEndpoint: this._endpoint,
249257
defaultHeaders: this._defaultHeaders,
@@ -295,7 +303,8 @@ export class AccessGovernanceCPClient {
295303
public async createGovernanceInstance(
296304
createGovernanceInstanceRequest: requests.CreateGovernanceInstanceRequest
297305
): Promise<responses.CreateGovernanceInstanceResponse> {
298-
logger.debug("Calling operation AccessGovernanceCPClient#createGovernanceInstance.");
306+
if (this.logger)
307+
this.logger.debug("Calling operation AccessGovernanceCPClient#createGovernanceInstance.");
299308
const operationName = "createGovernanceInstance";
300309
const apiReferenceLink = "";
301310
const pathParams = {};
@@ -314,6 +323,7 @@ export class AccessGovernanceCPClient {
314323
createGovernanceInstanceRequest.retryConfiguration,
315324
specRetryConfiguration
316325
);
326+
if (this.logger) retrier.logger = this.logger;
317327
const request = await composeRequest({
318328
baseEndpoint: this._endpoint,
319329
defaultHeaders: this._defaultHeaders,
@@ -379,7 +389,8 @@ export class AccessGovernanceCPClient {
379389
public async deleteGovernanceInstance(
380390
deleteGovernanceInstanceRequest: requests.DeleteGovernanceInstanceRequest
381391
): Promise<responses.DeleteGovernanceInstanceResponse> {
382-
logger.debug("Calling operation AccessGovernanceCPClient#deleteGovernanceInstance.");
392+
if (this.logger)
393+
this.logger.debug("Calling operation AccessGovernanceCPClient#deleteGovernanceInstance.");
383394
const operationName = "deleteGovernanceInstance";
384395
const apiReferenceLink = "";
385396
const pathParams = {
@@ -401,6 +412,7 @@ export class AccessGovernanceCPClient {
401412
deleteGovernanceInstanceRequest.retryConfiguration,
402413
specRetryConfiguration
403414
);
415+
if (this.logger) retrier.logger = this.logger;
404416
const request = await composeRequest({
405417
baseEndpoint: this._endpoint,
406418
defaultHeaders: this._defaultHeaders,
@@ -451,7 +463,8 @@ export class AccessGovernanceCPClient {
451463
public async getGovernanceInstance(
452464
getGovernanceInstanceRequest: requests.GetGovernanceInstanceRequest
453465
): Promise<responses.GetGovernanceInstanceResponse> {
454-
logger.debug("Calling operation AccessGovernanceCPClient#getGovernanceInstance.");
466+
if (this.logger)
467+
this.logger.debug("Calling operation AccessGovernanceCPClient#getGovernanceInstance.");
455468
const operationName = "getGovernanceInstance";
456469
const apiReferenceLink = "";
457470
const pathParams = {
@@ -471,6 +484,7 @@ export class AccessGovernanceCPClient {
471484
getGovernanceInstanceRequest.retryConfiguration,
472485
specRetryConfiguration
473486
);
487+
if (this.logger) retrier.logger = this.logger;
474488
const request = await composeRequest({
475489
baseEndpoint: this._endpoint,
476490
defaultHeaders: this._defaultHeaders,
@@ -525,7 +539,10 @@ export class AccessGovernanceCPClient {
525539
public async getGovernanceInstanceConfiguration(
526540
getGovernanceInstanceConfigurationRequest: requests.GetGovernanceInstanceConfigurationRequest
527541
): Promise<responses.GetGovernanceInstanceConfigurationResponse> {
528-
logger.debug("Calling operation AccessGovernanceCPClient#getGovernanceInstanceConfiguration.");
542+
if (this.logger)
543+
this.logger.debug(
544+
"Calling operation AccessGovernanceCPClient#getGovernanceInstanceConfiguration."
545+
);
529546
const operationName = "getGovernanceInstanceConfiguration";
530547
const apiReferenceLink = "";
531548
const pathParams = {};
@@ -545,6 +562,7 @@ export class AccessGovernanceCPClient {
545562
getGovernanceInstanceConfigurationRequest.retryConfiguration,
546563
specRetryConfiguration
547564
);
565+
if (this.logger) retrier.logger = this.logger;
548566
const request = await composeRequest({
549567
baseEndpoint: this._endpoint,
550568
defaultHeaders: this._defaultHeaders,
@@ -600,7 +618,8 @@ export class AccessGovernanceCPClient {
600618
public async listGovernanceInstances(
601619
listGovernanceInstancesRequest: requests.ListGovernanceInstancesRequest
602620
): Promise<responses.ListGovernanceInstancesResponse> {
603-
logger.debug("Calling operation AccessGovernanceCPClient#listGovernanceInstances.");
621+
if (this.logger)
622+
this.logger.debug("Calling operation AccessGovernanceCPClient#listGovernanceInstances.");
604623
const operationName = "listGovernanceInstances";
605624
const apiReferenceLink = "";
606625
const pathParams = {};
@@ -627,6 +646,7 @@ export class AccessGovernanceCPClient {
627646
listGovernanceInstancesRequest.retryConfiguration,
628647
specRetryConfiguration
629648
);
649+
if (this.logger) retrier.logger = this.logger;
630650
const request = await composeRequest({
631651
baseEndpoint: this._endpoint,
632652
defaultHeaders: this._defaultHeaders,
@@ -681,7 +701,8 @@ export class AccessGovernanceCPClient {
681701
public async updateGovernanceInstance(
682702
updateGovernanceInstanceRequest: requests.UpdateGovernanceInstanceRequest
683703
): Promise<responses.UpdateGovernanceInstanceResponse> {
684-
logger.debug("Calling operation AccessGovernanceCPClient#updateGovernanceInstance.");
704+
if (this.logger)
705+
this.logger.debug("Calling operation AccessGovernanceCPClient#updateGovernanceInstance.");
685706
const operationName = "updateGovernanceInstance";
686707
const apiReferenceLink = "";
687708
const pathParams = {
@@ -702,6 +723,7 @@ export class AccessGovernanceCPClient {
702723
updateGovernanceInstanceRequest.retryConfiguration,
703724
specRetryConfiguration
704725
);
726+
if (this.logger) retrier.logger = this.logger;
705727
const request = await composeRequest({
706728
baseEndpoint: this._endpoint,
707729
defaultHeaders: this._defaultHeaders,
@@ -766,9 +788,10 @@ export class AccessGovernanceCPClient {
766788
public async updateGovernanceInstanceConfiguration(
767789
updateGovernanceInstanceConfigurationRequest: requests.UpdateGovernanceInstanceConfigurationRequest
768790
): Promise<responses.UpdateGovernanceInstanceConfigurationResponse> {
769-
logger.debug(
770-
"Calling operation AccessGovernanceCPClient#updateGovernanceInstanceConfiguration."
771-
);
791+
if (this.logger)
792+
this.logger.debug(
793+
"Calling operation AccessGovernanceCPClient#updateGovernanceInstanceConfiguration."
794+
);
772795
const operationName = "updateGovernanceInstanceConfiguration";
773796
const apiReferenceLink = "";
774797
const pathParams = {};
@@ -789,6 +812,7 @@ export class AccessGovernanceCPClient {
789812
updateGovernanceInstanceConfigurationRequest.retryConfiguration,
790813
specRetryConfiguration
791814
);
815+
if (this.logger) retrier.logger = this.logger;
792816
const request = await composeRequest({
793817
baseEndpoint: this._endpoint,
794818
defaultHeaders: this._defaultHeaders,

lib/accessgovernancecp/package.json

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

0 commit comments

Comments
 (0)