TemplateSpecVersionsOperations Class
TemplateSpecVersionsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectTemplateSpecVersionsOperations
Constructor
TemplateSpecVersionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Creates or updates a Template Spec version. |
| delete |
Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content. |
| get |
Gets a Template Spec version from a specific Template Spec. |
| list |
Lists all the Template Spec versions in the specified Template Spec. |
| update |
Updates Template Spec Version tags with specified values. |
create_or_update
Creates or updates a Template Spec version.
create_or_update(resource_group_name: str, template_spec_name: str, template_spec_version: str, template_spec_version_model: azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersion, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersion
Parameters
- template_spec_version_model
- TemplateSpecVersion
Template Spec Version supplied to the operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
TemplateSpecVersion, or the result of cls(response)
Return type
Exceptions
delete
Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content.
delete(resource_group_name: str, template_spec_name: str, template_spec_version: str, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Gets a Template Spec version from a specific Template Spec.
get(resource_group_name: str, template_spec_name: str, template_spec_version: str, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersion
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
TemplateSpecVersion, or the result of cls(response)
Return type
Exceptions
list
Lists all the Template Spec versions in the specified Template Spec.
list(resource_group_name: str, template_spec_name: str, **kwargs: Any) -> Iterable[azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersionsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either TemplateSpecVersionsListResult or the result of cls(response)
Return type
Exceptions
update
Updates Template Spec Version tags with specified values.
update(resource_group_name: str, template_spec_name: str, template_spec_version: str, template_spec_version_update_model: Optional[azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersionUpdateModel] = None, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecVersion
Parameters
- template_spec_version_update_model
- TemplateSpecVersionUpdateModel
Template Spec Version resource with the tags to be updated. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
TemplateSpecVersion, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.resource.templatespecs.v2021_05_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\templatespecs\\v2021_05_01\\models\\__init__.py'>
Feedback
Submit and view feedback for