Fix documentation warnings
Change-Id: Ib9e3652764f923bcf4804d1af4064d3034c96f7e
This commit is contained in:
parent
ae45a0726c
commit
e074646d0d
@ -6,7 +6,7 @@ For details on how to use keystore, see :doc:`/users/userguides/keystore`
|
||||
.. automodule:: openstack.keystore.v1._proxy
|
||||
|
||||
The Keystore Class
|
||||
-------------
|
||||
------------------
|
||||
|
||||
The keystore high-level interface is available through the ``keystore``
|
||||
member of a :class:`~openstack.connection.Connection` object. The
|
||||
|
@ -95,7 +95,7 @@ class Proxy(proxy.BaseProxy):
|
||||
:class:`~openstack.compute.v2.flavor.FlavorDetail` objects,
|
||||
otherwise :class:`~openstack.compute.v2.flavor.Flavor`.
|
||||
*Default: ``True``*
|
||||
:param kwargs **query: Optional query parameters to be sent to limit
|
||||
:param kwargs \*\*query: Optional query parameters to be sent to limit
|
||||
the flavors being returned.
|
||||
|
||||
:returns: A generator of flavor objects
|
||||
@ -158,7 +158,7 @@ class Proxy(proxy.BaseProxy):
|
||||
:class:`~openstack.compute.v2.image.ImageDetail` objects,
|
||||
otherwise :class:`~openstack.compute.v2.image.Image`.
|
||||
*Default: ``True``*
|
||||
:param kwargs **query: Optional query parameters to be sent to limit
|
||||
:param kwargs \*\*query: Optional query parameters to be sent to limit
|
||||
the flavors being returned.
|
||||
|
||||
:returns: A generator of image objects
|
||||
@ -299,45 +299,32 @@ class Proxy(proxy.BaseProxy):
|
||||
will be returned. The default, ``True``, will cause
|
||||
:class:`~openstack.compute.v2.server.ServerDetail`
|
||||
instances to be returned.
|
||||
:param kwargs **query: Optional query parameters to be sent to limit
|
||||
the servers being returned.
|
||||
Available parameters include:
|
||||
:param kwargs \*\*query: Optional query parameters to be sent to limit
|
||||
the servers being returned. Available parameters include:
|
||||
|
||||
* changes_since: A time/date stamp for when
|
||||
the server last changed
|
||||
* changes_since: A time/date stamp for when the server last changed
|
||||
status.
|
||||
* image: An image resource or ID.
|
||||
* flavor: A flavor resource or ID.
|
||||
* name: Name of the server as a string.
|
||||
Can be queried with regular
|
||||
expressions. The regular expression
|
||||
?name=bob returns both bob and bobb.
|
||||
If you must match on only bob,
|
||||
you can use a regular expression that
|
||||
matches the syntax of the underlying
|
||||
database server that is implemented
|
||||
for Compute, such as MySQL or
|
||||
PostgreSQL.
|
||||
* status: Value of the status of the server so
|
||||
that you can filter on "ACTIVE" for
|
||||
example.
|
||||
* name: Name of the server as a string. Can be queried with
|
||||
regular expressions. The regular expression
|
||||
?name=bob returns both bob and bobb. If you must match on
|
||||
only bob, you can use a regular expression that
|
||||
matches the syntax of the underlying database server that
|
||||
is implemented for Compute, such as MySQL or PostgreSQL.
|
||||
* status: Value of the status of the server so that you can filter
|
||||
on "ACTIVE" for example.
|
||||
* host: Name of the host as a string.
|
||||
* limit: Requests a specified page size of
|
||||
returned items from the query.
|
||||
Returns a number of items up to the
|
||||
specified limit value. Use the limit
|
||||
parameter to make an initial limited
|
||||
request and use the ID of the
|
||||
last-seen item from the response as
|
||||
the marker parameter value in a
|
||||
subsequent limited request.
|
||||
* marker: Specifies the ID of the last-seen
|
||||
item. Use the limit parameter to
|
||||
make an initial limited request
|
||||
and use the ID of the last-seen
|
||||
item from the response as the
|
||||
marker parameter value in a
|
||||
subsequent limited request.
|
||||
* limit: Requests a specified page size of returned items from the
|
||||
query. Returns a number of items up to the specified
|
||||
limit value. Use the limit parameter to make an initial
|
||||
limited request and use the ID of the last-seen item from
|
||||
the response as the marker parameter value in a subsequent
|
||||
limited request.
|
||||
* marker: Specifies the ID of the last-seen item. Use the limit
|
||||
parameter to make an initial limited request and use the
|
||||
ID of the last-seen item from the response as the marker
|
||||
parameter value in a subsequent limited request.
|
||||
|
||||
:returns: A generator of server instances.
|
||||
"""
|
||||
|
@ -418,13 +418,14 @@ class Proxy(proxy.BaseProxy):
|
||||
def create_metering_label_rule(self, **attrs):
|
||||
"""Create a new metering label rule from attributes
|
||||
|
||||
:param dict attrs: Keyword arguments which will be used to create
|
||||
a :class:`~openstack.network.v2.metering_label_rule.MeteringLabelRule`,
|
||||
comprised of the properties on the MeteringLabelRule class.
|
||||
:param dict attrs: Keyword arguments which will be used to create a
|
||||
:class:`~openstack.network.v2.metering_label_rule.\
|
||||
MeteringLabelRule`, comprised of the properties on
|
||||
the MeteringLabelRule class.
|
||||
|
||||
:returns: The results of metering label rule creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.metering_label_rule.MeteringLabelRule`
|
||||
:rtype: :class:`~openstack.network.v2.metering_label_rule.\
|
||||
MeteringLabelRule`
|
||||
"""
|
||||
return self._create(metering_label_rule.MeteringLabelRule, **attrs)
|
||||
|
||||
@ -432,14 +433,13 @@ class Proxy(proxy.BaseProxy):
|
||||
"""Delete a metering label rule
|
||||
|
||||
:param value: The value can be either the ID of a metering label rule
|
||||
or a
|
||||
:class:`~openstack.network.v2.metering_label_rule.MeteringLabelRule`
|
||||
instance.
|
||||
or a :class:`~openstack.network.v2.metering_label_rule.\
|
||||
MeteringLabelRule` instance.
|
||||
:param bool ignore_missing: When set to ``False``
|
||||
:class:`~openstack.exceptions.ResourceNotFound` will be
|
||||
raised when the metering label rule does not exist.
|
||||
When set to ``True``, no exception will be set when
|
||||
attempting to delete a nonexistent metering label rule.
|
||||
:class:`~openstack.exceptions.ResourceNotFound` will be raised
|
||||
when the metering label rule does not exist. When set to ``True``,
|
||||
no exception will be set when attempting to delete a nonexistent
|
||||
metering label rule.
|
||||
|
||||
:returns: ``None``
|
||||
"""
|
||||
@ -460,11 +460,12 @@ class Proxy(proxy.BaseProxy):
|
||||
"""Get a single metering label rule
|
||||
|
||||
:param value: The value can be the ID of a metering label rule or a
|
||||
:class:`~openstack.network.v2.metering_label_rule.MeteringLabelRule`
|
||||
instance.
|
||||
:class:`~openstack.network.v2.metering_label_rule.\
|
||||
MeteringLabelRule` instance.
|
||||
|
||||
:returns: One
|
||||
:class:`~openstack.network.v2.metering_label_rule.MeteringLabelRule`
|
||||
:class:`~openstack.network.v2.metering_label_rule.\
|
||||
MeteringLabelRule`
|
||||
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
||||
when no resource can be found.
|
||||
"""
|
||||
@ -503,8 +504,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the Network class.
|
||||
|
||||
:returns: The results of network creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.network.Network`
|
||||
:rtype: :class:`~openstack.network.v2.network.Network`
|
||||
"""
|
||||
return self._create(network.Network, **attrs)
|
||||
|
||||
@ -572,8 +572,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the Pool class.
|
||||
|
||||
:returns: The results of pool creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.pool.Pool`
|
||||
:rtype: :class:`~openstack.network.v2.pool.Pool`
|
||||
"""
|
||||
return self._create(pool.Pool, **attrs)
|
||||
|
||||
@ -641,8 +640,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the PoolMember class.
|
||||
|
||||
:returns: The results of pool member creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.pool_member.PoolMember`
|
||||
:rtype: :class:`~openstack.network.v2.pool_member.PoolMember`
|
||||
"""
|
||||
return self._create(pool_member.PoolMember, **attrs)
|
||||
|
||||
@ -714,8 +712,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the Port class.
|
||||
|
||||
:returns: The results of port creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.port.Port`
|
||||
:rtype: :class:`~openstack.network.v2.port.Port`
|
||||
"""
|
||||
return self._create(port.Port, **attrs)
|
||||
|
||||
@ -808,8 +805,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the Router class.
|
||||
|
||||
:returns: The results of router creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.router.Router`
|
||||
:rtype: :class:`~openstack.network.v2.router.Router`
|
||||
"""
|
||||
return self._create(router.Router, **attrs)
|
||||
|
||||
@ -883,8 +879,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the SecurityGroup class.
|
||||
|
||||
:returns: The results of security group creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.security_group.SecurityGroup`
|
||||
:rtype: :class:`~openstack.network.v2.security_group.SecurityGroup`
|
||||
"""
|
||||
return self._create(security_group.SecurityGroup, **attrs)
|
||||
|
||||
@ -939,8 +934,7 @@ class Proxy(proxy.BaseProxy):
|
||||
"""Update a security group
|
||||
|
||||
:param value: Either the id of a security group or a
|
||||
:class:`~openstack.network.v2.security_group.
|
||||
SecurityGroup`
|
||||
:class:`~openstack.network.v2.security_group.SecurityGroup`
|
||||
instance.
|
||||
:attrs kwargs: The attributes to update on the security group
|
||||
represented by ``value``.
|
||||
@ -977,13 +971,14 @@ class Proxy(proxy.BaseProxy):
|
||||
def create_security_group_rule(self, **attrs):
|
||||
"""Create a new security group rule from attributes
|
||||
|
||||
:param dict attrs: Keyword arguments which will be used to create
|
||||
a :class:`~openstack.network.v2.security_group_rule.SecurityGroupRule`,
|
||||
comprised of the properties on the SecurityGroupRule class.
|
||||
:param dict attrs: Keyword arguments which will be used to create a
|
||||
:class:`~openstack.network.v2.security_group_rule.
|
||||
SecurityGroupRule`, comprised of the properties on the
|
||||
SecurityGroupRule class.
|
||||
|
||||
:returns: The results of security group rule creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.security_group_rule.SecurityGroupRule`
|
||||
:rtype: :class:`~openstack.network.v2.security_group_rule.\
|
||||
SecurityGroupRule`
|
||||
"""
|
||||
return self._create(security_group_rule.SecurityGroupRule, **attrs)
|
||||
|
||||
@ -991,9 +986,8 @@ class Proxy(proxy.BaseProxy):
|
||||
"""Delete a security group rule
|
||||
|
||||
:param value: The value can be either the ID of a security group rule
|
||||
or a
|
||||
:class:`~openstack.network.v2.security_group_rule.SecurityGroupRule`
|
||||
instance.
|
||||
or a :class:`~openstack.network.v2.security_group_rule.
|
||||
SecurityGroupRule` instance.
|
||||
:param bool ignore_missing: When set to ``False``
|
||||
:class:`~openstack.exceptions.ResourceNotFound` will be
|
||||
raised when the security group rule does not exist.
|
||||
@ -1019,11 +1013,11 @@ class Proxy(proxy.BaseProxy):
|
||||
"""Get a single security group rule
|
||||
|
||||
:param value: The value can be the ID of a security group rule or a
|
||||
:class:`~openstack.network.v2.security_group_rule.SecurityGroupRule`
|
||||
instance.
|
||||
:class:`~openstack.network.v2.security_group_rule.\
|
||||
SecurityGroupRule` instance.
|
||||
|
||||
:returns: One
|
||||
:class:`~openstack.network.v2.security_group_rule.SecurityGroupRule`
|
||||
:returns: :class:`~openstack.network.v2.security_group_rule.\
|
||||
SecurityGroupRule`
|
||||
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
||||
when no resource can be found.
|
||||
"""
|
||||
@ -1062,8 +1056,7 @@ class Proxy(proxy.BaseProxy):
|
||||
comprised of the properties on the Subnet class.
|
||||
|
||||
:returns: The results of subnet creation
|
||||
:rtype:
|
||||
:class:`~openstack.network.v2.subnet.Subnet`
|
||||
:rtype: :class:`~openstack.network.v2.subnet.Subnet`
|
||||
"""
|
||||
return self._create(subnet.Subnet, **attrs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user