Skip to content

Commit

Permalink
[AutoPR keyvault/data-plane] Update description for DeleteRecoveryLev…
Browse files Browse the repository at this point in the history
…el fields (#2490)

* Generated from 86db97e616cc030b722a640e0beafe21642b5a69

Update description for DeleteRecoveryLevel fields

* Generated from 86db97e616cc030b722a640e0beafe21642b5a69

Update description for DeleteRecoveryLevel fields
  • Loading branch information
AutorestCI authored Apr 30, 2018
1 parent 81788d9 commit 7d87a91
Show file tree
Hide file tree
Showing 145 changed files with 4,197 additions and 633 deletions.
207 changes: 137 additions & 70 deletions azure-keyvault/azure/keyvault/key_vault_client.py

Large diffs are not rendered by default.

212 changes: 142 additions & 70 deletions azure-keyvault/azure/keyvault/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,76 +9,148 @@
# regenerated.
# --------------------------------------------------------------------------

from .attributes import Attributes
from .json_web_key import JsonWebKey
from .key_attributes import KeyAttributes
from .key_bundle import KeyBundle
from .key_item import KeyItem
from .deleted_key_bundle import DeletedKeyBundle
from .deleted_key_item import DeletedKeyItem
from .secret_attributes import SecretAttributes
from .secret_bundle import SecretBundle
from .secret_item import SecretItem
from .deleted_secret_bundle import DeletedSecretBundle
from .deleted_secret_item import DeletedSecretItem
from .secret_restore_parameters import SecretRestoreParameters
from .certificate_attributes import CertificateAttributes
from .certificate_item import CertificateItem
from .certificate_issuer_item import CertificateIssuerItem
from .key_properties import KeyProperties
from .secret_properties import SecretProperties
from .subject_alternative_names import SubjectAlternativeNames
from .x509_certificate_properties import X509CertificateProperties
from .trigger import Trigger
from .action import Action
from .lifetime_action import LifetimeAction
from .issuer_parameters import IssuerParameters
from .certificate_policy import CertificatePolicy
from .certificate_bundle import CertificateBundle
from .deleted_certificate_bundle import DeletedCertificateBundle
from .deleted_certificate_item import DeletedCertificateItem
from .error import Error
from .certificate_operation import CertificateOperation
from .issuer_credentials import IssuerCredentials
from .administrator_details import AdministratorDetails
from .organization_details import OrganizationDetails
from .issuer_attributes import IssuerAttributes
from .issuer_bundle import IssuerBundle
from .contact import Contact
from .contacts import Contacts
from .key_create_parameters import KeyCreateParameters
from .key_import_parameters import KeyImportParameters
from .key_operations_parameters import KeyOperationsParameters
from .key_sign_parameters import KeySignParameters
from .key_verify_parameters import KeyVerifyParameters
from .key_update_parameters import KeyUpdateParameters
from .key_restore_parameters import KeyRestoreParameters
from .secret_set_parameters import SecretSetParameters
from .secret_update_parameters import SecretUpdateParameters
from .certificate_create_parameters import CertificateCreateParameters
from .certificate_import_parameters import CertificateImportParameters
from .certificate_update_parameters import CertificateUpdateParameters
from .certificate_merge_parameters import CertificateMergeParameters
from .certificate_issuer_set_parameters import CertificateIssuerSetParameters
from .certificate_issuer_update_parameters import CertificateIssuerUpdateParameters
from .certificate_operation_update_parameter import CertificateOperationUpdateParameter
from .key_operation_result import KeyOperationResult
from .key_verify_result import KeyVerifyResult
from .backup_key_result import BackupKeyResult
from .backup_secret_result import BackupSecretResult
from .pending_certificate_signing_request_result import PendingCertificateSigningRequestResult
from .storage_account_attributes import StorageAccountAttributes
from .storage_bundle import StorageBundle
from .storage_account_create_parameters import StorageAccountCreateParameters
from .storage_account_update_parameters import StorageAccountUpdateParameters
from .storage_account_regenerte_key_parameters import StorageAccountRegenerteKeyParameters
from .storage_account_item import StorageAccountItem
from .sas_definition_attributes import SasDefinitionAttributes
from .sas_definition_bundle import SasDefinitionBundle
from .sas_definition_item import SasDefinitionItem
from .sas_definition_create_parameters import SasDefinitionCreateParameters
from .sas_definition_update_parameters import SasDefinitionUpdateParameters
from .key_vault_error import KeyVaultError, KeyVaultErrorException
try:
from .attributes_py3 import Attributes
from .json_web_key_py3 import JsonWebKey
from .key_attributes_py3 import KeyAttributes
from .key_bundle_py3 import KeyBundle
from .key_item_py3 import KeyItem
from .deleted_key_bundle_py3 import DeletedKeyBundle
from .deleted_key_item_py3 import DeletedKeyItem
from .secret_attributes_py3 import SecretAttributes
from .secret_bundle_py3 import SecretBundle
from .secret_item_py3 import SecretItem
from .deleted_secret_bundle_py3 import DeletedSecretBundle
from .deleted_secret_item_py3 import DeletedSecretItem
from .secret_restore_parameters_py3 import SecretRestoreParameters
from .certificate_attributes_py3 import CertificateAttributes
from .certificate_item_py3 import CertificateItem
from .certificate_issuer_item_py3 import CertificateIssuerItem
from .key_properties_py3 import KeyProperties
from .secret_properties_py3 import SecretProperties
from .subject_alternative_names_py3 import SubjectAlternativeNames
from .x509_certificate_properties_py3 import X509CertificateProperties
from .trigger_py3 import Trigger
from .action_py3 import Action
from .lifetime_action_py3 import LifetimeAction
from .issuer_parameters_py3 import IssuerParameters
from .certificate_policy_py3 import CertificatePolicy
from .certificate_bundle_py3 import CertificateBundle
from .deleted_certificate_bundle_py3 import DeletedCertificateBundle
from .deleted_certificate_item_py3 import DeletedCertificateItem
from .error_py3 import Error
from .certificate_operation_py3 import CertificateOperation
from .issuer_credentials_py3 import IssuerCredentials
from .administrator_details_py3 import AdministratorDetails
from .organization_details_py3 import OrganizationDetails
from .issuer_attributes_py3 import IssuerAttributes
from .issuer_bundle_py3 import IssuerBundle
from .contact_py3 import Contact
from .contacts_py3 import Contacts
from .key_create_parameters_py3 import KeyCreateParameters
from .key_import_parameters_py3 import KeyImportParameters
from .key_operations_parameters_py3 import KeyOperationsParameters
from .key_sign_parameters_py3 import KeySignParameters
from .key_verify_parameters_py3 import KeyVerifyParameters
from .key_update_parameters_py3 import KeyUpdateParameters
from .key_restore_parameters_py3 import KeyRestoreParameters
from .secret_set_parameters_py3 import SecretSetParameters
from .secret_update_parameters_py3 import SecretUpdateParameters
from .certificate_create_parameters_py3 import CertificateCreateParameters
from .certificate_import_parameters_py3 import CertificateImportParameters
from .certificate_update_parameters_py3 import CertificateUpdateParameters
from .certificate_merge_parameters_py3 import CertificateMergeParameters
from .certificate_issuer_set_parameters_py3 import CertificateIssuerSetParameters
from .certificate_issuer_update_parameters_py3 import CertificateIssuerUpdateParameters
from .certificate_operation_update_parameter_py3 import CertificateOperationUpdateParameter
from .key_operation_result_py3 import KeyOperationResult
from .key_verify_result_py3 import KeyVerifyResult
from .backup_key_result_py3 import BackupKeyResult
from .backup_secret_result_py3 import BackupSecretResult
from .pending_certificate_signing_request_result_py3 import PendingCertificateSigningRequestResult
from .storage_account_attributes_py3 import StorageAccountAttributes
from .storage_bundle_py3 import StorageBundle
from .storage_account_create_parameters_py3 import StorageAccountCreateParameters
from .storage_account_update_parameters_py3 import StorageAccountUpdateParameters
from .storage_account_regenerte_key_parameters_py3 import StorageAccountRegenerteKeyParameters
from .storage_account_item_py3 import StorageAccountItem
from .sas_definition_attributes_py3 import SasDefinitionAttributes
from .sas_definition_bundle_py3 import SasDefinitionBundle
from .sas_definition_item_py3 import SasDefinitionItem
from .sas_definition_create_parameters_py3 import SasDefinitionCreateParameters
from .sas_definition_update_parameters_py3 import SasDefinitionUpdateParameters
from .key_vault_error_py3 import KeyVaultError, KeyVaultErrorException
except (SyntaxError, ImportError):
from .attributes import Attributes
from .json_web_key import JsonWebKey
from .key_attributes import KeyAttributes
from .key_bundle import KeyBundle
from .key_item import KeyItem
from .deleted_key_bundle import DeletedKeyBundle
from .deleted_key_item import DeletedKeyItem
from .secret_attributes import SecretAttributes
from .secret_bundle import SecretBundle
from .secret_item import SecretItem
from .deleted_secret_bundle import DeletedSecretBundle
from .deleted_secret_item import DeletedSecretItem
from .secret_restore_parameters import SecretRestoreParameters
from .certificate_attributes import CertificateAttributes
from .certificate_item import CertificateItem
from .certificate_issuer_item import CertificateIssuerItem
from .key_properties import KeyProperties
from .secret_properties import SecretProperties
from .subject_alternative_names import SubjectAlternativeNames
from .x509_certificate_properties import X509CertificateProperties
from .trigger import Trigger
from .action import Action
from .lifetime_action import LifetimeAction
from .issuer_parameters import IssuerParameters
from .certificate_policy import CertificatePolicy
from .certificate_bundle import CertificateBundle
from .deleted_certificate_bundle import DeletedCertificateBundle
from .deleted_certificate_item import DeletedCertificateItem
from .error import Error
from .certificate_operation import CertificateOperation
from .issuer_credentials import IssuerCredentials
from .administrator_details import AdministratorDetails
from .organization_details import OrganizationDetails
from .issuer_attributes import IssuerAttributes
from .issuer_bundle import IssuerBundle
from .contact import Contact
from .contacts import Contacts
from .key_create_parameters import KeyCreateParameters
from .key_import_parameters import KeyImportParameters
from .key_operations_parameters import KeyOperationsParameters
from .key_sign_parameters import KeySignParameters
from .key_verify_parameters import KeyVerifyParameters
from .key_update_parameters import KeyUpdateParameters
from .key_restore_parameters import KeyRestoreParameters
from .secret_set_parameters import SecretSetParameters
from .secret_update_parameters import SecretUpdateParameters
from .certificate_create_parameters import CertificateCreateParameters
from .certificate_import_parameters import CertificateImportParameters
from .certificate_update_parameters import CertificateUpdateParameters
from .certificate_merge_parameters import CertificateMergeParameters
from .certificate_issuer_set_parameters import CertificateIssuerSetParameters
from .certificate_issuer_update_parameters import CertificateIssuerUpdateParameters
from .certificate_operation_update_parameter import CertificateOperationUpdateParameter
from .key_operation_result import KeyOperationResult
from .key_verify_result import KeyVerifyResult
from .backup_key_result import BackupKeyResult
from .backup_secret_result import BackupSecretResult
from .pending_certificate_signing_request_result import PendingCertificateSigningRequestResult
from .storage_account_attributes import StorageAccountAttributes
from .storage_bundle import StorageBundle
from .storage_account_create_parameters import StorageAccountCreateParameters
from .storage_account_update_parameters import StorageAccountUpdateParameters
from .storage_account_regenerte_key_parameters import StorageAccountRegenerteKeyParameters
from .storage_account_item import StorageAccountItem
from .sas_definition_attributes import SasDefinitionAttributes
from .sas_definition_bundle import SasDefinitionBundle
from .sas_definition_item import SasDefinitionItem
from .sas_definition_create_parameters import SasDefinitionCreateParameters
from .sas_definition_update_parameters import SasDefinitionUpdateParameters
from .key_vault_error import KeyVaultError, KeyVaultErrorException
from .key_item_paged import KeyItemPaged
from .deleted_key_item_paged import DeletedKeyItemPaged
from .secret_item_paged import SecretItemPaged
Expand Down
6 changes: 3 additions & 3 deletions azure-keyvault/azure/keyvault/models/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ class Action(Model):
'action_type': {'key': 'action_type', 'type': 'ActionType'},
}

def __init__(self, action_type=None):
super(Action, self).__init__()
self.action_type = action_type
def __init__(self, **kwargs):
super(Action, self).__init__(**kwargs)
self.action_type = kwargs.get('action_type', None)
29 changes: 29 additions & 0 deletions azure-keyvault/azure/keyvault/models/action_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Action(Model):
"""The action that will be executed.
:param action_type: The type of the action. Possible values include:
'EmailContacts', 'AutoRenew'
:type action_type: str or ~azure.keyvault.models.ActionType
"""

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

def __init__(self, *, action_type=None, **kwargs) -> None:
super(Action, self).__init__(**kwargs)
self.action_type = action_type
12 changes: 6 additions & 6 deletions azure-keyvault/azure/keyvault/models/administrator_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class AdministratorDetails(Model):
'phone': {'key': 'phone', 'type': 'str'},
}

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
self.phone = phone
def __init__(self, **kwargs):
super(AdministratorDetails, self).__init__(**kwargs)
self.first_name = kwargs.get('first_name', None)
self.last_name = kwargs.get('last_name', None)
self.email_address = kwargs.get('email_address', None)
self.phone = kwargs.get('phone', None)
40 changes: 40 additions & 0 deletions azure-keyvault/azure/keyvault/models/administrator_details_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AdministratorDetails(Model):
"""Details of the organization administrator of the certificate issuer.
:param first_name: First name.
:type first_name: str
:param last_name: Last name.
:type last_name: str
:param email_address: Email addresss.
:type email_address: str
:param phone: Phone number.
:type phone: str
"""

_attribute_map = {
'first_name': {'key': 'first_name', 'type': 'str'},
'last_name': {'key': 'last_name', 'type': 'str'},
'email_address': {'key': 'email', 'type': 'str'},
'phone': {'key': 'phone', 'type': 'str'},
}

def __init__(self, *, first_name: str=None, last_name: str=None, email_address: str=None, phone: str=None, **kwargs) -> None:
super(AdministratorDetails, self).__init__(**kwargs)
self.first_name = first_name
self.last_name = last_name
self.email_address = email_address
self.phone = phone
10 changes: 5 additions & 5 deletions azure-keyvault/azure/keyvault/models/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class Attributes(Model):
'updated': {'key': 'updated', 'type': 'unix-time'},
}

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
def __init__(self, **kwargs):
super(Attributes, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
self.not_before = kwargs.get('not_before', None)
self.expires = kwargs.get('expires', None)
self.created = None
self.updated = None
52 changes: 52 additions & 0 deletions azure-keyvault/azure/keyvault/models/attributes_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Attributes(Model):
"""The object attributes managed by the KeyVault service.
Variables are only populated by the server, and will be ignored when
sending a request.
:param enabled: Determines whether the object is enabled.
:type enabled: bool
:param not_before: Not before date in UTC.
:type not_before: datetime
:param expires: Expiry date in UTC.
:type expires: datetime
:ivar created: Creation time in UTC.
:vartype created: datetime
:ivar updated: Last updated time in UTC.
:vartype updated: datetime
"""

_validation = {
'created': {'readonly': True},
'updated': {'readonly': True},
}

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'not_before': {'key': 'nbf', 'type': 'unix-time'},
'expires': {'key': 'exp', 'type': 'unix-time'},
'created': {'key': 'created', 'type': 'unix-time'},
'updated': {'key': 'updated', 'type': 'unix-time'},
}

def __init__(self, *, enabled: bool=None, not_before=None, expires=None, **kwargs) -> None:
super(Attributes, self).__init__(**kwargs)
self.enabled = enabled
self.not_before = not_before
self.expires = expires
self.created = None
self.updated = None
4 changes: 2 additions & 2 deletions azure-keyvault/azure/keyvault/models/backup_key_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class BackupKeyResult(Model):
'value': {'key': 'value', 'type': 'base64'},
}

def __init__(self):
super(BackupKeyResult, self).__init__()
def __init__(self, **kwargs):
super(BackupKeyResult, self).__init__(**kwargs)
self.value = None
Loading

0 comments on commit 7d87a91

Please sign in to comment.