Condividi tramite


TemplateSpecCollection Class

Definition

A class representing a collection of TemplateSpecResource and their operations. Each TemplateSpecResource in the collection will belong to the same instance of ResourceGroupResource. To get a TemplateSpecCollection instance call the GetTemplateSpecs method from an instance of ResourceGroupResource.

public class TemplateSpecCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.TemplateSpecResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.TemplateSpecResource>
type TemplateSpecCollection = class
    inherit ArmCollection
    interface seq<TemplateSpecResource>
    interface IEnumerable
    interface IAsyncEnumerable<TemplateSpecResource>
Public Class TemplateSpecCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of TemplateSpecResource), IEnumerable(Of TemplateSpecResource)
Inheritance
TemplateSpecCollection
Implements

Constructors

TemplateSpecCollection()

Initializes a new instance of the TemplateSpecCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, TemplateSpecData, CancellationToken)

Creates or updates a Template Spec.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_CreateOrUpdate
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
CreateOrUpdateAsync(WaitUntil, String, TemplateSpecData, CancellationToken)

Creates or updates a Template Spec.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_CreateOrUpdate
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
Exists(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
ExistsAsync(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
Get(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Gets a Template Spec with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetAll(Nullable<TemplateSpecExpandKind>, CancellationToken)

Lists all the Template Specs within the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListByResourceGroup
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetAllAsync(Nullable<TemplateSpecExpandKind>, CancellationToken)

Lists all the Template Specs within the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListByResourceGroup
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetAsync(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Gets a Template Spec with a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetIfExists(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
GetIfExistsAsync(String, Nullable<TemplateSpecExpandKind>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
  • Operation Id: TemplateSpecs_Get
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<TemplateSpecResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<TemplateSpecResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to