Class: Azure::Storage::Mgmt::V2021_01_01::Models::BlobInventoryPolicySchema
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2021_01_01::Models::BlobInventoryPolicySchema
- Includes:
- MsRestAzure
- Defined in:
- lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb
Overview
The storage account blob inventory policy rules.
Instance Attribute Summary collapse
-
#destination ⇒ String
Must be pre-created.
-
#enabled ⇒ Boolean
Policy is enabled if set to true.
-
#rules ⇒ Array<BlobInventoryPolicyRule>
inventory policy rules.
-
#type ⇒ String
‘Inventory’ .
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BlobInventoryPolicySchema class as Ruby Hash.
Instance Attribute Details
#destination ⇒ String
Must be pre-created.
20 21 22 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb', line 20 def destination @destination end |
#enabled ⇒ Boolean
Returns Policy is enabled if set to true.
16 17 18 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb', line 16 def enabled @enabled end |
#rules ⇒ Array<BlobInventoryPolicyRule>
inventory policy rules. The rule is applied when it is enabled.
28 29 30 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb', line 28 def rules @rules end |
#type ⇒ String
‘Inventory’ .
24 25 26 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb', line 24 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for BlobInventoryPolicySchema class as Ruby Hash. This will be used for serialization/deserialization.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_inventory_policy_schema.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BlobInventoryPolicySchema', type: { name: 'Composite', class_name: 'BlobInventoryPolicySchema', model_properties: { enabled: { client_side_validation: true, required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, destination: { client_side_validation: true, required: true, serialized_name: 'destination', type: { name: 'String' } }, type: { client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', default_value: 'Inventory', type: { name: 'String' } }, rules: { client_side_validation: true, required: true, serialized_name: 'rules', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'BlobInventoryPolicyRuleElementType', type: { name: 'Composite', class_name: 'BlobInventoryPolicyRule' } } } } } } } end |