...

Package demandsignal

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

Overview ▾

Index ▾

func GetBaseResourceConfigurationResourceEnumStringValues() []string
func GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string
func GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string
func GetListOccDemandSignalsSortByEnumStringValues() []string
func GetListOccDemandSignalsSortOrderEnumStringValues() []string
func GetListOccMetricAlarmsSortByEnumStringValues() []string
func GetListOccMetricAlarmsSortOrderEnumStringValues() []string
func GetOccDemandSignalLifecycleStateEnumStringValues() []string
func GetOccMetricAlarmFrequencyEnumStringValues() []string
func GetOccMetricAlarmLifecycleStateEnumStringValues() []string
func GetOccMetricAlarmSummaryThresholdTypeEnumStringValues() []string
func GetOccMetricAlarmThresholdTypeEnumStringValues() []string
func GetPatchInsertInstructionPositionEnumStringValues() []string
func GetPatchInsertMultipleInstructionPositionEnumStringValues() []string
func GetPatchInstructionOperationEnumStringValues() []string
func GetPatchMoveInstructionPositionEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string
func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string
type BaseResourceConfiguration
type BaseResourceConfigurationResourceEnum
    func GetBaseResourceConfigurationResourceEnumValues() []BaseResourceConfigurationResourceEnum
    func GetMappingBaseResourceConfigurationResourceEnum(val string) (BaseResourceConfigurationResourceEnum, bool)
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 ComputeResourceConfiguration
    func (m ComputeResourceConfiguration) MarshalJSON() (buff []byte, e error)
    func (m ComputeResourceConfiguration) String() string
    func (m ComputeResourceConfiguration) ValidateEnumValue() (bool, error)
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 CreateOccMetricAlarmDetails
    func (m CreateOccMetricAlarmDetails) String() string
    func (m *CreateOccMetricAlarmDetails) UnmarshalJSON(data []byte) (e error)
    func (m CreateOccMetricAlarmDetails) ValidateEnumValue() (bool, error)
type CreateOccMetricAlarmDetailsLifecycleStateEnum
    func GetCreateOccMetricAlarmDetailsLifecycleStateEnumValues() []CreateOccMetricAlarmDetailsLifecycleStateEnum
    func GetMappingCreateOccMetricAlarmDetailsLifecycleStateEnum(val string) (CreateOccMetricAlarmDetailsLifecycleStateEnum, bool)
type CreateOccMetricAlarmDetailsThresholdTypeEnum
    func GetCreateOccMetricAlarmDetailsThresholdTypeEnumValues() []CreateOccMetricAlarmDetailsThresholdTypeEnum
    func GetMappingCreateOccMetricAlarmDetailsThresholdTypeEnum(val string) (CreateOccMetricAlarmDetailsThresholdTypeEnum, bool)
type CreateOccMetricAlarmRequest
    func (request CreateOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateOccMetricAlarmRequest) String() string
    func (request CreateOccMetricAlarmRequest) ValidateEnumValue() (bool, error)
type CreateOccMetricAlarmResponse
    func (response CreateOccMetricAlarmResponse) HTTPResponse() *http.Response
    func (response CreateOccMetricAlarmResponse) 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 DeleteOccMetricAlarmRequest
    func (request DeleteOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteOccMetricAlarmRequest) String() string
    func (request DeleteOccMetricAlarmRequest) ValidateEnumValue() (bool, error)
type DeleteOccMetricAlarmResponse
    func (response DeleteOccMetricAlarmResponse) HTTPResponse() *http.Response
    func (response DeleteOccMetricAlarmResponse) String() string
type ExadataResourceConfiguration
    func (m ExadataResourceConfiguration) MarshalJSON() (buff []byte, e error)
    func (m ExadataResourceConfiguration) String() string
    func (m ExadataResourceConfiguration) ValidateEnumValue() (bool, error)
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 GetOccMetricAlarmRequest
    func (request GetOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
    func (request GetOccMetricAlarmRequest) String() string
    func (request GetOccMetricAlarmRequest) ValidateEnumValue() (bool, error)
type GetOccMetricAlarmResponse
    func (response GetOccMetricAlarmResponse) HTTPResponse() *http.Response
    func (response GetOccMetricAlarmResponse) 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 ListOccMetricAlarmsRequest
    func (request ListOccMetricAlarmsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListOccMetricAlarmsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListOccMetricAlarmsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListOccMetricAlarmsRequest) String() string
    func (request ListOccMetricAlarmsRequest) ValidateEnumValue() (bool, error)
type ListOccMetricAlarmsResponse
    func (response ListOccMetricAlarmsResponse) HTTPResponse() *http.Response
    func (response ListOccMetricAlarmsResponse) String() string
type ListOccMetricAlarmsSortByEnum
    func GetListOccMetricAlarmsSortByEnumValues() []ListOccMetricAlarmsSortByEnum
    func GetMappingListOccMetricAlarmsSortByEnum(val string) (ListOccMetricAlarmsSortByEnum, bool)
type ListOccMetricAlarmsSortOrderEnum
    func GetListOccMetricAlarmsSortOrderEnumValues() []ListOccMetricAlarmsSortOrderEnum
    func GetMappingListOccMetricAlarmsSortOrderEnum(val string) (ListOccMetricAlarmsSortOrderEnum, bool)
type NetworkResourceConfiguration
    func (m NetworkResourceConfiguration) MarshalJSON() (buff []byte, e error)
    func (m NetworkResourceConfiguration) String() string
    func (m NetworkResourceConfiguration) ValidateEnumValue() (bool, error)
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 OccMetricAlarm
    func (m OccMetricAlarm) String() string
    func (m *OccMetricAlarm) UnmarshalJSON(data []byte) (e error)
    func (m OccMetricAlarm) ValidateEnumValue() (bool, error)
type OccMetricAlarmClient
    func NewOccMetricAlarmClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OccMetricAlarmClient, err error)
    func NewOccMetricAlarmClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OccMetricAlarmClient, err error)
    func (client *OccMetricAlarmClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client OccMetricAlarmClient) CreateOccMetricAlarm(ctx context.Context, request CreateOccMetricAlarmRequest) (response CreateOccMetricAlarmResponse, err error)
    func (client OccMetricAlarmClient) DeleteOccMetricAlarm(ctx context.Context, request DeleteOccMetricAlarmRequest) (response DeleteOccMetricAlarmResponse, err error)
    func (client OccMetricAlarmClient) GetOccMetricAlarm(ctx context.Context, request GetOccMetricAlarmRequest) (response GetOccMetricAlarmResponse, err error)
    func (client OccMetricAlarmClient) ListOccMetricAlarms(ctx context.Context, request ListOccMetricAlarmsRequest) (response ListOccMetricAlarmsResponse, err error)
    func (client *OccMetricAlarmClient) SetRegion(region string)
    func (client OccMetricAlarmClient) UpdateOccMetricAlarm(ctx context.Context, request UpdateOccMetricAlarmRequest) (response UpdateOccMetricAlarmResponse, err error)
type OccMetricAlarmCollection
    func (m OccMetricAlarmCollection) String() string
    func (m OccMetricAlarmCollection) ValidateEnumValue() (bool, error)
type OccMetricAlarmFrequencyEnum
    func GetMappingOccMetricAlarmFrequencyEnum(val string) (OccMetricAlarmFrequencyEnum, bool)
    func GetOccMetricAlarmFrequencyEnumValues() []OccMetricAlarmFrequencyEnum
type OccMetricAlarmLifecycleStateEnum
    func GetMappingOccMetricAlarmLifecycleStateEnum(val string) (OccMetricAlarmLifecycleStateEnum, bool)
    func GetOccMetricAlarmLifecycleStateEnumValues() []OccMetricAlarmLifecycleStateEnum
type OccMetricAlarmSummary
    func (m OccMetricAlarmSummary) String() string
    func (m *OccMetricAlarmSummary) UnmarshalJSON(data []byte) (e error)
    func (m OccMetricAlarmSummary) ValidateEnumValue() (bool, error)
type OccMetricAlarmSummaryThresholdTypeEnum
    func GetMappingOccMetricAlarmSummaryThresholdTypeEnum(val string) (OccMetricAlarmSummaryThresholdTypeEnum, bool)
    func GetOccMetricAlarmSummaryThresholdTypeEnumValues() []OccMetricAlarmSummaryThresholdTypeEnum
type OccMetricAlarmThresholdTypeEnum
    func GetMappingOccMetricAlarmThresholdTypeEnum(val string) (OccMetricAlarmThresholdTypeEnum, bool)
    func GetOccMetricAlarmThresholdTypeEnumValues() []OccMetricAlarmThresholdTypeEnum
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 StorageResourceConfiguration
    func (m StorageResourceConfiguration) MarshalJSON() (buff []byte, e error)
    func (m StorageResourceConfiguration) String() string
    func (m StorageResourceConfiguration) ValidateEnumValue() (bool, error)
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
type UpdateOccMetricAlarmDetails
    func (m UpdateOccMetricAlarmDetails) String() string
    func (m UpdateOccMetricAlarmDetails) ValidateEnumValue() (bool, error)
type UpdateOccMetricAlarmDetailsLifecycleStateEnum
    func GetMappingUpdateOccMetricAlarmDetailsLifecycleStateEnum(val string) (UpdateOccMetricAlarmDetailsLifecycleStateEnum, bool)
    func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues() []UpdateOccMetricAlarmDetailsLifecycleStateEnum
type UpdateOccMetricAlarmDetailsThresholdTypeEnum
    func GetMappingUpdateOccMetricAlarmDetailsThresholdTypeEnum(val string) (UpdateOccMetricAlarmDetailsThresholdTypeEnum, bool)
    func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues() []UpdateOccMetricAlarmDetailsThresholdTypeEnum
type UpdateOccMetricAlarmRequest
    func (request UpdateOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateOccMetricAlarmRequest) String() string
    func (request UpdateOccMetricAlarmRequest) ValidateEnumValue() (bool, error)
type UpdateOccMetricAlarmResponse
    func (response UpdateOccMetricAlarmResponse) HTTPResponse() *http.Response
    func (response UpdateOccMetricAlarmResponse) String() string

Package files

base_resource_configuration.go change_occ_demand_signal_compartment_details.go change_occ_demand_signal_compartment_request_response.go compute_resource_configuration.go create_occ_demand_signal_details.go create_occ_demand_signal_request_response.go create_occ_metric_alarm_details.go create_occ_metric_alarm_request_response.go delete_occ_demand_signal_request_response.go delete_occ_metric_alarm_request_response.go demandsignal_occdemandsignal_client.go demandsignal_occmetricalarm_client.go exadata_resource_configuration.go get_occ_demand_signal_request_response.go get_occ_metric_alarm_request_response.go list_occ_demand_signals_request_response.go list_occ_metric_alarms_request_response.go network_resource_configuration.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 occ_metric_alarm.go occ_metric_alarm_collection.go occ_metric_alarm_summary.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 storage_resource_configuration.go update_occ_demand_signal_details.go update_occ_demand_signal_request_response.go update_occ_metric_alarm_details.go update_occ_metric_alarm_request_response.go

func GetBaseResourceConfigurationResourceEnumStringValues

func GetBaseResourceConfigurationResourceEnumStringValues() []string

GetBaseResourceConfigurationResourceEnumStringValues Enumerates the set of values in String for BaseResourceConfigurationResourceEnum

func GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues

func GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string

GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for CreateOccMetricAlarmDetailsLifecycleStateEnum

func GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues

func GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string

GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues Enumerates the set of values in String for CreateOccMetricAlarmDetailsThresholdTypeEnum

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 GetListOccMetricAlarmsSortByEnumStringValues

func GetListOccMetricAlarmsSortByEnumStringValues() []string

GetListOccMetricAlarmsSortByEnumStringValues Enumerates the set of values in String for ListOccMetricAlarmsSortByEnum

func GetListOccMetricAlarmsSortOrderEnumStringValues

func GetListOccMetricAlarmsSortOrderEnumStringValues() []string

GetListOccMetricAlarmsSortOrderEnumStringValues Enumerates the set of values in String for ListOccMetricAlarmsSortOrderEnum

func GetOccDemandSignalLifecycleStateEnumStringValues

func GetOccDemandSignalLifecycleStateEnumStringValues() []string

GetOccDemandSignalLifecycleStateEnumStringValues Enumerates the set of values in String for OccDemandSignalLifecycleStateEnum

func GetOccMetricAlarmFrequencyEnumStringValues

func GetOccMetricAlarmFrequencyEnumStringValues() []string

GetOccMetricAlarmFrequencyEnumStringValues Enumerates the set of values in String for OccMetricAlarmFrequencyEnum

func GetOccMetricAlarmLifecycleStateEnumStringValues

func GetOccMetricAlarmLifecycleStateEnumStringValues() []string

GetOccMetricAlarmLifecycleStateEnumStringValues Enumerates the set of values in String for OccMetricAlarmLifecycleStateEnum

func GetOccMetricAlarmSummaryThresholdTypeEnumStringValues

func GetOccMetricAlarmSummaryThresholdTypeEnumStringValues() []string

GetOccMetricAlarmSummaryThresholdTypeEnumStringValues Enumerates the set of values in String for OccMetricAlarmSummaryThresholdTypeEnum

func GetOccMetricAlarmThresholdTypeEnumStringValues

func GetOccMetricAlarmThresholdTypeEnumStringValues() []string

GetOccMetricAlarmThresholdTypeEnumStringValues Enumerates the set of values in String for OccMetricAlarmThresholdTypeEnum

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

func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues

func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string

GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for UpdateOccMetricAlarmDetailsLifecycleStateEnum

func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues

func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string

GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues Enumerates the set of values in String for UpdateOccMetricAlarmDetailsThresholdTypeEnum

type BaseResourceConfiguration

BaseResourceConfiguration Configuration for a given 'resource'

type BaseResourceConfiguration interface {
}

type BaseResourceConfigurationResourceEnum

BaseResourceConfigurationResourceEnum Enum with underlying type: string

type BaseResourceConfigurationResourceEnum string

Set of constants representing the allowable values for BaseResourceConfigurationResourceEnum

const (
    BaseResourceConfigurationResourceCompute BaseResourceConfigurationResourceEnum = "COMPUTE"
    BaseResourceConfigurationResourceExadata BaseResourceConfigurationResourceEnum = "EXADATA"
    BaseResourceConfigurationResourceStorage BaseResourceConfigurationResourceEnum = "STORAGE"
    BaseResourceConfigurationResourceNetwork BaseResourceConfigurationResourceEnum = "NETWORK"
)

func GetBaseResourceConfigurationResourceEnumValues

func GetBaseResourceConfigurationResourceEnumValues() []BaseResourceConfigurationResourceEnum

GetBaseResourceConfigurationResourceEnumValues Enumerates the set of values for BaseResourceConfigurationResourceEnum

func GetMappingBaseResourceConfigurationResourceEnum

func GetMappingBaseResourceConfigurationResourceEnum(val string) (BaseResourceConfigurationResourceEnum, bool)

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

type ChangeOccDemandSignalCompartmentDetails

ChangeOccDemandSignalCompartmentDetails The configuration details for the move operation.

type ChangeOccDemandSignalCompartmentDetails struct {

    // The OCID (https://docs.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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/ChangeOccDemandSignalCompartment.go.html to see an example of how to use ChangeOccDemandSignalCompartmentRequest.

type ChangeOccDemandSignalCompartmentRequest struct {

    // The OCID (https://docs.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.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 ComputeResourceConfiguration

ComputeResourceConfiguration Configuration for COMPUTE

type ComputeResourceConfiguration struct {

    // The shape of the compute instance.
    Shape *string `mandatory:"true" json:"shape"`

    // The type of usage for the resource.
    UsageType *string `mandatory:"true" json:"usageType"`

    // The hardware generation of the compute resource.
    ComputeHwGeneration *string `mandatory:"false" json:"computeHwGeneration"`
}

func (ComputeResourceConfiguration) MarshalJSON

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

MarshalJSON marshals to json representation

func (ComputeResourceConfiguration) String

func (m ComputeResourceConfiguration) String() string

func (ComputeResourceConfiguration) ValidateEnumValue

func (m ComputeResourceConfiguration) 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 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.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.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.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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 CreateOccMetricAlarmDetails

CreateOccMetricAlarmDetails Payload for creating an OccMetricAlarm.

type CreateOccMetricAlarmDetails struct {

    // Human-readable name for the alarm.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // Compartment OCID in which the alarm is created.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Alarm active status.
    IsActive *bool `mandatory:"true" json:"isActive"`

    // Frequency at which notifications should be sent.
    Frequency OccMetricAlarmFrequencyEnum `mandatory:"true" json:"frequency"`

    // Threshold at which alarm must be triggered.
    Threshold *int `mandatory:"true" json:"threshold"`

    ResourceConfiguration BaseResourceConfiguration `mandatory:"true" json:"resourceConfiguration"`

    // Optional description for the alarm.
    Description *string `mandatory:"false" json:"description"`

    // The current lifecycle state of the resource.
    LifecycleState CreateOccMetricAlarmDetailsLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

    // List of topic OCIDs for notifications.
    Subscribers []string `mandatory:"false" json:"subscribers"`

    // Units in which threshold is being stored.
    ThresholdType CreateOccMetricAlarmDetailsThresholdTypeEnum `mandatory:"false" json:"thresholdType,omitempty"`

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

func (CreateOccMetricAlarmDetails) String

func (m CreateOccMetricAlarmDetails) String() string

func (*CreateOccMetricAlarmDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (CreateOccMetricAlarmDetails) ValidateEnumValue

func (m CreateOccMetricAlarmDetails) 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 CreateOccMetricAlarmDetailsLifecycleStateEnum

CreateOccMetricAlarmDetailsLifecycleStateEnum Enum with underlying type: string

type CreateOccMetricAlarmDetailsLifecycleStateEnum string

Set of constants representing the allowable values for CreateOccMetricAlarmDetailsLifecycleStateEnum

const (
    CreateOccMetricAlarmDetailsLifecycleStateCreating CreateOccMetricAlarmDetailsLifecycleStateEnum = "CREATING"
    CreateOccMetricAlarmDetailsLifecycleStateUpdating CreateOccMetricAlarmDetailsLifecycleStateEnum = "UPDATING"
    CreateOccMetricAlarmDetailsLifecycleStateActive   CreateOccMetricAlarmDetailsLifecycleStateEnum = "ACTIVE"
    CreateOccMetricAlarmDetailsLifecycleStateDeleting CreateOccMetricAlarmDetailsLifecycleStateEnum = "DELETING"
    CreateOccMetricAlarmDetailsLifecycleStateDeleted  CreateOccMetricAlarmDetailsLifecycleStateEnum = "DELETED"
    CreateOccMetricAlarmDetailsLifecycleStateFailed   CreateOccMetricAlarmDetailsLifecycleStateEnum = "FAILED"
)

func GetCreateOccMetricAlarmDetailsLifecycleStateEnumValues

func GetCreateOccMetricAlarmDetailsLifecycleStateEnumValues() []CreateOccMetricAlarmDetailsLifecycleStateEnum

GetCreateOccMetricAlarmDetailsLifecycleStateEnumValues Enumerates the set of values for CreateOccMetricAlarmDetailsLifecycleStateEnum

func GetMappingCreateOccMetricAlarmDetailsLifecycleStateEnum

func GetMappingCreateOccMetricAlarmDetailsLifecycleStateEnum(val string) (CreateOccMetricAlarmDetailsLifecycleStateEnum, bool)

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

type CreateOccMetricAlarmDetailsThresholdTypeEnum

CreateOccMetricAlarmDetailsThresholdTypeEnum Enum with underlying type: string

type CreateOccMetricAlarmDetailsThresholdTypeEnum string

Set of constants representing the allowable values for CreateOccMetricAlarmDetailsThresholdTypeEnum

const (
    CreateOccMetricAlarmDetailsThresholdTypePercentage CreateOccMetricAlarmDetailsThresholdTypeEnum = "PERCENTAGE"
    CreateOccMetricAlarmDetailsThresholdTypeUnits      CreateOccMetricAlarmDetailsThresholdTypeEnum = "UNITS"
)

func GetCreateOccMetricAlarmDetailsThresholdTypeEnumValues

func GetCreateOccMetricAlarmDetailsThresholdTypeEnumValues() []CreateOccMetricAlarmDetailsThresholdTypeEnum

GetCreateOccMetricAlarmDetailsThresholdTypeEnumValues Enumerates the set of values for CreateOccMetricAlarmDetailsThresholdTypeEnum

func GetMappingCreateOccMetricAlarmDetailsThresholdTypeEnum

func GetMappingCreateOccMetricAlarmDetailsThresholdTypeEnum(val string) (CreateOccMetricAlarmDetailsThresholdTypeEnum, bool)

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

type CreateOccMetricAlarmRequest

CreateOccMetricAlarmRequest wrapper for the CreateOccMetricAlarm operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/CreateOccMetricAlarm.go.html to see an example of how to use CreateOccMetricAlarmRequest.

type CreateOccMetricAlarmRequest struct {

    // The details for creating a new OccMetricAlarm.
    CreateOccMetricAlarmDetails `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 (CreateOccMetricAlarmRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateOccMetricAlarmRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateOccMetricAlarmRequest) RetryPolicy

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

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

func (CreateOccMetricAlarmRequest) String

func (request CreateOccMetricAlarmRequest) String() string

func (CreateOccMetricAlarmRequest) ValidateEnumValue

func (request CreateOccMetricAlarmRequest) 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 CreateOccMetricAlarmResponse

CreateOccMetricAlarmResponse wrapper for the CreateOccMetricAlarm operation

type CreateOccMetricAlarmResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OccMetricAlarm instance
    OccMetricAlarm `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 (CreateOccMetricAlarmResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateOccMetricAlarmResponse) String

func (response CreateOccMetricAlarmResponse) String() string

type DeleteOccDemandSignalRequest

DeleteOccDemandSignalRequest wrapper for the DeleteOccDemandSignal operation

See also

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

type DeleteOccDemandSignalRequest struct {

    // The OCID (https://docs.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.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 DeleteOccMetricAlarmRequest

DeleteOccMetricAlarmRequest wrapper for the DeleteOccMetricAlarm operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/DeleteOccMetricAlarm.go.html to see an example of how to use DeleteOccMetricAlarmRequest.

type DeleteOccMetricAlarmRequest struct {

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteOccMetricAlarmRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteOccMetricAlarmRequest) RetryPolicy

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

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

func (DeleteOccMetricAlarmRequest) String

func (request DeleteOccMetricAlarmRequest) String() string

func (DeleteOccMetricAlarmRequest) ValidateEnumValue

func (request DeleteOccMetricAlarmRequest) 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 DeleteOccMetricAlarmResponse

DeleteOccMetricAlarmResponse wrapper for the DeleteOccMetricAlarm operation

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

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

HTTPResponse implements the OCIResponse interface

func (DeleteOccMetricAlarmResponse) String

func (response DeleteOccMetricAlarmResponse) String() string

type ExadataResourceConfiguration

ExadataResourceConfiguration Configuration for EXADATA

type ExadataResourceConfiguration struct {

    // The type of node in the Exadata system.
    NodeType *string `mandatory:"true" json:"nodeType"`

    // The type of usage for the resource.
    UsageType *string `mandatory:"true" json:"usageType"`

    // The hardware generation of the Exadata system.
    HwGeneration *string `mandatory:"false" json:"hwGeneration"`
}

func (ExadataResourceConfiguration) MarshalJSON

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

MarshalJSON marshals to json representation

func (ExadataResourceConfiguration) String

func (m ExadataResourceConfiguration) String() string

func (ExadataResourceConfiguration) ValidateEnumValue

func (m ExadataResourceConfiguration) 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 GetOccDemandSignalRequest

GetOccDemandSignalRequest wrapper for the GetOccDemandSignal operation

See also

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

type GetOccDemandSignalRequest struct {

    // The OCID (https://docs.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 GetOccMetricAlarmRequest

GetOccMetricAlarmRequest wrapper for the GetOccMetricAlarm operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/GetOccMetricAlarm.go.html to see an example of how to use GetOccMetricAlarmRequest.

type GetOccMetricAlarmRequest struct {

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (GetOccMetricAlarmRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetOccMetricAlarmRequest) RetryPolicy

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

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

func (GetOccMetricAlarmRequest) String

func (request GetOccMetricAlarmRequest) String() string

func (GetOccMetricAlarmRequest) ValidateEnumValue

func (request GetOccMetricAlarmRequest) 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 GetOccMetricAlarmResponse

GetOccMetricAlarmResponse wrapper for the GetOccMetricAlarm operation

type GetOccMetricAlarmResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OccMetricAlarm instance
    OccMetricAlarm `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 (GetOccMetricAlarmResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetOccMetricAlarmResponse) String

func (response GetOccMetricAlarmResponse) String() string

type ListOccDemandSignalsRequest

ListOccDemandSignalsRequest wrapper for the ListOccDemandSignals operation

See also

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

type ListOccDemandSignalsRequest struct {

    // The OCID (https://docs.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.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.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.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.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 ListOccMetricAlarmsRequest

ListOccMetricAlarmsRequest wrapper for the ListOccMetricAlarms operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/ListOccMetricAlarms.go.html to see an example of how to use ListOccMetricAlarmsRequest.

type ListOccMetricAlarmsRequest struct {

    // The OCID (https://docs.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 display name exactly.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    // Filter to list only active or inactive alarms.
    IsActive *bool `mandatory:"false" contributesTo:"query" name:"isActive"`

    // 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.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.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 ListOccMetricAlarmsSortOrderEnum `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 ListOccMetricAlarmsSortByEnum `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 (ListOccMetricAlarmsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListOccMetricAlarmsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListOccMetricAlarmsRequest) RetryPolicy

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

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

func (ListOccMetricAlarmsRequest) String

func (request ListOccMetricAlarmsRequest) String() string

func (ListOccMetricAlarmsRequest) ValidateEnumValue

func (request ListOccMetricAlarmsRequest) 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 ListOccMetricAlarmsResponse

ListOccMetricAlarmsResponse wrapper for the ListOccMetricAlarms operation

type ListOccMetricAlarmsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of OccMetricAlarmCollection instances
    OccMetricAlarmCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListOccMetricAlarmsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListOccMetricAlarmsResponse) String

func (response ListOccMetricAlarmsResponse) String() string

type ListOccMetricAlarmsSortByEnum

ListOccMetricAlarmsSortByEnum Enum with underlying type: string

type ListOccMetricAlarmsSortByEnum string

Set of constants representing the allowable values for ListOccMetricAlarmsSortByEnum

const (
    ListOccMetricAlarmsSortByTimecreated ListOccMetricAlarmsSortByEnum = "timeCreated"
    ListOccMetricAlarmsSortByDisplayname ListOccMetricAlarmsSortByEnum = "displayName"
)

func GetListOccMetricAlarmsSortByEnumValues

func GetListOccMetricAlarmsSortByEnumValues() []ListOccMetricAlarmsSortByEnum

GetListOccMetricAlarmsSortByEnumValues Enumerates the set of values for ListOccMetricAlarmsSortByEnum

func GetMappingListOccMetricAlarmsSortByEnum

func GetMappingListOccMetricAlarmsSortByEnum(val string) (ListOccMetricAlarmsSortByEnum, bool)

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

type ListOccMetricAlarmsSortOrderEnum

ListOccMetricAlarmsSortOrderEnum Enum with underlying type: string

type ListOccMetricAlarmsSortOrderEnum string

Set of constants representing the allowable values for ListOccMetricAlarmsSortOrderEnum

const (
    ListOccMetricAlarmsSortOrderAsc  ListOccMetricAlarmsSortOrderEnum = "ASC"
    ListOccMetricAlarmsSortOrderDesc ListOccMetricAlarmsSortOrderEnum = "DESC"
)

func GetListOccMetricAlarmsSortOrderEnumValues

func GetListOccMetricAlarmsSortOrderEnumValues() []ListOccMetricAlarmsSortOrderEnum

GetListOccMetricAlarmsSortOrderEnumValues Enumerates the set of values for ListOccMetricAlarmsSortOrderEnum

func GetMappingListOccMetricAlarmsSortOrderEnum

func GetMappingListOccMetricAlarmsSortOrderEnum(val string) (ListOccMetricAlarmsSortOrderEnum, bool)

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

type NetworkResourceConfiguration

NetworkResourceConfiguration Configuration for NETWORK

type NetworkResourceConfiguration struct {

    // The type of usage for the resource.
    UsageType *string `mandatory:"true" json:"usageType"`

    // The provider of the network service.
    Provider *string `mandatory:"true" json:"provider"`

    // The role of the link in the network.
    LinkRole *string `mandatory:"false" json:"linkRole"`
}

func (NetworkResourceConfiguration) MarshalJSON

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

MarshalJSON marshals to json representation

func (NetworkResourceConfiguration) String

func (m NetworkResourceConfiguration) String() string

func (NetworkResourceConfiguration) ValidateEnumValue

func (m NetworkResourceConfiguration) 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 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.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm).

type OccDemandSignal struct {

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

    // The OCID (https://docs.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.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.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.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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.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.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.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.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 OccMetricAlarm

OccMetricAlarm OccMetricAlarm represents an alarm configuration for OCI Control Center metric.

type OccMetricAlarm struct {

    // Unique OCID for this alarm configuration.
    Id *string `mandatory:"true" json:"id"`

    // Human-readable name for the alarm.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // Creation timestamp (RFC 3339).
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // Last update timestamp (RFC 3339).
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`

    // The current lifecycle state of the resource.
    LifecycleState OccMetricAlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Alarm active status.
    IsActive *bool `mandatory:"true" json:"isActive"`

    // List of topic OCIDs for notifications.
    Subscribers []string `mandatory:"true" json:"subscribers"`

    // Frequency at which notifications should be sent.
    Frequency OccMetricAlarmFrequencyEnum `mandatory:"true" json:"frequency"`

    // Threshold at which alarm must be triggered.
    Threshold *int `mandatory:"true" json:"threshold"`

    // Units in which threshold is being stored.
    ThresholdType OccMetricAlarmThresholdTypeEnum `mandatory:"true" json:"thresholdType"`

    ResourceConfiguration BaseResourceConfiguration `mandatory:"true" json:"resourceConfiguration"`

    // Optional description for the alarm.
    Description *string `mandatory:"false" json:"description"`

    // Compartment OCID in which the alarm is created.
    CompartmentId *string `mandatory:"false" json:"compartmentId"`

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

    // 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 (OccMetricAlarm) String

func (m OccMetricAlarm) String() string

func (*OccMetricAlarm) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (OccMetricAlarm) ValidateEnumValue

func (m OccMetricAlarm) 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 OccMetricAlarmClient

OccMetricAlarmClient a client for OccMetricAlarm

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

func NewOccMetricAlarmClientWithConfigurationProvider

func NewOccMetricAlarmClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OccMetricAlarmClient, err error)

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

func NewOccMetricAlarmClientWithOboToken

func NewOccMetricAlarmClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OccMetricAlarmClient, err error)

NewOccMetricAlarmClientWithOboToken Creates a new default OccMetricAlarm 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 (*OccMetricAlarmClient) ConfigurationProvider

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

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

func (OccMetricAlarmClient) CreateOccMetricAlarm

func (client OccMetricAlarmClient) CreateOccMetricAlarm(ctx context.Context, request CreateOccMetricAlarmRequest) (response CreateOccMetricAlarmResponse, err error)

CreateOccMetricAlarm Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details.

See also

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

func (OccMetricAlarmClient) DeleteOccMetricAlarm

func (client OccMetricAlarmClient) DeleteOccMetricAlarm(ctx context.Context, request DeleteOccMetricAlarmRequest) (response DeleteOccMetricAlarmResponse, err error)

DeleteOccMetricAlarm Deletes the specified OccMetricAlarm resource.

See also

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

func (OccMetricAlarmClient) GetOccMetricAlarm

func (client OccMetricAlarmClient) GetOccMetricAlarm(ctx context.Context, request GetOccMetricAlarmRequest) (response GetOccMetricAlarmResponse, err error)

GetOccMetricAlarm Retrieves the specified OccMetricAlarm resource based on its identifier.

See also

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

func (OccMetricAlarmClient) ListOccMetricAlarms

func (client OccMetricAlarmClient) ListOccMetricAlarms(ctx context.Context, request ListOccMetricAlarmsRequest) (response ListOccMetricAlarmsResponse, err error)

ListOccMetricAlarms Gets a list of OccMetricAlarms.

See also

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

func (*OccMetricAlarmClient) SetRegion

func (client *OccMetricAlarmClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (OccMetricAlarmClient) UpdateOccMetricAlarm

func (client OccMetricAlarmClient) UpdateOccMetricAlarm(ctx context.Context, request UpdateOccMetricAlarmRequest) (response UpdateOccMetricAlarmResponse, err error)

UpdateOccMetricAlarm Updates an existing OccMetricAlarm resource with new or modified configuration details.

See also

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

type OccMetricAlarmCollection

OccMetricAlarmCollection Results of an OccMetricAlarm list operation.

type OccMetricAlarmCollection struct {

    // Results list of OccMetricAlarmSummary objects.
    Items []OccMetricAlarmSummary `mandatory:"true" json:"items"`
}

func (OccMetricAlarmCollection) String

func (m OccMetricAlarmCollection) String() string

func (OccMetricAlarmCollection) ValidateEnumValue

func (m OccMetricAlarmCollection) 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 OccMetricAlarmFrequencyEnum

OccMetricAlarmFrequencyEnum Enum with underlying type: string

type OccMetricAlarmFrequencyEnum string

Set of constants representing the allowable values for OccMetricAlarmFrequencyEnum

const (
    OccMetricAlarmFrequencyDaily   OccMetricAlarmFrequencyEnum = "DAILY"
    OccMetricAlarmFrequencyWeekly  OccMetricAlarmFrequencyEnum = "WEEKLY"
    OccMetricAlarmFrequencyMonthly OccMetricAlarmFrequencyEnum = "MONTHLY"
)

func GetMappingOccMetricAlarmFrequencyEnum

func GetMappingOccMetricAlarmFrequencyEnum(val string) (OccMetricAlarmFrequencyEnum, bool)

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

func GetOccMetricAlarmFrequencyEnumValues

func GetOccMetricAlarmFrequencyEnumValues() []OccMetricAlarmFrequencyEnum

GetOccMetricAlarmFrequencyEnumValues Enumerates the set of values for OccMetricAlarmFrequencyEnum

type OccMetricAlarmLifecycleStateEnum

OccMetricAlarmLifecycleStateEnum Enum with underlying type: string

type OccMetricAlarmLifecycleStateEnum string

Set of constants representing the allowable values for OccMetricAlarmLifecycleStateEnum

const (
    OccMetricAlarmLifecycleStateCreating OccMetricAlarmLifecycleStateEnum = "CREATING"
    OccMetricAlarmLifecycleStateUpdating OccMetricAlarmLifecycleStateEnum = "UPDATING"
    OccMetricAlarmLifecycleStateActive   OccMetricAlarmLifecycleStateEnum = "ACTIVE"
    OccMetricAlarmLifecycleStateDeleting OccMetricAlarmLifecycleStateEnum = "DELETING"
    OccMetricAlarmLifecycleStateDeleted  OccMetricAlarmLifecycleStateEnum = "DELETED"
    OccMetricAlarmLifecycleStateFailed   OccMetricAlarmLifecycleStateEnum = "FAILED"
)

func GetMappingOccMetricAlarmLifecycleStateEnum

func GetMappingOccMetricAlarmLifecycleStateEnum(val string) (OccMetricAlarmLifecycleStateEnum, bool)

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

func GetOccMetricAlarmLifecycleStateEnumValues

func GetOccMetricAlarmLifecycleStateEnumValues() []OccMetricAlarmLifecycleStateEnum

GetOccMetricAlarmLifecycleStateEnumValues Enumerates the set of values for OccMetricAlarmLifecycleStateEnum

type OccMetricAlarmSummary

OccMetricAlarmSummary Summary of OccMetricAlarm.

type OccMetricAlarmSummary struct {

    // Unique OCID for this alarm configuration.
    Id *string `mandatory:"true" json:"id"`

    // Human-readable name for the alarm.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // Creation timestamp (RFC 3339).
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // Last update timestamp (RFC 3339).
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`

    // The current lifecycle state of the resource.
    LifecycleState OccMetricAlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // Compartment OCID in which the alarm is created.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Alarm active status.
    IsActive *bool `mandatory:"true" json:"isActive"`

    // List of topic OCIDs for notifications.
    Subscribers []string `mandatory:"true" json:"subscribers"`

    // Frequency at which notifications should be sent.
    Frequency OccMetricAlarmFrequencyEnum `mandatory:"true" json:"frequency"`

    // Threshold at which alarm must be triggered.
    Threshold *int `mandatory:"true" json:"threshold"`

    ResourceConfiguration BaseResourceConfiguration `mandatory:"true" json:"resourceConfiguration"`

    // Optional description for the alarm.
    Description *string `mandatory:"false" json:"description"`

    // Units in which threshold is being stored.
    ThresholdType OccMetricAlarmSummaryThresholdTypeEnum `mandatory:"false" json:"thresholdType,omitempty"`

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

    // 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 (OccMetricAlarmSummary) String

func (m OccMetricAlarmSummary) String() string

func (*OccMetricAlarmSummary) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (OccMetricAlarmSummary) ValidateEnumValue

func (m OccMetricAlarmSummary) 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 OccMetricAlarmSummaryThresholdTypeEnum

OccMetricAlarmSummaryThresholdTypeEnum Enum with underlying type: string

type OccMetricAlarmSummaryThresholdTypeEnum string

Set of constants representing the allowable values for OccMetricAlarmSummaryThresholdTypeEnum

const (
    OccMetricAlarmSummaryThresholdTypePercentage OccMetricAlarmSummaryThresholdTypeEnum = "PERCENTAGE"
    OccMetricAlarmSummaryThresholdTypeUnits      OccMetricAlarmSummaryThresholdTypeEnum = "UNITS"
)

func GetMappingOccMetricAlarmSummaryThresholdTypeEnum

func GetMappingOccMetricAlarmSummaryThresholdTypeEnum(val string) (OccMetricAlarmSummaryThresholdTypeEnum, bool)

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

func GetOccMetricAlarmSummaryThresholdTypeEnumValues

func GetOccMetricAlarmSummaryThresholdTypeEnumValues() []OccMetricAlarmSummaryThresholdTypeEnum

GetOccMetricAlarmSummaryThresholdTypeEnumValues Enumerates the set of values for OccMetricAlarmSummaryThresholdTypeEnum

type OccMetricAlarmThresholdTypeEnum

OccMetricAlarmThresholdTypeEnum Enum with underlying type: string

type OccMetricAlarmThresholdTypeEnum string

Set of constants representing the allowable values for OccMetricAlarmThresholdTypeEnum

const (
    OccMetricAlarmThresholdTypePercentage OccMetricAlarmThresholdTypeEnum = "PERCENTAGE"
    OccMetricAlarmThresholdTypeUnits      OccMetricAlarmThresholdTypeEnum = "UNITS"
)

func GetMappingOccMetricAlarmThresholdTypeEnum

func GetMappingOccMetricAlarmThresholdTypeEnum(val string) (OccMetricAlarmThresholdTypeEnum, bool)

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

func GetOccMetricAlarmThresholdTypeEnumValues

func GetOccMetricAlarmThresholdTypeEnumValues() []OccMetricAlarmThresholdTypeEnum

GetOccMetricAlarmThresholdTypeEnumValues Enumerates the set of values for OccMetricAlarmThresholdTypeEnum

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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/PatchOccDemandSignal.go.html to see an example of how to use PatchOccDemandSignalRequest.

type PatchOccDemandSignalRequest struct {

    // The OCID (https://docs.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 StorageResourceConfiguration

StorageResourceConfiguration Configuration for STORAGE

type StorageResourceConfiguration struct {

    // The type of storage resource.
    StorageType *string `mandatory:"true" json:"storageType"`

    // The type of usage for the resource.
    UsageType *string `mandatory:"true" json:"usageType"`
}

func (StorageResourceConfiguration) MarshalJSON

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

MarshalJSON marshals to json representation

func (StorageResourceConfiguration) String

func (m StorageResourceConfiguration) String() string

func (StorageResourceConfiguration) ValidateEnumValue

func (m StorageResourceConfiguration) 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 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.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.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.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/UpdateOccDemandSignal.go.html to see an example of how to use UpdateOccDemandSignalRequest.

type UpdateOccDemandSignalRequest struct {

    // The OCID (https://docs.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

type UpdateOccMetricAlarmDetails

UpdateOccMetricAlarmDetails Fields that can be updated for OccMetricAlarm.

type UpdateOccMetricAlarmDetails struct {

    // Human-readable name for the alarm.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Optional description for the alarm.
    Description *string `mandatory:"false" json:"description"`

    // The current lifecycle state of the resource.
    LifecycleState UpdateOccMetricAlarmDetailsLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

    // Alarm active status.
    IsActive *bool `mandatory:"false" json:"isActive"`

    // List of topic OCIDs for notifications.
    Subscribers []string `mandatory:"false" json:"subscribers"`

    // Frequency at which notifications should be sent.
    Frequency OccMetricAlarmFrequencyEnum `mandatory:"false" json:"frequency,omitempty"`

    // Threshold at which alarm must be triggered.
    Threshold *int `mandatory:"false" json:"threshold"`

    // Units in which threshold is being stored.
    ThresholdType UpdateOccMetricAlarmDetailsThresholdTypeEnum `mandatory:"false" json:"thresholdType,omitempty"`

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

func (UpdateOccMetricAlarmDetails) String

func (m UpdateOccMetricAlarmDetails) String() string

func (UpdateOccMetricAlarmDetails) ValidateEnumValue

func (m UpdateOccMetricAlarmDetails) 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 UpdateOccMetricAlarmDetailsLifecycleStateEnum

UpdateOccMetricAlarmDetailsLifecycleStateEnum Enum with underlying type: string

type UpdateOccMetricAlarmDetailsLifecycleStateEnum string

Set of constants representing the allowable values for UpdateOccMetricAlarmDetailsLifecycleStateEnum

const (
    UpdateOccMetricAlarmDetailsLifecycleStateCreating UpdateOccMetricAlarmDetailsLifecycleStateEnum = "CREATING"
    UpdateOccMetricAlarmDetailsLifecycleStateUpdating UpdateOccMetricAlarmDetailsLifecycleStateEnum = "UPDATING"
    UpdateOccMetricAlarmDetailsLifecycleStateActive   UpdateOccMetricAlarmDetailsLifecycleStateEnum = "ACTIVE"
    UpdateOccMetricAlarmDetailsLifecycleStateDeleting UpdateOccMetricAlarmDetailsLifecycleStateEnum = "DELETING"
    UpdateOccMetricAlarmDetailsLifecycleStateDeleted  UpdateOccMetricAlarmDetailsLifecycleStateEnum = "DELETED"
    UpdateOccMetricAlarmDetailsLifecycleStateFailed   UpdateOccMetricAlarmDetailsLifecycleStateEnum = "FAILED"
)

func GetMappingUpdateOccMetricAlarmDetailsLifecycleStateEnum

func GetMappingUpdateOccMetricAlarmDetailsLifecycleStateEnum(val string) (UpdateOccMetricAlarmDetailsLifecycleStateEnum, bool)

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

func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues

func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues() []UpdateOccMetricAlarmDetailsLifecycleStateEnum

GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues Enumerates the set of values for UpdateOccMetricAlarmDetailsLifecycleStateEnum

type UpdateOccMetricAlarmDetailsThresholdTypeEnum

UpdateOccMetricAlarmDetailsThresholdTypeEnum Enum with underlying type: string

type UpdateOccMetricAlarmDetailsThresholdTypeEnum string

Set of constants representing the allowable values for UpdateOccMetricAlarmDetailsThresholdTypeEnum

const (
    UpdateOccMetricAlarmDetailsThresholdTypePercentage UpdateOccMetricAlarmDetailsThresholdTypeEnum = "PERCENTAGE"
    UpdateOccMetricAlarmDetailsThresholdTypeUnits      UpdateOccMetricAlarmDetailsThresholdTypeEnum = "UNITS"
)

func GetMappingUpdateOccMetricAlarmDetailsThresholdTypeEnum

func GetMappingUpdateOccMetricAlarmDetailsThresholdTypeEnum(val string) (UpdateOccMetricAlarmDetailsThresholdTypeEnum, bool)

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

func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues

func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues() []UpdateOccMetricAlarmDetailsThresholdTypeEnum

GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues Enumerates the set of values for UpdateOccMetricAlarmDetailsThresholdTypeEnum

type UpdateOccMetricAlarmRequest

UpdateOccMetricAlarmRequest wrapper for the UpdateOccMetricAlarm operation

See also

Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/demandsignal/UpdateOccMetricAlarm.go.html to see an example of how to use UpdateOccMetricAlarmRequest.

type UpdateOccMetricAlarmRequest struct {

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

    // The details to update the specified OccMetricAlarm.
    UpdateOccMetricAlarmDetails `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 (UpdateOccMetricAlarmRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateOccMetricAlarmRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateOccMetricAlarmRequest) RetryPolicy

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

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

func (UpdateOccMetricAlarmRequest) String

func (request UpdateOccMetricAlarmRequest) String() string

func (UpdateOccMetricAlarmRequest) ValidateEnumValue

func (request UpdateOccMetricAlarmRequest) 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 UpdateOccMetricAlarmResponse

UpdateOccMetricAlarmResponse wrapper for the UpdateOccMetricAlarm operation

type UpdateOccMetricAlarmResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OccMetricAlarm instance
    OccMetricAlarm `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 (UpdateOccMetricAlarmResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateOccMetricAlarmResponse) String

func (response UpdateOccMetricAlarmResponse) String() string