Class: Azure::ARM::Compute::Models::KeyVaultAndKeyReference

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb

Overview

Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#key_urlString

Returns Url pointing to a key or secret in KeyVault.

Returns:

  • (String)

    Url pointing to a key or secret in KeyVault



22
23
24
# File 'lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb', line 22

def key_url
  @key_url
end

#source_vaultSourceVault

secret

Returns:

  • (SourceVault)

    Resource id of the KeyVault containing the key or



19
20
21
# File 'lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb', line 19

def source_vault
  @source_vault
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb', line 29

def self.mapper()
  {
    required: false,
    serialized_name: 'KeyVaultAndKeyReference',
    type: {
      name: 'Composite',
      class_name: 'KeyVaultAndKeyReference',
      model_properties: {
        source_vault: {
          required: true,
          serialized_name: 'sourceVault',
          type: {
            name: 'Composite',
            class_name: 'SourceVault'
          }
        },
        key_url: {
          required: true,
          serialized_name: 'keyUrl',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end