Class: Azure::Storage::Mgmt::V2018_11_01::Models::BlobContainer

Inherits:
AzureEntityResource show all
Includes:
MsRestAzure
Defined in:
lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb

Overview

Properties of the blob container, including Id, resource name, resource type, Etag.

Instance Attribute Summary collapse

Attributes inherited from AzureEntityResource

#etag

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#has_immutability_policyBoolean

true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.

Returns:

  • (Boolean)

    The hasImmutabilityPolicy public property is set to



60
61
62
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 60

def has_immutability_policy
  @has_immutability_policy
end

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



54
55
56
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 54

def has_legal_hold
  @has_legal_hold
end

#immutability_policyImmutabilityPolicyProperties

of the container.

Returns:



44
45
46
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 44

def immutability_policy
  @immutability_policy
end

#last_modified_timeDateTime

modified.

Returns:

  • (DateTime)

    Returns the date and time the container was last



23
24
25
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 23

def last_modified_time
  @last_modified_time
end

#lease_durationLeaseDuration

of infinite or fixed duration, only when the container is leased. Possible values include: ‘Infinite’, ‘Fixed’

Returns:

  • (LeaseDuration)

    Specifies whether the lease on a container is



36
37
38
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 36

def lease_duration
  @lease_duration
end

#lease_stateLeaseState

include: ‘Available’, ‘Leased’, ‘Expired’, ‘Breaking’, ‘Broken’

Returns:

  • (LeaseState)

    Lease state of the container. Possible values



31
32
33
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 31

def lease_state
  @lease_state
end

#lease_statusLeaseStatus

values include: ‘Locked’, ‘Unlocked’

Returns:

  • (LeaseStatus)

    The lease status of the container. Possible



27
28
29
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 27

def lease_status
  @lease_status
end

Returns The LegalHold property of the container.

Returns:



47
48
49
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 47

def legal_hold
  @legal_hold
end

#metadataHash{String => String}

the container as metadata.

Returns:

  • (Hash{String => String})

    A name-value pair to associate with



40
41
42
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 40

def 
  @metadata
end

#public_accessPublicAccess

accessed publicly and the level of access. Possible values include: ‘Container’, ‘Blob’, ‘None’

Returns:

  • (PublicAccess)

    Specifies whether data in the container may be



19
20
21
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 19

def public_access
  @public_access
end

Class Method Details

.mapperObject

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



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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb', line 67

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BlobContainer',
    type: {
      name: 'Composite',
      class_name: 'BlobContainer',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        public_access: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.publicAccess',
          type: {
            name: 'Enum',
            module: 'PublicAccess'
          }
        },
        last_modified_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastModifiedTime',
          type: {
            name: 'DateTime'
          }
        },
        lease_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.leaseStatus',
          type: {
            name: 'String'
          }
        },
        lease_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.leaseState',
          type: {
            name: 'String'
          }
        },
        lease_duration: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.leaseDuration',
          type: {
            name: 'String'
          }
        },
        metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.metadata',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        immutability_policy: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.immutabilityPolicy',
          type: {
            name: 'Composite',
            class_name: 'ImmutabilityPolicyProperties'
          }
        },
        legal_hold: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.legalHold',
          type: {
            name: 'Composite',
            class_name: 'LegalHoldProperties'
          }
        },
        has_legal_hold: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.hasLegalHold',
          type: {
            name: 'Boolean'
          }
        },
        has_immutability_policy: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.hasImmutabilityPolicy',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end