class Azure::Storage::Mgmt::V2018_02_01::Models::LegalHold

The LegalHold property of a blob container.

Attributes

tags[RW]

@return [Array<String>] Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb, line 30
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LegalHold',
    type: {
      name: 'Composite',
      class_name: 'LegalHold',
      model_properties: {
        has_legal_hold: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'hasLegalHold',
          type: {
            name: 'Boolean'
          }
        },
        tags: {
          client_side_validation: true,
          required: true,
          serialized_name: 'tags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end