pub struct Client(_);
Implementations§
source§impl Client
impl Client
sourcepub fn get(
&self,
subscription_id: impl Into<String>,
variable_name: impl Into<String>
) -> RequestBuilder
pub fn get( &self, subscription_id: impl Into<String>, variable_name: impl Into<String> ) -> RequestBuilder
Retrieves a variable. This operation retrieves a single variable, given its name and the subscription it was created at.
Arguments:
subscription_id
: The ID of the target subscription.variable_name
: The name of the variable to operate on.
sourcepub fn create_or_update(
&self,
subscription_id: impl Into<String>,
variable_name: impl Into<String>,
parameters: impl Into<Variable>
) -> RequestBuilder
pub fn create_or_update( &self, subscription_id: impl Into<String>, variable_name: impl Into<String>, parameters: impl Into<Variable> ) -> RequestBuilder
Creates or updates a variable. This operation creates or updates a variable with the given subscription and name. Policy variables can only be used by a policy definition at the scope they are created or below.
Arguments:
subscription_id
: The ID of the target subscription.variable_name
: The name of the variable to operate on.parameters
: Parameters for the variable.
sourcepub fn delete(
&self,
subscription_id: impl Into<String>,
variable_name: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, subscription_id: impl Into<String>, variable_name: impl Into<String> ) -> RequestBuilder
Deletes a variable. This operation deletes a variable, given its name and the subscription it was created in. The scope of a variable is the part of its ID preceding ‘/providers/Microsoft.Authorization/variables/{variableName}’.
Arguments:
subscription_id
: The ID of the target subscription.variable_name
: The name of the variable to operate on.
sourcepub fn get_at_management_group(
&self,
management_group_id: impl Into<String>,
variable_name: impl Into<String>
) -> RequestBuilder
pub fn get_at_management_group( &self, management_group_id: impl Into<String>, variable_name: impl Into<String> ) -> RequestBuilder
Retrieves a variable. This operation retrieves a single variable, given its name and the management group it was created at.
Arguments:
management_group_id
: The ID of the management group.variable_name
: The name of the variable to operate on.
sourcepub fn create_or_update_at_management_group(
&self,
management_group_id: impl Into<String>,
variable_name: impl Into<String>,
parameters: impl Into<Variable>
) -> RequestBuilder
pub fn create_or_update_at_management_group( &self, management_group_id: impl Into<String>, variable_name: impl Into<String>, parameters: impl Into<Variable> ) -> RequestBuilder
Creates or updates a variable. This operation creates or updates a variable with the given management group and name. Policy variables can only be used by a policy definition at the scope they are created or below.
Arguments:
management_group_id
: The ID of the management group.variable_name
: The name of the variable to operate on.parameters
: Parameters for the variable.
sourcepub fn delete_at_management_group(
&self,
management_group_id: impl Into<String>,
variable_name: impl Into<String>
) -> RequestBuilder
pub fn delete_at_management_group( &self, management_group_id: impl Into<String>, variable_name: impl Into<String> ) -> RequestBuilder
Deletes a variable. This operation deletes a variable, given its name and the management group it was created in. The scope of a variable is the part of its ID preceding ‘/providers/Microsoft.Authorization/variables/{variableName}’.
Arguments:
management_group_id
: The ID of the management group.variable_name
: The name of the variable to operate on.
sourcepub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
pub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
Retrieves all variables that are at this subscription level. This operation retrieves the list of all variables associated with the given subscription.
Arguments:
subscription_id
: The ID of the target subscription.
sourcepub fn list_for_management_group(
&self,
management_group_id: impl Into<String>
) -> RequestBuilder
pub fn list_for_management_group( &self, management_group_id: impl Into<String> ) -> RequestBuilder
Retrieves all variables that are at this management group level. This operation retrieves the list of all variables applicable to the management group.
Arguments:
management_group_id
: The ID of the management group.