Skip to content

Commit 40e7c9a

Browse files
authored
GO SDK 8.1.0 Release
GO SDK 8.1.0 Release
2 parents a9e0563 + 3eddd50 commit 40e7c9a

File tree

34 files changed

+1590
-3
lines changed

34 files changed

+1590
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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+
## 8.1.0 - 2019-09-03
8+
### Added
9+
- Support for the Sydney (SYD) region
10+
- Support for managing cluster networks in the Compute Autoscaling service
11+
- Support for tracking asynchronous operations via work requests in the Database service
12+
713
## 8.0.0 - 2019-08-27
814
### Added
915
- Support for the Sao Paulo (GRU) region

common/common.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const (
3434
RegionEUZurich1 Region = "eu-zurich-1"
3535
//RegionSASaopaulo1 region for Sao Paulo
3636
RegionSASaopaulo1 Region = "sa-saopaulo-1"
37-
37+
//RegionAPSydney1 region for Sydney
38+
RegionAPSydney1 Region = "ap-sydney-1"
3839
//RegionUSLangley1 region for langley
3940
RegionUSLangley1 Region = "us-langley-1"
4041
//RegionUSLuke1 region for luke
@@ -62,6 +63,7 @@ var regionRealm = map[Region]string{
6263
RegionCAToronto1: "oc1",
6364
RegionAPTokyo1: "oc1",
6465
RegionAPSeoul1: "oc1",
66+
RegionAPSydney1: "oc1",
6567
RegionAPMumbai1: "oc1",
6668
RegionEUZurich1: "oc1",
6769
RegionSASaopaulo1: "oc1",

common/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"github.com/oracle/oci-go-sdk/common"
17+
)
18+
19+
// ChangeClusterNetworkCompartmentDetails Contains details indicating which compartment the resource should move to
20+
type ChangeClusterNetworkCompartmentDetails struct {
21+
22+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment
23+
// into which the resource should be moved.
24+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
25+
}
26+
27+
func (m ChangeClusterNetworkCompartmentDetails) String() string {
28+
return common.PointerString(m)
29+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
package core
5+
6+
import (
7+
"github.com/oracle/oci-go-sdk/common"
8+
"net/http"
9+
)
10+
11+
// ChangeClusterNetworkCompartmentRequest wrapper for the ChangeClusterNetworkCompartment operation
12+
type ChangeClusterNetworkCompartmentRequest struct {
13+
14+
// The OCID of the cluster network.
15+
ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"`
16+
17+
// Request to change the compartment of given cluster network.
18+
ChangeClusterNetworkCompartmentDetails `contributesTo:"body"`
19+
20+
// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
21+
// parameter to the value of the etag from a previous GET or POST response for that resource. The resource
22+
// will be updated or deleted only if the etag you provide matches the resource's current etag value.
23+
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
24+
25+
// Unique identifier for the request.
26+
// If you need to contact Oracle about a particular request, please provide the request ID.
27+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
28+
29+
// A token that uniquely identifies a request so it can be retried in case of a timeout or
30+
// server error without risk of executing that same action again. Retry tokens expire after 24
31+
// hours, but can be invalidated before then due to conflicting operations (for example, if a resource
32+
// has been deleted and purged from the system, then a retry of the original creation request
33+
// may be rejected).
34+
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
35+
36+
// Metadata about the request. This information will not be transmitted to the service, but
37+
// represents information that the SDK will consume to drive retry behavior.
38+
RequestMetadata common.RequestMetadata
39+
}
40+
41+
func (request ChangeClusterNetworkCompartmentRequest) String() string {
42+
return common.PointerString(request)
43+
}
44+
45+
// HTTPRequest implements the OCIRequest interface
46+
func (request ChangeClusterNetworkCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) {
47+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
48+
}
49+
50+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
51+
func (request ChangeClusterNetworkCompartmentRequest) RetryPolicy() *common.RetryPolicy {
52+
return request.RequestMetadata.RetryPolicy
53+
}
54+
55+
// ChangeClusterNetworkCompartmentResponse wrapper for the ChangeClusterNetworkCompartment operation
56+
type ChangeClusterNetworkCompartmentResponse struct {
57+
58+
// The underlying http response
59+
RawResponse *http.Response
60+
61+
// For optimistic concurrency control. See `if-match`.
62+
Etag *string `presentIn:"header" name:"etag"`
63+
64+
// Unique Oracle-assigned identifier for the request. If you need to contact
65+
// Oracle about a particular request, please provide the request ID.
66+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
67+
}
68+
69+
func (response ChangeClusterNetworkCompartmentResponse) String() string {
70+
return common.PointerString(response)
71+
}
72+
73+
// HTTPResponse implements the OCIResponse interface
74+
func (response ChangeClusterNetworkCompartmentResponse) HTTPResponse() *http.Response {
75+
return response.RawResponse
76+
}

core/cluster_network.go

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"github.com/oracle/oci-go-sdk/common"
17+
)
18+
19+
// ClusterNetwork Cluster Network
20+
type ClusterNetwork struct {
21+
22+
// The OCID of the cluster network.
23+
Id *string `mandatory:"true" json:"id"`
24+
25+
// The OCID of the compartment containing the cluster netowrk.
26+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
27+
28+
// The current state of the cluster network.
29+
LifecycleState ClusterNetworkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
30+
31+
// The date and time the resource was created, in the format defined by RFC3339.
32+
// Example: `2016-08-25T21:10:29.600Z`
33+
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
34+
35+
// The date and time the resource was updated, in the format defined by RFC3339.
36+
// Example: `2016-08-25T21:10:29.600Z`
37+
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
38+
39+
// Defined tags for this resource. Each key is predefined and scoped to a
40+
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
41+
// Example: `{"Operations": {"CostCenter": "42"}}`
42+
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
43+
44+
// The user-friendly name. Does not have to be unique.
45+
DisplayName *string `mandatory:"false" json:"displayName"`
46+
47+
// Free-form tags for this resource. Each tag is a simple key-value pair with no
48+
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
49+
// Example: `{"Department": "Finance"}`
50+
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
51+
52+
// the instance pools in the cluster network.
53+
InstancePools []InstancePool `mandatory:"false" json:"instancePools"`
54+
55+
// the placement data for the intance pools in the cluster network
56+
PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"false" json:"placementConfiguration"`
57+
}
58+
59+
func (m ClusterNetwork) String() string {
60+
return common.PointerString(m)
61+
}
62+
63+
// ClusterNetworkLifecycleStateEnum Enum with underlying type: string
64+
type ClusterNetworkLifecycleStateEnum string
65+
66+
// Set of constants representing the allowable values for ClusterNetworkLifecycleStateEnum
67+
const (
68+
ClusterNetworkLifecycleStateProvisioning ClusterNetworkLifecycleStateEnum = "PROVISIONING"
69+
ClusterNetworkLifecycleStateScaling ClusterNetworkLifecycleStateEnum = "SCALING"
70+
ClusterNetworkLifecycleStateStarting ClusterNetworkLifecycleStateEnum = "STARTING"
71+
ClusterNetworkLifecycleStateStopping ClusterNetworkLifecycleStateEnum = "STOPPING"
72+
ClusterNetworkLifecycleStateTerminating ClusterNetworkLifecycleStateEnum = "TERMINATING"
73+
ClusterNetworkLifecycleStateStopped ClusterNetworkLifecycleStateEnum = "STOPPED"
74+
ClusterNetworkLifecycleStateTerminated ClusterNetworkLifecycleStateEnum = "TERMINATED"
75+
ClusterNetworkLifecycleStateRunning ClusterNetworkLifecycleStateEnum = "RUNNING"
76+
)
77+
78+
var mappingClusterNetworkLifecycleState = map[string]ClusterNetworkLifecycleStateEnum{
79+
"PROVISIONING": ClusterNetworkLifecycleStateProvisioning,
80+
"SCALING": ClusterNetworkLifecycleStateScaling,
81+
"STARTING": ClusterNetworkLifecycleStateStarting,
82+
"STOPPING": ClusterNetworkLifecycleStateStopping,
83+
"TERMINATING": ClusterNetworkLifecycleStateTerminating,
84+
"STOPPED": ClusterNetworkLifecycleStateStopped,
85+
"TERMINATED": ClusterNetworkLifecycleStateTerminated,
86+
"RUNNING": ClusterNetworkLifecycleStateRunning,
87+
}
88+
89+
// GetClusterNetworkLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkLifecycleStateEnum
90+
func GetClusterNetworkLifecycleStateEnumValues() []ClusterNetworkLifecycleStateEnum {
91+
values := make([]ClusterNetworkLifecycleStateEnum, 0)
92+
for _, v := range mappingClusterNetworkLifecycleState {
93+
values = append(values, v)
94+
}
95+
return values
96+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"github.com/oracle/oci-go-sdk/common"
17+
)
18+
19+
// ClusterNetworkPlacementConfigurationDetails The location for where the instance pools in a cluster network will place instances.
20+
type ClusterNetworkPlacementConfigurationDetails struct {
21+
22+
// The availability domain to place instances.
23+
// Example: `Uocm:PHX-AD-1`
24+
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
25+
26+
// The OCID of the primary subnet to place instances.
27+
PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"`
28+
29+
// The set of secondary VNIC data for instances in the pool.
30+
SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"`
31+
}
32+
33+
func (m ClusterNetworkPlacementConfigurationDetails) String() string {
34+
return common.PointerString(m)
35+
}

core/cluster_network_summary.go

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"github.com/oracle/oci-go-sdk/common"
17+
)
18+
19+
// ClusterNetworkSummary Condensed Cluster Network data when listing cluster networks.
20+
type ClusterNetworkSummary struct {
21+
22+
// The OCID of the cluster network.
23+
Id *string `mandatory:"true" json:"id"`
24+
25+
// The OCID of the compartment containing the cluster netowrk.
26+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
27+
28+
// The current state of the cluster network.
29+
LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
30+
31+
// The date and time the resource was created, in the format defined by RFC3339.
32+
// Example: `2016-08-25T21:10:29.600Z`
33+
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
34+
35+
// The date and time the resource was updated, in the format defined by RFC3339.
36+
// Example: `2016-08-25T21:10:29.600Z`
37+
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
38+
39+
// Defined tags for this resource. Each key is predefined and scoped to a
40+
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
41+
// Example: `{"Operations": {"CostCenter": "42"}}`
42+
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
43+
44+
// The user-friendly name. Does not have to be unique.
45+
DisplayName *string `mandatory:"false" json:"displayName"`
46+
47+
// Free-form tags for this resource. Each tag is a simple key-value pair with no
48+
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
49+
// Example: `{"Department": "Finance"}`
50+
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
51+
52+
// The instance pools in the cluster network.
53+
InstancePools []InstancePoolSummary `mandatory:"false" json:"instancePools"`
54+
}
55+
56+
func (m ClusterNetworkSummary) String() string {
57+
return common.PointerString(m)
58+
}
59+
60+
// ClusterNetworkSummaryLifecycleStateEnum Enum with underlying type: string
61+
type ClusterNetworkSummaryLifecycleStateEnum string
62+
63+
// Set of constants representing the allowable values for ClusterNetworkSummaryLifecycleStateEnum
64+
const (
65+
ClusterNetworkSummaryLifecycleStateProvisioning ClusterNetworkSummaryLifecycleStateEnum = "PROVISIONING"
66+
ClusterNetworkSummaryLifecycleStateScaling ClusterNetworkSummaryLifecycleStateEnum = "SCALING"
67+
ClusterNetworkSummaryLifecycleStateStarting ClusterNetworkSummaryLifecycleStateEnum = "STARTING"
68+
ClusterNetworkSummaryLifecycleStateStopping ClusterNetworkSummaryLifecycleStateEnum = "STOPPING"
69+
ClusterNetworkSummaryLifecycleStateTerminating ClusterNetworkSummaryLifecycleStateEnum = "TERMINATING"
70+
ClusterNetworkSummaryLifecycleStateStopped ClusterNetworkSummaryLifecycleStateEnum = "STOPPED"
71+
ClusterNetworkSummaryLifecycleStateTerminated ClusterNetworkSummaryLifecycleStateEnum = "TERMINATED"
72+
ClusterNetworkSummaryLifecycleStateRunning ClusterNetworkSummaryLifecycleStateEnum = "RUNNING"
73+
)
74+
75+
var mappingClusterNetworkSummaryLifecycleState = map[string]ClusterNetworkSummaryLifecycleStateEnum{
76+
"PROVISIONING": ClusterNetworkSummaryLifecycleStateProvisioning,
77+
"SCALING": ClusterNetworkSummaryLifecycleStateScaling,
78+
"STARTING": ClusterNetworkSummaryLifecycleStateStarting,
79+
"STOPPING": ClusterNetworkSummaryLifecycleStateStopping,
80+
"TERMINATING": ClusterNetworkSummaryLifecycleStateTerminating,
81+
"STOPPED": ClusterNetworkSummaryLifecycleStateStopped,
82+
"TERMINATED": ClusterNetworkSummaryLifecycleStateTerminated,
83+
"RUNNING": ClusterNetworkSummaryLifecycleStateRunning,
84+
}
85+
86+
// GetClusterNetworkSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkSummaryLifecycleStateEnum
87+
func GetClusterNetworkSummaryLifecycleStateEnumValues() []ClusterNetworkSummaryLifecycleStateEnum {
88+
values := make([]ClusterNetworkSummaryLifecycleStateEnum, 0)
89+
for _, v := range mappingClusterNetworkSummaryLifecycleState {
90+
values = append(values, v)
91+
}
92+
return values
93+
}

0 commit comments

Comments
 (0)