otcextensions.sdk.function_graph.v2.template¶
The Template Class¶
The Template
class inherits from
Resource
.
- class otcextensions.sdk.function_graph.v2.template.Template(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- base_path: str = 'fgs/templates/%(template_id)s'¶
The base part of the URI for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- id¶
Template ID.
- type¶
Template type.
- title¶
Template title.
- template_name¶
Template name.
- description¶
Template description.
- runtime¶
Template runtime.
- handler¶
Template handler.
- code_type¶
Code type.
- code¶
Code file.
- timeout¶
Maximum duration the function can be executed. Value range: 3s-259,200s.
- memory_size¶
Memory size.
- trigger_metadata_list¶
Trigger information.
- temp_detail¶
Template details.
- user_data¶
User data.
- encrypted_user_data¶
Encrypted user data.
- dependencies¶
Dependencies required by the template.
- scene¶
Template application scenarios.
- service¶
Cloud service associated with the template.