class Azure::KeyVault::V2015_06_01::Models::SecretBundle

A Secret consisting of a value, id and its attributes.

Attributes

attributes[RW]

@return [SecretAttributes] The secret management attributes

content_type[RW]

@return [String] The content type of the secret

id[RW]

@return [String] The secret id

kid[RW]

@return [String] If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate.

managed[RW]

@return [Boolean] True if the secret's lifetime is managed by key vault i.e. if this is a secret backing a certificate, then managed will be true.

tags[RW]

@return [Hash{String => String}] Application-specific metadata in the form of key-value pairs

value[RW]

@return [String] The secret value

Public Class Methods

mapper() click to toggle source

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

# File lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb, line 45
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SecretBundle',
    type: {
      name: 'Composite',
      class_name: 'SecretBundle',
      model_properties: {
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        content_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contentType',
          type: {
            name: 'String'
          }
        },
        attributes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'attributes',
          type: {
            name: 'Composite',
            class_name: 'SecretAttributes'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        kid: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kid',
          type: {
            name: 'String'
          }
        },
        managed: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'managed',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end