pub struct Client(/* private fields */);
Implementations§
Source§impl Client
impl Client
Sourcepub fn get(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn get( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Get DMS Service Instance The services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn create_or_update(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
parameters: impl Into<DataMigrationService>,
) -> RequestBuilder
pub fn create_or_update( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, parameters: impl Into<DataMigrationService>, ) -> RequestBuilder
Create or update DMS Instance 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.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the serviceparameters
: Information about the service
Sourcepub fn update(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
parameters: impl Into<DataMigrationService>,
) -> RequestBuilder
pub fn update( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, parameters: impl Into<DataMigrationService>, ) -> RequestBuilder
Create or update DMS Service Instance The services resource is the top-level resource that represents the Database Migration Service. The PATCH method updates an existing service. 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”).
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the serviceparameters
: Information about the service
Sourcepub fn delete(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn delete( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Delete DMS Service Instance The services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn check_status(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn check_status( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Check service health status The services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn start(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn start( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Start service The services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn stop(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn stop( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Stop service The services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won’t be billed when the service is stopped.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn list_skus(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
) -> RequestBuilder
pub fn list_skus( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, ) -> RequestBuilder
Get compatible SKUs The services resource is the top-level resource that represents the Database Migration Service. The skus action returns the list of SKUs that a service resource can be updated to.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the service
Sourcepub fn check_children_name_availability(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
service_name: impl Into<String>,
parameters: impl Into<NameAvailabilityRequest>,
) -> RequestBuilder
pub fn check_children_name_availability( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, service_name: impl Into<String>, parameters: impl Into<NameAvailabilityRequest>, ) -> RequestBuilder
Check nested resource name validity and availability This method checks whether a proposed nested resource name is valid and available.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource groupservice_name
: Name of the serviceparameters
: Requested name to validate
Sourcepub fn list_by_resource_group(
&self,
subscription_id: impl Into<String>,
group_name: impl Into<String>,
) -> RequestBuilder
pub fn list_by_resource_group( &self, subscription_id: impl Into<String>, group_name: impl Into<String>, ) -> RequestBuilder
Get services in resource group 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.
Arguments:
subscription_id
: Identifier of the subscriptiongroup_name
: Name of the resource group
Sourcepub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
pub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
Get services in subscription The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription.
Arguments:
subscription_id
: Identifier of the subscription
Sourcepub fn check_name_availability(
&self,
subscription_id: impl Into<String>,
location: impl Into<String>,
parameters: impl Into<NameAvailabilityRequest>,
) -> RequestBuilder
pub fn check_name_availability( &self, subscription_id: impl Into<String>, location: impl Into<String>, parameters: impl Into<NameAvailabilityRequest>, ) -> RequestBuilder
Check name validity and availability This method checks whether a proposed top-level resource name is valid and available.
Arguments:
subscription_id
: Identifier of the subscriptionlocation
: The Azure region of the operationparameters
: Requested name to validate