Class: Azure::Storage::Mgmt::V2018_07_01::Models::LegalHoldProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_storage/models/legal_hold_properties.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/2018-07-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb', line 20

def has_legal_hold
  @has_legal_hold
end

#tagsArray<TagProperty>

container.

Returns:

  • (Array<TagProperty>)

    The list of LegalHold tags of a blob



24
25
26
# File 'lib/2018-07-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb', line 24

def tags
  @tags
end

Class Method Details

.mapperObject

Mapper for LegalHoldProperties 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
69
# File 'lib/2018-07-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LegalHoldProperties',
    type: {
      name: 'Composite',
      class_name: 'LegalHoldProperties',
      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: false,
          serialized_name: 'tags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TagPropertyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TagProperty'
                }
            }
          }
        }
      }
    }
  }
end