func GetBaseResourceConfigurationResourceEnumStringValues() []string
GetBaseResourceConfigurationResourceEnumStringValues Enumerates the set of values in String for BaseResourceConfigurationResourceEnum
func GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string
GetCreateOccMetricAlarmDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for CreateOccMetricAlarmDetailsLifecycleStateEnum
func GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string
GetCreateOccMetricAlarmDetailsThresholdTypeEnumStringValues Enumerates the set of values in String for CreateOccMetricAlarmDetailsThresholdTypeEnum
func GetListOccDemandSignalsSortByEnumStringValues() []string
GetListOccDemandSignalsSortByEnumStringValues Enumerates the set of values in String for ListOccDemandSignalsSortByEnum
func GetListOccDemandSignalsSortOrderEnumStringValues() []string
GetListOccDemandSignalsSortOrderEnumStringValues Enumerates the set of values in String for ListOccDemandSignalsSortOrderEnum
func GetListOccMetricAlarmsSortByEnumStringValues() []string
GetListOccMetricAlarmsSortByEnumStringValues Enumerates the set of values in String for ListOccMetricAlarmsSortByEnum
func GetListOccMetricAlarmsSortOrderEnumStringValues() []string
GetListOccMetricAlarmsSortOrderEnumStringValues Enumerates the set of values in String for ListOccMetricAlarmsSortOrderEnum
func GetOccDemandSignalLifecycleStateEnumStringValues() []string
GetOccDemandSignalLifecycleStateEnumStringValues Enumerates the set of values in String for OccDemandSignalLifecycleStateEnum
func GetOccMetricAlarmFrequencyEnumStringValues() []string
GetOccMetricAlarmFrequencyEnumStringValues Enumerates the set of values in String for OccMetricAlarmFrequencyEnum
func GetOccMetricAlarmLifecycleStateEnumStringValues() []string
GetOccMetricAlarmLifecycleStateEnumStringValues Enumerates the set of values in String for OccMetricAlarmLifecycleStateEnum
func GetOccMetricAlarmSummaryThresholdTypeEnumStringValues() []string
GetOccMetricAlarmSummaryThresholdTypeEnumStringValues Enumerates the set of values in String for OccMetricAlarmSummaryThresholdTypeEnum
func GetOccMetricAlarmThresholdTypeEnumStringValues() []string
GetOccMetricAlarmThresholdTypeEnumStringValues Enumerates the set of values in String for OccMetricAlarmThresholdTypeEnum
func GetPatchInsertInstructionPositionEnumStringValues() []string
GetPatchInsertInstructionPositionEnumStringValues Enumerates the set of values in String for PatchInsertInstructionPositionEnum
func GetPatchInsertMultipleInstructionPositionEnumStringValues() []string
GetPatchInsertMultipleInstructionPositionEnumStringValues Enumerates the set of values in String for PatchInsertMultipleInstructionPositionEnum
func GetPatchInstructionOperationEnumStringValues() []string
GetPatchInstructionOperationEnumStringValues Enumerates the set of values in String for PatchInstructionOperationEnum
func GetPatchMoveInstructionPositionEnumStringValues() []string
GetPatchMoveInstructionPositionEnumStringValues Enumerates the set of values in String for PatchMoveInstructionPositionEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues() []string
GetUpdateOccMetricAlarmDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for UpdateOccMetricAlarmDetailsLifecycleStateEnum
func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues() []string
GetUpdateOccMetricAlarmDetailsThresholdTypeEnumStringValues Enumerates the set of values in String for UpdateOccMetricAlarmDetailsThresholdTypeEnum
BaseResourceConfiguration Configuration for a given 'resource'
type BaseResourceConfiguration interface {
}
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() []BaseResourceConfigurationResourceEnum
GetBaseResourceConfigurationResourceEnumValues Enumerates the set of values for BaseResourceConfigurationResourceEnum
func GetMappingBaseResourceConfigurationResourceEnum(val string) (BaseResourceConfigurationResourceEnum, bool)
GetMappingBaseResourceConfigurationResourceEnum performs case Insensitive comparison on enum value and return the desired enum
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 (m ChangeOccDemandSignalCompartmentDetails) String() string
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
ChangeOccDemandSignalCompartmentRequest wrapper for the ChangeOccDemandSignalCompartment operation
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 (request ChangeOccDemandSignalCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeOccDemandSignalCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeOccDemandSignalCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeOccDemandSignalCompartmentRequest) String() string
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
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 (response ChangeOccDemandSignalCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeOccDemandSignalCompartmentResponse) String() string
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 (m ComputeResourceConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ComputeResourceConfiguration) String() string
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
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 (m CreateOccDemandSignalDetails) String() string
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
CreateOccDemandSignalRequest wrapper for the CreateOccDemandSignal operation
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 (request CreateOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateOccDemandSignalRequest) String() string
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
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 (response CreateOccDemandSignalResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateOccDemandSignalResponse) String() string
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 (m CreateOccMetricAlarmDetails) String() string
func (m *CreateOccMetricAlarmDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
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
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() []CreateOccMetricAlarmDetailsLifecycleStateEnum
GetCreateOccMetricAlarmDetailsLifecycleStateEnumValues Enumerates the set of values for CreateOccMetricAlarmDetailsLifecycleStateEnum
func GetMappingCreateOccMetricAlarmDetailsLifecycleStateEnum(val string) (CreateOccMetricAlarmDetailsLifecycleStateEnum, bool)
GetMappingCreateOccMetricAlarmDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
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() []CreateOccMetricAlarmDetailsThresholdTypeEnum
GetCreateOccMetricAlarmDetailsThresholdTypeEnumValues Enumerates the set of values for CreateOccMetricAlarmDetailsThresholdTypeEnum
func GetMappingCreateOccMetricAlarmDetailsThresholdTypeEnum(val string) (CreateOccMetricAlarmDetailsThresholdTypeEnum, bool)
GetMappingCreateOccMetricAlarmDetailsThresholdTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CreateOccMetricAlarmRequest wrapper for the CreateOccMetricAlarm operation
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 (request CreateOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateOccMetricAlarmRequest) String() string
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
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 (response CreateOccMetricAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateOccMetricAlarmResponse) String() string
DeleteOccDemandSignalRequest wrapper for the DeleteOccDemandSignal operation
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 (request DeleteOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteOccDemandSignalRequest) String() string
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
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 (response DeleteOccDemandSignalResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteOccDemandSignalResponse) String() string
DeleteOccMetricAlarmRequest wrapper for the DeleteOccMetricAlarm operation
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 (request DeleteOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteOccMetricAlarmRequest) String() string
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
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 (response DeleteOccMetricAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteOccMetricAlarmResponse) String() string
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 (m ExadataResourceConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ExadataResourceConfiguration) String() string
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
GetOccDemandSignalRequest wrapper for the GetOccDemandSignal operation
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 (request GetOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOccDemandSignalRequest) String() string
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
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 (response GetOccDemandSignalResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOccDemandSignalResponse) String() string
GetOccMetricAlarmRequest wrapper for the GetOccMetricAlarm operation
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 (request GetOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetOccMetricAlarmRequest) String() string
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
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 (response GetOccMetricAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetOccMetricAlarmResponse) String() string
ListOccDemandSignalsRequest wrapper for the ListOccDemandSignals operation
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 (request ListOccDemandSignalsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListOccDemandSignalsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListOccDemandSignalsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListOccDemandSignalsRequest) String() string
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
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 (response ListOccDemandSignalsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListOccDemandSignalsResponse) String() string
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() []ListOccDemandSignalsSortByEnum
GetListOccDemandSignalsSortByEnumValues Enumerates the set of values for ListOccDemandSignalsSortByEnum
func GetMappingListOccDemandSignalsSortByEnum(val string) (ListOccDemandSignalsSortByEnum, bool)
GetMappingListOccDemandSignalsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListOccDemandSignalsSortOrderEnum
GetListOccDemandSignalsSortOrderEnumValues Enumerates the set of values for ListOccDemandSignalsSortOrderEnum
func GetMappingListOccDemandSignalsSortOrderEnum(val string) (ListOccDemandSignalsSortOrderEnum, bool)
GetMappingListOccDemandSignalsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListOccMetricAlarmsRequest wrapper for the ListOccMetricAlarms operation
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 (request ListOccMetricAlarmsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListOccMetricAlarmsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListOccMetricAlarmsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListOccMetricAlarmsRequest) String() string
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
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 (response ListOccMetricAlarmsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListOccMetricAlarmsResponse) String() string
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() []ListOccMetricAlarmsSortByEnum
GetListOccMetricAlarmsSortByEnumValues Enumerates the set of values for ListOccMetricAlarmsSortByEnum
func GetMappingListOccMetricAlarmsSortByEnum(val string) (ListOccMetricAlarmsSortByEnum, bool)
GetMappingListOccMetricAlarmsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
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() []ListOccMetricAlarmsSortOrderEnum
GetListOccMetricAlarmsSortOrderEnumValues Enumerates the set of values for ListOccMetricAlarmsSortOrderEnum
func GetMappingListOccMetricAlarmsSortOrderEnum(val string) (ListOccMetricAlarmsSortOrderEnum, bool)
GetMappingListOccMetricAlarmsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
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 (m NetworkResourceConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m NetworkResourceConfiguration) String() string
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
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 (m OccDemandSignal) String() string
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
OccDemandSignalClient a client for OccDemandSignal
type OccDemandSignalClient struct {
common.BaseClient
// contains filtered or unexported fields
}
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(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 (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).
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 (client *OccDemandSignalClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client OccDemandSignalClient) CreateOccDemandSignal(ctx context.Context, request CreateOccDemandSignalRequest) (response CreateOccDemandSignalResponse, err error)
CreateOccDemandSignal Creates a OccDemandSignal.
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 (client OccDemandSignalClient) DeleteOccDemandSignal(ctx context.Context, request DeleteOccDemandSignalRequest) (response DeleteOccDemandSignalResponse, err error)
DeleteOccDemandSignal Deletes a OccDemandSignal.
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 (client OccDemandSignalClient) GetOccDemandSignal(ctx context.Context, request GetOccDemandSignalRequest) (response GetOccDemandSignalResponse, err error)
GetOccDemandSignal Gets information about a OccDemandSignal.
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 (client OccDemandSignalClient) ListOccDemandSignals(ctx context.Context, request ListOccDemandSignalsRequest) (response ListOccDemandSignalsResponse, err error)
ListOccDemandSignals Gets a list of OccDemandSignals.
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 (client OccDemandSignalClient) PatchOccDemandSignal(ctx context.Context, request PatchOccDemandSignalRequest) (response PatchOccDemandSignalResponse, err error)
PatchOccDemandSignal Updates the data of an OccDemandSignal.
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 (client *OccDemandSignalClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client OccDemandSignalClient) UpdateOccDemandSignal(ctx context.Context, request UpdateOccDemandSignalRequest) (response UpdateOccDemandSignalResponse, err error)
UpdateOccDemandSignal Updates a OccDemandSignal.
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()
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 (m OccDemandSignalCollection) String() string
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
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 (m OccDemandSignalData) String() string
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
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(val string) (OccDemandSignalLifecycleStateEnum, bool)
GetMappingOccDemandSignalLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOccDemandSignalLifecycleStateEnumValues() []OccDemandSignalLifecycleStateEnum
GetOccDemandSignalLifecycleStateEnumValues Enumerates the set of values for OccDemandSignalLifecycleStateEnum
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 (m OccDemandSignalSummary) String() string
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
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 (m OccDemandSignalValue) String() string
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
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 (m OccMetricAlarm) String() string
func (m *OccMetricAlarm) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
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
OccMetricAlarmClient a client for OccMetricAlarm
type OccMetricAlarmClient struct {
common.BaseClient
// contains filtered or unexported fields
}
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(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 (client *OccMetricAlarmClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
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.
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 (client OccMetricAlarmClient) DeleteOccMetricAlarm(ctx context.Context, request DeleteOccMetricAlarmRequest) (response DeleteOccMetricAlarmResponse, err error)
DeleteOccMetricAlarm Deletes the specified OccMetricAlarm resource.
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 (client OccMetricAlarmClient) GetOccMetricAlarm(ctx context.Context, request GetOccMetricAlarmRequest) (response GetOccMetricAlarmResponse, err error)
GetOccMetricAlarm Retrieves the specified OccMetricAlarm resource based on its identifier.
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 (client OccMetricAlarmClient) ListOccMetricAlarms(ctx context.Context, request ListOccMetricAlarmsRequest) (response ListOccMetricAlarmsResponse, err error)
ListOccMetricAlarms Gets a list of OccMetricAlarms.
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 (client *OccMetricAlarmClient) SetRegion(region string)
SetRegion overrides the region of this client.
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.
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()
OccMetricAlarmCollection Results of an OccMetricAlarm list operation.
type OccMetricAlarmCollection struct {
// Results list of OccMetricAlarmSummary objects.
Items []OccMetricAlarmSummary `mandatory:"true" json:"items"`
}
func (m OccMetricAlarmCollection) String() string
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
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(val string) (OccMetricAlarmFrequencyEnum, bool)
GetMappingOccMetricAlarmFrequencyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOccMetricAlarmFrequencyEnumValues() []OccMetricAlarmFrequencyEnum
GetOccMetricAlarmFrequencyEnumValues Enumerates the set of values for OccMetricAlarmFrequencyEnum
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(val string) (OccMetricAlarmLifecycleStateEnum, bool)
GetMappingOccMetricAlarmLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOccMetricAlarmLifecycleStateEnumValues() []OccMetricAlarmLifecycleStateEnum
GetOccMetricAlarmLifecycleStateEnumValues Enumerates the set of values for OccMetricAlarmLifecycleStateEnum
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 (m OccMetricAlarmSummary) String() string
func (m *OccMetricAlarmSummary) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
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
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(val string) (OccMetricAlarmSummaryThresholdTypeEnum, bool)
GetMappingOccMetricAlarmSummaryThresholdTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOccMetricAlarmSummaryThresholdTypeEnumValues() []OccMetricAlarmSummaryThresholdTypeEnum
GetOccMetricAlarmSummaryThresholdTypeEnumValues Enumerates the set of values for OccMetricAlarmSummaryThresholdTypeEnum
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(val string) (OccMetricAlarmThresholdTypeEnum, bool)
GetMappingOccMetricAlarmThresholdTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOccMetricAlarmThresholdTypeEnumValues() []OccMetricAlarmThresholdTypeEnum
GetOccMetricAlarmThresholdTypeEnumValues Enumerates the set of values for OccMetricAlarmThresholdTypeEnum
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 (m PatchInsertInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchInsertInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchInsertInstruction) String() string
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
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(val string) (PatchInsertInstructionPositionEnum, bool)
GetMappingPatchInsertInstructionPositionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPatchInsertInstructionPositionEnumValues() []PatchInsertInstructionPositionEnum
GetPatchInsertInstructionPositionEnumValues Enumerates the set of values for PatchInsertInstructionPositionEnum
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 (m PatchInsertMultipleInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchInsertMultipleInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchInsertMultipleInstruction) String() string
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
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(val string) (PatchInsertMultipleInstructionPositionEnum, bool)
GetMappingPatchInsertMultipleInstructionPositionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPatchInsertMultipleInstructionPositionEnumValues() []PatchInsertMultipleInstructionPositionEnum
GetPatchInsertMultipleInstructionPositionEnumValues Enumerates the set of values for PatchInsertMultipleInstructionPositionEnum
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
}
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(val string) (PatchInstructionOperationEnum, bool)
GetMappingPatchInstructionOperationEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPatchInstructionOperationEnumValues() []PatchInstructionOperationEnum
GetPatchInstructionOperationEnumValues Enumerates the set of values for PatchInstructionOperationEnum
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 (m PatchMergeInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchMergeInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchMergeInstruction) String() string
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
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 (m PatchMoveInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchMoveInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchMoveInstruction) String() string
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
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(val string) (PatchMoveInstructionPositionEnum, bool)
GetMappingPatchMoveInstructionPositionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPatchMoveInstructionPositionEnumValues() []PatchMoveInstructionPositionEnum
GetPatchMoveInstructionPositionEnumValues Enumerates the set of values for PatchMoveInstructionPositionEnum
PatchOccDemandSignalDetails Demand Signal details to patch.
type PatchOccDemandSignalDetails struct {
// List of patch instructions.
Items []PatchInstruction `mandatory:"false" json:"items"`
}
func (m PatchOccDemandSignalDetails) String() string
func (m *PatchOccDemandSignalDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
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
PatchOccDemandSignalRequest wrapper for the PatchOccDemandSignal operation
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 (request PatchOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request PatchOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request PatchOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PatchOccDemandSignalRequest) String() string
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
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 (response PatchOccDemandSignalResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response PatchOccDemandSignalResponse) String() string
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 (m PatchProhibitInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchProhibitInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchProhibitInstruction) String() string
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
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 (m PatchRemoveInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchRemoveInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchRemoveInstruction) String() string
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
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 (m PatchReplaceInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchReplaceInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchReplaceInstruction) String() string
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
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 (m PatchRequireInstruction) GetSelection() *string
GetSelection returns Selection
func (m PatchRequireInstruction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PatchRequireInstruction) String() string
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
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(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
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 (m StorageResourceConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m StorageResourceConfiguration) String() string
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
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 (m UpdateOccDemandSignalDetails) String() string
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
UpdateOccDemandSignalRequest wrapper for the UpdateOccDemandSignal operation
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 (request UpdateOccDemandSignalRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateOccDemandSignalRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateOccDemandSignalRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateOccDemandSignalRequest) String() string
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
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 (response UpdateOccDemandSignalResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateOccDemandSignalResponse) String() string
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 (m UpdateOccMetricAlarmDetails) String() string
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
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(val string) (UpdateOccMetricAlarmDetailsLifecycleStateEnum, bool)
GetMappingUpdateOccMetricAlarmDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues() []UpdateOccMetricAlarmDetailsLifecycleStateEnum
GetUpdateOccMetricAlarmDetailsLifecycleStateEnumValues Enumerates the set of values for UpdateOccMetricAlarmDetailsLifecycleStateEnum
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(val string) (UpdateOccMetricAlarmDetailsThresholdTypeEnum, bool)
GetMappingUpdateOccMetricAlarmDetailsThresholdTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues() []UpdateOccMetricAlarmDetailsThresholdTypeEnum
GetUpdateOccMetricAlarmDetailsThresholdTypeEnumValues Enumerates the set of values for UpdateOccMetricAlarmDetailsThresholdTypeEnum
UpdateOccMetricAlarmRequest wrapper for the UpdateOccMetricAlarm operation
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 (request UpdateOccMetricAlarmRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateOccMetricAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateOccMetricAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateOccMetricAlarmRequest) String() string
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
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 (response UpdateOccMetricAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateOccMetricAlarmResponse) String() string