...

Package demandsignal

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

Overview ▾

Index ▾

func GetListOccDemandSignalsSortByEnumStringValues() []string
func GetListOccDemandSignalsSortOrderEnumStringValues() []string
func GetOccDemandSignalLifecycleStateEnumStringValues() []string
func GetPatchInsertInstructionPositionEnumStringValues() []string
func GetPatchInsertMultipleInstructionPositionEnumStringValues() []string
func GetPatchInstructionOperationEnumStringValues() []string
func GetPatchMoveInstructionPositionEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
type ChangeOccDemandSignalCompartmentDetails
    func (m ChangeOccDemandSignalCompartmentDetails) String() string
    func (m ChangeOccDemandSignalCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeOccDemandSignalCompartmentRequest
    func (request ChangeOccDemandSignalCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeOccDemandSignalCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeOccDemandSignalCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeOccDemandSignalCompartmentRequest) String() string
    func (request ChangeOccDemandSignalCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeOccDemandSignalCompartmentResponse
    func (response ChangeOccDemandSignalCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeOccDemandSignalCompartmentResponse) String() string
type CreateOccDemandSignalDetails
    func (m CreateOccDemandSignalDetails) String() string
    func (m CreateOccDemandSignalDetails) ValidateEnumValue() (bool, error)
type CreateOccDemandSignalRequest
    func (request CreateOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateOccDemandSignalRequest) String() string
    func (request CreateOccDemandSignalRequest) ValidateEnumValue() (bool, error)
type CreateOccDemandSignalResponse
    func (response CreateOccDemandSignalResponse) HTTPResponse() *http.Response
    func (response CreateOccDemandSignalResponse) String() string
type DeleteOccDemandSignalRequest
    func (request DeleteOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteOccDemandSignalRequest) String() string
    func (request DeleteOccDemandSignalRequest) ValidateEnumValue() (bool, error)
type DeleteOccDemandSignalResponse
    func (response DeleteOccDemandSignalResponse) HTTPResponse() *http.Response
    func (response DeleteOccDemandSignalResponse) String() string
type GetOccDemandSignalRequest
    func (request GetOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
    func (request GetOccDemandSignalRequest) String() string
    func (request GetOccDemandSignalRequest) ValidateEnumValue() (bool, error)
type GetOccDemandSignalResponse
    func (response GetOccDemandSignalResponse) HTTPResponse() *http.Response
    func (response GetOccDemandSignalResponse) String() string
type ListOccDemandSignalsRequest
    func (request ListOccDemandSignalsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListOccDemandSignalsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListOccDemandSignalsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListOccDemandSignalsRequest) String() string
    func (request ListOccDemandSignalsRequest) ValidateEnumValue() (bool, error)
type ListOccDemandSignalsResponse
    func (response ListOccDemandSignalsResponse) HTTPResponse() *http.Response
    func (response ListOccDemandSignalsResponse) String() string
type ListOccDemandSignalsSortByEnum
    func GetListOccDemandSignalsSortByEnumValues() []ListOccDemandSignalsSortByEnum
    func GetMappingListOccDemandSignalsSortByEnum(val string) (ListOccDemandSignalsSortByEnum, bool)
type ListOccDemandSignalsSortOrderEnum
    func GetListOccDemandSignalsSortOrderEnumValues() []ListOccDemandSignalsSortOrderEnum
    func GetMappingListOccDemandSignalsSortOrderEnum(val string) (ListOccDemandSignalsSortOrderEnum, bool)
type OccDemandSignal
    func (m OccDemandSignal) String() string
    func (m OccDemandSignal) ValidateEnumValue() (bool, error)
type OccDemandSignalClient
    func NewOccDemandSignalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OccDemandSignalClient, err error)
    func NewOccDemandSignalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OccDemandSignalClient, err error)
    func (client OccDemandSignalClient) ChangeOccDemandSignalCompartment(ctx context.Context, request ChangeOccDemandSignalCompartmentRequest) (response ChangeOccDemandSignalCompartmentResponse, err error)
    func (client *OccDemandSignalClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client OccDemandSignalClient) CreateOccDemandSignal(ctx context.Context, request CreateOccDemandSignalRequest) (response CreateOccDemandSignalResponse, err error)
    func (client OccDemandSignalClient) DeleteOccDemandSignal(ctx context.Context, request DeleteOccDemandSignalRequest) (response DeleteOccDemandSignalResponse, err error)
    func (client OccDemandSignalClient) GetOccDemandSignal(ctx context.Context, request GetOccDemandSignalRequest) (response GetOccDemandSignalResponse, err error)
    func (client OccDemandSignalClient) ListOccDemandSignals(ctx context.Context, request ListOccDemandSignalsRequest) (response ListOccDemandSignalsResponse, err error)
    func (client OccDemandSignalClient) PatchOccDemandSignal(ctx context.Context, request PatchOccDemandSignalRequest) (response PatchOccDemandSignalResponse, err error)
    func (client *OccDemandSignalClient) SetRegion(region string)
    func (client OccDemandSignalClient) UpdateOccDemandSignal(ctx context.Context, request UpdateOccDemandSignalRequest) (response UpdateOccDemandSignalResponse, err error)
type OccDemandSignalCollection
    func (m OccDemandSignalCollection) String() string
    func (m OccDemandSignalCollection) ValidateEnumValue() (bool, error)
type OccDemandSignalData
    func (m OccDemandSignalData) String() string
    func (m OccDemandSignalData) ValidateEnumValue() (bool, error)
type OccDemandSignalLifecycleStateEnum
    func GetMappingOccDemandSignalLifecycleStateEnum(val string) (OccDemandSignalLifecycleStateEnum, bool)
    func GetOccDemandSignalLifecycleStateEnumValues() []OccDemandSignalLifecycleStateEnum
type OccDemandSignalSummary
    func (m OccDemandSignalSummary) String() string
    func (m OccDemandSignalSummary) ValidateEnumValue() (bool, error)
type OccDemandSignalValue
    func (m OccDemandSignalValue) String() string
    func (m OccDemandSignalValue) ValidateEnumValue() (bool, error)
type PatchInsertInstruction
    func (m PatchInsertInstruction) GetSelection() *string
    func (m PatchInsertInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchInsertInstruction) String() string
    func (m PatchInsertInstruction) ValidateEnumValue() (bool, error)
type PatchInsertInstructionPositionEnum
    func GetMappingPatchInsertInstructionPositionEnum(val string) (PatchInsertInstructionPositionEnum, bool)
    func GetPatchInsertInstructionPositionEnumValues() []PatchInsertInstructionPositionEnum
type PatchInsertMultipleInstruction
    func (m PatchInsertMultipleInstruction) GetSelection() *string
    func (m PatchInsertMultipleInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchInsertMultipleInstruction) String() string
    func (m PatchInsertMultipleInstruction) ValidateEnumValue() (bool, error)
type PatchInsertMultipleInstructionPositionEnum
    func GetMappingPatchInsertMultipleInstructionPositionEnum(val string) (PatchInsertMultipleInstructionPositionEnum, bool)
    func GetPatchInsertMultipleInstructionPositionEnumValues() []PatchInsertMultipleInstructionPositionEnum
type PatchInstruction
type PatchInstructionOperationEnum
    func GetMappingPatchInstructionOperationEnum(val string) (PatchInstructionOperationEnum, bool)
    func GetPatchInstructionOperationEnumValues() []PatchInstructionOperationEnum
type PatchMergeInstruction
    func (m PatchMergeInstruction) GetSelection() *string
    func (m PatchMergeInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchMergeInstruction) String() string
    func (m PatchMergeInstruction) ValidateEnumValue() (bool, error)
type PatchMoveInstruction
    func (m PatchMoveInstruction) GetSelection() *string
    func (m PatchMoveInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchMoveInstruction) String() string
    func (m PatchMoveInstruction) ValidateEnumValue() (bool, error)
type PatchMoveInstructionPositionEnum
    func GetMappingPatchMoveInstructionPositionEnum(val string) (PatchMoveInstructionPositionEnum, bool)
    func GetPatchMoveInstructionPositionEnumValues() []PatchMoveInstructionPositionEnum
type PatchOccDemandSignalDetails
    func (m PatchOccDemandSignalDetails) String() string
    func (m *PatchOccDemandSignalDetails) UnmarshalJSON(data []byte) (e error)
    func (m PatchOccDemandSignalDetails) ValidateEnumValue() (bool, error)
type PatchOccDemandSignalRequest
    func (request PatchOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request PatchOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request PatchOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
    func (request PatchOccDemandSignalRequest) String() string
    func (request PatchOccDemandSignalRequest) ValidateEnumValue() (bool, error)
type PatchOccDemandSignalResponse
    func (response PatchOccDemandSignalResponse) HTTPResponse() *http.Response
    func (response PatchOccDemandSignalResponse) String() string
type PatchProhibitInstruction
    func (m PatchProhibitInstruction) GetSelection() *string
    func (m PatchProhibitInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchProhibitInstruction) String() string
    func (m PatchProhibitInstruction) ValidateEnumValue() (bool, error)
type PatchRemoveInstruction
    func (m PatchRemoveInstruction) GetSelection() *string
    func (m PatchRemoveInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchRemoveInstruction) String() string
    func (m PatchRemoveInstruction) ValidateEnumValue() (bool, error)
type PatchReplaceInstruction
    func (m PatchReplaceInstruction) GetSelection() *string
    func (m PatchReplaceInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchReplaceInstruction) String() string
    func (m PatchReplaceInstruction) ValidateEnumValue() (bool, error)
type PatchRequireInstruction
    func (m PatchRequireInstruction) GetSelection() *string
    func (m PatchRequireInstruction) MarshalJSON() (buff []byte, e error)
    func (m PatchRequireInstruction) String() string
    func (m PatchRequireInstruction) ValidateEnumValue() (bool, error)
type SortOrderEnum
    func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
    func GetSortOrderEnumValues() []SortOrderEnum
type UpdateOccDemandSignalDetails
    func (m UpdateOccDemandSignalDetails) String() string
    func (m UpdateOccDemandSignalDetails) ValidateEnumValue() (bool, error)
type UpdateOccDemandSignalRequest
    func (request UpdateOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateOccDemandSignalRequest) String() string
    func (request UpdateOccDemandSignalRequest) ValidateEnumValue() (bool, error)
type UpdateOccDemandSignalResponse
    func (response UpdateOccDemandSignalResponse) HTTPResponse() *http.Response
    func (response UpdateOccDemandSignalResponse) String() string

Package files

change_occ_demand_signal_compartment_details.go change_occ_demand_signal_compartment_request_response.go create_occ_demand_signal_details.go create_occ_demand_signal_request_response.go delete_occ_demand_signal_request_response.go demandsignal_occdemandsignal_client.go get_occ_demand_signal_request_response.go list_occ_demand_signals_request_response.go occ_demand_signal.go occ_demand_signal_collection.go occ_demand_signal_data.go occ_demand_signal_summary.go occ_demand_signal_value.go patch_insert_instruction.go patch_insert_multiple_instruction.go patch_instruction.go patch_merge_instruction.go patch_move_instruction.go patch_occ_demand_signal_details.go patch_occ_demand_signal_request_response.go patch_prohibit_instruction.go patch_remove_instruction.go patch_replace_instruction.go patch_require_instruction.go sort_order.go update_occ_demand_signal_details.go update_occ_demand_signal_request_response.go

func GetListOccDemandSignalsSortByEnumStringValues

func GetListOccDemandSignalsSortByEnumStringValues() []string

GetListOccDemandSignalsSortByEnumStringValues Enumerates the set of values in String for ListOccDemandSignalsSortByEnum

func GetListOccDemandSignalsSortOrderEnumStringValues

func GetListOccDemandSignalsSortOrderEnumStringValues() []string

GetListOccDemandSignalsSortOrderEnumStringValues Enumerates the set of values in String for ListOccDemandSignalsSortOrderEnum

func GetOccDemandSignalLifecycleStateEnumStringValues

func GetOccDemandSignalLifecycleStateEnumStringValues() []string

GetOccDemandSignalLifecycleStateEnumStringValues Enumerates the set of values in String for OccDemandSignalLifecycleStateEnum

func GetPatchInsertInstructionPositionEnumStringValues

func GetPatchInsertInstructionPositionEnumStringValues() []string

GetPatchInsertInstructionPositionEnumStringValues Enumerates the set of values in String for PatchInsertInstructionPositionEnum

func GetPatchInsertMultipleInstructionPositionEnumStringValues

func GetPatchInsertMultipleInstructionPositionEnumStringValues() []string

GetPatchInsertMultipleInstructionPositionEnumStringValues Enumerates the set of values in String for PatchInsertMultipleInstructionPositionEnum

func GetPatchInstructionOperationEnumStringValues

func GetPatchInstructionOperationEnumStringValues() []string

GetPatchInstructionOperationEnumStringValues Enumerates the set of values in String for PatchInstructionOperationEnum

func GetPatchMoveInstructionPositionEnumStringValues

func GetPatchMoveInstructionPositionEnumStringValues() []string

GetPatchMoveInstructionPositionEnumStringValues Enumerates the set of values in String for PatchMoveInstructionPositionEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

type ChangeOccDemandSignalCompartmentDetails

ChangeOccDemandSignalCompartmentDetails The configuration details for the move operation.

type ChangeOccDemandSignalCompartmentDetails struct {

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

func (ChangeOccDemandSignalCompartmentDetails) String

func (m ChangeOccDemandSignalCompartmentDetails) String() string

func (ChangeOccDemandSignalCompartmentDetails) ValidateEnumValue

func (m ChangeOccDemandSignalCompartmentDetails) 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 ChangeOccDemandSignalCompartmentRequest

ChangeOccDemandSignalCompartmentRequest wrapper for the ChangeOccDemandSignalCompartment operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/ChangeOccDemandSignalCompartment.go.html to see an example of how to use ChangeOccDemandSignalCompartmentRequest.

type ChangeOccDemandSignalCompartmentRequest struct {

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

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

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

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (ChangeOccDemandSignalCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeOccDemandSignalCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeOccDemandSignalCompartmentRequest) RetryPolicy

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

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

func (ChangeOccDemandSignalCompartmentRequest) String

func (request ChangeOccDemandSignalCompartmentRequest) String() string

func (ChangeOccDemandSignalCompartmentRequest) ValidateEnumValue

func (request ChangeOccDemandSignalCompartmentRequest) 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 ChangeOccDemandSignalCompartmentResponse

ChangeOccDemandSignalCompartmentResponse wrapper for the ChangeOccDemandSignalCompartment operation

type ChangeOccDemandSignalCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (ChangeOccDemandSignalCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeOccDemandSignalCompartmentResponse) String

func (response ChangeOccDemandSignalCompartmentResponse) String() string

type CreateOccDemandSignalDetails

CreateOccDemandSignalDetails The data to create a OccDemandSignal.

type CreateOccDemandSignalDetails struct {

    // The OccDemandSignal data.
    OccDemandSignals []OccDemandSignalData `mandatory:"true" json:"occDemandSignals"`

    // Indicator of whether to share the data with Oracle.
    IsActive *bool `mandatory:"true" json:"isActive"`

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

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // 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/iaas/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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateOccDemandSignalDetails) String

func (m CreateOccDemandSignalDetails) String() string

func (CreateOccDemandSignalDetails) ValidateEnumValue

func (m CreateOccDemandSignalDetails) 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 CreateOccDemandSignalRequest

CreateOccDemandSignalRequest wrapper for the CreateOccDemandSignal operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/CreateOccDemandSignal.go.html to see an example of how to use CreateOccDemandSignalRequest.

type CreateOccDemandSignalRequest struct {

    // Details for the new OccDemandSignal.
    CreateOccDemandSignalDetails `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 running that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and removed from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (CreateOccDemandSignalRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateOccDemandSignalRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateOccDemandSignalRequest) RetryPolicy

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

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

func (CreateOccDemandSignalRequest) String

func (request CreateOccDemandSignalRequest) String() string

func (CreateOccDemandSignalRequest) ValidateEnumValue

func (request CreateOccDemandSignalRequest) 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 CreateOccDemandSignalResponse

CreateOccDemandSignalResponse wrapper for the CreateOccDemandSignal operation

type CreateOccDemandSignalResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

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

func (CreateOccDemandSignalResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateOccDemandSignalResponse) String

func (response CreateOccDemandSignalResponse) String() string

type DeleteOccDemandSignalRequest

DeleteOccDemandSignalRequest wrapper for the DeleteOccDemandSignal operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/DeleteOccDemandSignal.go.html to see an example of how to use DeleteOccDemandSignalRequest.

type DeleteOccDemandSignalRequest struct {

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

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

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (DeleteOccDemandSignalRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteOccDemandSignalRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteOccDemandSignalRequest) RetryPolicy

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

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

func (DeleteOccDemandSignalRequest) String

func (request DeleteOccDemandSignalRequest) String() string

func (DeleteOccDemandSignalRequest) ValidateEnumValue

func (request DeleteOccDemandSignalRequest) 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 DeleteOccDemandSignalResponse

DeleteOccDemandSignalResponse wrapper for the DeleteOccDemandSignal operation

type DeleteOccDemandSignalResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (DeleteOccDemandSignalResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteOccDemandSignalResponse) String

func (response DeleteOccDemandSignalResponse) String() string

type GetOccDemandSignalRequest

GetOccDemandSignalRequest wrapper for the GetOccDemandSignal operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/GetOccDemandSignal.go.html to see an example of how to use GetOccDemandSignalRequest.

type GetOccDemandSignalRequest struct {

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

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (GetOccDemandSignalRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetOccDemandSignalRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetOccDemandSignalRequest) RetryPolicy

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

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

func (GetOccDemandSignalRequest) String

func (request GetOccDemandSignalRequest) String() string

func (GetOccDemandSignalRequest) ValidateEnumValue

func (request GetOccDemandSignalRequest) 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 GetOccDemandSignalResponse

GetOccDemandSignalResponse wrapper for the GetOccDemandSignal operation

type GetOccDemandSignalResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (GetOccDemandSignalResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetOccDemandSignalResponse) String

func (response GetOccDemandSignalResponse) String() string

type ListOccDemandSignalsRequest

ListOccDemandSignalsRequest wrapper for the ListOccDemandSignals operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/ListOccDemandSignals.go.html to see an example of how to use ListOccDemandSignalsRequest.

type ListOccDemandSignalsRequest struct {

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

    // A filter to return only resources that match the given lifecycle state. The
    // state value is case-insensitive.
    LifecycleState OccDemandSignalLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal.
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

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

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

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

    // The field to sort by. You can provide only one sort order. Default order for `timeCreated`
    // is descending. Default order for `displayName` is ascending.
    SortBy ListOccDemandSignalsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (ListOccDemandSignalsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListOccDemandSignalsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListOccDemandSignalsRequest) RetryPolicy

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

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

func (ListOccDemandSignalsRequest) String

func (request ListOccDemandSignalsRequest) String() string

func (ListOccDemandSignalsRequest) ValidateEnumValue

func (request ListOccDemandSignalsRequest) 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 ListOccDemandSignalsResponse

ListOccDemandSignalsResponse wrapper for the ListOccDemandSignals operation

type ListOccDemandSignalsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of OccDemandSignalCollection instances
    OccDemandSignalCollection `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 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"`
}

func (ListOccDemandSignalsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListOccDemandSignalsResponse) String

func (response ListOccDemandSignalsResponse) String() string

type ListOccDemandSignalsSortByEnum

ListOccDemandSignalsSortByEnum Enum with underlying type: string

type ListOccDemandSignalsSortByEnum string

Set of constants representing the allowable values for ListOccDemandSignalsSortByEnum

const (
    ListOccDemandSignalsSortByTimecreated ListOccDemandSignalsSortByEnum = "timeCreated"
    ListOccDemandSignalsSortByDisplayname ListOccDemandSignalsSortByEnum = "displayName"
)

func GetListOccDemandSignalsSortByEnumValues

func GetListOccDemandSignalsSortByEnumValues() []ListOccDemandSignalsSortByEnum

GetListOccDemandSignalsSortByEnumValues Enumerates the set of values for ListOccDemandSignalsSortByEnum

func GetMappingListOccDemandSignalsSortByEnum

func GetMappingListOccDemandSignalsSortByEnum(val string) (ListOccDemandSignalsSortByEnum, bool)

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

type ListOccDemandSignalsSortOrderEnum

ListOccDemandSignalsSortOrderEnum Enum with underlying type: string

type ListOccDemandSignalsSortOrderEnum string

Set of constants representing the allowable values for ListOccDemandSignalsSortOrderEnum

const (
    ListOccDemandSignalsSortOrderAsc  ListOccDemandSignalsSortOrderEnum = "ASC"
    ListOccDemandSignalsSortOrderDesc ListOccDemandSignalsSortOrderEnum = "DESC"
)

func GetListOccDemandSignalsSortOrderEnumValues

func GetListOccDemandSignalsSortOrderEnumValues() []ListOccDemandSignalsSortOrderEnum

GetListOccDemandSignalsSortOrderEnumValues Enumerates the set of values for ListOccDemandSignalsSortOrderEnum

func GetMappingListOccDemandSignalsSortOrderEnum

func GetMappingListOccDemandSignalsSortOrderEnum(val string) (ListOccDemandSignalsSortOrderEnum, bool)

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

type OccDemandSignal

OccDemandSignal An OccDemandSignal is a forecast created for different Resource Types. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm).

type OccDemandSignal struct {

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

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

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The OccDemandSignal data.
    OccDemandSignals []OccDemandSignalData `mandatory:"true" json:"occDemandSignals"`

    // Indicator of whether to share the data with Oracle.
    IsActive *bool `mandatory:"true" json:"isActive"`

    // The current state of the OccDemandSignal.
    LifecycleState OccDemandSignalLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The date and time the OccDemandSignal was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"true" 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // The date and time the OccDemandSignal was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2016-08-25T21:10:29.600Z`
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message that describes the current state of the OccDemandSignal in more detail. For example,
    // can be used to provide actionable information for a resource in the Failed state.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // System tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

func (OccDemandSignal) String

func (m OccDemandSignal) String() string

func (OccDemandSignal) ValidateEnumValue

func (m OccDemandSignal) 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 OccDemandSignalClient

OccDemandSignalClient a client for OccDemandSignal

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

func NewOccDemandSignalClientWithConfigurationProvider

func NewOccDemandSignalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OccDemandSignalClient, err error)

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

func NewOccDemandSignalClientWithOboToken

func NewOccDemandSignalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OccDemandSignalClient, err error)

NewOccDemandSignalClientWithOboToken Creates a new default OccDemandSignal 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 (OccDemandSignalClient) ChangeOccDemandSignalCompartment

func (client OccDemandSignalClient) ChangeOccDemandSignalCompartment(ctx context.Context, request ChangeOccDemandSignalCompartmentRequest) (response ChangeOccDemandSignalCompartmentResponse, err error)

ChangeOccDemandSignalCompartment Moves a OccDemandSignal 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).

See also

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

func (*OccDemandSignalClient) ConfigurationProvider

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

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

func (OccDemandSignalClient) CreateOccDemandSignal

func (client OccDemandSignalClient) CreateOccDemandSignal(ctx context.Context, request CreateOccDemandSignalRequest) (response CreateOccDemandSignalResponse, err error)

CreateOccDemandSignal Creates a OccDemandSignal.

See also

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

func (OccDemandSignalClient) DeleteOccDemandSignal

func (client OccDemandSignalClient) DeleteOccDemandSignal(ctx context.Context, request DeleteOccDemandSignalRequest) (response DeleteOccDemandSignalResponse, err error)

DeleteOccDemandSignal Deletes a OccDemandSignal.

See also

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

func (OccDemandSignalClient) GetOccDemandSignal

func (client OccDemandSignalClient) GetOccDemandSignal(ctx context.Context, request GetOccDemandSignalRequest) (response GetOccDemandSignalResponse, err error)

GetOccDemandSignal Gets information about a OccDemandSignal.

See also

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

func (OccDemandSignalClient) ListOccDemandSignals

func (client OccDemandSignalClient) ListOccDemandSignals(ctx context.Context, request ListOccDemandSignalsRequest) (response ListOccDemandSignalsResponse, err error)

ListOccDemandSignals Gets a list of OccDemandSignals.

See also

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

func (OccDemandSignalClient) PatchOccDemandSignal

func (client OccDemandSignalClient) PatchOccDemandSignal(ctx context.Context, request PatchOccDemandSignalRequest) (response PatchOccDemandSignalResponse, err error)

PatchOccDemandSignal Updates the data of an OccDemandSignal.

See also

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

func (*OccDemandSignalClient) SetRegion

func (client *OccDemandSignalClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (OccDemandSignalClient) UpdateOccDemandSignal

func (client OccDemandSignalClient) UpdateOccDemandSignal(ctx context.Context, request UpdateOccDemandSignalRequest) (response UpdateOccDemandSignalResponse, err error)

UpdateOccDemandSignal Updates a OccDemandSignal.

See also

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

type OccDemandSignalCollection

OccDemandSignalCollection Results of a occDemandSignal search. Contains both OccDemandSignalSummary items and other information, such as metadata.

type OccDemandSignalCollection struct {

    // List of occDemandSignals.
    Items []OccDemandSignalSummary `mandatory:"true" json:"items"`
}

func (OccDemandSignalCollection) String

func (m OccDemandSignalCollection) String() string

func (OccDemandSignalCollection) ValidateEnumValue

func (m OccDemandSignalCollection) 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 OccDemandSignalData

OccDemandSignalData The Data Object For Demand Signal.

type OccDemandSignalData struct {

    // The name of the resource for the data.
    ResourceType *string `mandatory:"true" json:"resourceType"`

    // The units of the data.
    Units *string `mandatory:"true" json:"units"`

    // The values of forecast.
    Values []OccDemandSignalValue `mandatory:"true" json:"values"`
}

func (OccDemandSignalData) String

func (m OccDemandSignalData) String() string

func (OccDemandSignalData) ValidateEnumValue

func (m OccDemandSignalData) 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 OccDemandSignalLifecycleStateEnum

OccDemandSignalLifecycleStateEnum Enum with underlying type: string

type OccDemandSignalLifecycleStateEnum string

Set of constants representing the allowable values for OccDemandSignalLifecycleStateEnum

const (
    OccDemandSignalLifecycleStateCreating OccDemandSignalLifecycleStateEnum = "CREATING"
    OccDemandSignalLifecycleStateUpdating OccDemandSignalLifecycleStateEnum = "UPDATING"
    OccDemandSignalLifecycleStateActive   OccDemandSignalLifecycleStateEnum = "ACTIVE"
    OccDemandSignalLifecycleStateDeleting OccDemandSignalLifecycleStateEnum = "DELETING"
    OccDemandSignalLifecycleStateDeleted  OccDemandSignalLifecycleStateEnum = "DELETED"
    OccDemandSignalLifecycleStateFailed   OccDemandSignalLifecycleStateEnum = "FAILED"
)

func GetMappingOccDemandSignalLifecycleStateEnum

func GetMappingOccDemandSignalLifecycleStateEnum(val string) (OccDemandSignalLifecycleStateEnum, bool)

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

func GetOccDemandSignalLifecycleStateEnumValues

func GetOccDemandSignalLifecycleStateEnumValues() []OccDemandSignalLifecycleStateEnum

GetOccDemandSignalLifecycleStateEnumValues Enumerates the set of values for OccDemandSignalLifecycleStateEnum

type OccDemandSignalSummary

OccDemandSignalSummary Summary information about a OccDemandSignal.

type OccDemandSignalSummary struct {

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

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"true" json:"displayName"`

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

    // Indicator of whether to share the data with Oracle.
    IsActive *bool `mandatory:"true" json:"isActive"`

    // The date and time the OccDemandSignal was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the OccDemandSignal.
    LifecycleState OccDemandSignalLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"true" 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"`

    // The date and time the OccDemandSignal was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
    // Example: `2016-08-25T21:10:29.600Z`
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message that describes the current state of the OccDemandSignal in more detail. For example,
    // can be used to provide actionable information for a resource in the Failed state.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // System tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

func (OccDemandSignalSummary) String

func (m OccDemandSignalSummary) String() string

func (OccDemandSignalSummary) ValidateEnumValue

func (m OccDemandSignalSummary) 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 OccDemandSignalValue

OccDemandSignalValue The Value of Demand Signal for particular month.

type OccDemandSignalValue struct {

    // The date of the Demand Signal Value.
    TimeExpected *common.SDKTime `mandatory:"true" json:"timeExpected"`

    // The Demand Signal Value.
    Value *float32 `mandatory:"true" json:"value"`

    // Space provided for users to make comments regarding the value.
    Comments *string `mandatory:"false" json:"comments"`
}

func (OccDemandSignalValue) String

func (m OccDemandSignalValue) String() string

func (OccDemandSignalValue) ValidateEnumValue

func (m OccDemandSignalValue) 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 PatchInsertInstruction

PatchInsertInstruction An operation that inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure.

type PatchInsertInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A value to be inserted into the target.
    Value *interface{} `mandatory:"true" json:"value"`

    // A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`.
    SelectedItem *string `mandatory:"false" json:"selectedItem"`

    // Where to insert the value, relative to the first item matched by `selectedItem`.
    // If `selectedItem` is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position.
    // If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position.
    Position PatchInsertInstructionPositionEnum `mandatory:"false" json:"position,omitempty"`
}

func (PatchInsertInstruction) GetSelection

func (m PatchInsertInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchInsertInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchInsertInstruction) String

func (m PatchInsertInstruction) String() string

func (PatchInsertInstruction) ValidateEnumValue

func (m PatchInsertInstruction) 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 PatchInsertInstructionPositionEnum

PatchInsertInstructionPositionEnum Enum with underlying type: string

type PatchInsertInstructionPositionEnum string

Set of constants representing the allowable values for PatchInsertInstructionPositionEnum

const (
    PatchInsertInstructionPositionBefore PatchInsertInstructionPositionEnum = "BEFORE"
    PatchInsertInstructionPositionAfter  PatchInsertInstructionPositionEnum = "AFTER"
)

func GetMappingPatchInsertInstructionPositionEnum

func GetMappingPatchInsertInstructionPositionEnum(val string) (PatchInsertInstructionPositionEnum, bool)

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

func GetPatchInsertInstructionPositionEnumValues

func GetPatchInsertInstructionPositionEnumValues() []PatchInsertInstructionPositionEnum

GetPatchInsertInstructionPositionEnumValues Enumerates the set of values for PatchInsertInstructionPositionEnum

type PatchInsertMultipleInstruction

PatchInsertMultipleInstruction An operation that inserts multiple consecutive values into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure.

type PatchInsertMultipleInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A list of consecutive values to be inserted into the target.
    Values []interface{} `mandatory:"true" json:"values"`

    // A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`.
    SelectedItem *string `mandatory:"false" json:"selectedItem"`

    // Where to insert the values, relative to the first item matched by `selectedItem`.
    // If `selectedItem` is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position.
    // If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position.
    Position PatchInsertMultipleInstructionPositionEnum `mandatory:"false" json:"position,omitempty"`
}

func (PatchInsertMultipleInstruction) GetSelection

func (m PatchInsertMultipleInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchInsertMultipleInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchInsertMultipleInstruction) String

func (m PatchInsertMultipleInstruction) String() string

func (PatchInsertMultipleInstruction) ValidateEnumValue

func (m PatchInsertMultipleInstruction) 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 PatchInsertMultipleInstructionPositionEnum

PatchInsertMultipleInstructionPositionEnum Enum with underlying type: string

type PatchInsertMultipleInstructionPositionEnum string

Set of constants representing the allowable values for PatchInsertMultipleInstructionPositionEnum

const (
    PatchInsertMultipleInstructionPositionBefore PatchInsertMultipleInstructionPositionEnum = "BEFORE"
    PatchInsertMultipleInstructionPositionAfter  PatchInsertMultipleInstructionPositionEnum = "AFTER"
)

func GetMappingPatchInsertMultipleInstructionPositionEnum

func GetMappingPatchInsertMultipleInstructionPositionEnum(val string) (PatchInsertMultipleInstructionPositionEnum, bool)

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

func GetPatchInsertMultipleInstructionPositionEnumValues

func GetPatchInsertMultipleInstructionPositionEnumValues() []PatchInsertMultipleInstructionPositionEnum

GetPatchInsertMultipleInstructionPositionEnumValues Enumerates the set of values for PatchInsertMultipleInstructionPositionEnum

type PatchInstruction

PatchInstruction A single instruction to be included as part of Patch request content.

type PatchInstruction interface {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    GetSelection() *string
}

type PatchInstructionOperationEnum

PatchInstructionOperationEnum Enum with underlying type: string

type PatchInstructionOperationEnum string

Set of constants representing the allowable values for PatchInstructionOperationEnum

const (
    PatchInstructionOperationRequire  PatchInstructionOperationEnum = "REQUIRE"
    PatchInstructionOperationProhibit PatchInstructionOperationEnum = "PROHIBIT"
    PatchInstructionOperationReplace  PatchInstructionOperationEnum = "REPLACE"
    PatchInstructionOperationInsert   PatchInstructionOperationEnum = "INSERT"
    PatchInstructionOperationRemove   PatchInstructionOperationEnum = "REMOVE"
    PatchInstructionOperationMove     PatchInstructionOperationEnum = "MOVE"
    PatchInstructionOperationMerge    PatchInstructionOperationEnum = "MERGE"
)

func GetMappingPatchInstructionOperationEnum

func GetMappingPatchInstructionOperationEnum(val string) (PatchInstructionOperationEnum, bool)

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

func GetPatchInstructionOperationEnumValues

func GetPatchInstructionOperationEnumValues() []PatchInstructionOperationEnum

GetPatchInstructionOperationEnumValues Enumerates the set of values for PatchInstructionOperationEnum

type PatchMergeInstruction

PatchMergeInstruction An operation that recursively updates items of the selection, or adding the value if the selection is empty. If the value is not an object, it is used directly, otherwise each key-value member is used to create or update a member of the same name in the target and the same process is applied recursively for each object-typed value (similar to RFC 7396 (https://tools.ietf.org/html/rfc7396#section-2) JSON Merge Patch, except that null values are copied rather than transformed into deletions). NOT_FOUND exceptions are handled by creating the implied containing structure. To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth.

type PatchMergeInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A value to be merged into the target.
    Value *interface{} `mandatory:"false" json:"value"`
}

func (PatchMergeInstruction) GetSelection

func (m PatchMergeInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchMergeInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchMergeInstruction) String

func (m PatchMergeInstruction) String() string

func (PatchMergeInstruction) ValidateEnumValue

func (m PatchMergeInstruction) 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 PatchMoveInstruction

PatchMoveInstruction An operation that "puts" values from elsewhere in the target, functionally equivalent to a single add and then a remove. The first item of the selection is replaced, or created if the selection is empty. NOT_FOUND exceptions in the selection are handled by creating the implied containing structure. This operation fails if the `from` selection yields any exceptions, or if an item is moved to any of its descendants.

type PatchMoveInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // The selection that is to be moved, with the same format and semantics as `selection`.
    From *string `mandatory:"true" json:"from"`

    // Where to insert the value in an array, relative to the first item in the selection.
    // If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position.
    // If the first item in the selection is not the child of an array, then this field has no effect.
    Position PatchMoveInstructionPositionEnum `mandatory:"false" json:"position,omitempty"`
}

func (PatchMoveInstruction) GetSelection

func (m PatchMoveInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchMoveInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchMoveInstruction) String

func (m PatchMoveInstruction) String() string

func (PatchMoveInstruction) ValidateEnumValue

func (m PatchMoveInstruction) 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 PatchMoveInstructionPositionEnum

PatchMoveInstructionPositionEnum Enum with underlying type: string

type PatchMoveInstructionPositionEnum string

Set of constants representing the allowable values for PatchMoveInstructionPositionEnum

const (
    PatchMoveInstructionPositionAt     PatchMoveInstructionPositionEnum = "AT"
    PatchMoveInstructionPositionBefore PatchMoveInstructionPositionEnum = "BEFORE"
    PatchMoveInstructionPositionAfter  PatchMoveInstructionPositionEnum = "AFTER"
)

func GetMappingPatchMoveInstructionPositionEnum

func GetMappingPatchMoveInstructionPositionEnum(val string) (PatchMoveInstructionPositionEnum, bool)

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

func GetPatchMoveInstructionPositionEnumValues

func GetPatchMoveInstructionPositionEnumValues() []PatchMoveInstructionPositionEnum

GetPatchMoveInstructionPositionEnumValues Enumerates the set of values for PatchMoveInstructionPositionEnum

type PatchOccDemandSignalDetails

PatchOccDemandSignalDetails Demand Signal details to patch.

type PatchOccDemandSignalDetails struct {

    // List of patch instructions.
    Items []PatchInstruction `mandatory:"false" json:"items"`
}

func (PatchOccDemandSignalDetails) String

func (m PatchOccDemandSignalDetails) String() string

func (*PatchOccDemandSignalDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (PatchOccDemandSignalDetails) ValidateEnumValue

func (m PatchOccDemandSignalDetails) 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 PatchOccDemandSignalRequest

PatchOccDemandSignalRequest wrapper for the PatchOccDemandSignal operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/PatchOccDemandSignal.go.html to see an example of how to use PatchOccDemandSignalRequest.

type PatchOccDemandSignalRequest struct {

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

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

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

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (PatchOccDemandSignalRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (PatchOccDemandSignalRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (PatchOccDemandSignalRequest) RetryPolicy

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

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

func (PatchOccDemandSignalRequest) String

func (request PatchOccDemandSignalRequest) String() string

func (PatchOccDemandSignalRequest) ValidateEnumValue

func (request PatchOccDemandSignalRequest) 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 PatchOccDemandSignalResponse

PatchOccDemandSignalResponse wrapper for the PatchOccDemandSignal operation

type PatchOccDemandSignalResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

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

func (PatchOccDemandSignalResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (PatchOccDemandSignalResponse) String

func (response PatchOccDemandSignalResponse) String() string

type PatchProhibitInstruction

PatchProhibitInstruction A precondition operation that requires a selection to be empty, or optionally to be non-empty but include no item with a specified value (useful for asserting that a value does not exist before attempting to create it, avoiding accidental update). It fails if value is provided and the selection includes an item matching it, or if value is not provided and the selection is not empty, but ignores NOT_FOUND exceptions.

type PatchProhibitInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A value to be compared against each item of the selection.
    // If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation.
    // Otherwise, it matches any item to which it is equal according to the rules of JSON Schema (https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3).
    Value *interface{} `mandatory:"false" json:"value"`
}

func (PatchProhibitInstruction) GetSelection

func (m PatchProhibitInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchProhibitInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchProhibitInstruction) String

func (m PatchProhibitInstruction) String() string

func (PatchProhibitInstruction) ValidateEnumValue

func (m PatchProhibitInstruction) 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 PatchRemoveInstruction

PatchRemoveInstruction An operation that deletes items, ignoring NOT_FOUND exceptions. To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth.

type PatchRemoveInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`
}

func (PatchRemoveInstruction) GetSelection

func (m PatchRemoveInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchRemoveInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchRemoveInstruction) String

func (m PatchRemoveInstruction) String() string

func (PatchRemoveInstruction) ValidateEnumValue

func (m PatchRemoveInstruction) 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 PatchReplaceInstruction

PatchReplaceInstruction An operation that "puts" a value, replacing every item of the selection with it, or creating it if the selection is empty. NOT_FOUND exceptions are handled by creating the implied containing structure (but note that this may put the target in an invalid state, which can be prevented by use of precondition operations). To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth.

type PatchReplaceInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A value to be added into the target.
    Value *interface{} `mandatory:"true" json:"value"`
}

func (PatchReplaceInstruction) GetSelection

func (m PatchReplaceInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchReplaceInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchReplaceInstruction) String

func (m PatchReplaceInstruction) String() string

func (PatchReplaceInstruction) ValidateEnumValue

func (m PatchReplaceInstruction) 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 PatchRequireInstruction

PatchRequireInstruction A precondition operation that requires a selection to be non-empty, and optionally to include an item with a specified value (useful for asserting that a value exists before attempting to update it, avoiding accidental creation). It fails if the selection is empty, or if value is provided and no item of the selection matches it.

type PatchRequireInstruction struct {

    // The set of values to which the operation applies as a JMESPath expression (https://jmespath.org/specification.html) for evaluation against the context resource.
    // An operation fails if the selection yields an exception, except as otherwise specified.
    // Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
    Selection *string `mandatory:"true" json:"selection"`

    // A value to be compared against each item of the selection.
    // If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation.
    // Otherwise, it matches any item to which it is equal according to the rules of JSON Schema (https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3).
    Value *interface{} `mandatory:"false" json:"value"`
}

func (PatchRequireInstruction) GetSelection

func (m PatchRequireInstruction) GetSelection() *string

GetSelection returns Selection

func (PatchRequireInstruction) MarshalJSON

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

MarshalJSON marshals to json representation

func (PatchRequireInstruction) String

func (m PatchRequireInstruction) String() string

func (PatchRequireInstruction) ValidateEnumValue

func (m PatchRequireInstruction) 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 SortOrderEnum

SortOrderEnum Enum with underlying type: string

type SortOrderEnum string

Set of constants representing the allowable values for SortOrderEnum

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

func GetMappingSortOrderEnum

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

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

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type UpdateOccDemandSignalDetails

UpdateOccDemandSignalDetails The data to update a OccDemandSignal.

type UpdateOccDemandSignalDetails struct {

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Indicator of whether to share the data with Oracle.
    IsActive *bool `mandatory:"false" json:"isActive"`

    // 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/iaas/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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateOccDemandSignalDetails) String

func (m UpdateOccDemandSignalDetails) String() string

func (UpdateOccDemandSignalDetails) ValidateEnumValue

func (m UpdateOccDemandSignalDetails) 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 UpdateOccDemandSignalRequest

UpdateOccDemandSignalRequest wrapper for the UpdateOccDemandSignal operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.68.0/demandsignal/UpdateOccDemandSignal.go.html to see an example of how to use UpdateOccDemandSignalRequest.

type UpdateOccDemandSignalRequest struct {

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

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

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

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (UpdateOccDemandSignalRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateOccDemandSignalRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateOccDemandSignalRequest) RetryPolicy

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

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

func (UpdateOccDemandSignalRequest) String

func (request UpdateOccDemandSignalRequest) String() string

func (UpdateOccDemandSignalRequest) ValidateEnumValue

func (request UpdateOccDemandSignalRequest) 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 UpdateOccDemandSignalResponse

UpdateOccDemandSignalResponse wrapper for the UpdateOccDemandSignal operation

type UpdateOccDemandSignalResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

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

func (UpdateOccDemandSignalResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateOccDemandSignalResponse) String

func (response UpdateOccDemandSignalResponse) String() string