...

Package ons

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

Overview ▾

Index ▾

func GetBackoffRetryPolicyPolicyTypeEnumStringValues() []string
func GetListTopicsSortByEnumStringValues() []string
func GetListTopicsSortOrderEnumStringValues() []string
func GetNotificationTopicLifecycleStateEnumStringValues() []string
func GetNotificationTopicSummaryLifecycleStateEnumStringValues() []string
func GetPublishMessageMessageTypeEnumStringValues() []string
func GetSubscriptionLifecycleStateEnumStringValues() []string
func GetSubscriptionSummaryLifecycleStateEnumStringValues() []string
type BackoffRetryPolicy
    func (m BackoffRetryPolicy) String() string
    func (m BackoffRetryPolicy) ValidateEnumValue() (bool, error)
type BackoffRetryPolicyPolicyTypeEnum
    func GetBackoffRetryPolicyPolicyTypeEnumValues() []BackoffRetryPolicyPolicyTypeEnum
    func GetMappingBackoffRetryPolicyPolicyTypeEnum(val string) (BackoffRetryPolicyPolicyTypeEnum, bool)
type ChangeCompartmentDetails
    func (m ChangeCompartmentDetails) String() string
    func (m ChangeCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeSubscriptionCompartmentRequest
    func (request ChangeSubscriptionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeSubscriptionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeSubscriptionCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeSubscriptionCompartmentRequest) String() string
    func (request ChangeSubscriptionCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeSubscriptionCompartmentResponse
    func (response ChangeSubscriptionCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeSubscriptionCompartmentResponse) String() string
type ChangeTopicCompartmentRequest
    func (request ChangeTopicCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeTopicCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeTopicCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeTopicCompartmentRequest) String() string
    func (request ChangeTopicCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeTopicCompartmentResponse
    func (response ChangeTopicCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeTopicCompartmentResponse) String() string
type ConfirmationResult
    func (m ConfirmationResult) String() string
    func (m ConfirmationResult) ValidateEnumValue() (bool, error)
type CreateSubscriptionDetails
    func (m CreateSubscriptionDetails) String() string
    func (m CreateSubscriptionDetails) ValidateEnumValue() (bool, error)
type CreateSubscriptionRequest
    func (request CreateSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateSubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateSubscriptionRequest) String() string
    func (request CreateSubscriptionRequest) ValidateEnumValue() (bool, error)
type CreateSubscriptionResponse
    func (response CreateSubscriptionResponse) HTTPResponse() *http.Response
    func (response CreateSubscriptionResponse) String() string
type CreateTopicDetails
    func (m CreateTopicDetails) String() string
    func (m CreateTopicDetails) ValidateEnumValue() (bool, error)
type CreateTopicRequest
    func (request CreateTopicRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateTopicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateTopicRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateTopicRequest) String() string
    func (request CreateTopicRequest) ValidateEnumValue() (bool, error)
type CreateTopicResponse
    func (response CreateTopicResponse) HTTPResponse() *http.Response
    func (response CreateTopicResponse) String() string
type DeleteSubscriptionRequest
    func (request DeleteSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteSubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteSubscriptionRequest) String() string
    func (request DeleteSubscriptionRequest) ValidateEnumValue() (bool, error)
type DeleteSubscriptionResponse
    func (response DeleteSubscriptionResponse) HTTPResponse() *http.Response
    func (response DeleteSubscriptionResponse) String() string
type DeleteTopicRequest
    func (request DeleteTopicRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteTopicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteTopicRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteTopicRequest) String() string
    func (request DeleteTopicRequest) ValidateEnumValue() (bool, error)
type DeleteTopicResponse
    func (response DeleteTopicResponse) HTTPResponse() *http.Response
    func (response DeleteTopicResponse) String() string
type DeliveryPolicy
    func (m DeliveryPolicy) String() string
    func (m DeliveryPolicy) ValidateEnumValue() (bool, error)
type GetConfirmSubscriptionRequest
    func (request GetConfirmSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetConfirmSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetConfirmSubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetConfirmSubscriptionRequest) String() string
    func (request GetConfirmSubscriptionRequest) ValidateEnumValue() (bool, error)
type GetConfirmSubscriptionResponse
    func (response GetConfirmSubscriptionResponse) HTTPResponse() *http.Response
    func (response GetConfirmSubscriptionResponse) String() string
type GetSubscriptionRequest
    func (request GetSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetSubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetSubscriptionRequest) String() string
    func (request GetSubscriptionRequest) ValidateEnumValue() (bool, error)
type GetSubscriptionResponse
    func (response GetSubscriptionResponse) HTTPResponse() *http.Response
    func (response GetSubscriptionResponse) String() string
type GetTopicRequest
    func (request GetTopicRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetTopicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetTopicRequest) RetryPolicy() *common.RetryPolicy
    func (request GetTopicRequest) String() string
    func (request GetTopicRequest) ValidateEnumValue() (bool, error)
type GetTopicResponse
    func (response GetTopicResponse) HTTPResponse() *http.Response
    func (response GetTopicResponse) String() string
type GetUnsubscriptionRequest
    func (request GetUnsubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetUnsubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetUnsubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetUnsubscriptionRequest) String() string
    func (request GetUnsubscriptionRequest) ValidateEnumValue() (bool, error)
type GetUnsubscriptionResponse
    func (response GetUnsubscriptionResponse) HTTPResponse() *http.Response
    func (response GetUnsubscriptionResponse) String() string
type ListSubscriptionsRequest
    func (request ListSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListSubscriptionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListSubscriptionsRequest) String() string
    func (request ListSubscriptionsRequest) ValidateEnumValue() (bool, error)
type ListSubscriptionsResponse
    func (response ListSubscriptionsResponse) HTTPResponse() *http.Response
    func (response ListSubscriptionsResponse) String() string
type ListTopicsRequest
    func (request ListTopicsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListTopicsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListTopicsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListTopicsRequest) String() string
    func (request ListTopicsRequest) ValidateEnumValue() (bool, error)
type ListTopicsResponse
    func (response ListTopicsResponse) HTTPResponse() *http.Response
    func (response ListTopicsResponse) String() string
type ListTopicsSortByEnum
    func GetListTopicsSortByEnumValues() []ListTopicsSortByEnum
    func GetMappingListTopicsSortByEnum(val string) (ListTopicsSortByEnum, bool)
type ListTopicsSortOrderEnum
    func GetListTopicsSortOrderEnumValues() []ListTopicsSortOrderEnum
    func GetMappingListTopicsSortOrderEnum(val string) (ListTopicsSortOrderEnum, bool)
type MessageDetails
    func (m MessageDetails) String() string
    func (m MessageDetails) ValidateEnumValue() (bool, error)
type NotificationControlPlaneClient
    func NewNotificationControlPlaneClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NotificationControlPlaneClient, err error)
    func NewNotificationControlPlaneClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NotificationControlPlaneClient, err error)
    func (client NotificationControlPlaneClient) ChangeTopicCompartment(ctx context.Context, request ChangeTopicCompartmentRequest) (response ChangeTopicCompartmentResponse, err error)
    func (client *NotificationControlPlaneClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client NotificationControlPlaneClient) CreateTopic(ctx context.Context, request CreateTopicRequest) (response CreateTopicResponse, err error)
    func (client NotificationControlPlaneClient) DeleteTopic(ctx context.Context, request DeleteTopicRequest) (response DeleteTopicResponse, err error)
    func (client NotificationControlPlaneClient) GetTopic(ctx context.Context, request GetTopicRequest) (response GetTopicResponse, err error)
    func (client NotificationControlPlaneClient) ListTopics(ctx context.Context, request ListTopicsRequest) (response ListTopicsResponse, err error)
    func (client *NotificationControlPlaneClient) SetRegion(region string)
    func (client NotificationControlPlaneClient) UpdateTopic(ctx context.Context, request UpdateTopicRequest) (response UpdateTopicResponse, err error)
type NotificationDataPlaneClient
    func NewNotificationDataPlaneClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NotificationDataPlaneClient, err error)
    func NewNotificationDataPlaneClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NotificationDataPlaneClient, err error)
    func (client NotificationDataPlaneClient) ChangeSubscriptionCompartment(ctx context.Context, request ChangeSubscriptionCompartmentRequest) (response ChangeSubscriptionCompartmentResponse, err error)
    func (client *NotificationDataPlaneClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client NotificationDataPlaneClient) CreateSubscription(ctx context.Context, request CreateSubscriptionRequest) (response CreateSubscriptionResponse, err error)
    func (client NotificationDataPlaneClient) DeleteSubscription(ctx context.Context, request DeleteSubscriptionRequest) (response DeleteSubscriptionResponse, err error)
    func (client NotificationDataPlaneClient) GetConfirmSubscription(ctx context.Context, request GetConfirmSubscriptionRequest) (response GetConfirmSubscriptionResponse, err error)
    func (client NotificationDataPlaneClient) GetSubscription(ctx context.Context, request GetSubscriptionRequest) (response GetSubscriptionResponse, err error)
    func (client NotificationDataPlaneClient) GetUnsubscription(ctx context.Context, request GetUnsubscriptionRequest) (response GetUnsubscriptionResponse, err error)
    func (client NotificationDataPlaneClient) ListSubscriptions(ctx context.Context, request ListSubscriptionsRequest) (response ListSubscriptionsResponse, err error)
    func (client NotificationDataPlaneClient) PublishMessage(ctx context.Context, request PublishMessageRequest) (response PublishMessageResponse, err error)
    func (client NotificationDataPlaneClient) ResendSubscriptionConfirmation(ctx context.Context, request ResendSubscriptionConfirmationRequest) (response ResendSubscriptionConfirmationResponse, err error)
    func (client *NotificationDataPlaneClient) SetRegion(region string)
    func (client NotificationDataPlaneClient) UpdateSubscription(ctx context.Context, request UpdateSubscriptionRequest) (response UpdateSubscriptionResponse, err error)
type NotificationTopic
    func (m NotificationTopic) String() string
    func (m NotificationTopic) ValidateEnumValue() (bool, error)
type NotificationTopicLifecycleStateEnum
    func GetMappingNotificationTopicLifecycleStateEnum(val string) (NotificationTopicLifecycleStateEnum, bool)
    func GetNotificationTopicLifecycleStateEnumValues() []NotificationTopicLifecycleStateEnum
type NotificationTopicSummary
    func (m NotificationTopicSummary) String() string
    func (m NotificationTopicSummary) ValidateEnumValue() (bool, error)
type NotificationTopicSummaryLifecycleStateEnum
    func GetMappingNotificationTopicSummaryLifecycleStateEnum(val string) (NotificationTopicSummaryLifecycleStateEnum, bool)
    func GetNotificationTopicSummaryLifecycleStateEnumValues() []NotificationTopicSummaryLifecycleStateEnum
type PublishMessageMessageTypeEnum
    func GetMappingPublishMessageMessageTypeEnum(val string) (PublishMessageMessageTypeEnum, bool)
    func GetPublishMessageMessageTypeEnumValues() []PublishMessageMessageTypeEnum
type PublishMessageRequest
    func (request PublishMessageRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request PublishMessageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request PublishMessageRequest) RetryPolicy() *common.RetryPolicy
    func (request PublishMessageRequest) String() string
    func (request PublishMessageRequest) ValidateEnumValue() (bool, error)
type PublishMessageResponse
    func (response PublishMessageResponse) HTTPResponse() *http.Response
    func (response PublishMessageResponse) String() string
type PublishResult
    func (m PublishResult) String() string
    func (m PublishResult) ValidateEnumValue() (bool, error)
type ResendSubscriptionConfirmationRequest
    func (request ResendSubscriptionConfirmationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ResendSubscriptionConfirmationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ResendSubscriptionConfirmationRequest) RetryPolicy() *common.RetryPolicy
    func (request ResendSubscriptionConfirmationRequest) String() string
    func (request ResendSubscriptionConfirmationRequest) ValidateEnumValue() (bool, error)
type ResendSubscriptionConfirmationResponse
    func (response ResendSubscriptionConfirmationResponse) HTTPResponse() *http.Response
    func (response ResendSubscriptionConfirmationResponse) String() string
type Subscription
    func (m Subscription) String() string
    func (m Subscription) ValidateEnumValue() (bool, error)
type SubscriptionLifecycleStateEnum
    func GetMappingSubscriptionLifecycleStateEnum(val string) (SubscriptionLifecycleStateEnum, bool)
    func GetSubscriptionLifecycleStateEnumValues() []SubscriptionLifecycleStateEnum
type SubscriptionSummary
    func (m SubscriptionSummary) String() string
    func (m SubscriptionSummary) ValidateEnumValue() (bool, error)
type SubscriptionSummaryLifecycleStateEnum
    func GetMappingSubscriptionSummaryLifecycleStateEnum(val string) (SubscriptionSummaryLifecycleStateEnum, bool)
    func GetSubscriptionSummaryLifecycleStateEnumValues() []SubscriptionSummaryLifecycleStateEnum
type TopicAttributesDetails
    func (m TopicAttributesDetails) String() string
    func (m TopicAttributesDetails) ValidateEnumValue() (bool, error)
type UpdateSubscriptionDetails
    func (m UpdateSubscriptionDetails) String() string
    func (m UpdateSubscriptionDetails) ValidateEnumValue() (bool, error)
type UpdateSubscriptionRequest
    func (request UpdateSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateSubscriptionRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateSubscriptionRequest) String() string
    func (request UpdateSubscriptionRequest) ValidateEnumValue() (bool, error)
type UpdateSubscriptionResponse
    func (response UpdateSubscriptionResponse) HTTPResponse() *http.Response
    func (response UpdateSubscriptionResponse) String() string
type UpdateTopicRequest
    func (request UpdateTopicRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateTopicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateTopicRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateTopicRequest) String() string
    func (request UpdateTopicRequest) ValidateEnumValue() (bool, error)
type UpdateTopicResponse
    func (response UpdateTopicResponse) HTTPResponse() *http.Response
    func (response UpdateTopicResponse) String() string

Package files

backoff_retry_policy.go change_compartment_details.go change_subscription_compartment_request_response.go change_topic_compartment_request_response.go confirmation_result.go create_subscription_details.go create_subscription_request_response.go create_topic_details.go create_topic_request_response.go delete_subscription_request_response.go delete_topic_request_response.go delivery_policy.go get_confirm_subscription_request_response.go get_subscription_request_response.go get_topic_request_response.go get_unsubscription_request_response.go list_subscriptions_request_response.go list_topics_request_response.go message_details.go notification_topic.go notification_topic_summary.go ons_notificationcontrolplane_client.go ons_notificationdataplane_client.go publish_message_request_response.go publish_result.go resend_subscription_confirmation_request_response.go subscription.go subscription_summary.go topic_attributes_details.go update_subscription_details.go update_subscription_request_response.go update_topic_request_response.go

func GetBackoffRetryPolicyPolicyTypeEnumStringValues

func GetBackoffRetryPolicyPolicyTypeEnumStringValues() []string

GetBackoffRetryPolicyPolicyTypeEnumStringValues Enumerates the set of values in String for BackoffRetryPolicyPolicyTypeEnum

func GetListTopicsSortByEnumStringValues

func GetListTopicsSortByEnumStringValues() []string

GetListTopicsSortByEnumStringValues Enumerates the set of values in String for ListTopicsSortByEnum

func GetListTopicsSortOrderEnumStringValues

func GetListTopicsSortOrderEnumStringValues() []string

GetListTopicsSortOrderEnumStringValues Enumerates the set of values in String for ListTopicsSortOrderEnum

func GetNotificationTopicLifecycleStateEnumStringValues

func GetNotificationTopicLifecycleStateEnumStringValues() []string

GetNotificationTopicLifecycleStateEnumStringValues Enumerates the set of values in String for NotificationTopicLifecycleStateEnum

func GetNotificationTopicSummaryLifecycleStateEnumStringValues

func GetNotificationTopicSummaryLifecycleStateEnumStringValues() []string

GetNotificationTopicSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for NotificationTopicSummaryLifecycleStateEnum

func GetPublishMessageMessageTypeEnumStringValues

func GetPublishMessageMessageTypeEnumStringValues() []string

GetPublishMessageMessageTypeEnumStringValues Enumerates the set of values in String for PublishMessageMessageTypeEnum

func GetSubscriptionLifecycleStateEnumStringValues

func GetSubscriptionLifecycleStateEnumStringValues() []string

GetSubscriptionLifecycleStateEnumStringValues Enumerates the set of values in String for SubscriptionLifecycleStateEnum

func GetSubscriptionSummaryLifecycleStateEnumStringValues

func GetSubscriptionSummaryLifecycleStateEnumStringValues() []string

GetSubscriptionSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for SubscriptionSummaryLifecycleStateEnum

type BackoffRetryPolicy

BackoffRetryPolicy The backoff retry portion of the subscription delivery policy. For information about retry durations for subscriptions, see How Notifications Works (https://docs.cloud.oracle.com/iaas/Content/Notification/Concepts/notificationoverview.htm#how).

type BackoffRetryPolicy struct {

    // The maximum retry duration in milliseconds. Default value is `7200000` (2 hours).
    MaxRetryDuration *int `mandatory:"true" json:"maxRetryDuration"`

    // The type of delivery policy.
    PolicyType BackoffRetryPolicyPolicyTypeEnum `mandatory:"true" json:"policyType"`
}

func (BackoffRetryPolicy) String

func (m BackoffRetryPolicy) String() string

func (BackoffRetryPolicy) ValidateEnumValue

func (m BackoffRetryPolicy) 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 BackoffRetryPolicyPolicyTypeEnum

BackoffRetryPolicyPolicyTypeEnum Enum with underlying type: string

type BackoffRetryPolicyPolicyTypeEnum string

Set of constants representing the allowable values for BackoffRetryPolicyPolicyTypeEnum

const (
    BackoffRetryPolicyPolicyTypeExponential BackoffRetryPolicyPolicyTypeEnum = "EXPONENTIAL"
)

func GetBackoffRetryPolicyPolicyTypeEnumValues

func GetBackoffRetryPolicyPolicyTypeEnumValues() []BackoffRetryPolicyPolicyTypeEnum

GetBackoffRetryPolicyPolicyTypeEnumValues Enumerates the set of values for BackoffRetryPolicyPolicyTypeEnum

func GetMappingBackoffRetryPolicyPolicyTypeEnum

func GetMappingBackoffRetryPolicyPolicyTypeEnum(val string) (BackoffRetryPolicyPolicyTypeEnum, bool)

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

type ChangeCompartmentDetails

ChangeCompartmentDetails The configuration details for the move operation.

type ChangeCompartmentDetails struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the specified topic
    // or subscription to.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeCompartmentDetails) String

func (m ChangeCompartmentDetails) String() string

func (ChangeCompartmentDetails) ValidateEnumValue

func (m ChangeCompartmentDetails) 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 ChangeSubscriptionCompartmentRequest

ChangeSubscriptionCompartmentRequest wrapper for the ChangeSubscriptionCompartment operation

# See also

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

type ChangeSubscriptionCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to move.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The configuration details for the move operation.
    ChangeSubscriptionCompartmentDetails ChangeCompartmentDetails `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 that 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
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

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

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

    // 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 (ChangeSubscriptionCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeSubscriptionCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeSubscriptionCompartmentRequest) RetryPolicy

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

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

func (ChangeSubscriptionCompartmentRequest) String

func (request ChangeSubscriptionCompartmentRequest) String() string

func (ChangeSubscriptionCompartmentRequest) ValidateEnumValue

func (request ChangeSubscriptionCompartmentRequest) 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 ChangeSubscriptionCompartmentResponse

ChangeSubscriptionCompartmentResponse wrapper for the ChangeSubscriptionCompartment operation

type ChangeSubscriptionCompartmentResponse 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 (ChangeSubscriptionCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeSubscriptionCompartmentResponse) String

func (response ChangeSubscriptionCompartmentResponse) String() string

type ChangeTopicCompartmentRequest

ChangeTopicCompartmentRequest wrapper for the ChangeTopicCompartment operation

# See also

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

type ChangeTopicCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to move.
    TopicId *string `mandatory:"true" contributesTo:"path" name:"topicId"`

    // The configuration details for the move operation.
    ChangeTopicCompartmentDetails ChangeCompartmentDetails `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 that 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
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

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

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

    // 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 (ChangeTopicCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeTopicCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeTopicCompartmentRequest) RetryPolicy

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

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

func (ChangeTopicCompartmentRequest) String

func (request ChangeTopicCompartmentRequest) String() string

func (ChangeTopicCompartmentRequest) ValidateEnumValue

func (request ChangeTopicCompartmentRequest) 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 ChangeTopicCompartmentResponse

ChangeTopicCompartmentResponse wrapper for the ChangeTopicCompartment operation

type ChangeTopicCompartmentResponse 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 (ChangeTopicCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeTopicCompartmentResponse) String

func (response ChangeTopicCompartmentResponse) String() string

type ConfirmationResult

ConfirmationResult The confirmation details for the specified subscription. For information about confirming subscriptions, see To confirm a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#confirmSub).

type ConfirmationResult struct {

    // The name of the subscribed topic.
    TopicName *string `mandatory:"true" json:"topicName"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic associated with the specified subscription.
    TopicId *string `mandatory:"true" json:"topicId"`

    // A locator that corresponds to the subscription protocol.
    // For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.
    Endpoint *string `mandatory:"true" json:"endpoint"`

    // The URL for unsubscribing from the topic.
    UnsubscribeUrl *string `mandatory:"true" json:"unsubscribeUrl"`

    // A human-readable string indicating the status of the subscription confirmation.
    Message *string `mandatory:"true" json:"message"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription specified in the request.
    SubscriptionId *string `mandatory:"true" json:"subscriptionId"`
}

func (ConfirmationResult) String

func (m ConfirmationResult) String() string

func (ConfirmationResult) ValidateEnumValue

func (m ConfirmationResult) 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 CreateSubscriptionDetails

CreateSubscriptionDetails The configuration details for creating the subscription.

type CreateSubscriptionDetails struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic for the subscription.
    TopicId *string `mandatory:"true" json:"topicId"`

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

    // The protocol used for the subscription.
    // Allowed values:
    //   * `CUSTOM_HTTPS`
    //   * `EMAIL`
    //   * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
    //   * `ORACLE_FUNCTIONS`
    //   * `PAGERDUTY`
    //   * `SLACK`
    //   * `SMS`
    // For information about subscription protocols, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Protocol *string `mandatory:"true" json:"protocol"`

    // A locator that corresponds to the subscription protocol.
    // For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.
    // HTTP-based protocols use URL endpoints that begin with "http:" or "https:".
    // A URL cannot exceed 512 characters.
    // Avoid entering confidential information.
    // For protocol-specific endpoint formats and steps to get or create endpoints, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Endpoint *string `mandatory:"true" json:"endpoint"`

    // Metadata for the subscription.
    Metadata *string `mandatory:"false" json:"metadata"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateSubscriptionDetails) String

func (m CreateSubscriptionDetails) String() string

func (CreateSubscriptionDetails) ValidateEnumValue

func (m CreateSubscriptionDetails) 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 CreateSubscriptionRequest

CreateSubscriptionRequest wrapper for the CreateSubscription operation

# See also

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

type CreateSubscriptionRequest struct {

    // The subscription to create.
    CreateSubscriptionDetails `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 that 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
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (CreateSubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateSubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateSubscriptionRequest) RetryPolicy

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

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

func (CreateSubscriptionRequest) String

func (request CreateSubscriptionRequest) String() string

func (CreateSubscriptionRequest) ValidateEnumValue

func (request CreateSubscriptionRequest) 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 CreateSubscriptionResponse

CreateSubscriptionResponse wrapper for the CreateSubscription operation

type CreateSubscriptionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Subscription instance
    Subscription `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateSubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateSubscriptionResponse) String

func (response CreateSubscriptionResponse) String() string

type CreateTopicDetails

CreateTopicDetails The configuration details for creating the topic.

type CreateTopicDetails struct {

    // The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.
    Name *string `mandatory:"true" json:"name"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the topic in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The description of the topic being created. Avoid entering confidential information.
    Description *string `mandatory:"false" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateTopicDetails) String

func (m CreateTopicDetails) String() string

func (CreateTopicDetails) ValidateEnumValue

func (m CreateTopicDetails) 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 CreateTopicRequest

CreateTopicRequest wrapper for the CreateTopic operation

# See also

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

type CreateTopicRequest struct {

    // The topic to create.
    CreateTopicDetails `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 that 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
    // may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (CreateTopicRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateTopicRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateTopicRequest) RetryPolicy

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

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

func (CreateTopicRequest) String

func (request CreateTopicRequest) String() string

func (CreateTopicRequest) ValidateEnumValue

func (request CreateTopicRequest) 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 CreateTopicResponse

CreateTopicResponse wrapper for the CreateTopic operation

type CreateTopicResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The NotificationTopic instance
    NotificationTopic `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateTopicResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateTopicResponse) String

func (response CreateTopicResponse) String() string

type DeleteSubscriptionRequest

DeleteSubscriptionRequest wrapper for the DeleteSubscription operation

# See also

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

type DeleteSubscriptionRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to delete.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

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

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

    // 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 (DeleteSubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteSubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteSubscriptionRequest) RetryPolicy

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

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

func (DeleteSubscriptionRequest) String

func (request DeleteSubscriptionRequest) String() string

func (DeleteSubscriptionRequest) ValidateEnumValue

func (request DeleteSubscriptionRequest) 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 DeleteSubscriptionResponse

DeleteSubscriptionResponse wrapper for the DeleteSubscription operation

type DeleteSubscriptionResponse 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 (DeleteSubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteSubscriptionResponse) String

func (response DeleteSubscriptionResponse) String() string

type DeleteTopicRequest

DeleteTopicRequest wrapper for the DeleteTopic operation

# See also

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

type DeleteTopicRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to delete.
    TopicId *string `mandatory:"true" contributesTo:"path" name:"topicId"`

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

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

    // 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 (DeleteTopicRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteTopicRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteTopicRequest) RetryPolicy

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

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

func (DeleteTopicRequest) String

func (request DeleteTopicRequest) String() string

func (DeleteTopicRequest) ValidateEnumValue

func (request DeleteTopicRequest) 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 DeleteTopicResponse

DeleteTopicResponse wrapper for the DeleteTopic operation

type DeleteTopicResponse 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 (DeleteTopicResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteTopicResponse) String

func (response DeleteTopicResponse) String() string

type DeliveryPolicy

DeliveryPolicy The subscription delivery policy.

type DeliveryPolicy struct {
    BackoffRetryPolicy *BackoffRetryPolicy `mandatory:"false" json:"backoffRetryPolicy"`
}

func (DeliveryPolicy) String

func (m DeliveryPolicy) String() string

func (DeliveryPolicy) ValidateEnumValue

func (m DeliveryPolicy) 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 GetConfirmSubscriptionRequest

GetConfirmSubscriptionRequest wrapper for the GetConfirmSubscription operation

# See also

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

type GetConfirmSubscriptionRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to get the confirmation details for.
    Id *string `mandatory:"true" contributesTo:"path" name:"id"`

    // The subscription confirmation token.
    Token *string `mandatory:"true" contributesTo:"query" name:"token"`

    // The protocol used for the subscription.
    // Allowed values:
    //   * `CUSTOM_HTTPS`
    //   * `EMAIL`
    //   * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
    //   * `ORACLE_FUNCTIONS`
    //   * `PAGERDUTY`
    //   * `SLACK`
    //   * `SMS`
    // For information about subscription protocols, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Protocol *string `mandatory:"true" contributesTo:"query" name:"protocol"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (GetConfirmSubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetConfirmSubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetConfirmSubscriptionRequest) RetryPolicy

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

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

func (GetConfirmSubscriptionRequest) String

func (request GetConfirmSubscriptionRequest) String() string

func (GetConfirmSubscriptionRequest) ValidateEnumValue

func (request GetConfirmSubscriptionRequest) 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 GetConfirmSubscriptionResponse

GetConfirmSubscriptionResponse wrapper for the GetConfirmSubscription operation

type GetConfirmSubscriptionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The ConfirmationResult instance
    ConfirmationResult `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (GetConfirmSubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetConfirmSubscriptionResponse) String

func (response GetConfirmSubscriptionResponse) String() string

type GetSubscriptionRequest

GetSubscriptionRequest wrapper for the GetSubscription operation

# See also

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

type GetSubscriptionRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to retrieve.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (GetSubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetSubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetSubscriptionRequest) RetryPolicy

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

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

func (GetSubscriptionRequest) String

func (request GetSubscriptionRequest) String() string

func (GetSubscriptionRequest) ValidateEnumValue

func (request GetSubscriptionRequest) 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 GetSubscriptionResponse

GetSubscriptionResponse wrapper for the GetSubscription operation

type GetSubscriptionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Subscription instance
    Subscription `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (GetSubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetSubscriptionResponse) String

func (response GetSubscriptionResponse) String() string

type GetTopicRequest

GetTopicRequest wrapper for the GetTopic operation

# See also

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

type GetTopicRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to retrieve.
    // Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
    TopicId *string `mandatory:"true" contributesTo:"path" name:"topicId"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (GetTopicRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetTopicRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetTopicRequest) RetryPolicy

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

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

func (GetTopicRequest) String

func (request GetTopicRequest) String() string

func (GetTopicRequest) ValidateEnumValue

func (request GetTopicRequest) 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 GetTopicResponse

GetTopicResponse wrapper for the GetTopic operation

type GetTopicResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The NotificationTopic instance
    NotificationTopic `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (GetTopicResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetTopicResponse) String

func (response GetTopicResponse) String() string

type GetUnsubscriptionRequest

GetUnsubscriptionRequest wrapper for the GetUnsubscription operation

# See also

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

type GetUnsubscriptionRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to unsubscribe from.
    Id *string `mandatory:"true" contributesTo:"path" name:"id"`

    // The subscription confirmation token.
    Token *string `mandatory:"true" contributesTo:"query" name:"token"`

    // The protocol used for the subscription.
    // Allowed values:
    //   * `CUSTOM_HTTPS`
    //   * `EMAIL`
    //   * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
    //   * `ORACLE_FUNCTIONS`
    //   * `PAGERDUTY`
    //   * `SLACK`
    //   * `SMS`
    // For information about subscription protocols, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Protocol *string `mandatory:"true" contributesTo:"query" name:"protocol"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (GetUnsubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetUnsubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetUnsubscriptionRequest) RetryPolicy

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

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

func (GetUnsubscriptionRequest) String

func (request GetUnsubscriptionRequest) String() string

func (GetUnsubscriptionRequest) ValidateEnumValue

func (request GetUnsubscriptionRequest) 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 GetUnsubscriptionResponse

GetUnsubscriptionResponse wrapper for the GetUnsubscription operation

type GetUnsubscriptionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The string instance
    Value *string `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"`
}

func (GetUnsubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetUnsubscriptionResponse) String

func (response GetUnsubscriptionResponse) String() string

type ListSubscriptionsRequest

ListSubscriptionsRequest wrapper for the ListSubscriptions operation

# See also

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

type ListSubscriptionsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
    TopicId *string `mandatory:"false" contributesTo:"query" name:"topicId"`

    // For list pagination. The value of the opc-next-page response header from the previous "List" call.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (ListSubscriptionsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListSubscriptionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSubscriptionsRequest) RetryPolicy

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

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

func (ListSubscriptionsRequest) String

func (request ListSubscriptionsRequest) String() string

func (ListSubscriptionsRequest) ValidateEnumValue

func (request ListSubscriptionsRequest) 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 ListSubscriptionsResponse

ListSubscriptionsResponse wrapper for the ListSubscriptions operation

type ListSubscriptionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // For list pagination. When this header appears in the response, additional pages of results remain.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    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 (ListSubscriptionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListSubscriptionsResponse) String

func (response ListSubscriptionsResponse) String() string

type ListTopicsRequest

ListTopicsRequest wrapper for the ListTopics operation

# See also

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

type ListTopicsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

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

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

    // For list pagination. The value of the opc-next-page response header from the previous "List" call.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The field to sort by. Only one field can be selected for sorting.
    SortBy ListTopicsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use (ascending or descending).
    SortOrder ListTopicsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    LifecycleState NotificationTopicSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (ListTopicsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListTopicsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListTopicsRequest) RetryPolicy

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

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

func (ListTopicsRequest) String

func (request ListTopicsRequest) String() string

func (ListTopicsRequest) ValidateEnumValue

func (request ListTopicsRequest) 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 ListTopicsResponse

ListTopicsResponse wrapper for the ListTopics operation

type ListTopicsResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // For list pagination. When this header appears in the response, additional pages of results remain.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // For list pagination. When this header appears in the response, previous pages of results remain.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPreviousPage *string `presentIn:"header" name:"opc-previous-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 (ListTopicsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListTopicsResponse) String

func (response ListTopicsResponse) String() string

type ListTopicsSortByEnum

ListTopicsSortByEnum Enum with underlying type: string

type ListTopicsSortByEnum string

Set of constants representing the allowable values for ListTopicsSortByEnum

const (
    ListTopicsSortByTimecreated    ListTopicsSortByEnum = "TIMECREATED"
    ListTopicsSortByLifecyclestate ListTopicsSortByEnum = "LIFECYCLESTATE"
)

func GetListTopicsSortByEnumValues

func GetListTopicsSortByEnumValues() []ListTopicsSortByEnum

GetListTopicsSortByEnumValues Enumerates the set of values for ListTopicsSortByEnum

func GetMappingListTopicsSortByEnum

func GetMappingListTopicsSortByEnum(val string) (ListTopicsSortByEnum, bool)

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

type ListTopicsSortOrderEnum

ListTopicsSortOrderEnum Enum with underlying type: string

type ListTopicsSortOrderEnum string

Set of constants representing the allowable values for ListTopicsSortOrderEnum

const (
    ListTopicsSortOrderAsc  ListTopicsSortOrderEnum = "ASC"
    ListTopicsSortOrderDesc ListTopicsSortOrderEnum = "DESC"
)

func GetListTopicsSortOrderEnumValues

func GetListTopicsSortOrderEnumValues() []ListTopicsSortOrderEnum

GetListTopicsSortOrderEnumValues Enumerates the set of values for ListTopicsSortOrderEnum

func GetMappingListTopicsSortOrderEnum

func GetMappingListTopicsSortOrderEnum(val string) (ListTopicsSortOrderEnum, bool)

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

type MessageDetails

MessageDetails The content of the message to be published.

type MessageDetails struct {

    // The body of the message to be published.
    // Avoid entering confidential information.
    Body *string `mandatory:"true" json:"body"`

    // The title of the message to be published. Avoid entering confidential information.
    Title *string `mandatory:"false" json:"title"`
}

func (MessageDetails) String

func (m MessageDetails) String() string

func (MessageDetails) ValidateEnumValue

func (m MessageDetails) 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 NotificationControlPlaneClient

NotificationControlPlaneClient a client for NotificationControlPlane

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

func NewNotificationControlPlaneClientWithConfigurationProvider

func NewNotificationControlPlaneClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NotificationControlPlaneClient, err error)

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

func NewNotificationControlPlaneClientWithOboToken

func NewNotificationControlPlaneClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NotificationControlPlaneClient, err error)

NewNotificationControlPlaneClientWithOboToken Creates a new default NotificationControlPlane 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 (NotificationControlPlaneClient) ChangeTopicCompartment

func (client NotificationControlPlaneClient) ChangeTopicCompartment(ctx context.Context, request ChangeTopicCompartmentRequest) (response ChangeTopicCompartmentResponse, err error)

ChangeTopicCompartment Moves a topic into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (*NotificationControlPlaneClient) ConfigurationProvider

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

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

func (NotificationControlPlaneClient) CreateTopic

func (client NotificationControlPlaneClient) CreateTopic(ctx context.Context, request CreateTopicRequest) (response CreateTopicResponse, err error)

CreateTopic Creates a topic in the specified compartment. For general information about topics, see Managing Topics and Subscriptions (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm). For the purposes of access control, you must provide the OCID of the compartment where you want the topic to reside. For information about access control and compartments, see Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). You must specify a display name for the topic. All Oracle Cloud Infrastructure resources, including topics, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console. For more information, see Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationControlPlaneClient) DeleteTopic

func (client NotificationControlPlaneClient) DeleteTopic(ctx context.Context, request DeleteTopicRequest) (response DeleteTopicResponse, err error)

DeleteTopic Deletes the specified topic. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationControlPlaneClient) GetTopic

func (client NotificationControlPlaneClient) GetTopic(ctx context.Context, request GetTopicRequest) (response GetTopicResponse, err error)

GetTopic Gets the specified topic's configuration information.

# See also

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

func (NotificationControlPlaneClient) ListTopics

func (client NotificationControlPlaneClient) ListTopics(ctx context.Context, request ListTopicsRequest) (response ListTopicsResponse, err error)

ListTopics Lists topics in the specified compartment. Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

# See also

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

func (*NotificationControlPlaneClient) SetRegion

func (client *NotificationControlPlaneClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (NotificationControlPlaneClient) UpdateTopic

func (client NotificationControlPlaneClient) UpdateTopic(ctx context.Context, request UpdateTopicRequest) (response UpdateTopicResponse, err error)

UpdateTopic Updates the specified topic's configuration. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

type NotificationDataPlaneClient

NotificationDataPlaneClient a client for NotificationDataPlane

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

func NewNotificationDataPlaneClientWithConfigurationProvider

func NewNotificationDataPlaneClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NotificationDataPlaneClient, err error)

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

func NewNotificationDataPlaneClientWithOboToken

func NewNotificationDataPlaneClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NotificationDataPlaneClient, err error)

NewNotificationDataPlaneClientWithOboToken Creates a new default NotificationDataPlane 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 (NotificationDataPlaneClient) ChangeSubscriptionCompartment

func (client NotificationDataPlaneClient) ChangeSubscriptionCompartment(ctx context.Context, request ChangeSubscriptionCompartmentRequest) (response ChangeSubscriptionCompartmentResponse, err error)

ChangeSubscriptionCompartment Moves a subscription into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (*NotificationDataPlaneClient) ConfigurationProvider

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

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

func (NotificationDataPlaneClient) CreateSubscription

func (client NotificationDataPlaneClient) CreateSubscription(ctx context.Context, request CreateSubscriptionRequest) (response CreateSubscriptionResponse, err error)

CreateSubscription Creates a subscription for the specified topic and sends a subscription confirmation URL to the endpoint. The subscription remains in "Pending" status until it has been confirmed. For information about confirming subscriptions, see To confirm a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#confirmSub). Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) DeleteSubscription

func (client NotificationDataPlaneClient) DeleteSubscription(ctx context.Context, request DeleteSubscriptionRequest) (response DeleteSubscriptionResponse, err error)

DeleteSubscription Deletes the specified subscription. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) GetConfirmSubscription

func (client NotificationDataPlaneClient) GetConfirmSubscription(ctx context.Context, request GetConfirmSubscriptionRequest) (response GetConfirmSubscriptionResponse, err error)

GetConfirmSubscription Gets the confirmation details for the specified subscription. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) GetSubscription

func (client NotificationDataPlaneClient) GetSubscription(ctx context.Context, request GetSubscriptionRequest) (response GetSubscriptionResponse, err error)

GetSubscription Gets the specified subscription's configuration information. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) GetUnsubscription

func (client NotificationDataPlaneClient) GetUnsubscription(ctx context.Context, request GetUnsubscriptionRequest) (response GetUnsubscriptionResponse, err error)

GetUnsubscription Unsubscribes the subscription from the topic. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) ListSubscriptions

func (client NotificationDataPlaneClient) ListSubscriptions(ctx context.Context, request ListSubscriptionsRequest) (response ListSubscriptionsResponse, err error)

ListSubscriptions Lists the subscriptions in the specified compartment or topic. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (NotificationDataPlaneClient) PublishMessage

func (client NotificationDataPlaneClient) PublishMessage(ctx context.Context, request PublishMessageRequest) (response PublishMessageResponse, err error)

PublishMessage Publishes a message to the specified topic. The topic endpoint is required for this operation. To get the topic endpoint, use GetTopic and review the `apiEndpoint` value in the response (NotificationTopic). Limits information follows. Message size limit per request: 64KB. Message delivery rate limit per endpoint: 60 messages per minute for HTTP-based protocols, 10 messages per minute for the `EMAIL` protocol. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". Transactions Per Minute (TPM) per-tenancy limit for this operation: 60 per topic. (This TPM limit represents messages per minute.) For more information about publishing messages, see Publishing Messages (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/publishingmessages.htm). For steps to request a limit increase, see Requesting a Service Limit Increase (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm#three).

# See also

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

func (NotificationDataPlaneClient) ResendSubscriptionConfirmation

func (client NotificationDataPlaneClient) ResendSubscriptionConfirmation(ctx context.Context, request ResendSubscriptionConfirmationRequest) (response ResendSubscriptionConfirmationResponse, err error)

ResendSubscriptionConfirmation Resends the confirmation details for the specified subscription. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

func (*NotificationDataPlaneClient) SetRegion

func (client *NotificationDataPlaneClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (NotificationDataPlaneClient) UpdateSubscription

func (client NotificationDataPlaneClient) UpdateSubscription(ctx context.Context, request UpdateSubscriptionRequest) (response UpdateSubscriptionResponse, err error)

UpdateSubscription Updates the specified subscription's configuration. Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

# See also

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

type NotificationTopic

NotificationTopic The properties that define a topic. For general information about topics, see Notifications Overview (https://docs.cloud.oracle.com/iaas/Content/Notification/Concepts/notificationoverview.htm).

type NotificationTopic struct {

    // The name of the topic.
    Name *string `mandatory:"true" json:"name"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
    TopicId *string `mandatory:"true" json:"topicId"`

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

    // The lifecycle state of the topic.
    LifecycleState NotificationTopicLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The time the topic was created.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The endpoint for managing subscriptions or publishing messages to the topic.
    ApiEndpoint *string `mandatory:"true" json:"apiEndpoint"`

    // A unique short topic Id. This is used only for SMS subscriptions.
    ShortTopicId *string `mandatory:"false" json:"shortTopicId"`

    // The description of the topic.
    Description *string `mandatory:"false" json:"description"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `mandatory:"false" json:"etag"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (NotificationTopic) String

func (m NotificationTopic) String() string

func (NotificationTopic) ValidateEnumValue

func (m NotificationTopic) 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 NotificationTopicLifecycleStateEnum

NotificationTopicLifecycleStateEnum Enum with underlying type: string

type NotificationTopicLifecycleStateEnum string

Set of constants representing the allowable values for NotificationTopicLifecycleStateEnum

const (
    NotificationTopicLifecycleStateActive   NotificationTopicLifecycleStateEnum = "ACTIVE"
    NotificationTopicLifecycleStateDeleting NotificationTopicLifecycleStateEnum = "DELETING"
    NotificationTopicLifecycleStateCreating NotificationTopicLifecycleStateEnum = "CREATING"
)

func GetMappingNotificationTopicLifecycleStateEnum

func GetMappingNotificationTopicLifecycleStateEnum(val string) (NotificationTopicLifecycleStateEnum, bool)

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

func GetNotificationTopicLifecycleStateEnumValues

func GetNotificationTopicLifecycleStateEnumValues() []NotificationTopicLifecycleStateEnum

GetNotificationTopicLifecycleStateEnumValues Enumerates the set of values for NotificationTopicLifecycleStateEnum

type NotificationTopicSummary

NotificationTopicSummary A summary of the properties that define a topic.

type NotificationTopicSummary struct {

    // The name of the topic.
    Name *string `mandatory:"true" json:"name"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
    TopicId *string `mandatory:"true" json:"topicId"`

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

    // The lifecycle state of the topic.
    LifecycleState NotificationTopicSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The time the topic was created.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The endpoint for managing subscriptions or publishing messages to the topic.
    ApiEndpoint *string `mandatory:"true" json:"apiEndpoint"`

    // A unique short topic Id. This is used only for SMS subscriptions.
    ShortTopicId *string `mandatory:"false" json:"shortTopicId"`

    // The description of the topic.
    Description *string `mandatory:"false" json:"description"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `mandatory:"false" json:"etag"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (NotificationTopicSummary) String

func (m NotificationTopicSummary) String() string

func (NotificationTopicSummary) ValidateEnumValue

func (m NotificationTopicSummary) 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 NotificationTopicSummaryLifecycleStateEnum

NotificationTopicSummaryLifecycleStateEnum Enum with underlying type: string

type NotificationTopicSummaryLifecycleStateEnum string

Set of constants representing the allowable values for NotificationTopicSummaryLifecycleStateEnum

const (
    NotificationTopicSummaryLifecycleStateActive   NotificationTopicSummaryLifecycleStateEnum = "ACTIVE"
    NotificationTopicSummaryLifecycleStateDeleting NotificationTopicSummaryLifecycleStateEnum = "DELETING"
    NotificationTopicSummaryLifecycleStateCreating NotificationTopicSummaryLifecycleStateEnum = "CREATING"
)

func GetMappingNotificationTopicSummaryLifecycleStateEnum

func GetMappingNotificationTopicSummaryLifecycleStateEnum(val string) (NotificationTopicSummaryLifecycleStateEnum, bool)

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

func GetNotificationTopicSummaryLifecycleStateEnumValues

func GetNotificationTopicSummaryLifecycleStateEnumValues() []NotificationTopicSummaryLifecycleStateEnum

GetNotificationTopicSummaryLifecycleStateEnumValues Enumerates the set of values for NotificationTopicSummaryLifecycleStateEnum

type PublishMessageMessageTypeEnum

PublishMessageMessageTypeEnum Enum with underlying type: string

type PublishMessageMessageTypeEnum string

Set of constants representing the allowable values for PublishMessageMessageTypeEnum

const (
    PublishMessageMessageTypeJson    PublishMessageMessageTypeEnum = "JSON"
    PublishMessageMessageTypeRawText PublishMessageMessageTypeEnum = "RAW_TEXT"
)

func GetMappingPublishMessageMessageTypeEnum

func GetMappingPublishMessageMessageTypeEnum(val string) (PublishMessageMessageTypeEnum, bool)

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

func GetPublishMessageMessageTypeEnumValues

func GetPublishMessageMessageTypeEnumValues() []PublishMessageMessageTypeEnum

GetPublishMessageMessageTypeEnumValues Enumerates the set of values for PublishMessageMessageTypeEnum

type PublishMessageRequest

PublishMessageRequest wrapper for the PublishMessage operation

# See also

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

type PublishMessageRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
    TopicId *string `mandatory:"true" contributesTo:"path" name:"topicId"`

    // The message to publish.
    MessageDetails `contributesTo:"body"`

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

    // **Deprecated.**
    // Support for JSON is deprecated.
    // You can send a JSON payload even when transmitting the payload as a raw string.
    // Configure your receiving system to read the raw payload as JSON format.
    // Type of message body in the request.
    // For `messageType` of JSON, a default key-value pair is required. Example: `{"default": "Alarm breached", "Email": "Alarm breached: <url>"}.`
    MessageType PublishMessageMessageTypeEnum `mandatory:"false" contributesTo:"header" name:"messageType"`

    // 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 (PublishMessageRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (PublishMessageRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (PublishMessageRequest) RetryPolicy

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

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

func (PublishMessageRequest) String

func (request PublishMessageRequest) String() string

func (PublishMessageRequest) ValidateEnumValue

func (request PublishMessageRequest) 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 PublishMessageResponse

PublishMessageResponse wrapper for the PublishMessage operation

type PublishMessageResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The PublishResult instance
    PublishResult `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"`
}

func (PublishMessageResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (PublishMessageResponse) String

func (response PublishMessageResponse) String() string

type PublishResult

PublishResult The response to a PublishMessage call.

type PublishResult struct {

    // The UUID of the message.
    MessageId *string `mandatory:"true" json:"messageId"`

    // The time that the service received the message.
    TimeStamp *common.SDKTime `mandatory:"false" json:"timeStamp"`
}

func (PublishResult) String

func (m PublishResult) String() string

func (PublishResult) ValidateEnumValue

func (m PublishResult) 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 ResendSubscriptionConfirmationRequest

ResendSubscriptionConfirmationRequest wrapper for the ResendSubscriptionConfirmation operation

# See also

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

type ResendSubscriptionConfirmationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to resend the confirmation for.
    Id *string `mandatory:"true" contributesTo:"path" name:"id"`

    // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    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 (ResendSubscriptionConfirmationRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ResendSubscriptionConfirmationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ResendSubscriptionConfirmationRequest) RetryPolicy

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

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

func (ResendSubscriptionConfirmationRequest) String

func (request ResendSubscriptionConfirmationRequest) String() string

func (ResendSubscriptionConfirmationRequest) ValidateEnumValue

func (request ResendSubscriptionConfirmationRequest) 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 ResendSubscriptionConfirmationResponse

ResendSubscriptionConfirmationResponse wrapper for the ResendSubscriptionConfirmation operation

type ResendSubscriptionConfirmationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Subscription instance
    Subscription `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"`
}

func (ResendSubscriptionConfirmationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ResendSubscriptionConfirmationResponse) String

func (response ResendSubscriptionConfirmationResponse) String() string

type Subscription

Subscription The subscription's configuration. For general information about subscriptions, see Notifications Overview (https://docs.cloud.oracle.com/iaas/Content/Notification/Concepts/notificationoverview.htm).

type Subscription struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
    Id *string `mandatory:"true" json:"id"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.
    TopicId *string `mandatory:"true" json:"topicId"`

    // The protocol used for the subscription.
    // Allowed values:
    //   * `CUSTOM_HTTPS`
    //   * `EMAIL`
    //   * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
    //   * `ORACLE_FUNCTIONS`
    //   * `PAGERDUTY`
    //   * `SLACK`
    //   * `SMS`
    // For information about subscription protocols, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Protocol *string `mandatory:"true" json:"protocol"`

    // A locator that corresponds to the subscription protocol.
    // For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.
    Endpoint *string `mandatory:"true" json:"endpoint"`

    // The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
    LifecycleState SubscriptionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

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

    // The time when this suscription was created.
    CreatedTime *int64 `mandatory:"false" json:"createdTime"`

    // The delivery policy of the subscription. Stored as a JSON string.
    DeliverPolicy *string `mandatory:"false" json:"deliverPolicy"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `mandatory:"false" json:"etag"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (Subscription) String

func (m Subscription) String() string

func (Subscription) ValidateEnumValue

func (m Subscription) 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 SubscriptionLifecycleStateEnum

SubscriptionLifecycleStateEnum Enum with underlying type: string

type SubscriptionLifecycleStateEnum string

Set of constants representing the allowable values for SubscriptionLifecycleStateEnum

const (
    SubscriptionLifecycleStatePending SubscriptionLifecycleStateEnum = "PENDING"
    SubscriptionLifecycleStateActive  SubscriptionLifecycleStateEnum = "ACTIVE"
    SubscriptionLifecycleStateDeleted SubscriptionLifecycleStateEnum = "DELETED"
)

func GetMappingSubscriptionLifecycleStateEnum

func GetMappingSubscriptionLifecycleStateEnum(val string) (SubscriptionLifecycleStateEnum, bool)

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

func GetSubscriptionLifecycleStateEnumValues

func GetSubscriptionLifecycleStateEnumValues() []SubscriptionLifecycleStateEnum

GetSubscriptionLifecycleStateEnumValues Enumerates the set of values for SubscriptionLifecycleStateEnum

type SubscriptionSummary

SubscriptionSummary The subscription's configuration summary.

type SubscriptionSummary struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
    Id *string `mandatory:"true" json:"id"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.
    TopicId *string `mandatory:"true" json:"topicId"`

    // The protocol used for the subscription.
    // Allowed values:
    //   * `CUSTOM_HTTPS`
    //   * `EMAIL`
    //   * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
    //   * `ORACLE_FUNCTIONS`
    //   * `PAGERDUTY`
    //   * `SLACK`
    //   * `SMS`
    // For information about subscription protocols, see
    // To create a subscription (https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
    Protocol *string `mandatory:"true" json:"protocol"`

    // A locator that corresponds to the subscription protocol.
    // For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.
    Endpoint *string `mandatory:"true" json:"endpoint"`

    // The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
    LifecycleState SubscriptionSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

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

    // The time when this suscription was created.
    CreatedTime *int64 `mandatory:"false" json:"createdTime"`

    DeliveryPolicy *DeliveryPolicy `mandatory:"false" json:"deliveryPolicy"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `mandatory:"false" json:"etag"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (SubscriptionSummary) String

func (m SubscriptionSummary) String() string

func (SubscriptionSummary) ValidateEnumValue

func (m SubscriptionSummary) 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 SubscriptionSummaryLifecycleStateEnum

SubscriptionSummaryLifecycleStateEnum Enum with underlying type: string

type SubscriptionSummaryLifecycleStateEnum string

Set of constants representing the allowable values for SubscriptionSummaryLifecycleStateEnum

const (
    SubscriptionSummaryLifecycleStatePending SubscriptionSummaryLifecycleStateEnum = "PENDING"
    SubscriptionSummaryLifecycleStateActive  SubscriptionSummaryLifecycleStateEnum = "ACTIVE"
    SubscriptionSummaryLifecycleStateDeleted SubscriptionSummaryLifecycleStateEnum = "DELETED"
)

func GetMappingSubscriptionSummaryLifecycleStateEnum

func GetMappingSubscriptionSummaryLifecycleStateEnum(val string) (SubscriptionSummaryLifecycleStateEnum, bool)

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

func GetSubscriptionSummaryLifecycleStateEnumValues

func GetSubscriptionSummaryLifecycleStateEnumValues() []SubscriptionSummaryLifecycleStateEnum

GetSubscriptionSummaryLifecycleStateEnumValues Enumerates the set of values for SubscriptionSummaryLifecycleStateEnum

type TopicAttributesDetails

TopicAttributesDetails The configuration details for updating the topic.

type TopicAttributesDetails struct {

    // The description of the topic. Avoid entering confidential information.
    Description *string `mandatory:"true" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (TopicAttributesDetails) String

func (m TopicAttributesDetails) String() string

func (TopicAttributesDetails) ValidateEnumValue

func (m TopicAttributesDetails) 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 UpdateSubscriptionDetails

UpdateSubscriptionDetails The configuration details for updating the subscription.

type UpdateSubscriptionDetails struct {

    // The delivery policy of the subscription. Stored as a JSON string.
    DeliveryPolicy *DeliveryPolicy `mandatory:"false" json:"deliveryPolicy"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateSubscriptionDetails) String

func (m UpdateSubscriptionDetails) String() string

func (UpdateSubscriptionDetails) ValidateEnumValue

func (m UpdateSubscriptionDetails) 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 UpdateSubscriptionRequest

UpdateSubscriptionRequest wrapper for the UpdateSubscription operation

# See also

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

type UpdateSubscriptionRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to update.
    SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"`

    // The configuration details for updating the subscription.
    UpdateSubscriptionDetails `contributesTo:"body"`

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

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

    // 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 (UpdateSubscriptionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateSubscriptionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateSubscriptionRequest) RetryPolicy

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

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

func (UpdateSubscriptionRequest) String

func (request UpdateSubscriptionRequest) String() string

func (UpdateSubscriptionRequest) ValidateEnumValue

func (request UpdateSubscriptionRequest) 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 UpdateSubscriptionResponse

UpdateSubscriptionResponse wrapper for the UpdateSubscription operation

type UpdateSubscriptionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The UpdateSubscriptionDetails instance
    UpdateSubscriptionDetails `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (UpdateSubscriptionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateSubscriptionResponse) String

func (response UpdateSubscriptionResponse) String() string

type UpdateTopicRequest

UpdateTopicRequest wrapper for the UpdateTopic operation

# See also

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

type UpdateTopicRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to update.
    TopicId *string `mandatory:"true" contributesTo:"path" name:"topicId"`

    // TopicAttributes
    TopicAttributesDetails `contributesTo:"body"`

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

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

    // 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 (UpdateTopicRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateTopicRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateTopicRequest) RetryPolicy

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

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

func (UpdateTopicRequest) String

func (request UpdateTopicRequest) String() string

func (UpdateTopicRequest) ValidateEnumValue

func (request UpdateTopicRequest) 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 UpdateTopicResponse

UpdateTopicResponse wrapper for the UpdateTopic operation

type UpdateTopicResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The NotificationTopic instance
    NotificationTopic `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 optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (UpdateTopicResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateTopicResponse) String

func (response UpdateTopicResponse) String() string