Udostępnij za pośrednictwem


DataMigrationServiceCollection Class

Definition

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

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

Constructors

DataMigrationServiceCollection()

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

The services resource is the top-level resource that represents the Database Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}
  • Operation Id: Services_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, DataMigrationServiceData, CancellationToken)

The services resource is the top-level resource that represents the Database Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

The services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}
  • Operation Id: Services_Get
GetAll(CancellationToken)

The Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services
  • Operation Id: Services_ListByResourceGroup
GetAllAsync(CancellationToken)

The Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services
  • Operation Id: Services_ListByResourceGroup
GetAsync(String, CancellationToken)

The services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}
  • Operation Id: Services_Get
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}
  • Operation Id: Services_Get
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/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<DataMigrationServiceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DataMigrationServiceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to