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
NotFoundException
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.
attrs – 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
NotFoundException
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
NotFoundException
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.
attrs – 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
NotFoundException
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
NotFoundException
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
NotFoundException
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.
Get a list of aggregates for a resource provider.
resource_provider – The value can be either the ID of a resource
provider or an
ResourceProvider
,
instance.
An instance of
ResourceProvider
with the aggregates
attribute populated.
NotFoundException
when no
resource provider matching the criteria could be found.
Update aggregates for a resource provider.
resource_provider – The value can be either the ID of a resource
provider or an
ResourceProvider
,
instance.
aggregates – A list of aggregates. These aggregates will replace all aggregates currently present.
An instance of
ResourceProvider
with the aggregates
attribute populated with the updated value.
NotFoundException
when no
resource provider matching the criteria could be found.
Create a new resource provider inventory from attributes
resource_provider – Either the ID of a resource provider or a
ResourceProvider
instance.
total – The actual amount of the resource that the provider can accommodate.
attrs – Keyword arguments which will be used to create a
ResourceProviderInventory
,
comprised of the properties on the ResourceProviderInventory class.
The results of resource provider inventory creation
Delete a resource provider inventory
resource_provider_inventory – The value can be either the ID of a
resource provider or an
ResourceProviderInventory
,
instance.
resource_provider – Either the ID of a resource provider or a
ResourceProvider
instance. This value must be specified when
resource_provider_inventory
is an ID.
ignore_missing (bool) – When set to False
NotFoundException
will be raised when
the resource provider inventory does not exist. When set to
True
, no exception will be set when attempting to delete a
nonexistent resource provider inventory.
None
Update a resource provider’s inventory
resource_provider_inventory – The value can be either the ID of a resource
provider inventory or an
ResourceProviderInventory
,
instance.
resource_provider – Either the ID of a resource provider or a
ResourceProvider
instance. This value must be specified when
resource_provider_inventory
is an ID.
The attributes to update on the resource provider inventory
represented by resource_provider_inventory
.
The updated resource provider inventory
Get a single resource_provider_inventory
resource_provider_inventory – The value can be either the ID of a
resource provider inventory or an
ResourceProviderInventory
,
instance.
resource_provider – Either the ID of a resource provider or a
ResourceProvider
instance. This value must be specified when
resource_provider_inventory
is an ID.
An instance of
ResourceProviderInventory
NotFoundException
when no
resource provider inventory matching the criteria could be found.
Retrieve a generator of resource provider inventories
resource_provider – Either the ID of a resource provider or a
ResourceProvider
instance.
query – Optional query parameters to be sent to limit the resources being returned.
A generator of resource provider inventory instances.
Create a new trait
name – The name of the new trait
The results of trait creation
Delete a trait
trait – The value can be either the ID of a trait or an
Trait
, instance.
ignore_missing (bool) – When set to False
NotFoundException
will be raised when
the resource provider inventory does not exist. When set to
True
, no exception will be set when attempting to delete a
nonexistent resource provider inventory.
None
Get a single trait
trait – The value can be either the ID of a trait or an
Trait
, instance.
An instance of
ResourceProviderInventory
NotFoundException
when no
trait matching the criteria could be found.
Retrieve a generator of traits
query – Optional query parameters to be sent to limit the resources being returned.
A generator of trait objects
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.