Class: Azure::ARM::Compute::Models::VaultCertificate

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

Overview

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#certificate_storeString

the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.
For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbpring>.prv for private key. Both of these files are .pem formatted.

Returns:

  • (String)

    For Windows VMs, specifies the certificate store on



35
36
37
# File 'lib/generated/azure_mgmt_compute/models/vault_certificate.rb', line 35

def certificate_store
  @certificate_store
end

#certificate_urlString

uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
“data”:“<Base64-encoded-certificate>”,
“dataType”:“pfx”,
“password”:“<pfx-file-password>”

Returns:

  • (String)

    This is the URL of a certificate that has been



25
26
27
# File 'lib/generated/azure_mgmt_compute/models/vault_certificate.rb', line 25

def certificate_url
  @certificate_url
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_compute/models/vault_certificate.rb', line 42

def self.mapper()
  {
    required: false,
    serialized_name: 'VaultCertificate',
    type: {
      name: 'Composite',
      class_name: 'VaultCertificate',
      model_properties: {
        certificate_url: {
          required: false,
          serialized_name: 'certificateUrl',
          type: {
            name: 'String'
          }
        },
        certificate_store: {
          required: false,
          serialized_name: 'certificateStore',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end