Class: Azure::Appconfiguration::Mgmt::V2020_06_01::Models::KeyValue

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb

Overview

The result of a request to retrieve a key-value from the specified configuration store.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_typeString

Providing a proper content-type can enable transformations of values when they are retrieved by applications.

Returns:

  • (String)

    The content type of the key-value’s value.



32
33
34
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 32

def content_type
  @content_type
end

#e_tagString

configuration store.

Returns:

  • (String)

    An ETag indicating the state of a key-value within a



36
37
38
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 36

def e_tag
  @e_tag
end

#keyString

The key is used in unison with the label to uniquely identify a key-value.

Returns:

  • (String)

    The primary identifier of a key-value.



19
20
21
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 19

def key
  @key
end

#labelString

The label is used in unison with the key to uniquely identify a key-value.

Returns:

  • (String)

    A value used to group key-values.



24
25
26
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 24

def label
  @label
end

#last_modifiedDateTime

the given key-value.

Returns:

  • (DateTime)

    The last time a modifying operation was performed on



40
41
42
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 40

def last_modified
  @last_modified
end

#lockedBoolean

A locked key-value may not be modified until it is unlocked.

Returns:

  • (Boolean)

    A value indicating whether the key-value is locked.



44
45
46
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 44

def locked
  @locked
end

#tagsHash{String => String}

identify what a key-value may be applicable for.

Returns:

  • (Hash{String => String})

    A dictionary of tags that can help



48
49
50
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 48

def tags
  @tags
end

#valueString

Returns The value of the key-value.

Returns:

  • (String)

    The value of the key-value.



27
28
29
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 27

def value
  @value
end

Class Method Details

.mapperObject

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



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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/key_value.rb', line 55

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'KeyValue',
    type: {
      name: 'Composite',
      class_name: 'KeyValue',
      model_properties: {
        key: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'key',
          type: {
            name: 'String'
          }
        },
        label: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        content_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'contentType',
          type: {
            name: 'String'
          }
        },
        e_tag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'eTag',
          type: {
            name: 'String'
          }
        },
        last_modified: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModified',
          type: {
            name: 'DateTime'
          }
        },
        locked: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'locked',
          type: {
            name: 'Boolean'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end