azure_mgmt_storage 0.17.6 → 0.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  4. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  5. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  6. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  7. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  8. data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  9. data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  10. data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  11. data/lib/2018-11-01/generated/azure_mgmt_storage/blob_containers.rb +1721 -0
  12. data/lib/2018-11-01/generated/azure_mgmt_storage/blob_services.rb +266 -0
  13. data/lib/2018-11-01/generated/azure_mgmt_storage/management_policies.rb +355 -0
  14. data/lib/2018-11-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
  15. data/lib/2018-11-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
  16. data/lib/2018-11-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
  17. data/lib/2018-11-01/generated/azure_mgmt_storage/models/action.rb +15 -0
  18. data/lib/2018-11-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
  19. data/lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
  20. data/lib/2018-11-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +104 -0
  21. data/lib/2018-11-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
  22. data/lib/2018-11-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
  23. data/lib/2018-11-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
  24. data/lib/2018-11-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
  25. data/lib/2018-11-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
  26. data/lib/2018-11-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
  27. data/lib/2018-11-01/generated/azure_mgmt_storage/models/date_after_modification.rb +50 -0
  28. data/lib/2018-11-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
  29. data/lib/2018-11-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +64 -0
  30. data/lib/2018-11-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
  31. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption.rb +74 -0
  32. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
  33. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
  34. data/lib/2018-11-01/generated/azure_mgmt_storage/models/endpoints.rb +108 -0
  35. data/lib/2018-11-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
  36. data/lib/2018-11-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
  37. data/lib/2018-11-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
  38. data/lib/2018-11-01/generated/azure_mgmt_storage/models/identity.rb +72 -0
  39. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
  40. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
  41. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
  42. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
  43. data/lib/2018-11-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
  44. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
  45. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
  46. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
  47. data/lib/2018-11-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
  48. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
  49. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
  50. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
  51. data/lib/2018-11-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
  52. data/lib/2018-11-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
  53. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
  54. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
  55. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
  56. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
  57. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
  58. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_action.rb +62 -0
  59. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +73 -0
  60. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
  61. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +76 -0
  62. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
  63. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
  64. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +47 -0
  65. data/lib/2018-11-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
  66. data/lib/2018-11-01/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
  67. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
  68. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
  69. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
  70. data/lib/2018-11-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
  71. data/lib/2018-11-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
  72. data/lib/2018-11-01/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
  73. data/lib/2018-11-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
  74. data/lib/2018-11-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
  75. data/lib/2018-11-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
  76. data/lib/2018-11-01/generated/azure_mgmt_storage/models/resource.rb +83 -0
  77. data/lib/2018-11-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
  78. data/lib/2018-11-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
  79. data/lib/2018-11-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
  80. data/lib/2018-11-01/generated/azure_mgmt_storage/models/services.rb +18 -0
  81. data/lib/2018-11-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
  82. data/lib/2018-11-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
  83. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb +159 -0
  84. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku_name.rb +20 -0
  85. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
  86. data/lib/2018-11-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
  87. data/lib/2018-11-01/generated/azure_mgmt_storage/models/state.rb +19 -0
  88. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account.rb +375 -0
  89. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
  90. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +203 -0
  91. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +15 -0
  92. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
  93. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
  94. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
  95. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
  96. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +179 -0
  97. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
  98. data/lib/2018-11-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
  99. data/lib/2018-11-01/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
  100. data/lib/2018-11-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
  101. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
  102. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
  103. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
  104. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
  105. data/lib/2018-11-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
  106. data/lib/2018-11-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
  107. data/lib/2018-11-01/generated/azure_mgmt_storage/operations.rb +108 -0
  108. data/lib/2018-11-01/generated/azure_mgmt_storage/skus.rb +114 -0
  109. data/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb +1505 -0
  110. data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +155 -0
  111. data/lib/2018-11-01/generated/azure_mgmt_storage/usages.rb +118 -0
  112. data/lib/2018-11-01/generated/azure_mgmt_storage.rb +126 -0
  113. data/lib/azure_mgmt_storage.rb +1 -0
  114. data/lib/profiles/latest/modules/storage_profile_module.rb +250 -224
  115. data/lib/version.rb +1 -1
  116. metadata +104 -2
@@ -0,0 +1,89 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # The Get Storage Account ManagementPolicies operation response.
10
+ #
11
+ class ManagementPolicy < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] Returns the date and time the ManagementPolicies was
16
+ # last modified.
17
+ attr_accessor :last_modified_time
18
+
19
+ # @return [ManagementPolicySchema] The Storage Account ManagementPolicy,
20
+ # in JSON format. See more details in:
21
+ # https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
22
+ attr_accessor :policy
23
+
24
+
25
+ #
26
+ # Mapper for ManagementPolicy class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'ManagementPolicy',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ManagementPolicy',
37
+ model_properties: {
38
+ id: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ type: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ last_modified_time: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'properties.lastModifiedTime',
70
+ type: {
71
+ name: 'DateTime'
72
+ }
73
+ },
74
+ policy: {
75
+ client_side_validation: true,
76
+ required: true,
77
+ serialized_name: 'properties.policy',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'ManagementPolicySchema'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,62 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # Actions are applied to the filtered blobs when the execution condition is
10
+ # met.
11
+ #
12
+ class ManagementPolicyAction
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ManagementPolicyBaseBlob] The management policy action for
17
+ # base blob
18
+ attr_accessor :base_blob
19
+
20
+ # @return [ManagementPolicySnapShot] The management policy action for
21
+ # snapshot
22
+ attr_accessor :snapshot
23
+
24
+
25
+ #
26
+ # Mapper for ManagementPolicyAction class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'ManagementPolicyAction',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ManagementPolicyAction',
37
+ model_properties: {
38
+ base_blob: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'baseBlob',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ManagementPolicyBaseBlob'
45
+ }
46
+ },
47
+ snapshot: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'snapshot',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'ManagementPolicySnapShot'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # Management policy action for base blob.
10
+ #
11
+ class ManagementPolicyBaseBlob
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateAfterModification] The function to tier blobs to cool
16
+ # storage. Support blobs currently at Hot tier
17
+ attr_accessor :tier_to_cool
18
+
19
+ # @return [DateAfterModification] The function to tier blobs to archive
20
+ # storage. Support blobs currently at Hot or Cool tier
21
+ attr_accessor :tier_to_archive
22
+
23
+ # @return [DateAfterModification] The function to delete the blob
24
+ attr_accessor :delete
25
+
26
+
27
+ #
28
+ # Mapper for ManagementPolicyBaseBlob class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'ManagementPolicyBaseBlob',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ManagementPolicyBaseBlob',
39
+ model_properties: {
40
+ tier_to_cool: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'tierToCool',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'DateAfterModification'
47
+ }
48
+ },
49
+ tier_to_archive: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'tierToArchive',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'DateAfterModification'
56
+ }
57
+ },
58
+ delete: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'delete',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'DateAfterModification'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,60 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # An object that defines the Lifecycle rule. Each definition is made up
10
+ # with a filters set and an actions set.
11
+ #
12
+ class ManagementPolicyDefinition
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ManagementPolicyAction] An object that defines the action set.
17
+ attr_accessor :actions
18
+
19
+ # @return [ManagementPolicyFilter] An object that defines the filter set.
20
+ attr_accessor :filters
21
+
22
+
23
+ #
24
+ # Mapper for ManagementPolicyDefinition class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ManagementPolicyDefinition',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ManagementPolicyDefinition',
35
+ model_properties: {
36
+ actions: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'actions',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ManagementPolicyAction'
43
+ }
44
+ },
45
+ filters: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'filters',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'ManagementPolicyFilter'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,76 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # Filters limit rule actions to a subset of blobs within the storage
10
+ # account. If multiple filters are defined, a logical AND is performed on
11
+ # all filters.
12
+ #
13
+ class ManagementPolicyFilter
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Array<String>] An array of strings for prefixes to be match.
18
+ attr_accessor :prefix_match
19
+
20
+ # @return [Array<String>] An array of predefined enum values. Only
21
+ # blockBlob is supported.
22
+ attr_accessor :blob_types
23
+
24
+
25
+ #
26
+ # Mapper for ManagementPolicyFilter class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'ManagementPolicyFilter',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ManagementPolicyFilter',
37
+ model_properties: {
38
+ prefix_match: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'prefixMatch',
42
+ type: {
43
+ name: 'Sequence',
44
+ element: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'StringElementType',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ blob_types: {
55
+ client_side_validation: true,
56
+ required: true,
57
+ serialized_name: 'blobTypes',
58
+ type: {
59
+ name: 'Sequence',
60
+ element: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'StringElementType',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,87 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # An object that wraps the Lifecycle rule. Each rule is uniquely defined by
10
+ # name.
11
+ #
12
+ class ManagementPolicyRule
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Boolean] Rule is enabled if set to true.
17
+ attr_accessor :enabled
18
+
19
+ # @return [String] A rule name can contain any combination of alpha
20
+ # numeric characters. Rule name is case-sensitive. It must be unique
21
+ # within a policy.
22
+ attr_accessor :name
23
+
24
+ # @return [String] The valid value is Lifecycle. Default value:
25
+ # 'Lifecycle' .
26
+ attr_accessor :type
27
+
28
+ # @return [ManagementPolicyDefinition] An object that defines the
29
+ # Lifecycle rule.
30
+ attr_accessor :definition
31
+
32
+
33
+ #
34
+ # Mapper for ManagementPolicyRule class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ManagementPolicyRule',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ManagementPolicyRule',
45
+ model_properties: {
46
+ enabled: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'enabled',
50
+ type: {
51
+ name: 'Boolean'
52
+ }
53
+ },
54
+ name: {
55
+ client_side_validation: true,
56
+ required: true,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ type: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ is_constant: true,
66
+ serialized_name: 'type',
67
+ default_value: 'Lifecycle',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ definition: {
73
+ client_side_validation: true,
74
+ required: true,
75
+ serialized_name: 'definition',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'ManagementPolicyDefinition'
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # The Storage Account ManagementPolicies Rules. See more details in:
10
+ # https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
11
+ #
12
+ class ManagementPolicySchema
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<ManagementPolicyRule>] The Storage Account
17
+ # ManagementPolicies Rules. See more details in:
18
+ # https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
19
+ attr_accessor :rules
20
+
21
+
22
+ #
23
+ # Mapper for ManagementPolicySchema class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ManagementPolicySchema',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ManagementPolicySchema',
34
+ model_properties: {
35
+ rules: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'rules',
39
+ type: {
40
+ name: 'Sequence',
41
+ element: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ManagementPolicyRuleElementType',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'ManagementPolicyRule'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # Management policy action for snapshot.
10
+ #
11
+ class ManagementPolicySnapShot
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateAfterCreation] The function to delete the blob snapshot
16
+ attr_accessor :delete
17
+
18
+
19
+ #
20
+ # Mapper for ManagementPolicySnapShot class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ManagementPolicySnapShot',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ManagementPolicySnapShot',
31
+ model_properties: {
32
+ delete: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'delete',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'DateAfterCreation'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,145 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Storage::Mgmt::V2018_11_01
7
+ module Models
8
+ #
9
+ # Metric specification of operation.
10
+ #
11
+ class MetricSpecification
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of metric specification.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Display name of metric specification.
19
+ attr_accessor :display_name
20
+
21
+ # @return [String] Display description of metric specification.
22
+ attr_accessor :display_description
23
+
24
+ # @return [String] Unit could be Bytes or Count.
25
+ attr_accessor :unit
26
+
27
+ # @return [Array<Dimension>] Dimensions of blobs, including blob type and
28
+ # access tier.
29
+ attr_accessor :dimensions
30
+
31
+ # @return [String] Aggregation type could be Average.
32
+ attr_accessor :aggregation_type
33
+
34
+ # @return [Boolean] The property to decide fill gap with zero or not.
35
+ attr_accessor :fill_gap_with_zero
36
+
37
+ # @return [String] The category this metric specification belong to,
38
+ # could be Capacity.
39
+ attr_accessor :category
40
+
41
+ # @return [String] Account Resource Id.
42
+ attr_accessor :resource_id_dimension_name_override
43
+
44
+
45
+ #
46
+ # Mapper for MetricSpecification class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'MetricSpecification',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'MetricSpecification',
57
+ model_properties: {
58
+ name: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'name',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ display_name: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'displayName',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ display_description: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'displayDescription',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ unit: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'unit',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ dimensions: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'dimensions',
94
+ type: {
95
+ name: 'Sequence',
96
+ element: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'DimensionElementType',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'Dimension'
103
+ }
104
+ }
105
+ }
106
+ },
107
+ aggregation_type: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'aggregationType',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ fill_gap_with_zero: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ serialized_name: 'fillGapWithZero',
119
+ type: {
120
+ name: 'Boolean'
121
+ }
122
+ },
123
+ category: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'category',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ resource_id_dimension_name_override: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'resourceIdDimensionNameOverride',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end