Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::KeyAndSecretDetails

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb

Overview

BEK is bitlocker key. KEK is encryption key for BEK If the VM was encrypted then we will store follwing details :

  1. Secret(BEK) - Url + Backup Data + vaultId.

  2. Key(KEK) - Url + Backup Data + vaultId.

  3. EncryptionMechanism

BEK and KEK can potentiallty have different vault ids.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bek_detailsBEKDetails



29
30
31
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb', line 29

def bek_details
  @bek_details
end

#encryption_mechanismString



32
33
34
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb', line 32

def encryption_mechanism
  @encryption_mechanism
end

#kek_detailsKEKDetails



26
27
28
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb', line 26

def kek_details
  @kek_details
end

Class Method Details

.mapperObject

Mapper for KeyAndSecretDetails class as Ruby Hash. This will be used for serialization/deserialization.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'KeyAndSecretDetails',
    type: {
      name: 'Composite',
      class_name: 'KeyAndSecretDetails',
      model_properties: {
        kek_details: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kekDetails',
          type: {
            name: 'Composite',
            class_name: 'KEKDetails'
          }
        },
        bek_details: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bekDetails',
          type: {
            name: 'Composite',
            class_name: 'BEKDetails'
          }
        },
        encryption_mechanism: {
          client_side_validation: true,
          required: false,
          serialized_name: 'encryptionMechanism',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end