Skip to content

Commit 4503211

Browse files
authored
Releasing version 12.1.0
Releasing version 12.1.0
2 parents c6ae9df + 90b4699 commit 4503211

File tree

84 files changed

+2448
-130
lines changed

Some content is hidden

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

84 files changed

+2448
-130
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ 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+
## 12.2.0 - 2019-10-29
8+
### Added
9+
- Support for wallet rotation operations on Autonomous Databases in the Database service
10+
- Support for adding and removing image shape compatibility entries in the Compute service
11+
- Support for managing redirects in the Web Application Acceleration and Security service
12+
- Support for migrating zones from the Dyn HTTP Redirect Service to Oracle Cloud Infrastructure in the DNS service
13+
714
## 12.1.0 - 2019-10-15
815
### Added
916
- Support for the Digital Assistant service

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: 64 additions & 0 deletions
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+
// AddImageShapeCompatibilityEntryRequest wrapper for the AddImageShapeCompatibilityEntry operation
12+
type AddImageShapeCompatibilityEntryRequest struct {
13+
14+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
15+
ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"`
16+
17+
// Shape name.
18+
ShapeName *string `mandatory:"true" contributesTo:"path" name:"shapeName"`
19+
20+
// Unique Oracle-assigned 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 AddImageShapeCompatibilityEntryRequest) String() string {
30+
return common.PointerString(request)
31+
}
32+
33+
// HTTPRequest implements the OCIRequest interface
34+
func (request AddImageShapeCompatibilityEntryRequest) 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 AddImageShapeCompatibilityEntryRequest) RetryPolicy() *common.RetryPolicy {
40+
return request.RequestMetadata.RetryPolicy
41+
}
42+
43+
// AddImageShapeCompatibilityEntryResponse wrapper for the AddImageShapeCompatibilityEntry operation
44+
type AddImageShapeCompatibilityEntryResponse struct {
45+
46+
// The underlying http response
47+
RawResponse *http.Response
48+
49+
// The ImageShapeCompatibilityEntry instance
50+
ImageShapeCompatibilityEntry `presentIn:"body"`
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 AddImageShapeCompatibilityEntryResponse) String() string {
58+
return common.PointerString(response)
59+
}
60+
61+
// HTTPResponse implements the OCIResponse interface
62+
func (response AddImageShapeCompatibilityEntryResponse) HTTPResponse() *http.Response {
63+
return response.RawResponse
64+
}

core/core_compute_client.go

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,48 @@ func (client *ComputeClient) ConfigurationProvider() *common.ConfigurationProvid
6262
return client.config
6363
}
6464

65+
// AddImageShapeCompatibilityEntry Adds a shape to the compatible shapes list for the image.
66+
func (client ComputeClient) AddImageShapeCompatibilityEntry(ctx context.Context, request AddImageShapeCompatibilityEntryRequest) (response AddImageShapeCompatibilityEntryResponse, err error) {
67+
var ociResponse common.OCIResponse
68+
policy := common.NoRetryPolicy()
69+
if request.RetryPolicy() != nil {
70+
policy = *request.RetryPolicy()
71+
}
72+
ociResponse, err = common.Retry(ctx, request, client.addImageShapeCompatibilityEntry, policy)
73+
if err != nil {
74+
if ociResponse != nil {
75+
response = AddImageShapeCompatibilityEntryResponse{RawResponse: ociResponse.HTTPResponse()}
76+
}
77+
return
78+
}
79+
if convertedResponse, ok := ociResponse.(AddImageShapeCompatibilityEntryResponse); ok {
80+
response = convertedResponse
81+
} else {
82+
err = fmt.Errorf("failed to convert OCIResponse into AddImageShapeCompatibilityEntryResponse")
83+
}
84+
return
85+
}
86+
87+
// addImageShapeCompatibilityEntry implements the OCIOperation interface (enables retrying operations)
88+
func (client ComputeClient) addImageShapeCompatibilityEntry(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
89+
httpRequest, err := request.HTTPRequest(http.MethodPut, "/images/{imageId}/shapes/{shapeName}")
90+
if err != nil {
91+
return nil, err
92+
}
93+
94+
var response AddImageShapeCompatibilityEntryResponse
95+
var httpResponse *http.Response
96+
httpResponse, err = client.Call(ctx, &httpRequest)
97+
defer common.CloseBodyIfValid(httpResponse)
98+
response.RawResponse = httpResponse
99+
if err != nil {
100+
return response, err
101+
}
102+
103+
err = common.UnmarshalResponse(httpResponse, &response)
104+
return response, err
105+
}
106+
65107
// AttachBootVolume Attaches the specified boot volume to the specified instance.
66108
func (client ComputeClient) AttachBootVolume(ctx context.Context, request AttachBootVolumeRequest) (response AttachBootVolumeResponse, err error) {
67109
var ociResponse common.OCIResponse
@@ -2407,6 +2449,48 @@ func (client ComputeClient) listVolumeAttachments(ctx context.Context, request c
24072449
return response, err
24082450
}
24092451

2452+
// RemoveImageShapeCompatibilityEntry Removes a shape from the compatible shapes list for the image.
2453+
func (client ComputeClient) RemoveImageShapeCompatibilityEntry(ctx context.Context, request RemoveImageShapeCompatibilityEntryRequest) (response RemoveImageShapeCompatibilityEntryResponse, err error) {
2454+
var ociResponse common.OCIResponse
2455+
policy := common.NoRetryPolicy()
2456+
if request.RetryPolicy() != nil {
2457+
policy = *request.RetryPolicy()
2458+
}
2459+
ociResponse, err = common.Retry(ctx, request, client.removeImageShapeCompatibilityEntry, policy)
2460+
if err != nil {
2461+
if ociResponse != nil {
2462+
response = RemoveImageShapeCompatibilityEntryResponse{RawResponse: ociResponse.HTTPResponse()}
2463+
}
2464+
return
2465+
}
2466+
if convertedResponse, ok := ociResponse.(RemoveImageShapeCompatibilityEntryResponse); ok {
2467+
response = convertedResponse
2468+
} else {
2469+
err = fmt.Errorf("failed to convert OCIResponse into RemoveImageShapeCompatibilityEntryResponse")
2470+
}
2471+
return
2472+
}
2473+
2474+
// removeImageShapeCompatibilityEntry implements the OCIOperation interface (enables retrying operations)
2475+
func (client ComputeClient) removeImageShapeCompatibilityEntry(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
2476+
httpRequest, err := request.HTTPRequest(http.MethodDelete, "/images/{imageId}/shapes/{shapeName}")
2477+
if err != nil {
2478+
return nil, err
2479+
}
2480+
2481+
var response RemoveImageShapeCompatibilityEntryResponse
2482+
var httpResponse *http.Response
2483+
httpResponse, err = client.Call(ctx, &httpRequest)
2484+
defer common.CloseBodyIfValid(httpResponse)
2485+
response.RawResponse = httpResponse
2486+
if err != nil {
2487+
return response, err
2488+
}
2489+
2490+
err = common.UnmarshalResponse(httpResponse, &response)
2491+
return response, err
2492+
}
2493+
24102494
// TerminateInstance Terminates the specified instance. Any attached VNICs and volumes are automatically detached
24112495
// when the instance terminates.
24122496
// To preserve the boot volume associated with the instance, specify `true` for `PreserveBootVolumeQueryParam`.

core/create_instance_configuration_base.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,26 @@ func (m createinstanceconfigurationbase) GetFreeformTags() map[string]string {
113113
func (m createinstanceconfigurationbase) String() string {
114114
return common.PointerString(m)
115115
}
116+
117+
// CreateInstanceConfigurationBaseSourceEnum Enum with underlying type: string
118+
type CreateInstanceConfigurationBaseSourceEnum string
119+
120+
// Set of constants representing the allowable values for CreateInstanceConfigurationBaseSourceEnum
121+
const (
122+
CreateInstanceConfigurationBaseSourceNone CreateInstanceConfigurationBaseSourceEnum = "NONE"
123+
CreateInstanceConfigurationBaseSourceInstance CreateInstanceConfigurationBaseSourceEnum = "INSTANCE"
124+
)
125+
126+
var mappingCreateInstanceConfigurationBaseSource = map[string]CreateInstanceConfigurationBaseSourceEnum{
127+
"NONE": CreateInstanceConfigurationBaseSourceNone,
128+
"INSTANCE": CreateInstanceConfigurationBaseSourceInstance,
129+
}
130+
131+
// GetCreateInstanceConfigurationBaseSourceEnumValues Enumerates the set of values for CreateInstanceConfigurationBaseSourceEnum
132+
func GetCreateInstanceConfigurationBaseSourceEnumValues() []CreateInstanceConfigurationBaseSourceEnum {
133+
values := make([]CreateInstanceConfigurationBaseSourceEnum, 0)
134+
for _, v := range mappingCreateInstanceConfigurationBaseSource {
135+
values = append(values, v)
136+
}
137+
return values
138+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
// ImageShapeCompatibilityEntry An image and shape that are compatible.
20+
type ImageShapeCompatibilityEntry struct {
21+
22+
// The image OCID.
23+
ImageId *string `mandatory:"true" json:"imageId"`
24+
25+
// The shape name.
26+
Shape *string `mandatory:"true" json:"shape"`
27+
}
28+
29+
func (m ImageShapeCompatibilityEntry) String() string {
30+
return common.PointerString(m)
31+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
// RemoveImageShapeCompatibilityEntryRequest wrapper for the RemoveImageShapeCompatibilityEntry operation
12+
type RemoveImageShapeCompatibilityEntryRequest struct {
13+
14+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
15+
ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"`
16+
17+
// Shape name.
18+
ShapeName *string `mandatory:"true" contributesTo:"path" name:"shapeName"`
19+
20+
// Unique Oracle-assigned 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 RemoveImageShapeCompatibilityEntryRequest) String() string {
30+
return common.PointerString(request)
31+
}
32+
33+
// HTTPRequest implements the OCIRequest interface
34+
func (request RemoveImageShapeCompatibilityEntryRequest) 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 RemoveImageShapeCompatibilityEntryRequest) RetryPolicy() *common.RetryPolicy {
40+
return request.RequestMetadata.RetryPolicy
41+
}
42+
43+
// RemoveImageShapeCompatibilityEntryResponse wrapper for the RemoveImageShapeCompatibilityEntry operation
44+
type RemoveImageShapeCompatibilityEntryResponse struct {
45+
46+
// The underlying http response
47+
RawResponse *http.Response
48+
49+
// Unique Oracle-assigned identifier for the request. If you need to contact
50+
// Oracle about a particular request, please provide the request ID.
51+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
52+
}
53+
54+
func (response RemoveImageShapeCompatibilityEntryResponse) String() string {
55+
return common.PointerString(response)
56+
}
57+
58+
// HTTPResponse implements the OCIResponse interface
59+
func (response RemoveImageShapeCompatibilityEntryResponse) HTTPResponse() *http.Response {
60+
return response.RawResponse
61+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Database Service API
5+
//
6+
// The API for the Database Service.
7+
//
8+
9+
package database
10+
11+
import (
12+
"github.com/oracle/oci-go-sdk/common"
13+
)
14+
15+
// AutonomousDatabaseWallet The Autonomous Database wallet details.
16+
type AutonomousDatabaseWallet struct {
17+
18+
// The current lifecycle state of the Autonomous Database wallet.
19+
LifecycleState AutonomousDatabaseWalletLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
20+
21+
// The date and time the wallet was last rotated.
22+
TimeRotated *common.SDKTime `mandatory:"false" json:"timeRotated"`
23+
}
24+
25+
func (m AutonomousDatabaseWallet) String() string {
26+
return common.PointerString(m)
27+
}
28+
29+
// AutonomousDatabaseWalletLifecycleStateEnum Enum with underlying type: string
30+
type AutonomousDatabaseWalletLifecycleStateEnum string
31+
32+
// Set of constants representing the allowable values for AutonomousDatabaseWalletLifecycleStateEnum
33+
const (
34+
AutonomousDatabaseWalletLifecycleStateActive AutonomousDatabaseWalletLifecycleStateEnum = "ACTIVE"
35+
AutonomousDatabaseWalletLifecycleStateUpdating AutonomousDatabaseWalletLifecycleStateEnum = "UPDATING"
36+
)
37+
38+
var mappingAutonomousDatabaseWalletLifecycleState = map[string]AutonomousDatabaseWalletLifecycleStateEnum{
39+
"ACTIVE": AutonomousDatabaseWalletLifecycleStateActive,
40+
"UPDATING": AutonomousDatabaseWalletLifecycleStateUpdating,
41+
}
42+
43+
// GetAutonomousDatabaseWalletLifecycleStateEnumValues Enumerates the set of values for AutonomousDatabaseWalletLifecycleStateEnum
44+
func GetAutonomousDatabaseWalletLifecycleStateEnumValues() []AutonomousDatabaseWalletLifecycleStateEnum {
45+
values := make([]AutonomousDatabaseWalletLifecycleStateEnum, 0)
46+
for _, v := range mappingAutonomousDatabaseWalletLifecycleState {
47+
values = append(values, v)
48+
}
49+
return values
50+
}

database/create_autonomous_database_base.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,26 @@ func GetCreateAutonomousDatabaseBaseLicenseModelEnumValues() []CreateAutonomousD
263263
}
264264
return values
265265
}
266+
267+
// CreateAutonomousDatabaseBaseSourceEnum Enum with underlying type: string
268+
type CreateAutonomousDatabaseBaseSourceEnum string
269+
270+
// Set of constants representing the allowable values for CreateAutonomousDatabaseBaseSourceEnum
271+
const (
272+
CreateAutonomousDatabaseBaseSourceNone CreateAutonomousDatabaseBaseSourceEnum = "NONE"
273+
CreateAutonomousDatabaseBaseSourceDatabase CreateAutonomousDatabaseBaseSourceEnum = "DATABASE"
274+
)
275+
276+
var mappingCreateAutonomousDatabaseBaseSource = map[string]CreateAutonomousDatabaseBaseSourceEnum{
277+
"NONE": CreateAutonomousDatabaseBaseSourceNone,
278+
"DATABASE": CreateAutonomousDatabaseBaseSourceDatabase,
279+
}
280+
281+
// GetCreateAutonomousDatabaseBaseSourceEnumValues Enumerates the set of values for CreateAutonomousDatabaseBaseSourceEnum
282+
func GetCreateAutonomousDatabaseBaseSourceEnumValues() []CreateAutonomousDatabaseBaseSourceEnum {
283+
values := make([]CreateAutonomousDatabaseBaseSourceEnum, 0)
284+
for _, v := range mappingCreateAutonomousDatabaseBaseSource {
285+
values = append(values, v)
286+
}
287+
return values
288+
}

0 commit comments

Comments
 (0)