class Azure::Appconfiguration::Mgmt::V2019_11_01_preview::Models::KeyValue

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

Attributes

content_type[RW]

@return [String] The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications.

e_tag[RW]

@return [String] An ETag indicating the state of a key-value within a configuration store.

key[RW]

@return [String] The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value.

label[RW]

@return [String] A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value.

last_modified[RW]

@return [DateTime] The last time a modifying operation was performed on the given key-value.

locked[RW]

@return [Boolean] A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked.

tags[RW]

@return [Hash{String => String}] A dictionary of tags that can help identify what a key-value may be applicable for.

value[RW]

@return [String] The value of the key-value.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-11-01-preview/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