pub struct Client(/* private fields */);

Implementations§

Source§

impl Client

Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
  • parameters: Information about the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
  • parameters: Information about the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
Source

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 subscription
  • group_name: Name of the resource group
  • service_name: Name of the service
  • parameters: Requested name to validate
Source

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 subscription
  • group_name: Name of the resource group
Source

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
Source

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 subscription
  • location: The Azure region of the operation
  • parameters: Requested name to validate

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,