Skip to content

Commit

Permalink
Releasing version 65.36.0
Browse files Browse the repository at this point in the history
Releasing version 65.36.0
  • Loading branch information
oci-dex-release-bot authored Apr 18, 2023
2 parents 03db777 + 2f54a53 commit 88ac060
Show file tree
Hide file tree
Showing 80 changed files with 4,581 additions and 424 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.

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

## 65.36.0 - 2023-04-18
### Added
- Support for private endpoints in the Digital Assistant service
- Support for canceling backups in the Database service
- Support for improved labeling of key/value pairs in the Data Labeling service

### Breaking Changes
- Support for retries by default on operations of the Digital Assistant service
- The property `LifetimeLogicalClock` was removed from the models `Record`, `Dataset` and `Annotation` in the Data Labeling service
- The property `OpcRetryToken` was removed from the models `ConfigureDigitalAssistantParametersRequest`, `RotateChannelKeysRequest`, `StartChannelRequest`, `StopChannelRequest` in the Data Labeling service
- The property `DigitalAssistantId` was renamed to `Id` in the `ListDigitalAssistantsRequest` model in the Data Labeling service
- The property `IsLatestSkillOnly` was renamed to `IsLatestVersionOnly` in the `ListPackagesRequest` model in the Data Labeling service
- The property `IsLatestSkillOnly` was renamed to `IsLatestVersionOnly` in the `ListPackagesRequest` model in the Data Labeling service
- The property `SkillId` was renamed to `Id` in the `ListSkillsRequest` model in the Data Labeling service
- The properties `AuthorizationEndpointUrl` and `SubjectClaim` were made optional in the `AuthenticationProvider` model in the Data Labeling service

## 65.35.0 - 2023-04-11
### Added
- Support for rotation of certificates on autonomous VM clusters on Exadata Cloud at Customer in the Database service
Expand Down
2 changes: 1 addition & 1 deletion common/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions database/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ const (
BackupLifecycleStateDeleted BackupLifecycleStateEnum = "DELETED"
BackupLifecycleStateFailed BackupLifecycleStateEnum = "FAILED"
BackupLifecycleStateRestoring BackupLifecycleStateEnum = "RESTORING"
BackupLifecycleStateCanceling BackupLifecycleStateEnum = "CANCELING"
BackupLifecycleStateCanceled BackupLifecycleStateEnum = "CANCELED"
)

var mappingBackupLifecycleStateEnum = map[string]BackupLifecycleStateEnum{
Expand All @@ -161,6 +163,8 @@ var mappingBackupLifecycleStateEnum = map[string]BackupLifecycleStateEnum{
"DELETED": BackupLifecycleStateDeleted,
"FAILED": BackupLifecycleStateFailed,
"RESTORING": BackupLifecycleStateRestoring,
"CANCELING": BackupLifecycleStateCanceling,
"CANCELED": BackupLifecycleStateCanceled,
}

var mappingBackupLifecycleStateEnumLowerCase = map[string]BackupLifecycleStateEnum{
Expand All @@ -170,6 +174,8 @@ var mappingBackupLifecycleStateEnumLowerCase = map[string]BackupLifecycleStateEn
"deleted": BackupLifecycleStateDeleted,
"failed": BackupLifecycleStateFailed,
"restoring": BackupLifecycleStateRestoring,
"canceling": BackupLifecycleStateCanceling,
"canceled": BackupLifecycleStateCanceled,
}

// GetBackupLifecycleStateEnumValues Enumerates the set of values for BackupLifecycleStateEnum
Expand All @@ -190,6 +196,8 @@ func GetBackupLifecycleStateEnumStringValues() []string {
"DELETED",
"FAILED",
"RESTORING",
"CANCELING",
"CANCELED",
}
}

Expand Down
8 changes: 8 additions & 0 deletions database/backup_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ const (
BackupSummaryLifecycleStateDeleted BackupSummaryLifecycleStateEnum = "DELETED"
BackupSummaryLifecycleStateFailed BackupSummaryLifecycleStateEnum = "FAILED"
BackupSummaryLifecycleStateRestoring BackupSummaryLifecycleStateEnum = "RESTORING"
BackupSummaryLifecycleStateCanceling BackupSummaryLifecycleStateEnum = "CANCELING"
BackupSummaryLifecycleStateCanceled BackupSummaryLifecycleStateEnum = "CANCELED"
)

var mappingBackupSummaryLifecycleStateEnum = map[string]BackupSummaryLifecycleStateEnum{
Expand All @@ -163,6 +165,8 @@ var mappingBackupSummaryLifecycleStateEnum = map[string]BackupSummaryLifecycleSt
"DELETED": BackupSummaryLifecycleStateDeleted,
"FAILED": BackupSummaryLifecycleStateFailed,
"RESTORING": BackupSummaryLifecycleStateRestoring,
"CANCELING": BackupSummaryLifecycleStateCanceling,
"CANCELED": BackupSummaryLifecycleStateCanceled,
}

var mappingBackupSummaryLifecycleStateEnumLowerCase = map[string]BackupSummaryLifecycleStateEnum{
Expand All @@ -172,6 +176,8 @@ var mappingBackupSummaryLifecycleStateEnumLowerCase = map[string]BackupSummaryLi
"deleted": BackupSummaryLifecycleStateDeleted,
"failed": BackupSummaryLifecycleStateFailed,
"restoring": BackupSummaryLifecycleStateRestoring,
"canceling": BackupSummaryLifecycleStateCanceling,
"canceled": BackupSummaryLifecycleStateCanceled,
}

// GetBackupSummaryLifecycleStateEnumValues Enumerates the set of values for BackupSummaryLifecycleStateEnum
Expand All @@ -192,6 +198,8 @@ func GetBackupSummaryLifecycleStateEnumStringValues() []string {
"DELETED",
"FAILED",
"RESTORING",
"CANCELING",
"CANCELED",
}
}

Expand Down
102 changes: 102 additions & 0 deletions database/cancel_backup_request_response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// Copyright (c) 2016, 2018, 2023, 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 database

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

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

// The backup OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"`

// 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"`

// Unique identifier for the request.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations (for example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// may be rejected).
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

// 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 CancelBackupRequest) String() string {
return common.PointerString(request)
}

// HTTPRequest implements the OCIRequest interface
func (request CancelBackupRequest) 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 CancelBackupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) {

return nil, false

}

// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelBackupRequest) 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 CancelBackupRequest) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// CancelBackupResponse wrapper for the CancelBackup operation
type CancelBackupResponse struct {

// The underlying http response
RawResponse *http.Response

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

// 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 CancelBackupResponse) String() string {
return common.PointerString(response)
}

// HTTPResponse implements the OCIResponse interface
func (response CancelBackupResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
62 changes: 62 additions & 0 deletions database/database_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,68 @@ func (client DatabaseClient) autonomousDatabaseManualRefresh(ctx context.Context
return response, err
}

// CancelBackup Cancel automatic/standalone full/incremental create backup workrequests specified by the backup Id.
//
// See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/CancelBackup.go.html to see an example of how to use CancelBackup API.
func (client DatabaseClient) CancelBackup(ctx context.Context, request CancelBackupRequest) (response CancelBackupResponse, 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.cancelBackup, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = CancelBackupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = CancelBackupResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(CancelBackupResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into CancelBackupResponse")
}
return
}

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

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

var response CancelBackupResponse
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/database/20160918/Backup/CancelBackup"
err = common.PostProcessServiceError(err, "Database", "CancelBackup", apiReferenceLink)
return response, err
}

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

// ChangeAutonomousContainerDatabaseCompartment Move the Autonomous Container Database and its dependent resources to the specified compartment.
// For more information about moving Autonomous Container Databases, see
// Moving Database Resources to a Different Compartment (https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes).
Expand Down
28 changes: 11 additions & 17 deletions datalabelingservicedataplane/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ type Annotation struct {
// DELETED - Tha annotation been deleted and no longer available for labeling.
LifecycleState AnnotationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

// An integer value used in achieving concurrency control, this field will be used to generate eTags.
LifetimeLogicalClock *int `mandatory:"true" json:"lifetimeLogicalClock"`

// A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only.
// For example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
Expand Down Expand Up @@ -83,18 +80,17 @@ func (m Annotation) ValidateEnumValue() (bool, error) {
// UnmarshalJSON unmarshals from json
func (m *Annotation) UnmarshalJSON(data []byte) (e error) {
model := struct {
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
Id *string `json:"id"`
TimeCreated *common.SDKTime `json:"timeCreated"`
TimeUpdated *common.SDKTime `json:"timeUpdated"`
CreatedBy *string `json:"createdBy"`
UpdatedBy *string `json:"updatedBy"`
RecordId *string `json:"recordId"`
Entities []entity `json:"entities"`
CompartmentId *string `json:"compartmentId"`
LifecycleState AnnotationLifecycleStateEnum `json:"lifecycleState"`
LifetimeLogicalClock *int `json:"lifetimeLogicalClock"`
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
Id *string `json:"id"`
TimeCreated *common.SDKTime `json:"timeCreated"`
TimeUpdated *common.SDKTime `json:"timeUpdated"`
CreatedBy *string `json:"createdBy"`
UpdatedBy *string `json:"updatedBy"`
RecordId *string `json:"recordId"`
Entities []entity `json:"entities"`
CompartmentId *string `json:"compartmentId"`
LifecycleState AnnotationLifecycleStateEnum `json:"lifecycleState"`
}{}

e = json.Unmarshal(data, &model)
Expand Down Expand Up @@ -135,8 +131,6 @@ func (m *Annotation) UnmarshalJSON(data []byte) (e error) {

m.LifecycleState = model.LifecycleState

m.LifetimeLogicalClock = model.LifetimeLogicalClock

return
}

Expand Down
6 changes: 0 additions & 6 deletions datalabelingservicedataplane/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ type Dataset struct {
// The annotation format name required for labeling records.
AnnotationFormat *string `mandatory:"true" json:"annotationFormat"`

// An integer value used in achieving concurrency control, this field will be used to generate eTags.
LifetimeLogicalClock *int `mandatory:"true" json:"lifetimeLogicalClock"`

DatasetSourceDetails DatasetSourceDetails `mandatory:"true" json:"datasetSourceDetails"`

DatasetFormatDetails DatasetFormatDetails `mandatory:"true" json:"datasetFormatDetails"`
Expand Down Expand Up @@ -116,7 +113,6 @@ func (m *Dataset) UnmarshalJSON(data []byte) (e error) {
TimeUpdated *common.SDKTime `json:"timeUpdated"`
LifecycleState DatasetLifecycleStateEnum `json:"lifecycleState"`
AnnotationFormat *string `json:"annotationFormat"`
LifetimeLogicalClock *int `json:"lifetimeLogicalClock"`
DatasetSourceDetails datasetsourcedetails `json:"datasetSourceDetails"`
DatasetFormatDetails datasetformatdetails `json:"datasetFormatDetails"`
LabelSet *LabelSet `json:"labelSet"`
Expand Down Expand Up @@ -155,8 +151,6 @@ func (m *Dataset) UnmarshalJSON(data []byte) (e error) {

m.AnnotationFormat = model.AnnotationFormat

m.LifetimeLogicalClock = model.LifetimeLogicalClock

nn, e = model.DatasetSourceDetails.UnmarshalPolymorphicJSON(model.DatasetSourceDetails.JsonData)
if e != nil {
return
Expand Down
3 changes: 3 additions & 0 deletions datalabelingservicedataplane/document_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import (

// DocumentMetadata Collection of metadata related to document record.
type DocumentMetadata struct {

// Job id ocid of OCR batch call.
JobId *string `mandatory:"false" json:"jobId"`
}

func (m DocumentMetadata) String() string {
Expand Down
Loading

0 comments on commit 88ac060

Please sign in to comment.