Versions in this module Expand all Collapse all v1 v1.0.21 Mar 14, 2020 Changes in this version + func CreateURL(c *gophercloud.ServiceClient) string + func GetPolicyListByResourceID(client *gophercloud.ServiceClient, scalingResourceId string, ...) pagination.Pager + func GetURL(c *gophercloud.ServiceClient, scalingPolicyId string) string + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListURL(c *gophercloud.ServiceClient, scalingResourceId string) string + func UpdateURL(c *gophercloud.ServiceClient, scalingPolicyId string) string + type CreateOpts struct + AlarmId string + CoolDownTime *int + ScalingPolicyAction CreateScalingPolicyAction + ScalingPolicyName string + ScalingPolicyType string + ScalingResourceId string + ScalingResourceType string + ScheduledPolicy ScheduledPolicy + func (opts CreateOpts) ToPoliciesCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToPoliciesCreateMap func() (map[string]interface{}, error) + type CreateResponse struct + ScalingPolicyId string + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*CreateResponse, error) + type CreateScalingPolicyAction struct + Limits *int + Operation string + Percentage *int + Size *int + type GetResponse struct + ScalingPolicy ScalingPolicy + type GetResult struct + func Get(client *gophercloud.ServiceClient, scalingPolicyId string) (r GetResult) + func (r GetResult) Extract() (*ScalingPolicy, error) + type ListOpts struct + EnterpriseProjectID string + Limit int + Order string + ScalingPolicyID string + ScalingPolicyName string + ScalingPolicyType string + ScalingResourceID string + ScalingResourceType string + SortBy string + StartNumber int + func (opts ListOpts) ToListQuery() (string, error) + type ListOptsBuilder interface + ToListQuery func() (string, error) + type ListResponse struct + Limit int + ScalingPolicies []ScalingPolicy + StartNumber int + TotalNumber int + func ExtractPolicies(r pagination.Page) (ListResponse, error) + type ListResult struct + func (r ListResult) Extract() (*ListResponse, error) + type PolicyPage struct + func (r PolicyPage) IsEmpty() (bool, error) + func (r PolicyPage) LastStartNumber() (string, error) + type ResourceListOpts struct + Limit int + ScalingPolicyID string + ScalingPolicyName string + ScalingPolicyType string + StartNumber int + func (opts ResourceListOpts) ToResourceListQuery() (string, error) + type ResourceListOptsBuilder interface + ToResourceListQuery func() (string, error) + type ScalingPolicy struct + AlarmId string + CoolDownTime int + CreateTime string + MataData map[string]interface{} + PolicyStatus string + ScalingPolicyAction ScalingPolicyAction + ScalingPolicyId string + ScalingPolicyName string + ScalingPolicyType string + ScalingResourceId string + ScalingResourceType string + ScheduledPolicy ScheduledPolicy + type ScalingPolicyAction struct + Limits int + Operation string + Percentage int + Size int + type ScheduledPolicy struct + EndTime string + LaunchTime string + RecurrenceType string + RecurrenceValue string + StartTime string + type UpdateOpts struct + AlarmId string + CoolDownTime *int + ScalingPolicyAction ScalingPolicyAction + ScalingPolicyName string + ScalingPolicyType string + ScalingResourceId string + ScalingResourceType string + ScheduledPolicy ScheduledPolicy + func (opts UpdateOpts) ToPoliciesUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToPoliciesUpdateMap func() (map[string]interface{}, error) + type UpdateResponse struct + ScalingPolicyId string + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, scalingPolicyId string, ...) (r UpdateResult) + func (r UpdateResult) Extract() (*UpdateResponse, error)