desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Gets the properties of the specified webhook. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name of the webhook. :type webhook...
def get(self, resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName'...
'Creates a webhook for a container registry with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name o...
def create(self, resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName'...
'Deletes a webhook from a container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name of the webhook. :type webhook_...
def delete(self, resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName'...
'Updates a webhook with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name of the webhook. :type webh...
def update(self, resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName'...
'Lists all the webhooks for the specified container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param dict custom_headers: headers that wil...
def list(self, resource_group_name, registry_name, 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.ContainerRegistry/registries/{registryName}/webhooks' path_format_arguments = {'subscriptionId': self._serialize.url('self...
'Triggers a ping event to be sent to the webhook. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name of the webhook. :type webh...
def ping(self, resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroup...
'Gets the configuration of service URI and custom headers for the webhook. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name o...
def get_callback_config(self, resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), '...
'Lists recent events for the specified webhook. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param webhook_name: The name of the webhook. :type webhoo...
def list_events(self, resource_group_name, registry_name, webhook_name, 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents' path_format_arguments = {'subscriptionId': ...
'Lists all of the available Azure Container Registry REST API operations. :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>`....
def list(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/providers/Microsoft.ContainerRegistry/operations' query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str') else: ...
'Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 60 characters in length. :param name: The name of the container registry. :type name: str :param dict custom_headers: headers that will be added to the request :par...
def check_name_availability(self, name, custom_headers=None, raw=False, **operation_config):
registry_name_check_request = models.RegistryNameCheckRequest(name=name) url = '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Gets the properties of the specified container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param dict custom_headers: headers that will be...
def get(self, resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('...
'Creates a container registry with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param registry_create_parameters: The parame...
def create(self, resource_group_name, registry_name, registry_create_parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('...
'Deletes a container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param dict custom_headers: headers that will be added to the request :para...
def delete(self, resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('...
'Updates a container registry with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param registry_update_parameters: The parame...
def update(self, resource_group_name, registry_name, registry_update_parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('...
'Lists all the container registries under the specified resource group. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response al...
def list_by_resource_group(self, resource_group_name, 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.ContainerRegistry/registries' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id'...
'Lists all the container registries under the specified 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:optionsforoperations>`. :rt...
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}/providers/Microsoft.ContainerRegistry/registries' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str...
'Lists the login credentials for the specified container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param dict custom_headers: headers tha...
def list_credentials(self, resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self....
'Regenerates one of the login credentials for the specified container registry. :param resource_group_name: The name of the resource group to which the container registry belongs. :type resource_group_name: str :param registry_name: The name of the container registry. :type registry_name: str :param name: Specifies nam...
def regenerate_credential(self, resource_group_name, registry_name, name, custom_headers=None, raw=False, **operation_config):
regenerate_credential_parameters = models.RegenerateCredentialParameters(name=name) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential' path_format_arguments = {'subscriptionId': self._serialize.url('...
'Return distribution full name with - replaced with _'
@property def wheel_dist_name(self):
return '-'.join((safer_name(self.distribution.get_name()), safer_version(self.distribution.get_version())))
'Return archive name without extension'
def get_archive_basename(self):
(impl_tag, abi_tag, plat_tag) = self.get_tag() archive_basename = ('%s-%s-%s-%s' % (self.wheel_dist_name, impl_tag, abi_tag, plat_tag)) return archive_basename
'Return license filename from a license-file key in setup.cfg, or None.'
def license_file(self):
metadata = self.distribution.get_option_dict('metadata') if (not ('license_file' in metadata)): return None return metadata['license_file'][1]
'Generate requirements from setup.cfg as (\'Requires-Dist\', \'requirement; qualifier\') tuples. From a metadata section in setup.cfg: [metadata] provides-extra = extra1 extra2 requires-dist = requirement; qualifier another; qualifier2 unqualified Yields (\'Provides-Extra\', \'extra1\'), (\'Provides-Extra\', \'extra2\'...
def setupcfg_requirements(self):
metadata = self.distribution.get_option_dict('metadata') for (key, title) in (('provides_extra', 'Provides-Extra'), ('requires_dist', 'Requires-Dist')): if (not (key in metadata)): continue field = metadata[key] for line in field[1].splitlines(): line = line.strip...
'Add additional requirements from setup.cfg to file metadata_path'
def add_requirements(self, metadata_path):
additional = list(self.setupcfg_requirements()) if (not additional): return pkg_info = read_pkg_info(metadata_path) if (('Provides-Extra' in pkg_info) or ('Requires-Dist' in pkg_info)): warnings.warn('setup.cfg requirements overwrite values from setup.py') del pkg_...
'Convert an .egg-info directory into a .dist-info directory'
def egg2dist(self, egginfo_path, distinfo_path):
def adios(p): 'Appropriately delete directory, file or link.' if (os.path.exists(p) and (not os.path.islink(p)) and os.path.isdir(p)): shutil.rmtree(p) elif os.path.exists(p): os.unlink(p) adios(distinfo_path) if (not os.path.exists(egginfo_path...
'Creates or updates a policy definition. :param policy_definition_name: The name of the policy definition to create. :type policy_definition_name: str :param parameters: The policy definition properties. :type parameters: :class:`PolicyDefinition <azure.mgmt.resource.policy.v2016_04_01.models.PolicyDefinition>` :param ...
def create_or_update(self, policy_definition_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Deletes a policy definition. :param policy_definition_name: The name of the policy definition to delete. :type policy_definition_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...
def delete(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets the policy definition. :param policy_definition_name: The name of the policy definition to get. :type policy_definition_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:`Op...
def get(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets all the policy definitions 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 conf...
def list(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/policydefinitions' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to delete. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct respons...
def delete(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Creates a policy assignment. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assi...
def create(self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to get. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alon...
def get(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets policy assignments for the resource group. :param resource_group_name: The name of the resource group that contains policy assignments. :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_for_resource_group(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/policyAssignments' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', ...
'Gets policy assignments for a resource. :param resource_group_name: The name of the resource group containing 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_resou...
def list_for_resource(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/policyassignments' ...
'Gets all the policy assignments 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 conf...
def list(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/policyassignments' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/...
def delete_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Creates a policy assignment by ID. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions...
def create_by_id(self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Gets a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{re...
def get_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Module depends on the API version: * 2015-10-01-preview: :mod:`v2015_10_01_preview.models<azure.mgmt.resource.policy.v2015_10_01_preview.models>` * 2016-04-01: :mod:`v2016_04_01.models<azure.mgmt.resource.policy.v2016_04_01.models>` * 2016-12-01: :mod:`v2016_12_01.models<azure.mgmt.resource.policy.v2016_12_01.models>`...
@classmethod def models(cls, api_version='2016-12-01'):
if (api_version == '2015-10-01-preview'): from .v2015_10_01_preview import models return models elif (api_version == '2016-04-01'): from .v2016_04_01 import models return models elif (api_version == '2016-12-01'): from .v2016_12_01 import models return models ...
'Instance depends on the API version: * 2015-10-01-preview: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2015_10_01_preview.operations.PolicyAssignmentsOperations>` * 2016-04-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2016_04_01.operations.PolicyAssignmentsOperations>` * 2016...
@property def policy_assignments(self):
if (self.api_version == '2015-10-01-preview'): from .v2015_10_01_preview.operations import PolicyAssignmentsOperations as OperationClass elif (self.api_version == '2016-04-01'): from .v2016_04_01.operations import PolicyAssignmentsOperations as OperationClass elif (self.api_version == '2016-...
'Instance depends on the API version: * 2015-10-01-preview: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2015_10_01_preview.operations.PolicyDefinitionsOperations>` * 2016-04-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2016_04_01.operations.PolicyDefinitionsOperations>` * 2016...
@property def policy_definitions(self):
if (self.api_version == '2015-10-01-preview'): from .v2015_10_01_preview.operations import PolicyDefinitionsOperations as OperationClass elif (self.api_version == '2016-04-01'): from .v2016_04_01.operations import PolicyDefinitionsOperations as OperationClass elif (self.api_version == '2016-...
'Creates or updates a policy definition. :param policy_definition_name: The name of the policy definition to create. :type policy_definition_name: str :param parameters: The policy definition properties. :type parameters: :class:`PolicyDefinition <azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition>` :param ...
def create_or_update(self, policy_definition_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Deletes a policy definition. :param policy_definition_name: The name of the policy definition to delete. :type policy_definition_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...
def delete(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets the policy definition. :param policy_definition_name: The name of the policy definition to get. :type policy_definition_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:`Op...
def get(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets all the policy definitions 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 conf...
def list(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/policydefinitions' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to delete. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct respons...
def delete(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Creates a policy assignment. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assi...
def create(self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to get. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alon...
def get(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets policy assignments for the resource group. :param resource_group_name: The name of the resource group that contains policy assignments. :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_for_resource_group(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/policyAssignments' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', ...
'Gets policy assignments for a resource. :param resource_group_name: The name of the resource group containing 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_resou...
def list_for_resource(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/policyassignments' ...
'Gets all the policy assignments 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 conf...
def list(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/policyassignments' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/...
def delete_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Creates a policy assignment by ID. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions...
def create_by_id(self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Gets a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{re...
def get_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Creates or updates a policy definition. :param policy_definition_name: The name of the policy definition to create. :type policy_definition_name: str :param parameters: The policy definition properties. :type parameters: :class:`PolicyDefinition <azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyDefinition>`...
def create_or_update(self, policy_definition_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Deletes a policy definition. :param policy_definition_name: The name of the policy definition to delete. :type policy_definition_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...
def delete(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets the policy definition. :param policy_definition_name: The name of the policy definition to get. :type policy_definition_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:`Op...
def get(self, policy_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' path_format_arguments = {'policyDefinitionName': self._serialize.url('policy_definition_name', policy_definition_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', s...
'Gets all the policy definitions 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 conf...
def list(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/policydefinitions' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to delete. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct respons...
def delete(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Creates a policy assignment. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assi...
def create(self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets a policy assignment. :param scope: The scope of the policy assignment. :type scope: str :param policy_assignment_name: The name of the policy assignment to get. :type policy_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alon...
def get(self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url('policy_assignment_name', policy_assignment_name, 'str')} url = self._client....
'Gets policy assignments for the resource group. :param resource_group_name: The name of the resource group that contains policy assignments. :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_for_resource_group(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/policyAssignments' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', ...
'Gets policy assignments for a resource. :param resource_group_name: The name of the resource group containing 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_reso...
def list_for_resource(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/policyassignments' ...
'Gets all the policy assignments 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 conf...
def list(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/policyassignments' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '...
'Deletes a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/...
def delete_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Creates a policy assignment by ID. Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions...
def create_by_id(self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Gets a policy assignment by ID. When providing a scope for the assigment, use \'/subscriptions/{subscription-id}/\' for subscriptions, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for resource groups, and \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{re...
def get_by_id(self, policy_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{policyAssignmentId}' path_format_arguments = {'policyAssignmentId': self._serialize.url('policy_assignment_id', policy_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize....
'Module depends on the API version: * 2015-12-01: :mod:`v2015_12_01.models<azure.mgmt.resource.features.v2015_12_01.models>`'
@classmethod def models(cls, api_version='2015-12-01'):
if (api_version == '2015-12-01'): from .v2015_12_01 import models return models raise NotImplementedError('APIVersion {} is not available'.format(api_version))
'Instance depends on the API version: * 2015-12-01: :class:`FeaturesOperations<azure.mgmt.resource.features.v2015_12_01.operations.FeaturesOperations>`'
@property def features(self):
if (self.api_version == '2015-12-01'): from .v2015_12_01.operations import FeaturesOperations as OperationClass else: raise NotImplementedError('APIVersion {} is not available'.format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deser...
'Gets all the preview features that are available through AFEC for the 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:optionsforop...
def list_all(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Gets all the preview features in a provider namespace that are available through AFEC for the subscription. :param resource_provider_namespace: The namespace of the resource provider for getting features. :type resource_provider_namespace: str :param dict custom_headers: headers that will be added to the request :para...
def list(self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespa...
'Gets the preview feature with the specified name. :param resource_provider_namespace: The resource provider namespace for the feature. :type resource_provider_namespace: str :param feature_name: The name of the feature to get. :type feature_name: str :param dict custom_headers: headers that will be added to the reques...
def get(self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str'), 'featureName': self._serialize.url('feat...
'Registers the preview feature for the subscription. :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param feature_name: The name of the feature to register. :type feature_name: str :param dict custom_headers: headers that will be added to the request ...
def register(self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str'), 'featureName': self._serialize....
'Gets the appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_name: The name of the appliance. :type appliance_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the dir...
def get(self, resource_group_name, appliance_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'a...
'Deletes the appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_name: The name of the appliance. :type appliance_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the ...
def delete(self, resource_group_name, appliance_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'a...
'Creates a new appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_name: The name of the appliance. :type appliance_name: str :param parameters: Parameters supplied to the create or update an appliance. :type parameters: :c...
def create_or_update(self, resource_group_name, appliance_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'a...
'Updates an existing appliance. The only value that can be updated via PATCH currently is the tags. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_name: The name of the appliance. :type appliance_name: str :param parameters: Para...
def update(self, resource_group_name, appliance_name, parameters=None, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), 'a...
'Gets all the appliances within a resource group. :param resource_group_name: The name of the resource group. 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 list_by_resource_group(self, resource_group_name, 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.Solutions/appliances' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gr...
'Gets all the appliances within 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:optionsforoperations>`. :rtype: :class:`Appliance...
def list_by_subscription(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/appliances' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Gets the appliance. :param appliance_id: The fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} :type appliance_id: str :param dict custom_headers: ...
def get_by_id(self, appliance_id, custom_headers=None, raw=False, **operation_config):
url = '/{applianceId}' path_format_arguments = {'applianceId': self._serialize.url('appliance_id', appliance_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Deletes the appliance. :param appliance_id: The fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} :type appliance_id: str :param dict custom_header...
def delete_by_id(self, appliance_id, custom_headers=None, raw=False, **operation_config):
url = '/{applianceId}' path_format_arguments = {'applianceId': self._serialize.url('appliance_id', appliance_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Creates a new appliance. :param appliance_id: The fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} :type appliance_id: str :param parameters: Para...
def create_or_update_by_id(self, appliance_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{applianceId}' path_format_arguments = {'applianceId': self._serialize.url('appliance_id', appliance_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Updates an existing appliance. The only value that can be updated via PATCH currently is the tags. :param appliance_id: The fully qualified ID of the appliance, including the appliance name and the appliance resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/a...
def update_by_id(self, appliance_id, parameters=None, custom_headers=None, raw=False, **operation_config):
url = '/{applianceId}' path_format_arguments = {'applianceId': self._serialize.url('appliance_id', appliance_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Gets the appliance definition. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_definition_name: The name of the appliance definition. :type appliance_definition_name: str :param dict custom_headers: headers that will be added to ...
def get(self, resource_group_name, appliance_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\...
'Deletes the appliance definition. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_definition_name: The name of the appliance definition to delete. :type appliance_definition_name: str :param dict custom_headers: headers that will...
def delete(self, resource_group_name, appliance_definition_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\...
'Creates a new appliance definition. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param appliance_definition_name: The name of the appliance definition. :type appliance_definition_name: str :param parameters: Parameters supplied to the create ...
def create_or_update(self, resource_group_name, appliance_definition_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\...
'Lists the appliance definitions in a resource group. :param resource_group_name: The name of the resource group. 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 res...
def list_by_resource_group(self, resource_group_name, 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.Solutions/applianceDefinitions' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', r...
'Gets the appliance definition. :param appliance_definition_id: The fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefin...
def get_by_id(self, appliance_definition_id, custom_headers=None, raw=False, **operation_config):
url = '/{applianceDefinitionId}' path_format_arguments = {'applianceDefinitionId': self._serialize.url('appliance_definition_id', appliance_definition_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Deletes the appliance definition. :param appliance_definition_id: The fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDe...
def delete_by_id(self, appliance_definition_id, custom_headers=None, raw=False, **operation_config):
url = '/{applianceDefinitionId}' path_format_arguments = {'applianceDefinitionId': self._serialize.url('appliance_definition_id', appliance_definition_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Creates a new appliance definition. :param appliance_definition_id: The fully qualified ID of the appliance definition, including the appliance name and the appliance definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{appliance...
def create_or_update_by_id(self, appliance_definition_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{applianceDefinitionId}' path_format_arguments = {'applianceDefinitionId': self._serialize.url('appliance_definition_id', appliance_definition_id, 'str', skip_quote=True), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.for...
'Module depends on the API version: * 2016-09-01: :mod:`v2016_09_01.models<azure.mgmt.resource.links.v2016_09_01.models>`'
@classmethod def models(cls, api_version='2016-09-01'):
if (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: * 2016-09-01: :class:`ResourceLinksOperations<azure.mgmt.resource.links.v2016_09_01.operations.ResourceLinksOperations>`'
@property def resource_links(self):
if (self.api_version == '2016-09-01'): from .v2016_09_01.operations import ResourceLinksOperations as OperationClass else: raise NotImplementedError('APIVersion {} is not available'.format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._...
'Deletes a resource link with the specified ID. :param link_id: The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000...
def delete(self, link_id, custom_headers=None, raw=False, **operation_config):
url = '/{linkId}' path_format_arguments = {'linkId': self._serialize.url('link_id', link_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')...
'Creates or updates a resource link between the specified resources. :param link_id: The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example,...
def create_or_update(self, link_id, properties=None, custom_headers=None, raw=False, **operation_config):
parameters = models.ResourceLink(properties=properties) url = '/{linkId}' path_format_arguments = {'linkId': self._serialize.url('link_id', link_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._...
'Gets a resource link with the specified ID. :param link_id: The fully qualified Id of the resource link. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink :type link_id: str :param dict custom_headers: headers that will b...
def get(self, link_id, custom_headers=None, raw=False, **operation_config):
url = '/{linkId}' path_format_arguments = {'linkId': self._serialize.url('link_id', link_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')...
'Gets all the linked resources for the subscription. :param filter: The filter to apply on the list resource links operation. The supported filter for list resource links is targetid. For example, $filter=targetid eq {value} :type filter: str :param dict custom_headers: headers that will be added to the request :param ...
def list_at_subscription(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.Resources/links' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Gets a list of resource links at and below the specified source scope. :param scope: The fully qualified ID of the scope for getting the resource links. For example, to list resource links at and under a resource group, set the scope to /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. :type ...
def list_at_source_scope(self, scope, filter=None, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{scope}/providers/Microsoft.Resources/links' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_argumen...
'Create or update a management lock at the resource group level. :param resource_group_name: The resource group name. :type resource_group_name: str :param lock_name: The lock name. :type lock_name: str :param parameters: The management lock parameters. :type parameters: :class:`ManagementLockObject <azure.mgmt.resourc...
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 the management lock of a resource group. :param resource_group_name: The resource group name. :type resource_group_name: 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 ...
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 resource group name. :type resource_group_name: str :param lock_name: The lock name. :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 ...
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 at the resource level 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. ...
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...