azure_mgmt_storage 0.17.8 → 0.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_storage.rb +25 -23
- data/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage.rb +24 -22
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_storage.rb +27 -25
- data/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage.rb +31 -29
- data/lib/2018-11-01/generated/azure_mgmt_storage/blob_containers.rb +153 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_containers.rb +1873 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_services.rb +266 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/management_policies.rb +355 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +115 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +64 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption.rb +74 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/endpoints.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/identity.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_action.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +76 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/resource.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku.rb +157 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_name.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +374 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +202 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +178 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/operations.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/skus.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_accounts.rb +1602 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +155 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/usages.rb +118 -0
- data/lib/azure_mgmt_storage.rb +1 -0
- data/lib/profiles/latest/modules/storage_profile_module.rb +232 -224
- data/lib/version.rb +1 -1
- metadata +115 -3
@@ -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::V2019_04_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::V2019_04_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::V2019_04_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::V2019_04_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::V2019_04_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::V2019_04_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::V2019_04_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
|