Condividi tramite


ServiceResourceCollection Class

Definition

A class representing a collection of ServiceResource and their operations. Each ServiceResource in the collection will belong to the same instance of ServiceTopologyResource. To get a ServiceResourceCollection instance call the GetServiceResources method from an instance of ServiceTopologyResource.

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

Constructors

ServiceResourceCollection()

Initializes a new instance of the ServiceResourceCollection 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, ServiceResourceData, CancellationToken)

Synchronously creates a new service or updates an existing service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, ServiceResourceData, CancellationToken)

Synchronously creates a new service or updates an existing service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_CreateOrUpdate
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_Get
Get(String, CancellationToken)

Gets the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_Get
GetAll(CancellationToken)

Lists the services in the service topology.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services
  • Operation Id: Services_List
GetAllAsync(CancellationToken)

Lists the services in the service topology.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services
  • Operation Id: Services_List
GetAsync(String, CancellationToken)

Gets the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operation Id: Services_Get
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<ServiceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ServiceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to