DataMigrationServiceCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
|
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.
|
Exists(String, CancellationToken) |
Checks to see if the resource exists in azure.
|
ExistsAsync(String, CancellationToken) |
Checks to see if the resource exists in azure.
|
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.
|
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.
|
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.
|
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.
|
GetIfExists(String, CancellationToken) |
Tries to get details for this resource from the service.
|
GetIfExistsAsync(String, CancellationToken) |
Tries to get details for this resource from the service.
|
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
Azure SDK for .NET