Skip to content

Releasing version 2.100.1 #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).
## 2.100.1 - 2024-12-17
### Added
- Support for backup retention locks on autonomous database create and update operations in the Database service
- Support for multi-modality flags in data source in the Generative AI service
- Support for knowledge base statistics in the Generative AI service
- Support for document id, title and page numbers in citations in the Generative AI service
- Support for creating and updating Amazon Web Services (AWS) asset-sources, EC2 and Elastic Block Store (EBS) assets in the Cloud Bridge service
- Support for listing Amazon Web Services (AWS) regions available for discovery and migrations in the Cloud Bridge service
- Support for stored video analysis in the AI Vision service
- Support for HTTP or REST endpoint-based metric extensions in the OCI Monitoring service
- Support for metric extension filter in the list metric extensions operation in the OCI Monitoring service
- Support for creating and updating private endpoints for model deployments in the Data Science service
- Support for OCI Identity user integration in the Big Data service
- Support for user principal session tokens in the Big Data service
- Support for historical cluster versions in the Big Data service
- Support for new SKUs for digital assets editions in the Blockchain Platform service
- Support for Zero ETL pipelines in the GoldenGate service

## 2.100.0 - 2024-12-10
### Added
- Support for Bring Your Own Key (BYOK) in the Database service
Expand Down
2 changes: 1 addition & 1 deletion lib/accessgovernancecp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-accessgovernancecp",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Access Governance Cp Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/adm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-adm",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Adm Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/aianomalydetection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-aianomalydetection",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/aidocument/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-aidocument",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Ai Document Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/ailanguage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-ailanguage",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Ai Language Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/aispeech/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-aispeech",
"version": "2.100.0",
"version": "2.100.1",
"description": "OCI NodeJS client for Ai Speech Service",
"repository": {
"type": "git",
Expand Down
18 changes: 18 additions & 0 deletions lib/aivision/lib/aiservicevision-waiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,24 @@ export class AIServiceVisionWaiter {
);
}

/**
* Waits forVideoJob till it reaches any of the provided states
*
* @param request the request to send
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
* @return response returns GetVideoJobResponse
*/
public async forVideoJob(
request: serviceRequests.GetVideoJobRequest,
...targetStates: models.VideoJob.LifecycleState[]
): Promise<serviceResponses.GetVideoJobResponse> {
return genericWaiter(
this.config,
() => this.client.getVideoJob(request),
response => targetStates.includes(response.videoJob.lifecycleState!)
);
}

/**
* Waits forWorkRequest
*
Expand Down
227 changes: 227 additions & 0 deletions lib/aivision/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,75 @@ export class AIServiceVisionClient {
}
}

/**
* Cancel a video analysis job.
*
* This operation does not retry by default if the user has not defined a retry configuration.
* @param CancelVideoJobRequest
* @return CancelVideoJobResponse
* @throws OciError when an error occurs
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CancelVideoJob.ts.html |here} to see how to use CancelVideoJob API.
*/
public async cancelVideoJob(
cancelVideoJobRequest: requests.CancelVideoJobRequest
): Promise<responses.CancelVideoJobResponse> {
if (this.logger) this.logger.debug("Calling operation AIServiceVisionClient#cancelVideoJob.");
const operationName = "cancelVideoJob";
const apiReferenceLink =
"https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CancelVideoJob";
const pathParams = {
"{videoJobId}": cancelVideoJobRequest.videoJobId
};

const queryParams = {};

let headerParams = {
"Content-Type": common.Constants.APPLICATION_JSON,
"if-match": cancelVideoJobRequest.ifMatch,
"opc-request-id": cancelVideoJobRequest.opcRequestId
};

const specRetryConfiguration = common.NoRetryConfigurationDetails;
const retrier = GenericRetrier.createPreferredRetrier(
this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
cancelVideoJobRequest.retryConfiguration,
specRetryConfiguration
);
if (this.logger) retrier.logger = this.logger;
const request = await composeRequest({
baseEndpoint: this._endpoint,
defaultHeaders: this._defaultHeaders,
path: "/videoJobs/{videoJobId}/actions/cancel",
method: "POST",
pathParams: pathParams,
headerParams: headerParams,
queryParams: queryParams
});
try {
const response = await retrier.makeServiceCall(
this._httpClient,
request,
this.targetService,
operationName,
apiReferenceLink
);
const sdkResponse = composeResponse({
responseObject: <responses.CancelVideoJobResponse>{},
responseHeaders: [
{
value: response.headers.get("opc-request-id"),
key: "opcRequestId",
dataType: "string"
}
]
});

return sdkResponse;
} catch (err) {
throw err;
}
}

/**
* Cancel the work request with the given ID.
* This operation does not retry by default if the user has not defined a retry configuration.
Expand Down Expand Up @@ -1086,6 +1155,87 @@ export class AIServiceVisionClient {
}
}

/**
* Create a video analysis job with given inputs and features.
*
* This operation does not retry by default if the user has not defined a retry configuration.
* @param CreateVideoJobRequest
* @return CreateVideoJobResponse
* @throws OciError when an error occurs
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/CreateVideoJob.ts.html |here} to see how to use CreateVideoJob API.
*/
public async createVideoJob(
createVideoJobRequest: requests.CreateVideoJobRequest
): Promise<responses.CreateVideoJobResponse> {
if (this.logger) this.logger.debug("Calling operation AIServiceVisionClient#createVideoJob.");
const operationName = "createVideoJob";
const apiReferenceLink =
"https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CreateVideoJob";
const pathParams = {};

const queryParams = {};

let headerParams = {
"Content-Type": common.Constants.APPLICATION_JSON,
"opc-retry-token": createVideoJobRequest.opcRetryToken,
"opc-request-id": createVideoJobRequest.opcRequestId
};

const specRetryConfiguration = common.NoRetryConfigurationDetails;
const retrier = GenericRetrier.createPreferredRetrier(
this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
createVideoJobRequest.retryConfiguration,
specRetryConfiguration
);
if (this.logger) retrier.logger = this.logger;
const request = await composeRequest({
baseEndpoint: this._endpoint,
defaultHeaders: this._defaultHeaders,
path: "/videoJobs",
method: "POST",
bodyContent: common.ObjectSerializer.serialize(
createVideoJobRequest.createVideoJobDetails,
"CreateVideoJobDetails",
model.CreateVideoJobDetails.getJsonObj
),
pathParams: pathParams,
headerParams: headerParams,
queryParams: queryParams
});
try {
const response = await retrier.makeServiceCall(
this._httpClient,
request,
this.targetService,
operationName,
apiReferenceLink
);
const sdkResponse = composeResponse({
responseObject: <responses.CreateVideoJobResponse>{},
body: await response.json(),
bodyKey: "videoJob",
bodyModel: model.VideoJob,
type: "model.VideoJob",
responseHeaders: [
{
value: response.headers.get("etag"),
key: "etag",
dataType: "string"
},
{
value: response.headers.get("opc-request-id"),
key: "opcRequestId",
dataType: "string"
}
]
});

return sdkResponse;
} catch (err) {
throw err;
}
}

/**
* Delete a model by identifier.
* This operation does not retry by default if the user has not defined a retry configuration.
Expand Down Expand Up @@ -1537,6 +1687,83 @@ export class AIServiceVisionClient {
}
}

/**
* Get details of a video analysis job.
*
* This operation does not retry by default if the user has not defined a retry configuration.
* @param GetVideoJobRequest
* @return GetVideoJobResponse
* @throws OciError when an error occurs
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aivision/GetVideoJob.ts.html |here} to see how to use GetVideoJob API.
*/
public async getVideoJob(
getVideoJobRequest: requests.GetVideoJobRequest
): Promise<responses.GetVideoJobResponse> {
if (this.logger) this.logger.debug("Calling operation AIServiceVisionClient#getVideoJob.");
const operationName = "getVideoJob";
const apiReferenceLink =
"https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob";
const pathParams = {
"{videoJobId}": getVideoJobRequest.videoJobId
};

const queryParams = {};

let headerParams = {
"Content-Type": common.Constants.APPLICATION_JSON,
"opc-request-id": getVideoJobRequest.opcRequestId
};

const specRetryConfiguration = common.NoRetryConfigurationDetails;
const retrier = GenericRetrier.createPreferredRetrier(
this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
getVideoJobRequest.retryConfiguration,
specRetryConfiguration
);
if (this.logger) retrier.logger = this.logger;
const request = await composeRequest({
baseEndpoint: this._endpoint,
defaultHeaders: this._defaultHeaders,
path: "/videoJobs/{videoJobId}",
method: "GET",
pathParams: pathParams,
headerParams: headerParams,
queryParams: queryParams
});
try {
const response = await retrier.makeServiceCall(
this._httpClient,
request,
this.targetService,
operationName,
apiReferenceLink
);
const sdkResponse = composeResponse({
responseObject: <responses.GetVideoJobResponse>{},
body: await response.json(),
bodyKey: "videoJob",
bodyModel: model.VideoJob,
type: "model.VideoJob",
responseHeaders: [
{
value: response.headers.get("etag"),
key: "etag",
dataType: "string"
},
{
value: response.headers.get("opc-request-id"),
key: "opcRequestId",
dataType: "string"
}
]
});

return sdkResponse;
} catch (err) {
throw err;
}
}

/**
* Gets the status of the work request with the given ID.
* This operation does not retry by default if the user has not defined a retry configuration.
Expand Down
Loading