desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Checks that the storage account name is valid and is not already in use. :param name: :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<m...
def check_name_availability(self, name, custom_headers=None, raw=False, **operation_config):
account_name = models.StorageAccountCheckNameAvailabilityParameters(name=name) url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url ...
'Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact s...
def create(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), '...
'Deletes a storage account in Microsoft Azure. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param account_name: The name of the storage account within the specified resource group. Storage account names must be ...
def delete(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), '...
'Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :...
def get_properties(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), '...
'The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom dom...
def update(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+$'), '...
'Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: ...
def 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.Storage/storageAccounts' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param dict cus...
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.Storage/storageAccounts' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource...
'Lists the access keys for the specified storage account. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param account_name: The name of the storage account within the specified resource group. Storage account nam...
def list_keys(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\...
'Regenerates one of the access keys for the specified storage account. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param account_name: The name of the storage account within the specified resource group. Storag...
def regenerate_key(self, resource_group_name, account_name, key_name, custom_headers=None, raw=False, **operation_config):
regenerate_key1 = models.StorageAccountRegenerateKeyParameters(key_name=key_name) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_gro...
'List SAS credentials of a storage account. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param account_name: The name of the storage account within the specified resource group. Storage account names must be bet...
def list_account_sas(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\....
'List service SAS credentials of a specific resource. :param resource_group_name: The name of the resource group within the user\'s subscription. The name is case insensitive. :type resource_group_name: str :param account_name: The name of the storage account within the specified resource group. Storage account names m...
def list_service_sas(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\....
'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 a service principal in the directory. :param parameters: Parameters to create a service principal. :type parameters: :class:`ServicePrincipalCreateParameters <azure.graphrbac.models.ServicePrincipalCreateParameters>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns...
def create(self, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/servicePrincipals' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_v...
'Gets a list of service principals from the current tenant. :param filter: The filter to apply to 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:`Operati...
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 = '/{tenantID}/servicePrincipals' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_argu...
'Deletes a service principal from the directory. :param object_id: The object ID of the service principal to delete. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`...
def delete(self, object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/servicePrincipals/{objectId}' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) q...
'Gets service principal information from the directory. :param object_id: The object ID of the service principal to get. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :r...
def get(self, object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/servicePrincipals/{objectId}' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) q...
'Get the keyCredentials associated with the specified service principal. :param object_id: The object ID of the service principal for which to get keyCredentials. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deseria...
def list_key_credentials(self, object_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/servicePrincipals/{objectId}/keyCredentials' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.t...
'Update the keyCredentials associated with a service principal. :param object_id: The object ID for which to get service principal information. :type object_id: str :param value: A collection of KeyCredentials. :type value: list of :class:`KeyCredential <azure.graphrbac.models.KeyCredential>` :param dict custom_headers...
def update_key_credentials(self, object_id, value, custom_headers=None, raw=False, **operation_config):
parameters = models.KeyCredentialsUpdateParameters(value=value) url = '/{tenantID}/servicePrincipals/{objectId}/keyCredentials' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenan...
'Gets the passwordCredentials associated with a service principal. :param object_id: The object ID of the service principal. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config...
def list_password_credentials(self, object_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.con...
'Updates the passwordCredentials associated with a service principal. :param object_id: The object ID of the service principal. :type object_id: str :param value: A collection of PasswordCredentials. :type value: list of :class:`PasswordCredential <azure.graphrbac.models.PasswordCredential>` :param dict custom_headers:...
def update_password_credentials(self, object_id, value, custom_headers=None, raw=False, **operation_config):
parameters = models.PasswordCredentialsUpdateParameters(value=value) url = '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.co...
'Create a new application. :param parameters: The parameters for creating an application. :type parameters: :class:`ApplicationCreateParameters <azure.graphrbac.models.ApplicationCreateParameters>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongsi...
def create(self, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/applications' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_versio...
'Lists applications by filter parameters. :param filter: The filters to apply to 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 configuration ...
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 = '/{tenantID}/applications' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments...
'Delete an application. :param application_object_id: Application object ID. :type application_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration over...
def delete(self, application_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/applications/{applicationObjectId}' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.forma...
'Get an application by object ID. :param application_object_id: Application object ID. :type application_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configur...
def get(self, application_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/applications/{applicationObjectId}' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.forma...
'Update an existing application. :param application_object_id: Application object ID. :type application_object_id: str :param parameters: Parameters to update an existing application. :type parameters: :class:`ApplicationUpdateParameters <azure.graphrbac.models.ApplicationUpdateParameters>` :param dict custom_headers: ...
def patch(self, application_object_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/applications/{applicationObjectId}' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.forma...
'Get the keyCredentials associated with an application. :param application_object_id: Application object ID. :type application_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :r...
def list_key_credentials(self, application_object_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tena...
'Update the keyCredentials associated with an application. :param application_object_id: Application object ID. :type application_object_id: str :param value: A collection of KeyCredentials. :type value: list of :class:`KeyCredential <azure.graphrbac.models.KeyCredential>` :param dict custom_headers: headers that will ...
def update_key_credentials(self, application_object_id, value, custom_headers=None, raw=False, **operation_config):
parameters = models.KeyCredentialsUpdateParameters(value=value) url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('...
'Get the passwordCredentials associated with an application. :param application_object_id: Application object ID. :type application_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_confi...
def list_password_credentials(self, application_object_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), ...
'Update passwordCredentials associated with an application. :param application_object_id: Application object ID. :type application_object_id: str :param value: A collection of PasswordCredentials. :type value: list of :class:`PasswordCredential <azure.graphrbac.models.PasswordCredential>` :param dict custom_headers: he...
def update_password_credentials(self, application_object_id, value, custom_headers=None, raw=False, **operation_config):
parameters = models.PasswordCredentialsUpdateParameters(value=value) url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials' path_format_arguments = {'applicationObjectId': self._serialize.url('application_object_id', application_object_id, 'str', skip_quote=True), 'tenantID': self._seria...
'Gets a list of domains for the current tenant. :param filter: The filter to apply to 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 configura...
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 = '/{tenantID}/domains' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Gets a specific domain in the current tenant. :param domain_name: name of the domain. :type domain_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration over...
def get(self, domain_name, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/domains/{domainName}' path_format_arguments = {'domainName': self._serialize.url('domain_name', domain_name, 'str'), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {...
'Gets the details for the currently logged-in user. :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>`. :return: :class:`AADO...
def get_current_user(self, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/me' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', self.a...
'Gets AD group membership for the specified AD object IDs. :param parameters: Objects filtering parameters. :type parameters: :class:`GetObjectsParameters <azure.graphrbac.models.GetObjectsParameters>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alo...
def get_objects_by_object_ids(self, parameters, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/getObjectsByObjectIds' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_...
'Create a new user. :param parameters: Parameters to create a user. :type parameters: :class:`UserCreateParameters <azure.graphrbac.models.UserCreateParameters>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param ...
def create(self, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/users' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('self.api_version', sel...
'Gets list of users for the current tenant. :param filter: The filter to apply to 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 configuration...
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 = '/{tenantID}/users' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Gets user information from the directory. :param upn_or_object_id: The object ID or principal name of the user for which to get information. :type upn_or_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response...
def get(self, upn_or_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/users/{upnOrObjectId}' path_format_arguments = {'upnOrObjectId': self._serialize.url('upn_or_object_id', upn_or_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_argu...
'Updates a user. :param upn_or_object_id: The object ID or principal name of the user to update. :type upn_or_object_id: str :param parameters: Parameters to update an existing user. :type parameters: :class:`UserUpdateParameters <azure.graphrbac.models.UserUpdateParameters>` :param dict custom_headers: headers that wi...
def update(self, upn_or_object_id, parameters, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/users/{upnOrObjectId}' path_format_arguments = {'upnOrObjectId': self._serialize.url('upn_or_object_id', upn_or_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_argu...
'Delete a user. :param upn_or_object_id: The object ID or principal name of the user to delete. :type upn_or_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation conf...
def delete(self, upn_or_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/users/{upnOrObjectId}' path_format_arguments = {'upnOrObjectId': self._serialize.url('upn_or_object_id', upn_or_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_argu...
'Gets a collection that contains the object IDs of the groups of which the user is a member. :param object_id: The object ID of the user for which to get group membership. :type object_id: str :param security_enabled_only: If true, only membership in security-enabled groups should be checked. Otherwise, membership in a...
def get_member_groups(self, object_id, security_enabled_only, custom_headers=None, raw=False, **operation_config):
parameters = models.UserGetMemberGroupsParameters(security_enabled_only=security_enabled_only) def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/users/{objectId}/getMemberGroups' path_format_arguments = {'objectId': self._serialize.url('object...
'Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group. :param group_id: The object ID of the group to check. :type group_id: str :param member_id: The object ID of the contact, group, user, or service principal to check for membership in the spe...
def is_member_of(self, group_id, member_id, custom_headers=None, raw=False, **operation_config):
parameters = models.CheckGroupMembershipParameters(group_id=group_id, member_id=member_id) url = '/{tenantID}/isMemberOf' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query...
'Remove a member from a group. :param group_object_id: The object ID of the group from which to remove the member. :type group_object_id: str :param member_object_id: Member object id :type member_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct re...
def remove_member(self, group_object_id, member_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/groups/{groupObjectId}/$links/members/{memberObjectId}' path_format_arguments = {'groupObjectId': self._serialize.url('group_object_id', group_object_id, 'str', skip_quote=True), 'memberObjectId': self._serialize.url('member_object_id', member_object_id, 'str', skip_quote=True), 'tenantID': s...
'Add a member to a group. :param group_object_id: The object ID of the group to which to add the member. :type group_object_id: str :param url: A member object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-a...
def add_member(self, group_object_id, url, custom_headers=None, raw=False, **operation_config):
parameters = models.GroupAddMemberParameters(url=url) url = '/{tenantID}/groups/{groupObjectId}/$links/members' path_format_arguments = {'groupObjectId': self._serialize.url('group_object_id', group_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tena...
'Delete a group from the directory. :param group_object_id: The object ID of the group to delete. :type group_object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation con...
def delete(self, group_object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/groups/{groupObjectId}' path_format_arguments = {'groupObjectId': self._serialize.url('group_object_id', group_object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_argum...
'Create a group in the directory. :param display_name: Group display name :type display_name: str :param mail_nickname: Mail nickname :type mail_nickname: 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 ope...
def create(self, display_name, mail_nickname, custom_headers=None, raw=False, **operation_config):
parameters = models.GroupCreateParameters(display_name=display_name, mail_nickname=mail_nickname) url = '/{tenantID}/groups' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) qu...
'Gets list of groups for the current tenant. :param filter: The filter to apply to 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 configuratio...
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 = '/{tenantID}/groups' path_format_arguments = {'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) ...
'Gets the members of a group. :param object_id: The object ID of the group whose members should be retrieved. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operati...
def get_group_members(self, object_id, custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/groups/{objectId}/members' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.co...
'Gets group information from the directory. :param object_id: The object ID of the user for which to get group information. :type object_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config:...
def get(self, object_id, custom_headers=None, raw=False, **operation_config):
url = '/{tenantID}/groups/{objectId}' path_format_arguments = {'objectId': self._serialize.url('object_id', object_id, 'str', skip_quote=True), 'tenantID': self._serialize.url('self.config.tenant_id', self.config.tenant_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parame...
'Gets a collection of object IDs of groups of which the specified group is a member. :param object_id: The object ID of the group for which to get group membership. :type object_id: str :param security_enabled_only: If true, only membership in security-enabled groups should be checked. Otherwise, membership in all grou...
def get_member_groups(self, object_id, security_enabled_only, custom_headers=None, raw=False, **operation_config):
parameters = models.GroupGetMemberGroupsParameters(security_enabled_only=security_enabled_only) def internal_paging(next_link=None, raw=False): if (not next_link): url = '/{tenantID}/groups/{objectId}/getMemberGroups' path_format_arguments = {'objectId': self._serialize.url('obje...
'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...
'Gets all permissions the caller has for a resource group. :param resource_group_name: The name of the resource group to get the permissions for. 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 respons...
def list_for_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.Authorization/permissions' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resour...
'Gets all permissions the caller has 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 ...
def list_for_resource(self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_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/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions' path_f...
'Gets provider operations metadata for the specified resource provider. :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param api_version: The API version to use for the operation. :type api_version: str :param expand: Specifies whether to expand the v...
def get(self, resource_provider_namespace, api_version, expand='resourceTypes', custom_headers=None, raw=False, **operation_config):
url = '/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}' path_format_arguments = {'resourceProviderNamespace': self._serialize.url('resource_provider_namespace', resource_provider_namespace, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parame...
'Gets provider operations metadata for all resource providers. :param api_version: The API version to use for this operation. :type api_version: str :param expand: Specifies whether to expand the values. :type expand: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the...
def list(self, api_version, expand='resourceTypes', custom_headers=None, raw=False, **operation_config):
def internal_paging(next_link=None, raw=False): if (not next_link): url = '/providers/Microsoft.Authorization/providerOperations' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (expand is not...
'Gets role assignments for a resource. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param resource_provider_namespace: The namespace of the resource provider. :type resource_provider_namespace: str :param parent_resource_path: The parent resource identity. :type parent_res...
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/roleAssignments' pa...
'Gets role assignments for a resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param filter: The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assi...
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/roleAssignments' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', re...
'Deletes a role assignment. :param scope: The scope of the role assignment to delete. :type scope: str :param role_assignment_name: The name of the role assignment to delete. :type role_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, role_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleAssignmentName': self._serialize.url('role_assignment_name', role_assignment_name, 'str')} url = self._client.format_url...
'Creates a role assignment. :param scope: The scope of the role assignment to create. The scope can be any REST resource instance. For example, use \'/subscriptions/{subscription-id}/\' for a subscription, \'/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}\' for a resource group, and \'/subscriptio...
def create(self, scope, role_assignment_name, properties=None, custom_headers=None, raw=False, **operation_config):
parameters = models.RoleAssignmentCreateParameters(properties=properties) url = '/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleAssignmentName': self._serialize.url('role_ass...
'Get the specified role assignment. :param scope: The scope of the role assignment. :type scope: str :param role_assignment_name: The name of the role assignment to get. :type role_assignment_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alo...
def get(self, scope, role_assignment_name, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleAssignmentName': self._serialize.url('role_assignment_name', role_assignment_name, 'str')} url = self._client.format_url...
'Deletes a role assignment. :param role_assignment_id: The ID of the role assignment to delete. :type role_assignment_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation co...
def delete_by_id(self, role_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{roleAssignmentId}' path_format_arguments = {'roleAssignmentId': self._serialize.url('role_assignment_id', role_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('s...
'Creates a role assignment by ID. :param role_assignment_id: The ID of the role assignment to create. :type role_assignment_id: str :param properties: Role assignment properties. :type properties: :class:`RoleAssignmentProperties <azure.mgmt.authorization.models.RoleAssignmentProperties>` :param dict custom_headers: he...
def create_by_id(self, role_assignment_id, properties=None, custom_headers=None, raw=False, **operation_config):
parameters = models.RoleAssignmentCreateParameters(properties=properties) url = '/{roleAssignmentId}' path_format_arguments = {'roleAssignmentId': self._serialize.url('role_assignment_id', role_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_...
'Gets a role assignment by ID. :param role_assignment_id: The ID of the role assignment to get. :type role_assignment_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation co...
def get_by_id(self, role_assignment_id, custom_headers=None, raw=False, **operation_config):
url = '/{roleAssignmentId}' path_format_arguments = {'roleAssignmentId': self._serialize.url('role_assignment_id', role_assignment_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('s...
'Gets all role assignments for the subscription. :param filter: The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. :type filter: str :pa...
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/roleAssignments' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'st...
'Gets role assignments for a scope. :param scope: The scope of the role assignments. :type scope: str :param filter: The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the sco...
def list_for_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.Authorization/roleAssignments' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True)} url = self._client.format_url(url, **path_...
'Deletes a role definition. :param scope: The scope of the role definition. :type scope: str :param role_definition_id: The ID of the role definition to delete. :type role_definition_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the ...
def delete(self, scope, role_definition_id, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleDefinitionId': self._serialize.url('role_definition_id', role_definition_id, 'str')} url = self._client.format_url(url, **...
'Get role definition by name (GUID). :param scope: The scope of the role definition. :type scope: str :param role_definition_id: The ID of the role definition. :type role_definition_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the d...
def get(self, scope, role_definition_id, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleDefinitionId': self._serialize.url('role_definition_id', role_definition_id, 'str')} url = self._client.format_url(url, **...
'Creates or updates a role definition. :param scope: The scope of the role definition. :type scope: str :param role_definition_id: The ID of the role definition. :type role_definition_id: str :param role_definition: The values for the role definition. :type role_definition: :class:`RoleDefinition <azure.mgmt.authorizat...
def create_or_update(self, scope, role_definition_id, role_definition, custom_headers=None, raw=False, **operation_config):
url = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True), 'roleDefinitionId': self._serialize.url('role_definition_id', role_definition_id, 'str')} url = self._client.format_url(url, **...
'Gets a role definition by ID. :param role_definition_id: The fully qualified role definition ID to get. :type role_definition_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Ope...
def get_by_id(self, role_definition_id, custom_headers=None, raw=False, **operation_config):
url = '/{roleDefinitionId}' path_format_arguments = {'roleDefinitionId': self._serialize.url('role_definition_id', role_definition_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('s...
'Get all role definitions that are applicable at scope and above. :param scope: The scope of the role definition. :type scope: str :param filter: The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. :type filter: str :param dict custom_headers: headers that will be a...
def list(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.Authorization/roleDefinitions' path_format_arguments = {'scope': self._serialize.url('scope', scope, 'str', skip_quote=True)} url = self._client.format_url(url, **path_...
'Gets service administrator, account administrator, and co-administrators for the subscription. :param api_version: The API version to use for this operation. :type api_version: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deseriali...
def list(self, api_version, 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/classicAdministrators' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_i...
'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 management node. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param location: Location of the resource. :type...
def create(self, resource_group_name, node_name, location=None, tags=None, gateway_id=None, connection_name=None, user_name=None, password=None, custom_headers=None, raw=False, **operation_config):
gateway_parameters = models.NodeParameters(location=location, tags=tags, gateway_id=gateway_id, connection_name=connection_name, user_name=user_name, password=password) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}' path_forma...
'Updates a management node. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param location: Location of the resource. :type location: ...
def update(self, resource_group_name, node_name, location=None, tags=None, gateway_id=None, connection_name=None, user_name=None, password=None, custom_headers=None, raw=False, **operation_config):
node_parameters = models.NodeParameters(location=location, tags=tags, gateway_id=gateway_id, connection_name=connection_name, user_name=user_name, password=password) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}' path_format_a...
'deletes a management node. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param dict custom_headers: headers that will be added to t...
def delete(self, resource_group_name, node_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('resource_g...
'Gets a management node. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param dict custom_headers: headers that will be added to the ...
def get(self, resource_group_name, node_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('resource_g...
'Lists nodes 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:optionsforoperations>`. :rtype: :class:`NodeResourcePaged <azure....
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.ServerManagement/nodes' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} ...
'Lists nodes in a resource group. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :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 des...
def list_for_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.ServerManagement/nodes' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self...
'Gets a list of the active sessions. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the user. :type...
def list_session(self, resource_group_name, node_name, session, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'st...
'Creates a PowerShell session. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the user. :type sessi...
def create_session(self, resource_group_name, node_name, session, pssession, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscrip...
'Gets the status of a command. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the user. :type sessi...
def get_command_status(self, resource_group_name, node_name, session, pssession, expand=None, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscrip...
'Updates a running PowerShell command with more data. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId fro...
def update_command(self, resource_group_name, node_name, session, pssession, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscrip...
'Creates a PowerShell script and invokes it. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the use...
def invoke_command(self, resource_group_name, node_name, session, pssession, command=None, custom_headers=None, raw=False, **operation_config):
power_shell_command_parameters = models.PowerShellCommandParameters(command=command) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/invokeCommand' path_format...
'Cancels a PowerShell command. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the user. :type sessi...
def cancel_command(self, resource_group_name, node_name, session, pssession, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/cancel' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.s...
'Gets tab completion values for a command. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_name: str :param session: The sessionId from the user....
def tab_completion(self, resource_group_name, node_name, session, pssession, command=None, custom_headers=None, raw=False, **operation_config):
power_shell_tab_completion_paramters = models.PowerShellTabCompletionParameters(command=command) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/tab' path_form...
'Creates or updates a ManagementService gateway. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param gateway_name: The gateway name (256 characters maximum). :type gateway_name: str :param location: Location of ...
def create(self, resource_group_name, gateway_name, location=None, tags=None, upgrade_mode=None, custom_headers=None, raw=False, **operation_config):
gateway_parameters = models.GatewayParameters(location=location, tags=tags, upgrade_mode=upgrade_mode) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/gateways/{gatewayName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.c...
'Updates a gateway belonging to a resource group. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param gateway_name: The gateway name (256 characters maximum). :type gateway_name: str :param location: Location of...
def update(self, resource_group_name, gateway_name, location=None, tags=None, upgrade_mode=None, custom_headers=None, raw=False, **operation_config):
gateway_parameters = models.GatewayParameters(location=location, tags=tags, upgrade_mode=upgrade_mode) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/gateways/{gatewayName}' path_format_arguments = {'subscriptionId': self._serialize.url('self.c...