desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group pa...
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\\._\\(\\)...
'Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. :param resource_group_name: The name of the resource group the template will be deployed to. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment...
def validate(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}/validate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, '...
'Exports the template used for specified 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 from which to get the template. :type deployment_name: str :param dict custom_headers: headers ...
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 all the deployments for a resource group. :param resource_group_name: The name of the resource group with the deployments to get. The name is case insensitive. :type resource_group_name: str :param filter: The filter to apply on the operation. For example, you can use $filter=provisioningState eq \'{state}\'. :typ...
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 a subscription from a resource provider. :param resource_provider_namespace: The namespace of the resource provider to unregister. :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 deserial...
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 a subscription with a resource provider. :param resource_provider_namespace: The namespace of the resource provider to register. :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...
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 all resource providers for a subscription. :param top: The number of results to return. If null is passed returns all deployments. :type top: int :param expand: The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include prope...
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 the specified resource provider. :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param expand: The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. :type expand: str :param dict cus...
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...
'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_by_resource_group(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,...
'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, ...
'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 or updates 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.v2017_05_10.models....
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 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...
'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\\._\\(\\)]+$'), ...
'Cancels a currently running template deployment. You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group pa...
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\\._\\(\\)...
'Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. :param resource_group_name: The name of the resource group the template will be deployed to. The name is case insensitive. :type resource_group_name: str :param deployment_name: The name of the deployment...
def validate(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}/validate' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, '...
'Exports the template used for specified 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 from which to get the template. :type deployment_name: str :param dict custom_headers: headers ...
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 all the deployments for a resource group. :param resource_group_name: The name of the resource group with the deployments to get. The name is case insensitive. :type resource_group_name: str :param filter: The filter to apply on the operation. For example, you can use $filter=provisioningState eq \'{state}\'. :typ...
def list_by_resource_group(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 a subscription from a resource provider. :param resource_provider_namespace: The namespace of the resource provider to unregister. :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 deserial...
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 a subscription with a resource provider. :param resource_provider_namespace: The namespace of the resource provider to register. :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...
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 all resource providers for a subscription. :param top: The number of results to return. If null is passed returns all deployments. :type top: int :param expand: The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include prope...
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 the specified resource provider. :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param expand: The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. :type expand: str :param dict cus...
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...
'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...
'Query aggregated Azure subscription consumption data for a date range. :param reported_start_time: The start of the time range to retrieve data for. :type reported_start_time: datetime :param reported_end_time: The end of the time range to retrieve data for. :type reported_end_time: datetime :param show_details: `True...
def list(self, reported_start_time, reported_end_time, show_details=None, aggregation_granularity='Daily', continuation_token=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.Commerce/UsageAggregates' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time a...
def get(self, filter, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_par...
'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 Search service in the given resource group. If the Search service already exists, all properties will be updated with the given values. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the p...
def create_or_update(self, resource_group_name, search_service_name, service, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}' path_forma...
'Gets the Search service with the given name in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_service_name: The name of the Az...
def get(self, resource_group_name, search_service_name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}' path_forma...
'Deletes a Search service in the given resource group, along with its associated resources. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_service_name: ...
def delete(self, resource_group_name, search_service_name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}' path_forma...
'Gets a list of all Search services in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_management_request_options: Additional pa...
def list_by_resource_group(self, resource_group_name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resource...
'Checks whether or not the given Search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). :param name: The Search service name to validate. Search service names must only contain lowercase letters, digits or dashes...
def check_name_availability(self, name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id check_name_availability_input = models.CheckNameAvailabilityInput(name=name) url = '/subscriptions/{subscriptionId}/providers/Microsoft.Search/chec...
'Generates a new query key for the specified Search service. You can create up to 50 query keys per service. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param sear...
def create(self, resource_group_name, search_service_name, name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/...
'Returns the list of query API keys for the given Azure Search service. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_service_name: The name of the Azur...
def list_by_search_service(self, resource_group_name, search_service_name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id def internal_paging(next_link=None, raw=False): if (not next_link): url = '/subscriptions/{subscriptionId}/resourceGroups/{resource...
'Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or th...
def delete(self, resource_group_name, search_service_name, key, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/...
'Gets the primary and secondary admin API keys for the specified Azure Search service. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_service_name: The n...
def get(self, resource_group_name, search_service_name, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys' ...
'Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. :param resource_group_name: The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. :type resource_group_name: str :param search_ser...
def regenerate(self, resource_group_name, search_service_name, key_kind, search_management_request_options=None, custom_headers=None, raw=False, **operation_config):
client_request_id = None if (search_management_request_options is not None): client_request_id = search_management_request_options.client_request_id url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdmin...
'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...
'Returns all the resources of a particular type belonging to a resource group. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alo...
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.CognitiveServices/accounts' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resou...
'Returns all the resources of a particular type belonging to 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...
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.CognitiveServices/accounts' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')...
'Lists all the available Cognitive Services account 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>`. :rtype: :...
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.CognitiveServices/operations' query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str') else: ...
'Check available SKUs. :param skus: The SKU of the resource. :type skus: list of :class:`Sku <azure.mgmt.cognitiveservices.models.Sku>` :param kind: The Kind of the resource. Possible values include: \'Academic\', \'Bing.Autosuggest\', \'Bing.Search\', \'Bing.Speech\', \'Bing.SpellCheck\', \'ComputerVision\', \'Content...
def list(self, skus=None, kind=None, type=None, custom_headers=None, raw=False, **operation_config):
parameters = models.CheckSkuAvailabilityParameter(skus=skus, kind=kind, type=type) url = '/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config...
'Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It\'s also the resource type for billing. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param acc...
def create(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'accountName': self._serialize.url('account_name', account...
'Updates a Cognitive Services account. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param sku: Gets or sets the SKU of the resource. :type sku: :class:`Sku ...
def update(self, resource_group_name, account_name, sku=None, tags=None, custom_headers=None, raw=False, **operation_config):
parameters = models.CognitiveServicesAccountUpdateParameters(sku=sku, tags=tags) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', re...
'Deletes a Cognitive Services account from the resource group. . :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param dict custom_headers: headers that will b...
def delete(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'accountName': self._serialize.url('account_name', account...
'Returns a Cognitive Services account specified by the parameters. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param dict custom_headers: headers that will...
def get_properties(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'accountName': self._serialize.url('account_name', account...
'Lists the account keys for the specified Cognitive Services account. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param dict custom_headers: headers that w...
def list_keys(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'accountName': self._serialize.url('account_name'...
'Regenerates the specified account key for the specified Cognitive Services account. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param key_name: key name t...
def regenerate_key(self, resource_group_name, account_name, key_name=None, custom_headers=None, raw=False, **operation_config):
parameters = models.RegenerateKeyParameters(key_name=key_name) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resour...
'List available SKUs for the requested Cognitive Services account. :param resource_group_name: The name of the resource group within the user\'s subscription. :type resource_group_name: str :param account_name: The name of Cognitive Services account. :type account_name: str :param dict custom_headers: headers that will...
def list_skus(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'accountName': self._serialize.url('account_name', ac...
'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...
'Lists all of the available Logic 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>`. :rtype: :class:`Op...
def list_operations(self, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/providers/Microsoft.Logic/operations' query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.config.api_version', self.config.api_version, 'str') else: ...
'Gets a list of integration account agreements. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int :param filte...
def list_by_integration_accounts(self, resource_group_name, integration_account_name, top=None, 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.Logic/integrationAccounts/{integrationAccountName}/agreements' path_format_arguments = {'subscriptionId': self._serialize....
'Gets an integration account agreement. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param agreement_name: The integration account agreement name. :type agreement_name: str :param d...
def get(self, resource_group_name, integration_account_name, agreement_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourc...
'Creates or updates an integration account agreement. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param agreement_name: The integration account agreement name. :type agreement_name...
def create_or_update(self, resource_group_name, integration_account_name, agreement_name, agreement, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourc...
'Deletes an integration account agreement. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param agreement_name: The integration account agreement name. :type agreement_name: str :para...
def delete(self, resource_group_name, integration_account_name, agreement_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourc...
'Gets a list of integration account partners. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int :param filter:...
def list_by_integration_accounts(self, resource_group_name, integration_account_name, top=None, 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.Logic/integrationAccounts/{integrationAccountName}/partners' path_format_arguments = {'subscriptionId': self._serialize.ur...
'Gets an integration account partner. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param partner_name: The integration account partner name. :type partner_name: str :param dict cust...
def get(self, resource_group_name, integration_account_name, partner_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGro...
'Creates or updates an integration account partner. :param resource_group_name: The resource group name. :type resource_group_name: str :param integration_account_name: The integration account name. :type integration_account_name: str :param partner_name: The integration account partner name. :type partner_name: str :p...
def create_or_update(self, resource_group_name, integration_account_name, partner_name, partner, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGro...