desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Verifies a signature using a specified key.
The VERIFY operation is applicable to symmetric keys stored in Azure
Key Vault. VERIFY is not strictly necessary for asymmetric keys stored
in Azure Key Vault since signature verification can be performed using
the public portion of the key but this operation is supported as... | def verify(self, vault_base_url, key_name, key_version, algorithm, digest, signature, custom_headers=None, raw=False, **operation_config):
| parameters = models.KeyVerifyParameters(algorithm=algorithm, digest=digest, signature=signature)
url = '/keys/{key-name}/{key-version}/verify'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', k... |
'Wraps a symmetric key using a specified key.
The WRAP operation supports encryption of a symmetric key using a key
encryption key that has previously been stored in an Azure Key Vault.
The WRAP operation is only strictly necessary for symmetric keys stored
in Azure Key Vault since protection with an asymmetric key can... | def wrap_key(self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config):
| parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value)
url = '/keys/{key-name}/{key-version}/wrapkey'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', key_name, 'str'), '... |
'Unwraps a symmetric key using the specified key that was initially used
for wrapping that key.
The UNWRAP operation supports decryption of a symmetric key using the
target key encryption key. This operation is the reverse of the WRAP
operation. The UNWRAP operation applies to asymmetric and symmetric
keys stored in Az... | def unwrap_key(self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config):
| parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value)
url = '/keys/{key-name}/{key-version}/unwrapkey'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', key_name, 'str'),... |
'List deleted keys in the specified vault. Authorization: Requires the
keys/list permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results to return in a page. If
not specified the service will return up to 25 r... | def get_deleted_keys(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/deletedkeys'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
... |
'Retrieves the deleted key information plus its attributes.
Authorization: Requires the keys/get permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param key_name: The name of the key
:type key_name: str
:param dict custom_headers: headers that wil... | def get_deleted_key(self, vault_base_url, key_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedkeys/{key-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', key_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
quer... |
'Permanently deletes the specified key. aka purges the key.
Authorization: Requires the keys/purge permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param key_name: The name of the key
:type key_name: str
:param dict custom_headers: headers that w... | def purge_deleted_key(self, vault_base_url, key_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedkeys/{key-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', key_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
quer... |
'Recovers the deleted key back to its current version under /keys.
Authorization: Requires the keys/recover permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param key_name: The name of the deleted key
:type key_name: str
:param dict custom_header... | def recover_deleted_key(self, vault_base_url, key_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedkeys/{key-name}/recover'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url('key_name', key_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
... |
'Sets a secret in a specified key vault.
The SET operation adds a secret to the Azure Key Vault. If the named
secret already exists, Azure Key Vault creates a new version of that
secret.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The... | def set_secret(self, vault_base_url, secret_name, value, tags=None, content_type=None, secret_attributes=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.SecretSetParameters(value=value, tags=tags, content_type=content_type, secret_attributes=secret_attributes)
url = '/secrets/{secret-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serializ... |
'Deletes a secret from a specified key vault.
The DELETE operation applies to any secret stored in Azure Key Vault.
DELETE cannot be applied to an individual version of a secret.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of... | def delete_secret(self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config):
| url = '/secrets/{secret-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
... |
'Updates the attributes associated with a specified secret in a given
key vault.
The UPDATE operation changes specified attributes of an existing stored
secret. Attributes that are not specified in the request are left
unchanged. The value of a secret itself cannot be changed.
:param vault_base_url: The vault name, for... | def update_secret(self, vault_base_url, secret_name, secret_version, content_type=None, secret_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.SecretUpdateParameters(content_type=content_type, secret_attributes=secret_attributes, tags=tags)
url = '/secrets/{secret-name}/{secret-version}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._s... |
'Get a specified secret from a given key vault.
The GET operation is applicable to any secret stored in Azure Key
Vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the secret.
:type secret_name: str
:param secret_version:... | def get_secret(self, vault_base_url, secret_name, secret_version, custom_headers=None, raw=False, **operation_config):
| url = '/secrets/{secret-name}/{secret-version}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str'), 'secret-version': self._serialize.url('secret_version', secret_version, '... |
'List secrets in a specified key vault.
The LIST operation is applicable to the entire vault, however only the
base secret identifier and attributes are provided in the response.
Individual secret versions are not listed in the response.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net... | def get_secrets(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/secrets'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
... |
'List the versions of the specified secret.
The LIST VERSIONS operation can be applied to all versions having the
same secret name in the same key vault. The full secret identifier and
attributes are provided in the response. No values are returned for the
secrets and only current versions of a secret are listed.
:para... | def get_secret_versions(self, vault_base_url, secret_name, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/secrets/{secret-name}/versions'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret... |
'List deleted secrets in the specified vault. Authorization: requires
the secrets/list permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results to return in a page. If
not specified the service will return up t... | def get_deleted_secrets(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/deletedsecrets'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
... |
'Retrieves the deleted secret information plus its attributes.
Authorization: requires the secrets/get permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the secret
:type secret_name: str
:param dict custom_headers: h... | def get_deleted_secret(self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedsecrets/{secret-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameter... |
'Permanently deletes the specified secret. aka purges the secret.
Authorization: requires the secrets/purge permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the secret
:type secret_name: str
:param dict custom_heade... | def purge_deleted_secret(self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedsecrets/{secret-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameter... |
'Recovers the deleted secret back to its current version under /secrets.
Authorization: requires the secrets/recover permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the deleted secret
:type secret_name: str
:param ... | def recover_deleted_secret(self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedsecrets/{secret-name}/recover'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_p... |
'Requests that a backup of the specified secret be downloaded to the
client. Authorization: requires the secrets/backup permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the secret.
:type secret_name: str
:param dict... | def backup_secret(self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config):
| url = '/secrets/{secret-name}/backup'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameter... |
'Restores a backed up secret to a vault. Authorization: requires the
secrets/restore permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_bundle_backup: The backup blob associated with a secret
bundle.
:type secret_bundle_backup: bytes
:... | def restore_secret(self, vault_base_url, secret_bundle_backup, custom_headers=None, raw=False, **operation_config):
| parameters = models.SecretRestoreParameters(secret_bundle_backup=secret_bundle_backup)
url = '/secrets/restore'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_pa... |
'List certificates in a specified key vault.
The GetCertificates operation returns the set of certificates resources
in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results to return in a page.... | def get_certificates(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/certificates'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
... |
'Deletes a certificate from a specified key vault.
Deletes all versions of a certificate object along with its associated
policy. Delete certificate cannot be used to remove individual versions
of a certificate object.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_... | def delete_certificate(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
... |
'Sets the certificate contacts for the specified key vault.
Sets the certificate contacts for the specified key vault.
Authorization: requires the certificates/managecontacts permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param contact_list: Th... | def set_certificate_contacts(self, vault_base_url, contact_list=None, custom_headers=None, raw=False, **operation_config):
| contacts = models.Contacts(contact_list=contact_list)
url = '/certificates/contacts'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_par... |
'Lists the certificate contacts for a specified key vault.
The GetCertificateContacts operation returns the set of certificate
contact resources in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param dict custom_headers: headers t... | def get_certificate_contacts(self, vault_base_url, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/contacts'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_v... |
'Deletes the certificate contacts for a specified key vault.
Deletes the certificate contacts for a specified key vault certificate.
Authorization: requires the certificates/managecontacts permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param di... | def delete_certificate_contacts(self, vault_base_url, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/contacts'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_v... |
'List certificate issuers for a specified key vault.
The GetCertificateIssuers operation returns the set of certificate
issuer resources in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results ... | def get_certificate_issuers(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/certificates/issuers'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_argum... |
'Sets the specified certificate issuer.
The SetCertificateIssuer operation adds or updates the specified
certificate issuer.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param issuer_name: The name of the issuer.
:type issuer_name: str
:param provider: T... | def set_certificate_issuer(self, vault_base_url, issuer_name, provider, credentials=None, organization_details=None, attributes=None, custom_headers=None, raw=False, **operation_config):
| parameter = models.CertificateIssuerSetParameters(provider=provider, credentials=credentials, organization_details=organization_details, attributes=attributes)
url = '/certificates/issuers/{issuer-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', sk... |
'Updates the specified certificate issuer.
The UpdateCertificateIssuer operation performs an update on the
specified certificate issuer entity.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param issuer_name: The name of the issuer.
:type issuer_name: str... | def update_certificate_issuer(self, vault_base_url, issuer_name, provider=None, credentials=None, organization_details=None, attributes=None, custom_headers=None, raw=False, **operation_config):
| parameter = models.CertificateIssuerUpdateParameters(provider=provider, credentials=credentials, organization_details=organization_details, attributes=attributes)
url = '/certificates/issuers/{issuer-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str',... |
'Lists the specified certificate issuer.
The GetCertificateIssuer operation returns the specified certificate
issuer resources in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param issuer_name: The name of the issuer.
:type issue... | def get_certificate_issuer(self, vault_base_url, issuer_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/issuers/{issuer-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url('issuer_name', issuer_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_par... |
'Deletes the specified certificate issuer.
The DeleteCertificateIssuer operation permanently removes the specified
certificate issuer from the vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param issuer_name: The name of the issuer.
:type issuer_nam... | def delete_certificate_issuer(self, vault_base_url, issuer_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/issuers/{issuer-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url('issuer_name', issuer_name, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_par... |
'Creates a new certificate. .
If this is the first version, the certificate resource is created.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate.
:type certificate_name: str
:param certificate_policy: The ... | def create_certificate(self, vault_base_url, certificate_name, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.CertificateCreateParameters(certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags)
url = '/certificates/{certificate-name}/create'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=Tr... |
'Imports a certificate into a specified key vault.
Imports an existing valid certificate, containing a private key, into
Azure Key Vault. The certificate to be imported can be in either PFX or
PEM format. If the certificate is in PEM format the PEM file must
contain the key as well as x509 certificates.
:param vault_ba... | def import_certificate(self, vault_base_url, certificate_name, base64_encoded_certificate, password=None, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.CertificateImportParameters(base64_encoded_certificate=base64_encoded_certificate, password=password, certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags)
url = '/certificates/{certificate-name}/import'
path_format_arguments = {'vaultBaseUrl': ... |
'List the versions of a certificate.
The GetCertificateVersions operation returns the versions of a
certificate in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate.
:type certificat... | def get_certificate_versions(self, vault_base_url, certificate_name, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/certificates/{certificate-name}/versions'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certi... |
'Lists the policy for a certificate.
The GetCertificatePolicy operation returns the specified certificate
policy resources in the specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate in a g... | def get_certificate_policy(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}/policy'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argum... |
'Updates the policy for a certificate.
Set specified members in the certificate policy. Leave others as null.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate in the given
vault.
:type certificate_name: str... | def update_certificate_policy(self, vault_base_url, certificate_name, certificate_policy, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}/policy'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argum... |
'Updates the specified attributes associated with the given certificate.
The UpdateCertificate operation applies the specified update on the
given certificate; note the only elements being updated are the
certificate\'s attributes.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:typ... | def update_certificate(self, vault_base_url, certificate_name, certificate_version, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.CertificateUpdateParameters(certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags)
url = '/certificates/{certificate-name}/{certificate-version}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str'... |
'Gets information about a specified certificate. Authorization: requires
the certificates/get permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate in the given
vault.
:type certificate_name: str
:pa... | def get_certificate(self, vault_base_url, certificate_name, certificate_version, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}/{certificate-version}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str'), 'certificate-version': self._serialize.url(... |
'Updates a certificate operation. Authorization: requires the
certificates/update permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate.
:type certificate_name: str
:param cancellation_requested: Ind... | def update_certificate_operation(self, vault_base_url, certificate_name, cancellation_requested, custom_headers=None, raw=False, **operation_config):
| certificate_operation = models.CertificateOperationUpdateParameter(cancellation_requested=cancellation_requested)
url = '/certificates/{certificate-name}/pending'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self.... |
'Gets the operation associated with a specified certificate.
Authorization: requires the certificates/get permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate.
:type certificate_name: str
:param dic... | def get_certificate_operation(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}/pending'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argu... |
'Deletes the operation for a specified certificate. Authorization:
requires the certificates/update permission.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param certificate_name: The name of the certificate.
:type certificate_name: str
:param dict cust... | def delete_certificate_operation(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/certificates/{certificate-name}/pending'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argu... |
'Merges a certificate or a certificate chain with a key pair existing on
the server.
The MergeCertificate operation performs the merging of a certificate or
certificate chain with a key pair currently available in the service.
Authorization: requires the certificates/update permission.
:param vault_base_url: The vault ... | def merge_certificate(self, vault_base_url, certificate_name, x509_certificates, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.CertificateMergeParameters(x509_certificates=x509_certificates, certificate_attributes=certificate_attributes, tags=tags)
url = '/certificates/{certificate-name}/pending/merge'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quot... |
'Lists the deleted certificates in the specified vault, currently
available for recovery.
The GetDeletedCertificates operation retrieves the certificates in the
current vault which are in a deleted state and ready for recovery or
purging.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.ne... | def get_deleted_certificates(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/deletedcertificates'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_argume... |
'Retrieves information about the specified deleted certificate.
The GetDeletedCertificate operation retrieves the deleted certificate
information plus its attributes, such as retention interval, scheduled
permanent deletion and the current deletion recovery level.
:param vault_base_url: The vault name, for example
http... | def get_deleted_certificate(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedcertificates/{certificate-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argum... |
'Permanently deletes the specified deleted certificate.
The PurgeDeletedCertificate operation performs an irreversible deletion
of the specified certificate, without possibility for recovery. The
operation is not available if the recovery level does not specify
\'Purgeable\'. Requires the explicit granting of the \'pur... | def purge_deleted_certificate(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedcertificates/{certificate-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_format_argum... |
'Recovers the deleted certificate back to its current version under
/certificates.
The RecoverDeletedCertificate operation performs the reversal of the
Delete operation. The operation is applicable in vaults enabled for
soft-delete, and must be issued during the retention interval
(available in the deleted certificate\... | def recover_deleted_certificate(self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config):
| url = '/deletedcertificates/{certificate-name}/recover'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url('certificate_name', certificate_name, 'str')}
url = self._client.format_url(url, **path_form... |
'List storage accounts managed by specified key vault.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results to return in a page. If
not specified the service will return up to 25 results.
:type maxresults: int
:param d... | def get_storage_accounts(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/storage'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
... |
'Deletes a storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: r... | def delete_storage_account(self, vault_base_url, storage_account_name, custom_headers=None, raw=False, **operation_config):
| url = '/storage/{storage-account-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage_account_name', storage_account_name, 'str', pattern='^[0-9a-zA-Z]+$')}
url = self._client.forma... |
'Gets information about a specified storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param dict custom_headers: headers that will be added to the r... | def get_storage_account(self, vault_base_url, storage_account_name, custom_headers=None, raw=False, **operation_config):
| url = '/storage/{storage-account-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage_account_name', storage_account_name, 'str', pattern='^[0-9a-zA-Z]+$')}
url = self._client.forma... |
'Creates or updates a new storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param resource_id: Storage account resource id.
:type resource_id: str
:... | def set_storage_account(self, vault_base_url, storage_account_name, resource_id, active_key_name, auto_regenerate_key, regeneration_period=None, storage_account_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.StorageAccountCreateParameters(resource_id=resource_id, active_key_name=active_key_name, auto_regenerate_key=auto_regenerate_key, regeneration_period=regeneration_period, storage_account_attributes=storage_account_attributes, tags=tags)
url = '/storage/{storage-account-name}'
path_format... |
'Updates the specified attributes associated with the given storage
account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param active_key_name: The current act... | def update_storage_account(self, vault_base_url, storage_account_name, active_key_name=None, auto_regenerate_key=None, regeneration_period=None, storage_account_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.StorageAccountUpdateParameters(active_key_name=active_key_name, auto_regenerate_key=auto_regenerate_key, regeneration_period=regeneration_period, storage_account_attributes=storage_account_attributes, tags=tags)
url = '/storage/{storage-account-name}'
path_format_arguments = {'vaultBaseU... |
'Regenerates the specified key value for the given storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param key_name: The storage account key name.
:... | def regenerate_storage_account_key(self, vault_base_url, storage_account_name, key_name, custom_headers=None, raw=False, **operation_config):
| parameters = models.StorageAccountRegenerteKeyParameters(key_name=key_name)
url = '/storage/{storage-account-name}/regeneratekey'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage_accou... |
'List storage SAS definitions for the given storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param maxresults: Maximum number of results to return ... | def get_sas_definitions(self, vault_base_url, storage_account_name, maxresults=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/storage/{storage-account-name}/sas'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage... |
'Deletes a SAS definition from a specified storage account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param sas_definition_name: The name of the SAS definiti... | def delete_sas_definition(self, vault_base_url, storage_account_name, sas_definition_name, custom_headers=None, raw=False, **operation_config):
| url = '/storage/{storage-account-name}/sas/{sas-definition-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage_account_name', storage_account_name, 'str', pattern='^[0-9a-zA-Z]+$'), 's... |
'Gets information about a SAS definition for the specified storage
account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param sas_definition_name: The name of ... | def get_sas_definition(self, vault_base_url, storage_account_name, sas_definition_name, custom_headers=None, raw=False, **operation_config):
| url = '/storage/{storage-account-name}/sas/{sas-definition-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'storage-account-name': self._serialize.url('storage_account_name', storage_account_name, 'str', pattern='^[0-9a-zA-Z]+$'), 's... |
'Creates or updates a new SAS definition for the specified storage
account.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param sas_definition_name: The name of ... | def set_sas_definition(self, vault_base_url, storage_account_name, sas_definition_name, parameters, sas_definition_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters1 = models.SasDefinitionCreateParameters(parameters=parameters, sas_definition_attributes=sas_definition_attributes, tags=tags)
url = '/storage/{storage-account-name}/sas/{sas-definition-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', sk... |
'Updates the specified attributes associated with the given SAS
definition.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param storage_account_name: The name of the storage account.
:type storage_account_name: str
:param sas_definition_name: The name of ... | def update_sas_definition(self, vault_base_url, storage_account_name, sas_definition_name, parameters=None, sas_definition_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
| parameters1 = models.SasDefinitionUpdateParameters(parameters=parameters, sas_definition_attributes=sas_definition_attributes, tags=tags)
url = '/storage/{storage-account-name}/sas/{sas-definition-name}'
path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', sk... |
'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 the available billing periods for a subscription in reverse
chronological order.
:param filter: May be used to filter billing periods by
billingPeriodEndDate. The filter supports \'eq\', \'lt\', \'gt\', \'le\',
\'ge\', and \'and\'. It does not currently support \'ne\', \'or\', or \'not\'.
:type filter: str
:para... | def list(self, filter=None, skiptoken=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}/providers/Microsoft.Billing/billingPeriods'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Gets a named billing period.
:param billing_period_name: The name of a BillingPeriod resource.
:type billing_period_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 c... | def get(self, billing_period_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'billingPeriodName': self._serialize.url('billing_period_name', billing_period... |
'Lists all of the available billing 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:`... | 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.Billing/operations'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')
else:
url = n... |
'Lists the available invoices for a subscription in reverse
chronological order beginning with the most recent invoice. In preview,
invoices are available via this API only for invoice periods which end
December 1, 2016 or later.
:param expand: May be used to expand the downloadUrl property within a
list of invoices. T... | def list(self, expand=None, filter=None, skiptoken=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}/providers/Microsoft.Billing/invoices'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Gets a named invoice resource. When getting a single invoice, the
downloadUrl property is expanded automatically.
:param invoice_name: The name of an invoice resource.
:type invoice_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside th... | def get(self, invoice_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices/{invoiceName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'invoiceName': self._serialize.url('invoice_name', invoice_name, 'str')}
url = self._c... |
'Gets the most recent invoice. When getting a single invoice, the
downloadUrl property is expanded automatically.
: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 get_latest(self, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices/latest'
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 = {}
que... |
'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... |
'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 the Batch service quotas for the specified subscription at the
given location.
:param location_name: The region for which to retrieve Batch service
quotas.
:type location_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
dese... | def get_quotas(self, location_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'
path_format_arguments = {'locationName': self._serialize.url('location_name', location_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
url... |
'Checks whether the Batch account name is available in the specified
region.
:param location_name: The desired region for the name check.
:type location_name: str
:param name: The name to check for availability
:type name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: return... | def check_name_availability(self, location_name, name, custom_headers=None, raw=False, **operation_config):
| parameters = models.CheckNameAvailabilityParameters(name=name)
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability'
path_format_arguments = {'locationName': self._serialize.url('location_name', location_name, 'str'), 'subscriptionId': self._seriali... |
'Lists available operations for the Microsoft.Batch provider.
: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: An... | 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.Batch/operations'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')
else:
url = nex... |
'Creates a new Batch account with the specified parameters. Existing
accounts cannot be updated with this API and should instead be updated
with the Update Batch Account API.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: A... | def create(self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountName': self._serialize.url('acco... |
'Updates the properties of an existing Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param tags: The user-specified tags associated with the account.
:... | def update(self, resource_group_name, account_name, tags=None, auto_storage=None, custom_headers=None, raw=False, **operation_config):
| parameters = models.BatchAccountUpdateParameters(tags=tags, auto_storage=auto_storage)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', res... |
'Deletes the specified Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param dict custom_headers: headers that will be added to the request
:param bool r... | def delete(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountName': self._serialize.url('acco... |
'Gets information about the specified Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param dict custom_headers: headers that will be added to the reques... | def get(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountName': self._serialize.url('acco... |
'Gets information about the Batch accounts associated with the
subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest: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.Batch/batchAccounts'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Gets information about the Batch accounts associated with the specified
resource group.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct re... | 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.Batch/batchAccounts'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro... |
'Synchronizes access keys for the auto-storage account configured for
the specified Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param dict custom_hea... | def synchronize_auto_storage_keys(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountName': self.... |
'Regenerates the specified account key for the Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param key_name: The type of account key to regenerate. Pos... | def regenerate_key(self, resource_group_name, account_name, key_name, custom_headers=None, raw=False, **operation_config):
| parameters = models.BatchAccountRegenerateKeyParameters(key_name=key_name)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', ... |
'Gets the account keys for the specified Batch account.
This operation applies only to Batch accounts created with a
poolAllocationMode of \'BatchService\'. If the Batch account was created
with a poolAllocationMode of \'UserSubscription\', clients cannot use
access to keys to authenticate, and must use Azure Active Di... | def get_keys(self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountName': self._serialize.... |
'Adds an application to the specified Batch account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_... | def create(self, resource_group_name, account_name, application_id, allow_updates=None, display_name=None, custom_headers=None, raw=False, **operation_config):
| parameters = None
if ((allow_updates is not None) or (display_name is not None)):
parameters = models.ApplicationCreateParameters(allow_updates=allow_updates, display_name=display_name)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/... |
'Deletes an application.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_id: str
:param dict custom_h... | def delete(self, resource_group_name, account_name, application_id, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountNam... |
'Gets information about the specified application.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_id... | def get(self, resource_group_name, account_name, application_id, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountNam... |
'Updates settings for the specified application.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_id: ... | def update(self, resource_group_name, account_name, application_id, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\._]+$'), 'accountNam... |
'Lists all of the applications in the specified account.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param maxresults: The maximum number of items to return in the
... | def list(self, resource_group_name, account_name, maxresults=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.Batch/batchAccounts/{accountName}/applications'
path_format_arguments = {'resourceGroupName': self._serialize.url('resourc... |
'Activates the specified application package.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_id: str... | def activate(self, resource_group_name, account_name, application_id, version, format, custom_headers=None, raw=False, **operation_config):
| parameters = models.ActivateApplicationPackageParameters(format=format)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}/activate'
path_format_arguments = {'resourceGroupName': self... |
'Creates an application package record.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type application_id: str
:para... | def create(self, resource_group_name, account_name, application_id, version, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\.... |
'Deletes an application package record and its associated binary file.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
... | def delete(self, resource_group_name, account_name, application_id, version, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\.... |
'Gets information about the specified application package.
:param resource_group_name: The name of the resource group that
contains the Batch account.
:type resource_group_name: str
:param account_name: The name of the Batch account.
:type account_name: str
:param application_id: The ID of the application.
:type applic... | def get(self, resource_group_name, account_name, application_id, version, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', pattern='^[-\\w\\.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.