pub struct Client(_);

Implementations§

source§

impl Client

source

pub fn get_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Gets a deployment.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
source

pub fn create_or_update_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<Deployment> ) -> RequestBuilder

Deploys resources at a given scope. You can provide the template and parameters directly in the request or link to JSON files.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
  • parameters: Additional parameters supplied to the operation.
source

pub fn delete_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Deletes a deployment from the deployment history. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
source

pub fn check_existence_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Checks whether the deployment exists.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
source

pub fn cancel_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
source

pub fn validate_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<Deployment> ) -> RequestBuilder

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
source

pub fn export_template_at_scope( &self, scope: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Exports the template used for specified deployment.

Arguments:

  • scope: The resource scope.
  • deployment_name: The name of the deployment.
source

pub fn list_at_scope(&self, scope: impl Into<String>) -> RequestBuilder

Get all the deployments at the given scope.

Arguments:

  • scope: The resource scope.
source

pub fn get_at_tenant_scope( &self, deployment_name: impl Into<String> ) -> RequestBuilder

Gets a deployment.

Arguments:

  • deployment_name: The name of the deployment.
source

pub fn create_or_update_at_tenant_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeployment> ) -> RequestBuilder

Deploys resources at tenant scope. You can provide the template and parameters directly in the request or link to JSON files.

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Additional parameters supplied to the operation.
source

pub fn delete_at_tenant_scope( &self, deployment_name: impl Into<String> ) -> RequestBuilder

Deletes a deployment from the deployment history. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

Arguments:

  • deployment_name: The name of the deployment.
source

pub fn check_existence_at_tenant_scope( &self, deployment_name: impl Into<String> ) -> RequestBuilder

Checks whether the deployment exists.

Arguments:

  • deployment_name: The name of the deployment.
source

pub fn cancel_at_tenant_scope( &self, deployment_name: impl Into<String> ) -> RequestBuilder

Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.

Arguments:

  • deployment_name: The name of the deployment.
source

pub fn validate_at_tenant_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeployment> ) -> RequestBuilder

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
source

pub fn what_if_at_tenant_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeploymentWhatIf> ) -> RequestBuilder

Returns changes that will be made by the deployment if executed at the scope of the tenant group.

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
source

pub fn export_template_at_tenant_scope( &self, deployment_name: impl Into<String> ) -> RequestBuilder

Exports the template used for specified deployment.

Arguments:

  • deployment_name: The name of the deployment.
source

pub fn list_at_tenant_scope(&self) -> RequestBuilder

Get all the deployments at the tenant scope.

source

pub fn get_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Gets a deployment.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
source

pub fn create_or_update_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeployment> ) -> RequestBuilder

Deploys resources at management group scope. You can provide the template and parameters directly in the request or link to JSON files.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
  • parameters: Additional parameters supplied to the operation.
source

pub fn delete_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Deletes a deployment from the deployment history. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
source

pub fn check_existence_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Checks whether the deployment exists.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
source

pub fn cancel_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
source

pub fn validate_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeployment> ) -> RequestBuilder

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
source

pub fn what_if_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<ScopedDeploymentWhatIf> ) -> RequestBuilder

Returns changes that will be made by the deployment if executed at the scope of the management group.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
source

pub fn export_template_at_management_group_scope( &self, group_id: impl Into<String>, deployment_name: impl Into<String> ) -> RequestBuilder

Exports the template used for specified deployment.

Arguments:

  • group_id: The management group ID.
  • deployment_name: The name of the deployment.
source

pub fn list_at_management_group_scope( &self, group_id: impl Into<String> ) -> RequestBuilder

Get all the deployments for a management group.

Arguments:

  • group_id: The management group ID.
source

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

Gets a deployment.

Arguments:

  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn create_or_update_at_subscription_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<Deployment>, subscription_id: impl Into<String> ) -> RequestBuilder

Deploys resources at subscription scope. You can provide the template and parameters directly in the request or link to JSON files.

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Additional parameters supplied to the operation.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Deletes a deployment from the deployment history. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

Arguments:

  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Checks whether the deployment exists.

Arguments:

  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.

Arguments:

  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn validate_at_subscription_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<Deployment>, subscription_id: impl Into<String> ) -> RequestBuilder

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn what_if_at_subscription_scope( &self, deployment_name: impl Into<String>, parameters: impl Into<DeploymentWhatIf>, subscription_id: impl Into<String> ) -> RequestBuilder

Returns changes that will be made by the deployment if executed at the scope of the subscription.

Arguments:

  • deployment_name: The name of the deployment.
  • parameters: Parameters to What If.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Exports the template used for specified deployment.

Arguments:

  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Get all the deployments for a subscription.

Arguments:

  • subscription_id: The Microsoft Azure subscription ID.
source

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

Gets a deployment.

Arguments:

  • resource_group_name: The name of the resource group. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn create_or_update( &self, resource_group_name: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<Deployment>, subscription_id: impl Into<String> ) -> RequestBuilder

Deploys resources to a resource group. You can provide the template and parameters directly in the request or link to JSON files.

Arguments:

  • resource_group_name: The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.
  • deployment_name: The name of the deployment.
  • parameters: Additional parameters supplied to the operation.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Deletes a deployment from the deployment history. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

Arguments:

  • resource_group_name: The name of the resource group with the deployment to delete. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Checks whether the deployment exists.

Arguments:

  • resource_group_name: The name of the resource group with the deployment to check. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.

Arguments:

  • resource_group_name: The name of the resource group. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn validate( &self, resource_group_name: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<Deployment>, subscription_id: impl Into<String> ) -> RequestBuilder

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

Arguments:

  • resource_group_name: The name of the resource group the template will be deployed to. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn what_if( &self, resource_group_name: impl Into<String>, deployment_name: impl Into<String>, parameters: impl Into<DeploymentWhatIf>, subscription_id: impl Into<String> ) -> RequestBuilder

Returns changes that will be made by the deployment if executed at the scope of the resource group.

Arguments:

  • resource_group_name: The name of the resource group the template will be deployed to. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • parameters: Parameters to validate.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Exports the template used for specified deployment.

Arguments:

  • resource_group_name: The name of the resource group. The name is case insensitive.
  • deployment_name: The name of the deployment.
  • subscription_id: The Microsoft Azure subscription ID.
source

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

Get all the deployments for a resource group.

Arguments:

  • resource_group_name: The name of the resource group with the deployments to get. The name is case insensitive.
  • subscription_id: The Microsoft Azure subscription ID.
source

pub fn calculate_template_hash( &self, template: impl Into<Value> ) -> RequestBuilder

Calculate the hash of the given template.

Arguments:

  • template: The template provided to calculate hash.

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