Skip to content

Commit 2ba26c7

Browse files
authored
Merge pull request #497 from oracle/release_2024-05-07
Releasing version 65.65.1
2 parents 3b9eb10 + 4be8980 commit 2ba26c7

File tree

65 files changed

+3020
-82
lines changed

Some content is hidden

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

65 files changed

+3020
-82
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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+
## 65.65.1 - 2024-05-07
8+
### Added
9+
- Support for resizing of local file systems in the Database service
10+
- Support for adding user defined pause group in disaster recovery plan in the Disaster Recovery service
11+
- Support for OS patching configs in the Big Data service
12+
- Support for IP inventory and notification feature in the Networking service
13+
- Support for accidental delete protection for load balancers, load balancer listeners, and load balancer backends in the Load Balancer service
14+
- Support for backend max connections for load balancers in the Load Balancer service
15+
- Support for listener max connections for load balancers in the Load Balancer service
16+
17+
718
## 65.65.0 - 2024-04-30
819
### Added
920
- Support for enabling unified auditing for DBHome in the Database service
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Big Data Service API
6+
//
7+
// REST API for Oracle Big Data Service. Use this API to build, deploy, and manage fully elastic Big Data Service clusters. Build on Hadoop, Spark and Data Science distributions, which can be fully integrated with existing enterprise data in Oracle Database and Oracle applications.
8+
//
9+
10+
package bds
11+
12+
import (
13+
"encoding/json"
14+
"fmt"
15+
"github.com/oracle/oci-go-sdk/v65/common"
16+
"strings"
17+
)
18+
19+
// BatchingBasedPatchingConfigs Patching configurations which allows patch the nodes batch by batch.
20+
type BatchingBasedPatchingConfigs struct {
21+
22+
// How many nodes to be patched and rebooted in each iteration.
23+
BatchSize *int `mandatory:"true" json:"batchSize"`
24+
25+
// The wait time between batches in seconds.
26+
WaitTimeBetweenBatchInSeconds *int `mandatory:"true" json:"waitTimeBetweenBatchInSeconds"`
27+
28+
// Acceptable number of failed-to-be-patched nodes in each batch. The maximum number of failed-to-patch nodes cannot exceed 20% of the number of nodes.
29+
ToleranceThresholdPerBatch *int `mandatory:"true" json:"toleranceThresholdPerBatch"`
30+
}
31+
32+
func (m BatchingBasedPatchingConfigs) String() string {
33+
return common.PointerString(m)
34+
}
35+
36+
// ValidateEnumValue returns an error when providing an unsupported enum value
37+
// This function is being called during constructing API request process
38+
// Not recommended for calling this function directly
39+
func (m BatchingBasedPatchingConfigs) ValidateEnumValue() (bool, error) {
40+
errMessage := []string{}
41+
42+
if len(errMessage) > 0 {
43+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
44+
}
45+
return false, nil
46+
}
47+
48+
// MarshalJSON marshals to json representation
49+
func (m BatchingBasedPatchingConfigs) MarshalJSON() (buff []byte, e error) {
50+
type MarshalTypeBatchingBasedPatchingConfigs BatchingBasedPatchingConfigs
51+
s := struct {
52+
DiscriminatorParam string `json:"patchingConfigStrategy"`
53+
MarshalTypeBatchingBasedPatchingConfigs
54+
}{
55+
"BATCHING_BASED",
56+
(MarshalTypeBatchingBasedPatchingConfigs)(m),
57+
}
58+
59+
return json.Marshal(&s)
60+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Big Data Service API
6+
//
7+
// REST API for Oracle Big Data Service. Use this API to build, deploy, and manage fully elastic Big Data Service clusters. Build on Hadoop, Spark and Data Science distributions, which can be fully integrated with existing enterprise data in Oracle Database and Oracle applications.
8+
//
9+
10+
package bds
11+
12+
import (
13+
"encoding/json"
14+
"fmt"
15+
"github.com/oracle/oci-go-sdk/v65/common"
16+
"strings"
17+
)
18+
19+
// DowntimeBasedPatchingConfigs Patching configurations which allows downtime. This patching config will patch and reboot all the nodes in parallel.
20+
type DowntimeBasedPatchingConfigs struct {
21+
}
22+
23+
func (m DowntimeBasedPatchingConfigs) String() string {
24+
return common.PointerString(m)
25+
}
26+
27+
// ValidateEnumValue returns an error when providing an unsupported enum value
28+
// This function is being called during constructing API request process
29+
// Not recommended for calling this function directly
30+
func (m DowntimeBasedPatchingConfigs) ValidateEnumValue() (bool, error) {
31+
errMessage := []string{}
32+
33+
if len(errMessage) > 0 {
34+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
35+
}
36+
return false, nil
37+
}
38+
39+
// MarshalJSON marshals to json representation
40+
func (m DowntimeBasedPatchingConfigs) MarshalJSON() (buff []byte, e error) {
41+
type MarshalTypeDowntimeBasedPatchingConfigs DowntimeBasedPatchingConfigs
42+
s := struct {
43+
DiscriminatorParam string `json:"patchingConfigStrategy"`
44+
MarshalTypeDowntimeBasedPatchingConfigs
45+
}{
46+
"DOWNTIME_BASED",
47+
(MarshalTypeDowntimeBasedPatchingConfigs)(m),
48+
}
49+
50+
return json.Marshal(&s)
51+
}

bds/install_os_patch_details.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
package bds
1111

1212
import (
13+
"encoding/json"
1314
"fmt"
1415
"github.com/oracle/oci-go-sdk/v65/common"
1516
"strings"
@@ -23,6 +24,8 @@ type InstallOsPatchDetails struct {
2324

2425
// Base-64 encoded password for the cluster admin user.
2526
ClusterAdminPassword *string `mandatory:"true" json:"clusterAdminPassword"`
27+
28+
PatchingConfigs PatchingConfigs `mandatory:"false" json:"patchingConfigs"`
2629
}
2730

2831
func (m InstallOsPatchDetails) String() string {
@@ -40,3 +43,33 @@ func (m InstallOsPatchDetails) ValidateEnumValue() (bool, error) {
4043
}
4144
return false, nil
4245
}
46+
47+
// UnmarshalJSON unmarshals from json
48+
func (m *InstallOsPatchDetails) UnmarshalJSON(data []byte) (e error) {
49+
model := struct {
50+
PatchingConfigs patchingconfigs `json:"patchingConfigs"`
51+
OsPatchVersion *string `json:"osPatchVersion"`
52+
ClusterAdminPassword *string `json:"clusterAdminPassword"`
53+
}{}
54+
55+
e = json.Unmarshal(data, &model)
56+
if e != nil {
57+
return
58+
}
59+
var nn interface{}
60+
nn, e = model.PatchingConfigs.UnmarshalPolymorphicJSON(model.PatchingConfigs.JsonData)
61+
if e != nil {
62+
return
63+
}
64+
if nn != nil {
65+
m.PatchingConfigs = nn.(PatchingConfigs)
66+
} else {
67+
m.PatchingConfigs = nil
68+
}
69+
70+
m.OsPatchVersion = model.OsPatchVersion
71+
72+
m.ClusterAdminPassword = model.ClusterAdminPassword
73+
74+
return
75+
}

bds/list_patch_histories_request_response.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ type ListPatchHistoriesRequest struct {
2727
// The status of the patch.
2828
LifecycleState PatchHistorySummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
2929

30-
// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
31-
SortBy ListPatchHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
32-
3330
// The version of the patch
3431
PatchVersion *string `mandatory:"false" contributesTo:"query" name:"patchVersion"`
3532

33+
// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
34+
SortBy ListPatchHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
35+
3636
// The sort order to use, either 'asc' or 'desc'.
3737
SortOrder ListPatchHistoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
3838

bds/node.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ type Node struct {
7777

7878
// The date and time the instance is expected to be stopped / started, in the format defined by RFC3339.
7979
TimeMaintenanceRebootDue *common.SDKTime `mandatory:"false" json:"timeMaintenanceRebootDue"`
80+
81+
// BDS-assigned Operating System version for the node.
82+
OsVersion *string `mandatory:"false" json:"osVersion"`
83+
84+
// Indicates if the node requires a reboot to either reflect the latest os kernel or take actions for maintenance reboot.
85+
IsRebootRequired *bool `mandatory:"false" json:"isRebootRequired"`
8086
}
8187

8288
func (m Node) String() string {

bds/patching_configs.go

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Big Data Service API
6+
//
7+
// REST API for Oracle Big Data Service. Use this API to build, deploy, and manage fully elastic Big Data Service clusters. Build on Hadoop, Spark and Data Science distributions, which can be fully integrated with existing enterprise data in Oracle Database and Oracle applications.
8+
//
9+
10+
package bds
11+
12+
import (
13+
"encoding/json"
14+
"fmt"
15+
"github.com/oracle/oci-go-sdk/v65/common"
16+
"strings"
17+
)
18+
19+
// PatchingConfigs Detailed configurations for defining the behavior when installing os patches. If not provided, nodes will be patched and rebooted AD/FD by AD/FD.
20+
type PatchingConfigs interface {
21+
}
22+
23+
type patchingconfigs struct {
24+
JsonData []byte
25+
PatchingConfigStrategy string `json:"patchingConfigStrategy"`
26+
}
27+
28+
// UnmarshalJSON unmarshals json
29+
func (m *patchingconfigs) UnmarshalJSON(data []byte) error {
30+
m.JsonData = data
31+
type Unmarshalerpatchingconfigs patchingconfigs
32+
s := struct {
33+
Model Unmarshalerpatchingconfigs
34+
}{}
35+
err := json.Unmarshal(data, &s.Model)
36+
if err != nil {
37+
return err
38+
}
39+
m.PatchingConfigStrategy = s.Model.PatchingConfigStrategy
40+
41+
return err
42+
}
43+
44+
// UnmarshalPolymorphicJSON unmarshals polymorphic json
45+
func (m *patchingconfigs) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) {
46+
47+
if data == nil || string(data) == "null" {
48+
return nil, nil
49+
}
50+
51+
var err error
52+
switch m.PatchingConfigStrategy {
53+
case "BATCHING_BASED":
54+
mm := BatchingBasedPatchingConfigs{}
55+
err = json.Unmarshal(data, &mm)
56+
return mm, err
57+
case "DOWNTIME_BASED":
58+
mm := DowntimeBasedPatchingConfigs{}
59+
err = json.Unmarshal(data, &mm)
60+
return mm, err
61+
default:
62+
common.Logf("Recieved unsupported enum value for PatchingConfigs: %s.", m.PatchingConfigStrategy)
63+
return *m, nil
64+
}
65+
}
66+
67+
func (m patchingconfigs) String() string {
68+
return common.PointerString(m)
69+
}
70+
71+
// ValidateEnumValue returns an error when providing an unsupported enum value
72+
// This function is being called during constructing API request process
73+
// Not recommended for calling this function directly
74+
func (m patchingconfigs) ValidateEnumValue() (bool, error) {
75+
errMessage := []string{}
76+
77+
if len(errMessage) > 0 {
78+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
79+
}
80+
return false, nil
81+
}
82+
83+
// PatchingConfigsPatchingConfigStrategyEnum Enum with underlying type: string
84+
type PatchingConfigsPatchingConfigStrategyEnum string
85+
86+
// Set of constants representing the allowable values for PatchingConfigsPatchingConfigStrategyEnum
87+
const (
88+
PatchingConfigsPatchingConfigStrategyDowntimeBased PatchingConfigsPatchingConfigStrategyEnum = "DOWNTIME_BASED"
89+
PatchingConfigsPatchingConfigStrategyBatchingBased PatchingConfigsPatchingConfigStrategyEnum = "BATCHING_BASED"
90+
)
91+
92+
var mappingPatchingConfigsPatchingConfigStrategyEnum = map[string]PatchingConfigsPatchingConfigStrategyEnum{
93+
"DOWNTIME_BASED": PatchingConfigsPatchingConfigStrategyDowntimeBased,
94+
"BATCHING_BASED": PatchingConfigsPatchingConfigStrategyBatchingBased,
95+
}
96+
97+
var mappingPatchingConfigsPatchingConfigStrategyEnumLowerCase = map[string]PatchingConfigsPatchingConfigStrategyEnum{
98+
"downtime_based": PatchingConfigsPatchingConfigStrategyDowntimeBased,
99+
"batching_based": PatchingConfigsPatchingConfigStrategyBatchingBased,
100+
}
101+
102+
// GetPatchingConfigsPatchingConfigStrategyEnumValues Enumerates the set of values for PatchingConfigsPatchingConfigStrategyEnum
103+
func GetPatchingConfigsPatchingConfigStrategyEnumValues() []PatchingConfigsPatchingConfigStrategyEnum {
104+
values := make([]PatchingConfigsPatchingConfigStrategyEnum, 0)
105+
for _, v := range mappingPatchingConfigsPatchingConfigStrategyEnum {
106+
values = append(values, v)
107+
}
108+
return values
109+
}
110+
111+
// GetPatchingConfigsPatchingConfigStrategyEnumStringValues Enumerates the set of values in String for PatchingConfigsPatchingConfigStrategyEnum
112+
func GetPatchingConfigsPatchingConfigStrategyEnumStringValues() []string {
113+
return []string{
114+
"DOWNTIME_BASED",
115+
"BATCHING_BASED",
116+
}
117+
}
118+
119+
// GetMappingPatchingConfigsPatchingConfigStrategyEnum performs case Insensitive comparison on enum value and return the desired enum
120+
func GetMappingPatchingConfigsPatchingConfigStrategyEnum(val string) (PatchingConfigsPatchingConfigStrategyEnum, bool) {
121+
enum, ok := mappingPatchingConfigsPatchingConfigStrategyEnumLowerCase[strings.ToLower(val)]
122+
return enum, ok
123+
}

bds/work_request_error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import (
1818
// WorkRequestError An error encountered while executing a work request.
1919
type WorkRequestError struct {
2020

21-
// A machine-usable code for the error that occured. Error codes are listed on (https://docs.oracle.com/en-us/iaas/Content/API/References/apierrors.htm).
21+
// A machine-usable code for the error that occurred. Error codes are listed on (https://docs.oracle.com/en-us/iaas/Content/API/References/apierrors.htm).
2222
Code *string `mandatory:"true" json:"code"`
2323

2424
// A human readable description of the issue encountered.
2525
Message *string `mandatory:"true" json:"message"`
2626

27-
// The time the error occured, shown as an RFC 3339 formatted datetime string.
27+
// The time the error occurred, shown as an RFC 3339 formatted datetime string.
2828
Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
2929
}
3030

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.

0 commit comments

Comments
 (0)