Class: Azure::Storage::Mgmt::V2019_06_01::Models::LegalHold

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01/generated/azure_mgmt_storage/models/legal_hold.rb

Overview

The LegalHold property of a blob container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.

Returns:

  • (Boolean)

    The hasLegalHold public property is set to true by



20
21
22
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/legal_hold.rb', line 20

def has_legal_hold
  @has_legal_hold
end

#tagsArray<String>

characters and is normalized to lower case at SRP.

Returns:

  • (Array<String>)

    Each tag should be 3 to 23 alphanumeric



24
25
26
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/legal_hold.rb', line 24

def tags
  @tags
end

Class Method Details

.mapperObject

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



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/legal_hold.rb', line 31

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