Skip to content

Commit a773bf8

Browse files
author
Rajesh Deshpande
authored
GO SDK 5.6.0 Release
GO SDK 5.6.0 Release
2 parents f55375e + b4b1a0f commit a773bf8

13 files changed

+68
-27
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+
## 5.6.0 - 2019-05-14
8+
### Added
9+
- Support for the Seoul (ICN) region
10+
- Support for logging context fields on data-plane APIs of the Key Management Service
11+
- Support for reverse pagination on list operations of the Email service
12+
- Support for configuring backup retention windows on database backups in the Database service
13+
714
## 5.5.0 - 2019-05-07
815
### Added
916
- Support for the Tokyo (NRT) region

common/common.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const (
2626
RegionLHR Region = "uk-london-1"
2727
//RegionAPTokyo1 region for tokyo
2828
RegionAPTokyo1 Region = "ap-tokyo-1"
29+
//RegionAPSeoul1 region for seoul
30+
RegionAPSeoul1 Region = "ap-seoul-1"
2931

3032
//RegionUSLangley1 region for langley
3133
RegionUSLangley1 Region = "us-langley-1"
@@ -53,6 +55,7 @@ var regionRealm = map[Region]string{
5355
RegionLHR: "oc1",
5456
RegionCAToronto1: "oc1",
5557
RegionAPTokyo1: "oc1",
58+
RegionAPSeoul1: "oc1",
5659

5760
RegionUSLangley1: "oc2",
5861
RegionUSLuke1: "oc2",
@@ -112,6 +115,8 @@ func StringToRegion(stringRegion string) (r Region) {
112115
r = RegionLHR
113116
case "ap-tokyo-1":
114117
r = RegionAPTokyo1
118+
case "ap-seoul-1":
119+
r = RegionAPSeoul1
115120
case "us-langley-1":
116121
r = RegionUSLangley1
117122
case "us-luke-1":

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.

database/db_backup_config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ type DbBackupConfig struct {
1818

1919
// If set to true, configures automatic backups. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
2020
AutoBackupEnabled *bool `mandatory:"false" json:"autoBackupEnabled"`
21+
22+
// Number of days between the current and the earliest point of recoverability covered by automatic backups.
23+
// This value applies to automatic backups only. After a new automatic backup has been created, Oracle removes old automatic backups that are created before the window.
24+
// When the value is updated, it is applied to all existing automatic backups.
25+
RecoveryWindowInDays *int `mandatory:"false" json:"recoveryWindowInDays"`
2126
}
2227

2328
func (m DbBackupConfig) String() string {

email/list_senders_request_response.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ type ListSendersRequest struct {
2323
// The email address of the approved sender.
2424
EmailAddress *string `mandatory:"false" contributesTo:"query" name:"emailAddress"`
2525

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

3031
// For list pagination. The maximum number of results per page, or items to return in a
@@ -79,6 +80,11 @@ type ListSendersResponse struct {
7980
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
8081
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
8182

83+
// For list pagination. When this header appears in the response, previous pages
84+
// of results exist. For important details about how pagination works,
85+
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
86+
OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
87+
8288
// The total number of items returned from the request.
8389
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
8490
}

email/list_suppressions_request_response.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ type ListSuppressionsRequest struct {
3838
// **Example:** 2016-12-19T16:39:57.600Z
3939
TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"`
4040

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

4546
// For list pagination. The maximum number of results per page, or items to return in a
@@ -93,6 +94,11 @@ type ListSuppressionsResponse struct {
9394
// pages of results remain. For important details about how pagination works,
9495
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
9596
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
97+
98+
// For list pagination. When this header appears in the response, previous pages
99+
// of results exist. For important details about how pagination works,
100+
// see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
101+
OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
96102
}
97103

98104
func (response ListSuppressionsResponse) String() string {

keymanagement/decrypt_data_details.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ type DecryptDataDetails struct {
2525
// encrypted data. The length of the string representation of the associatedData
2626
// must be fewer than 4096 characters.
2727
AssociatedData map[string]string `mandatory:"false" json:"associatedData"`
28+
29+
// Information that can be used to provide context for audit logging. It is a map that contains any addtional
30+
// data the users may have and will be added to the audit logs (if audit logging is enabled)
31+
LoggingContext map[string]string `mandatory:"false" json:"loggingContext"`
2832
}
2933

3034
func (m DecryptDataDetails) String() string {

keymanagement/encrypt_data_details.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ type EncryptDataDetails struct {
2525
// encrypted data. The length of the string representation of the associatedData
2626
// must be fewer than 4096 characters.
2727
AssociatedData map[string]string `mandatory:"false" json:"associatedData"`
28+
29+
// Information that can be used to provide context for audit logging. It is a map that contains any addtional
30+
// data the users may have and will be added to the audit logs (if audit logging is enabled)
31+
LoggingContext map[string]string `mandatory:"false" json:"loggingContext"`
2832
}
2933

3034
func (m EncryptDataDetails) String() string {

keymanagement/generate_key_details.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ type GenerateKeyDetails struct {
2727
// encrypted data. The length of the string representation of the associatedData
2828
// must be fewer than 4096 characters.
2929
AssociatedData map[string]string `mandatory:"false" json:"associatedData"`
30+
31+
// Information that can be used to provide context for audit logging. It is a map that contains any addtional
32+
// data the users may have and will be added to the audit logs (if audit logging is enabled)
33+
LoggingContext map[string]string `mandatory:"false" json:"loggingContext"`
3034
}
3135

3236
func (m GenerateKeyDetails) String() string {

keymanagement/keymanagement_kmscrypto_client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewKmsCryptoClientWithConfigurationProvider(configProvider common.Configura
3030
}
3131

3232
client = KmsCryptoClient{BaseClient: baseClient}
33-
client.BasePath = ""
33+
client.BasePath = "20180608"
3434
client.Host = endpoint
3535
err = client.setConfigurationProvider(configProvider)
3636
return
@@ -75,7 +75,7 @@ func (client KmsCryptoClient) Decrypt(ctx context.Context, request DecryptReques
7575

7676
// decrypt implements the OCIOperation interface (enables retrying operations)
7777
func (client KmsCryptoClient) decrypt(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
78-
httpRequest, err := request.HTTPRequest(http.MethodPost, "/20180608/decrypt")
78+
httpRequest, err := request.HTTPRequest(http.MethodPost, "/decrypt")
7979
if err != nil {
8080
return nil, err
8181
}
@@ -119,7 +119,7 @@ func (client KmsCryptoClient) Encrypt(ctx context.Context, request EncryptReques
119119

120120
// encrypt implements the OCIOperation interface (enables retrying operations)
121121
func (client KmsCryptoClient) encrypt(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
122-
httpRequest, err := request.HTTPRequest(http.MethodPost, "/20180608/encrypt")
122+
httpRequest, err := request.HTTPRequest(http.MethodPost, "/encrypt")
123123
if err != nil {
124124
return nil, err
125125
}
@@ -161,7 +161,7 @@ func (client KmsCryptoClient) GenerateDataEncryptionKey(ctx context.Context, req
161161

162162
// generateDataEncryptionKey implements the OCIOperation interface (enables retrying operations)
163163
func (client KmsCryptoClient) generateDataEncryptionKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
164-
httpRequest, err := request.HTTPRequest(http.MethodPost, "/20180608/generateDataEncryptionKey")
164+
httpRequest, err := request.HTTPRequest(http.MethodPost, "/generateDataEncryptionKey")
165165
if err != nil {
166166
return nil, err
167167
}

0 commit comments

Comments
 (0)