Skip to content

Commit 7aeff03

Browse files
authored
Releasing version 17.1.0
Releasing version 17.1.0
2 parents e99c354 + a8059ed commit 7aeff03

File tree

77 files changed

+1014
-155
lines changed

Some content is hidden

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

77 files changed

+1014
-155
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+
## 17.1.0 - 2020-03-24
8+
### Added
9+
- Support for Web Application Acceleration and Security configurations on instances in the Content and Experience service
10+
- Support for shared database homes on Exadata Cloud at Customer resources in the Database service
11+
- Support for Exadata database creation from backup in the Database service
12+
- Support for conditions on JavaScript challenges, new action types on access rules, new policy configuration settings, exclusions on custom protection rules, and IP address lists on IP whitelists in the Web Application Acceleration and Security service
13+
714
## 17.0.0 - 2020-03-17
815
### Added
916
- Support for serial console connections in the Database service

common/auth/instance_principal_key_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"bytes"
77
"crypto/rsa"
88
"fmt"
9+
"github.com/oracle/oci-go-sdk/common"
910
"net/http"
1011
"strings"
11-
"github.com/oracle/oci-go-sdk/common"
1212
)
1313

1414
const (

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.

core/volume_backup_schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const (
223223
)
224224

225225
var mappingVolumeBackupScheduleTimeZone = map[string]VolumeBackupScheduleTimeZoneEnum{
226-
"UTC": VolumeBackupScheduleTimeZoneUtc,
226+
"UTC": VolumeBackupScheduleTimeZoneUtc,
227227
"REGIONAL_DATA_CENTER_TIME": VolumeBackupScheduleTimeZoneRegionalDataCenterTime,
228228
}
229229

database/backup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ type Backup struct {
5050

5151
// The size of the database in gigabytes at the time the backup was taken.
5252
DatabaseSizeInGBs *float64 `mandatory:"false" json:"databaseSizeInGBs"`
53+
54+
// Shape of the backup's source database.
55+
Shape *string `mandatory:"false" json:"shape"`
5356
}
5457

5558
func (m Backup) String() string {

database/backup_summary.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ type BackupSummary struct {
5252

5353
// The size of the database in gigabytes at the time the backup was taken.
5454
DatabaseSizeInGBs *float64 `mandatory:"false" json:"databaseSizeInGBs"`
55+
56+
// Shape of the backup's source database.
57+
Shape *string `mandatory:"false" json:"shape"`
5558
}
5659

5760
func (m BackupSummary) String() string {

database/create_database_base.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func (m *createdatabasebase) UnmarshalPolymorphicJSON(data []byte) (interface{},
6262
mm := CreateNewDatabaseDetails{}
6363
err = json.Unmarshal(data, &mm)
6464
return mm, err
65+
case "DB_BACKUP":
66+
mm := CreateDatabaseFromBackup{}
67+
err = json.Unmarshal(data, &mm)
68+
return mm, err
6569
default:
6670
return *m, nil
6771
}
@@ -86,11 +90,13 @@ type CreateDatabaseBaseSourceEnum string
8690

8791
// Set of constants representing the allowable values for CreateDatabaseBaseSourceEnum
8892
const (
89-
CreateDatabaseBaseSourceNone CreateDatabaseBaseSourceEnum = "NONE"
93+
CreateDatabaseBaseSourceNone CreateDatabaseBaseSourceEnum = "NONE"
94+
CreateDatabaseBaseSourceDbBackup CreateDatabaseBaseSourceEnum = "DB_BACKUP"
9095
)
9196

9297
var mappingCreateDatabaseBaseSource = map[string]CreateDatabaseBaseSourceEnum{
93-
"NONE": CreateDatabaseBaseSourceNone,
98+
"NONE": CreateDatabaseBaseSourceNone,
99+
"DB_BACKUP": CreateDatabaseBaseSourceDbBackup,
94100
}
95101

96102
// GetCreateDatabaseBaseSourceEnumValues Enumerates the set of values for CreateDatabaseBaseSourceEnum
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
"encoding/json"
13+
"github.com/oracle/oci-go-sdk/common"
14+
)
15+
16+
// CreateDatabaseFromBackup Details for creating a database by restoring from a database backup.
17+
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
18+
type CreateDatabaseFromBackup struct {
19+
20+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home.
21+
DbHomeId *string `mandatory:"true" json:"dbHomeId"`
22+
23+
Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"`
24+
25+
// A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
26+
DbVersion *string `mandatory:"false" json:"dbVersion"`
27+
}
28+
29+
//GetDbHomeId returns DbHomeId
30+
func (m CreateDatabaseFromBackup) GetDbHomeId() *string {
31+
return m.DbHomeId
32+
}
33+
34+
//GetDbVersion returns DbVersion
35+
func (m CreateDatabaseFromBackup) GetDbVersion() *string {
36+
return m.DbVersion
37+
}
38+
39+
func (m CreateDatabaseFromBackup) String() string {
40+
return common.PointerString(m)
41+
}
42+
43+
// MarshalJSON marshals to json representation
44+
func (m CreateDatabaseFromBackup) MarshalJSON() (buff []byte, e error) {
45+
type MarshalTypeCreateDatabaseFromBackup CreateDatabaseFromBackup
46+
s := struct {
47+
DiscriminatorParam string `json:"source"`
48+
MarshalTypeCreateDatabaseFromBackup
49+
}{
50+
"DB_BACKUP",
51+
(MarshalTypeCreateDatabaseFromBackup)(m),
52+
}
53+
54+
return json.Marshal(&s)
55+
}

database/create_db_home_with_vm_cluster_id_details.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ type CreateDbHomeWithVmClusterIdDetails struct {
2222
// A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
2323
DbVersion *string `mandatory:"true" json:"dbVersion"`
2424

25-
Database *CreateDatabaseDetails `mandatory:"true" json:"database"`
26-
2725
// The user-provided name of the Database Home.
2826
DisplayName *string `mandatory:"false" json:"displayName"`
27+
28+
Database *CreateDatabaseDetails `mandatory:"false" json:"database"`
2929
}
3030

3131
//GetDisplayName returns DisplayName

datacatalog/get_job_definition_request_response.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ const (
9494
)
9595

9696
var mappingGetJobDefinitionFields = map[string]GetJobDefinitionFieldsEnum{
97-
"key": GetJobDefinitionFieldsKey,
98-
"displayName": GetJobDefinitionFieldsDisplayname,
99-
"description": GetJobDefinitionFieldsDescription,
100-
"catalogId": GetJobDefinitionFieldsCatalogid,
101-
"jobType": GetJobDefinitionFieldsJobtype,
102-
"isIncremental": GetJobDefinitionFieldsIsincremental,
103-
"dataAssetKey": GetJobDefinitionFieldsDataassetkey,
104-
"connectionKey": GetJobDefinitionFieldsConnectionkey,
105-
"internalVersion": GetJobDefinitionFieldsInternalversion,
106-
"lifecycleState": GetJobDefinitionFieldsLifecyclestate,
107-
"timeCreated": GetJobDefinitionFieldsTimecreated,
108-
"timeUpdated": GetJobDefinitionFieldsTimeupdated,
109-
"createdById": GetJobDefinitionFieldsCreatedbyid,
110-
"updatedById": GetJobDefinitionFieldsUpdatedbyid,
111-
"uri": GetJobDefinitionFieldsUri,
97+
"key": GetJobDefinitionFieldsKey,
98+
"displayName": GetJobDefinitionFieldsDisplayname,
99+
"description": GetJobDefinitionFieldsDescription,
100+
"catalogId": GetJobDefinitionFieldsCatalogid,
101+
"jobType": GetJobDefinitionFieldsJobtype,
102+
"isIncremental": GetJobDefinitionFieldsIsincremental,
103+
"dataAssetKey": GetJobDefinitionFieldsDataassetkey,
104+
"connectionKey": GetJobDefinitionFieldsConnectionkey,
105+
"internalVersion": GetJobDefinitionFieldsInternalversion,
106+
"lifecycleState": GetJobDefinitionFieldsLifecyclestate,
107+
"timeCreated": GetJobDefinitionFieldsTimecreated,
108+
"timeUpdated": GetJobDefinitionFieldsTimeupdated,
109+
"createdById": GetJobDefinitionFieldsCreatedbyid,
110+
"updatedById": GetJobDefinitionFieldsUpdatedbyid,
111+
"uri": GetJobDefinitionFieldsUri,
112112
"isSampleDataExtracted": GetJobDefinitionFieldsIssampledataextracted,
113113
"sampleDataSizeInMBs": GetJobDefinitionFieldsSampledatasizeinmbs,
114114
"properties": GetJobDefinitionFieldsProperties,

datacatalog/get_term_request_response.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ var mappingGetTermFields = map[string]GetTermFieldsEnum{
103103
"glossaryKey": GetTermFieldsGlossarykey,
104104
"parentTermKey": GetTermFieldsParenttermkey,
105105
"isAllowedToHaveChildTerms": GetTermFieldsIsallowedtohavechildterms,
106-
"path": GetTermFieldsPath,
107-
"lifecycleState": GetTermFieldsLifecyclestate,
108-
"timeCreated": GetTermFieldsTimecreated,
109-
"timeUpdated": GetTermFieldsTimeupdated,
110-
"createdById": GetTermFieldsCreatedbyid,
111-
"updatedById": GetTermFieldsUpdatedbyid,
112-
"owner": GetTermFieldsOwner,
113-
"workflowStatus": GetTermFieldsWorkflowstatus,
114-
"uri": GetTermFieldsUri,
115-
"relatedTerms": GetTermFieldsRelatedterms,
116-
"associatedObjectCount": GetTermFieldsAssociatedobjectcount,
117-
"associatedObjects": GetTermFieldsAssociatedobjects,
106+
"path": GetTermFieldsPath,
107+
"lifecycleState": GetTermFieldsLifecyclestate,
108+
"timeCreated": GetTermFieldsTimecreated,
109+
"timeUpdated": GetTermFieldsTimeupdated,
110+
"createdById": GetTermFieldsCreatedbyid,
111+
"updatedById": GetTermFieldsUpdatedbyid,
112+
"owner": GetTermFieldsOwner,
113+
"workflowStatus": GetTermFieldsWorkflowstatus,
114+
"uri": GetTermFieldsUri,
115+
"relatedTerms": GetTermFieldsRelatedterms,
116+
"associatedObjectCount": GetTermFieldsAssociatedobjectcount,
117+
"associatedObjects": GetTermFieldsAssociatedobjects,
118118
}
119119

120120
// GetGetTermFieldsEnumValues Enumerates the set of values for GetTermFieldsEnum

datacatalog/list_job_definitions_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var mappingListJobDefinitionsFields = map[string]ListJobDefinitionsFieldsEnum{
135135
"lifecycleState": ListJobDefinitionsFieldsLifecyclestate,
136136
"timeCreated": ListJobDefinitionsFieldsTimecreated,
137137
"isSampleDataExtracted": ListJobDefinitionsFieldsIssampledataextracted,
138-
"uri": ListJobDefinitionsFieldsUri,
138+
"uri": ListJobDefinitionsFieldsUri,
139139
}
140140

141141
// GetListJobDefinitionsFieldsEnumValues Enumerates the set of values for ListJobDefinitionsFieldsEnum

datacatalog/list_tags_request_response.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ var mappingListTagsFields = map[string]ListTagsFieldsEnum{
109109
"glossaryKey": ListTagsFieldsGlossarykey,
110110
"parentTermKey": ListTagsFieldsParenttermkey,
111111
"isAllowedToHaveChildTerms": ListTagsFieldsIsallowedtohavechildterms,
112-
"path": ListTagsFieldsPath,
113-
"lifecycleState": ListTagsFieldsLifecyclestate,
114-
"timeCreated": ListTagsFieldsTimecreated,
115-
"workflowStatus": ListTagsFieldsWorkflowstatus,
116-
"associatedObjectCount": ListTagsFieldsAssociatedobjectcount,
117-
"uri": ListTagsFieldsUri,
112+
"path": ListTagsFieldsPath,
113+
"lifecycleState": ListTagsFieldsLifecyclestate,
114+
"timeCreated": ListTagsFieldsTimecreated,
115+
"workflowStatus": ListTagsFieldsWorkflowstatus,
116+
"associatedObjectCount": ListTagsFieldsAssociatedobjectcount,
117+
"uri": ListTagsFieldsUri,
118118
}
119119

120120
// GetListTagsFieldsEnumValues Enumerates the set of values for ListTagsFieldsEnum

datacatalog/list_terms_request_response.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ var mappingListTermsFields = map[string]ListTermsFieldsEnum{
124124
"glossaryKey": ListTermsFieldsGlossarykey,
125125
"parentTermKey": ListTermsFieldsParenttermkey,
126126
"isAllowedToHaveChildTerms": ListTermsFieldsIsallowedtohavechildterms,
127-
"path": ListTermsFieldsPath,
128-
"lifecycleState": ListTermsFieldsLifecyclestate,
129-
"timeCreated": ListTermsFieldsTimecreated,
130-
"workflowStatus": ListTermsFieldsWorkflowstatus,
131-
"associatedObjectCount": ListTermsFieldsAssociatedobjectcount,
132-
"uri": ListTermsFieldsUri,
127+
"path": ListTermsFieldsPath,
128+
"lifecycleState": ListTermsFieldsLifecyclestate,
129+
"timeCreated": ListTermsFieldsTimecreated,
130+
"workflowStatus": ListTermsFieldsWorkflowstatus,
131+
"associatedObjectCount": ListTermsFieldsAssociatedobjectcount,
132+
"uri": ListTermsFieldsUri,
133133
}
134134

135135
// GetListTermsFieldsEnumValues Enumerates the set of values for ListTermsFieldsEnum

example/example_cluster_network_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func createClusterNetwork(ctx context.Context, client core.ComputeManagementClie
120120
PlacementConfiguration: &placementConfigurationDetails,
121121
InstancePools: []core.CreateClusterNetworkInstancePoolDetails{
122122
{
123-
Size: &size,
123+
Size: &size,
124124
InstanceConfigurationId: &instanceConfigurationId,
125125
},
126126
},

example/example_functions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func createOrGetRouteTable(c core.VirtualNetworkClient, gatewayID, VcnID *string
312312
}
313313

314314
updateRTRequest := core.UpdateRouteTableRequest{
315-
RtId: listRTResponse.Items[0].Id,
315+
RtId: listRTResponse.Items[0].Id,
316316
UpdateRouteTableDetails: updateRTDetails,
317317
}
318318

example/example_keymanagement_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func changeVaultCompartment(ctx context.Context, client keymanagement.KmsVaultCl
281281
}
282282

283283
request := keymanagement.ChangeVaultCompartmentRequest{
284-
VaultId: vaultId,
284+
VaultId: vaultId,
285285
ChangeVaultCompartmentDetails: changeVaultCompartmentDetails,
286286
}
287287

@@ -311,7 +311,7 @@ func changeKeyCompartment(ctx context.Context, client keymanagement.KmsManagemen
311311
}
312312

313313
request := keymanagement.ChangeKeyCompartmentRequest{
314-
KeyId: keyId,
314+
KeyId: keyId,
315315
ChangeKeyCompartmentDetails: changeKeyCompartmentDetails,
316316
}
317317

example/example_loadbalancer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ func ExampleCreateLoadbalancer() {
128128
listeners := map[string]loadbalancer.ListenerDetails{
129129
listenerDisplayName: {
130130
DefaultBackendSetName: common.String(backendSetOneName),
131-
Port: common.Int(80),
132-
Protocol: common.String("HTTP"),
133-
RuleSetNames: []string{rulesetOneName},
131+
Port: common.Int(80),
132+
Protocol: common.String("HTTP"),
133+
RuleSetNames: []string{rulesetOneName},
134134
},
135135
}
136136

example/example_objectstorage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func ExampleObjectStorage_UploadManager_UploadFile() {
7979
BucketName: common.String(bname),
8080
ObjectName: common.String(objectName),
8181
//PartSize: common.Int(10000000),
82-
CallBack: callBack,
82+
CallBack: callBack,
8383
EnableMultipartChecksumVerification: common.Bool(true),
8484
},
8585
FilePath: filepath,

loadbalancer/health_check_result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const (
5252
)
5353

5454
var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum{
55-
"OK": HealthCheckResultHealthCheckStatusOk,
55+
"OK": HealthCheckResultHealthCheckStatusOk,
5656
"INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode,
5757
"TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut,
5858
"REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch,

loadbalancer/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var mappingRuleAction = map[string]RuleActionEnum{
116116
"ADD_HTTP_RESPONSE_HEADER": RuleActionAddHttpResponseHeader,
117117
"EXTEND_HTTP_RESPONSE_HEADER_VALUE": RuleActionExtendHttpResponseHeaderValue,
118118
"REMOVE_HTTP_RESPONSE_HEADER": RuleActionRemoveHttpResponseHeader,
119-
"ALLOW": RuleActionAllow,
119+
"ALLOW": RuleActionAllow,
120120
"CONTROL_ACCESS_USING_HTTP_METHODS": RuleActionControlAccessUsingHttpMethods,
121121
"REDIRECT": RuleActionRedirect,
122122
}

objectstorage/transfer/stream_uploader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ func (streamUpload *streamUpload) startConcurrentUpload(ctx context.Context, don
7575
if err != nil {
7676
common.Debugf("failed to commit with error: %v\n", err)
7777
return UploadResponse{
78-
Type: MultipartUpload,
78+
Type: MultipartUpload,
7979
MultipartUploadResponse: &MultipartUploadResponse{UploadID: common.String(streamUpload.uploadID)}},
8080
err
8181
}
8282

8383
response = UploadResponse{
84-
Type: MultipartUpload,
84+
Type: MultipartUpload,
8585
MultipartUploadResponse: &MultipartUploadResponse{CommitMultipartUploadResponse: resp},
8686
}
8787
return

oce/create_oce_instance_details.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ type CreateOceInstanceDetails struct {
4444
// Instance type based on its usage
4545
InstanceUsageType CreateOceInstanceDetailsInstanceUsageTypeEnum `mandatory:"false" json:"instanceUsageType,omitempty"`
4646

47+
// Web Application Firewall(WAF) primary domain
48+
WafPrimaryDomain *string `mandatory:"false" json:"wafPrimaryDomain"`
49+
4750
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
4851
// Example: `{"bar-key": "value"}`
4952
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

oce/oce_instance.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ type OceInstance struct {
5050
// Instance type based on its usage
5151
InstanceUsageType OceInstanceInstanceUsageTypeEnum `mandatory:"false" json:"instanceUsageType,omitempty"`
5252

53+
// Web Application Firewall(WAF) primary domain
54+
WafPrimaryDomain *string `mandatory:"false" json:"wafPrimaryDomain"`
55+
5356
// The time the the OceInstance was created. An RFC3339 formatted datetime string
5457
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
5558

oce/oce_instance_summary.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ type OceInstanceSummary struct {
4848
// Instance type based on its usage
4949
InstanceUsageType OceInstanceSummaryInstanceUsageTypeEnum `mandatory:"false" json:"instanceUsageType,omitempty"`
5050

51+
// Web Application Firewall(WAF) primary domain
52+
WafPrimaryDomain *string `mandatory:"false" json:"wafPrimaryDomain"`
53+
5154
// The time the the OceInstance was created. An RFC3339 formatted datetime string
5255
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
5356

0 commit comments

Comments
 (0)