heat.engine.clients.os.sahara
Module¶heat.engine.clients.os.sahara.
ClusterConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'clusters'¶heat.engine.clients.os.sahara.
ClusterTemplateConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'cluster_templates'¶heat.engine.clients.os.sahara.
DataSourceConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'data_sources'¶heat.engine.clients.os.sahara.
ImageConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'images'¶heat.engine.clients.os.sahara.
JobBinaryConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'job_binaries'¶heat.engine.clients.os.sahara.
JobTypeConstraint
[source]¶Bases: heat.engine.clients.os.sahara.SaharaBaseConstraint
resource_name
= 'job_types'¶heat.engine.clients.os.sahara.
PluginConstraint
[source]¶Bases: heat.engine.constraints.BaseCustomConstraint
resource_client_name
= 'sahara'¶resource_getter_name
= 'get_plugin_id'¶heat.engine.clients.os.sahara.
SaharaBaseConstraint
[source]¶Bases: heat.engine.constraints.BaseCustomConstraint
expected_exceptions
= (<class 'heat.common.exception.EntityNotFound'>, <class 'heat.common.exception.PhysicalResourceNameAmbiguity'>)¶resource_name
= None¶heat.engine.clients.os.sahara.
SaharaClientPlugin
(context)[source]¶Bases: heat.engine.clients.client_plugin.ClientPlugin
DATA_PROCESSING
= 'data-processing'¶exceptions_module
= <module 'saharaclient.api.base' from '/home/zuul/.venv/local/lib/python2.7/site-packages/saharaclient/api/base.pyc'>¶find_resource_by_name
(resource_name, value)[source]¶Return the ID for the specified entity name.
Raises: | exception.EntityNotFound, exception.PhysicalResourceNameAmbiguity |
---|
find_resource_by_name_or_id
(resource_name, value)[source]¶Return the ID for the specified name or identifier.
Parameters: |
|
---|---|
Returns: | the id of the requested :value: |
Raises: | exception.EntityNotFound, exception.PhysicalResourceNameAmbiguity |
get_image_id
(image_identifier)[source]¶Return the ID for the specified image name or identifier.
Parameters: | image_identifier – image name or a UUID-like identifier |
---|---|
Returns: | the id of the requested :image_identifier: |
Raises: | exception.EntityNotFound, exception.PhysicalResourceNameAmbiguity |
get_plugin_id
(plugin_name)[source]¶Get the id for the specified plugin name.
Parameters: | plugin_name – the name of the plugin to find |
---|---|
Returns: | the id of :plugin: |
Raises: | exception.EntityNotFound |
service_types
= ['data-processing']¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.