Class: Azure::Storage::Mgmt::V2021_01_01::Models::LastAccessTimeTrackingPolicy

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

Overview

The blob service properties for Last access time based tracking policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blob_typeArray<String>

Only blockBlob is the supported value. This field is currently read only

Returns:

  • (Array<String>)

    An array of predefined supported blob types.



32
33
34
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/last_access_time_tracking_policy.rb', line 32

def blob_type
  @blob_type
end

#enableBoolean

enabled.

Returns:

  • (Boolean)

    When set to true last access time based tracking is



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

def enable
  @enable
end

#nameName

AccessTimeTracking. This field is currently read only. Possible values include: ‘AccessTimeTracking’

Returns:

  • (Name)

    Name of the policy. The valid value is



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

def name
  @name
end

#tracking_granularity_in_daysInteger

in days, typically how often the blob object should be tracked.This field is currently read only with value as 1

Returns:

  • (Integer)

    The field specifies blob object tracking granularity



27
28
29
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/last_access_time_tracking_policy.rb', line 27

def tracking_granularity_in_days
  @tracking_granularity_in_days
end

Class Method Details

.mapperObject

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



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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/last_access_time_tracking_policy.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LastAccessTimeTrackingPolicy',
    type: {
      name: 'Composite',
      class_name: 'LastAccessTimeTrackingPolicy',
      model_properties: {
        enable: {
          client_side_validation: true,
          required: true,
          serialized_name: 'enable',
          type: {
            name: 'Boolean'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        tracking_granularity_in_days: {
          client_side_validation: true,
          required: false,
          serialized_name: 'trackingGranularityInDays',
          type: {
            name: 'Number'
          }
        },
        blob_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'blobType',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end