The placement high-level interface is available through the placement
member of a Connection
object.
The placement
member will only be added if the service is detected.
Create a new resource class from attributes.
attrs – Keyword arguments which will be used to create a
ResourceClass
,
comprised of the properties on the ResourceClass class.
The results of resource class creation
Delete a resource class
resource_class – The value can be either the ID of a resource
class or an
ResourceClass
,
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the resource class does not exist. When set to True
, no
exception will be set when attempting to delete a nonexistent
resource class.
None
Update a resource class
resource_class – The value can be either the ID of a resource
class or an
ResourceClass
,
instance.
The attributes to update on the resource class
represented by resource_class
.
The updated resource class
Get a single resource_class.
resource_class – The value can be either the ID of a resource
class or an
ResourceClass
,
instance.
An instance of
ResourceClass
ResourceNotFound
when no
resource class matching the criteria could be found.
Retrieve a generator of resource classs.
query (kwargs) – Optional query parameters to be sent to restrict the resource classs to be returned.
A generator of resource class instances.
Create a new resource provider from attributes.
attrs – Keyword arguments which will be used to create a
ResourceProvider
,
comprised of the properties on the ResourceProvider class.
The results of resource provider creation
Delete a resource provider
resource_provider – The value can be either the ID of a resource
provider or an
ResourceProvider
,
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the resource provider does not exist. When set to True
, no
exception will be set when attempting to delete a nonexistent
resource provider.
None
Update a resource provider
resource_provider – The value can be either the ID of a resource
provider or an
ResourceProvider
,
instance.
The attributes to update on the resource provider
represented by resource_provider
.
The updated resource provider
Get a single resource_provider.
resource_provider – The value can be either the ID of a resource
provider or an
ResourceProvider
,
instance.
An instance of
ResourceProvider
ResourceNotFound
when no
resource provider matching the criteria could be found.
Find a single resource_provider.
name_or_id – The name or ID of a resource provider.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the resource does not exist. When set to True
, None will be
returned when attempting to find a nonexistent resource.
An instance of
ResourceProvider
ResourceNotFound
when no
resource provider matching the criteria could be found.
Retrieve a generator of resource providers.
query (kwargs) – Optional query parameters to be sent to restrict the resource providers to be returned.
A generator of resource provider instances.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.