Skip to content

Commit a49110c

Browse files
committed
Merge pull request #2475 in SDK/oci-go-sdk from merge_to_github2023-08-07 to github
Squashed commit of the following: commit 7eec04f9379c75694c20f737f93ef2cfe27568c8 Author: oci-dex-release-bot <oci-dex-releases-bot_ww@oracle.com> Date: Mon Aug 7 14:07:01 2023 +0000 Releasing version 65 47 0
1 parent 67d985a commit a49110c

File tree

723 files changed

+42883
-2036
lines changed

Some content is hidden

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

723 files changed

+42883
-2036
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ 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.47.0 - 2023-08-08
8+
### Added
9+
- Support for backup retention on autonomous database create operations in the Database service
10+
- Support for exclude tables for replication in the Database Migration service
11+
- Support for adding and updating auto failover maximum data loss limits for local autonomous data guards in the Database service
12+
- Support for limiting networking diagram ingestion in the Networking Monitoring service
13+
- Support for new operations for deployment upgrades in the GoldenGate service
14+
- Support for getting model type information and base model versions while creating language custom models in the AI Language service
15+
- Support for support field in class metric in the AI Language service
16+
- Support for Compute Cloud at Customer resource type in the Operator Access Control service
17+
- Support for managing account management info, account recovery settings, app roles, apps, app status changers, grants, identity propagation trusts and settings, request-able groups, requests, security questions, OAuth tokens, and user attribute settings in the Identity Domains service
18+
19+
### Breaking Changes
20+
- Support for retries by default on operations in Operator Access Control service
21+
- IsInternetAccessAllowed is removed from CreateIpv6Details, UpdateIpv6Details and Ipv6 models in Networking Monitoring service
22+
- PublicIpAddress is removed from Ipv6 model in Networking Monitoring service
23+
- Ipv6CidrBlock is removed from Vcn and CreateVcnDetails model in Networking Monitoring service
24+
- Ipv6PublicCidrBlock is removed from Vcn and Subnet model in Networking Monitoring service
25+
26+
727
## 65.46.0 - 2023-08-01
828
### Added
929
- Support for the Exadata Fleet Update service

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ build: lint $(TARGETS_BUILD)
2727

2828
test: build $(TARGETS_TEST)
2929

30+
test-only: $(TARGETS_TEST)
31+
3032
test-all: build build-autotest test test-integ
3133

3234
test-integ:

accessgovernancecp/accessgovernancecp_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ type AccessGovernanceCPClient struct {
2626
// NewAccessGovernanceCPClientWithConfigurationProvider Creates a new default AccessGovernanceCP client with the given configuration provider.
2727
// the configuration provider will be used for the default signer as well as reading the region
2828
func NewAccessGovernanceCPClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AccessGovernanceCPClient, err error) {
29+
if enabled := common.CheckForEnabledServices("accessgovernancecp"); !enabled {
30+
return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service")
31+
}
2932
provider, err := auth.GetGenericConfigurationProvider(configProvider)
3033
if err != nil {
3134
return client, err

adm/adm_applicationdependencymanagement_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ type ApplicationDependencyManagementClient struct {
2626
// NewApplicationDependencyManagementClientWithConfigurationProvider Creates a new default ApplicationDependencyManagement client with the given configuration provider.
2727
// the configuration provider will be used for the default signer as well as reading the region
2828
func NewApplicationDependencyManagementClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ApplicationDependencyManagementClient, err error) {
29+
if enabled := common.CheckForEnabledServices("adm"); !enabled {
30+
return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service")
31+
}
2932
provider, err := auth.GetGenericConfigurationProvider(configProvider)
3033
if err != nil {
3134
return client, err

aianomalydetection/aianomalydetection_anomalydetection_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ type AnomalyDetectionClient struct {
2828
// NewAnomalyDetectionClientWithConfigurationProvider Creates a new default AnomalyDetection client with the given configuration provider.
2929
// the configuration provider will be used for the default signer as well as reading the region
3030
func NewAnomalyDetectionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AnomalyDetectionClient, err error) {
31+
if enabled := common.CheckForEnabledServices("aianomalydetection"); !enabled {
32+
return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service")
33+
}
3134
provider, err := auth.GetGenericConfigurationProvider(configProvider)
3235
if err != nil {
3336
return client, err

aidocument/aidocument_aiservicedocument_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ type AIServiceDocumentClient struct {
2626
// NewAIServiceDocumentClientWithConfigurationProvider Creates a new default AIServiceDocument client with the given configuration provider.
2727
// the configuration provider will be used for the default signer as well as reading the region
2828
func NewAIServiceDocumentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AIServiceDocumentClient, err error) {
29+
if enabled := common.CheckForEnabledServices("aidocument"); !enabled {
30+
return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service")
31+
}
2932
provider, err := auth.GetGenericConfigurationProvider(configProvider)
3033
if err != nil {
3134
return client, err

ailanguage/ailanguage_aiservicelanguage_client.go

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ type AIServiceLanguageClient struct {
2828
// NewAIServiceLanguageClientWithConfigurationProvider Creates a new default AIServiceLanguage client with the given configuration provider.
2929
// the configuration provider will be used for the default signer as well as reading the region
3030
func NewAIServiceLanguageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AIServiceLanguageClient, err error) {
31+
if enabled := common.CheckForEnabledServices("ailanguage"); !enabled {
32+
return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service")
33+
}
3134
provider, err := auth.GetGenericConfigurationProvider(configProvider)
3235
if err != nil {
3336
return client, err
@@ -1498,6 +1501,64 @@ func (client AIServiceLanguageClient) getModel(ctx context.Context, request comm
14981501
return response, err
14991502
}
15001503

1504+
// GetModelType Gets model capabilities
1505+
//
1506+
// See also
1507+
//
1508+
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/GetModelType.go.html to see an example of how to use GetModelType API.
1509+
// A default retry strategy applies to this operation GetModelType()
1510+
func (client AIServiceLanguageClient) GetModelType(ctx context.Context, request GetModelTypeRequest) (response GetModelTypeResponse, err error) {
1511+
var ociResponse common.OCIResponse
1512+
policy := common.DefaultRetryPolicy()
1513+
if client.RetryPolicy() != nil {
1514+
policy = *client.RetryPolicy()
1515+
}
1516+
if request.RetryPolicy() != nil {
1517+
policy = *request.RetryPolicy()
1518+
}
1519+
ociResponse, err = common.Retry(ctx, request, client.getModelType, policy)
1520+
if err != nil {
1521+
if ociResponse != nil {
1522+
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
1523+
opcRequestId := httpResponse.Header.Get("opc-request-id")
1524+
response = GetModelTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
1525+
} else {
1526+
response = GetModelTypeResponse{}
1527+
}
1528+
}
1529+
return
1530+
}
1531+
if convertedResponse, ok := ociResponse.(GetModelTypeResponse); ok {
1532+
response = convertedResponse
1533+
} else {
1534+
err = fmt.Errorf("failed to convert OCIResponse into GetModelTypeResponse")
1535+
}
1536+
return
1537+
}
1538+
1539+
// getModelType implements the OCIOperation interface (enables retrying operations)
1540+
func (client AIServiceLanguageClient) getModelType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {
1541+
1542+
httpRequest, err := request.HTTPRequest(http.MethodGet, "/modelTypes/{modelType}", binaryReqBody, extraHeaders)
1543+
if err != nil {
1544+
return nil, err
1545+
}
1546+
1547+
var response GetModelTypeResponse
1548+
var httpResponse *http.Response
1549+
httpResponse, err = client.Call(ctx, &httpRequest)
1550+
defer common.CloseBodyIfValid(httpResponse)
1551+
response.RawResponse = httpResponse
1552+
if err != nil {
1553+
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType"
1554+
err = common.PostProcessServiceError(err, "AIServiceLanguage", "GetModelType", apiReferenceLink)
1555+
return response, err
1556+
}
1557+
1558+
err = common.UnmarshalResponse(httpResponse, &response)
1559+
return response, err
1560+
}
1561+
15011562
// GetProject Gets a Project by identifier
15021563
//
15031564
// See also

ailanguage/batch_language_translation_details.go

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,30 @@ type BatchLanguageTranslationDetails struct {
2727
CompartmentId *string `mandatory:"false" json:"compartmentId"`
2828

2929
// Language code supported
30-
// Automatically detect language - auto
31-
// Arabic - ar
32-
// Brazilian Portuguese - pt-BR
33-
// Czech - cs
34-
// Danish - da
35-
// Dutch - nl
36-
// English - en
37-
// Finnish - fi
38-
// French - fr
39-
// Canadian French - fr-CA
40-
// German - de
41-
// Italian - it
42-
// Japanese - ja
43-
// Korean - ko
44-
// Norwegian - no
45-
// Polish - pl
46-
// Romanian - ro
47-
// Simplified Chinese - zh-CN
48-
// Spanish - es
49-
// Swedish - sv
50-
// Traditional Chinese - zh-TW
51-
// Turkish - tr
52-
// Greek - el
53-
// Hebrew - he
30+
// - auto : Automatically detect language
31+
// - ar : Arabic
32+
// - pt-BR : Brazilian Portuguese
33+
// - cs : Czech
34+
// - da : Danish
35+
// - nl : Dutch
36+
// - en : English
37+
// - fi : Finnish
38+
// - fr : French
39+
// - fr-CA : Canadian French
40+
// - de : German
41+
// - it : Italian
42+
// - ja : Japanese
43+
// - ko : Korean
44+
// - no : Norwegian
45+
// - pl : Polish
46+
// - ro : Romanian
47+
// - zh-CN : Simplified Chinese
48+
// - es : Spanish
49+
// - sv : Swedish
50+
// - zh-TW : Traditional Chinese
51+
// - tr : Turkish
52+
// - el : Greek
53+
// - he : Hebrew
5454
TargetLanguageCode *string `mandatory:"false" json:"targetLanguageCode"`
5555
}
5656

ailanguage/capabilities.go

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
// Language API
6+
//
7+
// OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
8+
// pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
9+
// This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
10+
//
11+
12+
package ailanguage
13+
14+
import (
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v65/common"
17+
"strings"
18+
)
19+
20+
// Capabilities Capabilities supported
21+
type Capabilities struct {
22+
23+
// Model information capabilities related to version
24+
Capability map[string]Capability `mandatory:"false" json:"capability"`
25+
}
26+
27+
func (m Capabilities) String() string {
28+
return common.PointerString(m)
29+
}
30+
31+
// ValidateEnumValue returns an error when providing an unsupported enum value
32+
// This function is being called during constructing API request process
33+
// Not recommended for calling this function directly
34+
func (m Capabilities) ValidateEnumValue() (bool, error) {
35+
errMessage := []string{}
36+
37+
if len(errMessage) > 0 {
38+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
39+
}
40+
return false, nil
41+
}

ailanguage/capability.go

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
// Language API
6+
//
7+
// OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
8+
// pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
9+
// This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
10+
//
11+
12+
package ailanguage
13+
14+
import (
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v65/common"
17+
"strings"
18+
)
19+
20+
// Capability Capability supported
21+
type Capability struct {
22+
23+
// values
24+
Details []string `mandatory:"false" json:"details"`
25+
}
26+
27+
func (m Capability) String() string {
28+
return common.PointerString(m)
29+
}
30+
31+
// ValidateEnumValue returns an error when providing an unsupported enum value
32+
// This function is being called during constructing API request process
33+
// Not recommended for calling this function directly
34+
func (m Capability) ValidateEnumValue() (bool, error) {
35+
errMessage := []string{}
36+
37+
if len(errMessage) > 0 {
38+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
39+
}
40+
return false, nil
41+
}

0 commit comments

Comments
 (0)