Skip to content

Commit ee3aaa9

Browse files
committed
Merge pull request #1833 in SDK/oci-go-sdk from merge_to_github2022-02-07 to github
Releasing Version 57.0.0 Squashed commit of the following: commit 35048baab7d27c76c76122db8d19775eef994fac Author: oci-dex-release-bot <[email protected]> Date: Mon Feb 7 18:49:40 2022 +0000 Releasing version 57 0 0
1 parent ba44943 commit ee3aaa9

File tree

9,539 files changed

+208340
-17342
lines changed

Some content is hidden

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

9,539 files changed

+208340
-17342
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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+
## 57.0.0 - 2022-02-08
8+
### Added
9+
- Support for managing tablespaces in the Database Management service
10+
- Support for upgrading and managing payment for subscriptions in the Account Management service
11+
- Support for listing fast launch job configurations in the Data Science service
12+
13+
### Breaking Changes
14+
- Support for retries enabled by default on all operations in the Application Performance Monitoring service
15+
- Support for enum value validation when sending API requests
16+
- The data type of the property BillToAddress was changed from `Address` to `BillToAddress` for the Invoice model of the Account Management service
17+
718
## 56.1.0 - 2022-02-01
819
### Added
920
- Support for calling Oracle Cloud Infrastructure services in the ap-dcc-canberra-1 region

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![wercker status](https://app.wercker.com/status/09bc4818e7b1d70b04285331a9bdbc41/s/master "wercker status")](https://app.wercker.com/project/byKey/09bc4818e7b1d70b04285331a9bdbc41)
33

44
This is the Go SDK for Oracle Cloud Infrastructure. This project is open source and maintained by Oracle Corp.
5-
The home page for the project is [here](https://godoc.org/github.com/oracle/oci-go-sdk/v56/).
5+
The home page for the project is [here](https://godoc.org/github.com/oracle/oci-go-sdk/v57/).
66

77
## Survey
88
Are you a Developer using the OCI SDK? If so, please fill out our survey to help us make the OCI SDK better for you. Click [here](https://oracle.questionpro.com/t/APeMlZka26?custom3=pkg) for the survey page.
@@ -71,7 +71,7 @@ type ConfigurationProvider interface {
7171
AuthType() (AuthConfig, error)
7272
}
7373
```
74-
Or simply use one of structs exposed by the `oci-go-sdk` that already implement the above [interface](https://godoc.org/github.com/oracle/oci-go-sdk/v56/common#ConfigurationProvider)
74+
Or simply use one of structs exposed by the `oci-go-sdk` that already implement the above [interface](https://godoc.org/github.com/oracle/oci-go-sdk/v57/common#ConfigurationProvider)
7575

7676
### Making a Request
7777
To make a request to an Oracle Cloud Infrastructure service, create a client for the service and then use the client to call a function from the service.
@@ -132,7 +132,7 @@ in this package are meant to be used by the service packages.
132132
Examples can be found [here](https://github.com/oracle/oci-go-sdk/tree/master/example)
133133

134134
## Documentation
135-
Full documentation can be found [on the godocs site](https://godoc.org/github.com/oracle/oci-go-sdk/v56/).
135+
Full documentation can be found [on the godocs site](https://godoc.org/github.com/oracle/oci-go-sdk/v57/).
136136

137137
## Help
138138
* The [Issues](https://github.com/oracle/oci-go-sdk/issues) page of this GitHub repository.

Diff for: aianomalydetection/action_type.go

+13-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
ActionTypeRelated ActionTypeEnum = "RELATED"
2424
)
2525

26-
var mappingActionType = map[string]ActionTypeEnum{
26+
var mappingActionTypeEnum = map[string]ActionTypeEnum{
2727
"CREATED": ActionTypeCreated,
2828
"UPDATED": ActionTypeUpdated,
2929
"DELETED": ActionTypeDeleted,
@@ -34,8 +34,19 @@ var mappingActionType = map[string]ActionTypeEnum{
3434
// GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
3535
func GetActionTypeEnumValues() []ActionTypeEnum {
3636
values := make([]ActionTypeEnum, 0)
37-
for _, v := range mappingActionType {
37+
for _, v := range mappingActionTypeEnum {
3838
values = append(values, v)
3939
}
4040
return values
4141
}
42+
43+
// GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum
44+
func GetActionTypeEnumStringValues() []string {
45+
return []string{
46+
"CREATED",
47+
"UPDATED",
48+
"DELETED",
49+
"IN_PROGRESS",
50+
"RELATED",
51+
}
52+
}

Diff for: aianomalydetection/ai_private_endpoint.go

+32-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// AiPrivateEndpoint A private network reverse connection creates a connection from service to customer subnet over a private network.
@@ -66,6 +68,21 @@ func (m AiPrivateEndpoint) String() string {
6668
return common.PointerString(m)
6769
}
6870

71+
// ValidateEnumValue returns an error when providing an unsupported enum value
72+
// This function is being called during constructing API request process
73+
// Not recommended for calling this function directly
74+
func (m AiPrivateEndpoint) ValidateEnumValue() (bool, error) {
75+
errMessage := []string{}
76+
77+
if _, ok := mappingAiPrivateEndpointLifecycleStateEnum[string(m.LifecycleState)]; !ok && m.LifecycleState != "" {
78+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAiPrivateEndpointLifecycleStateEnumStringValues(), ",")))
79+
}
80+
if len(errMessage) > 0 {
81+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
82+
}
83+
return false, nil
84+
}
85+
6986
// AiPrivateEndpointLifecycleStateEnum Enum with underlying type: string
7087
type AiPrivateEndpointLifecycleStateEnum string
7188

@@ -79,7 +96,7 @@ const (
7996
AiPrivateEndpointLifecycleStateFailed AiPrivateEndpointLifecycleStateEnum = "FAILED"
8097
)
8198

82-
var mappingAiPrivateEndpointLifecycleState = map[string]AiPrivateEndpointLifecycleStateEnum{
99+
var mappingAiPrivateEndpointLifecycleStateEnum = map[string]AiPrivateEndpointLifecycleStateEnum{
83100
"CREATING": AiPrivateEndpointLifecycleStateCreating,
84101
"UPDATING": AiPrivateEndpointLifecycleStateUpdating,
85102
"ACTIVE": AiPrivateEndpointLifecycleStateActive,
@@ -91,8 +108,20 @@ var mappingAiPrivateEndpointLifecycleState = map[string]AiPrivateEndpointLifecyc
91108
// GetAiPrivateEndpointLifecycleStateEnumValues Enumerates the set of values for AiPrivateEndpointLifecycleStateEnum
92109
func GetAiPrivateEndpointLifecycleStateEnumValues() []AiPrivateEndpointLifecycleStateEnum {
93110
values := make([]AiPrivateEndpointLifecycleStateEnum, 0)
94-
for _, v := range mappingAiPrivateEndpointLifecycleState {
111+
for _, v := range mappingAiPrivateEndpointLifecycleStateEnum {
95112
values = append(values, v)
96113
}
97114
return values
98115
}
116+
117+
// GetAiPrivateEndpointLifecycleStateEnumStringValues Enumerates the set of values in String for AiPrivateEndpointLifecycleStateEnum
118+
func GetAiPrivateEndpointLifecycleStateEnumStringValues() []string {
119+
return []string{
120+
"CREATING",
121+
"UPDATING",
122+
"ACTIVE",
123+
"DELETING",
124+
"DELETED",
125+
"FAILED",
126+
}
127+
}

Diff for: aianomalydetection/ai_private_endpoint_collection.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// AiPrivateEndpointCollection A collection of AI Service PrivateEndpoints Each item is a AI Service PrivateEndpoint Summary object.
@@ -25,3 +27,15 @@ type AiPrivateEndpointCollection struct {
2527
func (m AiPrivateEndpointCollection) String() string {
2628
return common.PointerString(m)
2729
}
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 AiPrivateEndpointCollection) 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+
}

Diff for: aianomalydetection/ai_private_endpoint_summary.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// AiPrivateEndpointSummary A private network reverse connection creates a connection from service to customer subnet over a private network.
@@ -62,3 +64,18 @@ type AiPrivateEndpointSummary struct {
6264
func (m AiPrivateEndpointSummary) String() string {
6365
return common.PointerString(m)
6466
}
67+
68+
// ValidateEnumValue returns an error when providing an unsupported enum value
69+
// This function is being called during constructing API request process
70+
// Not recommended for calling this function directly
71+
func (m AiPrivateEndpointSummary) ValidateEnumValue() (bool, error) {
72+
errMessage := []string{}
73+
74+
if _, ok := mappingAiPrivateEndpointLifecycleStateEnum[string(m.LifecycleState)]; !ok && m.LifecycleState != "" {
75+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAiPrivateEndpointLifecycleStateEnumStringValues(), ",")))
76+
}
77+
if len(errMessage) > 0 {
78+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
79+
}
80+
return false, nil
81+
}

Diff for: aianomalydetection/aianomalydetection_anomalydetection_client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ package aianomalydetection
1414
import (
1515
"context"
1616
"fmt"
17-
"github.com/oracle/oci-go-sdk/v56/common"
18-
"github.com/oracle/oci-go-sdk/v56/common/auth"
17+
"github.com/oracle/oci-go-sdk/v57/common"
18+
"github.com/oracle/oci-go-sdk/v57/common/auth"
1919
"net/http"
2020
)
2121

Diff for: aianomalydetection/anomaly.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// Anomaly An object to hold value information for each anomaly point
@@ -37,3 +39,15 @@ type Anomaly struct {
3739
func (m Anomaly) String() string {
3840
return common.PointerString(m)
3941
}
42+
43+
// ValidateEnumValue returns an error when providing an unsupported enum value
44+
// This function is being called during constructing API request process
45+
// Not recommended for calling this function directly
46+
func (m Anomaly) ValidateEnumValue() (bool, error) {
47+
errMessage := []string{}
48+
49+
if len(errMessage) > 0 {
50+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
51+
}
52+
return false, nil
53+
}

Diff for: aianomalydetection/anomaly_detect_result.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// AnomalyDetectResult Results of the detect anomalies call.
@@ -25,3 +27,15 @@ type AnomalyDetectResult struct {
2527
func (m AnomalyDetectResult) String() string {
2628
return common.PointerString(m)
2729
}
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 AnomalyDetectResult) 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+
}

Diff for: aianomalydetection/cancel_work_request_request_response.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
package aianomalydetection
66

77
import (
8-
"github.com/oracle/oci-go-sdk/v56/common"
8+
"fmt"
9+
"github.com/oracle/oci-go-sdk/v57/common"
910
"net/http"
11+
"strings"
1012
)
1113

1214
// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
@@ -41,6 +43,10 @@ func (request CancelWorkRequestRequest) String() string {
4143
// HTTPRequest implements the OCIRequest interface
4244
func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) {
4345

46+
_, err := request.ValidateEnumValue()
47+
if err != nil {
48+
return http.Request{}, err
49+
}
4450
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders)
4551
}
4652

@@ -56,6 +62,17 @@ func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy {
5662
return request.RequestMetadata.RetryPolicy
5763
}
5864

65+
// ValidateEnumValue returns an error when providing an unsupported enum value
66+
// This function is being called during constructing API request process
67+
// Not recommended for calling this function directly
68+
func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error) {
69+
errMessage := []string{}
70+
if len(errMessage) > 0 {
71+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
72+
}
73+
return false, nil
74+
}
75+
5976
// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
6077
type CancelWorkRequestResponse struct {
6178

Diff for: aianomalydetection/change_ai_private_endpoint_compartment_details.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// ChangeAiPrivateEndpointCompartmentDetails Information about the change compartment for the private endpoint resource.
@@ -25,3 +27,15 @@ type ChangeAiPrivateEndpointCompartmentDetails struct {
2527
func (m ChangeAiPrivateEndpointCompartmentDetails) String() string {
2628
return common.PointerString(m)
2729
}
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 ChangeAiPrivateEndpointCompartmentDetails) 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+
}

Diff for: aianomalydetection/change_ai_private_endpoint_compartment_request_response.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
package aianomalydetection
66

77
import (
8-
"github.com/oracle/oci-go-sdk/v56/common"
8+
"fmt"
9+
"github.com/oracle/oci-go-sdk/v57/common"
910
"net/http"
11+
"strings"
1012
)
1113

1214
// ChangeAiPrivateEndpointCompartmentRequest wrapper for the ChangeAiPrivateEndpointCompartment operation
@@ -51,6 +53,10 @@ func (request ChangeAiPrivateEndpointCompartmentRequest) String() string {
5153
// HTTPRequest implements the OCIRequest interface
5254
func (request ChangeAiPrivateEndpointCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) {
5355

56+
_, err := request.ValidateEnumValue()
57+
if err != nil {
58+
return http.Request{}, err
59+
}
5460
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders)
5561
}
5662

@@ -66,6 +72,17 @@ func (request ChangeAiPrivateEndpointCompartmentRequest) RetryPolicy() *common.R
6672
return request.RequestMetadata.RetryPolicy
6773
}
6874

75+
// ValidateEnumValue returns an error when providing an unsupported enum value
76+
// This function is being called during constructing API request process
77+
// Not recommended for calling this function directly
78+
func (request ChangeAiPrivateEndpointCompartmentRequest) ValidateEnumValue() (bool, error) {
79+
errMessage := []string{}
80+
if len(errMessage) > 0 {
81+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
82+
}
83+
return false, nil
84+
}
85+
6986
// ChangeAiPrivateEndpointCompartmentResponse wrapper for the ChangeAiPrivateEndpointCompartment operation
7087
type ChangeAiPrivateEndpointCompartmentResponse struct {
7188

Diff for: aianomalydetection/change_data_asset_compartment_details.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
package aianomalydetection
1313

1414
import (
15-
"github.com/oracle/oci-go-sdk/v56/common"
15+
"fmt"
16+
"github.com/oracle/oci-go-sdk/v57/common"
17+
"strings"
1618
)
1719

1820
// ChangeDataAssetCompartmentDetails Details for changing the compartment of a data asset.
@@ -25,3 +27,15 @@ type ChangeDataAssetCompartmentDetails struct {
2527
func (m ChangeDataAssetCompartmentDetails) String() string {
2628
return common.PointerString(m)
2729
}
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 ChangeDataAssetCompartmentDetails) 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)