Class: Ansible::Ruby::Modules::Rax_scaling_policy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb

Overview

Manipulate Rackspace Cloud Autoscale Scaling Policy

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#atObject?

Returns The UTC time when this policy will be executed. The time must be formatted according to C(yyyy-MM-dd’T’HH:mm:ss.SSS) such as C(2013-05-19T08:07:08Z).

Returns:

  • (Object, nil)

    The UTC time when this policy will be executed. The time must be formatted according to C(yyyy-MM-dd’T’HH:mm:ss.SSS) such as C(2013-05-19T08:07:08Z)



12
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 12

attribute :at

#changeObject?

Returns The change, either as a number of servers or as a percentage, to make in the scaling group. If this is a percentage, you must set I(is_percent) to C(true) also.

Returns:

  • (Object, nil)

    The change, either as a number of servers or as a percentage, to make in the scaling group. If this is a percentage, you must set I(is_percent) to C(true) also.



15
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 15

attribute :change

#cooldownObject?

Returns The period of time, in seconds, that must pass before any scaling can occur after the previous scaling. Must be an integer between 0 and 86400 (24 hrs).

Returns:

  • (Object, nil)

    The period of time, in seconds, that must pass before any scaling can occur after the previous scaling. Must be an integer between 0 and 86400 (24 hrs).



21
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 21

attribute :cooldown

#cronObject?

Returns The time when the policy will be executed, as a cron entry. For example, if this is parameter is set to C(1 0 * * *).

Returns:

  • (Object, nil)

    The time when the policy will be executed, as a cron entry. For example, if this is parameter is set to C(1 0 * * *)



18
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 18

attribute :cron

#desired_capacityObject?

Returns The desired server capacity of the scaling the group; that is, how many servers should be in the scaling group.

Returns:

  • (Object, nil)

    The desired server capacity of the scaling the group; that is, how many servers should be in the scaling group.



24
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 24

attribute :desired_capacity

#is_percentBoolean?

Returns Whether the value in I(change) is a percent value.

Returns:

  • (Boolean, nil)

    Whether the value in I(change) is a percent value



27
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 27

attribute :is_percent

#nameObject

Returns Name to give the policy.

Returns:

  • (Object)

    Name to give the policy



31
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 31

attribute :name

#policy_type:webhook, :schedule

Returns The type of policy that will be executed for the current release.

Returns:

  • (:webhook, :schedule)

    The type of policy that will be executed for the current release.



35
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 35

attribute :policy_type

#scaling_groupObject

Returns Name of the scaling group that this policy will be added to.

Returns:

  • (Object)

    Name of the scaling group that this policy will be added to



39
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 39

attribute :scaling_group

#state:present, ...

Returns Indicate desired state of the resource.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource



43
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 43

attribute :state