pub struct Client(_);

Implementations§

source§

impl Client

source

pub fn list_by_resource_group( &self, resource_group_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Get all the resources for a resource group.

Arguments:

  • resource_group_name: The resource group with the resources to get.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn move_resources( &self, source_resource_group_name: impl Into<String>, parameters: impl Into<ResourcesMoveInfo>, subscription_id: impl Into<String> ) -> RequestBuilder

Moves resources from one resource group to another resource group. The resources to be moved must be in the same source resource group in the source subscription being used. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes.

Arguments:

  • source_resource_group_name: The name of the resource group from the source subscription containing the resources to be moved.
  • parameters: Parameters for moving resources.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn validate_move_resources( &self, source_resource_group_name: impl Into<String>, parameters: impl Into<ResourcesMoveInfo>, subscription_id: impl Into<String> ) -> RequestBuilder

Validates whether resources can be moved from one resource group to another resource group. This operation checks whether the specified resources can be moved to the target. The resources to be moved must be in the same source resource group in the source subscription being used. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation.

Arguments:

  • source_resource_group_name: The name of the resource group from the source subscription containing the resources to be validated for move.
  • parameters: Parameters for moving resources.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder

Get all the resources in a subscription.

Arguments:

  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn get( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Gets a resource.

Arguments:

  • resource_group_name: The name of the resource group containing the resource to get. The name is case insensitive.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the resource.
  • resource_name: The name of the resource to get.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn create_or_update( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, parameters: impl Into<GenericResource>, subscription_id: impl Into<String> ) -> RequestBuilder

Creates a resource.

Arguments:

  • resource_group_name: The name of the resource group for the resource. The name is case insensitive.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the resource to create.
  • resource_name: The name of the resource to create.
  • parameters: Parameters for creating or updating the resource.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn update( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, parameters: impl Into<GenericResource>, subscription_id: impl Into<String> ) -> RequestBuilder

Updates a resource.

Arguments:

  • resource_group_name: The name of the resource group for the resource. The name is case insensitive.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the resource to update.
  • resource_name: The name of the resource to update.
  • parameters: Parameters for updating the resource.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn delete( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Deletes a resource.

Arguments:

  • resource_group_name: The name of the resource group that contains the resource to delete. The name is case insensitive.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type.
  • resource_name: The name of the resource to delete.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn check_existence( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Checks whether a resource exists.

Arguments:

  • resource_group_name: The name of the resource group containing the resource to check. The name is case insensitive.
  • resource_provider_namespace: The resource provider of the resource to check.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type.
  • resource_name: The name of the resource to check whether it exists.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn get_by_id(&self, resource_id: impl Into<String>) -> RequestBuilder

Gets a resource by ID.

Arguments:

  • resource_id: The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
source

pub fn create_or_update_by_id( &self, resource_id: impl Into<String>, parameters: impl Into<GenericResource> ) -> RequestBuilder

Create a resource by ID.

Arguments:

  • resource_id: The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
  • parameters: Create or update resource parameters.
source

pub fn update_by_id( &self, resource_id: impl Into<String>, parameters: impl Into<GenericResource> ) -> RequestBuilder

Updates a resource by ID.

Arguments:

  • resource_id: The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
  • parameters: Update resource parameters.
source

pub fn delete_by_id(&self, resource_id: impl Into<String>) -> RequestBuilder

Deletes a resource by ID.

Arguments:

  • resource_id: The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
source

pub fn check_existence_by_id( &self, resource_id: impl Into<String> ) -> RequestBuilder

Checks by ID whether a resource exists. This API currently works only for a limited set of Resource providers. In the event that a Resource provider does not implement this API, ARM will respond with a 405. The alternative then is to use the GET API to check for the existence of the resource.

Arguments:

  • resource_id: The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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 Twhere U: From<T>,

const: unstable · 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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
§

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

§

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