Class: Azure::Storage::Mgmt::V2021_01_01::Models::ManagementPolicyVersion

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb

Overview

Management policy action for blob version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#deleteDateAfterCreation

Returns The function to delete the blob version.

Returns:



24
25
26
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb', line 24

def delete
  @delete
end

#tier_to_archiveDateAfterCreation

archive storage. Support blob version currently at Hot or Cool tier

Returns:



21
22
23
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb', line 21

def tier_to_archive
  @tier_to_archive
end

#tier_to_coolDateAfterCreation

storage. Support blob version currently at Hot tier

Returns:



17
18
19
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb', line 17

def tier_to_cool
  @tier_to_cool
end

Class Method Details

.mapperObject

Mapper for ManagementPolicyVersion 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
70
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_version.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagementPolicyVersion',
    type: {
      name: 'Composite',
      class_name: 'ManagementPolicyVersion',
      model_properties: {
        tier_to_cool: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tierToCool',
          type: {
            name: 'Composite',
            class_name: 'DateAfterCreation'
          }
        },
        tier_to_archive: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tierToArchive',
          type: {
            name: 'Composite',
            class_name: 'DateAfterCreation'
          }
        },
        delete: {
          client_side_validation: true,
          required: false,
          serialized_name: 'delete',
          type: {
            name: 'Composite',
            class_name: 'DateAfterCreation'
          }
        }
      }
    }
  }
end