-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 65.81.0
- Loading branch information
Showing
293 changed files
with
16,053 additions
and
615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.