Skip to content

Commit 3238fbe

Browse files
authored
GO SDK 5.0.0 Release
GO SDK 5.0.0 Release
2 parents 0306ff0 + c283db0 commit 3238fbe

Some content is hidden

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

58 files changed

+631
-128
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,50 @@ 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+
## 5.0.0 - 2019-03-19
8+
### Added
9+
10+
- Support for specifying metadata on node pools in the Container Engine for Kubernetes service
11+
- Support for provisioning a new autonomous database or autonomous data warehouse as a clone of another in the Database service
12+
### Breaking changes
13+
- The field``CreateAutonomousDatabaseDetails`` is no longer an anonymous field and the type changed from struct to interface in struct ``CreateAutonomousDatabaseRequest``. Here is sample code that shows how to update your code to incorporate this change.
14+
15+
- Before
16+
17+
```golang
18+
// create a CreateAutonomousDatabaseRequest
19+
// There were two ways to initialize the CreateAutonomousDatabaseRequest struct.
20+
// This breaking change only impact option #2
21+
request := database.CreateAutonomousDatabaseRequest{}
22+
23+
// #1. Instantiate CreateAutonomousDatabaseDetails directly: no impact
24+
details := database.CreateAutonomousDatabaseDetails{}
25+
details.CompartmentId = common.String(getCompartmentID())
26+
// ... other properties
27+
28+
// Set it to the request class
29+
request.CreateAutonomousDatabaseDetails = details
30+
31+
// #2. Instantiate CreateAutnomousDatabaseDetails through anonymous fields: will break
32+
request.CompartmentId = common.String(getCompartmentID())
33+
// ... other properties
34+
```
35+
36+
- After
37+
38+
```golang
39+
// #2 no longer supported. Create CreateAutonomousDatabaseDetails directly
40+
details := database.CreateAutonomousDatabaseDetails{}
41+
details.CompartmentId = common.String(getCompartmentID())
42+
// ... other properties
43+
44+
// and set the details to CreateAutonomousDatabaseBase
45+
request := database.CreateAutonomousDatabaseRequest{}
46+
request.CreateAutonomousDatabaseDetails = details
47+
// ...
48+
```
49+
50+
751
## 4.2.0 - 2019-03-12
852
### Added
953
- Support for the Budgets service

common/version.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

containerengine/add_on_options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine
@@ -12,7 +14,7 @@ import (
1214
"github.com/oracle/oci-go-sdk/common"
1315
)
1416

15-
// Cluster A Kubernetes cluster.
17+
// Cluster A Kubernetes cluster. Avoid entering confidential information.
1618
type Cluster struct {
1719

1820
// The OCID of the cluster.

containerengine/cluster_create_options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster_endpoints.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster_lifecycle_state.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster_metadata.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster_options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/cluster_summary.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/containerengine_client.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine
@@ -37,7 +39,7 @@ func NewContainerEngineClientWithConfigurationProvider(configProvider common.Con
3739

3840
// SetRegion overrides the region of this client.
3941
func (client *ContainerEngineClient) SetRegion(region string) {
40-
client.Host = common.StringToRegion(region).Endpoint("containerengine")
42+
client.Host = common.StringToRegion(region).EndpointForTemplate("containerengine", "https://containerengine.{region}.{secondLevelDomain}")
4143
}
4244

4345
// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid

containerengine/create_cluster_details.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/create_cluster_kubeconfig_content_details.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/create_node_pool_details.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine
@@ -36,6 +38,9 @@ type CreateNodePoolDetails struct {
3638
// The OCIDs of the subnets in which to place nodes for this node pool.
3739
SubnetIds []string `mandatory:"true" json:"subnetIds"`
3840

41+
// A list of key/value pairs to add to each underlying OCI instance in the node pool.
42+
NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"`
43+
3944
// A list of key/value pairs to add to nodes after they join the Kubernetes cluster.
4045
InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"`
4146

containerengine/key_value.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/kubernetes_network_config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/list_clusters_request_response.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ type ListClustersRequest struct {
2020
// The name to filter on.
2121
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
2222

23-
// The maximum number of items to return in a paginated "List" call.
23+
// For list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
24+
// 1 is the minimum, 1000 is the maximum. For important details about how pagination works,
25+
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
2426
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
2527

26-
// The value of the `opc-next-page` response header from the previous "List" call.
28+
// For list pagination. The value of the `opc-next-page` response header from the previous "List" call.
29+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
2730
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
2831

2932
// The optional order in which to sort the results.
@@ -64,9 +67,8 @@ type ListClustersResponse struct {
6467
// A list of []ClusterSummary instances
6568
Items []ClusterSummary `presentIn:"body"`
6669

67-
// For pagination of a list of items. When paging through a list, if this header appears in the response,
68-
// then there might be additional items still to get. Include this value as the `page` parameter for the
69-
// subsequent GET request.
70+
// For list pagination. When this header appears in the response, additional pages of results remain.
71+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
7072
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
7173

7274
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a

containerengine/list_node_pools_request_response.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ type ListNodePoolsRequest struct {
2020
// The name to filter on.
2121
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
2222

23-
// The maximum number of items to return in a paginated "List" call.
23+
// For list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
24+
// 1 is the minimum, 1000 is the maximum. For important details about how pagination works,
25+
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
2426
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
2527

26-
// The value of the `opc-next-page` response header from the previous "List" call.
28+
// For list pagination. The value of the `opc-next-page` response header from the previous "List" call.
29+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
2730
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
2831

2932
// The optional order in which to sort the results.
@@ -64,9 +67,8 @@ type ListNodePoolsResponse struct {
6467
// A list of []NodePoolSummary instances
6568
Items []NodePoolSummary `presentIn:"body"`
6669

67-
// For pagination of a list of items. When paging through a list, if this header appears in the response,
68-
// then there might be additional items still to get. Include this value as the `page` parameter for the
69-
// subsequent GET request.
70+
// For list pagination. When this header appears in the response, additional pages of results remain.
71+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
7072
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
7173

7274
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a

containerengine/list_work_requests_request_response.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ type ListWorkRequestsRequest struct {
2626
// A work request status to filter on. Can have multiple parameters of this name.
2727
Status []ListWorkRequestsStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"`
2828

29-
// The maximum number of items to return in a paginated "List" call.
29+
// For list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
30+
// 1 is the minimum, 1000 is the maximum. For important details about how pagination works,
31+
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
3032
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
3133

32-
// The value of the `opc-next-page` response header from the previous "List" call.
34+
// For list pagination. The value of the `opc-next-page` response header from the previous "List" call.
35+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
3336
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
3437

3538
// The optional order in which to sort the results.
@@ -70,9 +73,8 @@ type ListWorkRequestsResponse struct {
7073
// A list of []WorkRequestSummary instances
7174
Items []WorkRequestSummary `presentIn:"body"`
7275

73-
// For pagination of a list of items. When paging through a list, if this header appears in the response,
74-
// then there might be additional items still to get. Include this value as the `page` parameter for the
75-
// subsequent GET request.
76+
// For list pagination. When this header appears in the response, additional pages of results remain.
77+
// For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
7678
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
7779

7880
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a

containerengine/node.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/node_error.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

containerengine/node_pool.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine
@@ -12,7 +14,7 @@ import (
1214
"github.com/oracle/oci-go-sdk/common"
1315
)
1416

15-
// NodePool A pool of compute nodes attached to a cluster.
17+
// NodePool A pool of compute nodes attached to a cluster. Avoid entering confidential information.
1618
type NodePool struct {
1719

1820
// The OCID of the node pool.
@@ -30,6 +32,9 @@ type NodePool struct {
3032
// The version of Kubernetes running on the nodes in the node pool.
3133
KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"`
3234

35+
// A list of key/value pairs to add to each underlying OCI instance in the node pool.
36+
NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"`
37+
3338
// The OCID of the image running on the nodes in the node pool.
3439
NodeImageId *string `mandatory:"false" json:"nodeImageId"`
3540

containerengine/node_pool_options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// Container Engine for Kubernetes API
55
//
6-
// Container Engine for Kubernetes API
6+
// API for the Container Engine for Kubernetes service. Use this API to build, deploy,
7+
// and manage cloud-native applications. For more information, see
8+
// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm).
79
//
810

911
package containerengine

0 commit comments

Comments
 (0)