...

Package autoscaling

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

Overview ▾

Index ▾

func GetActionTypeEnumStringValues() []string
func GetExecutionScheduleTimezoneEnumStringValues() []string
func GetListAutoScalingConfigurationsSortByEnumStringValues() []string
func GetListAutoScalingConfigurationsSortOrderEnumStringValues() []string
func GetListAutoScalingPoliciesSortByEnumStringValues() []string
func GetListAutoScalingPoliciesSortOrderEnumStringValues() []string
func GetMetricMetricTypeEnumStringValues() []string
func GetResourcePowerActionActionEnumStringValues() []string
func GetThresholdOperatorEnumStringValues() []string
type Action
    func (m Action) String() string
    func (m Action) ValidateEnumValue() (bool, error)
type ActionTypeEnum
    func GetActionTypeEnumValues() []ActionTypeEnum
    func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
type AutoScalingClient
    func NewAutoScalingClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AutoScalingClient, err error)
    func NewAutoScalingClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AutoScalingClient, err error)
    func (client AutoScalingClient) ChangeAutoScalingConfigurationCompartment(ctx context.Context, request ChangeAutoScalingConfigurationCompartmentRequest) (response ChangeAutoScalingConfigurationCompartmentResponse, err error)
    func (client *AutoScalingClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client AutoScalingClient) CreateAutoScalingConfiguration(ctx context.Context, request CreateAutoScalingConfigurationRequest) (response CreateAutoScalingConfigurationResponse, err error)
    func (client AutoScalingClient) CreateAutoScalingPolicy(ctx context.Context, request CreateAutoScalingPolicyRequest) (response CreateAutoScalingPolicyResponse, err error)
    func (client AutoScalingClient) DeleteAutoScalingConfiguration(ctx context.Context, request DeleteAutoScalingConfigurationRequest) (response DeleteAutoScalingConfigurationResponse, err error)
    func (client AutoScalingClient) DeleteAutoScalingPolicy(ctx context.Context, request DeleteAutoScalingPolicyRequest) (response DeleteAutoScalingPolicyResponse, err error)
    func (client AutoScalingClient) GetAutoScalingConfiguration(ctx context.Context, request GetAutoScalingConfigurationRequest) (response GetAutoScalingConfigurationResponse, err error)
    func (client AutoScalingClient) GetAutoScalingPolicy(ctx context.Context, request GetAutoScalingPolicyRequest) (response GetAutoScalingPolicyResponse, err error)
    func (client AutoScalingClient) ListAutoScalingConfigurations(ctx context.Context, request ListAutoScalingConfigurationsRequest) (response ListAutoScalingConfigurationsResponse, err error)
    func (client AutoScalingClient) ListAutoScalingPolicies(ctx context.Context, request ListAutoScalingPoliciesRequest) (response ListAutoScalingPoliciesResponse, err error)
    func (client *AutoScalingClient) SetRegion(region string)
    func (client AutoScalingClient) UpdateAutoScalingConfiguration(ctx context.Context, request UpdateAutoScalingConfigurationRequest) (response UpdateAutoScalingConfigurationResponse, err error)
    func (client AutoScalingClient) UpdateAutoScalingPolicy(ctx context.Context, request UpdateAutoScalingPolicyRequest) (response UpdateAutoScalingPolicyResponse, err error)
type AutoScalingConfiguration
    func (m AutoScalingConfiguration) String() string
    func (m *AutoScalingConfiguration) UnmarshalJSON(data []byte) (e error)
    func (m AutoScalingConfiguration) ValidateEnumValue() (bool, error)
type AutoScalingConfigurationSummary
    func (m AutoScalingConfigurationSummary) String() string
    func (m *AutoScalingConfigurationSummary) UnmarshalJSON(data []byte) (e error)
    func (m AutoScalingConfigurationSummary) ValidateEnumValue() (bool, error)
type AutoScalingPolicy
type AutoScalingPolicySummary
    func (m AutoScalingPolicySummary) String() string
    func (m AutoScalingPolicySummary) ValidateEnumValue() (bool, error)
type Capacity
    func (m Capacity) String() string
    func (m Capacity) ValidateEnumValue() (bool, error)
type ChangeAutoScalingCompartmentDetails
    func (m ChangeAutoScalingCompartmentDetails) String() string
    func (m ChangeAutoScalingCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeAutoScalingConfigurationCompartmentRequest
    func (request ChangeAutoScalingConfigurationCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeAutoScalingConfigurationCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeAutoScalingConfigurationCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeAutoScalingConfigurationCompartmentRequest) String() string
    func (request ChangeAutoScalingConfigurationCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeAutoScalingConfigurationCompartmentResponse
    func (response ChangeAutoScalingConfigurationCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeAutoScalingConfigurationCompartmentResponse) String() string
type Condition
    func (m Condition) String() string
    func (m Condition) ValidateEnumValue() (bool, error)
type CreateAutoScalingConfigurationDetails
    func (m CreateAutoScalingConfigurationDetails) String() string
    func (m *CreateAutoScalingConfigurationDetails) UnmarshalJSON(data []byte) (e error)
    func (m CreateAutoScalingConfigurationDetails) ValidateEnumValue() (bool, error)
type CreateAutoScalingConfigurationRequest
    func (request CreateAutoScalingConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateAutoScalingConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateAutoScalingConfigurationRequest) String() string
    func (request CreateAutoScalingConfigurationRequest) ValidateEnumValue() (bool, error)
type CreateAutoScalingConfigurationResponse
    func (response CreateAutoScalingConfigurationResponse) HTTPResponse() *http.Response
    func (response CreateAutoScalingConfigurationResponse) String() string
type CreateAutoScalingPolicyDetails
type CreateAutoScalingPolicyRequest
    func (request CreateAutoScalingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateAutoScalingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateAutoScalingPolicyRequest) String() string
    func (request CreateAutoScalingPolicyRequest) ValidateEnumValue() (bool, error)
type CreateAutoScalingPolicyResponse
    func (response CreateAutoScalingPolicyResponse) HTTPResponse() *http.Response
    func (response CreateAutoScalingPolicyResponse) String() string
type CreateConditionDetails
    func (m CreateConditionDetails) String() string
    func (m CreateConditionDetails) ValidateEnumValue() (bool, error)
type CreateScheduledPolicyDetails
    func (m CreateScheduledPolicyDetails) GetCapacity() *Capacity
    func (m CreateScheduledPolicyDetails) GetDisplayName() *string
    func (m CreateScheduledPolicyDetails) GetIsEnabled() *bool
    func (m CreateScheduledPolicyDetails) MarshalJSON() (buff []byte, e error)
    func (m CreateScheduledPolicyDetails) String() string
    func (m *CreateScheduledPolicyDetails) UnmarshalJSON(data []byte) (e error)
    func (m CreateScheduledPolicyDetails) ValidateEnumValue() (bool, error)
type CreateThresholdPolicyDetails
    func (m CreateThresholdPolicyDetails) GetCapacity() *Capacity
    func (m CreateThresholdPolicyDetails) GetDisplayName() *string
    func (m CreateThresholdPolicyDetails) GetIsEnabled() *bool
    func (m CreateThresholdPolicyDetails) MarshalJSON() (buff []byte, e error)
    func (m CreateThresholdPolicyDetails) String() string
    func (m CreateThresholdPolicyDetails) ValidateEnumValue() (bool, error)
type CronExecutionSchedule
    func (m CronExecutionSchedule) GetTimezone() ExecutionScheduleTimezoneEnum
    func (m CronExecutionSchedule) MarshalJSON() (buff []byte, e error)
    func (m CronExecutionSchedule) String() string
    func (m CronExecutionSchedule) ValidateEnumValue() (bool, error)
type DeleteAutoScalingConfigurationRequest
    func (request DeleteAutoScalingConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteAutoScalingConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteAutoScalingConfigurationRequest) String() string
    func (request DeleteAutoScalingConfigurationRequest) ValidateEnumValue() (bool, error)
type DeleteAutoScalingConfigurationResponse
    func (response DeleteAutoScalingConfigurationResponse) HTTPResponse() *http.Response
    func (response DeleteAutoScalingConfigurationResponse) String() string
type DeleteAutoScalingPolicyRequest
    func (request DeleteAutoScalingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteAutoScalingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteAutoScalingPolicyRequest) String() string
    func (request DeleteAutoScalingPolicyRequest) ValidateEnumValue() (bool, error)
type DeleteAutoScalingPolicyResponse
    func (response DeleteAutoScalingPolicyResponse) HTTPResponse() *http.Response
    func (response DeleteAutoScalingPolicyResponse) String() string
type ExecutionSchedule
type ExecutionScheduleTimezoneEnum
    func GetExecutionScheduleTimezoneEnumValues() []ExecutionScheduleTimezoneEnum
    func GetMappingExecutionScheduleTimezoneEnum(val string) (ExecutionScheduleTimezoneEnum, bool)
type GetAutoScalingConfigurationRequest
    func (request GetAutoScalingConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetAutoScalingConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request GetAutoScalingConfigurationRequest) String() string
    func (request GetAutoScalingConfigurationRequest) ValidateEnumValue() (bool, error)
type GetAutoScalingConfigurationResponse
    func (response GetAutoScalingConfigurationResponse) HTTPResponse() *http.Response
    func (response GetAutoScalingConfigurationResponse) String() string
type GetAutoScalingPolicyRequest
    func (request GetAutoScalingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetAutoScalingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy
    func (request GetAutoScalingPolicyRequest) String() string
    func (request GetAutoScalingPolicyRequest) ValidateEnumValue() (bool, error)
type GetAutoScalingPolicyResponse
    func (response GetAutoScalingPolicyResponse) HTTPResponse() *http.Response
    func (response GetAutoScalingPolicyResponse) String() string
type InstancePoolResource
    func (m InstancePoolResource) GetId() *string
    func (m InstancePoolResource) MarshalJSON() (buff []byte, e error)
    func (m InstancePoolResource) String() string
    func (m InstancePoolResource) ValidateEnumValue() (bool, error)
type ListAutoScalingConfigurationsRequest
    func (request ListAutoScalingConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListAutoScalingConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListAutoScalingConfigurationsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListAutoScalingConfigurationsRequest) String() string
    func (request ListAutoScalingConfigurationsRequest) ValidateEnumValue() (bool, error)
type ListAutoScalingConfigurationsResponse
    func (response ListAutoScalingConfigurationsResponse) HTTPResponse() *http.Response
    func (response ListAutoScalingConfigurationsResponse) String() string
type ListAutoScalingConfigurationsSortByEnum
    func GetListAutoScalingConfigurationsSortByEnumValues() []ListAutoScalingConfigurationsSortByEnum
    func GetMappingListAutoScalingConfigurationsSortByEnum(val string) (ListAutoScalingConfigurationsSortByEnum, bool)
type ListAutoScalingConfigurationsSortOrderEnum
    func GetListAutoScalingConfigurationsSortOrderEnumValues() []ListAutoScalingConfigurationsSortOrderEnum
    func GetMappingListAutoScalingConfigurationsSortOrderEnum(val string) (ListAutoScalingConfigurationsSortOrderEnum, bool)
type ListAutoScalingPoliciesRequest
    func (request ListAutoScalingPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListAutoScalingPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListAutoScalingPoliciesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListAutoScalingPoliciesRequest) String() string
    func (request ListAutoScalingPoliciesRequest) ValidateEnumValue() (bool, error)
type ListAutoScalingPoliciesResponse
    func (response ListAutoScalingPoliciesResponse) HTTPResponse() *http.Response
    func (response ListAutoScalingPoliciesResponse) String() string
type ListAutoScalingPoliciesSortByEnum
    func GetListAutoScalingPoliciesSortByEnumValues() []ListAutoScalingPoliciesSortByEnum
    func GetMappingListAutoScalingPoliciesSortByEnum(val string) (ListAutoScalingPoliciesSortByEnum, bool)
type ListAutoScalingPoliciesSortOrderEnum
    func GetListAutoScalingPoliciesSortOrderEnumValues() []ListAutoScalingPoliciesSortOrderEnum
    func GetMappingListAutoScalingPoliciesSortOrderEnum(val string) (ListAutoScalingPoliciesSortOrderEnum, bool)
type Metric
    func (m Metric) String() string
    func (m Metric) ValidateEnumValue() (bool, error)
type MetricMetricTypeEnum
    func GetMappingMetricMetricTypeEnum(val string) (MetricMetricTypeEnum, bool)
    func GetMetricMetricTypeEnumValues() []MetricMetricTypeEnum
type Resource
type ResourceAction
type ResourcePowerAction
    func (m ResourcePowerAction) MarshalJSON() (buff []byte, e error)
    func (m ResourcePowerAction) String() string
    func (m ResourcePowerAction) ValidateEnumValue() (bool, error)
type ResourcePowerActionActionEnum
    func GetMappingResourcePowerActionActionEnum(val string) (ResourcePowerActionActionEnum, bool)
    func GetResourcePowerActionActionEnumValues() []ResourcePowerActionActionEnum
type ScheduledPolicy
    func (m ScheduledPolicy) GetCapacity() *Capacity
    func (m ScheduledPolicy) GetDisplayName() *string
    func (m ScheduledPolicy) GetId() *string
    func (m ScheduledPolicy) GetIsEnabled() *bool
    func (m ScheduledPolicy) GetTimeCreated() *common.SDKTime
    func (m ScheduledPolicy) MarshalJSON() (buff []byte, e error)
    func (m ScheduledPolicy) String() string
    func (m *ScheduledPolicy) UnmarshalJSON(data []byte) (e error)
    func (m ScheduledPolicy) ValidateEnumValue() (bool, error)
type Threshold
    func (m Threshold) String() string
    func (m Threshold) ValidateEnumValue() (bool, error)
type ThresholdOperatorEnum
    func GetMappingThresholdOperatorEnum(val string) (ThresholdOperatorEnum, bool)
    func GetThresholdOperatorEnumValues() []ThresholdOperatorEnum
type ThresholdPolicy
    func (m ThresholdPolicy) GetCapacity() *Capacity
    func (m ThresholdPolicy) GetDisplayName() *string
    func (m ThresholdPolicy) GetId() *string
    func (m ThresholdPolicy) GetIsEnabled() *bool
    func (m ThresholdPolicy) GetTimeCreated() *common.SDKTime
    func (m ThresholdPolicy) MarshalJSON() (buff []byte, e error)
    func (m ThresholdPolicy) String() string
    func (m ThresholdPolicy) ValidateEnumValue() (bool, error)
type UpdateAutoScalingConfigurationDetails
    func (m UpdateAutoScalingConfigurationDetails) String() string
    func (m UpdateAutoScalingConfigurationDetails) ValidateEnumValue() (bool, error)
type UpdateAutoScalingConfigurationRequest
    func (request UpdateAutoScalingConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateAutoScalingConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateAutoScalingConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateAutoScalingConfigurationRequest) String() string
    func (request UpdateAutoScalingConfigurationRequest) ValidateEnumValue() (bool, error)
type UpdateAutoScalingConfigurationResponse
    func (response UpdateAutoScalingConfigurationResponse) HTTPResponse() *http.Response
    func (response UpdateAutoScalingConfigurationResponse) String() string
type UpdateAutoScalingPolicyDetails
type UpdateAutoScalingPolicyRequest
    func (request UpdateAutoScalingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateAutoScalingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateAutoScalingPolicyRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateAutoScalingPolicyRequest) String() string
    func (request UpdateAutoScalingPolicyRequest) ValidateEnumValue() (bool, error)
type UpdateAutoScalingPolicyResponse
    func (response UpdateAutoScalingPolicyResponse) HTTPResponse() *http.Response
    func (response UpdateAutoScalingPolicyResponse) String() string
type UpdateConditionDetails
    func (m UpdateConditionDetails) String() string
    func (m UpdateConditionDetails) ValidateEnumValue() (bool, error)
type UpdateScheduledPolicyDetails
    func (m UpdateScheduledPolicyDetails) GetCapacity() *Capacity
    func (m UpdateScheduledPolicyDetails) GetDisplayName() *string
    func (m UpdateScheduledPolicyDetails) GetIsEnabled() *bool
    func (m UpdateScheduledPolicyDetails) MarshalJSON() (buff []byte, e error)
    func (m UpdateScheduledPolicyDetails) String() string
    func (m *UpdateScheduledPolicyDetails) UnmarshalJSON(data []byte) (e error)
    func (m UpdateScheduledPolicyDetails) ValidateEnumValue() (bool, error)
type UpdateThresholdPolicyDetails
    func (m UpdateThresholdPolicyDetails) GetCapacity() *Capacity
    func (m UpdateThresholdPolicyDetails) GetDisplayName() *string
    func (m UpdateThresholdPolicyDetails) GetIsEnabled() *bool
    func (m UpdateThresholdPolicyDetails) MarshalJSON() (buff []byte, e error)
    func (m UpdateThresholdPolicyDetails) String() string
    func (m UpdateThresholdPolicyDetails) ValidateEnumValue() (bool, error)

Package files

action.go auto_scaling_configuration.go auto_scaling_configuration_summary.go auto_scaling_policy.go auto_scaling_policy_summary.go autoscaling_client.go capacity.go change_auto_scaling_compartment_details.go change_auto_scaling_configuration_compartment_request_response.go condition.go create_auto_scaling_configuration_details.go create_auto_scaling_configuration_request_response.go create_auto_scaling_policy_details.go create_auto_scaling_policy_request_response.go create_condition_details.go create_scheduled_policy_details.go create_threshold_policy_details.go cron_execution_schedule.go delete_auto_scaling_configuration_request_response.go delete_auto_scaling_policy_request_response.go execution_schedule.go get_auto_scaling_configuration_request_response.go get_auto_scaling_policy_request_response.go instance_pool_resource.go list_auto_scaling_configurations_request_response.go list_auto_scaling_policies_request_response.go metric.go resource.go resource_action.go resource_power_action.go scheduled_policy.go threshold.go threshold_policy.go update_auto_scaling_configuration_details.go update_auto_scaling_configuration_request_response.go update_auto_scaling_policy_details.go update_auto_scaling_policy_request_response.go update_condition_details.go update_scheduled_policy_details.go update_threshold_policy_details.go

func GetActionTypeEnumStringValues

func GetActionTypeEnumStringValues() []string

GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum

func GetExecutionScheduleTimezoneEnumStringValues

func GetExecutionScheduleTimezoneEnumStringValues() []string

GetExecutionScheduleTimezoneEnumStringValues Enumerates the set of values in String for ExecutionScheduleTimezoneEnum

func GetListAutoScalingConfigurationsSortByEnumStringValues

func GetListAutoScalingConfigurationsSortByEnumStringValues() []string

GetListAutoScalingConfigurationsSortByEnumStringValues Enumerates the set of values in String for ListAutoScalingConfigurationsSortByEnum

func GetListAutoScalingConfigurationsSortOrderEnumStringValues

func GetListAutoScalingConfigurationsSortOrderEnumStringValues() []string

GetListAutoScalingConfigurationsSortOrderEnumStringValues Enumerates the set of values in String for ListAutoScalingConfigurationsSortOrderEnum

func GetListAutoScalingPoliciesSortByEnumStringValues

func GetListAutoScalingPoliciesSortByEnumStringValues() []string

GetListAutoScalingPoliciesSortByEnumStringValues Enumerates the set of values in String for ListAutoScalingPoliciesSortByEnum

func GetListAutoScalingPoliciesSortOrderEnumStringValues

func GetListAutoScalingPoliciesSortOrderEnumStringValues() []string

GetListAutoScalingPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListAutoScalingPoliciesSortOrderEnum

func GetMetricMetricTypeEnumStringValues

func GetMetricMetricTypeEnumStringValues() []string

GetMetricMetricTypeEnumStringValues Enumerates the set of values in String for MetricMetricTypeEnum

func GetResourcePowerActionActionEnumStringValues

func GetResourcePowerActionActionEnumStringValues() []string

GetResourcePowerActionActionEnumStringValues Enumerates the set of values in String for ResourcePowerActionActionEnum

func GetThresholdOperatorEnumStringValues

func GetThresholdOperatorEnumStringValues() []string

GetThresholdOperatorEnumStringValues Enumerates the set of values in String for ThresholdOperatorEnum

type Action

Action The action to take when autoscaling is triggered.

type Action struct {

    // The type of action to take.
    Type ActionTypeEnum `mandatory:"true" json:"type"`

    // To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of
    // instances), provide a negative value.
    Value *int `mandatory:"true" json:"value"`
}

func (Action) String

func (m Action) String() string

func (Action) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ActionTypeEnum

ActionTypeEnum Enum with underlying type: string

type ActionTypeEnum string

Set of constants representing the allowable values for ActionTypeEnum

const (
    ActionTypeChangeCountBy ActionTypeEnum = "CHANGE_COUNT_BY"
)

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

func GetMappingActionTypeEnum

func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)

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

type AutoScalingClient

AutoScalingClient a client for AutoScaling

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

func NewAutoScalingClientWithConfigurationProvider

func NewAutoScalingClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AutoScalingClient, err error)

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

func NewAutoScalingClientWithOboToken

func NewAutoScalingClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AutoScalingClient, err error)

NewAutoScalingClientWithOboToken Creates a new default AutoScaling 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 (AutoScalingClient) ChangeAutoScalingConfigurationCompartment

func (client AutoScalingClient) ChangeAutoScalingConfigurationCompartment(ctx context.Context, request ChangeAutoScalingConfigurationCompartmentRequest) (response ChangeAutoScalingConfigurationCompartmentResponse, err error)

ChangeAutoScalingConfigurationCompartment Moves an autoscaling configuration into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). When you move an autoscaling configuration to a different compartment, associated resources such as instance pools are not moved.

# See also

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

func (*AutoScalingClient) ConfigurationProvider

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

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

func (AutoScalingClient) CreateAutoScalingConfiguration

func (client AutoScalingClient) CreateAutoScalingConfiguration(ctx context.Context, request CreateAutoScalingConfigurationRequest) (response CreateAutoScalingConfigurationResponse, err error)

CreateAutoScalingConfiguration Creates an autoscaling configuration.

# See also

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

func (AutoScalingClient) CreateAutoScalingPolicy

func (client AutoScalingClient) CreateAutoScalingPolicy(ctx context.Context, request CreateAutoScalingPolicyRequest) (response CreateAutoScalingPolicyResponse, err error)

CreateAutoScalingPolicy Creates an autoscaling policy for the specified autoscaling configuration. You can create the following types of autoscaling policies: - **Schedule-based:** Autoscaling events take place at the specific times that you schedule. - **Threshold-based:** An autoscaling action is triggered when a performance metric meets or exceeds a threshold. An autoscaling configuration can either have multiple schedule-based autoscaling policies, or one threshold-based autoscaling policy.

# See also

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

func (AutoScalingClient) DeleteAutoScalingConfiguration

func (client AutoScalingClient) DeleteAutoScalingConfiguration(ctx context.Context, request DeleteAutoScalingConfigurationRequest) (response DeleteAutoScalingConfigurationResponse, err error)

DeleteAutoScalingConfiguration Deletes an autoscaling configuration.

# See also

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

func (AutoScalingClient) DeleteAutoScalingPolicy

func (client AutoScalingClient) DeleteAutoScalingPolicy(ctx context.Context, request DeleteAutoScalingPolicyRequest) (response DeleteAutoScalingPolicyResponse, err error)

DeleteAutoScalingPolicy Deletes an autoscaling policy for the specified autoscaling configuration.

# See also

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

func (AutoScalingClient) GetAutoScalingConfiguration

func (client AutoScalingClient) GetAutoScalingConfiguration(ctx context.Context, request GetAutoScalingConfigurationRequest) (response GetAutoScalingConfigurationResponse, err error)

GetAutoScalingConfiguration Gets information about the specified autoscaling configuration.

# See also

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

func (AutoScalingClient) GetAutoScalingPolicy

func (client AutoScalingClient) GetAutoScalingPolicy(ctx context.Context, request GetAutoScalingPolicyRequest) (response GetAutoScalingPolicyResponse, err error)

GetAutoScalingPolicy Gets information about the specified autoscaling policy in the specified autoscaling configuration.

# See also

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

func (AutoScalingClient) ListAutoScalingConfigurations

func (client AutoScalingClient) ListAutoScalingConfigurations(ctx context.Context, request ListAutoScalingConfigurationsRequest) (response ListAutoScalingConfigurationsResponse, err error)

ListAutoScalingConfigurations Lists autoscaling configurations in the specifed compartment.

# See also

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

func (AutoScalingClient) ListAutoScalingPolicies

func (client AutoScalingClient) ListAutoScalingPolicies(ctx context.Context, request ListAutoScalingPoliciesRequest) (response ListAutoScalingPoliciesResponse, err error)

ListAutoScalingPolicies Lists the autoscaling policies in the specified autoscaling configuration.

# See also

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

func (*AutoScalingClient) SetRegion

func (client *AutoScalingClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (AutoScalingClient) UpdateAutoScalingConfiguration

func (client AutoScalingClient) UpdateAutoScalingConfiguration(ctx context.Context, request UpdateAutoScalingConfigurationRequest) (response UpdateAutoScalingConfigurationResponse, err error)

UpdateAutoScalingConfiguration Updates certain fields on the specified autoscaling configuration, such as the name, the cooldown period, and whether the autoscaling configuration is enabled.

# See also

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

func (AutoScalingClient) UpdateAutoScalingPolicy

func (client AutoScalingClient) UpdateAutoScalingPolicy(ctx context.Context, request UpdateAutoScalingPolicyRequest) (response UpdateAutoScalingPolicyResponse, err error)

UpdateAutoScalingPolicy Updates an autoscaling policy in the specified autoscaling configuration.

# See also

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

type AutoScalingConfiguration

AutoScalingConfiguration An autoscaling configuration lets you dynamically scale the resources in a Compute instance pool. For more information, see Autoscaling (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/autoscalinginstancepools.htm).

type AutoScalingConfiguration struct {

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

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

    Resource Resource `mandatory:"true" json:"resource"`

    // Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that
    // trigger autoscaling actions and the actions to take.
    Policies []AutoScalingPolicy `mandatory:"true" json:"policies"`

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

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

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

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

    // For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
    // The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which
    // is also the default. The cooldown period starts when the instance pool reaches the running state.
    // For schedule-based autoscaling policies, this value is not used.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    // The maximum number of resources to scale out to.
    MaxResourceCount *int `mandatory:"false" json:"maxResourceCount"`

    // The minimum number of resources to scale in to.
    MinResourceCount *int `mandatory:"false" json:"minResourceCount"`
}

func (AutoScalingConfiguration) String

func (m AutoScalingConfiguration) String() string

func (*AutoScalingConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (AutoScalingConfiguration) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type AutoScalingConfigurationSummary

AutoScalingConfigurationSummary Summary information for an autoscaling configuration.

type AutoScalingConfigurationSummary struct {

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

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

    Resource Resource `mandatory:"true" json:"resource"`

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

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

    // For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
    // The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which
    // is also the default. The cooldown period starts when the instance pool reaches the running state.
    // For schedule-based autoscaling policies, this value is not used.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

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

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

func (AutoScalingConfigurationSummary) String

func (m AutoScalingConfigurationSummary) String() string

func (*AutoScalingConfigurationSummary) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (AutoScalingConfigurationSummary) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type AutoScalingPolicy

AutoScalingPolicy Autoscaling policies define the criteria that trigger autoscaling actions and the actions to take. An autoscaling policy is part of an autoscaling configuration. For more information, see Autoscaling (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/autoscalinginstancepools.htm). You can create the following types of autoscaling policies:

- **Schedule-based:** Autoscaling events take place at the specific times that you schedule.
- **Threshold-based:** An autoscaling action is triggered when a performance metric meets or exceeds a threshold.
type AutoScalingPolicy interface {

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    GetTimeCreated() *common.SDKTime

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity

    // The ID of the autoscaling policy that is assigned after creation.
    GetId() *string

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string

    // Whether the autoscaling policy is enabled.
    GetIsEnabled() *bool
}

type AutoScalingPolicySummary

AutoScalingPolicySummary Summary information for an autoscaling policy.

type AutoScalingPolicySummary struct {

    // The ID of the autoscaling policy that is assigned after creation.
    Id *string `mandatory:"true" json:"id"`

    // The type of autoscaling policy.
    PolicyType *string `mandatory:"true" json:"policyType"`

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

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

func (AutoScalingPolicySummary) String

func (m AutoScalingPolicySummary) String() string

func (AutoScalingPolicySummary) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type Capacity

Capacity Capacity limits for the instance pool.

type Capacity struct {

    // For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed
    // to increase to (scale out).
    // For a schedule-based autoscaling policy, this value is not used.
    Max *int `mandatory:"false" json:"max"`

    // For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed
    // to decrease to (scale in).
    // For a schedule-based autoscaling policy, this value is not used.
    Min *int `mandatory:"false" json:"min"`

    // For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool
    // immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of
    // instances is automatically adjusted from this initial number to a number that is based on the limits that
    // you set.
    // For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule
    // that's defined in the autoscaling policy.
    Initial *int `mandatory:"false" json:"initial"`
}

func (Capacity) String

func (m Capacity) String() string

func (Capacity) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ChangeAutoScalingCompartmentDetails

ChangeAutoScalingCompartmentDetails The configuration details for the move operation.

type ChangeAutoScalingCompartmentDetails struct {

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

func (ChangeAutoScalingCompartmentDetails) String

func (m ChangeAutoScalingCompartmentDetails) String() string

func (ChangeAutoScalingCompartmentDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ChangeAutoScalingConfigurationCompartmentRequest

ChangeAutoScalingConfigurationCompartmentRequest wrapper for the ChangeAutoScalingConfigurationCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/ChangeAutoScalingConfigurationCompartment.go.html to see an example of how to use ChangeAutoScalingConfigurationCompartmentRequest.

type ChangeAutoScalingConfigurationCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Request to change the compartment of given autoscaling configuration.
    ChangeCompartmentDetails ChangeAutoScalingCompartmentDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeAutoScalingConfigurationCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeAutoScalingConfigurationCompartmentRequest) RetryPolicy

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

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

func (ChangeAutoScalingConfigurationCompartmentRequest) String

func (request ChangeAutoScalingConfigurationCompartmentRequest) String() string

func (ChangeAutoScalingConfigurationCompartmentRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ChangeAutoScalingConfigurationCompartmentResponse

ChangeAutoScalingConfigurationCompartmentResponse wrapper for the ChangeAutoScalingConfigurationCompartment operation

type ChangeAutoScalingConfigurationCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The resulting etag of the autoscaling configuration affected by this operation.
    // 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 (ChangeAutoScalingConfigurationCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeAutoScalingConfigurationCompartmentResponse) String

func (response ChangeAutoScalingConfigurationCompartmentResponse) String() string

type Condition

Condition A rule that defines a specific autoscaling action to take (scale in or scale out) and the metric that triggers that action.

type Condition struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

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

    // ID of the condition that is assigned after creation.
    Id *string `mandatory:"false" json:"id"`
}

func (Condition) String

func (m Condition) String() string

func (Condition) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAutoScalingConfigurationDetails

CreateAutoScalingConfigurationDetails Creation details for an autoscaling configuration.

type CreateAutoScalingConfigurationDetails struct {

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

    Policies []CreateAutoScalingPolicyDetails `mandatory:"true" json:"policies"`

    Resource Resource `mandatory:"true" json:"resource"`

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

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

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

    // For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
    // The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which
    // is also the default. The cooldown period starts when the instance pool reaches the running state.
    // For schedule-based autoscaling policies, this value is not used.
    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

func (CreateAutoScalingConfigurationDetails) String

func (m CreateAutoScalingConfigurationDetails) String() string

func (*CreateAutoScalingConfigurationDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (CreateAutoScalingConfigurationDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAutoScalingConfigurationRequest

CreateAutoScalingConfigurationRequest wrapper for the CreateAutoScalingConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/CreateAutoScalingConfiguration.go.html to see an example of how to use CreateAutoScalingConfigurationRequest.

type CreateAutoScalingConfigurationRequest struct {

    // Creation details for an autoscaling configuration.
    CreateAutoScalingConfigurationDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (CreateAutoScalingConfigurationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateAutoScalingConfigurationRequest) RetryPolicy

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

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

func (CreateAutoScalingConfigurationRequest) String

func (request CreateAutoScalingConfigurationRequest) String() string

func (CreateAutoScalingConfigurationRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAutoScalingConfigurationResponse

CreateAutoScalingConfigurationResponse wrapper for the CreateAutoScalingConfiguration operation

type CreateAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `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 (CreateAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingConfigurationResponse) String

func (response CreateAutoScalingConfigurationResponse) String() string

type CreateAutoScalingPolicyDetails

CreateAutoScalingPolicyDetails Creation details for an autoscaling policy. You can create the following types of autoscaling policies: - **Schedule-based:** Autoscaling events take place at the specific times that you schedule. - **Threshold-based:** An autoscaling action is triggered when a performance metric meets or exceeds a threshold. An autoscaling configuration can either have multiple schedule-based autoscaling policies, or one threshold-based autoscaling policy.

type CreateAutoScalingPolicyDetails interface {

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string

    // Whether the autoscaling policy is enabled.
    GetIsEnabled() *bool
}

type CreateAutoScalingPolicyRequest

CreateAutoScalingPolicyRequest wrapper for the CreateAutoScalingPolicy operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/CreateAutoScalingPolicy.go.html to see an example of how to use CreateAutoScalingPolicyRequest.

type CreateAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Creation details for an autoscaling policy.
    CreateAutoScalingPolicyDetails `contributesTo:"body"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (CreateAutoScalingPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateAutoScalingPolicyRequest) RetryPolicy

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

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

func (CreateAutoScalingPolicyRequest) String

func (request CreateAutoScalingPolicyRequest) String() string

func (CreateAutoScalingPolicyRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateAutoScalingPolicyResponse

CreateAutoScalingPolicyResponse wrapper for the CreateAutoScalingPolicy operation

type CreateAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `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 (CreateAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingPolicyResponse) String

func (response CreateAutoScalingPolicyResponse) String() string

type CreateConditionDetails

CreateConditionDetails Creation details for a condition in a threshold-based autoscaling policy.

type CreateConditionDetails struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

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

func (CreateConditionDetails) String

func (m CreateConditionDetails) String() string

func (CreateConditionDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateScheduledPolicyDetails

CreateScheduledPolicyDetails Creation details for a schedule-based autoscaling policy. In a schedule-based autoscaling policy, an autoscaling action is triggered at the scheduled execution time.

type CreateScheduledPolicyDetails struct {
    ExecutionSchedule ExecutionSchedule `mandatory:"true" json:"executionSchedule"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

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

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    ResourceAction ResourceAction `mandatory:"false" json:"resourceAction"`
}

func (CreateScheduledPolicyDetails) GetCapacity

func (m CreateScheduledPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (CreateScheduledPolicyDetails) GetDisplayName

func (m CreateScheduledPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (CreateScheduledPolicyDetails) GetIsEnabled

func (m CreateScheduledPolicyDetails) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (CreateScheduledPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (CreateScheduledPolicyDetails) String

func (m CreateScheduledPolicyDetails) String() string

func (*CreateScheduledPolicyDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (CreateScheduledPolicyDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateThresholdPolicyDetails

CreateThresholdPolicyDetails Creation details for a threshold-based autoscaling policy. In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.

type CreateThresholdPolicyDetails struct {
    Rules []CreateConditionDetails `mandatory:"true" json:"rules"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

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

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

func (CreateThresholdPolicyDetails) GetCapacity

func (m CreateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (CreateThresholdPolicyDetails) GetDisplayName

func (m CreateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (CreateThresholdPolicyDetails) GetIsEnabled

func (m CreateThresholdPolicyDetails) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (CreateThresholdPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (CreateThresholdPolicyDetails) String

func (m CreateThresholdPolicyDetails) String() string

func (CreateThresholdPolicyDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CronExecutionSchedule

CronExecutionSchedule An autoscaling execution schedule that uses a cron expression.

type CronExecutionSchedule struct {

    // A cron expression that represents the time at which to execute the autoscaling policy.
    // Cron expressions have this format: `<second> <minute> <hour> <day of month> <month> <day of week> <year>`
    // You can use special characters that are supported with the Quartz cron implementation.
    // You must specify `0` as the value for seconds.
    // Example: `0 15 10 ? * *`
    Expression *string `mandatory:"true" json:"expression"`

    // The time zone for the execution schedule.
    Timezone ExecutionScheduleTimezoneEnum `mandatory:"true" json:"timezone"`
}

func (CronExecutionSchedule) GetTimezone

func (m CronExecutionSchedule) GetTimezone() ExecutionScheduleTimezoneEnum

GetTimezone returns Timezone

func (CronExecutionSchedule) MarshalJSON

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

MarshalJSON marshals to json representation

func (CronExecutionSchedule) String

func (m CronExecutionSchedule) String() string

func (CronExecutionSchedule) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteAutoScalingConfigurationRequest

DeleteAutoScalingConfigurationRequest wrapper for the DeleteAutoScalingConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/DeleteAutoScalingConfiguration.go.html to see an example of how to use DeleteAutoScalingConfigurationRequest.

type DeleteAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

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

    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 (DeleteAutoScalingConfigurationRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteAutoScalingConfigurationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteAutoScalingConfigurationRequest) RetryPolicy

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

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

func (DeleteAutoScalingConfigurationRequest) String

func (request DeleteAutoScalingConfigurationRequest) String() string

func (DeleteAutoScalingConfigurationRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteAutoScalingConfigurationResponse

DeleteAutoScalingConfigurationResponse wrapper for the DeleteAutoScalingConfiguration operation

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

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

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingConfigurationResponse) String

func (response DeleteAutoScalingConfigurationResponse) String() string

type DeleteAutoScalingPolicyRequest

DeleteAutoScalingPolicyRequest wrapper for the DeleteAutoScalingPolicy operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/DeleteAutoScalingPolicy.go.html to see an example of how to use DeleteAutoScalingPolicyRequest.

type DeleteAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

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

    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 (DeleteAutoScalingPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteAutoScalingPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteAutoScalingPolicyRequest) RetryPolicy

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

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

func (DeleteAutoScalingPolicyRequest) String

func (request DeleteAutoScalingPolicyRequest) String() string

func (DeleteAutoScalingPolicyRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteAutoScalingPolicyResponse

DeleteAutoScalingPolicyResponse wrapper for the DeleteAutoScalingPolicy operation

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

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

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingPolicyResponse) String

func (response DeleteAutoScalingPolicyResponse) String() string

type ExecutionSchedule

ExecutionSchedule An execution schedule for an autoscaling policy.

type ExecutionSchedule interface {

    // The time zone for the execution schedule.
    GetTimezone() ExecutionScheduleTimezoneEnum
}

type ExecutionScheduleTimezoneEnum

ExecutionScheduleTimezoneEnum Enum with underlying type: string

type ExecutionScheduleTimezoneEnum string

Set of constants representing the allowable values for ExecutionScheduleTimezoneEnum

const (
    ExecutionScheduleTimezoneUtc ExecutionScheduleTimezoneEnum = "UTC"
)

func GetExecutionScheduleTimezoneEnumValues

func GetExecutionScheduleTimezoneEnumValues() []ExecutionScheduleTimezoneEnum

GetExecutionScheduleTimezoneEnumValues Enumerates the set of values for ExecutionScheduleTimezoneEnum

func GetMappingExecutionScheduleTimezoneEnum

func GetMappingExecutionScheduleTimezoneEnum(val string) (ExecutionScheduleTimezoneEnum, bool)

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

type GetAutoScalingConfigurationRequest

GetAutoScalingConfigurationRequest wrapper for the GetAutoScalingConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/GetAutoScalingConfiguration.go.html to see an example of how to use GetAutoScalingConfigurationRequest.

type GetAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    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 (GetAutoScalingConfigurationRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetAutoScalingConfigurationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetAutoScalingConfigurationRequest) RetryPolicy

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

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

func (GetAutoScalingConfigurationRequest) String

func (request GetAutoScalingConfigurationRequest) String() string

func (GetAutoScalingConfigurationRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetAutoScalingConfigurationResponse

GetAutoScalingConfigurationResponse wrapper for the GetAutoScalingConfiguration operation

type GetAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `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 (GetAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingConfigurationResponse) String

func (response GetAutoScalingConfigurationResponse) String() string

type GetAutoScalingPolicyRequest

GetAutoScalingPolicyRequest wrapper for the GetAutoScalingPolicy operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/GetAutoScalingPolicy.go.html to see an example of how to use GetAutoScalingPolicyRequest.

type GetAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

    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 (GetAutoScalingPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetAutoScalingPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetAutoScalingPolicyRequest) RetryPolicy

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

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

func (GetAutoScalingPolicyRequest) String

func (request GetAutoScalingPolicyRequest) String() string

func (GetAutoScalingPolicyRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetAutoScalingPolicyResponse

GetAutoScalingPolicyResponse wrapper for the GetAutoScalingPolicy operation

type GetAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `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 (GetAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingPolicyResponse) String

func (response GetAutoScalingPolicyResponse) String() string

type InstancePoolResource

InstancePoolResource A Compute instance pool.

type InstancePoolResource struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the resource that is managed by the autoscaling configuration.
    Id *string `mandatory:"true" json:"id"`
}

func (InstancePoolResource) GetId

func (m InstancePoolResource) GetId() *string

GetId returns Id

func (InstancePoolResource) MarshalJSON

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

MarshalJSON marshals to json representation

func (InstancePoolResource) String

func (m InstancePoolResource) String() string

func (InstancePoolResource) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListAutoScalingConfigurationsRequest

ListAutoScalingConfigurationsRequest wrapper for the ListAutoScalingConfigurations operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/ListAutoScalingConfigurations.go.html to see an example of how to use ListAutoScalingConfigurationsRequest.

type ListAutoScalingConfigurationsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the
    // resource. Use tenancyId to search in
    // the root compartment.
    CompartmentId *string `mandatory:"true" 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"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

    // The field to sort by. You can provide one sort order (`sortOrder`). Default order for
    // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
    // sort order is case sensitive.
    SortBy ListAutoScalingConfigurationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

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

func (ListAutoScalingConfigurationsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListAutoScalingConfigurationsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListAutoScalingConfigurationsRequest) RetryPolicy

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

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

func (ListAutoScalingConfigurationsRequest) String

func (request ListAutoScalingConfigurationsRequest) String() string

func (ListAutoScalingConfigurationsRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListAutoScalingConfigurationsResponse

ListAutoScalingConfigurationsResponse wrapper for the ListAutoScalingConfigurations operation

type ListAutoScalingConfigurationsResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (ListAutoScalingConfigurationsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingConfigurationsResponse) String

func (response ListAutoScalingConfigurationsResponse) String() string

type ListAutoScalingConfigurationsSortByEnum

ListAutoScalingConfigurationsSortByEnum Enum with underlying type: string

type ListAutoScalingConfigurationsSortByEnum string

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortByEnum

const (
    ListAutoScalingConfigurationsSortByTimecreated ListAutoScalingConfigurationsSortByEnum = "TIMECREATED"
    ListAutoScalingConfigurationsSortByDisplayname ListAutoScalingConfigurationsSortByEnum = "DISPLAYNAME"
)

func GetListAutoScalingConfigurationsSortByEnumValues

func GetListAutoScalingConfigurationsSortByEnumValues() []ListAutoScalingConfigurationsSortByEnum

GetListAutoScalingConfigurationsSortByEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortByEnum

func GetMappingListAutoScalingConfigurationsSortByEnum

func GetMappingListAutoScalingConfigurationsSortByEnum(val string) (ListAutoScalingConfigurationsSortByEnum, bool)

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

type ListAutoScalingConfigurationsSortOrderEnum

ListAutoScalingConfigurationsSortOrderEnum Enum with underlying type: string

type ListAutoScalingConfigurationsSortOrderEnum string

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortOrderEnum

const (
    ListAutoScalingConfigurationsSortOrderAsc  ListAutoScalingConfigurationsSortOrderEnum = "ASC"
    ListAutoScalingConfigurationsSortOrderDesc ListAutoScalingConfigurationsSortOrderEnum = "DESC"
)

func GetListAutoScalingConfigurationsSortOrderEnumValues

func GetListAutoScalingConfigurationsSortOrderEnumValues() []ListAutoScalingConfigurationsSortOrderEnum

GetListAutoScalingConfigurationsSortOrderEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortOrderEnum

func GetMappingListAutoScalingConfigurationsSortOrderEnum

func GetMappingListAutoScalingConfigurationsSortOrderEnum(val string) (ListAutoScalingConfigurationsSortOrderEnum, bool)

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

type ListAutoScalingPoliciesRequest

ListAutoScalingPoliciesRequest wrapper for the ListAutoScalingPolicies operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/ListAutoScalingPolicies.go.html to see an example of how to use ListAutoScalingPoliciesRequest.

type ListAutoScalingPoliciesRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

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

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

    // The field to sort by. You can provide one sort order (`sortOrder`). Default order for
    // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
    // sort order is case sensitive.
    SortBy ListAutoScalingPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

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

func (ListAutoScalingPoliciesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListAutoScalingPoliciesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListAutoScalingPoliciesRequest) RetryPolicy

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

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

func (ListAutoScalingPoliciesRequest) String

func (request ListAutoScalingPoliciesRequest) String() string

func (ListAutoScalingPoliciesRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListAutoScalingPoliciesResponse

ListAutoScalingPoliciesResponse wrapper for the ListAutoScalingPolicies operation

type ListAutoScalingPoliciesResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (ListAutoScalingPoliciesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingPoliciesResponse) String

func (response ListAutoScalingPoliciesResponse) String() string

type ListAutoScalingPoliciesSortByEnum

ListAutoScalingPoliciesSortByEnum Enum with underlying type: string

type ListAutoScalingPoliciesSortByEnum string

Set of constants representing the allowable values for ListAutoScalingPoliciesSortByEnum

const (
    ListAutoScalingPoliciesSortByTimecreated ListAutoScalingPoliciesSortByEnum = "TIMECREATED"
    ListAutoScalingPoliciesSortByDisplayname ListAutoScalingPoliciesSortByEnum = "DISPLAYNAME"
)

func GetListAutoScalingPoliciesSortByEnumValues

func GetListAutoScalingPoliciesSortByEnumValues() []ListAutoScalingPoliciesSortByEnum

GetListAutoScalingPoliciesSortByEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortByEnum

func GetMappingListAutoScalingPoliciesSortByEnum

func GetMappingListAutoScalingPoliciesSortByEnum(val string) (ListAutoScalingPoliciesSortByEnum, bool)

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

type ListAutoScalingPoliciesSortOrderEnum

ListAutoScalingPoliciesSortOrderEnum Enum with underlying type: string

type ListAutoScalingPoliciesSortOrderEnum string

Set of constants representing the allowable values for ListAutoScalingPoliciesSortOrderEnum

const (
    ListAutoScalingPoliciesSortOrderAsc  ListAutoScalingPoliciesSortOrderEnum = "ASC"
    ListAutoScalingPoliciesSortOrderDesc ListAutoScalingPoliciesSortOrderEnum = "DESC"
)

func GetListAutoScalingPoliciesSortOrderEnumValues

func GetListAutoScalingPoliciesSortOrderEnumValues() []ListAutoScalingPoliciesSortOrderEnum

GetListAutoScalingPoliciesSortOrderEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortOrderEnum

func GetMappingListAutoScalingPoliciesSortOrderEnum

func GetMappingListAutoScalingPoliciesSortOrderEnum(val string) (ListAutoScalingPoliciesSortOrderEnum, bool)

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

type Metric

Metric Metric and threshold details for triggering an autoscaling action.

type Metric struct {
    MetricType MetricMetricTypeEnum `mandatory:"true" json:"metricType"`

    Threshold *Threshold `mandatory:"true" json:"threshold"`
}

func (Metric) String

func (m Metric) String() string

func (Metric) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type MetricMetricTypeEnum

MetricMetricTypeEnum Enum with underlying type: string

type MetricMetricTypeEnum string

Set of constants representing the allowable values for MetricMetricTypeEnum

const (
    MetricMetricTypeCpuUtilization    MetricMetricTypeEnum = "CPU_UTILIZATION"
    MetricMetricTypeMemoryUtilization MetricMetricTypeEnum = "MEMORY_UTILIZATION"
)

func GetMappingMetricMetricTypeEnum

func GetMappingMetricMetricTypeEnum(val string) (MetricMetricTypeEnum, bool)

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

func GetMetricMetricTypeEnumValues

func GetMetricMetricTypeEnumValues() []MetricMetricTypeEnum

GetMetricMetricTypeEnumValues Enumerates the set of values for MetricMetricTypeEnum

type Resource

Resource A resource that is managed by an autoscaling configuration. The only supported type is `instancePool`. Each instance pool can have one autoscaling configuration.

type Resource interface {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the resource that is managed by the autoscaling configuration.
    GetId() *string
}

type ResourceAction

ResourceAction An action that can be executed against a resource.

type ResourceAction interface {
}

type ResourcePowerAction

ResourcePowerAction A power action against a resource.

type ResourcePowerAction struct {
    Action ResourcePowerActionActionEnum `mandatory:"true" json:"action"`
}

func (ResourcePowerAction) MarshalJSON

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

MarshalJSON marshals to json representation

func (ResourcePowerAction) String

func (m ResourcePowerAction) String() string

func (ResourcePowerAction) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ResourcePowerActionActionEnum

ResourcePowerActionActionEnum Enum with underlying type: string

type ResourcePowerActionActionEnum string

Set of constants representing the allowable values for ResourcePowerActionActionEnum

const (
    ResourcePowerActionActionStop      ResourcePowerActionActionEnum = "STOP"
    ResourcePowerActionActionStart     ResourcePowerActionActionEnum = "START"
    ResourcePowerActionActionSoftreset ResourcePowerActionActionEnum = "SOFTRESET"
    ResourcePowerActionActionReset     ResourcePowerActionActionEnum = "RESET"
)

func GetMappingResourcePowerActionActionEnum

func GetMappingResourcePowerActionActionEnum(val string) (ResourcePowerActionActionEnum, bool)

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

func GetResourcePowerActionActionEnumValues

func GetResourcePowerActionActionEnumValues() []ResourcePowerActionActionEnum

GetResourcePowerActionActionEnumValues Enumerates the set of values for ResourcePowerActionActionEnum

type ScheduledPolicy

ScheduledPolicy An autoscaling policy that defines execution schedules for an autoscaling configuration.

type ScheduledPolicy struct {

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The schedule for executing the autoscaling policy.
    ExecutionSchedule ExecutionSchedule `mandatory:"true" json:"executionSchedule"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

    // The ID of the autoscaling policy that is assigned after creation.
    Id *string `mandatory:"false" json:"id"`

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

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    ResourceAction ResourceAction `mandatory:"false" json:"resourceAction"`
}

func (ScheduledPolicy) GetCapacity

func (m ScheduledPolicy) GetCapacity() *Capacity

GetCapacity returns Capacity

func (ScheduledPolicy) GetDisplayName

func (m ScheduledPolicy) GetDisplayName() *string

GetDisplayName returns DisplayName

func (ScheduledPolicy) GetId

func (m ScheduledPolicy) GetId() *string

GetId returns Id

func (ScheduledPolicy) GetIsEnabled

func (m ScheduledPolicy) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (ScheduledPolicy) GetTimeCreated

func (m ScheduledPolicy) GetTimeCreated() *common.SDKTime

GetTimeCreated returns TimeCreated

func (ScheduledPolicy) MarshalJSON

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

MarshalJSON marshals to json representation

func (ScheduledPolicy) String

func (m ScheduledPolicy) String() string

func (*ScheduledPolicy) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (ScheduledPolicy) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type Threshold

Threshold The representation of Threshold

type Threshold struct {

    // The comparison operator to use. Options are greater than (`GT`), greater than or equal to
    // (`GTE`), less than (`LT`), and less than or equal to (`LTE`).
    Operator ThresholdOperatorEnum `mandatory:"true" json:"operator"`

    Value *int `mandatory:"true" json:"value"`
}

func (Threshold) String

func (m Threshold) String() string

func (Threshold) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ThresholdOperatorEnum

ThresholdOperatorEnum Enum with underlying type: string

type ThresholdOperatorEnum string

Set of constants representing the allowable values for ThresholdOperatorEnum

const (
    ThresholdOperatorGt  ThresholdOperatorEnum = "GT"
    ThresholdOperatorGte ThresholdOperatorEnum = "GTE"
    ThresholdOperatorLt  ThresholdOperatorEnum = "LT"
    ThresholdOperatorLte ThresholdOperatorEnum = "LTE"
)

func GetMappingThresholdOperatorEnum

func GetMappingThresholdOperatorEnum(val string) (ThresholdOperatorEnum, bool)

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

func GetThresholdOperatorEnumValues

func GetThresholdOperatorEnumValues() []ThresholdOperatorEnum

GetThresholdOperatorEnumValues Enumerates the set of values for ThresholdOperatorEnum

type ThresholdPolicy

ThresholdPolicy An autoscaling policy that defines threshold-based rules for an autoscaling configuration.

type ThresholdPolicy struct {

    // The date and time the autoscaling configuration was created, in the format defined by RFC3339.
    // Example: `2016-08-25T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    Rules []Condition `mandatory:"true" json:"rules"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

    // The ID of the autoscaling policy that is assigned after creation.
    Id *string `mandatory:"false" json:"id"`

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

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

func (ThresholdPolicy) GetCapacity

func (m ThresholdPolicy) GetCapacity() *Capacity

GetCapacity returns Capacity

func (ThresholdPolicy) GetDisplayName

func (m ThresholdPolicy) GetDisplayName() *string

GetDisplayName returns DisplayName

func (ThresholdPolicy) GetId

func (m ThresholdPolicy) GetId() *string

GetId returns Id

func (ThresholdPolicy) GetIsEnabled

func (m ThresholdPolicy) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (ThresholdPolicy) GetTimeCreated

func (m ThresholdPolicy) GetTimeCreated() *common.SDKTime

GetTimeCreated returns TimeCreated

func (ThresholdPolicy) MarshalJSON

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

MarshalJSON marshals to json representation

func (ThresholdPolicy) String

func (m ThresholdPolicy) String() string

func (ThresholdPolicy) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateAutoScalingConfigurationDetails

UpdateAutoScalingConfigurationDetails The representation of UpdateAutoScalingConfigurationDetails

type UpdateAutoScalingConfigurationDetails struct {

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

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

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

    // Whether the autoscaling configuration is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`
}

func (UpdateAutoScalingConfigurationDetails) String

func (m UpdateAutoScalingConfigurationDetails) String() string

func (UpdateAutoScalingConfigurationDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateAutoScalingConfigurationRequest

UpdateAutoScalingConfigurationRequest wrapper for the UpdateAutoScalingConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/UpdateAutoScalingConfiguration.go.html to see an example of how to use UpdateAutoScalingConfigurationRequest.

type UpdateAutoScalingConfigurationRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // Update details for an autoscaling configuration.
    UpdateAutoScalingConfigurationDetails `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"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateAutoScalingConfigurationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateAutoScalingConfigurationRequest) RetryPolicy

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

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

func (UpdateAutoScalingConfigurationRequest) String

func (request UpdateAutoScalingConfigurationRequest) String() string

func (UpdateAutoScalingConfigurationRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateAutoScalingConfigurationResponse

UpdateAutoScalingConfigurationResponse wrapper for the UpdateAutoScalingConfiguration operation

type UpdateAutoScalingConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingConfiguration instance
    AutoScalingConfiguration `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 (UpdateAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingConfigurationResponse) String

func (response UpdateAutoScalingConfigurationResponse) String() string

type UpdateAutoScalingPolicyDetails

UpdateAutoScalingPolicyDetails The representation of UpdateAutoScalingPolicyDetails

type UpdateAutoScalingPolicyDetails interface {

    // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    GetDisplayName() *string

    // The capacity requirements of the autoscaling policy.
    GetCapacity() *Capacity

    // Whether the autoscaling policy is enabled.
    GetIsEnabled() *bool
}

type UpdateAutoScalingPolicyRequest

UpdateAutoScalingPolicyRequest wrapper for the UpdateAutoScalingPolicy operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.63.2/autoscaling/UpdateAutoScalingPolicy.go.html to see an example of how to use UpdateAutoScalingPolicyRequest.

type UpdateAutoScalingPolicyRequest struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
    AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

    // The ID of the autoscaling policy.
    AutoScalingPolicyId *string `mandatory:"true" contributesTo:"path" name:"autoScalingPolicyId"`

    // Update details for an autoscaling policy.
    UpdateAutoScalingPolicyDetails `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"`

    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateAutoScalingPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateAutoScalingPolicyRequest) RetryPolicy

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

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

func (UpdateAutoScalingPolicyRequest) String

func (request UpdateAutoScalingPolicyRequest) String() string

func (UpdateAutoScalingPolicyRequest) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateAutoScalingPolicyResponse

UpdateAutoScalingPolicyResponse wrapper for the UpdateAutoScalingPolicy operation

type UpdateAutoScalingPolicyResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The AutoScalingPolicy instance
    AutoScalingPolicy `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 (UpdateAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingPolicyResponse) String

func (response UpdateAutoScalingPolicyResponse) String() string

type UpdateConditionDetails

UpdateConditionDetails Update details for a condition in a threshold-based autoscaling policy.

type UpdateConditionDetails struct {
    Action *Action `mandatory:"true" json:"action"`

    Metric *Metric `mandatory:"true" json:"metric"`

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

func (UpdateConditionDetails) String

func (m UpdateConditionDetails) String() string

func (UpdateConditionDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateScheduledPolicyDetails

UpdateScheduledPolicyDetails The representation of UpdateScheduledPolicyDetails

type UpdateScheduledPolicyDetails 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"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    // The schedule for executing the autoscaling policy.
    ExecutionSchedule ExecutionSchedule `mandatory:"false" json:"executionSchedule"`

    ResourceAction ResourceAction `mandatory:"false" json:"resourceAction"`
}

func (UpdateScheduledPolicyDetails) GetCapacity

func (m UpdateScheduledPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (UpdateScheduledPolicyDetails) GetDisplayName

func (m UpdateScheduledPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (UpdateScheduledPolicyDetails) GetIsEnabled

func (m UpdateScheduledPolicyDetails) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (UpdateScheduledPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (UpdateScheduledPolicyDetails) String

func (m UpdateScheduledPolicyDetails) String() string

func (*UpdateScheduledPolicyDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (UpdateScheduledPolicyDetails) ValidateEnumValue

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

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateThresholdPolicyDetails

UpdateThresholdPolicyDetails The representation of UpdateThresholdPolicyDetails

type UpdateThresholdPolicyDetails 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"`

    // The capacity requirements of the autoscaling policy.
    Capacity *Capacity `mandatory:"false" json:"capacity"`

    // Whether the autoscaling policy is enabled.
    IsEnabled *bool `mandatory:"false" json:"isEnabled"`

    Rules []UpdateConditionDetails `mandatory:"false" json:"rules"`
}

func (UpdateThresholdPolicyDetails) GetCapacity

func (m UpdateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (UpdateThresholdPolicyDetails) GetDisplayName

func (m UpdateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (UpdateThresholdPolicyDetails) GetIsEnabled

func (m UpdateThresholdPolicyDetails) GetIsEnabled() *bool

GetIsEnabled returns IsEnabled

func (UpdateThresholdPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (UpdateThresholdPolicyDetails) String

func (m UpdateThresholdPolicyDetails) String() string

func (UpdateThresholdPolicyDetails) ValidateEnumValue

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