Skip to content

Commit d1656e1

Browse files
authored
GO SDK 5.11.0 Release
GO SDK 5.11.0 Release
2 parents dc0015c + 28ab9fc commit d1656e1

29 files changed

+1961
-26
lines changed

CHANGELOG.md

+6
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+
## 5.11.0 - 2019-06-18
8+
### Added
9+
- Support for moving service gateway resources across compartments in Core Services
10+
- Support for moving block storage resources across compartments in Core Services
11+
- Support for key deletion in the Key Management service
12+
713
## 5.10.0 - 2019-06-11
814
### Added
915
- Support for specifying custom boot volume sizes on instance configurations in the Compute Autoscaling service

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type ConfigurationProvider interface {
5454
Region() (string, error)
5555
}
5656
```
57+
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/common#ConfigurationProvider)
5758

5859
### Making a Request
5960
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.

common/configuration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type rawConfigurationProvider struct {
5151
privateKeyPassphrase *string
5252
}
5353

54-
// NewRawConfigurationProvider will create a rawConfigurationProvider
54+
// NewRawConfigurationProvider will create a ConfigurationProvider with the arguments of the function
5555
func NewRawConfigurationProvider(tenancy, user, region, fingerprint, privateKey string, privateKeyPassphrase *string) ConfigurationProvider {
5656
return rawConfigurationProvider{tenancy, user, region, fingerprint, privateKey, privateKeyPassphrase}
5757
}

common/version.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
// ChangeBootVolumeBackupCompartmentDetails Contains details indicating which compartment the resource should move to
20+
type ChangeBootVolumeBackupCompartmentDetails struct {
21+
22+
// The OCID of the new compartment
23+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
24+
}
25+
26+
func (m ChangeBootVolumeBackupCompartmentDetails) String() string {
27+
return common.PointerString(m)
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
// ChangeBootVolumeBackupCompartmentRequest wrapper for the ChangeBootVolumeBackupCompartment operation
12+
type ChangeBootVolumeBackupCompartmentRequest struct {
13+
14+
// The OCID of the boot volume backup.
15+
BootVolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeBackupId"`
16+
17+
// Request to change the compartment of given boot volume backup.
18+
ChangeBootVolumeBackupCompartmentDetails `contributesTo:"body"`
19+
20+
// Unique identifier for the request.
21+
// If you need to contact Oracle about a particular request, please provide the request ID.
22+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
23+
24+
// Metadata about the request. This information will not be transmitted to the service, but
25+
// represents information that the SDK will consume to drive retry behavior.
26+
RequestMetadata common.RequestMetadata
27+
}
28+
29+
func (request ChangeBootVolumeBackupCompartmentRequest) String() string {
30+
return common.PointerString(request)
31+
}
32+
33+
// HTTPRequest implements the OCIRequest interface
34+
func (request ChangeBootVolumeBackupCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) {
35+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
36+
}
37+
38+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
39+
func (request ChangeBootVolumeBackupCompartmentRequest) RetryPolicy() *common.RetryPolicy {
40+
return request.RequestMetadata.RetryPolicy
41+
}
42+
43+
// ChangeBootVolumeBackupCompartmentResponse wrapper for the ChangeBootVolumeBackupCompartment operation
44+
type ChangeBootVolumeBackupCompartmentResponse struct {
45+
46+
// The underlying http response
47+
RawResponse *http.Response
48+
49+
// For optimistic concurrency control. See `if-match`.
50+
Etag *string `presentIn:"header" name:"etag"`
51+
52+
// Unique Oracle-assigned identifier for the request. If you need to contact
53+
// Oracle about a particular request, please provide the request ID.
54+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
55+
}
56+
57+
func (response ChangeBootVolumeBackupCompartmentResponse) String() string {
58+
return common.PointerString(response)
59+
}
60+
61+
// HTTPResponse implements the OCIResponse interface
62+
func (response ChangeBootVolumeBackupCompartmentResponse) HTTPResponse() *http.Response {
63+
return response.RawResponse
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
// ChangeBootVolumeCompartmentDetails Contains details indicating which compartment the resource should move to
20+
type ChangeBootVolumeCompartmentDetails struct {
21+
22+
// The OCID of the new compartment
23+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
24+
}
25+
26+
func (m ChangeBootVolumeCompartmentDetails) String() string {
27+
return common.PointerString(m)
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
// ChangeBootVolumeCompartmentRequest wrapper for the ChangeBootVolumeCompartment operation
12+
type ChangeBootVolumeCompartmentRequest struct {
13+
14+
// The OCID of the boot volume.
15+
BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"`
16+
17+
// Request to change the compartment of given boot volume.
18+
ChangeBootVolumeCompartmentDetails `contributesTo:"body"`
19+
20+
// Unique identifier for the request.
21+
// If you need to contact Oracle about a particular request, please provide the request ID.
22+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
23+
24+
// Metadata about the request. This information will not be transmitted to the service, but
25+
// represents information that the SDK will consume to drive retry behavior.
26+
RequestMetadata common.RequestMetadata
27+
}
28+
29+
func (request ChangeBootVolumeCompartmentRequest) String() string {
30+
return common.PointerString(request)
31+
}
32+
33+
// HTTPRequest implements the OCIRequest interface
34+
func (request ChangeBootVolumeCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) {
35+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
36+
}
37+
38+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
39+
func (request ChangeBootVolumeCompartmentRequest) RetryPolicy() *common.RetryPolicy {
40+
return request.RequestMetadata.RetryPolicy
41+
}
42+
43+
// ChangeBootVolumeCompartmentResponse wrapper for the ChangeBootVolumeCompartment operation
44+
type ChangeBootVolumeCompartmentResponse struct {
45+
46+
// The underlying http response
47+
RawResponse *http.Response
48+
49+
// For optimistic concurrency control. See `if-match`.
50+
Etag *string `presentIn:"header" name:"etag"`
51+
52+
// Unique Oracle-assigned identifier for the request. If you need to contact
53+
// Oracle about a particular request, please provide the request ID.
54+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
55+
}
56+
57+
func (response ChangeBootVolumeCompartmentResponse) String() string {
58+
return common.PointerString(response)
59+
}
60+
61+
// HTTPResponse implements the OCIResponse interface
62+
func (response ChangeBootVolumeCompartmentResponse) HTTPResponse() *http.Response {
63+
return response.RawResponse
64+
}
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+
// ChangeServiceGatewayCompartmentDetails The configuration details for the move operation.
20+
type ChangeServiceGatewayCompartmentDetails struct {
21+
22+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the
23+
// service gateway to.
24+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
25+
}
26+
27+
func (m ChangeServiceGatewayCompartmentDetails) String() string {
28+
return common.PointerString(m)
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
// ChangeServiceGatewayCompartmentRequest wrapper for the ChangeServiceGatewayCompartment operation
12+
type ChangeServiceGatewayCompartmentRequest struct {
13+
14+
// The service gateway's OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
15+
ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"`
16+
17+
// Request to change the compartment of a given Service Gateway.
18+
ChangeServiceGatewayCompartmentDetails `contributesTo:"body"`
19+
20+
// Unique identifier for the request.
21+
// If you need to contact Oracle about a particular request, please provide the request ID.
22+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
23+
24+
// A token that uniquely identifies a request so it can be retried in case of a timeout or
25+
// server error without risk of executing that same action again. Retry tokens expire after 24
26+
// hours, but can be invalidated before then due to conflicting operations (for example, if a resource
27+
// has been deleted and purged from the system, then a retry of the original creation request
28+
// may be rejected).
29+
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
30+
31+
// Metadata about the request. This information will not be transmitted to the service, but
32+
// represents information that the SDK will consume to drive retry behavior.
33+
RequestMetadata common.RequestMetadata
34+
}
35+
36+
func (request ChangeServiceGatewayCompartmentRequest) String() string {
37+
return common.PointerString(request)
38+
}
39+
40+
// HTTPRequest implements the OCIRequest interface
41+
func (request ChangeServiceGatewayCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) {
42+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
43+
}
44+
45+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
46+
func (request ChangeServiceGatewayCompartmentRequest) RetryPolicy() *common.RetryPolicy {
47+
return request.RequestMetadata.RetryPolicy
48+
}
49+
50+
// ChangeServiceGatewayCompartmentResponse wrapper for the ChangeServiceGatewayCompartment operation
51+
type ChangeServiceGatewayCompartmentResponse struct {
52+
53+
// The underlying http response
54+
RawResponse *http.Response
55+
56+
// For optimistic concurrency control. See `if-match`.
57+
Etag *string `presentIn:"header" name:"etag"`
58+
59+
// Unique Oracle-assigned identifier for the request. If you need to contact
60+
// Oracle about a particular request, please provide the request ID.
61+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
62+
}
63+
64+
func (response ChangeServiceGatewayCompartmentResponse) String() string {
65+
return common.PointerString(response)
66+
}
67+
68+
// HTTPResponse implements the OCIResponse interface
69+
func (response ChangeServiceGatewayCompartmentResponse) HTTPResponse() *http.Response {
70+
return response.RawResponse
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
// ChangeVolumeBackupCompartmentDetails Contains details indicating which compartment the resource should move to
20+
type ChangeVolumeBackupCompartmentDetails struct {
21+
22+
// The OCID of the new compartment
23+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
24+
}
25+
26+
func (m ChangeVolumeBackupCompartmentDetails) String() string {
27+
return common.PointerString(m)
28+
}

0 commit comments

Comments
 (0)