pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn list_by_resource_group(
&self,
resource_group_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn move_resources(
&self,
source_resource_group_name: impl Into<String>,
parameters: impl Into<ResourcesMoveInfo>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn validate_move_resources(
&self,
source_resource_group_name: impl Into<String>,
parameters: impl Into<ResourcesMoveInfo>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub fn get_by_id(&self, resource_id: impl Into<String>) -> RequestBuilder
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}
sourcepub fn create_or_update_by_id(
&self,
resource_id: impl Into<String>,
parameters: impl Into<GenericResource>
) -> RequestBuilder
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.
sourcepub fn update_by_id(
&self,
resource_id: impl Into<String>,
parameters: impl Into<GenericResource>
) -> RequestBuilder
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.
sourcepub fn delete_by_id(&self, resource_id: impl Into<String>) -> RequestBuilder
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}
sourcepub fn check_existence_by_id(
&self,
resource_id: impl Into<String>
) -> RequestBuilder
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}