Skip to content

Commit 57427b1

Browse files
authored
Releasing version 15.0.0 (#210)
Squashed commit of the following: commit 1e55444516c005da93fc9edbc5fbb34b58307f3b Author: Sun Yan <[email protected]> Date: Tue Jan 7 18:15:31 2020 +0000 Releasing version 15 0 0
1 parent 06d9215 commit 57427b1

Some content is hidden

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

45 files changed

+99
-65
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ 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+
## 15.0.0 - 2020-01-07
8+
### Added
9+
- Support for optionally specifying the corporate proxy field when creating Exadata infrastructure in the Database service
10+
- Support for maintenance windows, and rescheduling maintenance runs, on autonomous container databases in the Database service
11+
12+
### Breaking changes
13+
- Field `hostname` in `NodeDetails` from Database service is changed to mandatory
14+
715
## 14.0.0 - 2019-12-17
816
### Added
917
- Support for the API Gateway service

common/auth/federation_client.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,14 @@ func (c *x509FederationClient) getSecurityToken() (securityToken, error) {
290290

291291
var httpResponse *http.Response
292292
defer common.CloseBodyIfValid(httpResponse)
293-
if httpResponse, err = c.authClient.Call(context.Background(), &httpRequest); err != nil {
293+
294+
for retry := 0; retry < 5; retry++ {
295+
if httpResponse, err = c.authClient.Call(context.Background(), &httpRequest); err == nil {
296+
break
297+
}
298+
time.Sleep(250 * time.Microsecond)
299+
}
300+
if err != nil {
294301
return nil, fmt.Errorf("failed to call: %s", err.Error())
295302
}
296303

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/autonomous_container_database.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ type AutonomousContainerDatabase struct {
4848
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the next maintenance run.
4949
NextMaintenanceRunId *string `mandatory:"false" json:"nextMaintenanceRunId"`
5050

51+
MaintenanceWindow *MaintenanceWindow `mandatory:"false" json:"maintenanceWindow"`
52+
5153
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
5254
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
5355
// Example: `{"Department": "Finance"}`

database/autonomous_container_database_summary.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ type AutonomousContainerDatabaseSummary struct {
4848
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the next maintenance run.
4949
NextMaintenanceRunId *string `mandatory:"false" json:"nextMaintenanceRunId"`
5050

51+
MaintenanceWindow *MaintenanceWindow `mandatory:"false" json:"maintenanceWindow"`
52+
5153
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
5254
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
5355
// Example: `{"Department": "Finance"}`

database/create_autonomous_container_database_details.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ type CreateAutonomousContainerDatabaseDetails struct {
3030
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the Autonomous Container Database.
3131
CompartmentId *string `mandatory:"false" json:"compartmentId"`
3232

33+
MaintenanceWindowDetails *MaintenanceWindow `mandatory:"false" json:"maintenanceWindowDetails"`
34+
3335
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
3436
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
3537
// Example: `{"Department": "Finance"}`

database/create_db_home_base.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"github.com/oracle/oci-go-sdk/common"
1414
)
1515

16-
// CreateDbHomeBase Details for creating a database home.
16+
// CreateDbHomeBase Details for creating a Database Home.
1717
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
1818
type CreateDbHomeBase interface {
1919

20-
// The user-provided name of the database home.
20+
// The user-provided name of the Database Home.
2121
GetDisplayName() *string
2222
}
2323

database/create_db_home_details.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/oracle/oci-go-sdk/common"
1313
)
1414

15-
// CreateDbHomeDetails Details for creating a database home.
15+
// CreateDbHomeDetails Details for creating a Database Home.
1616
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
1717
type CreateDbHomeDetails struct {
1818

@@ -21,7 +21,7 @@ type CreateDbHomeDetails struct {
2121

2222
Database *CreateDatabaseDetails `mandatory:"true" json:"database"`
2323

24-
// The user-provided name of the database home.
24+
// The user-provided name of the Database Home.
2525
DisplayName *string `mandatory:"false" json:"displayName"`
2626
}
2727

database/create_db_home_from_backup_details.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import (
1212
"github.com/oracle/oci-go-sdk/common"
1313
)
1414

15-
// CreateDbHomeFromBackupDetails Details for creating a database home if you are creating a database by restoring from a database backup.
15+
// CreateDbHomeFromBackupDetails Details for creating a Database Home if you are creating a database by restoring from a database backup.
1616
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
1717
type CreateDbHomeFromBackupDetails struct {
1818
Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"`
1919

20-
// The user-provided name of the database home.
20+
// The user-provided name of the Database Home.
2121
DisplayName *string `mandatory:"false" json:"displayName"`
2222
}
2323

database/create_db_home_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// CreateDbHomeRequest wrapper for the CreateDbHome operation
1212
type CreateDbHomeRequest struct {
1313

14-
// Request to create a new database home.
14+
// Request to create a new Database Home.
1515
CreateDbHomeWithDbSystemIdDetails CreateDbHomeBase `contributesTo:"body"`
1616

1717
// A token that uniquely identifies a request so it can be retried in case of a timeout or

database/create_db_home_with_db_system_id_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type CreateDbHomeWithDbSystemIdDetails struct {
2424

2525
Database *CreateDatabaseDetails `mandatory:"true" json:"database"`
2626

27-
// The user-provided name of the database home.
27+
// The user-provided name of the Database Home.
2828
DisplayName *string `mandatory:"false" json:"displayName"`
2929
}
3030

database/create_db_home_with_db_system_id_from_backup_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type CreateDbHomeWithDbSystemIdFromBackupDetails struct {
2121

2222
Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"`
2323

24-
// The user-provided name of the database home.
24+
// The user-provided name of the Database Home.
2525
DisplayName *string `mandatory:"false" json:"displayName"`
2626
}
2727

database/create_db_home_with_vm_cluster_id_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type CreateDbHomeWithVmClusterIdDetails struct {
2424

2525
Database *CreateDatabaseDetails `mandatory:"true" json:"database"`
2626

27-
// The user-provided name of the database home.
27+
// The user-provided name of the Database Home.
2828
DisplayName *string `mandatory:"false" json:"displayName"`
2929
}
3030

database/create_exadata_infrastructure_details.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ type CreateExadataInfrastructureDetails struct {
4545
// The CIDR block for the Exadata InfiniBand interconnect.
4646
InfiniBandNetworkCIDR *string `mandatory:"true" json:"infiniBandNetworkCIDR"`
4747

48-
// The corporate network proxy for access to the control plane network.
49-
CorporateProxy *string `mandatory:"true" json:"corporateProxy"`
50-
5148
// The list of DNS server IP addresses. Maximum of 3 allowed.
5249
DnsServer []string `mandatory:"true" json:"dnsServer"`
5350

5451
// The list of NTP server IP addresses. Maximum of 3 allowed.
5552
NtpServer []string `mandatory:"true" json:"ntpServer"`
5653

54+
// The corporate network proxy for access to the control plane network.
55+
CorporateProxy *string `mandatory:"false" json:"corporateProxy"`
56+
5757
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
5858
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
5959
// Example: `{"Department": "Finance"}`

database/data_guard_association.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type DataGuardAssociation struct {
4242
// Additional information about the current lifecycleState, if available.
4343
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
4444

45-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
45+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home containing the associated peer database.
4646
PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"`
4747

4848
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated peer database.

database/data_guard_association_summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type DataGuardAssociationSummary struct {
4848
// Additional information about the current lifecycleState, if available.
4949
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
5050

51-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
51+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home containing the associated peer database.
5252
PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"`
5353

5454
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated peer database.

database/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type Database struct {
3636
// The national character set for the database.
3737
NcharacterSet *string `mandatory:"false" json:"ncharacterSet"`
3838

39-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home.
39+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home.
4040
DbHomeId *string `mandatory:"false" json:"dbHomeId"`
4141

4242
// The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name.

database/database_client.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ func (client DatabaseClient) createDataGuardAssociation(ctx context.Context, req
876876
return response, err
877877
}
878878

879-
// CreateDbHome Creates a new database home in the specified DB system based on the request parameters you provide.
879+
// CreateDbHome Creates a new Database Home in the specified DB system based on the request parameters you provide. Applies only to bare metal and Exadata DB systems.
880880
func (client DatabaseClient) CreateDbHome(ctx context.Context, request CreateDbHomeRequest) (response CreateDbHomeResponse, err error) {
881881
var ociResponse common.OCIResponse
882882
policy := common.NoRetryPolicy()
@@ -1338,7 +1338,7 @@ func (client DatabaseClient) deleteBackupDestination(ctx context.Context, reques
13381338
return response, err
13391339
}
13401340

1341-
// DeleteDbHome Deletes a DB Home. The DB Home and its database data are local to the DB system and will be lost when it is deleted. Oracle recommends that you back up any data in the DB system prior to deleting it.
1341+
// DeleteDbHome Deletes a Database Home. The Database Home and its database data are local to the DB system and are lost when you delete the Database Home. Oracle recommends that you back up any data on the DB system before you delete it.
13421342
func (client DatabaseClient) DeleteDbHome(ctx context.Context, request DeleteDbHomeRequest) (response DeleteDbHomeResponse, err error) {
13431343
var ociResponse common.OCIResponse
13441344
policy := common.NoRetryPolicy()
@@ -2328,7 +2328,7 @@ func (client DatabaseClient) getDatabase(ctx context.Context, request common.OCI
23282328
return response, err
23292329
}
23302330

2331-
// GetDbHome Gets information about the specified database home.
2331+
// GetDbHome Gets information about the specified Database Home.
23322332
func (client DatabaseClient) GetDbHome(ctx context.Context, request GetDbHomeRequest) (response GetDbHomeResponse, err error) {
23332333
var ociResponse common.OCIResponse
23342334
policy := common.NoRetryPolicy()
@@ -3478,7 +3478,7 @@ func (client DatabaseClient) listDataGuardAssociations(ctx context.Context, requ
34783478
return response, err
34793479
}
34803480

3481-
// ListDatabases Gets a list of the databases in the specified database home.
3481+
// ListDatabases Gets a list of the databases in the specified Database Home.
34823482
func (client DatabaseClient) ListDatabases(ctx context.Context, request ListDatabasesRequest) (response ListDatabasesResponse, err error) {
34833483
var ociResponse common.OCIResponse
34843484
policy := common.NoRetryPolicy()
@@ -3520,7 +3520,7 @@ func (client DatabaseClient) listDatabases(ctx context.Context, request common.O
35203520
return response, err
35213521
}
35223522

3523-
// ListDbHomePatchHistoryEntries Gets history of the actions taken for patches for the specified database home.
3523+
// ListDbHomePatchHistoryEntries Gets history of the actions taken for patches for the specified Database Home.
35243524
func (client DatabaseClient) ListDbHomePatchHistoryEntries(ctx context.Context, request ListDbHomePatchHistoryEntriesRequest) (response ListDbHomePatchHistoryEntriesResponse, err error) {
35253525
var ociResponse common.OCIResponse
35263526
policy := common.NoRetryPolicy()
@@ -3562,7 +3562,7 @@ func (client DatabaseClient) listDbHomePatchHistoryEntries(ctx context.Context,
35623562
return response, err
35633563
}
35643564

3565-
// ListDbHomePatches Lists patches applicable to the requested database home.
3565+
// ListDbHomePatches Lists patches applicable to the requested Database Home.
35663566
func (client DatabaseClient) ListDbHomePatches(ctx context.Context, request ListDbHomePatchesRequest) (response ListDbHomePatchesResponse, err error) {
35673567
var ociResponse common.OCIResponse
35683568
policy := common.NoRetryPolicy()
@@ -3604,7 +3604,7 @@ func (client DatabaseClient) listDbHomePatches(ctx context.Context, request comm
36043604
return response, err
36053605
}
36063606

3607-
// ListDbHomes Gets a list of database homes in the specified DB system and compartment. A database home is a directory where Oracle Database software is installed.
3607+
// ListDbHomes Gets a list of Database Homes in the specified DB system and compartment. A Database Home is a directory where Oracle Database software is installed.
36083608
func (client DatabaseClient) ListDbHomes(ctx context.Context, request ListDbHomesRequest) (response ListDbHomesResponse, err error) {
36093609
var ociResponse common.OCIResponse
36103610
policy := common.NoRetryPolicy()

database/database_summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type DatabaseSummary struct {
3838
// The national character set for the database.
3939
NcharacterSet *string `mandatory:"false" json:"ncharacterSet"`
4040

41-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home.
41+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home.
4242
DbHomeId *string `mandatory:"false" json:"dbHomeId"`
4343

4444
// The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name.

database/db_home.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import (
1515
// DbHome The representation of DbHome
1616
type DbHome struct {
1717

18-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home.
18+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home.
1919
Id *string `mandatory:"true" json:"id"`
2020

2121
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
2222
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2323

24-
// The user-provided name for the database home. The name does not need to be unique.
24+
// The user-provided name for the Database Home. The name does not need to be unique.
2525
DisplayName *string `mandatory:"true" json:"displayName"`
2626

27-
// The current state of the database home.
27+
// The current state of the Database Home.
2828
LifecycleState DbHomeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
2929

3030
// The Oracle Database version.
@@ -39,7 +39,7 @@ type DbHome struct {
3939
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VM cluster.
4040
VmClusterId *string `mandatory:"false" json:"vmClusterId"`
4141

42-
// The date and time the database home was created.
42+
// The date and time the Database Home was created.
4343
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
4444
}
4545

database/db_home_summary.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ import (
1212
"github.com/oracle/oci-go-sdk/common"
1313
)
1414

15-
// DbHomeSummary A directory where Oracle Database software is installed. A bare metal DB system can have multiple database homes
16-
// and each database home can run a different supported version of Oracle Database. A virtual machine DB system can have only one database home.
17-
// For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.cloud.oracle.com/Content/Database/Concepts/overview.htm).
15+
// DbHomeSummary A directory where Oracle Database software is installed. A bare metal or Exadata DB system can have multiple Database Homes
16+
// and each Database Home can run a different supported version of Oracle Database. A virtual machine DB system can have only one Database Home.
17+
// For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.cloud.oracle.com/Content/Database/Concepts/overview.htm) and Exadata DB Systems (https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm).
1818
// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an
1919
// administrator. If you're an administrator who needs to write policies to give users access,
2020
// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
2121
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
2222
type DbHomeSummary struct {
2323

24-
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database home.
24+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Database Home.
2525
Id *string `mandatory:"true" json:"id"`
2626

2727
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
2828
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2929

30-
// The user-provided name for the database home. The name does not need to be unique.
30+
// The user-provided name for the Database Home. The name does not need to be unique.
3131
DisplayName *string `mandatory:"true" json:"displayName"`
3232

33-
// The current state of the database home.
33+
// The current state of the Database Home.
3434
LifecycleState DbHomeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
3535

3636
// The Oracle Database version.
@@ -45,7 +45,7 @@ type DbHomeSummary struct {
4545
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VM cluster.
4646
VmClusterId *string `mandatory:"false" json:"vmClusterId"`
4747

48-
// The date and time the database home was created.
48+
// The date and time the Database Home was created.
4949
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
5050
}
5151

database/db_system_options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import (
1515
// DbSystemOptions The DB system options.
1616
type DbSystemOptions struct {
1717

18-
// The storage option used in DB system. For 1-node VM systems, you can specify either Automatic Storage Management (ASM) (https://www.oracle.com/pls/topic/lookup?ctx=en/database/oracle/oracle-database/19&id=OSTMG-GUID-BC612D35-5399-4A35-843E-CF76E3D3CDB5) or Logical Volume Manager (LVM) (https://www.oracle.com/pls/topic/lookup?ctx=en/database/oracle/oracle-database/19&id=ADMIN-GUID-57C50259-9472-4ED0-8818-DB9ABA96EC8E). For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.cloud.oracle.com/Content/Database/Concepts/overview.htm#fastprovisioning).
18+
// The storage option used in DB system.
19+
// ASM - Automatic storage management
20+
// LVM - Logical Volume management
1921
StorageManagement DbSystemOptionsStorageManagementEnum `mandatory:"false" json:"storageManagement,omitempty"`
2022
}
2123

0 commit comments

Comments
 (0)