Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,032 changes: 540 additions & 492 deletions azure-keyvault/azure/keyvault/key_vault_client.py
100755 → 100644

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions azure-keyvault/azure/keyvault/models/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
from .sas_definition_item_paged import SasDefinitionItemPaged
from .key_vault_client_enums import (
JsonWebKeyType,
JsonWebKeyCurveName,
DeletionRecoveryLevel,
KeyUsageType,
ActionType,
Expand Down Expand Up @@ -179,6 +180,7 @@
'StorageAccountItemPaged',
'SasDefinitionItemPaged',
'JsonWebKeyType',
'JsonWebKeyCurveName',
'DeletionRecoveryLevel',
'KeyUsageType',
'ActionType',
Expand Down
4 changes: 2 additions & 2 deletions azure-keyvault/azure/keyvault/models/action.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class Action(Model):

:param action_type: The type of the action. Possible values include:
'EmailContacts', 'AutoRenew'
:type action_type: str or :class:`ActionType
<azure.keyvault.models.ActionType>`
:type action_type: str or ~azure.keyvault.models.ActionType
"""

_attribute_map = {
'action_type': {'key': 'action_type', 'type': 'ActionType'},
}

def __init__(self, action_type=None):
super(Action, self).__init__()
self.action_type = action_type
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/administrator_details.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AdministratorDetails(Model):
}

def __init__(self, first_name=None, last_name=None, email_address=None, phone=None):
super(AdministratorDetails, self).__init__()
self.first_name = first_name
self.last_name = last_name
self.email_address = email_address
Expand Down
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/attributes.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Attributes(Model):
}

def __init__(self, enabled=None, not_before=None, expires=None):
super(Attributes, self).__init__()
self.enabled = enabled
self.not_before = not_before
self.expires = expires
Expand Down
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/backup_key_result.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ class BackupKeyResult(Model):
}

def __init__(self):
super(BackupKeyResult, self).__init__()
self.value = None
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/backup_secret_result.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ class BackupSecretResult(Model):
}

def __init__(self):
super(BackupSecretResult, self).__init__()
self.value = None
4 changes: 2 additions & 2 deletions azure-keyvault/azure/keyvault/models/certificate_attributes.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CertificateAttributes(Attributes):
retention interval. Possible values include: 'Purgeable',
'Recoverable+Purgeable', 'Recoverable',
'Recoverable+ProtectedSubscription'
:vartype recovery_level: str or :class:`DeletionRecoveryLevel
<azure.keyvault.models.DeletionRecoveryLevel>`
:vartype recovery_level: str or
~azure.keyvault.models.DeletionRecoveryLevel
"""

_validation = {
Expand Down
9 changes: 4 additions & 5 deletions azure-keyvault/azure/keyvault/models/certificate_bundle.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ class CertificateBundle(Model):
:ivar x509_thumbprint: Thumbprint of the certificate.
:vartype x509_thumbprint: bytes
:ivar policy: The management policy.
:vartype policy: :class:`CertificatePolicy
<azure.keyvault.models.CertificatePolicy>`
:vartype policy: ~azure.keyvault.models.CertificatePolicy
:param cer: CER contents of x509 certificate.
:type cer: bytearray
:param content_type: The content type of the secret.
:type content_type: str
:param attributes: The certificate attributes.
:type attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs
:type tags: dict
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -61,6 +59,7 @@ class CertificateBundle(Model):
}

def __init__(self, cer=None, content_type=None, attributes=None, tags=None):
super(CertificateBundle, self).__init__()
self.id = None
self.kid = None
self.sid = None
Expand Down
9 changes: 4 additions & 5 deletions azure-keyvault/azure/keyvault/models/certificate_create_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ class CertificateCreateParameters(Model):
"""The certificate create parameters.

:param certificate_policy: The management policy for the certificate.
:type certificate_policy: :class:`CertificatePolicy
<azure.keyvault.models.CertificatePolicy>`
:type certificate_policy: ~azure.keyvault.models.CertificatePolicy
:param certificate_attributes: The attributes of the certificate
(optional).
:type certificate_attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type certificate_attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs.
:type tags: dict
:type tags: dict[str, str]
"""

_attribute_map = {
Expand All @@ -33,6 +31,7 @@ class CertificateCreateParameters(Model):
}

def __init__(self, certificate_policy=None, certificate_attributes=None, tags=None):
super(CertificateCreateParameters, self).__init__()
self.certificate_policy = certificate_policy
self.certificate_attributes = certificate_attributes
self.tags = tags
9 changes: 4 additions & 5 deletions azure-keyvault/azure/keyvault/models/certificate_import_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ class CertificateImportParameters(Model):
encrypted, the password used for encryption.
:type password: str
:param certificate_policy: The management policy for the certificate.
:type certificate_policy: :class:`CertificatePolicy
<azure.keyvault.models.CertificatePolicy>`
:type certificate_policy: ~azure.keyvault.models.CertificatePolicy
:param certificate_attributes: The attributes of the certificate
(optional).
:type certificate_attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type certificate_attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs.
:type tags: dict
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -46,6 +44,7 @@ class CertificateImportParameters(Model):
}

def __init__(self, base64_encoded_certificate, password=None, certificate_policy=None, certificate_attributes=None, tags=None):
super(CertificateImportParameters, self).__init__()
self.base64_encoded_certificate = base64_encoded_certificate
self.password = password
self.certificate_policy = certificate_policy
Expand Down
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/certificate_issuer_item.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ class CertificateIssuerItem(Model):
}

def __init__(self, id=None, provider=None):
super(CertificateIssuerItem, self).__init__()
self.id = id
self.provider = provider
2 changes: 1 addition & 1 deletion azure-keyvault/azure/keyvault/models/certificate_issuer_item_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class CertificateIssuerItemPaged(Paged):
"""
A paging container for iterating over a list of CertificateIssuerItem object
A paging container for iterating over a list of :class:`CertificateIssuerItem <azure.keyvault.models.CertificateIssuerItem>` object
"""

_attribute_map = {
Expand Down
10 changes: 4 additions & 6 deletions azure-keyvault/azure/keyvault/models/certificate_issuer_set_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ class CertificateIssuerSetParameters(Model):
:param provider: The issuer provider.
:type provider: str
:param credentials: The credentials to be used for the issuer.
:type credentials: :class:`IssuerCredentials
<azure.keyvault.models.IssuerCredentials>`
:type credentials: ~azure.keyvault.models.IssuerCredentials
:param organization_details: Details of the organization as provided to
the issuer.
:type organization_details: :class:`OrganizationDetails
<azure.keyvault.models.OrganizationDetails>`
:type organization_details: ~azure.keyvault.models.OrganizationDetails
:param attributes: Attributes of the issuer object.
:type attributes: :class:`IssuerAttributes
<azure.keyvault.models.IssuerAttributes>`
:type attributes: ~azure.keyvault.models.IssuerAttributes
"""

_validation = {
Expand All @@ -41,6 +38,7 @@ class CertificateIssuerSetParameters(Model):
}

def __init__(self, provider, credentials=None, organization_details=None, attributes=None):
super(CertificateIssuerSetParameters, self).__init__()
self.provider = provider
self.credentials = credentials
self.organization_details = organization_details
Expand Down
10 changes: 4 additions & 6 deletions azure-keyvault/azure/keyvault/models/certificate_issuer_update_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ class CertificateIssuerUpdateParameters(Model):
:param provider: The issuer provider.
:type provider: str
:param credentials: The credentials to be used for the issuer.
:type credentials: :class:`IssuerCredentials
<azure.keyvault.models.IssuerCredentials>`
:type credentials: ~azure.keyvault.models.IssuerCredentials
:param organization_details: Details of the organization as provided to
the issuer.
:type organization_details: :class:`OrganizationDetails
<azure.keyvault.models.OrganizationDetails>`
:type organization_details: ~azure.keyvault.models.OrganizationDetails
:param attributes: Attributes of the issuer object.
:type attributes: :class:`IssuerAttributes
<azure.keyvault.models.IssuerAttributes>`
:type attributes: ~azure.keyvault.models.IssuerAttributes
"""

_attribute_map = {
Expand All @@ -37,6 +34,7 @@ class CertificateIssuerUpdateParameters(Model):
}

def __init__(self, provider=None, credentials=None, organization_details=None, attributes=None):
super(CertificateIssuerUpdateParameters, self).__init__()
self.provider = provider
self.credentials = credentials
self.organization_details = organization_details
Expand Down
6 changes: 3 additions & 3 deletions azure-keyvault/azure/keyvault/models/certificate_item.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ class CertificateItem(Model):
:param id: Certificate identifier.
:type id: str
:param attributes: The certificate management attributes.
:type attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs.
:type tags: dict
:type tags: dict[str, str]
:param x509_thumbprint: Thumbprint of the certificate.
:type x509_thumbprint: bytes
"""
Expand All @@ -34,6 +33,7 @@ class CertificateItem(Model):
}

def __init__(self, id=None, attributes=None, tags=None, x509_thumbprint=None):
super(CertificateItem, self).__init__()
self.id = id
self.attributes = attributes
self.tags = tags
Expand Down
2 changes: 1 addition & 1 deletion azure-keyvault/azure/keyvault/models/certificate_item_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class CertificateItemPaged(Paged):
"""
A paging container for iterating over a list of CertificateItem object
A paging container for iterating over a list of :class:`CertificateItem <azure.keyvault.models.CertificateItem>` object
"""

_attribute_map = {
Expand Down
8 changes: 4 additions & 4 deletions azure-keyvault/azure/keyvault/models/certificate_merge_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ class CertificateMergeParameters(Model):

:param x509_certificates: The certificate or the certificate chain to
merge.
:type x509_certificates: list of bytearray
:type x509_certificates: list[bytearray]
:param certificate_attributes: The attributes of the certificate
(optional).
:type certificate_attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type certificate_attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs.
:type tags: dict
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -37,6 +36,7 @@ class CertificateMergeParameters(Model):
}

def __init__(self, x509_certificates, certificate_attributes=None, tags=None):
super(CertificateMergeParameters, self).__init__()
self.x509_certificates = x509_certificates
self.certificate_attributes = certificate_attributes
self.tags = tags
6 changes: 3 additions & 3 deletions azure-keyvault/azure/keyvault/models/certificate_operation.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class CertificateOperation(Model):
:vartype id: str
:param issuer_parameters: Parameters for the issuer of the X509 component
of a certificate.
:type issuer_parameters: :class:`IssuerParameters
<azure.keyvault.models.IssuerParameters>`
:type issuer_parameters: ~azure.keyvault.models.IssuerParameters
:param csr: The certificate signing request (CSR) that is being used in
the certificate operation.
:type csr: bytearray
Expand All @@ -35,7 +34,7 @@ class CertificateOperation(Model):
:param status_details: The status details of the certificate operation.
:type status_details: str
:param error: Error encountered, if any, during the certificate operation.
:type error: :class:`Error <azure.keyvault.models.Error>`
:type error: ~azure.keyvault.models.Error
:param target: Location which contains the result of the certificate
operation.
:type target: str
Expand All @@ -60,6 +59,7 @@ class CertificateOperation(Model):
}

def __init__(self, issuer_parameters=None, csr=None, cancellation_requested=None, status=None, status_details=None, error=None, target=None, request_id=None):
super(CertificateOperation, self).__init__()
self.id = None
self.issuer_parameters = issuer_parameters
self.csr = csr
Expand Down
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/certificate_operation_update_parameter.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ class CertificateOperationUpdateParameter(Model):
}

def __init__(self, cancellation_requested):
super(CertificateOperationUpdateParameter, self).__init__()
self.cancellation_requested = cancellation_requested
20 changes: 8 additions & 12 deletions azure-keyvault/azure/keyvault/models/certificate_policy.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,21 @@ class CertificatePolicy(Model):
:ivar id: The certificate id.
:vartype id: str
:param key_properties: Properties of the key backing a certificate.
:type key_properties: :class:`KeyProperties
<azure.keyvault.models.KeyProperties>`
:type key_properties: ~azure.keyvault.models.KeyProperties
:param secret_properties: Properties of the secret backing a certificate.
:type secret_properties: :class:`SecretProperties
<azure.keyvault.models.SecretProperties>`
:type secret_properties: ~azure.keyvault.models.SecretProperties
:param x509_certificate_properties: Properties of the X509 component of a
certificate.
:type x509_certificate_properties: :class:`X509CertificateProperties
<azure.keyvault.models.X509CertificateProperties>`
:type x509_certificate_properties:
~azure.keyvault.models.X509CertificateProperties
:param lifetime_actions: Actions that will be performed by Key Vault over
the lifetime of a certificate.
:type lifetime_actions: list of :class:`LifetimeAction
<azure.keyvault.models.LifetimeAction>`
:type lifetime_actions: list[~azure.keyvault.models.LifetimeAction]
:param issuer_parameters: Parameters for the issuer of the X509 component
of a certificate.
:type issuer_parameters: :class:`IssuerParameters
<azure.keyvault.models.IssuerParameters>`
:type issuer_parameters: ~azure.keyvault.models.IssuerParameters
:param attributes: The certificate attributes.
:type attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type attributes: ~azure.keyvault.models.CertificateAttributes
"""

_validation = {
Expand All @@ -58,6 +53,7 @@ class CertificatePolicy(Model):
}

def __init__(self, key_properties=None, secret_properties=None, x509_certificate_properties=None, lifetime_actions=None, issuer_parameters=None, attributes=None):
super(CertificatePolicy, self).__init__()
self.id = None
self.key_properties = key_properties
self.secret_properties = secret_properties
Expand Down
9 changes: 4 additions & 5 deletions azure-keyvault/azure/keyvault/models/certificate_update_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ class CertificateUpdateParameters(Model):
"""The certificate update parameters.

:param certificate_policy: The management policy for the certificate.
:type certificate_policy: :class:`CertificatePolicy
<azure.keyvault.models.CertificatePolicy>`
:type certificate_policy: ~azure.keyvault.models.CertificatePolicy
:param certificate_attributes: The attributes of the certificate
(optional).
:type certificate_attributes: :class:`CertificateAttributes
<azure.keyvault.models.CertificateAttributes>`
:type certificate_attributes: ~azure.keyvault.models.CertificateAttributes
:param tags: Application specific metadata in the form of key-value pairs.
:type tags: dict
:type tags: dict[str, str]
"""

_attribute_map = {
Expand All @@ -33,6 +31,7 @@ class CertificateUpdateParameters(Model):
}

def __init__(self, certificate_policy=None, certificate_attributes=None, tags=None):
super(CertificateUpdateParameters, self).__init__()
self.certificate_policy = certificate_policy
self.certificate_attributes = certificate_attributes
self.tags = tags
1 change: 1 addition & 0 deletions azure-keyvault/azure/keyvault/models/contact.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Contact(Model):
}

def __init__(self, email_address=None, name=None, phone=None):
super(Contact, self).__init__()
self.email_address = email_address
self.name = name
self.phone = phone
Loading