Skip to content

Commit 1d66010

Browse files
DEXREQ AutomationZiyaoQiao
authored andcommitted
Pull request #2549: Releasing Version 65.49.4
Merge in SDK/oci-go-sdk from merge_to_github2023-10-09 to github Squashed commit of the following: commit da06d26e6cbb7c26a9e4e8689a524512f899040b Author: oci-dex-release-bot <oci-dex-releases-bot_ww@oracle.com> Date: Mon Oct 9 18:07:35 2023 +0000 Releasing version 65 49 4
1 parent 40f704d commit 1d66010

File tree

59 files changed

+4017
-53
lines changed

Some content is hidden

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

59 files changed

+4017
-53
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.49.4 - 2023-10-10
8+
n### Added
9+
- Support for creating flow log type capture filters in the Virtual Cloud Network service
10+
- Support for importing and exporting metadata in Data Integration service
11+
- Support for displaying resource usage information on autonomous vm cluster get operations in the Database service
12+
- Support for displaying resource usage information for the list of autonomous container databases on autonomous vm cluster get operations in the Database service
13+
- Support for pluggable database with enhanced features in the Database service
14+
- Support for exporting container and kubernetes app listings in the Marketplace service
15+
- Support for work request statuses for export container and kubernetes app listings in the Marketplace service
16+
17+
718
## 65.49.3 - 2023-10-03
819
### Added
920
- Support for elastic resource pools in the Database 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.

core/capture_filter.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ type CaptureFilter struct {
5858

5959
// The set of rules governing what traffic a VTAP mirrors.
6060
VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"`
61+
62+
// The set of rules governing what traffic the VCN flow log collects.
63+
FlowLogCaptureFilterRules []FlowLogCaptureFilterRuleDetails `mandatory:"false" json:"flowLogCaptureFilterRules"`
6164
}
6265

6366
func (m CaptureFilter) String() string {
@@ -141,15 +144,18 @@ type CaptureFilterFilterTypeEnum string
141144

142145
// Set of constants representing the allowable values for CaptureFilterFilterTypeEnum
143146
const (
144-
CaptureFilterFilterTypeVtap CaptureFilterFilterTypeEnum = "VTAP"
147+
CaptureFilterFilterTypeVtap CaptureFilterFilterTypeEnum = "VTAP"
148+
CaptureFilterFilterTypeFlowlog CaptureFilterFilterTypeEnum = "FLOWLOG"
145149
)
146150

147151
var mappingCaptureFilterFilterTypeEnum = map[string]CaptureFilterFilterTypeEnum{
148-
"VTAP": CaptureFilterFilterTypeVtap,
152+
"VTAP": CaptureFilterFilterTypeVtap,
153+
"FLOWLOG": CaptureFilterFilterTypeFlowlog,
149154
}
150155

151156
var mappingCaptureFilterFilterTypeEnumLowerCase = map[string]CaptureFilterFilterTypeEnum{
152-
"vtap": CaptureFilterFilterTypeVtap,
157+
"vtap": CaptureFilterFilterTypeVtap,
158+
"flowlog": CaptureFilterFilterTypeFlowlog,
153159
}
154160

155161
// GetCaptureFilterFilterTypeEnumValues Enumerates the set of values for CaptureFilterFilterTypeEnum
@@ -165,6 +171,7 @@ func GetCaptureFilterFilterTypeEnumValues() []CaptureFilterFilterTypeEnum {
165171
func GetCaptureFilterFilterTypeEnumStringValues() []string {
166172
return []string{
167173
"VTAP",
174+
"FLOWLOG",
168175
}
169176
}
170177

core/create_capture_filter_details.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ type CreateCaptureFilterDetails struct {
4646

4747
// The set of rules governing what traffic a VTAP mirrors.
4848
VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"`
49+
50+
// The set of rules governing what traffic the VCN flow log collects.
51+
FlowLogCaptureFilterRules []FlowLogCaptureFilterRuleDetails `mandatory:"false" json:"flowLogCaptureFilterRules"`
4952
}
5053

5154
func (m CreateCaptureFilterDetails) String() string {
@@ -72,15 +75,18 @@ type CreateCaptureFilterDetailsFilterTypeEnum string
7275

7376
// Set of constants representing the allowable values for CreateCaptureFilterDetailsFilterTypeEnum
7477
const (
75-
CreateCaptureFilterDetailsFilterTypeVtap CreateCaptureFilterDetailsFilterTypeEnum = "VTAP"
78+
CreateCaptureFilterDetailsFilterTypeVtap CreateCaptureFilterDetailsFilterTypeEnum = "VTAP"
79+
CreateCaptureFilterDetailsFilterTypeFlowlog CreateCaptureFilterDetailsFilterTypeEnum = "FLOWLOG"
7680
)
7781

7882
var mappingCreateCaptureFilterDetailsFilterTypeEnum = map[string]CreateCaptureFilterDetailsFilterTypeEnum{
79-
"VTAP": CreateCaptureFilterDetailsFilterTypeVtap,
83+
"VTAP": CreateCaptureFilterDetailsFilterTypeVtap,
84+
"FLOWLOG": CreateCaptureFilterDetailsFilterTypeFlowlog,
8085
}
8186

8287
var mappingCreateCaptureFilterDetailsFilterTypeEnumLowerCase = map[string]CreateCaptureFilterDetailsFilterTypeEnum{
83-
"vtap": CreateCaptureFilterDetailsFilterTypeVtap,
88+
"vtap": CreateCaptureFilterDetailsFilterTypeVtap,
89+
"flowlog": CreateCaptureFilterDetailsFilterTypeFlowlog,
8490
}
8591

8692
// GetCreateCaptureFilterDetailsFilterTypeEnumValues Enumerates the set of values for CreateCaptureFilterDetailsFilterTypeEnum
@@ -96,6 +102,7 @@ func GetCreateCaptureFilterDetailsFilterTypeEnumValues() []CreateCaptureFilterDe
96102
func GetCreateCaptureFilterDetailsFilterTypeEnumStringValues() []string {
97103
return []string{
98104
"VTAP",
105+
"FLOWLOG",
99106
}
100107
}
101108

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
// Copyright (c) 2016, 2018, 2023, 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+
// Core Services API
6+
//
7+
// Use the Core Services API to manage resources such as virtual cloud networks (VCNs),
8+
// compute instances, and block storage volumes. For more information, see the console
9+
// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
10+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
11+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services.
12+
// The required permissions are documented in the
13+
// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article.
14+
//
15+
16+
package core
17+
18+
import (
19+
"fmt"
20+
"github.com/oracle/oci-go-sdk/v65/common"
21+
"strings"
22+
)
23+
24+
// FlowLogCaptureFilterRuleDetails The set of rules governing what traffic the VCN flow log collects.
25+
type FlowLogCaptureFilterRuleDetails struct {
26+
27+
// Indicates whether a VCN flow log capture filter rule is enabled.
28+
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
29+
30+
// A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
31+
Priority *int `mandatory:"false" json:"priority"`
32+
33+
// Sampling interval as `1` of `X`, where `X` is an integer not greater than `100000`.
34+
SamplingRate *int `mandatory:"false" json:"samplingRate"`
35+
36+
// Traffic from this CIDR will be captured in the VCN flow log.
37+
SourceCidr *string `mandatory:"false" json:"sourceCidr"`
38+
39+
// Traffic to this CIDR will be captured in the VCN flow log.
40+
DestinationCidr *string `mandatory:"false" json:"destinationCidr"`
41+
42+
// The transport protocol the filter uses.
43+
Protocol *string `mandatory:"false" json:"protocol"`
44+
45+
IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"`
46+
47+
TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"`
48+
49+
UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"`
50+
51+
// Type or types of VCN flow logs to store. `ALL` includes records for both accepted traffic and
52+
// rejected traffic.
53+
FlowLogType FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum `mandatory:"false" json:"flowLogType,omitempty"`
54+
55+
// Include or exclude a `ruleAction` object.
56+
RuleAction FlowLogCaptureFilterRuleDetailsRuleActionEnum `mandatory:"false" json:"ruleAction,omitempty"`
57+
}
58+
59+
func (m FlowLogCaptureFilterRuleDetails) String() string {
60+
return common.PointerString(m)
61+
}
62+
63+
// ValidateEnumValue returns an error when providing an unsupported enum value
64+
// This function is being called during constructing API request process
65+
// Not recommended for calling this function directly
66+
func (m FlowLogCaptureFilterRuleDetails) ValidateEnumValue() (bool, error) {
67+
errMessage := []string{}
68+
69+
if _, ok := GetMappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnum(string(m.FlowLogType)); !ok && m.FlowLogType != "" {
70+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FlowLogType: %s. Supported values are: %s.", m.FlowLogType, strings.Join(GetFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumStringValues(), ",")))
71+
}
72+
if _, ok := GetMappingFlowLogCaptureFilterRuleDetailsRuleActionEnum(string(m.RuleAction)); !ok && m.RuleAction != "" {
73+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RuleAction: %s. Supported values are: %s.", m.RuleAction, strings.Join(GetFlowLogCaptureFilterRuleDetailsRuleActionEnumStringValues(), ",")))
74+
}
75+
if len(errMessage) > 0 {
76+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
77+
}
78+
return false, nil
79+
}
80+
81+
// FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum Enum with underlying type: string
82+
type FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum string
83+
84+
// Set of constants representing the allowable values for FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum
85+
const (
86+
FlowLogCaptureFilterRuleDetailsFlowLogTypeAll FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum = "ALL"
87+
FlowLogCaptureFilterRuleDetailsFlowLogTypeReject FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum = "REJECT"
88+
FlowLogCaptureFilterRuleDetailsFlowLogTypeAccept FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum = "ACCEPT"
89+
)
90+
91+
var mappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnum = map[string]FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum{
92+
"ALL": FlowLogCaptureFilterRuleDetailsFlowLogTypeAll,
93+
"REJECT": FlowLogCaptureFilterRuleDetailsFlowLogTypeReject,
94+
"ACCEPT": FlowLogCaptureFilterRuleDetailsFlowLogTypeAccept,
95+
}
96+
97+
var mappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumLowerCase = map[string]FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum{
98+
"all": FlowLogCaptureFilterRuleDetailsFlowLogTypeAll,
99+
"reject": FlowLogCaptureFilterRuleDetailsFlowLogTypeReject,
100+
"accept": FlowLogCaptureFilterRuleDetailsFlowLogTypeAccept,
101+
}
102+
103+
// GetFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumValues Enumerates the set of values for FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum
104+
func GetFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumValues() []FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum {
105+
values := make([]FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum, 0)
106+
for _, v := range mappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnum {
107+
values = append(values, v)
108+
}
109+
return values
110+
}
111+
112+
// GetFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumStringValues Enumerates the set of values in String for FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum
113+
func GetFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumStringValues() []string {
114+
return []string{
115+
"ALL",
116+
"REJECT",
117+
"ACCEPT",
118+
}
119+
}
120+
121+
// GetMappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnum performs case Insensitive comparison on enum value and return the desired enum
122+
func GetMappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnum(val string) (FlowLogCaptureFilterRuleDetailsFlowLogTypeEnum, bool) {
123+
enum, ok := mappingFlowLogCaptureFilterRuleDetailsFlowLogTypeEnumLowerCase[strings.ToLower(val)]
124+
return enum, ok
125+
}
126+
127+
// FlowLogCaptureFilterRuleDetailsRuleActionEnum Enum with underlying type: string
128+
type FlowLogCaptureFilterRuleDetailsRuleActionEnum string
129+
130+
// Set of constants representing the allowable values for FlowLogCaptureFilterRuleDetailsRuleActionEnum
131+
const (
132+
FlowLogCaptureFilterRuleDetailsRuleActionInclude FlowLogCaptureFilterRuleDetailsRuleActionEnum = "INCLUDE"
133+
FlowLogCaptureFilterRuleDetailsRuleActionExclude FlowLogCaptureFilterRuleDetailsRuleActionEnum = "EXCLUDE"
134+
)
135+
136+
var mappingFlowLogCaptureFilterRuleDetailsRuleActionEnum = map[string]FlowLogCaptureFilterRuleDetailsRuleActionEnum{
137+
"INCLUDE": FlowLogCaptureFilterRuleDetailsRuleActionInclude,
138+
"EXCLUDE": FlowLogCaptureFilterRuleDetailsRuleActionExclude,
139+
}
140+
141+
var mappingFlowLogCaptureFilterRuleDetailsRuleActionEnumLowerCase = map[string]FlowLogCaptureFilterRuleDetailsRuleActionEnum{
142+
"include": FlowLogCaptureFilterRuleDetailsRuleActionInclude,
143+
"exclude": FlowLogCaptureFilterRuleDetailsRuleActionExclude,
144+
}
145+
146+
// GetFlowLogCaptureFilterRuleDetailsRuleActionEnumValues Enumerates the set of values for FlowLogCaptureFilterRuleDetailsRuleActionEnum
147+
func GetFlowLogCaptureFilterRuleDetailsRuleActionEnumValues() []FlowLogCaptureFilterRuleDetailsRuleActionEnum {
148+
values := make([]FlowLogCaptureFilterRuleDetailsRuleActionEnum, 0)
149+
for _, v := range mappingFlowLogCaptureFilterRuleDetailsRuleActionEnum {
150+
values = append(values, v)
151+
}
152+
return values
153+
}
154+
155+
// GetFlowLogCaptureFilterRuleDetailsRuleActionEnumStringValues Enumerates the set of values in String for FlowLogCaptureFilterRuleDetailsRuleActionEnum
156+
func GetFlowLogCaptureFilterRuleDetailsRuleActionEnumStringValues() []string {
157+
return []string{
158+
"INCLUDE",
159+
"EXCLUDE",
160+
}
161+
}
162+
163+
// GetMappingFlowLogCaptureFilterRuleDetailsRuleActionEnum performs case Insensitive comparison on enum value and return the desired enum
164+
func GetMappingFlowLogCaptureFilterRuleDetailsRuleActionEnum(val string) (FlowLogCaptureFilterRuleDetailsRuleActionEnum, bool) {
165+
enum, ok := mappingFlowLogCaptureFilterRuleDetailsRuleActionEnumLowerCase[strings.ToLower(val)]
166+
return enum, ok
167+
}

core/list_capture_filters_request_response.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type ListCaptureFiltersRequest struct {
5656
// The state value is case-insensitive.
5757
LifecycleState CaptureFilterLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
5858

59+
// A filter to only return resources that match the given capture `filterType`. The `filterType` value is the string representation of enum - `VTAP`, `FLOWLOG`.
60+
FilterType CaptureFilterFilterTypeEnum `mandatory:"false" contributesTo:"query" name:"filterType" omitEmpty:"true"`
61+
5962
// Metadata about the request. This information will not be transmitted to the service, but
6063
// represents information that the SDK will consume to drive retry behavior.
6164
RequestMetadata common.RequestMetadata
@@ -101,6 +104,9 @@ func (request ListCaptureFiltersRequest) ValidateEnumValue() (bool, error) {
101104
if _, ok := GetMappingCaptureFilterLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" {
102105
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCaptureFilterLifecycleStateEnumStringValues(), ",")))
103106
}
107+
if _, ok := GetMappingCaptureFilterFilterTypeEnum(string(request.FilterType)); !ok && request.FilterType != "" {
108+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FilterType: %s. Supported values are: %s.", request.FilterType, strings.Join(GetCaptureFilterFilterTypeEnumStringValues(), ",")))
109+
}
104110
if len(errMessage) > 0 {
105111
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
106112
}

core/update_capture_filter_details.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ type UpdateCaptureFilterDetails struct {
3636
// The set of rules governing what traffic a VTAP mirrors.
3737
VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"`
3838

39+
// The set of rules governing what traffic the VCN flow log collects.
40+
FlowLogCaptureFilterRules []FlowLogCaptureFilterRuleDetails `mandatory:"false" json:"flowLogCaptureFilterRules"`
41+
3942
// Free-form tags for this resource. Each tag is a simple key-value pair with no
4043
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
4144
// Example: `{"Department": "Finance"}`

database/autonomous_vm_cluster.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,30 @@ type AutonomousVmCluster struct {
8080
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the next maintenance run.
8181
NextMaintenanceRunId *string `mandatory:"false" json:"nextMaintenanceRunId"`
8282

83+
// The percentage of total number of CPUs used in an Autonomous VM Cluster.
84+
CpuPercentage *float32 `mandatory:"false" json:"cpuPercentage"`
85+
86+
// The percentage of the data storage used for the Autonomous Databases in an Autonomous VM Cluster.
87+
AutonomousDataStoragePercentage *float32 `mandatory:"false" json:"autonomousDataStoragePercentage"`
88+
89+
// The number of CPUs provisioned in an Autonomous VM Cluster.
90+
ProvisionedCpus *float32 `mandatory:"false" json:"provisionedCpus"`
91+
92+
// The total data disk group size for Autonomous Databases, in TBs.
93+
TotalAutonomousDataStorageInTBs *float32 `mandatory:"false" json:"totalAutonomousDataStorageInTBs"`
94+
95+
// The number of CPUs reserved in an Autonomous VM Cluster.
96+
ReservedCpus *float32 `mandatory:"false" json:"reservedCpus"`
97+
98+
// The number of provisionable Autonomous Container Databases in an Autonomous VM Cluster.
99+
ProvisionableAutonomousContainerDatabases *int `mandatory:"false" json:"provisionableAutonomousContainerDatabases"`
100+
101+
// The number of provisioned Autonomous Container Databases in an Autonomous VM Cluster.
102+
ProvisionedAutonomousContainerDatabases *int `mandatory:"false" json:"provisionedAutonomousContainerDatabases"`
103+
104+
// The number of non-provisionable Autonomous Container Databases in an Autonomous VM Cluster.
105+
NonProvisionableAutonomousContainerDatabases *int `mandatory:"false" json:"nonProvisionableAutonomousContainerDatabases"`
106+
83107
// The memory allocated in GBs.
84108
MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"`
85109

0 commit comments

Comments
 (0)