Skip to content

Commit

Permalink
Releasing version 65.23.0
Browse files Browse the repository at this point in the history
Releasing version 65.23.0
  • Loading branch information
oci-dex-release-bot authored Oct 4, 2022
2 parents 1ac91af + dc376e8 commit 07350d2
Show file tree
Hide file tree
Showing 61 changed files with 892 additions and 77 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)

## 65.23.0 - 2022-10-04
### Added
- Support for calling Oracle Cloud Infrastructure services in the eu-dcc-milan-1 region
- Support for target host identification and SOCKS support on dynamic port forwarding sessions in the Bastion service
- Support for viewing top processes running at a particular point of time in the Operations Insights service
- Support for filtering top processes by a single process to view that process's trend over time in the Operations Insights service
- Support for creating Enterprise Manager-based Windows host targets in the Operations Insights service
- Support for creating Management Agent Cloud-based Windows and Solaris host targets in the Operations Insights service

### Breaking Changes
- The property `TargetResourcePort` was removed from the models `TargetResourceDetails` and `CreateSessionTargetResourceDetails` in the Bastion service

## 65.22.0 - 2022-09-27
### Added
- Support for search capabilities for monitored resources in the Stack Monitoring service
Expand All @@ -15,7 +27,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
- Support for starting and stopping clusters in the Big Data service
- Support for additional compute shapes in the Big Data service
- Support for backwards pagination in the Search service
- Support for cross-region replication in the File Storage service
- Support for elastic compute for Exadata Cloud at Customer in the Database service

### Breaking Changes
Expand Down
6 changes: 6 additions & 0 deletions bastion/bastion.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ type Bastion struct {
// The maximum number of active sessions allowed on the bastion.
MaxSessionsAllowed *int `mandatory:"false" json:"maxSessionsAllowed"`

// The current dns proxy status of the bastion.
DnsProxyStatus BastionDnsProxyStatusEnum `mandatory:"false" json:"dnsProxyStatus,omitempty"`

// The time the bastion was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2020-01-25T21:10:29.600Z`
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
Expand Down Expand Up @@ -94,6 +97,9 @@ func (m Bastion) ValidateEnumValue() (bool, error) {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBastionLifecycleStateEnumStringValues(), ",")))
}

if _, ok := GetMappingBastionDnsProxyStatusEnum(string(m.DnsProxyStatus)); !ok && m.DnsProxyStatus != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DnsProxyStatus: %s. Supported values are: %s.", m.DnsProxyStatus, strings.Join(GetBastionDnsProxyStatusEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
Expand Down
56 changes: 56 additions & 0 deletions bastion/bastion_dns_proxy_status.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// 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.
// Code generated. DO NOT EDIT.

// Bastion API
//
// Use the Bastion API to provide restricted and time-limited access to target resources that don't have public endpoints. Bastions let authorized users connect from specific IP addresses to target resources using Secure Shell (SSH) sessions. For more information, see the Bastion documentation (https://docs.cloud.oracle.com/iaas/Content/Bastion/home.htm).
//

package bastion

import (
"strings"
)

// BastionDnsProxyStatusEnum Enum with underlying type: string
type BastionDnsProxyStatusEnum string

// Set of constants representing the allowable values for BastionDnsProxyStatusEnum
const (
BastionDnsProxyStatusDisabled BastionDnsProxyStatusEnum = "DISABLED"
BastionDnsProxyStatusEnabled BastionDnsProxyStatusEnum = "ENABLED"
)

var mappingBastionDnsProxyStatusEnum = map[string]BastionDnsProxyStatusEnum{
"DISABLED": BastionDnsProxyStatusDisabled,
"ENABLED": BastionDnsProxyStatusEnabled,
}

var mappingBastionDnsProxyStatusEnumLowerCase = map[string]BastionDnsProxyStatusEnum{
"disabled": BastionDnsProxyStatusDisabled,
"enabled": BastionDnsProxyStatusEnabled,
}

// GetBastionDnsProxyStatusEnumValues Enumerates the set of values for BastionDnsProxyStatusEnum
func GetBastionDnsProxyStatusEnumValues() []BastionDnsProxyStatusEnum {
values := make([]BastionDnsProxyStatusEnum, 0)
for _, v := range mappingBastionDnsProxyStatusEnum {
values = append(values, v)
}
return values
}

// GetBastionDnsProxyStatusEnumStringValues Enumerates the set of values in String for BastionDnsProxyStatusEnum
func GetBastionDnsProxyStatusEnumStringValues() []string {
return []string{
"DISABLED",
"ENABLED",
}
}

// GetMappingBastionDnsProxyStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingBastionDnsProxyStatusEnum(val string) (BastionDnsProxyStatusEnum, bool) {
enum, ok := mappingBastionDnsProxyStatusEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
6 changes: 6 additions & 0 deletions bastion/bastion_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ type BastionSummary struct {
// The current state of the bastion.
LifecycleState BastionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

// The current dns proxy status of the bastion.
DnsProxyStatus BastionDnsProxyStatusEnum `mandatory:"false" json:"dnsProxyStatus,omitempty"`

// The time the bastion was updated. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2020-01-25T21:10:29.600Z`
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
Expand Down Expand Up @@ -76,6 +79,9 @@ func (m BastionSummary) ValidateEnumValue() (bool, error) {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBastionLifecycleStateEnumStringValues(), ",")))
}

if _, ok := GetMappingBastionDnsProxyStatusEnum(string(m.DnsProxyStatus)); !ok && m.DnsProxyStatus != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DnsProxyStatus: %s. Supported values are: %s.", m.DnsProxyStatus, strings.Join(GetBastionDnsProxyStatusEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
Expand Down
6 changes: 6 additions & 0 deletions bastion/create_bastion_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ type CreateBastionDetails struct {
// The maximum amount of time that any session on the bastion can remain active.
MaxSessionTtlInSeconds *int `mandatory:"false" json:"maxSessionTtlInSeconds"`

// The desired dns proxy status of the bastion.
DnsProxyStatus BastionDnsProxyStatusEnum `mandatory:"false" json:"dnsProxyStatus,omitempty"`

// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
Expand All @@ -61,6 +64,9 @@ func (m CreateBastionDetails) String() string {
func (m CreateBastionDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}

if _, ok := GetMappingBastionDnsProxyStatusEnum(string(m.DnsProxyStatus)); !ok && m.DnsProxyStatus != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DnsProxyStatus: %s. Supported values are: %s.", m.DnsProxyStatus, strings.Join(GetBastionDnsProxyStatusEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// 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.
// Code generated. DO NOT EDIT.

// Bastion API
//
// Use the Bastion API to provide restricted and time-limited access to target resources that don't have public endpoints. Bastions let authorized users connect from specific IP addresses to target resources using Secure Shell (SSH) sessions. For more information, see the Bastion documentation (https://docs.cloud.oracle.com/iaas/Content/Bastion/home.htm).
//

package bastion

import (
"encoding/json"
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)

// CreateDynamicPortForwardingSessionTargetResourceDetails Details about a dynamic port forwarding session for a target subnet.
type CreateDynamicPortForwardingSessionTargetResourceDetails struct {
}

func (m CreateDynamicPortForwardingSessionTargetResourceDetails) String() string {
return common.PointerString(m)
}

// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m CreateDynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}

if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// MarshalJSON marshals to json representation
func (m CreateDynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error) {
type MarshalTypeCreateDynamicPortForwardingSessionTargetResourceDetails CreateDynamicPortForwardingSessionTargetResourceDetails
s := struct {
DiscriminatorParam string `json:"sessionType"`
MarshalTypeCreateDynamicPortForwardingSessionTargetResourceDetails
}{
"DYNAMIC_PORT_FORWARDING",
(MarshalTypeCreateDynamicPortForwardingSessionTargetResourceDetails)(m),
}

return json.Marshal(&s)
}
9 changes: 2 additions & 7 deletions bastion/create_managed_ssh_session_target_resource_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,11 @@ type CreateManagedSshSessionTargetResourceDetails struct {
// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
TargetResourceId *string `mandatory:"true" json:"targetResourceId"`

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`

// The private IP address of the target resource that the session connects to.
TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"`
}

//GetTargetResourcePort returns TargetResourcePort
func (m CreateManagedSshSessionTargetResourceDetails) GetTargetResourcePort() *int {
return m.TargetResourcePort
// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`
}

func (m CreateManagedSshSessionTargetResourceDetails) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ import (
// CreatePortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.
type CreatePortForwardingSessionTargetResourceDetails struct {

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`

// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
TargetResourceId *string `mandatory:"false" json:"targetResourceId"`

// The private IP address of the target resource that the session connects to.
TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"`
}

//GetTargetResourcePort returns TargetResourcePort
func (m CreatePortForwardingSessionTargetResourceDetails) GetTargetResourcePort() *int {
return m.TargetResourcePort
// The Fully Qualified Domain Name of the target resource that the session connects to.
TargetResourceFqdn *string `mandatory:"false" json:"targetResourceFqdn"`

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`
}

func (m CreatePortForwardingSessionTargetResourceDetails) String() string {
Expand Down
18 changes: 6 additions & 12 deletions bastion/create_session_target_resource_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ import (

// CreateSessionTargetResourceDetails Details about a bastion session's target resource.
type CreateSessionTargetResourceDetails interface {

// The port number to connect to on the target resource.
GetTargetResourcePort() *int
}

type createsessiontargetresourcedetails struct {
JsonData []byte
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`
SessionType string `json:"sessionType"`
JsonData []byte
SessionType string `json:"sessionType"`
}

// UnmarshalJSON unmarshals json
Expand All @@ -40,7 +36,6 @@ func (m *createsessiontargetresourcedetails) UnmarshalJSON(data []byte) error {
if err != nil {
return err
}
m.TargetResourcePort = s.Model.TargetResourcePort
m.SessionType = s.Model.SessionType

return err
Expand All @@ -59,6 +54,10 @@ func (m *createsessiontargetresourcedetails) UnmarshalPolymorphicJSON(data []byt
mm := CreateManagedSshSessionTargetResourceDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
case "DYNAMIC_PORT_FORWARDING":
mm := CreateDynamicPortForwardingSessionTargetResourceDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
case "PORT_FORWARDING":
mm := CreatePortForwardingSessionTargetResourceDetails{}
err = json.Unmarshal(data, &mm)
Expand All @@ -68,11 +67,6 @@ func (m *createsessiontargetresourcedetails) UnmarshalPolymorphicJSON(data []byt
}
}

//GetTargetResourcePort returns TargetResourcePort
func (m createsessiontargetresourcedetails) GetTargetResourcePort() *int {
return m.TargetResourcePort
}

func (m createsessiontargetresourcedetails) String() string {
return common.PointerString(m)
}
Expand Down
51 changes: 51 additions & 0 deletions bastion/dynamic_port_forwarding_session_target_resource_details.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// 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.
// Code generated. DO NOT EDIT.

// Bastion API
//
// Use the Bastion API to provide restricted and time-limited access to target resources that don't have public endpoints. Bastions let authorized users connect from specific IP addresses to target resources using Secure Shell (SSH) sessions. For more information, see the Bastion documentation (https://docs.cloud.oracle.com/iaas/Content/Bastion/home.htm).
//

package bastion

import (
"encoding/json"
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)

// DynamicPortForwardingSessionTargetResourceDetails Details about a dynamic port forwarding session for a target subnet.
type DynamicPortForwardingSessionTargetResourceDetails struct {
}

func (m DynamicPortForwardingSessionTargetResourceDetails) String() string {
return common.PointerString(m)
}

// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m DynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}

if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// MarshalJSON marshals to json representation
func (m DynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error) {
type MarshalTypeDynamicPortForwardingSessionTargetResourceDetails DynamicPortForwardingSessionTargetResourceDetails
s := struct {
DiscriminatorParam string `json:"sessionType"`
MarshalTypeDynamicPortForwardingSessionTargetResourceDetails
}{
"DYNAMIC_PORT_FORWARDING",
(MarshalTypeDynamicPortForwardingSessionTargetResourceDetails)(m),
}

return json.Marshal(&s)
}
9 changes: 2 additions & 7 deletions bastion/managed_ssh_session_target_resource_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import (
// ManagedSshSessionTargetResourceDetails Details about a managed SSH session for a target resource.
type ManagedSshSessionTargetResourceDetails struct {

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"true" json:"targetResourcePort"`

// The name of the user on the target resource operating system that the session uses for the connection.
TargetResourceOperatingSystemUserName *string `mandatory:"true" json:"targetResourceOperatingSystemUserName"`

Expand All @@ -33,11 +30,9 @@ type ManagedSshSessionTargetResourceDetails struct {

// The private IP address of the target resource that the session connects to.
TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"`
}

//GetTargetResourcePort returns TargetResourcePort
func (m ManagedSshSessionTargetResourceDetails) GetTargetResourcePort() *int {
return m.TargetResourcePort
// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`
}

func (m ManagedSshSessionTargetResourceDetails) String() string {
Expand Down
12 changes: 5 additions & 7 deletions bastion/port_forwarding_session_target_resource_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import (
// PortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.
type PortForwardingSessionTargetResourceDetails struct {

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"true" json:"targetResourcePort"`

// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
TargetResourceId *string `mandatory:"false" json:"targetResourceId"`

Expand All @@ -30,11 +27,12 @@ type PortForwardingSessionTargetResourceDetails struct {

// The display name of the target Compute instance that the session connects to.
TargetResourceDisplayName *string `mandatory:"false" json:"targetResourceDisplayName"`
}

//GetTargetResourcePort returns TargetResourcePort
func (m PortForwardingSessionTargetResourceDetails) GetTargetResourcePort() *int {
return m.TargetResourcePort
// The Fully Qualified Domain Name of the target resource that the session connects to.
TargetResourceFqdn *string `mandatory:"false" json:"targetResourceFqdn"`

// The port number to connect to on the target resource.
TargetResourcePort *int `mandatory:"false" json:"targetResourcePort"`
}

func (m PortForwardingSessionTargetResourceDetails) String() string {
Expand Down
Loading

0 comments on commit 07350d2

Please sign in to comment.