azure_mgmt_storage 0.19.2 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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/storage_management_client.rb +1 -1
- 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/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage.rb +63 -45
- data/lib/2019-06-01/generated/azure_mgmt_storage/encryption_scopes.rb +691 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/file_shares.rb +156 -14
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_container.rb +24 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_restore_range.rb +4 -2
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +25 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/deleted_share.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/enabled_protocols.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb +51 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_list_result.rb +103 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_source.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_state.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share_item.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/get_share_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy.rb +17 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +17 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +25 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_container_item.rb +24 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_shares_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +21 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policies.rb +56 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb +131 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb +70 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb +82 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb +13 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/root_squash_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/share_access_tier.rb +18 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/tag_filter.rb +80 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb +495 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +10 -1
- data/lib/azure_mgmt_storage.rb +10 -10
- data/lib/profiles/latest/modules/storage_profile_module.rb +223 -155
- data/lib/version.rb +1 -1
- metadata +22 -4
@@ -25,6 +25,48 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
25
25
|
# Shares, the maximum size is 102400.
|
26
26
|
attr_accessor :share_quota
|
27
27
|
|
28
|
+
# @return [EnabledProtocols] The authentication protocol that is used for
|
29
|
+
# the file share. Can only be specified when creating a share. Possible
|
30
|
+
# values include: 'SMB', 'NFS'
|
31
|
+
attr_accessor :enabled_protocols
|
32
|
+
|
33
|
+
# @return [RootSquashType] The property is for NFS share only. The
|
34
|
+
# default is NoRootSquash. Possible values include: 'NoRootSquash',
|
35
|
+
# 'RootSquash', 'AllSquash'
|
36
|
+
attr_accessor :root_squash
|
37
|
+
|
38
|
+
# @return [String] The version of the share.
|
39
|
+
attr_accessor :version
|
40
|
+
|
41
|
+
# @return [Boolean] Indicates whether the share was deleted.
|
42
|
+
attr_accessor :deleted
|
43
|
+
|
44
|
+
# @return [DateTime] The deleted time if the share was deleted.
|
45
|
+
attr_accessor :deleted_time
|
46
|
+
|
47
|
+
# @return [Integer] Remaining retention days for share that was soft
|
48
|
+
# deleted.
|
49
|
+
attr_accessor :remaining_retention_days
|
50
|
+
|
51
|
+
# @return [ShareAccessTier] Access tier for specific share. GpV2 account
|
52
|
+
# can choose between TransactionOptimized (default), Hot, and Cool.
|
53
|
+
# FileStorage account can choose Premium. Possible values include:
|
54
|
+
# 'TransactionOptimized', 'Hot', 'Cool', 'Premium'
|
55
|
+
attr_accessor :access_tier
|
56
|
+
|
57
|
+
# @return [DateTime] Indicates the last modification time for share
|
58
|
+
# access tier.
|
59
|
+
attr_accessor :access_tier_change_time
|
60
|
+
|
61
|
+
# @return [String] Indicates if there is a pending transition for access
|
62
|
+
# tier.
|
63
|
+
attr_accessor :access_tier_status
|
64
|
+
|
65
|
+
# @return [Integer] The approximate size of the data stored on the share.
|
66
|
+
# Note that this value may not include all recently created or recently
|
67
|
+
# resized files.
|
68
|
+
attr_accessor :share_usage_bytes
|
69
|
+
|
28
70
|
|
29
71
|
#
|
30
72
|
# Mapper for FileShareItem class as Ruby Hash.
|
@@ -111,6 +153,93 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
111
153
|
type: {
|
112
154
|
name: 'Number'
|
113
155
|
}
|
156
|
+
},
|
157
|
+
enabled_protocols: {
|
158
|
+
client_side_validation: true,
|
159
|
+
required: false,
|
160
|
+
serialized_name: 'properties.enabledProtocols',
|
161
|
+
type: {
|
162
|
+
name: 'String'
|
163
|
+
}
|
164
|
+
},
|
165
|
+
root_squash: {
|
166
|
+
client_side_validation: true,
|
167
|
+
required: false,
|
168
|
+
serialized_name: 'properties.rootSquash',
|
169
|
+
type: {
|
170
|
+
name: 'String'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
version: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
read_only: true,
|
177
|
+
serialized_name: 'properties.version',
|
178
|
+
type: {
|
179
|
+
name: 'String'
|
180
|
+
}
|
181
|
+
},
|
182
|
+
deleted: {
|
183
|
+
client_side_validation: true,
|
184
|
+
required: false,
|
185
|
+
read_only: true,
|
186
|
+
serialized_name: 'properties.deleted',
|
187
|
+
type: {
|
188
|
+
name: 'Boolean'
|
189
|
+
}
|
190
|
+
},
|
191
|
+
deleted_time: {
|
192
|
+
client_side_validation: true,
|
193
|
+
required: false,
|
194
|
+
read_only: true,
|
195
|
+
serialized_name: 'properties.deletedTime',
|
196
|
+
type: {
|
197
|
+
name: 'DateTime'
|
198
|
+
}
|
199
|
+
},
|
200
|
+
remaining_retention_days: {
|
201
|
+
client_side_validation: true,
|
202
|
+
required: false,
|
203
|
+
read_only: true,
|
204
|
+
serialized_name: 'properties.remainingRetentionDays',
|
205
|
+
type: {
|
206
|
+
name: 'Number'
|
207
|
+
}
|
208
|
+
},
|
209
|
+
access_tier: {
|
210
|
+
client_side_validation: true,
|
211
|
+
required: false,
|
212
|
+
serialized_name: 'properties.accessTier',
|
213
|
+
type: {
|
214
|
+
name: 'String'
|
215
|
+
}
|
216
|
+
},
|
217
|
+
access_tier_change_time: {
|
218
|
+
client_side_validation: true,
|
219
|
+
required: false,
|
220
|
+
read_only: true,
|
221
|
+
serialized_name: 'properties.accessTierChangeTime',
|
222
|
+
type: {
|
223
|
+
name: 'DateTime'
|
224
|
+
}
|
225
|
+
},
|
226
|
+
access_tier_status: {
|
227
|
+
client_side_validation: true,
|
228
|
+
required: false,
|
229
|
+
read_only: true,
|
230
|
+
serialized_name: 'properties.accessTierStatus',
|
231
|
+
type: {
|
232
|
+
name: 'String'
|
233
|
+
}
|
234
|
+
},
|
235
|
+
share_usage_bytes: {
|
236
|
+
client_side_validation: true,
|
237
|
+
required: false,
|
238
|
+
read_only: true,
|
239
|
+
serialized_name: 'properties.shareUsageBytes',
|
240
|
+
type: {
|
241
|
+
name: 'Number'
|
242
|
+
}
|
114
243
|
}
|
115
244
|
}
|
116
245
|
}
|
@@ -0,0 +1,15 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for GetShareExpand
|
10
|
+
#
|
11
|
+
module GetShareExpand
|
12
|
+
Stats = "stats"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -22,6 +22,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
22
22
|
# values include: 'Locked', 'Unlocked'
|
23
23
|
attr_accessor :state
|
24
24
|
|
25
|
+
# @return [Boolean] This property can only be changed for unlocked
|
26
|
+
# time-based retention policies. When enabled, new blocks can be written
|
27
|
+
# to an append blob while maintaining immutability protection and
|
28
|
+
# compliance. Only new blocks can be added and any existing blocks cannot
|
29
|
+
# be modified or deleted. This property cannot be changed with
|
30
|
+
# ExtendImmutabilityPolicy API
|
31
|
+
attr_accessor :allow_protected_append_writes
|
32
|
+
|
25
33
|
|
26
34
|
#
|
27
35
|
# Mapper for ImmutabilityPolicy class as Ruby Hash.
|
@@ -74,7 +82,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
74
82
|
},
|
75
83
|
immutability_period_since_creation_in_days: {
|
76
84
|
client_side_validation: true,
|
77
|
-
required:
|
85
|
+
required: false,
|
78
86
|
serialized_name: 'properties.immutabilityPeriodSinceCreationInDays',
|
79
87
|
type: {
|
80
88
|
name: 'Number'
|
@@ -88,6 +96,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
88
96
|
type: {
|
89
97
|
name: 'String'
|
90
98
|
}
|
99
|
+
},
|
100
|
+
allow_protected_append_writes: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.allowProtectedAppendWrites',
|
104
|
+
type: {
|
105
|
+
name: 'Boolean'
|
106
|
+
}
|
91
107
|
}
|
92
108
|
}
|
93
109
|
}
|
@@ -21,6 +21,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
21
21
|
# values include: 'Locked', 'Unlocked'
|
22
22
|
attr_accessor :state
|
23
23
|
|
24
|
+
# @return [Boolean] This property can only be changed for unlocked
|
25
|
+
# time-based retention policies. When enabled, new blocks can be written
|
26
|
+
# to an append blob while maintaining immutability protection and
|
27
|
+
# compliance. Only new blocks can be added and any existing blocks cannot
|
28
|
+
# be modified or deleted. This property cannot be changed with
|
29
|
+
# ExtendImmutabilityPolicy API
|
30
|
+
attr_accessor :allow_protected_append_writes
|
31
|
+
|
24
32
|
# @return [String] ImmutabilityPolicy Etag.
|
25
33
|
attr_accessor :etag
|
26
34
|
|
@@ -44,7 +52,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
44
52
|
model_properties: {
|
45
53
|
immutability_period_since_creation_in_days: {
|
46
54
|
client_side_validation: true,
|
47
|
-
required:
|
55
|
+
required: false,
|
48
56
|
serialized_name: 'properties.immutabilityPeriodSinceCreationInDays',
|
49
57
|
type: {
|
50
58
|
name: 'Number'
|
@@ -59,6 +67,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
59
67
|
name: 'String'
|
60
68
|
}
|
61
69
|
},
|
70
|
+
allow_protected_append_writes: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'properties.allowProtectedAppendWrites',
|
74
|
+
type: {
|
75
|
+
name: 'Boolean'
|
76
|
+
}
|
77
|
+
},
|
62
78
|
etag: {
|
63
79
|
client_side_validation: true,
|
64
80
|
required: false,
|
@@ -21,6 +21,13 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
21
21
|
# @return [String] The Uri of KeyVault.
|
22
22
|
attr_accessor :key_vault_uri
|
23
23
|
|
24
|
+
# @return [String] The object identifier of the current versioned Key
|
25
|
+
# Vault Key in use.
|
26
|
+
attr_accessor :current_versioned_key_identifier
|
27
|
+
|
28
|
+
# @return [DateTime] Timestamp of last rotation of the Key Vault Key.
|
29
|
+
attr_accessor :last_key_rotation_timestamp
|
30
|
+
|
24
31
|
|
25
32
|
#
|
26
33
|
# Mapper for KeyVaultProperties class as Ruby Hash.
|
@@ -58,6 +65,24 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
58
65
|
type: {
|
59
66
|
name: 'String'
|
60
67
|
}
|
68
|
+
},
|
69
|
+
current_versioned_key_identifier: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'currentVersionedKeyIdentifier',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
last_key_rotation_timestamp: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'lastKeyRotationTimestamp',
|
83
|
+
type: {
|
84
|
+
name: 'DateTime'
|
85
|
+
}
|
61
86
|
}
|
62
87
|
}
|
63
88
|
}
|
@@ -12,6 +12,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
# @return [String] Default the container to use specified encryption
|
16
|
+
# scope for all writes.
|
17
|
+
attr_accessor :default_encryption_scope
|
18
|
+
|
19
|
+
# @return [Boolean] Block override of encryption scope from the container
|
20
|
+
# default.
|
21
|
+
attr_accessor :deny_encryption_scope_override
|
22
|
+
|
15
23
|
# @return [PublicAccess] Specifies whether data in the container may be
|
16
24
|
# accessed publicly and the level of access. Possible values include:
|
17
25
|
# 'Container', 'Blob', 'None'
|
@@ -108,6 +116,22 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
108
116
|
name: 'String'
|
109
117
|
}
|
110
118
|
},
|
119
|
+
default_encryption_scope: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.defaultEncryptionScope',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
deny_encryption_scope_override: {
|
128
|
+
client_side_validation: true,
|
129
|
+
required: false,
|
130
|
+
serialized_name: 'properties.denyEncryptionScopeOverride',
|
131
|
+
type: {
|
132
|
+
name: 'Boolean'
|
133
|
+
}
|
134
|
+
},
|
111
135
|
public_access: {
|
112
136
|
client_side_validation: true,
|
113
137
|
required: false,
|
@@ -0,0 +1,15 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ListSharesExpand
|
10
|
+
#
|
11
|
+
module ListSharesExpand
|
12
|
+
Deleted = "deleted"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -21,6 +21,10 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
21
21
|
# blockBlob is supported.
|
22
22
|
attr_accessor :blob_types
|
23
23
|
|
24
|
+
# @return [Array<TagFilter>] An array of blob index tag based filters,
|
25
|
+
# there can be at most 10 tag filters
|
26
|
+
attr_accessor :blob_index_match
|
27
|
+
|
24
28
|
|
25
29
|
#
|
26
30
|
# Mapper for ManagementPolicyFilter class as Ruby Hash.
|
@@ -66,6 +70,23 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
66
70
|
}
|
67
71
|
}
|
68
72
|
}
|
73
|
+
},
|
74
|
+
blob_index_match: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'blobIndexMatch',
|
78
|
+
type: {
|
79
|
+
name: 'Sequence',
|
80
|
+
element: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'TagFilterElementType',
|
84
|
+
type: {
|
85
|
+
name: 'Composite',
|
86
|
+
class_name: 'TagFilter'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
69
90
|
}
|
70
91
|
}
|
71
92
|
}
|
@@ -0,0 +1,56 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List storage account object replication policies.
|
10
|
+
#
|
11
|
+
class ObjectReplicationPolicies
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ObjectReplicationPolicy>] The replication policy between
|
16
|
+
# two storage accounts.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ObjectReplicationPolicies class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ObjectReplicationPolicies',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ObjectReplicationPolicies',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ObjectReplicationPolicyElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ObjectReplicationPolicy'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,131 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The replication policy between two storage accounts. Multiple rules can
|
10
|
+
# be defined in one policy.
|
11
|
+
#
|
12
|
+
class ObjectReplicationPolicy < Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] A unique id for object replication policy.
|
17
|
+
attr_accessor :policy_id
|
18
|
+
|
19
|
+
# @return [DateTime] Indicates when the policy is enabled on the source
|
20
|
+
# account.
|
21
|
+
attr_accessor :enabled_time
|
22
|
+
|
23
|
+
# @return [String] Required. Source account name.
|
24
|
+
attr_accessor :source_account
|
25
|
+
|
26
|
+
# @return [String] Required. Destination account name.
|
27
|
+
attr_accessor :destination_account
|
28
|
+
|
29
|
+
# @return [Array<ObjectReplicationPolicyRule>] The storage account object
|
30
|
+
# replication rules.
|
31
|
+
attr_accessor :rules
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for ObjectReplicationPolicy class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ObjectReplicationPolicy',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ObjectReplicationPolicy',
|
46
|
+
model_properties: {
|
47
|
+
id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'id',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
name: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'name',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
type: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
read_only: true,
|
69
|
+
serialized_name: 'type',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
policy_id: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
read_only: true,
|
78
|
+
serialized_name: 'properties.policyId',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
enabled_time: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
read_only: true,
|
87
|
+
serialized_name: 'properties.enabledTime',
|
88
|
+
type: {
|
89
|
+
name: 'DateTime'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
source_account: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: true,
|
95
|
+
serialized_name: 'properties.sourceAccount',
|
96
|
+
type: {
|
97
|
+
name: 'String'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
destination_account: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: true,
|
103
|
+
serialized_name: 'properties.destinationAccount',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
rules: {
|
109
|
+
client_side_validation: true,
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'properties.rules',
|
112
|
+
type: {
|
113
|
+
name: 'Sequence',
|
114
|
+
element: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'ObjectReplicationPolicyRuleElementType',
|
118
|
+
type: {
|
119
|
+
name: 'Composite',
|
120
|
+
class_name: 'ObjectReplicationPolicyRule'
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|