Class: Azure::Storage::Mgmt::V2018_02_01::Models::BlobContainer
- Inherits:
-
AzureEntityResource
- Object
- Resource
- AzureEntityResource
- Azure::Storage::Mgmt::V2018_02_01::Models::BlobContainer
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-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
-
#has_immutability_policy ⇒ Boolean
true by SRP if ImmutabilityPolicy has been created for this container.
-
#has_legal_hold ⇒ Boolean
SRP if there are at least one existing tag.
-
#immutability_policy ⇒ ImmutabilityPolicyProperties
of the container.
-
#last_modified_time ⇒ DateTime
modified.
-
#lease_duration ⇒ LeaseDuration
of infinite or fixed duration, only when the container is leased.
-
#lease_state ⇒ LeaseState
include: ‘Available’, ‘Leased’, ‘Expired’, ‘Breaking’, ‘Broken’.
-
#lease_status ⇒ LeaseStatus
values include: ‘Locked’, ‘Unlocked’.
-
#legal_hold ⇒ LegalHoldProperties
The LegalHold property of the container.
-
#metadata ⇒ Hash{String => String}
the container as metadata.
-
#public_access ⇒ PublicAccess
accessed publicly and the level of access.
Attributes inherited from AzureEntityResource
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BlobContainer class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#has_immutability_policy ⇒ Boolean
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.
60 61 62 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 60 def has_immutability_policy @has_immutability_policy end |
#has_legal_hold ⇒ Boolean
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.
54 55 56 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 54 def has_legal_hold @has_legal_hold end |
#immutability_policy ⇒ ImmutabilityPolicyProperties
of the container.
44 45 46 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 44 def immutability_policy @immutability_policy end |
#last_modified_time ⇒ DateTime
modified.
23 24 25 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 23 def last_modified_time @last_modified_time end |
#lease_duration ⇒ LeaseDuration
of infinite or fixed duration, only when the container is leased. Possible values include: ‘Infinite’, ‘Fixed’
36 37 38 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 36 def lease_duration @lease_duration end |
#lease_state ⇒ LeaseState
include: ‘Available’, ‘Leased’, ‘Expired’, ‘Breaking’, ‘Broken’
31 32 33 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 31 def lease_state @lease_state end |
#lease_status ⇒ LeaseStatus
values include: ‘Locked’, ‘Unlocked’
27 28 29 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 27 def lease_status @lease_status end |
#legal_hold ⇒ LegalHoldProperties
Returns The LegalHold property of the container.
47 48 49 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 47 def legal_hold @legal_hold end |
#metadata ⇒ Hash{String => String}
the container as metadata.
40 41 42 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 40 def @metadata end |
#public_access ⇒ PublicAccess
accessed publicly and the level of access. Possible values include: ‘Container’, ‘Blob’, ‘None’
19 20 21 |
# File 'lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb', line 19 def public_access @public_access end |
Class Method Details
.mapper ⇒ Object
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-02-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 |