Cleanup the doc strings in heat/rpc/client.py

Change-Id: Ia760937f729a1aa17d84c48054cb143bf6891bfd
This commit is contained in:
Angus Salkeld 2013-06-03 13:05:27 +10:00
parent 95ac80a0d5
commit 9769750ac0
1 changed files with 26 additions and 9 deletions

View File

@ -77,7 +77,7 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param stack_name: Name of the stack you want to create.
:param template: Template of stack you want to create.
:param params: Stack Input Params
:param params: Stack Input Params/Environment
:param args: Request parameters/args passed from API
"""
return self.call(ctxt,
@ -95,7 +95,7 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param stack_name: Name of the stack you want to create.
:param template: Template of stack you want to create.
:param params: Stack Input Params
:param params: Stack Input Params/Environment
:param args: Request parameters/args passed from API
"""
return self.call(ctxt, self.make_msg('update_stack',
@ -110,7 +110,6 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param template: Template of stack you want to create.
:param params: Params passed from API.
"""
return self.call(ctxt, self.make_msg('validate_template',
template=template))
@ -130,7 +129,6 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param stack_name: Name of the stack you want to see.
:param params: Dict of http request parameters passed in from API side.
"""
return self.call(ctxt, self.make_msg('get_template',
stack_identity=stack_identity))
@ -141,7 +139,7 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param stack_identity: Name of the stack you want to delete.
:param params: Params passed from API.
:param cast: cast the message or use call (default: True)
"""
rpc_method = self.cast if cast else self.call
return rpc_method(ctxt,
@ -162,12 +160,17 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
:param ctxt: RPC context.
:param stack_identity: Name of the stack you want to get events for.
:param params: Params passed from API.
"""
return self.call(ctxt, self.make_msg('list_events',
stack_identity=stack_identity))
def describe_stack_resource(self, ctxt, stack_identity, resource_name):
"""
Get detailed resource information about a particular resource.
:param ctxt: RPC context.
:param stack_identity: Name of the stack.
:param resource_name: the Resource.
"""
return self.call(ctxt, self.make_msg('describe_stack_resource',
stack_identity=stack_identity,
resource_name=resource_name))
@ -185,11 +188,22 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
physical_resource_id=physical_resource_id))
def describe_stack_resources(self, ctxt, stack_identity, resource_name):
"""
Get detailed resource information about one or more resources.
:param ctxt: RPC context.
:param stack_identity: Name of the stack.
:param resource_name: the Resource.
"""
return self.call(ctxt, self.make_msg('describe_stack_resources',
stack_identity=stack_identity,
resource_name=resource_name))
def list_stack_resources(self, ctxt, stack_identity):
"""
List the resources belonging to a stack.
:param ctxt: RPC context.
:param stack_identity: Name of the stack.
"""
return self.call(ctxt, self.make_msg('list_stack_resources',
stack_identity=stack_identity))
@ -206,6 +220,9 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
'''
This could be used by CloudWatch and WaitConditions
and treat HA service events like any other CloudWatch.
:param ctxt: RPC context.
:param watch_name: Name of the watch/alarm
:param stats_data: The data to post.
'''
return self.call(ctxt, self.make_msg('create_watch_data',
watch_name=watch_name,
@ -241,9 +258,9 @@ class EngineClient(heat.openstack.common.rpc.proxy.RpcProxy):
def set_watch_state(self, ctxt, watch_name, state):
'''
Temporarily set the state of a given watch
arg1 -> RPC context.
arg2 -> Name of the watch
arg3 -> State (must be one defined in WatchRule class)
:param ctxt: RPC context.
:param watch_name: Name of the watch
:param state: State (must be one defined in WatchRule class)
'''
return self.call(ctxt, self.make_msg('set_watch_state',
watch_name=watch_name,