Class: Azure::Compute::Mgmt::V2019_03_01::Models::VaultCertificate
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::VaultCertificate
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/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
-
#certificate_store ⇒ String
the Virtual Machine to which the certificate should be added.
-
#certificate_url ⇒ String
uploaded to Key Vault as a secret.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for VaultCertificate class as Ruby Hash.
Instance Attribute Details
#certificate_store ⇒ String
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 <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.
34 35 36 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb', line 34 def certificate_store @certificate_store end |
#certificate_url ⇒ String
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>”
24 25 26 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb', line 24 def certificate_url @certificate_url end |
Class Method Details
.mapper ⇒ Object
Mapper for VaultCertificate class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb', line 41 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'VaultCertificate', type: { name: 'Composite', class_name: 'VaultCertificate', model_properties: { certificate_url: { client_side_validation: true, required: false, serialized_name: 'certificateUrl', type: { name: 'String' } }, certificate_store: { client_side_validation: true, required: false, serialized_name: 'certificateStore', type: { name: 'String' } } } } } end |