autoscaling

package
v5.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2019 License: Apache-2.0, UPL-1.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {

	// Action type to take
	Type ActionTypeEnum `mandatory:"true" json:"type"`

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

Action The action to take if a scale event has been triggered. Positive values indicate scale out and negative value indicate scale in.

func (Action) String

func (m Action) String() string

type ActionTypeEnum

type ActionTypeEnum string

ActionTypeEnum Enum with underlying type: string

const (
	ActionTypeBy ActionTypeEnum = "CHANGE_COUNT_BY"
)

Set of constants representing the allowable values for ActionTypeEnum

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

type AutoScalingClient

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

AutoScalingClient a client for AutoScaling

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 (*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 Create an AutoScalingConfiguration

func (AutoScalingClient) CreateAutoScalingPolicy

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

CreateAutoScalingPolicy Create a Policy for AutoScalingConfiguration

func (AutoScalingClient) DeleteAutoScalingConfiguration

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

DeleteAutoScalingConfiguration Deletes an AutoScalingConfiguration

func (AutoScalingClient) DeleteAutoScalingPolicy

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

DeleteAutoScalingPolicy Deletes an AutoScalingConfiguration Policy

func (AutoScalingClient) GetAutoScalingConfiguration

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

GetAutoScalingConfiguration Get AutoScalingConfiguration

func (AutoScalingClient) GetAutoScalingPolicy

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

GetAutoScalingPolicy Get Policy from a specific AutoScalingConfiguration

func (AutoScalingClient) ListAutoScalingConfigurations

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

ListAutoScalingConfigurations Lists AutoScalingConfigurations in the specific compartment.

func (AutoScalingClient) ListAutoScalingPolicies

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

ListAutoScalingPolicies Lists Policies in an AutoScalingConfiguration.

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 an AutoScalingConfiguration

func (AutoScalingClient) UpdateAutoScalingPolicy

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

UpdateAutoScalingPolicy Updates a Policy in the specific AutoScalingConfiguration

type AutoScalingConfiguration

type AutoScalingConfiguration struct {

	// The OCID of the compartment containing the AutoScalingConfiguration.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The OCID of the AutoScalingConfiguration
	Id *string `mandatory:"true" json:"id"`

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

	// AutoScalingConfiguration policy definitions
	Policies []AutoScalingPolicy `mandatory:"true" json:"policies"`

	// The date and time the AutoScalingConfiguration 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 for the AutoScalingConfiguration. 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"`

	// The minimum period of time between scaling actions. The default is 300 seconds.
	CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

	// If the AutoScalingConfiguration is enabled
	IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

AutoScalingConfiguration The representation of AutoScalingConfiguration

func (AutoScalingConfiguration) String

func (m AutoScalingConfiguration) String() string

func (*AutoScalingConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

type AutoScalingConfigurationSummary

type AutoScalingConfigurationSummary struct {

	// The OCID of the compartment containing the AutoScalingConfiguration.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The OCID of the AutoScalingConfiguration
	Id *string `mandatory:"true" json:"id"`

	// The date and time the AutoScalingConfiguration 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 for the AutoScalingConfiguration. Does not have to be unique, and it's changeable.
	// Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// The minimum period of time between scaling actions. The default is 300 seconds.
	CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

	// If the AutoScalingConfiguration is enabled
	IsEnabled *bool `mandatory:"false" json:"isEnabled"`

	Resource Resource `mandatory:"false" json:"resource"`
}

AutoScalingConfigurationSummary The representation of AutoScalingConfigurationSummary

func (AutoScalingConfigurationSummary) String

func (*AutoScalingConfigurationSummary) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

type AutoScalingPolicy

type AutoScalingPolicy interface {

	// The capacity requirements of the Policy
	GetCapacity() *Capacity

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

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

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

AutoScalingPolicy A Policy defines the rules and actions of an AutoScalingConfiguration. The only supported type is 'threshold'

type AutoScalingPolicySummary

type AutoScalingPolicySummary struct {

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

	// Indicates type of Policy
	PolicyType *string `mandatory:"true" json:"policyType"`

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

AutoScalingPolicySummary The representation of AutoScalingPolicySummary

func (AutoScalingPolicySummary) String

func (m AutoScalingPolicySummary) String() string

type Capacity

type Capacity struct {

	// The maximum size the pool is allowed to increase to
	Max *int `mandatory:"true" json:"max"`

	// The minimum size the pool is allowed to decrease to
	Min *int `mandatory:"true" json:"min"`

	// The initial size of the pool
	Initial *int `mandatory:"true" json:"initial"`
}

Capacity Capacity boundaries for the pool

func (Capacity) String

func (m Capacity) String() string

type Condition

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

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

	// A user-friendly name for the AutoScalingConfiguration condition details. 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"`
}

Condition A container for metric and action details

func (Condition) String

func (m Condition) String() string

type CreateAutoScalingConfigurationDetails

type CreateAutoScalingConfigurationDetails struct {

	// The OCID of the compartment containing the AutoScalingConfiguration.
	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 for the AutoScalingConfiguration. 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"`

	// The minimum period of time between scaling actions. The default is 300 seconds.
	CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`

	// If the AutoScalingConfiguration is enabled
	IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}

CreateAutoScalingConfigurationDetails An AutoScalingConfiguration creation details

func (CreateAutoScalingConfigurationDetails) String

func (*CreateAutoScalingConfigurationDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

type CreateAutoScalingConfigurationRequest

type CreateAutoScalingConfigurationRequest struct {

	// AutoScalingConfiguration creation details
	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
}

CreateAutoScalingConfigurationRequest wrapper for the CreateAutoScalingConfiguration operation

func (CreateAutoScalingConfigurationRequest) HTTPRequest

func (request CreateAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateAutoScalingConfigurationRequest) RetryPolicy

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

func (CreateAutoScalingConfigurationRequest) String

type CreateAutoScalingConfigurationResponse

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

CreateAutoScalingConfigurationResponse wrapper for the CreateAutoScalingConfiguration operation

func (CreateAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingConfigurationResponse) String

type CreateAutoScalingPolicyDetails

type CreateAutoScalingPolicyDetails interface {

	// The capacity requirements of the Policy
	GetCapacity() *Capacity

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

CreateAutoScalingPolicyDetails An AutoScalingConfiguration Policy creation details

type CreateAutoScalingPolicyRequest

type CreateAutoScalingPolicyRequest struct {

	// The OCID of the auto scaling configuration.
	AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

	// AutoScalingConfiguration Policy creation details
	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
}

CreateAutoScalingPolicyRequest wrapper for the CreateAutoScalingPolicy operation

func (CreateAutoScalingPolicyRequest) HTTPRequest

func (request CreateAutoScalingPolicyRequest) HTTPRequest(method, path 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

type CreateAutoScalingPolicyResponse

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

CreateAutoScalingPolicyResponse wrapper for the CreateAutoScalingPolicy operation

func (CreateAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateAutoScalingPolicyResponse) String

func (response CreateAutoScalingPolicyResponse) String() string

type CreateConditionDetails

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

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

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

CreateConditionDetails Creation details for Condition in a ThresholdPolicy

func (CreateConditionDetails) String

func (m CreateConditionDetails) String() string

type CreateThresholdPolicyDetails

type CreateThresholdPolicyDetails struct {

	// The capacity requirements of the Policy
	Capacity *Capacity `mandatory:"true" json:"capacity"`

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

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

CreateThresholdPolicyDetails An AutoScalingConfiguration ThresholdPolicy creation details

func (CreateThresholdPolicyDetails) GetCapacity

func (m CreateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (CreateThresholdPolicyDetails) GetDisplayName

func (m CreateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (CreateThresholdPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (CreateThresholdPolicyDetails) String

type DeleteAutoScalingConfigurationRequest

type DeleteAutoScalingConfigurationRequest struct {

	// The OCID of the auto scaling 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
}

DeleteAutoScalingConfigurationRequest wrapper for the DeleteAutoScalingConfiguration operation

func (DeleteAutoScalingConfigurationRequest) HTTPRequest

func (request DeleteAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteAutoScalingConfigurationRequest) RetryPolicy

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

func (DeleteAutoScalingConfigurationRequest) String

type DeleteAutoScalingConfigurationResponse

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

DeleteAutoScalingConfigurationResponse wrapper for the DeleteAutoScalingConfiguration operation

func (DeleteAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingConfigurationResponse) String

type DeleteAutoScalingPolicyRequest

type DeleteAutoScalingPolicyRequest struct {

	// The OCID of the auto scaling configuration.
	AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

	// The ID of the auto scaling configuration 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
}

DeleteAutoScalingPolicyRequest wrapper for the DeleteAutoScalingPolicy operation

func (DeleteAutoScalingPolicyRequest) HTTPRequest

func (request DeleteAutoScalingPolicyRequest) HTTPRequest(method, path 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

type DeleteAutoScalingPolicyResponse

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

DeleteAutoScalingPolicyResponse wrapper for the DeleteAutoScalingPolicy operation

func (DeleteAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteAutoScalingPolicyResponse) String

func (response DeleteAutoScalingPolicyResponse) String() string

type GetAutoScalingConfigurationRequest

type GetAutoScalingConfigurationRequest struct {

	// The OCID of the auto scaling 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
}

GetAutoScalingConfigurationRequest wrapper for the GetAutoScalingConfiguration operation

func (GetAutoScalingConfigurationRequest) HTTPRequest

func (request GetAutoScalingConfigurationRequest) HTTPRequest(method, path 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

type GetAutoScalingConfigurationResponse

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

GetAutoScalingConfigurationResponse wrapper for the GetAutoScalingConfiguration operation

func (GetAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingConfigurationResponse) String

func (response GetAutoScalingConfigurationResponse) String() string

type GetAutoScalingPolicyRequest

type GetAutoScalingPolicyRequest struct {

	// The OCID of the auto scaling configuration.
	AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

	// The ID of the auto scaling configuration 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
}

GetAutoScalingPolicyRequest wrapper for the GetAutoScalingPolicy operation

func (GetAutoScalingPolicyRequest) HTTPRequest

func (request GetAutoScalingPolicyRequest) HTTPRequest(method, path 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

type GetAutoScalingPolicyResponse

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

GetAutoScalingPolicyResponse wrapper for the GetAutoScalingPolicy operation

func (GetAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetAutoScalingPolicyResponse) String

func (response GetAutoScalingPolicyResponse) String() string

type InstancePoolResource

type InstancePoolResource struct {

	// The OCID of resource that the AutoScalingConfiguration will manage.
	Id *string `mandatory:"true" json:"id"`
}

InstancePoolResource An Instance Pool resource

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

type ListAutoScalingConfigurationsRequest

type ListAutoScalingConfigurationsRequest struct {

	// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the
	// resources monitored by the metric that you are searching for. 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"`

	// The maximum number of items to return in a paginated "List" call. For information about pagination, see
	// List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The value of the `opc-next-page` response header from the previous "List" call. For information about
	// pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	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
}

ListAutoScalingConfigurationsRequest wrapper for the ListAutoScalingConfigurations operation

func (ListAutoScalingConfigurationsRequest) HTTPRequest

func (request ListAutoScalingConfigurationsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListAutoScalingConfigurationsRequest) RetryPolicy

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

func (ListAutoScalingConfigurationsRequest) String

type ListAutoScalingConfigurationsResponse

type ListAutoScalingConfigurationsResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	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"`
}

ListAutoScalingConfigurationsResponse wrapper for the ListAutoScalingConfigurations operation

func (ListAutoScalingConfigurationsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingConfigurationsResponse) String

type ListAutoScalingConfigurationsSortByEnum

type ListAutoScalingConfigurationsSortByEnum string

ListAutoScalingConfigurationsSortByEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortByEnum

func GetListAutoScalingConfigurationsSortByEnumValues

func GetListAutoScalingConfigurationsSortByEnumValues() []ListAutoScalingConfigurationsSortByEnum

GetListAutoScalingConfigurationsSortByEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortByEnum

type ListAutoScalingConfigurationsSortOrderEnum

type ListAutoScalingConfigurationsSortOrderEnum string

ListAutoScalingConfigurationsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListAutoScalingConfigurationsSortOrderEnum

func GetListAutoScalingConfigurationsSortOrderEnumValues

func GetListAutoScalingConfigurationsSortOrderEnumValues() []ListAutoScalingConfigurationsSortOrderEnum

GetListAutoScalingConfigurationsSortOrderEnumValues Enumerates the set of values for ListAutoScalingConfigurationsSortOrderEnum

type ListAutoScalingPoliciesRequest

type ListAutoScalingPoliciesRequest struct {

	// The OCID of the auto scaling 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"`

	// The maximum number of items to return in a paginated "List" call. For information about pagination, see
	// List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The value of the `opc-next-page` response header from the previous "List" call. For information about
	// pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
	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
}

ListAutoScalingPoliciesRequest wrapper for the ListAutoScalingPolicies operation

func (ListAutoScalingPoliciesRequest) HTTPRequest

func (request ListAutoScalingPoliciesRequest) HTTPRequest(method, path 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

type ListAutoScalingPoliciesResponse

type ListAutoScalingPoliciesResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	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"`
}

ListAutoScalingPoliciesResponse wrapper for the ListAutoScalingPolicies operation

func (ListAutoScalingPoliciesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListAutoScalingPoliciesResponse) String

func (response ListAutoScalingPoliciesResponse) String() string

type ListAutoScalingPoliciesSortByEnum

type ListAutoScalingPoliciesSortByEnum string

ListAutoScalingPoliciesSortByEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListAutoScalingPoliciesSortByEnum

func GetListAutoScalingPoliciesSortByEnumValues

func GetListAutoScalingPoliciesSortByEnumValues() []ListAutoScalingPoliciesSortByEnum

GetListAutoScalingPoliciesSortByEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortByEnum

type ListAutoScalingPoliciesSortOrderEnum

type ListAutoScalingPoliciesSortOrderEnum string

ListAutoScalingPoliciesSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListAutoScalingPoliciesSortOrderEnum

func GetListAutoScalingPoliciesSortOrderEnumValues

func GetListAutoScalingPoliciesSortOrderEnumValues() []ListAutoScalingPoliciesSortOrderEnum

GetListAutoScalingPoliciesSortOrderEnumValues Enumerates the set of values for ListAutoScalingPoliciesSortOrderEnum

type Metric

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

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

Metric Metric threshold details

func (Metric) String

func (m Metric) String() string

type MetricMetricTypeEnum

type MetricMetricTypeEnum string

MetricMetricTypeEnum Enum with underlying type: string

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

Set of constants representing the allowable values for MetricMetricTypeEnum

func GetMetricMetricTypeEnumValues

func GetMetricMetricTypeEnumValues() []MetricMetricTypeEnum

GetMetricMetricTypeEnumValues Enumerates the set of values for MetricMetricTypeEnum

type Resource

type Resource interface {

	// The OCID of resource that the AutoScalingConfiguration will manage.
	GetId() *string
}

Resource A resource that the AutoScalingConfiguration manages. The only supported type is 'instancePool'

type Threshold

type Threshold struct {

	// Support for the following operators
	// GT  - Greater than
	// GTE - Greater than equal to
	// LT  - Less than
	// LTE - Less than equal to
	Operator ThresholdOperatorEnum `mandatory:"true" json:"operator"`

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

Threshold The representation of Threshold

func (Threshold) String

func (m Threshold) String() string

type ThresholdOperatorEnum

type ThresholdOperatorEnum string

ThresholdOperatorEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ThresholdOperatorEnum

func GetThresholdOperatorEnumValues

func GetThresholdOperatorEnumValues() []ThresholdOperatorEnum

GetThresholdOperatorEnumValues Enumerates the set of values for ThresholdOperatorEnum

type ThresholdPolicy

type ThresholdPolicy struct {

	// The capacity requirements of the Policy
	Capacity *Capacity `mandatory:"true" json:"capacity"`

	// The date and time the AutoScalingConfiguration 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 ID of the policy that is assigned after creation
	Id *string `mandatory:"false" json:"id"`

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

ThresholdPolicy A Policy that defines threshold based rules for an AutoScalingConfiguration

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) 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

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

	// If the AutoScalingConfiguration is enabled
	IsEnabled *bool `mandatory:"false" json:"isEnabled"`

	// The minimum period of time between scaling actions. The default is 300 seconds.
	CoolDownInSeconds *int `mandatory:"false" json:"coolDownInSeconds"`
}

UpdateAutoScalingConfigurationDetails The representation of UpdateAutoScalingConfigurationDetails

func (UpdateAutoScalingConfigurationDetails) String

type UpdateAutoScalingConfigurationRequest

type UpdateAutoScalingConfigurationRequest struct {

	// The OCID of the auto scaling configuration.
	AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

	// AutoScalingConfiguration update details
	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
}

UpdateAutoScalingConfigurationRequest wrapper for the UpdateAutoScalingConfiguration operation

func (UpdateAutoScalingConfigurationRequest) HTTPRequest

func (request UpdateAutoScalingConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateAutoScalingConfigurationRequest) RetryPolicy

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

func (UpdateAutoScalingConfigurationRequest) String

type UpdateAutoScalingConfigurationResponse

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

UpdateAutoScalingConfigurationResponse wrapper for the UpdateAutoScalingConfiguration operation

func (UpdateAutoScalingConfigurationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingConfigurationResponse) String

type 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 Policy
	GetCapacity() *Capacity
}

UpdateAutoScalingPolicyDetails The representation of UpdateAutoScalingPolicyDetails

type UpdateAutoScalingPolicyRequest

type UpdateAutoScalingPolicyRequest struct {

	// The OCID of the auto scaling configuration.
	AutoScalingConfigurationId *string `mandatory:"true" contributesTo:"path" name:"autoScalingConfigurationId"`

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

	// AutoScalingConfiguration Policy update details
	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
}

UpdateAutoScalingPolicyRequest wrapper for the UpdateAutoScalingPolicy operation

func (UpdateAutoScalingPolicyRequest) HTTPRequest

func (request UpdateAutoScalingPolicyRequest) HTTPRequest(method, path 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

type UpdateAutoScalingPolicyResponse

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

UpdateAutoScalingPolicyResponse wrapper for the UpdateAutoScalingPolicy operation

func (UpdateAutoScalingPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateAutoScalingPolicyResponse) String

func (response UpdateAutoScalingPolicyResponse) String() string

type UpdateConditionDetails

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

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

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

UpdateConditionDetails Update details for Condition in a ThresholdPolicy

func (UpdateConditionDetails) String

func (m UpdateConditionDetails) String() string

type 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 Policy
	Capacity *Capacity `mandatory:"false" json:"capacity"`

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

UpdateThresholdPolicyDetails The representation of UpdateThresholdPolicyDetails

func (UpdateThresholdPolicyDetails) GetCapacity

func (m UpdateThresholdPolicyDetails) GetCapacity() *Capacity

GetCapacity returns Capacity

func (UpdateThresholdPolicyDetails) GetDisplayName

func (m UpdateThresholdPolicyDetails) GetDisplayName() *string

GetDisplayName returns DisplayName

func (UpdateThresholdPolicyDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (UpdateThresholdPolicyDetails) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL