pyrax
Python Bindings for the Rackspace Cloud
|
Public Member Functions | |
def | __init__ |
def | get |
Gets the details for this policy. | |
def | delete |
Deletes this policy. | |
def | update |
Updates this policy. | |
def | execute |
Executes this policy. | |
def | add_webhook |
Adds a webhook to this policy. | |
def | list_webhooks |
Returns a list of all webhooks for this policy. | |
def | get_webhook |
Gets the detail for the specified webhook. | |
def | update_webhook |
Updates the specified webhook. | |
def | update_webhook_metadata |
Adds the given metadata dict to the existing metadata for the specified webhook. | |
def | delete_webhook |
Deletes the specified webhook from this policy. | |
Public Attributes | |
scaling_group | |
Static Public Attributes | |
reload = get |
def __init__ | ( | self, | |
manager, | |||
info, | |||
scaling_group, | |||
args, | |||
kwargs | |||
) |
def add_webhook | ( | self, | |
name, | |||
metadata = None |
|||
) |
Adds a webhook to this policy.
def delete | ( | self | ) |
Deletes this policy.
Reimplemented from BaseResource.
def delete_webhook | ( | self, | |
webhook | |||
) |
Deletes the specified webhook from this policy.
def execute | ( | self | ) |
Executes this policy.
def get | ( | self | ) |
Gets the details for this policy.
Reimplemented from BaseResource.
def get_webhook | ( | self, | |
webhook | |||
) |
Gets the detail for the specified webhook.
def list_webhooks | ( | self | ) |
Returns a list of all webhooks for this policy.
def update | ( | self, | |
name = None , |
|||
policy_type = None , |
|||
cooldown = None , |
|||
change = None , |
|||
is_percent = False |
|||
) |
Updates this policy.
One or more of the parameters may be specified.
def update_webhook | ( | self, | |
webhook, | |||
name = None , |
|||
metadata = None |
|||
) |
Updates the specified webhook.
One or more of the parameters may be specified.
def update_webhook_metadata | ( | self, | |
webhook, | |||
metadata | |||
) |
Adds the given metadata dict to the existing metadata for the specified webhook.
Reimplemented from BaseResource.