TemplateSpecsOperations Class
TemplateSpecsOperations 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.objectTemplateSpecsOperations
Constructor
TemplateSpecsOperations(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. |
| delete |
Deletes a Template Spec by name. When operation completes, status code 200 returned without content. |
| get |
Gets a Template Spec with a given name. |
| list_by_resource_group |
Lists all the Template Specs within the specified resource group. |
| list_by_subscription |
Lists all the Template Specs within the specified subscriptions. |
| update |
Updates Template Spec tags with specified values. |
create_or_update
Creates or updates a Template Spec.
create_or_update(resource_group_name: str, template_spec_name: str, template_spec: azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpec, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpec
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
TemplateSpec, or the result of cls(response)
Return type
Exceptions
delete
Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
delete(resource_group_name: str, template_spec_name: 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 with a given name.
get(resource_group_name: str, template_spec_name: str, expand: Optional[Union[str, azure.mgmt.resource.templatespecs.v2021_05_01.models._template_specs_client_enums.TemplateSpecExpandKind]] = None, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpec
Parameters
- expand
- str or TemplateSpecExpandKind
Allows for expansion of additional Template Spec details in the response. Optional. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
TemplateSpec, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all the Template Specs within the specified resource group.
list_by_resource_group(resource_group_name: str, expand: Optional[Union[str, azure.mgmt.resource.templatespecs.v2021_05_01.models._template_specs_client_enums.TemplateSpecExpandKind]] = None, **kwargs: Any) -> Iterable[azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecsListResult]
Parameters
- expand
- str or TemplateSpecExpandKind
Allows for expansion of additional Template Spec details in the response. Optional. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either TemplateSpecsListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all the Template Specs within the specified subscriptions.
list_by_subscription(expand: Optional[Union[str, azure.mgmt.resource.templatespecs.v2021_05_01.models._template_specs_client_enums.TemplateSpecExpandKind]] = None, **kwargs: Any) -> Iterable[azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecsListResult]
Parameters
- expand
- str or TemplateSpecExpandKind
Allows for expansion of additional Template Spec details in the response. Optional. Default value is None.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either TemplateSpecsListResult or the result of cls(response)
Return type
Exceptions
update
Updates Template Spec tags with specified values.
update(resource_group_name: str, template_spec_name: str, template_spec: Optional[azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpecUpdateModel] = None, **kwargs: Any) -> azure.mgmt.resource.templatespecs.v2021_05_01.models._models_py3.TemplateSpec
Parameters
- template_spec
- TemplateSpecUpdateModel
Template Spec 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
TemplateSpec, 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