Skip to content

Commit

Permalink
Releasing version 65.81.0
Browse files Browse the repository at this point in the history
Releasing version 65.81.0
  • Loading branch information
oci-dex-release-bot authored Dec 17, 2024
2 parents a8b5908 + 89e511c commit 97f5b2e
Show file tree
Hide file tree
Showing 293 changed files with 16,053 additions and 615 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)

## 65.81.0 - 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

### Breaking Changes
- The properties `Plugin` and `Etag` were removed from the model `UpdatePluginResponse` in the Cloud Bridge service
- The property `DesiredState` was made mandatory in the request model `UpdatePluginDetails` in the Cloud Bridge service
- The properties `AssetType` and `Data` were made mandatory in the request model `ImportInventoryViaAssetsDetails` in the Cloud Bridge service
- The properties `Compute`, `Vm`, `VmwareVm`, and `VmwareVCenter` were made mandatory in the request model `CreateVmwareVmAssetDetails` in the Cloud Bridge service

## 65.80.0 - 2024-12-10
### Added
- Support for Bring Your Own Key (BYOK) in the Database service
Expand Down
176 changes: 176 additions & 0 deletions aivision/aivision_aiservicevision_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,63 @@ func (client AIServiceVisionClient) cancelImageJob(ctx context.Context, request
return response, err
}

// CancelVideoJob Cancel a video analysis job.
//
// # See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelVideoJob.go.html to see an example of how to use CancelVideoJob API.
func (client AIServiceVisionClient) CancelVideoJob(ctx context.Context, request CancelVideoJobRequest) (response CancelVideoJobResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if client.RetryPolicy() != nil {
policy = *client.RetryPolicy()
}
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}
ociResponse, err = common.Retry(ctx, request, client.cancelVideoJob, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = CancelVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = CancelVideoJobResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(CancelVideoJobResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into CancelVideoJobResponse")
}
return
}

// cancelVideoJob implements the OCIOperation interface (enables retrying operations)
func (client AIServiceVisionClient) cancelVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {

httpRequest, err := request.HTTPRequest(http.MethodPost, "/videoJobs/{videoJobId}/actions/cancel", binaryReqBody, extraHeaders)
if err != nil {
return nil, err
}

var response CancelVideoJobResponse
var httpResponse *http.Response
httpResponse, err = client.Call(ctx, &httpRequest)
defer common.CloseBodyIfValid(httpResponse)
response.RawResponse = httpResponse
if err != nil {
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CancelVideoJob"
err = common.PostProcessServiceError(err, "AIServiceVision", "CancelVideoJob", apiReferenceLink)
return response, err
}

err = common.UnmarshalResponse(httpResponse, &response)
return response, err
}

// CancelWorkRequest Cancel the work request with the given ID.
//
// # See also
Expand Down Expand Up @@ -740,6 +797,68 @@ func (client AIServiceVisionClient) createProject(ctx context.Context, request c
return response, err
}

// CreateVideoJob Create a video analysis job with given inputs and features.
//
// # See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateVideoJob.go.html to see an example of how to use CreateVideoJob API.
func (client AIServiceVisionClient) CreateVideoJob(ctx context.Context, request CreateVideoJobRequest) (response CreateVideoJobResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if client.RetryPolicy() != nil {
policy = *client.RetryPolicy()
}
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}

if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") {
request.OpcRetryToken = common.String(common.RetryToken())
}

ociResponse, err = common.Retry(ctx, request, client.createVideoJob, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = CreateVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = CreateVideoJobResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(CreateVideoJobResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into CreateVideoJobResponse")
}
return
}

// createVideoJob implements the OCIOperation interface (enables retrying operations)
func (client AIServiceVisionClient) createVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {

httpRequest, err := request.HTTPRequest(http.MethodPost, "/videoJobs", binaryReqBody, extraHeaders)
if err != nil {
return nil, err
}

var response CreateVideoJobResponse
var httpResponse *http.Response
httpResponse, err = client.Call(ctx, &httpRequest)
defer common.CloseBodyIfValid(httpResponse)
response.RawResponse = httpResponse
if err != nil {
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CreateVideoJob"
err = common.PostProcessServiceError(err, "AIServiceVision", "CreateVideoJob", apiReferenceLink)
return response, err
}

err = common.UnmarshalResponse(httpResponse, &response)
return response, err
}

// DeleteModel Delete a model by identifier.
//
// # See also
Expand Down Expand Up @@ -1082,6 +1201,63 @@ func (client AIServiceVisionClient) getProject(ctx context.Context, request comm
return response, err
}

// GetVideoJob Get details of a video analysis job.
//
// # See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetVideoJob.go.html to see an example of how to use GetVideoJob API.
func (client AIServiceVisionClient) GetVideoJob(ctx context.Context, request GetVideoJobRequest) (response GetVideoJobResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if client.RetryPolicy() != nil {
policy = *client.RetryPolicy()
}
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}
ociResponse, err = common.Retry(ctx, request, client.getVideoJob, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = GetVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = GetVideoJobResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(GetVideoJobResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into GetVideoJobResponse")
}
return
}

// getVideoJob implements the OCIOperation interface (enables retrying operations)
func (client AIServiceVisionClient) getVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {

httpRequest, err := request.HTTPRequest(http.MethodGet, "/videoJobs/{videoJobId}", binaryReqBody, extraHeaders)
if err != nil {
return nil, err
}

var response GetVideoJobResponse
var httpResponse *http.Response
httpResponse, err = client.Call(ctx, &httpRequest)
defer common.CloseBodyIfValid(httpResponse)
response.RawResponse = httpResponse
if err != nil {
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob"
err = common.PostProcessServiceError(err, "AIServiceVision", "GetVideoJob", apiReferenceLink)
return response, err
}

err = common.UnmarshalResponse(httpResponse, &response)
return response, err
}

// GetWorkRequest Gets the status of the work request with the given ID.
//
// # See also
Expand Down
73 changes: 73 additions & 0 deletions aivision/analyze_video_result.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// 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.
// Code generated. DO NOT EDIT.

// Vision API
//
// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported.
//

package aivision

import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)

// AnalyzeVideoResult Video analysis results.
type AnalyzeVideoResult struct {
VideoMetadata *VideoMetadata `mandatory:"true" json:"videoMetadata"`

// Detected labels in a video.
VideoLabels []VideoLabel `mandatory:"false" json:"videoLabels"`

// Detected objects in a video.
VideoObjects []VideoObject `mandatory:"false" json:"videoObjects"`

// Tracked objects in a video.
VideoTrackedObjects []VideoTrackedObject `mandatory:"false" json:"videoTrackedObjects"`

// Detected text in a video.
VideoText []VideoText `mandatory:"false" json:"videoText"`

// Detected faces in a video.
VideoFaces []VideoFace `mandatory:"false" json:"videoFaces"`

// The ontologyClasses of video labels.
OntologyClasses []OntologyClass `mandatory:"false" json:"ontologyClasses"`

// Label Detection model version.
LabelDetectionModelVersion *string `mandatory:"false" json:"labelDetectionModelVersion"`

// Object Detection model version.
ObjectDetectionModelVersion *string `mandatory:"false" json:"objectDetectionModelVersion"`

// Object Tracking model version.
ObjectTrackingModelVersion *string `mandatory:"false" json:"objectTrackingModelVersion"`

// Text Detection model version.
TextDetectionModelVersion *string `mandatory:"false" json:"textDetectionModelVersion"`

// Face Detection model version.
FaceDetectionModelVersion *string `mandatory:"false" json:"faceDetectionModelVersion"`

// Array of possible errors.
Errors []ProcessingError `mandatory:"false" json:"errors"`
}

func (m AnalyzeVideoResult) String() string {
return common.PointerString(m)
}

// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m AnalyzeVideoResult) ValidateEnumValue() (bool, error) {
errMessage := []string{}

if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
94 changes: 94 additions & 0 deletions aivision/cancel_video_job_request_response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// 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.
// Code generated. DO NOT EDIT.

package aivision

import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"net/http"
"strings"
)

// CancelVideoJobRequest wrapper for the CancelVideoJob operation
//
// # See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelVideoJob.go.html to see an example of how to use CancelVideoJobRequest.
type CancelVideoJobRequest struct {

// Video job id.
VideoJobId *string `mandatory:"true" contributesTo:"path" name:"videoJobId"`

// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}

func (request CancelVideoJobRequest) String() string {
return common.PointerString(request)
}

// HTTPRequest implements the OCIRequest interface
func (request CancelVideoJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) {

_, err := request.ValidateEnumValue()
if err != nil {
return http.Request{}, err
}
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders)
}

// BinaryRequestBody implements the OCIRequest interface
func (request CancelVideoJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) {

return nil, false

}

// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelVideoJobRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}

// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (request CancelVideoJobRequest) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// CancelVideoJobResponse wrapper for the CancelVideoJob operation
type CancelVideoJobResponse struct {

// The underlying http response
RawResponse *http.Response

// A unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (response CancelVideoJobResponse) String() string {
return common.PointerString(response)
}

// HTTPResponse implements the OCIResponse interface
func (response CancelVideoJobResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
Loading

0 comments on commit 97f5b2e

Please sign in to comment.