...

Package bastion

import "github.com/oracle/oci-go-sdk/bastion"
Overview
Index

Overview ▾

Index ▾

func GetActionTypeEnumStringValues() []string
func GetBastionDnsProxyStatusEnumStringValues() []string
func GetBastionLifecycleStateEnumStringValues() []string
func GetCreateSessionDetailsKeyTypeEnumStringValues() []string
func GetListBastionsBastionLifecycleStateEnumStringValues() []string
func GetListBastionsSortByEnumStringValues() []string
func GetListBastionsSortOrderEnumStringValues() []string
func GetListSessionsSessionLifecycleStateEnumStringValues() []string
func GetListSessionsSortByEnumStringValues() []string
func GetListSessionsSortOrderEnumStringValues() []string
func GetOperationStatusEnumStringValues() []string
func GetOperationTypeEnumStringValues() []string
func GetSessionKeyTypeEnumStringValues() []string
func GetSessionLifecycleStateEnumStringValues() []string
func GetSessionTypeEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
type ActionTypeEnum
    func GetActionTypeEnumValues() []ActionTypeEnum
    func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
type Bastion
    func (m Bastion) String() string
    func (m Bastion) ValidateEnumValue() (bool, error)
type BastionClient
    func NewBastionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BastionClient, err error)
    func NewBastionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client BastionClient, err error)
    func (client BastionClient) ChangeBastionCompartment(ctx context.Context, request ChangeBastionCompartmentRequest) (response ChangeBastionCompartmentResponse, err error)
    func (client *BastionClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client BastionClient) CreateBastion(ctx context.Context, request CreateBastionRequest) (response CreateBastionResponse, err error)
    func (client BastionClient) CreateSession(ctx context.Context, request CreateSessionRequest) (response CreateSessionResponse, err error)
    func (client BastionClient) DeleteBastion(ctx context.Context, request DeleteBastionRequest) (response DeleteBastionResponse, err error)
    func (client BastionClient) DeleteSession(ctx context.Context, request DeleteSessionRequest) (response DeleteSessionResponse, err error)
    func (client BastionClient) GetBastion(ctx context.Context, request GetBastionRequest) (response GetBastionResponse, err error)
    func (client BastionClient) GetSession(ctx context.Context, request GetSessionRequest) (response GetSessionResponse, err error)
    func (client BastionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
    func (client BastionClient) ListBastions(ctx context.Context, request ListBastionsRequest) (response ListBastionsResponse, err error)
    func (client BastionClient) ListSessions(ctx context.Context, request ListSessionsRequest) (response ListSessionsResponse, err error)
    func (client BastionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
    func (client BastionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
    func (client BastionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
    func (client *BastionClient) SetRegion(region string)
    func (client BastionClient) UpdateBastion(ctx context.Context, request UpdateBastionRequest) (response UpdateBastionResponse, err error)
    func (client BastionClient) UpdateSession(ctx context.Context, request UpdateSessionRequest) (response UpdateSessionResponse, err error)
type BastionDnsProxyStatusEnum
    func GetBastionDnsProxyStatusEnumValues() []BastionDnsProxyStatusEnum
    func GetMappingBastionDnsProxyStatusEnum(val string) (BastionDnsProxyStatusEnum, bool)
type BastionLifecycleStateEnum
    func GetBastionLifecycleStateEnumValues() []BastionLifecycleStateEnum
    func GetMappingBastionLifecycleStateEnum(val string) (BastionLifecycleStateEnum, bool)
type BastionSummary
    func (m BastionSummary) String() string
    func (m BastionSummary) ValidateEnumValue() (bool, error)
type ChangeBastionCompartmentDetails
    func (m ChangeBastionCompartmentDetails) String() string
    func (m ChangeBastionCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeBastionCompartmentRequest
    func (request ChangeBastionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeBastionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeBastionCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeBastionCompartmentRequest) String() string
    func (request ChangeBastionCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeBastionCompartmentResponse
    func (response ChangeBastionCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeBastionCompartmentResponse) String() string
type CreateBastionDetails
    func (m CreateBastionDetails) String() string
    func (m CreateBastionDetails) ValidateEnumValue() (bool, error)
type CreateBastionRequest
    func (request CreateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateBastionRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateBastionRequest) String() string
    func (request CreateBastionRequest) ValidateEnumValue() (bool, error)
type CreateBastionResponse
    func (response CreateBastionResponse) HTTPResponse() *http.Response
    func (response CreateBastionResponse) String() string
type CreateDynamicPortForwardingSessionTargetResourceDetails
    func (m CreateDynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m CreateDynamicPortForwardingSessionTargetResourceDetails) String() string
    func (m CreateDynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type CreateManagedSshSessionTargetResourceDetails
    func (m CreateManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m CreateManagedSshSessionTargetResourceDetails) String() string
    func (m CreateManagedSshSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type CreatePortForwardingSessionTargetResourceDetails
    func (m CreatePortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m CreatePortForwardingSessionTargetResourceDetails) String() string
    func (m CreatePortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type CreateSessionDetails
    func (m CreateSessionDetails) String() string
    func (m *CreateSessionDetails) UnmarshalJSON(data []byte) (e error)
    func (m CreateSessionDetails) ValidateEnumValue() (bool, error)
type CreateSessionDetailsKeyTypeEnum
    func GetCreateSessionDetailsKeyTypeEnumValues() []CreateSessionDetailsKeyTypeEnum
    func GetMappingCreateSessionDetailsKeyTypeEnum(val string) (CreateSessionDetailsKeyTypeEnum, bool)
type CreateSessionRequest
    func (request CreateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateSessionRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateSessionRequest) String() string
    func (request CreateSessionRequest) ValidateEnumValue() (bool, error)
type CreateSessionResponse
    func (response CreateSessionResponse) HTTPResponse() *http.Response
    func (response CreateSessionResponse) String() string
type CreateSessionTargetResourceDetails
type DeleteBastionRequest
    func (request DeleteBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteBastionRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteBastionRequest) String() string
    func (request DeleteBastionRequest) ValidateEnumValue() (bool, error)
type DeleteBastionResponse
    func (response DeleteBastionResponse) HTTPResponse() *http.Response
    func (response DeleteBastionResponse) String() string
type DeleteSessionRequest
    func (request DeleteSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteSessionRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteSessionRequest) String() string
    func (request DeleteSessionRequest) ValidateEnumValue() (bool, error)
type DeleteSessionResponse
    func (response DeleteSessionResponse) HTTPResponse() *http.Response
    func (response DeleteSessionResponse) String() string
type DynamicPortForwardingSessionTargetResourceDetails
    func (m DynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m DynamicPortForwardingSessionTargetResourceDetails) String() string
    func (m DynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type GetBastionRequest
    func (request GetBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetBastionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetBastionRequest) String() string
    func (request GetBastionRequest) ValidateEnumValue() (bool, error)
type GetBastionResponse
    func (response GetBastionResponse) HTTPResponse() *http.Response
    func (response GetBastionResponse) String() string
type GetSessionRequest
    func (request GetSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetSessionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetSessionRequest) String() string
    func (request GetSessionRequest) ValidateEnumValue() (bool, error)
type GetSessionResponse
    func (response GetSessionResponse) HTTPResponse() *http.Response
    func (response GetSessionResponse) String() string
type GetWorkRequestRequest
    func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
    func (request GetWorkRequestRequest) String() string
    func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
type GetWorkRequestResponse
    func (response GetWorkRequestResponse) HTTPResponse() *http.Response
    func (response GetWorkRequestResponse) String() string
type ListBastionsBastionLifecycleStateEnum
    func GetListBastionsBastionLifecycleStateEnumValues() []ListBastionsBastionLifecycleStateEnum
    func GetMappingListBastionsBastionLifecycleStateEnum(val string) (ListBastionsBastionLifecycleStateEnum, bool)
type ListBastionsRequest
    func (request ListBastionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListBastionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListBastionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListBastionsRequest) String() string
    func (request ListBastionsRequest) ValidateEnumValue() (bool, error)
type ListBastionsResponse
    func (response ListBastionsResponse) HTTPResponse() *http.Response
    func (response ListBastionsResponse) String() string
type ListBastionsSortByEnum
    func GetListBastionsSortByEnumValues() []ListBastionsSortByEnum
    func GetMappingListBastionsSortByEnum(val string) (ListBastionsSortByEnum, bool)
type ListBastionsSortOrderEnum
    func GetListBastionsSortOrderEnumValues() []ListBastionsSortOrderEnum
    func GetMappingListBastionsSortOrderEnum(val string) (ListBastionsSortOrderEnum, bool)
type ListSessionsRequest
    func (request ListSessionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListSessionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListSessionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListSessionsRequest) String() string
    func (request ListSessionsRequest) ValidateEnumValue() (bool, error)
type ListSessionsResponse
    func (response ListSessionsResponse) HTTPResponse() *http.Response
    func (response ListSessionsResponse) String() string
type ListSessionsSessionLifecycleStateEnum
    func GetListSessionsSessionLifecycleStateEnumValues() []ListSessionsSessionLifecycleStateEnum
    func GetMappingListSessionsSessionLifecycleStateEnum(val string) (ListSessionsSessionLifecycleStateEnum, bool)
type ListSessionsSortByEnum
    func GetListSessionsSortByEnumValues() []ListSessionsSortByEnum
    func GetMappingListSessionsSortByEnum(val string) (ListSessionsSortByEnum, bool)
type ListSessionsSortOrderEnum
    func GetListSessionsSortOrderEnumValues() []ListSessionsSortOrderEnum
    func GetMappingListSessionsSortOrderEnum(val string) (ListSessionsSortOrderEnum, bool)
type ListWorkRequestErrorsRequest
    func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestErrorsRequest) String() string
    func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestErrorsResponse
    func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestLogsRequest
    func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestLogsRequest) String() string
    func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestLogsResponse
    func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestsRequest
    func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestsRequest) String() string
    func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestsResponse
    func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestsResponse) String() string
type ManagedSshSessionTargetResourceDetails
    func (m ManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m ManagedSshSessionTargetResourceDetails) String() string
    func (m ManagedSshSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type OperationStatusEnum
    func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
    func GetOperationStatusEnumValues() []OperationStatusEnum
type OperationTypeEnum
    func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
    func GetOperationTypeEnumValues() []OperationTypeEnum
type PortForwardingSessionTargetResourceDetails
    func (m PortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)
    func (m PortForwardingSessionTargetResourceDetails) String() string
    func (m PortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)
type PublicKeyDetails
    func (m PublicKeyDetails) String() string
    func (m PublicKeyDetails) ValidateEnumValue() (bool, error)
type Session
    func (m Session) String() string
    func (m *Session) UnmarshalJSON(data []byte) (e error)
    func (m Session) ValidateEnumValue() (bool, error)
type SessionKeyTypeEnum
    func GetMappingSessionKeyTypeEnum(val string) (SessionKeyTypeEnum, bool)
    func GetSessionKeyTypeEnumValues() []SessionKeyTypeEnum
type SessionLifecycleStateEnum
    func GetMappingSessionLifecycleStateEnum(val string) (SessionLifecycleStateEnum, bool)
    func GetSessionLifecycleStateEnumValues() []SessionLifecycleStateEnum
type SessionSummary
    func (m SessionSummary) String() string
    func (m *SessionSummary) UnmarshalJSON(data []byte) (e error)
    func (m SessionSummary) ValidateEnumValue() (bool, error)
type SessionTypeEnum
    func GetMappingSessionTypeEnum(val string) (SessionTypeEnum, bool)
    func GetSessionTypeEnumValues() []SessionTypeEnum
type SortOrderEnum
    func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
    func GetSortOrderEnumValues() []SortOrderEnum
type TargetResourceDetails
type UpdateBastionDetails
    func (m UpdateBastionDetails) String() string
    func (m UpdateBastionDetails) ValidateEnumValue() (bool, error)
type UpdateBastionRequest
    func (request UpdateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateBastionRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateBastionRequest) String() string
    func (request UpdateBastionRequest) ValidateEnumValue() (bool, error)
type UpdateBastionResponse
    func (response UpdateBastionResponse) HTTPResponse() *http.Response
    func (response UpdateBastionResponse) String() string
type UpdateSessionDetails
    func (m UpdateSessionDetails) String() string
    func (m UpdateSessionDetails) ValidateEnumValue() (bool, error)
type UpdateSessionRequest
    func (request UpdateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateSessionRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateSessionRequest) String() string
    func (request UpdateSessionRequest) ValidateEnumValue() (bool, error)
type UpdateSessionResponse
    func (response UpdateSessionResponse) HTTPResponse() *http.Response
    func (response UpdateSessionResponse) String() string
type WorkRequest
    func (m WorkRequest) String() string
    func (m WorkRequest) ValidateEnumValue() (bool, error)
type WorkRequestError
    func (m WorkRequestError) String() string
    func (m WorkRequestError) ValidateEnumValue() (bool, error)
type WorkRequestLogEntry
    func (m WorkRequestLogEntry) String() string
    func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)
type WorkRequestResource
    func (m WorkRequestResource) String() string
    func (m WorkRequestResource) ValidateEnumValue() (bool, error)
type WorkRequestSummary
    func (m WorkRequestSummary) String() string
    func (m WorkRequestSummary) ValidateEnumValue() (bool, error)

Package files

action_type.go bastion.go bastion_client.go bastion_dns_proxy_status.go bastion_lifecycle_state.go bastion_summary.go change_bastion_compartment_details.go change_bastion_compartment_request_response.go create_bastion_details.go create_bastion_request_response.go create_dynamic_port_forwarding_session_target_resource_details.go create_managed_ssh_session_target_resource_details.go create_port_forwarding_session_target_resource_details.go create_session_details.go create_session_request_response.go create_session_target_resource_details.go delete_bastion_request_response.go delete_session_request_response.go dynamic_port_forwarding_session_target_resource_details.go get_bastion_request_response.go get_session_request_response.go get_work_request_request_response.go list_bastions_request_response.go list_sessions_request_response.go list_work_request_errors_request_response.go list_work_request_logs_request_response.go list_work_requests_request_response.go managed_ssh_session_target_resource_details.go operation_status.go operation_type.go port_forwarding_session_target_resource_details.go public_key_details.go session.go session_lifecycle_state.go session_summary.go session_type.go sort_order.go target_resource_details.go update_bastion_details.go update_bastion_request_response.go update_session_details.go update_session_request_response.go work_request.go work_request_error.go work_request_log_entry.go work_request_resource.go work_request_summary.go

func GetActionTypeEnumStringValues

func GetActionTypeEnumStringValues() []string

GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum

func GetBastionDnsProxyStatusEnumStringValues

func GetBastionDnsProxyStatusEnumStringValues() []string

GetBastionDnsProxyStatusEnumStringValues Enumerates the set of values in String for BastionDnsProxyStatusEnum

func GetBastionLifecycleStateEnumStringValues

func GetBastionLifecycleStateEnumStringValues() []string

GetBastionLifecycleStateEnumStringValues Enumerates the set of values in String for BastionLifecycleStateEnum

func GetCreateSessionDetailsKeyTypeEnumStringValues

func GetCreateSessionDetailsKeyTypeEnumStringValues() []string

GetCreateSessionDetailsKeyTypeEnumStringValues Enumerates the set of values in String for CreateSessionDetailsKeyTypeEnum

func GetListBastionsBastionLifecycleStateEnumStringValues

func GetListBastionsBastionLifecycleStateEnumStringValues() []string

GetListBastionsBastionLifecycleStateEnumStringValues Enumerates the set of values in String for ListBastionsBastionLifecycleStateEnum

func GetListBastionsSortByEnumStringValues

func GetListBastionsSortByEnumStringValues() []string

GetListBastionsSortByEnumStringValues Enumerates the set of values in String for ListBastionsSortByEnum

func GetListBastionsSortOrderEnumStringValues

func GetListBastionsSortOrderEnumStringValues() []string

GetListBastionsSortOrderEnumStringValues Enumerates the set of values in String for ListBastionsSortOrderEnum

func GetListSessionsSessionLifecycleStateEnumStringValues

func GetListSessionsSessionLifecycleStateEnumStringValues() []string

GetListSessionsSessionLifecycleStateEnumStringValues Enumerates the set of values in String for ListSessionsSessionLifecycleStateEnum

func GetListSessionsSortByEnumStringValues

func GetListSessionsSortByEnumStringValues() []string

GetListSessionsSortByEnumStringValues Enumerates the set of values in String for ListSessionsSortByEnum

func GetListSessionsSortOrderEnumStringValues

func GetListSessionsSortOrderEnumStringValues() []string

GetListSessionsSortOrderEnumStringValues Enumerates the set of values in String for ListSessionsSortOrderEnum

func GetOperationStatusEnumStringValues

func GetOperationStatusEnumStringValues() []string

GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum

func GetOperationTypeEnumStringValues

func GetOperationTypeEnumStringValues() []string

GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum

func GetSessionKeyTypeEnumStringValues

func GetSessionKeyTypeEnumStringValues() []string

GetSessionKeyTypeEnumStringValues Enumerates the set of values in String for SessionKeyTypeEnum

func GetSessionLifecycleStateEnumStringValues

func GetSessionLifecycleStateEnumStringValues() []string

GetSessionLifecycleStateEnumStringValues Enumerates the set of values in String for SessionLifecycleStateEnum

func GetSessionTypeEnumStringValues

func GetSessionTypeEnumStringValues() []string

GetSessionTypeEnumStringValues Enumerates the set of values in String for SessionTypeEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

type ActionTypeEnum

ActionTypeEnum Enum with underlying type: string

type ActionTypeEnum string

Set of constants representing the allowable values for ActionTypeEnum

const (
    ActionTypeCreated    ActionTypeEnum = "CREATED"
    ActionTypeUpdated    ActionTypeEnum = "UPDATED"
    ActionTypeDeleted    ActionTypeEnum = "DELETED"
    ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS"
    ActionTypeRelated    ActionTypeEnum = "RELATED"
)

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

func GetMappingActionTypeEnum

func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)

GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type Bastion

Bastion A bastion resource. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.

type Bastion struct {

    // The type of bastion.
    BastionType *string `mandatory:"true" json:"bastionType"`

    // The unique identifier (OCID) of the bastion, which can't be changed after creation.
    Id *string `mandatory:"true" json:"id"`

    // The name of the bastion, which can't be changed after creation.
    Name *string `mandatory:"true" json:"name"`

    // The unique identifier (OCID) of the compartment where the bastion is located.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
    TargetVcnId *string `mandatory:"true" json:"targetVcnId"`

    // The unique identifier (OCID) of the subnet that the bastion connects to.
    TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"`

    // The maximum amount of time that any session on the bastion can remain active.
    MaxSessionTtlInSeconds *int `mandatory:"true" json:"maxSessionTtlInSeconds"`

    // The time the bastion was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2020-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the bastion.
    LifecycleState BastionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
    PhoneBookEntry *string `mandatory:"false" json:"phoneBookEntry"`

    // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
    ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"`

    // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
    StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"`

    // The private IP address of the created private endpoint.
    PrivateEndpointIpAddress *string `mandatory:"false" json:"privateEndpointIpAddress"`

    // 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"`

    // A message describing the current state in more detail.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // 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"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // Usage of system tag keys. These predefined keys are scoped to namespaces.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

func (Bastion) String

func (m Bastion) String() string

func (Bastion) ValidateEnumValue

func (m Bastion) ValidateEnumValue() (bool, error)

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

type BastionClient

BastionClient a client for Bastion

type BastionClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewBastionClientWithConfigurationProvider

func NewBastionClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BastionClient, err error)

NewBastionClientWithConfigurationProvider Creates a new default Bastion client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewBastionClientWithOboToken

func NewBastionClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client BastionClient, err error)

NewBastionClientWithOboToken Creates a new default Bastion client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (BastionClient) ChangeBastionCompartment

func (client BastionClient) ChangeBastionCompartment(ctx context.Context, request ChangeBastionCompartmentRequest) (response ChangeBastionCompartmentResponse, err error)

ChangeBastionCompartment Moves a bastion into a different compartment.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ChangeBastionCompartment.go.html to see an example of how to use ChangeBastionCompartment API.

func (*BastionClient) ConfigurationProvider

func (client *BastionClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (BastionClient) CreateBastion

func (client BastionClient) CreateBastion(ctx context.Context, request CreateBastionRequest) (response CreateBastionResponse, err error)

CreateBastion Creates a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/CreateBastion.go.html to see an example of how to use CreateBastion API.

func (BastionClient) CreateSession

func (client BastionClient) CreateSession(ctx context.Context, request CreateSessionRequest) (response CreateSessionResponse, err error)

CreateSession Creates a new session in a bastion. A bastion session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/CreateSession.go.html to see an example of how to use CreateSession API.

func (BastionClient) DeleteBastion

func (client BastionClient) DeleteBastion(ctx context.Context, request DeleteBastionRequest) (response DeleteBastionResponse, err error)

DeleteBastion Deletes a bastion identified by the bastion ID.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/DeleteBastion.go.html to see an example of how to use DeleteBastion API.

func (BastionClient) DeleteSession

func (client BastionClient) DeleteSession(ctx context.Context, request DeleteSessionRequest) (response DeleteSessionResponse, err error)

DeleteSession Deletes a session identified by the session ID.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/DeleteSession.go.html to see an example of how to use DeleteSession API.

func (BastionClient) GetBastion

func (client BastionClient) GetBastion(ctx context.Context, request GetBastionRequest) (response GetBastionResponse, err error)

GetBastion Retrieves a bastion identified by the bastion ID. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetBastion.go.html to see an example of how to use GetBastion API. A default retry strategy applies to this operation GetBastion()

func (BastionClient) GetSession

func (client BastionClient) GetSession(ctx context.Context, request GetSessionRequest) (response GetSessionResponse, err error)

GetSession Retrieves a session identified by the session ID. A bastion session lets authorized users connect to a target resource for a predetermined amount of time.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetSession.go.html to see an example of how to use GetSession API. A default retry strategy applies to this operation GetSession()

func (BastionClient) GetWorkRequest

func (client BastionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)

GetWorkRequest Gets the status of the work request with the given ID.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API.

func (BastionClient) ListBastions

func (client BastionClient) ListBastions(ctx context.Context, request ListBastionsRequest) (response ListBastionsResponse, err error)

ListBastions Retrieves a list of BastionSummary objects in a compartment. Bastions provide secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListBastions.go.html to see an example of how to use ListBastions API.

func (BastionClient) ListSessions

func (client BastionClient) ListSessions(ctx context.Context, request ListSessionsRequest) (response ListSessionsResponse, err error)

ListSessions Retrieves a list of SessionSummary objects for an existing bastion. Bastion sessions let authorized users connect to a target resource for a predetermined amount of time.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListSessions.go.html to see an example of how to use ListSessions API.

func (BastionClient) ListWorkRequestErrors

func (client BastionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)

ListWorkRequestErrors Return a (paginated) list of errors for a given work request.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API.

func (BastionClient) ListWorkRequestLogs

func (client BastionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)

ListWorkRequestLogs Return a (paginated) list of logs for a given work request.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API.

func (BastionClient) ListWorkRequests

func (client BastionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)

ListWorkRequests Lists the work requests in a compartment.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API.

func (*BastionClient) SetRegion

func (client *BastionClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (BastionClient) UpdateBastion

func (client BastionClient) UpdateBastion(ctx context.Context, request UpdateBastionRequest) (response UpdateBastionResponse, err error)

UpdateBastion Updates the bastion identified by the bastion ID. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/UpdateBastion.go.html to see an example of how to use UpdateBastion API. A default retry strategy applies to this operation UpdateBastion()

func (BastionClient) UpdateSession

func (client BastionClient) UpdateSession(ctx context.Context, request UpdateSessionRequest) (response UpdateSessionResponse, err error)

UpdateSession Updates the session identified by the session ID. A bastion session lets authorized users connect to a target resource for a predetermined amount of time.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/UpdateSession.go.html to see an example of how to use UpdateSession API. A default retry strategy applies to this operation UpdateSession()

type BastionDnsProxyStatusEnum

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"
)

func GetBastionDnsProxyStatusEnumValues

func GetBastionDnsProxyStatusEnumValues() []BastionDnsProxyStatusEnum

GetBastionDnsProxyStatusEnumValues Enumerates the set of values for BastionDnsProxyStatusEnum

func GetMappingBastionDnsProxyStatusEnum

func GetMappingBastionDnsProxyStatusEnum(val string) (BastionDnsProxyStatusEnum, bool)

GetMappingBastionDnsProxyStatusEnum performs case Insensitive comparison on enum value and return the desired enum

type BastionLifecycleStateEnum

BastionLifecycleStateEnum Enum with underlying type: string

type BastionLifecycleStateEnum string

Set of constants representing the allowable values for BastionLifecycleStateEnum

const (
    BastionLifecycleStateCreating BastionLifecycleStateEnum = "CREATING"
    BastionLifecycleStateUpdating BastionLifecycleStateEnum = "UPDATING"
    BastionLifecycleStateActive   BastionLifecycleStateEnum = "ACTIVE"
    BastionLifecycleStateDeleting BastionLifecycleStateEnum = "DELETING"
    BastionLifecycleStateDeleted  BastionLifecycleStateEnum = "DELETED"
    BastionLifecycleStateFailed   BastionLifecycleStateEnum = "FAILED"
)

func GetBastionLifecycleStateEnumValues

func GetBastionLifecycleStateEnumValues() []BastionLifecycleStateEnum

GetBastionLifecycleStateEnumValues Enumerates the set of values for BastionLifecycleStateEnum

func GetMappingBastionLifecycleStateEnum

func GetMappingBastionLifecycleStateEnum(val string) (BastionLifecycleStateEnum, bool)

GetMappingBastionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type BastionSummary

BastionSummary Summary information for a bastion resource. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.

type BastionSummary struct {

    // The type of bastion.
    BastionType *string `mandatory:"true" json:"bastionType"`

    // The unique identifier (OCID) of the bastion, which can't be changed after creation.
    Id *string `mandatory:"true" json:"id"`

    // The name of the bastion, which can't be changed after creation.
    Name *string `mandatory:"true" json:"name"`

    // The unique identifier (OCID) of the compartment where the bastion is located.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
    TargetVcnId *string `mandatory:"true" json:"targetVcnId"`

    // The unique identifier (OCID) of the subnet that the bastion connects to.
    TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"`

    // The time the bastion was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2020-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // 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"`

    // A message describing the current state in more detail.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // 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"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // Usage of system tag keys. These predefined keys are scoped to namespaces.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

func (BastionSummary) String

func (m BastionSummary) String() string

func (BastionSummary) ValidateEnumValue

func (m BastionSummary) ValidateEnumValue() (bool, error)

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

type ChangeBastionCompartmentDetails

ChangeBastionCompartmentDetails Details about the compartment that the bastion should move to.

type ChangeBastionCompartmentDetails struct {

    // The unique identifier (OCID) of the compartment that the bastion should move to.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeBastionCompartmentDetails) String

func (m ChangeBastionCompartmentDetails) String() string

func (ChangeBastionCompartmentDetails) ValidateEnumValue

func (m ChangeBastionCompartmentDetails) ValidateEnumValue() (bool, error)

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

type ChangeBastionCompartmentRequest

ChangeBastionCompartmentRequest wrapper for the ChangeBastionCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ChangeBastionCompartment.go.html to see an example of how to use ChangeBastionCompartmentRequest.

type ChangeBastionCompartmentRequest struct {

    // The unique identifier (OCID) of the bastion.
    BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"`

    // The compartment information to be updated.
    ChangeBastionCompartmentDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ChangeBastionCompartmentRequest) BinaryRequestBody

func (request ChangeBastionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ChangeBastionCompartmentRequest) HTTPRequest

func (request ChangeBastionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ChangeBastionCompartmentRequest) RetryPolicy

func (request ChangeBastionCompartmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ChangeBastionCompartmentRequest) String

func (request ChangeBastionCompartmentRequest) String() string

func (ChangeBastionCompartmentRequest) ValidateEnumValue

func (request ChangeBastionCompartmentRequest) ValidateEnumValue() (bool, error)

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

type ChangeBastionCompartmentResponse

ChangeBastionCompartmentResponse wrapper for the ChangeBastionCompartment operation

type ChangeBastionCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ChangeBastionCompartmentResponse) HTTPResponse

func (response ChangeBastionCompartmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ChangeBastionCompartmentResponse) String

func (response ChangeBastionCompartmentResponse) String() string

type CreateBastionDetails

CreateBastionDetails The configuration details for a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.

type CreateBastionDetails struct {

    // The type of bastion. Use `standard`.
    BastionType *string `mandatory:"true" json:"bastionType"`

    // The unique identifier (OCID) of the compartment where the bastion is located.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The unique identifier (OCID) of the subnet that the bastion connects to.
    TargetSubnetId *string `mandatory:"true" json:"targetSubnetId"`

    // The name of the bastion, which can't be changed after creation.
    Name *string `mandatory:"false" json:"name"`

    // The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
    PhoneBookEntry *string `mandatory:"false" json:"phoneBookEntry"`

    // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
    StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"`

    // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
    ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"`

    // 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"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateBastionDetails) String

func (m CreateBastionDetails) String() string

func (CreateBastionDetails) ValidateEnumValue

func (m CreateBastionDetails) ValidateEnumValue() (bool, error)

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

type CreateBastionRequest

CreateBastionRequest wrapper for the CreateBastion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/CreateBastion.go.html to see an example of how to use CreateBastionRequest.

type CreateBastionRequest struct {

    // Details for the new bastion.
    CreateBastionDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateBastionRequest) BinaryRequestBody

func (request CreateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateBastionRequest) HTTPRequest

func (request CreateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateBastionRequest) RetryPolicy

func (request CreateBastionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateBastionRequest) String

func (request CreateBastionRequest) String() string

func (CreateBastionRequest) ValidateEnumValue

func (request CreateBastionRequest) ValidateEnumValue() (bool, error)

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

type CreateBastionResponse

CreateBastionResponse wrapper for the CreateBastion operation

type CreateBastionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Bastion instance
    Bastion `presentIn:"body"`

    // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // this contains the full URI for the get request, e.g. "https://iaas.us-phoenix-1.oraclecloud.com/20210331/bastions/<some-ocid>"
    Location *string `presentIn:"header" name:"location"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateBastionResponse) HTTPResponse

func (response CreateBastionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateBastionResponse) String

func (response CreateBastionResponse) String() string

type CreateDynamicPortForwardingSessionTargetResourceDetails

CreateDynamicPortForwardingSessionTargetResourceDetails Details about a dynamic port forwarding session for a target subnet.

type CreateDynamicPortForwardingSessionTargetResourceDetails struct {
}

func (CreateDynamicPortForwardingSessionTargetResourceDetails) MarshalJSON

func (m CreateDynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CreateDynamicPortForwardingSessionTargetResourceDetails) String

func (m CreateDynamicPortForwardingSessionTargetResourceDetails) String() string

func (CreateDynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue

func (m CreateDynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type CreateManagedSshSessionTargetResourceDetails

CreateManagedSshSessionTargetResourceDetails Details about a managed SSH session for a target resource.

type CreateManagedSshSessionTargetResourceDetails struct {

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

    // 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 private IP address of the target resource that the session connects to.
    TargetResourcePrivateIpAddress *string `mandatory:"false" json:"targetResourcePrivateIpAddress"`

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

func (CreateManagedSshSessionTargetResourceDetails) MarshalJSON

func (m CreateManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CreateManagedSshSessionTargetResourceDetails) String

func (m CreateManagedSshSessionTargetResourceDetails) String() string

func (CreateManagedSshSessionTargetResourceDetails) ValidateEnumValue

func (m CreateManagedSshSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type CreatePortForwardingSessionTargetResourceDetails

CreatePortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.

type CreatePortForwardingSessionTargetResourceDetails struct {

    // 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"`

    // 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 (CreatePortForwardingSessionTargetResourceDetails) MarshalJSON

func (m CreatePortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CreatePortForwardingSessionTargetResourceDetails) String

func (m CreatePortForwardingSessionTargetResourceDetails) String() string

func (CreatePortForwardingSessionTargetResourceDetails) ValidateEnumValue

func (m CreatePortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type CreateSessionDetails

CreateSessionDetails The configuration details for a new bastion session. A session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.

type CreateSessionDetails struct {

    // The unique identifier (OCID) of the bastion on which to create this session.
    BastionId *string `mandatory:"true" json:"bastionId"`

    TargetResourceDetails CreateSessionTargetResourceDetails `mandatory:"true" json:"targetResourceDetails"`

    KeyDetails *PublicKeyDetails `mandatory:"true" json:"keyDetails"`

    // The name of the session.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
    KeyType CreateSessionDetailsKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"`

    // The amount of time the session can remain active.
    SessionTtlInSeconds *int `mandatory:"false" json:"sessionTtlInSeconds"`
}

func (CreateSessionDetails) String

func (m CreateSessionDetails) String() string

func (*CreateSessionDetails) UnmarshalJSON

func (m *CreateSessionDetails) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (CreateSessionDetails) ValidateEnumValue

func (m CreateSessionDetails) ValidateEnumValue() (bool, error)

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

type CreateSessionDetailsKeyTypeEnum

CreateSessionDetailsKeyTypeEnum Enum with underlying type: string

type CreateSessionDetailsKeyTypeEnum string

Set of constants representing the allowable values for CreateSessionDetailsKeyTypeEnum

const (
    CreateSessionDetailsKeyTypePub CreateSessionDetailsKeyTypeEnum = "PUB"
)

func GetCreateSessionDetailsKeyTypeEnumValues

func GetCreateSessionDetailsKeyTypeEnumValues() []CreateSessionDetailsKeyTypeEnum

GetCreateSessionDetailsKeyTypeEnumValues Enumerates the set of values for CreateSessionDetailsKeyTypeEnum

func GetMappingCreateSessionDetailsKeyTypeEnum

func GetMappingCreateSessionDetailsKeyTypeEnum(val string) (CreateSessionDetailsKeyTypeEnum, bool)

GetMappingCreateSessionDetailsKeyTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type CreateSessionRequest

CreateSessionRequest wrapper for the CreateSession operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/CreateSession.go.html to see an example of how to use CreateSessionRequest.

type CreateSessionRequest struct {

    // Details for the new session.
    CreateSessionDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateSessionRequest) BinaryRequestBody

func (request CreateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateSessionRequest) HTTPRequest

func (request CreateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateSessionRequest) RetryPolicy

func (request CreateSessionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateSessionRequest) String

func (request CreateSessionRequest) String() string

func (CreateSessionRequest) ValidateEnumValue

func (request CreateSessionRequest) ValidateEnumValue() (bool, error)

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

type CreateSessionResponse

CreateSessionResponse wrapper for the CreateSession operation

type CreateSessionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Session instance
    Session `presentIn:"body"`

    // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // this contains the full URI for the get request, e.g. "https://iaas.us-phoenix-1.oraclecloud.com/20210331/bastions/<some-ocid>"
    Location *string `presentIn:"header" name:"location"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateSessionResponse) HTTPResponse

func (response CreateSessionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateSessionResponse) String

func (response CreateSessionResponse) String() string

type CreateSessionTargetResourceDetails

CreateSessionTargetResourceDetails Details about a bastion session's target resource.

type CreateSessionTargetResourceDetails interface {
}

type DeleteBastionRequest

DeleteBastionRequest wrapper for the DeleteBastion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/DeleteBastion.go.html to see an example of how to use DeleteBastionRequest.

type DeleteBastionRequest struct {

    // The unique identifier (OCID) of the bastion.
    BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteBastionRequest) BinaryRequestBody

func (request DeleteBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteBastionRequest) HTTPRequest

func (request DeleteBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteBastionRequest) RetryPolicy

func (request DeleteBastionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteBastionRequest) String

func (request DeleteBastionRequest) String() string

func (DeleteBastionRequest) ValidateEnumValue

func (request DeleteBastionRequest) ValidateEnumValue() (bool, error)

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

type DeleteBastionResponse

DeleteBastionResponse wrapper for the DeleteBastion operation

type DeleteBastionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteBastionResponse) HTTPResponse

func (response DeleteBastionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteBastionResponse) String

func (response DeleteBastionResponse) String() string

type DeleteSessionRequest

DeleteSessionRequest wrapper for the DeleteSession operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/DeleteSession.go.html to see an example of how to use DeleteSessionRequest.

type DeleteSessionRequest struct {

    // The unique identifier (OCID) of the session.
    SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteSessionRequest) BinaryRequestBody

func (request DeleteSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteSessionRequest) HTTPRequest

func (request DeleteSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteSessionRequest) RetryPolicy

func (request DeleteSessionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteSessionRequest) String

func (request DeleteSessionRequest) String() string

func (DeleteSessionRequest) ValidateEnumValue

func (request DeleteSessionRequest) ValidateEnumValue() (bool, error)

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

type DeleteSessionResponse

DeleteSessionResponse wrapper for the DeleteSession operation

type DeleteSessionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteSessionResponse) HTTPResponse

func (response DeleteSessionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteSessionResponse) String

func (response DeleteSessionResponse) String() string

type DynamicPortForwardingSessionTargetResourceDetails

DynamicPortForwardingSessionTargetResourceDetails Details about a dynamic port forwarding session for a target subnet.

type DynamicPortForwardingSessionTargetResourceDetails struct {
}

func (DynamicPortForwardingSessionTargetResourceDetails) MarshalJSON

func (m DynamicPortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (DynamicPortForwardingSessionTargetResourceDetails) String

func (m DynamicPortForwardingSessionTargetResourceDetails) String() string

func (DynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue

func (m DynamicPortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type GetBastionRequest

GetBastionRequest wrapper for the GetBastion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetBastion.go.html to see an example of how to use GetBastionRequest.

type GetBastionRequest struct {

    // The unique identifier (OCID) of the bastion.
    BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetBastionRequest) BinaryRequestBody

func (request GetBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetBastionRequest) HTTPRequest

func (request GetBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetBastionRequest) RetryPolicy

func (request GetBastionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetBastionRequest) String

func (request GetBastionRequest) String() string

func (GetBastionRequest) ValidateEnumValue

func (request GetBastionRequest) ValidateEnumValue() (bool, error)

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

type GetBastionResponse

GetBastionResponse wrapper for the GetBastion operation

type GetBastionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Bastion instance
    Bastion `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetBastionResponse) HTTPResponse

func (response GetBastionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetBastionResponse) String

func (response GetBastionResponse) String() string

type GetSessionRequest

GetSessionRequest wrapper for the GetSession operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetSession.go.html to see an example of how to use GetSessionRequest.

type GetSessionRequest struct {

    // The unique identifier (OCID) of the session.
    SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetSessionRequest) BinaryRequestBody

func (request GetSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetSessionRequest) HTTPRequest

func (request GetSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetSessionRequest) RetryPolicy

func (request GetSessionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetSessionRequest) String

func (request GetSessionRequest) String() string

func (GetSessionRequest) ValidateEnumValue

func (request GetSessionRequest) ValidateEnumValue() (bool, error)

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

type GetSessionResponse

GetSessionResponse wrapper for the GetSession operation

type GetSessionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Session instance
    Session `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetSessionResponse) HTTPResponse

func (response GetSessionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetSessionResponse) String

func (response GetSessionResponse) String() string

type GetWorkRequestRequest

GetWorkRequestRequest wrapper for the GetWorkRequest operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.

type GetWorkRequestRequest struct {

    // The unique identifier (OCID) of the asynchronous request.
    WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetWorkRequestRequest) BinaryRequestBody

func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetWorkRequestRequest) HTTPRequest

func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetWorkRequestRequest) RetryPolicy

func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetWorkRequestRequest) String

func (request GetWorkRequestRequest) String() string

func (GetWorkRequestRequest) ValidateEnumValue

func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)

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

type GetWorkRequestResponse

GetWorkRequestResponse wrapper for the GetWorkRequest operation

type GetWorkRequestResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The WorkRequest instance
    WorkRequest `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // A decimal number representing the number of seconds the client should wait before polling this endpoint again.
    RetryAfter *float32 `presentIn:"header" name:"retry-after"`
}

func (GetWorkRequestResponse) HTTPResponse

func (response GetWorkRequestResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetWorkRequestResponse) String

func (response GetWorkRequestResponse) String() string

type ListBastionsBastionLifecycleStateEnum

ListBastionsBastionLifecycleStateEnum Enum with underlying type: string

type ListBastionsBastionLifecycleStateEnum string

Set of constants representing the allowable values for ListBastionsBastionLifecycleStateEnum

const (
    ListBastionsBastionLifecycleStateCreating ListBastionsBastionLifecycleStateEnum = "CREATING"
    ListBastionsBastionLifecycleStateUpdating ListBastionsBastionLifecycleStateEnum = "UPDATING"
    ListBastionsBastionLifecycleStateActive   ListBastionsBastionLifecycleStateEnum = "ACTIVE"
    ListBastionsBastionLifecycleStateDeleting ListBastionsBastionLifecycleStateEnum = "DELETING"
    ListBastionsBastionLifecycleStateDeleted  ListBastionsBastionLifecycleStateEnum = "DELETED"
    ListBastionsBastionLifecycleStateFailed   ListBastionsBastionLifecycleStateEnum = "FAILED"
)

func GetListBastionsBastionLifecycleStateEnumValues

func GetListBastionsBastionLifecycleStateEnumValues() []ListBastionsBastionLifecycleStateEnum

GetListBastionsBastionLifecycleStateEnumValues Enumerates the set of values for ListBastionsBastionLifecycleStateEnum

func GetMappingListBastionsBastionLifecycleStateEnum

func GetMappingListBastionsBastionLifecycleStateEnum(val string) (ListBastionsBastionLifecycleStateEnum, bool)

GetMappingListBastionsBastionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type ListBastionsRequest

ListBastionsRequest wrapper for the ListBastions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListBastions.go.html to see an example of how to use ListBastionsRequest.

type ListBastionsRequest struct {

    // The unique identifier (OCID) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A filter to return only resources their lifecycleState matches the given lifecycleState.
    BastionLifecycleState ListBastionsBastionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"bastionLifecycleState" omitEmpty:"true"`

    // The unique identifier (OCID) of the bastion in which to list resources.
    BastionId *string `mandatory:"false" contributesTo:"query" name:"bastionId"`

    // A filter to return only resources that match the entire name given.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'asc' or 'desc'.
    SortOrder ListBastionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending. If no value is specified timeCreated is default.
    SortBy ListBastionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListBastionsRequest) BinaryRequestBody

func (request ListBastionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListBastionsRequest) HTTPRequest

func (request ListBastionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListBastionsRequest) RetryPolicy

func (request ListBastionsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListBastionsRequest) String

func (request ListBastionsRequest) String() string

func (ListBastionsRequest) ValidateEnumValue

func (request ListBastionsRequest) ValidateEnumValue() (bool, error)

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

type ListBastionsResponse

ListBastionsResponse wrapper for the ListBastions operation

type ListBastionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []BastionSummary instances
    Items []BastionSummary `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListBastionsResponse) HTTPResponse

func (response ListBastionsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListBastionsResponse) String

func (response ListBastionsResponse) String() string

type ListBastionsSortByEnum

ListBastionsSortByEnum Enum with underlying type: string

type ListBastionsSortByEnum string

Set of constants representing the allowable values for ListBastionsSortByEnum

const (
    ListBastionsSortByTimecreated ListBastionsSortByEnum = "timeCreated"
    ListBastionsSortByName        ListBastionsSortByEnum = "name"
)

func GetListBastionsSortByEnumValues

func GetListBastionsSortByEnumValues() []ListBastionsSortByEnum

GetListBastionsSortByEnumValues Enumerates the set of values for ListBastionsSortByEnum

func GetMappingListBastionsSortByEnum

func GetMappingListBastionsSortByEnum(val string) (ListBastionsSortByEnum, bool)

GetMappingListBastionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListBastionsSortOrderEnum

ListBastionsSortOrderEnum Enum with underlying type: string

type ListBastionsSortOrderEnum string

Set of constants representing the allowable values for ListBastionsSortOrderEnum

const (
    ListBastionsSortOrderAsc  ListBastionsSortOrderEnum = "ASC"
    ListBastionsSortOrderDesc ListBastionsSortOrderEnum = "DESC"
)

func GetListBastionsSortOrderEnumValues

func GetListBastionsSortOrderEnumValues() []ListBastionsSortOrderEnum

GetListBastionsSortOrderEnumValues Enumerates the set of values for ListBastionsSortOrderEnum

func GetMappingListBastionsSortOrderEnum

func GetMappingListBastionsSortOrderEnum(val string) (ListBastionsSortOrderEnum, bool)

GetMappingListBastionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListSessionsRequest

ListSessionsRequest wrapper for the ListSessions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListSessions.go.html to see an example of how to use ListSessionsRequest.

type ListSessionsRequest struct {

    // The unique identifier (OCID) of the bastion in which to list sessions.
    BastionId *string `mandatory:"true" contributesTo:"query" name:"bastionId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A filter to return only resources that match the entire display name given.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    // A filter to return only resources their lifecycleState matches the given lifecycleState.
    SessionLifecycleState ListSessionsSessionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"sessionLifecycleState" omitEmpty:"true"`

    // The unique identifier (OCID) of the session in which to list resources.
    SessionId *string `mandatory:"false" contributesTo:"query" name:"sessionId"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'asc' or 'desc'.
    SortOrder ListSessionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // 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.
    SortBy ListSessionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListSessionsRequest) BinaryRequestBody

func (request ListSessionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListSessionsRequest) HTTPRequest

func (request ListSessionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListSessionsRequest) RetryPolicy

func (request ListSessionsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListSessionsRequest) String

func (request ListSessionsRequest) String() string

func (ListSessionsRequest) ValidateEnumValue

func (request ListSessionsRequest) ValidateEnumValue() (bool, error)

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

type ListSessionsResponse

ListSessionsResponse wrapper for the ListSessions operation

type ListSessionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []SessionSummary instances
    Items []SessionSummary `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListSessionsResponse) HTTPResponse

func (response ListSessionsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListSessionsResponse) String

func (response ListSessionsResponse) String() string

type ListSessionsSessionLifecycleStateEnum

ListSessionsSessionLifecycleStateEnum Enum with underlying type: string

type ListSessionsSessionLifecycleStateEnum string

Set of constants representing the allowable values for ListSessionsSessionLifecycleStateEnum

const (
    ListSessionsSessionLifecycleStateCreating ListSessionsSessionLifecycleStateEnum = "CREATING"
    ListSessionsSessionLifecycleStateActive   ListSessionsSessionLifecycleStateEnum = "ACTIVE"
    ListSessionsSessionLifecycleStateDeleting ListSessionsSessionLifecycleStateEnum = "DELETING"
    ListSessionsSessionLifecycleStateDeleted  ListSessionsSessionLifecycleStateEnum = "DELETED"
    ListSessionsSessionLifecycleStateFailed   ListSessionsSessionLifecycleStateEnum = "FAILED"
)

func GetListSessionsSessionLifecycleStateEnumValues

func GetListSessionsSessionLifecycleStateEnumValues() []ListSessionsSessionLifecycleStateEnum

GetListSessionsSessionLifecycleStateEnumValues Enumerates the set of values for ListSessionsSessionLifecycleStateEnum

func GetMappingListSessionsSessionLifecycleStateEnum

func GetMappingListSessionsSessionLifecycleStateEnum(val string) (ListSessionsSessionLifecycleStateEnum, bool)

GetMappingListSessionsSessionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type ListSessionsSortByEnum

ListSessionsSortByEnum Enum with underlying type: string

type ListSessionsSortByEnum string

Set of constants representing the allowable values for ListSessionsSortByEnum

const (
    ListSessionsSortByTimecreated ListSessionsSortByEnum = "timeCreated"
    ListSessionsSortByDisplayname ListSessionsSortByEnum = "displayName"
)

func GetListSessionsSortByEnumValues

func GetListSessionsSortByEnumValues() []ListSessionsSortByEnum

GetListSessionsSortByEnumValues Enumerates the set of values for ListSessionsSortByEnum

func GetMappingListSessionsSortByEnum

func GetMappingListSessionsSortByEnum(val string) (ListSessionsSortByEnum, bool)

GetMappingListSessionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListSessionsSortOrderEnum

ListSessionsSortOrderEnum Enum with underlying type: string

type ListSessionsSortOrderEnum string

Set of constants representing the allowable values for ListSessionsSortOrderEnum

const (
    ListSessionsSortOrderAsc  ListSessionsSortOrderEnum = "ASC"
    ListSessionsSortOrderDesc ListSessionsSortOrderEnum = "DESC"
)

func GetListSessionsSortOrderEnumValues

func GetListSessionsSortOrderEnumValues() []ListSessionsSortOrderEnum

GetListSessionsSortOrderEnumValues Enumerates the set of values for ListSessionsSortOrderEnum

func GetMappingListSessionsSortOrderEnum

func GetMappingListSessionsSortOrderEnum(val string) (ListSessionsSortOrderEnum, bool)

GetMappingListSessionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListWorkRequestErrorsRequest

ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest.

type ListWorkRequestErrorsRequest struct {

    // The unique identifier (OCID) of the asynchronous request.
    WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListWorkRequestErrorsRequest) BinaryRequestBody

func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) HTTPRequest

func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) RetryPolicy

func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListWorkRequestErrorsRequest) String

func (request ListWorkRequestErrorsRequest) String() string

func (ListWorkRequestErrorsRequest) ValidateEnumValue

func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)

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

type ListWorkRequestErrorsResponse

ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation

type ListWorkRequestErrorsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []WorkRequestError instances
    Items []WorkRequestError `presentIn:"body"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ListWorkRequestErrorsResponse) HTTPResponse

func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestErrorsResponse) String

func (response ListWorkRequestErrorsResponse) String() string

type ListWorkRequestLogsRequest

ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest.

type ListWorkRequestLogsRequest struct {

    // The unique identifier (OCID) of the asynchronous request.
    WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListWorkRequestLogsRequest) BinaryRequestBody

func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestLogsRequest) HTTPRequest

func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestLogsRequest) RetryPolicy

func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListWorkRequestLogsRequest) String

func (request ListWorkRequestLogsRequest) String() string

func (ListWorkRequestLogsRequest) ValidateEnumValue

func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)

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

type ListWorkRequestLogsResponse

ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation

type ListWorkRequestLogsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []WorkRequestLogEntry instances
    Items []WorkRequestLogEntry `presentIn:"body"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ListWorkRequestLogsResponse) HTTPResponse

func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestLogsResponse) String

func (response ListWorkRequestLogsResponse) String() string

type ListWorkRequestsRequest

ListWorkRequestsRequest wrapper for the ListWorkRequests operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest.

type ListWorkRequestsRequest struct {

    // The unique identifier (OCID) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListWorkRequestsRequest) BinaryRequestBody

func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestsRequest) HTTPRequest

func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestsRequest) RetryPolicy

func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListWorkRequestsRequest) String

func (request ListWorkRequestsRequest) String() string

func (ListWorkRequestsRequest) ValidateEnumValue

func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)

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

type ListWorkRequestsResponse

ListWorkRequestsResponse wrapper for the ListWorkRequests operation

type ListWorkRequestsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []WorkRequestSummary instances
    Items []WorkRequestSummary `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListWorkRequestsResponse) HTTPResponse

func (response ListWorkRequestsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestsResponse) String

func (response ListWorkRequestsResponse) String() string

type ManagedSshSessionTargetResourceDetails

ManagedSshSessionTargetResourceDetails Details about a managed SSH session for a target resource.

type ManagedSshSessionTargetResourceDetails struct {

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

    // 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 display name of the target Compute instance that the session connects to.
    TargetResourceDisplayName *string `mandatory:"true" json:"targetResourceDisplayName"`

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

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

func (ManagedSshSessionTargetResourceDetails) MarshalJSON

func (m ManagedSshSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (ManagedSshSessionTargetResourceDetails) String

func (m ManagedSshSessionTargetResourceDetails) String() string

func (ManagedSshSessionTargetResourceDetails) ValidateEnumValue

func (m ManagedSshSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type OperationStatusEnum

OperationStatusEnum Enum with underlying type: string

type OperationStatusEnum string

Set of constants representing the allowable values for OperationStatusEnum

const (
    OperationStatusAccepted   OperationStatusEnum = "ACCEPTED"
    OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS"
    OperationStatusFailed     OperationStatusEnum = "FAILED"
    OperationStatusSucceeded  OperationStatusEnum = "SUCCEEDED"
    OperationStatusCanceling  OperationStatusEnum = "CANCELING"
    OperationStatusCanceled   OperationStatusEnum = "CANCELED"
)

func GetMappingOperationStatusEnum

func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)

GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum

func GetOperationStatusEnumValues

func GetOperationStatusEnumValues() []OperationStatusEnum

GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum

type OperationTypeEnum

OperationTypeEnum Enum with underlying type: string

type OperationTypeEnum string

Set of constants representing the allowable values for OperationTypeEnum

const (
    OperationTypeCreateBastion OperationTypeEnum = "CREATE_BASTION"
    OperationTypeUpdateBastion OperationTypeEnum = "UPDATE_BASTION"
    OperationTypeDeleteBastion OperationTypeEnum = "DELETE_BASTION"
    OperationTypeCreateSession OperationTypeEnum = "CREATE_SESSION"
    OperationTypeDeleteSession OperationTypeEnum = "DELETE_SESSION"
)

func GetMappingOperationTypeEnum

func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)

GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetOperationTypeEnumValues

func GetOperationTypeEnumValues() []OperationTypeEnum

GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum

type PortForwardingSessionTargetResourceDetails

PortForwardingSessionTargetResourceDetails Details about a port forwarding session for a target resource.

type PortForwardingSessionTargetResourceDetails struct {

    // 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"`

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

    // 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 (PortForwardingSessionTargetResourceDetails) MarshalJSON

func (m PortForwardingSessionTargetResourceDetails) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (PortForwardingSessionTargetResourceDetails) String

func (m PortForwardingSessionTargetResourceDetails) String() string

func (PortForwardingSessionTargetResourceDetails) ValidateEnumValue

func (m PortForwardingSessionTargetResourceDetails) ValidateEnumValue() (bool, error)

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

type PublicKeyDetails

PublicKeyDetails Public key details for a bastion session.

type PublicKeyDetails struct {

    // The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
    PublicKeyContent *string `mandatory:"true" json:"publicKeyContent"`
}

func (PublicKeyDetails) String

func (m PublicKeyDetails) String() string

func (PublicKeyDetails) ValidateEnumValue

func (m PublicKeyDetails) ValidateEnumValue() (bool, error)

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

type Session

Session A bastion session resource. A bastion session lets authorized users connect to a target resource using a Secure Shell (SSH) for a predetermined amount of time.

type Session struct {

    // The unique identifier (OCID) of the session, which can't be changed after creation.
    Id *string `mandatory:"true" json:"id"`

    // The unique identifier (OCID) of the bastion that is hosting this session.
    BastionId *string `mandatory:"true" json:"bastionId"`

    // The name of the bastion that is hosting this session.
    BastionName *string `mandatory:"true" json:"bastionName"`

    TargetResourceDetails TargetResourceDetails `mandatory:"true" json:"targetResourceDetails"`

    KeyDetails *PublicKeyDetails `mandatory:"true" json:"keyDetails"`

    // The time the session was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2020-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the session.
    LifecycleState SessionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The amount of time the session can remain active.
    SessionTtlInSeconds *int `mandatory:"true" json:"sessionTtlInSeconds"`

    // The name of the session.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The username that the session uses to connect to the target resource.
    BastionUserName *string `mandatory:"false" json:"bastionUserName"`

    // The connection message for the session.
    SshMetadata map[string]string `mandatory:"false" json:"sshMetadata"`

    // The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
    KeyType SessionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"`

    // The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
    BastionPublicHostKeyInfo *string `mandatory:"false" json:"bastionPublicHostKeyInfo"`

    // The time the session 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"`

    // A message describing the current session state in more detail.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
}

func (Session) String

func (m Session) String() string

func (*Session) UnmarshalJSON

func (m *Session) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (Session) ValidateEnumValue

func (m Session) ValidateEnumValue() (bool, error)

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

type SessionKeyTypeEnum

SessionKeyTypeEnum Enum with underlying type: string

type SessionKeyTypeEnum string

Set of constants representing the allowable values for SessionKeyTypeEnum

const (
    SessionKeyTypePub SessionKeyTypeEnum = "PUB"
)

func GetMappingSessionKeyTypeEnum

func GetMappingSessionKeyTypeEnum(val string) (SessionKeyTypeEnum, bool)

GetMappingSessionKeyTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSessionKeyTypeEnumValues

func GetSessionKeyTypeEnumValues() []SessionKeyTypeEnum

GetSessionKeyTypeEnumValues Enumerates the set of values for SessionKeyTypeEnum

type SessionLifecycleStateEnum

SessionLifecycleStateEnum Enum with underlying type: string

type SessionLifecycleStateEnum string

Set of constants representing the allowable values for SessionLifecycleStateEnum

const (
    SessionLifecycleStateCreating SessionLifecycleStateEnum = "CREATING"
    SessionLifecycleStateActive   SessionLifecycleStateEnum = "ACTIVE"
    SessionLifecycleStateDeleting SessionLifecycleStateEnum = "DELETING"
    SessionLifecycleStateDeleted  SessionLifecycleStateEnum = "DELETED"
    SessionLifecycleStateFailed   SessionLifecycleStateEnum = "FAILED"
)

func GetMappingSessionLifecycleStateEnum

func GetMappingSessionLifecycleStateEnum(val string) (SessionLifecycleStateEnum, bool)

GetMappingSessionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSessionLifecycleStateEnumValues

func GetSessionLifecycleStateEnumValues() []SessionLifecycleStateEnum

GetSessionLifecycleStateEnumValues Enumerates the set of values for SessionLifecycleStateEnum

type SessionSummary

SessionSummary Summary information for a bastion session resource.

type SessionSummary struct {

    // The unique identifier (OCID) of the session, which can't be changed after creation.
    Id *string `mandatory:"true" json:"id"`

    // The name of the bastion that is hosting this session.
    BastionName *string `mandatory:"true" json:"bastionName"`

    // The unique identifier (OCID) of the bastion that is hosting this session.
    BastionId *string `mandatory:"true" json:"bastionId"`

    TargetResourceDetails TargetResourceDetails `mandatory:"true" json:"targetResourceDetails"`

    // The time the session was created. Format is defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2020-01-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the session.
    LifecycleState SessionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The amount of time the session can remain active.
    SessionTtlInSeconds *int `mandatory:"true" json:"sessionTtlInSeconds"`

    // The name of the session.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The time the session 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"`

    // A message describing the current session state in more detail.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
}

func (SessionSummary) String

func (m SessionSummary) String() string

func (*SessionSummary) UnmarshalJSON

func (m *SessionSummary) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (SessionSummary) ValidateEnumValue

func (m SessionSummary) ValidateEnumValue() (bool, error)

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

type SessionTypeEnum

SessionTypeEnum Enum with underlying type: string

type SessionTypeEnum string

Set of constants representing the allowable values for SessionTypeEnum

const (
    SessionTypeManagedSsh            SessionTypeEnum = "MANAGED_SSH"
    SessionTypePortForwarding        SessionTypeEnum = "PORT_FORWARDING"
    SessionTypeDynamicPortForwarding SessionTypeEnum = "DYNAMIC_PORT_FORWARDING"
)

func GetMappingSessionTypeEnum

func GetMappingSessionTypeEnum(val string) (SessionTypeEnum, bool)

GetMappingSessionTypeEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSessionTypeEnumValues

func GetSessionTypeEnumValues() []SessionTypeEnum

GetSessionTypeEnumValues Enumerates the set of values for SessionTypeEnum

type SortOrderEnum

SortOrderEnum Enum with underlying type: string

type SortOrderEnum string

Set of constants representing the allowable values for SortOrderEnum

const (
    SortOrderAsc  SortOrderEnum = "ASC"
    SortOrderDesc SortOrderEnum = "DESC"
)

func GetMappingSortOrderEnum

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type TargetResourceDetails

TargetResourceDetails Details about a bastion session's target resource.

type TargetResourceDetails interface {
}

type UpdateBastionDetails

UpdateBastionDetails The configuration to update on an existing bastion.

type UpdateBastionDetails struct {

    // The maximum amount of time that any session on the bastion can remain active.
    MaxSessionTtlInSeconds *int `mandatory:"false" json:"maxSessionTtlInSeconds"`

    // A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
    StaticJumpHostIpAddresses []string `mandatory:"false" json:"staticJumpHostIpAddresses"`

    // A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
    ClientCidrBlockAllowList []string `mandatory:"false" json:"clientCidrBlockAllowList"`

    // 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"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"foo-namespace": {"bar-key": "value"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateBastionDetails) String

func (m UpdateBastionDetails) String() string

func (UpdateBastionDetails) ValidateEnumValue

func (m UpdateBastionDetails) ValidateEnumValue() (bool, error)

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

type UpdateBastionRequest

UpdateBastionRequest wrapper for the UpdateBastion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/UpdateBastion.go.html to see an example of how to use UpdateBastionRequest.

type UpdateBastionRequest struct {

    // The unique identifier (OCID) of the bastion.
    BastionId *string `mandatory:"true" contributesTo:"path" name:"bastionId"`

    // The bastion information to be updated.
    UpdateBastionDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (UpdateBastionRequest) BinaryRequestBody

func (request UpdateBastionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateBastionRequest) HTTPRequest

func (request UpdateBastionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateBastionRequest) RetryPolicy

func (request UpdateBastionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateBastionRequest) String

func (request UpdateBastionRequest) String() string

func (UpdateBastionRequest) ValidateEnumValue

func (request UpdateBastionRequest) ValidateEnumValue() (bool, error)

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

type UpdateBastionResponse

UpdateBastionResponse wrapper for the UpdateBastion operation

type UpdateBastionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (UpdateBastionResponse) HTTPResponse

func (response UpdateBastionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateBastionResponse) String

func (response UpdateBastionResponse) String() string

type UpdateSessionDetails

UpdateSessionDetails The session information to be updated.

type UpdateSessionDetails struct {

    // The name of the session.
    DisplayName *string `mandatory:"false" json:"displayName"`
}

func (UpdateSessionDetails) String

func (m UpdateSessionDetails) String() string

func (UpdateSessionDetails) ValidateEnumValue

func (m UpdateSessionDetails) ValidateEnumValue() (bool, error)

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

type UpdateSessionRequest

UpdateSessionRequest wrapper for the UpdateSession operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/bastion/UpdateSession.go.html to see an example of how to use UpdateSessionRequest.

type UpdateSessionRequest struct {

    // The unique identifier (OCID) of the session.
    SessionId *string `mandatory:"true" contributesTo:"path" name:"sessionId"`

    // The session information to be updated.
    UpdateSessionDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // The client request ID for tracing.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (UpdateSessionRequest) BinaryRequestBody

func (request UpdateSessionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateSessionRequest) HTTPRequest

func (request UpdateSessionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateSessionRequest) RetryPolicy

func (request UpdateSessionRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateSessionRequest) String

func (request UpdateSessionRequest) String() string

func (UpdateSessionRequest) ValidateEnumValue

func (request UpdateSessionRequest) ValidateEnumValue() (bool, error)

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

type UpdateSessionResponse

UpdateSessionResponse wrapper for the UpdateSession operation

type UpdateSessionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Session instance
    Session `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (UpdateSessionResponse) HTTPResponse

func (response UpdateSessionResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateSessionResponse) String

func (response UpdateSessionResponse) String() string

type WorkRequest

WorkRequest A description of workrequest status.

type WorkRequest struct {

    // Type of the work request.
    OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

    // Status of current work request.
    Status OperationStatusEnum `mandatory:"true" json:"status"`

    // The unique identifier (OCID) of the work request.
    Id *string `mandatory:"true" json:"id"`

    // The ocid of the compartment that contains the work request. Work requests should be scoped to
    // the same compartment as the resource the work request affects. If the work request affects multiple resources,
    // and those resources are not in the same compartment, it is up to the service team to pick the primary
    // resource whose compartment should be used
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The resources affected by this work request.
    Resources []WorkRequestResource `mandatory:"true" json:"resources"`

    // Percentage of the request completed.
    PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

    // The date and time the request was created, as described in
    // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
    TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

    // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339),
    // section 14.29.
    TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

    // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
    TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

func (WorkRequest) String

func (m WorkRequest) String() string

func (WorkRequest) ValidateEnumValue

func (m WorkRequest) ValidateEnumValue() (bool, error)

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

type WorkRequestError

WorkRequestError An error encountered while executing a work request.

type WorkRequestError struct {

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

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

    // The time the error occurred. An RFC3339 formatted datetime string.
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestError) String

func (m WorkRequestError) String() string

func (WorkRequestError) ValidateEnumValue

func (m WorkRequestError) ValidateEnumValue() (bool, error)

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

type WorkRequestLogEntry

WorkRequestLogEntry A log message from the execution of a work request.

type WorkRequestLogEntry struct {

    // Human-readable log message.
    Message *string `mandatory:"true" json:"message"`

    // The time the log message was written. An RFC3339 formatted datetime string.
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestLogEntry) String

func (m WorkRequestLogEntry) String() string

func (WorkRequestLogEntry) ValidateEnumValue

func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)

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

type WorkRequestResource

WorkRequestResource A resource created or operated on by a work request.

type WorkRequestResource struct {

    // The resource type the work request affects.
    EntityType *string `mandatory:"true" json:"entityType"`

    // The way in which this resource is affected by the work tracked in the work request.
    // A resource being created, updated, or deleted will remain in the IN_PROGRESS state until
    // work is complete for that resource at which point it will transition to CREATED, UPDATED,
    // or DELETED, respectively.
    ActionType ActionTypeEnum `mandatory:"true" json:"actionType"`

    // The unique identifier (OCID) of the resource that the work request affects.
    Identifier *string `mandatory:"true" json:"identifier"`

    // The URI path that the user can do a GET on to access the resource metadata.
    EntityUri *string `mandatory:"false" json:"entityUri"`
}

func (WorkRequestResource) String

func (m WorkRequestResource) String() string

func (WorkRequestResource) ValidateEnumValue

func (m WorkRequestResource) ValidateEnumValue() (bool, error)

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

type WorkRequestSummary

WorkRequestSummary A description of workrequest status.

type WorkRequestSummary struct {

    // Type of the work request.
    OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

    // Status of current work request.
    Status OperationStatusEnum `mandatory:"true" json:"status"`

    // The unique identifier (OCID) of the work request.
    Id *string `mandatory:"true" json:"id"`

    // The ocid of the compartment that contains the work request. Work requests should be scoped to
    // the same compartment as the resource the work request affects. If the work request affects multiple resources,
    // and those resources are not in the same compartment, it is up to the service team to pick the primary
    // resource whose compartment should be used
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The resources affected by this work request.
    Resources []WorkRequestResource `mandatory:"true" json:"resources"`

    // Percentage of the request completed.
    PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

    // The date and time the request was created, as described in
    // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
    TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

    // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339),
    // section 14.29.
    TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

    // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
    TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

func (WorkRequestSummary) String

func (m WorkRequestSummary) String() string

func (WorkRequestSummary) ValidateEnumValue

func (m WorkRequestSummary) ValidateEnumValue() (bool, error)

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