Class: Azure::KeyVault::V2015_06_01::Models::SecretBundle

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#attributesSecretAttributes

Returns The secret management attributes.

Returns:



25
26
27
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 25

def attributes
  @attributes
end

#content_typeString

Returns The content type of the secret.

Returns:

  • (String)

    The content type of the secret



22
23
24
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 22

def content_type
  @content_type
end

#idString

Returns The secret id.

Returns:

  • (String)

    The secret id



19
20
21
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 19

def id
  @id
end

#kidString

this field specifies the corresponding key backing the KV certificate.

Returns:

  • (String)

    If this is a secret backing a KV certificate, then



33
34
35
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 33

def kid
  @kid
end

#managedBoolean

i.e. if this is a secret backing a certificate, then managed will be true.

Returns:

  • (Boolean)

    True if the secret’s lifetime is managed by key vault



38
39
40
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 38

def managed
  @managed
end

#tagsHash{String => String}

form of key-value pairs

Returns:

  • (Hash{String => String})

    Application-specific metadata in the



29
30
31
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 29

def tags
  @tags
end

#valueString

Returns The secret value.

Returns:

  • (String)

    The secret value



16
17
18
# File 'lib/2015-06-01/generated/azure_key_vault/models/secret_bundle.rb', line 16

def value
  @value
end

Class Method Details

.mapperObject

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



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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# 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