Skip to content

Commit 8344b6a

Browse files
DEXREQ Automationjoshunter
authored andcommitted
Pull request #2523: Releasing Version 65.49.1
Merge in SDK/oci-go-sdk from merge_to_github2023-09-11 to github Squashed commit of the following: commit 3beb50cc13e477d299c93d0e0c60eb898b6bdb8e Author: oci-dex-release-bot <oci-dex-releases-bot_ww@oracle.com> Date: Mon Sep 11 17:36:24 2023 +0000 Releasing version 65 49 1
1 parent 455306b commit 8344b6a

File tree

322 files changed

+7035
-498
lines changed

Some content is hidden

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

322 files changed

+7035
-498
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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/)
66

7+
## 65.49.1 - 2023-09-12
8+
### Added
9+
- Support for SQL tuning sets in Database Management service
10+
- Support for announcement chaining in Announcements service
11+
- Support for automatic promotion of hosts in Stack Monitoring service
12+
- Support for face detection in AI Vision service
13+
- Support for change parameters on list character sets operation in Database Management service
14+
- Support for displaying software sources attached to a managed instance group in OS Management service
15+
16+
717
## 65.49.0 - 2023-09-05
818
### Added
919
- Support for queue channels in the Queue Service

aivision/analyze_image_result.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ type AnalyzeImageResult struct {
2929

3030
ImageText *ImageText `mandatory:"false" json:"imageText"`
3131

32+
// The detected faces.
33+
DetectedFaces []Face `mandatory:"false" json:"detectedFaces"`
34+
3235
// The image classification model version.
3336
ImageClassificationModelVersion *string `mandatory:"false" json:"imageClassificationModelVersion"`
3437

@@ -38,6 +41,9 @@ type AnalyzeImageResult struct {
3841
// The text detection model version.
3942
TextDetectionModelVersion *string `mandatory:"false" json:"textDetectionModelVersion"`
4043

44+
// The face detection model version.
45+
FaceDetectionModelVersion *string `mandatory:"false" json:"faceDetectionModelVersion"`
46+
4147
// The errors encountered during image analysis.
4248
Errors []ProcessingError `mandatory:"false" json:"errors"`
4349
}

aivision/cancel_document_job_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelDocumentJob.go.html to see an example of how to use CancelDocumentJobRequest.
1919
type CancelDocumentJobRequest struct {
2020

21-
// Document job id.
21+
// The document job ID.
2222
DocumentJobId *string `mandatory:"true" contributesTo:"path" name:"documentJobId"`
2323

2424
// For optimistic concurrency control. In the PUT or DELETE call

aivision/cancel_image_job_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelImageJob.go.html to see an example of how to use CancelImageJobRequest.
1919
type CancelImageJobRequest struct {
2020

21-
// Image job id.
21+
// The image job ID.
2222
ImageJobId *string `mandatory:"true" contributesTo:"path" name:"imageJobId"`
2323

2424
// For optimistic concurrency control. In the PUT or DELETE call

aivision/data_science_labeling_dataset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
type DataScienceLabelingDataset struct {
2121

2222
// OCID of the Data Labeling dataset.
23-
DatasetId *string `mandatory:"false" json:"datasetId"`
23+
DatasetId *string `mandatory:"true" json:"datasetId"`
2424
}
2525

2626
func (m DataScienceLabelingDataset) String() string {

aivision/face.go

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved.
2+
// 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.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Vision API
6+
//
7+
// 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.
8+
//
9+
10+
package aivision
11+
12+
import (
13+
"fmt"
14+
"github.com/oracle/oci-go-sdk/v65/common"
15+
"strings"
16+
)
17+
18+
// Face The detected face.
19+
type Face struct {
20+
21+
// The confidence score, between 0 and 1.
22+
Confidence *float32 `mandatory:"true" json:"confidence"`
23+
24+
BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"`
25+
26+
// The quality score of the face detected, between 0 and 1.
27+
QualityScore *float32 `mandatory:"true" json:"qualityScore"`
28+
29+
// A point of interest within a face.
30+
Landmarks []Landmark `mandatory:"false" json:"landmarks"`
31+
}
32+
33+
func (m Face) String() string {
34+
return common.PointerString(m)
35+
}
36+
37+
// ValidateEnumValue returns an error when providing an unsupported enum value
38+
// This function is being called during constructing API request process
39+
// Not recommended for calling this function directly
40+
func (m Face) ValidateEnumValue() (bool, error) {
41+
errMessage := []string{}
42+
43+
if len(errMessage) > 0 {
44+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
45+
}
46+
return false, nil
47+
}

aivision/face_detection_feature.go

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved.
2+
// 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.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Vision API
6+
//
7+
// 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.
8+
//
9+
10+
package aivision
11+
12+
import (
13+
"encoding/json"
14+
"fmt"
15+
"github.com/oracle/oci-go-sdk/v65/common"
16+
"strings"
17+
)
18+
19+
// FaceDetectionFeature The face detection parameters.
20+
type FaceDetectionFeature struct {
21+
22+
// The maximum number of results to return.
23+
MaxResults *int `mandatory:"false" json:"maxResults"`
24+
25+
// Whether or not return face landmarks.
26+
ShouldReturnLandmarks *bool `mandatory:"false" json:"shouldReturnLandmarks"`
27+
}
28+
29+
func (m FaceDetectionFeature) String() string {
30+
return common.PointerString(m)
31+
}
32+
33+
// ValidateEnumValue returns an error when providing an unsupported enum value
34+
// This function is being called during constructing API request process
35+
// Not recommended for calling this function directly
36+
func (m FaceDetectionFeature) ValidateEnumValue() (bool, error) {
37+
errMessage := []string{}
38+
39+
if len(errMessage) > 0 {
40+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
41+
}
42+
return false, nil
43+
}
44+
45+
// MarshalJSON marshals to json representation
46+
func (m FaceDetectionFeature) MarshalJSON() (buff []byte, e error) {
47+
type MarshalTypeFaceDetectionFeature FaceDetectionFeature
48+
s := struct {
49+
DiscriminatorParam string `json:"featureType"`
50+
MarshalTypeFaceDetectionFeature
51+
}{
52+
"FACE_DETECTION",
53+
(MarshalTypeFaceDetectionFeature)(m),
54+
}
55+
56+
return json.Marshal(&s)
57+
}

aivision/get_document_job_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetDocumentJob.go.html to see an example of how to use GetDocumentJobRequest.
1919
type GetDocumentJobRequest struct {
2020

21-
// Document job id.
21+
// The document job ID.
2222
DocumentJobId *string `mandatory:"true" contributesTo:"path" name:"documentJobId"`
2323

2424
// The client request ID for tracing.

aivision/get_image_job_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetImageJob.go.html to see an example of how to use GetImageJobRequest.
1919
type GetImageJobRequest struct {
2020

21-
// Image job id.
21+
// The image job ID.
2222
ImageJobId *string `mandatory:"true" contributesTo:"path" name:"imageJobId"`
2323

2424
// The client request ID for tracing.

aivision/image_feature.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func (m *imagefeature) UnmarshalPolymorphicJSON(data []byte) (interface{}, error
5454
mm := ImageTextDetectionFeature{}
5555
err = json.Unmarshal(data, &mm)
5656
return mm, err
57+
case "FACE_DETECTION":
58+
mm := FaceDetectionFeature{}
59+
err = json.Unmarshal(data, &mm)
60+
return mm, err
5761
case "OBJECT_DETECTION":
5862
mm := ImageObjectDetectionFeature{}
5963
err = json.Unmarshal(data, &mm)
@@ -92,18 +96,21 @@ const (
9296
ImageFeatureFeatureTypeImageClassification ImageFeatureFeatureTypeEnum = "IMAGE_CLASSIFICATION"
9397
ImageFeatureFeatureTypeObjectDetection ImageFeatureFeatureTypeEnum = "OBJECT_DETECTION"
9498
ImageFeatureFeatureTypeTextDetection ImageFeatureFeatureTypeEnum = "TEXT_DETECTION"
99+
ImageFeatureFeatureTypeFaceDetection ImageFeatureFeatureTypeEnum = "FACE_DETECTION"
95100
)
96101

97102
var mappingImageFeatureFeatureTypeEnum = map[string]ImageFeatureFeatureTypeEnum{
98103
"IMAGE_CLASSIFICATION": ImageFeatureFeatureTypeImageClassification,
99104
"OBJECT_DETECTION": ImageFeatureFeatureTypeObjectDetection,
100105
"TEXT_DETECTION": ImageFeatureFeatureTypeTextDetection,
106+
"FACE_DETECTION": ImageFeatureFeatureTypeFaceDetection,
101107
}
102108

103109
var mappingImageFeatureFeatureTypeEnumLowerCase = map[string]ImageFeatureFeatureTypeEnum{
104110
"image_classification": ImageFeatureFeatureTypeImageClassification,
105111
"object_detection": ImageFeatureFeatureTypeObjectDetection,
106112
"text_detection": ImageFeatureFeatureTypeTextDetection,
113+
"face_detection": ImageFeatureFeatureTypeFaceDetection,
107114
}
108115

109116
// GetImageFeatureFeatureTypeEnumValues Enumerates the set of values for ImageFeatureFeatureTypeEnum
@@ -121,6 +128,7 @@ func GetImageFeatureFeatureTypeEnumStringValues() []string {
121128
"IMAGE_CLASSIFICATION",
122129
"OBJECT_DETECTION",
123130
"TEXT_DETECTION",
131+
"FACE_DETECTION",
124132
}
125133
}
126134

0 commit comments

Comments
 (0)