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.object
TemplateSpecsOperations

Constructor

TemplateSpecsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

template_spec_name
str
Required

Name of the Template Spec.

template_spec
TemplateSpec
Required

Template Spec supplied to the operation.

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

template_spec_name
str
Required

Name of the Template Spec.

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

template_spec_name
str
Required

Name of the Template Spec.

expand
str or TemplateSpecExpandKind
Required

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

expand
str or TemplateSpecExpandKind
Required

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
Required

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

template_spec_name
str
Required

Name of the Template Spec.

template_spec
TemplateSpecUpdateModel
Required

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'>