desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Deletes the management lock of a resource or any level below resource. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Resource identity. :type parent_re...
def delete_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource...
'Create or update a management lock at the subscription level. :param lock_name: The name of lock. :type lock_name: str :param parameters: The management lock parameters. :type parameters: :class:`ManagementLockObject <azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject>` :param dict custom_headers: heade...
def create_or_update_at_subscription_level(self, lock_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Deletes the management lock of a subscription. :param lock_name: The name of lock. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides...
def delete_at_subscription_level(self, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Gets the management lock of a scope. :param lock_name: Name of the management lock. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration override...
def get(self, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Gets all the management locks of a resource group. :param resource_group_name: Resource group name. :type resource_group_name: str :param filter: The filter to apply on the operation. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response al...
def list_at_resource_group_level(self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro...
'Gets all the management locks of a resource or any level below resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Re...
def list_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks' path_format_...
'Gets all the management locks of a subscription. :param filter: The filter to apply on the operation. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configu...
def list_at_subscription_level(self, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Module depends on the API version: * 2015-01-01: :mod:`v2015_01_01.models<azure.mgmt.resource.locks.v2015_01_01.models>` * 2016-09-01: :mod:`v2016_09_01.models<azure.mgmt.resource.locks.v2016_09_01.models>`'
@classmethod def models(cls, api_version='2016-09-01'):
if (api_version == '2015-01-01'): from .v2015_01_01 import models return models elif (api_version == '2016-09-01'): from .v2016_09_01 import models return models raise NotImplementedError('APIVersion {} is not available'.format(api_version))
'Instance depends on the API version: * 2015-01-01: :class:`ManagementLocksOperations<azure.mgmt.resource.locks.v2015_01_01.operations.ManagementLocksOperations>` * 2016-09-01: :class:`ManagementLocksOperations<azure.mgmt.resource.locks.v2016_09_01.operations.ManagementLocksOperations>`'
@property def management_locks(self):
if (self.api_version == '2015-01-01'): from .v2015_01_01.operations import ManagementLocksOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import ManagementLocksOperations as OperationClass else: raise NotImplementedError('APIVersion ...
'Creates or updates a management lock at the resource group level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Acce...
def create_or_update_at_resource_group_level(self, resource_group_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'lockNam...
'Deletes a management lock at the resource group level. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions. :param resource_group_name: The name of the resourc...
def delete_at_resource_group_level(self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'lockNam...
'Gets a management lock at the resource group level. :param resource_group_name: The name of the locked resource group. :type resource_group_name: str :param lock_name: The name of the lock to get. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the di...
def get_at_resource_group_level(self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'lockNam...
'Create or update a management lock by scope. :param scope: The scope for the lock. When providing a scope for the assignment, use \'/subscriptions/{subscriptionId}\' for subscriptions, \'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\' for resource groups, and \'/subscriptions/{subscriptionId}/reso...
def create_or_update_by_scope(self, scope, lock_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str'), 'lockName': self._serialize.url('lock_name', lock_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_pa...
'Delete a management lock by scope. :param scope: The scope for the lock. :type scope: str :param lock_name: The name of lock. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_conf...
def delete_by_scope(self, scope, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str'), 'lockName': self._serialize.url('lock_name', lock_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_pa...
'Get a management lock by scope. :param scope: The scope for the lock. :type scope: str :param lock_name: The name of lock. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config:...
def get_by_scope(self, scope, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str'), 'lockName': self._serialize.url('lock_name', lock_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_pa...
'Creates or updates a management lock at the resource level or any level below the resource. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles...
def create_or_update_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource...
'Deletes the management lock of a resource or any level below the resource. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions. :param resource_group_name: The...
def delete_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource...
'Get the management lock of a resource or any level below resource. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param parent_resource_path: An extra path par...
def get_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource...
'Creates or updates a management lock at the subscription level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access...
def create_or_update_at_subscription_level(self, lock_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Deletes the management lock at the subscription level. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions. :param lock_name: The name of lock to delete. :type...
def delete_at_subscription_level(self, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Gets a management lock at the subscription level. :param lock_name: The name of the lock to get. :type lock_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configura...
def get_at_subscription_level(self, lock_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' path_format_arguments = {'lockName': self._serialize.url('lock_name', lock_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Gets all the management locks for a resource group. :param resource_group_name: The name of the resource group containing the locks to get. :type resource_group_name: str :param filter: The filter to apply on the operation. :type filter: str :param dict custom_headers: headers that will be added to the request :param ...
def list_at_resource_group_level(self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro...
'Gets all the management locks for a resource or any level below resource. :param resource_group_name: The name of the resource group containing the locked resource. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_pr...
def list_at_resource_level(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks' path_format_...
'Gets all the management locks for a subscription. :param filter: The filter to apply on the operation. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation config...
def list_at_subscription_level(self, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Gets the tenants for your account. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`TenantIdDescriptionPa...
def list(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/tenants' query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str') else: url = next_link query_para...
'Gets all available geo-locations. This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list. :param subscription_id: The ID of the target subscription. :type subscription_id: str :param dict custom_headers: headers that will b...
def list_locations(self, subscription_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/locations' path_format_arguments = {'subscriptionId': self._serialize.url('subscription_id', subscription_id, 'str')} url = self._client.format_url(url, **path_forma...
'Gets details about a specified subscription. :param subscription_id: The ID of the target subscription. :type subscription_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operat...
def get(self, subscription_id, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}' path_format_arguments = {'subscriptionId': self._serialize.url('subscription_id', subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_versi...
'Gets all subscriptions for a tenant. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SubscriptionPaged <...
def list(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions' query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str') else: url = next_link quer...
'Module depends on the API version: * 2016-06-01: :mod:`v2016_06_01.models<azure.mgmt.resource.subscriptions.v2016_06_01.models>`'
@classmethod def models(cls, api_version='2016-06-01'):
if (api_version == '2016-06-01'): from .v2016_06_01 import models return models raise NotImplementedError('APIVersion {} is not available'.format(api_version))
'Instance depends on the API version: * 2016-06-01: :class:`SubscriptionsOperations<azure.mgmt.resource.subscriptions.v2016_06_01.operations.SubscriptionsOperations>`'
@property def subscriptions(self):
if (self.api_version == '2016-06-01'): from .v2016_06_01.operations import SubscriptionsOperations as OperationClass else: raise NotImplementedError('APIVersion {} is not available'.format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._...
'Instance depends on the API version: * 2016-06-01: :class:`TenantsOperations<azure.mgmt.resource.subscriptions.v2016_06_01.operations.TenantsOperations>`'
@property def tenants(self):
if (self.api_version == '2016-06-01'): from .v2016_06_01.operations import TenantsOperations as OperationClass else: raise NotImplementedError('APIVersion {} is not available'.format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deseri...
'Module depends on the API version: * 2016-02-01: :mod:`v2016_02_01.models<azure.mgmt.resource.resources.v2016_02_01.models>` * 2016-09-01: :mod:`v2016_09_01.models<azure.mgmt.resource.resources.v2016_09_01.models>` * 2017-05-10: :mod:`v2017_05_10.models<azure.mgmt.resource.resources.v2017_05_10.models>`'
@classmethod def models(cls, api_version=LATEST_API_VERSION):
if (api_version == '2016-02-01'): from .v2016_02_01 import models return models elif (api_version == '2016-09-01'): from .v2016_09_01 import models return models elif (api_version == '2017-05-10'): from .v2017_05_10 import models return models raise NotImp...
'Instance depends on the API version: * 2016-02-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2016_02_01.operations.DeploymentOperations>` * 2016-09-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2016_09_01.operations.DeploymentOperations>` * 2017-05-10: :class:`DeploymentOperations<a...
@property def deployment_operations(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import DeploymentOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import DeploymentOperations as OperationClass elif (self.api_version == '2017-05-10'): from .v2017_0...
'Instance depends on the API version: * 2016-02-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.DeploymentsOperations>` * 2016-09-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.DeploymentsOperations>` * 2017-05-10: :class:`DeploymentsOperati...
@property def deployments(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import DeploymentsOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import DeploymentsOperations as OperationClass elif (self.api_version == '2017-05-10'): from .v2017...
'Instance depends on the API version: * 2016-02-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ProvidersOperations>` * 2016-09-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ProvidersOperations>` * 2017-05-10: :class:`ProvidersOperations<azure....
@property def providers(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import ProvidersOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import ProvidersOperations as OperationClass elif (self.api_version == '2017-05-10'): from .v2017_05_...
'Instance depends on the API version: * 2016-02-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ResourceGroupsOperations>` * 2016-09-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ResourceGroupsOperations>` * 2017-05-10: :class:`Resour...
@property def resource_groups(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import ResourceGroupsOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import ResourceGroupsOperations as OperationClass elif (self.api_version == '2017-05-10'): from ...
'Instance depends on the API version: * 2016-02-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ResourcesOperations>` * 2016-09-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ResourcesOperations>` * 2017-05-10: :class:`ResourcesOperations<azure....
@property def resources(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import ResourcesOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import ResourcesOperations as OperationClass elif (self.api_version == '2017-05-10'): from .v2017_05_...
'Instance depends on the API version: * 2016-02-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.TagsOperations>` * 2016-09-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.TagsOperations>` * 2017-05-10: :class:`TagsOperations<azure.mgmt.resource.resources.v...
@property def tags(self):
if (self.api_version == '2016-02-01'): from .v2016_02_01.operations import TagsOperations as OperationClass elif (self.api_version == '2016-09-01'): from .v2016_09_01.operations import TagsOperations as OperationClass elif (self.api_version == '2017-05-10'): from .v2017_05_10.operati...
'Delete a subscription resource tag value. :param tag_name: The name of the tag. :type tag_name: str :param tag_value: The value of the tag. :type tag_value: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param ...
def delete_value(self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'tagValue': self._serialize.url('tag_value', tag_value, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.s...
'Create a subscription resource tag value. :param tag_name: The name of the tag. :type tag_name: str :param tag_value: The value of the tag. :type tag_value: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param ...
def create_or_update_value(self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'tagValue': self._serialize.url('tag_value', tag_value, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.s...
'Create a subscription resource tag. :param tag_name: The name of the tag. :type tag_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:op...
def create_or_update(self, tag_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_argument...
'Delete a subscription resource tag. :param tag_name: The name of the tag. :type tag_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:op...
def delete(self, tag_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_argument...
'Get a list of subscription resource tags. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`TagDetailsPage...
def list(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/tagNames' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.forma...
'Move resources from one resource group to another. The resources being moved should all be in the same resource group. :param source_resource_group_name: Source resource group name. :type source_resource_group_name: str :param resources: The ids of the resources. :type resources: list of str :param target_resource_gro...
def move_resources(self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, **operation_config):
parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources' path_format_arguments = {'sourceResourceGroupName': self._serialize.url('source_resource_group_name', source_...
'Get all of the resources under a subscription. :param filter: The filter to apply on the operation. :type filter: str :param expand: The $expand query parameter. :type expand: str :param top: Query parameters. If null is passed returns all resource groups. :type top: int :param dict custom_headers: headers that will b...
def list(self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resources' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.form...
'Checks whether resource exists. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Resource identity. :type parent_resource_pa...
def check_existence(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Delete resource and all of its resources. . :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Resource identity. :type parent...
def delete(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Create a resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Resource identity. :type parent_resource_path: str :para...
def create_or_update(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Returns a resource belonging to a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: Resource identity. :type resource_provider_namespace: str :param parent_resource_path: Resource identity. :type ...
def get(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Get all of the resources under a subscription. :param resource_group_name: Query parameters. If null is passed returns all resource groups. :type resource_group_name: str :param filter: The filter to apply on the operation. :type filter: str :param expand: The $expand query parameter :type expand: str :param top: Quer...
def list_resources(self, resource_group_name, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90,...
'Checks whether resource group exists. :param resource_group_name: The name of the resource group to check. The name is case insensitive. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response ...
def check_existence(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Create a resource group. :param resource_group_name: The name of the resource group to be created or updated. :type resource_group_name: str :param parameters: Parameters supplied to the create or update resource group service operation. :type parameters: :class:`ResourceGroup <azure.mgmt.resource.resources.v2016_02_0...
def create_or_update(self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Delete resource group. :param resource_group_name: The name of the resource group to be deleted. The name is case insensitive. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :rtype: :c...
def delete(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Get a resource group. :param resource_group_name: The name of the resource group to get. The name is case insensitive. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_c...
def get(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource groups, though if a field is unspecified current value will be carried over. . :param resource_group_name: The name of the resource group to be created or updated. T...
def patch(self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Captures the specified resource group as a template. :param resource_group_name: The name of the resource group to be created or updated. :type resource_group_name: str :param resources: The ids of the resources. The only supported string currently is \'*\' (all resources). Future api updates will support exporting sp...
def export_template(self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config):
parameters = models.ExportTemplateRequest(resources=resources, options=options) url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_le...
'Gets a collection of resource groups. :param filter: The filter to apply on the operation. :type filter: str :param top: Query parameters. If null is passed returns all resource groups. :type top: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alo...
def list(self, filter=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client...
'Get a list of deployments operations. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param operation_id: Operation Id. :type operation_id: str :param dict custom_hea...
def get(self, resource_group_name, deployment_name, operation_id, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'depl...
'Gets a list of deployments operations. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param top: Query parameters. :type top: int :param dict custom_headers: headers...
def list(self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro...
'Delete deployment. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment to be deleted. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw:...
def delete(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...
'Checks whether deployment exists. :param resource_group_name: The name of the resource group to check. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :param...
def check_existence(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...
'Create a named template deployment using a template. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param properties: The deployment properties. :type properties: :c...
def create_or_update(self, resource_group_name, deployment_name, properties=None, custom_headers=None, raw=False, **operation_config):
parameters = models.Deployment(properties=properties) url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max...
'Get a deployment. :param resource_group_name: The name of the resource group to get. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns...
def get(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...
'Cancel a currently running template deployment. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :...
def cancel(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)...
'Validate a deployment template. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param properties: The deployment properties. :type properties: :class:`DeploymentPrope...
def validate(self, resource_group_name, deployment_name, properties=None, custom_headers=None, raw=False, **operation_config):
parameters = models.Deployment(properties=properties) url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, '...
'Exports a deployment template. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: r...
def export_template(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\...
'Get a list of deployments. :param resource_group_name: The name of the resource group to filter by. The name is case insensitive. :type resource_group_name: str :param filter: The filter to apply on the operation. :type filter: str :param top: Query parameters. If null is passed returns all deployments. :type top: int...
def list(self, resource_group_name, filter=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_...
'Unregisters provider from a subscription. :param resource_provider_namespace: Namespace of the resource provider. :type resource_provider_namespace: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operatio...
def unregister(self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config....
'Registers provider to be used with a subscription. :param resource_provider_namespace: Namespace of the resource provider. :type resource_provider_namespace: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param...
def register(self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.su...
'Gets a list of resource providers. :param top: Query parameters. If null is passed returns all deployments. :type top: int :param expand: The $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases. :type expand: str :param dict custom_headers: headers that will be adde...
def list(self, top=None, expand=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.form...
'Gets a resource provider. :param resource_provider_namespace: Namespace of the resource provider. :type resource_provider_namespace: str :param expand: The $expand query parameter. e.g. To include property aliases in response, use $expand=resourceTypes/aliases. :type expand: str :param dict custom_headers: headers tha...
def get(self, resource_provider_namespace, expand=None, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscriptio...
'Deletes a tag value. :param tag_name: The name of the tag. :type tag_name: str :param tag_value: The value of the tag to delete. :type tag_value: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_c...
def delete_value(self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'tagValue': self._serialize.url('tag_value', tag_value, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.s...
'Creates a tag value. The name of the tag must already exist. :param tag_name: The name of the tag. :type tag_name: str :param tag_value: The value of the tag to create. :type tag_value: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the ...
def create_or_update_value(self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'tagValue': self._serialize.url('tag_value', tag_value, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.s...
'Creates a tag in the subscription. The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. :param tag_name: The name of the tag to create. :type tag_name: str :param dict cust...
def create_or_update(self, tag_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_argument...
'Deletes a tag from the subscription. You must remove all values from a resource tag before you can delete it. :param tag_name: The name of the tag. :type tag_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response ...
def delete(self, tag_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' path_format_arguments = {'tagName': self._serialize.url('tag_name', tag_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_argument...
'Gets the names and values of all resource tags that are defined in a subscription. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforope...
def list(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/tagNames' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.forma...
'Moves resources from one resource group to another resource group. The resources to move must be in the same source resource group. 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 del...
def move_resources(self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, **operation_config):
parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources' path_format_arguments = {'sourceResourceGroupName': self._serialize.url('source_resource_group_name', source_...
'Get all the resources in a subscription. :param filter: The filter to apply on the operation. :type filter: str :param expand: The $expand query parameter. :type expand: str :param top: The number of results to return. If null is passed, returns all resource groups. :type top: int :param dict custom_headers: headers t...
def list(self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resources' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.form...
'Checks whether a resource exists. :param resource_group_name: The name of the resource group containing the resource to check. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: The resource provider of the resource to check. :type resource_provider_namespace: str :param p...
def check_existence(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Deletes a resource. :param resource_group_name: The name of the resource group that contains the resource to delete. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param parent_resource_pat...
def delete(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Creates a resource. :param resource_group_name: The name of the resource group for the resource. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param parent_resource_path: The parent resour...
def create_or_update(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Gets a resource. :param resource_group_name: The name of the resource group containing the resource to get. The name is case insensitive. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param parent_resource_path: The pa...
def get(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pa...
'Checks by ID whether a resource exists. :param 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} :type resource_id: str :param api_v...
def check_existence_by_id(self, resource_id, api_version, custom_headers=None, raw=False, **operation_config):
url = '/{resourceId}' path_format_arguments = {'resourceId': self._serialize.url('resource_id', resource_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, ...
'Deletes a resource by ID. :param 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} :type resource_id: str :param api_version: The AP...
def delete_by_id(self, resource_id, api_version, custom_headers=None, raw=False, **operation_config):
url = '/{resourceId}' path_format_arguments = {'resourceId': self._serialize.url('resource_id', resource_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, ...
'Create a resource by ID. :param 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} :type resource_id: str :param api_version: The API...
def create_or_update_by_id(self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{resourceId}' path_format_arguments = {'resourceId': self._serialize.url('resource_id', resource_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, ...
'Gets a resource by ID. :param 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} :type resource_id: str :param api_version: The API v...
def get_by_id(self, resource_id, api_version, custom_headers=None, raw=False, **operation_config):
url = '/{resourceId}' path_format_arguments = {'resourceId': self._serialize.url('resource_id', resource_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, ...
'Get all the resources for a resource group. :param resource_group_name: The resource group with the resources to get. :type resource_group_name: str :param filter: The filter to apply on the operation. :type filter: str :param expand: The $expand query parameter :type expand: str :param top: The number of results to r...
def list_resources(self, resource_group_name, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90,...
'Checks whether a resource group exists. :param resource_group_name: The name of the resource group to check. The name is case insensitive. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized respons...
def check_existence(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Creates a resource group. :param resource_group_name: The name of the resource group to create or update. :type resource_group_name: str :param parameters: Parameters supplied to the create or update a resource group. :type parameters: :class:`ResourceGroup <azure.mgmt.resource.resources.v2016_09_01.models.ResourceGro...
def create_or_update(self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Deletes a resource group. When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_...
def delete(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Gets a resource group. :param resource_group_name: The name of the resource group to get. The name is case insensitive. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_...
def get(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Updates a resource group. Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained. :param resource_group_name: The name of the resource group to update. The ...
def patch(self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'subscriptionId': self._serialize.url('self.config.subscrip...
'Captures the specified resource group as a template. :param resource_group_name: The name of the resource group to export as a template. :type resource_group_name: str :param resources: The IDs of the resources. The only supported string currently is \'*\' (all resources). Future updates will support exporting specifi...
def export_template(self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config):
parameters = models.ExportTemplateRequest(resources=resources, options=options) url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_le...
'Gets all the resource groups for a subscription. :param filter: The filter to apply on the operation. :type filter: str :param top: The number of results to return. If null is passed, returns all resource groups. :type top: int :param dict custom_headers: headers that will be added to the request :param bool raw: retu...
def list(self, filter=None, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client...
'Gets a deployments operation. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment. :type deployment_name: str :param operation_id: The ID of the operation to get. :type operation_id: str :param dict ...
def get(self, resource_group_name, deployment_name, operation_id, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'depl...
'Gets all deployments operations for a deployment. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment with the operation to get. :type deployment_name: str :param top: The number of results to return...
def list(self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro...
'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 return...
def delete(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...
'Checks whether the deployment exists. :param resource_group_name: The name of the resource group with the deployment to check. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment to check. :type deployment_name: str :param dict custom_headers: headers that wi...
def check_existence(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...
'Deploys resources to a resource group. You can provide the template and parameters directly in the request or link to JSON files. :param 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. :type resource_group_name: str :p...
def create_or_update(self, resource_group_name, deployment_name, properties, custom_headers=None, raw=False, **operation_config):
parameters = models.Deployment(properties=properties) url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max...
'Gets a deployment. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment to get. :type deployment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: return...
def get(self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), ...