azure_mgmt_storage 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_storage.gemspec +4 -5
  3. data/lib/azure_mgmt_storage.rb +3 -57
  4. data/lib/generated/azure_mgmt_storage.rb +56 -0
  5. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/access_tier.rb +0 -0
  6. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/account_status.rb +0 -0
  7. data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +73 -0
  8. data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +57 -0
  9. data/lib/generated/azure_mgmt_storage/models/encryption.rb +59 -0
  10. data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +60 -0
  11. data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +45 -0
  12. data/lib/generated/azure_mgmt_storage/models/endpoints.rb +79 -0
  13. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/key_permission.rb +0 -0
  14. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/kind.rb +0 -0
  15. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/provisioning_state.rb +0 -0
  16. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/reason.rb +0 -0
  17. data/lib/generated/azure_mgmt_storage/models/sku.rb +61 -0
  18. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_name.rb +0 -0
  19. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_tier.rb +0 -0
  20. data/lib/generated/azure_mgmt_storage/models/storage_account.rb +269 -0
  21. data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +57 -0
  22. data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +134 -0
  23. data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +69 -0
  24. data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +54 -0
  25. data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +54 -0
  26. data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +44 -0
  27. data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +108 -0
  28. data/lib/generated/azure_mgmt_storage/models/usage.rb +84 -0
  29. data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +52 -0
  30. data/lib/generated/azure_mgmt_storage/models/usage_name.rb +56 -0
  31. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/usage_unit.rb +0 -0
  32. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/module_definition.rb +0 -0
  33. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_accounts.rb +81 -66
  34. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_management_client.rb +4 -4
  35. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/usage_operations.rb +4 -4
  36. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/version.rb +1 -1
  37. metadata +54 -77
  38. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +0 -82
  39. data/lib/azure_mgmt_storage/models/custom_domain.rb +0 -68
  40. data/lib/azure_mgmt_storage/models/encryption.rb +0 -73
  41. data/lib/azure_mgmt_storage/models/encryption_service.rb +0 -72
  42. data/lib/azure_mgmt_storage/models/encryption_services.rb +0 -62
  43. data/lib/azure_mgmt_storage/models/endpoints.rb +0 -84
  44. data/lib/azure_mgmt_storage/models/sku.rb +0 -77
  45. data/lib/azure_mgmt_storage/models/storage_account.rb +0 -122
  46. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +0 -67
  47. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +0 -122
  48. data/lib/azure_mgmt_storage/models/storage_account_key.rb +0 -78
  49. data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +0 -77
  50. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +0 -77
  51. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +0 -227
  52. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +0 -100
  53. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +0 -98
  54. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +0 -56
  55. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +0 -94
  56. data/lib/azure_mgmt_storage/models/usage.rb +0 -99
  57. data/lib/azure_mgmt_storage/models/usage_list_result.rb +0 -76
  58. data/lib/azure_mgmt_storage/models/usage_name.rb +0 -65
@@ -1,122 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Storage
7
- module Models
8
- #
9
- # The parameters to provide for the account.
10
- #
11
- class StorageAccountCreateParameters
12
-
13
- include MsRestAzure
14
-
15
- # @return [Sku] Required. Gets or sets the sku type.
16
- attr_accessor :sku
17
-
18
- # @return [Kind] Required. Indicates the type of storage account.
19
- # Possible values include: 'Storage', 'BlobStorage'
20
- attr_accessor :kind
21
-
22
- # @return [String] Required. Gets or sets the location of the resource.
23
- # This will be one of the supported and registered Azure Geo Regions
24
- # (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
25
- # resource cannot be changed once it is created, but if an identical
26
- # geo region is specified on update the request will succeed.
27
- attr_accessor :location
28
-
29
- # @return [Hash{String => String}] Gets or sets a list of key value
30
- # pairs that describe the resource. These tags can be used in viewing
31
- # and grouping this resource (across resource groups). A maximum of 15
32
- # tags can be provided for a resource. Each tag must have a key no
33
- # greater than 128 characters and value no greater than 256 characters.
34
- attr_accessor :tags
35
-
36
- # @return [StorageAccountPropertiesCreateParameters]
37
- attr_accessor :properties
38
-
39
- #
40
- # Validate the object. Throws ValidationError if validation fails.
41
- #
42
- def validate
43
- fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
44
- fail MsRest::ValidationError, 'property kind is nil' if @kind.nil?
45
- fail MsRest::ValidationError, 'property location is nil' if @location.nil?
46
- @sku.validate unless @sku.nil?
47
- @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
48
- @properties.validate unless @properties.nil?
49
- end
50
-
51
- #
52
- # Serializes given Model object into Ruby Hash.
53
- # @param object Model object to serialize.
54
- # @return [Hash] Serialized object in form of Ruby Hash.
55
- #
56
- def self.serialize_object(object)
57
- object.validate
58
- output_object = {}
59
-
60
- serialized_property = object.sku
61
- unless serialized_property.nil?
62
- serialized_property = Sku.serialize_object(serialized_property)
63
- end
64
- output_object['sku'] = serialized_property unless serialized_property.nil?
65
-
66
- serialized_property = object.kind
67
- output_object['kind'] = serialized_property unless serialized_property.nil?
68
-
69
- serialized_property = object.location
70
- output_object['location'] = serialized_property unless serialized_property.nil?
71
-
72
- serialized_property = object.tags
73
- output_object['tags'] = serialized_property unless serialized_property.nil?
74
-
75
- serialized_property = object.properties
76
- unless serialized_property.nil?
77
- serialized_property = StorageAccountPropertiesCreateParameters.serialize_object(serialized_property)
78
- end
79
- output_object['properties'] = serialized_property unless serialized_property.nil?
80
-
81
- output_object
82
- end
83
-
84
- #
85
- # Deserializes given Ruby Hash into Model object.
86
- # @param object [Hash] Ruby Hash object to deserialize.
87
- # @return [StorageAccountCreateParameters] Deserialized object.
88
- #
89
- def self.deserialize_object(object)
90
- return if object.nil?
91
- output_object = StorageAccountCreateParameters.new
92
-
93
- deserialized_property = object['sku']
94
- unless deserialized_property.nil?
95
- deserialized_property = Sku.deserialize_object(deserialized_property)
96
- end
97
- output_object.sku = deserialized_property
98
-
99
- deserialized_property = object['kind']
100
- if (!deserialized_property.nil? && !deserialized_property.empty?)
101
- enum_is_valid = Kind.constants.any? { |e| Kind.const_get(e).to_s.downcase == deserialized_property.downcase }
102
- warn 'Enum Kind does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
103
- end
104
- output_object.kind = deserialized_property
105
-
106
- deserialized_property = object['location']
107
- output_object.location = deserialized_property
108
-
109
- deserialized_property = object['tags']
110
- output_object.tags = deserialized_property
111
-
112
- deserialized_property = object['properties']
113
- unless deserialized_property.nil?
114
- deserialized_property = StorageAccountPropertiesCreateParameters.deserialize_object(deserialized_property)
115
- end
116
- output_object.properties = deserialized_property
117
-
118
- output_object
119
- end
120
- end
121
- end
122
- end
@@ -1,78 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Storage
7
- module Models
8
- #
9
- # An access key for the storage account.
10
- #
11
- class StorageAccountKey
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Name of the key.
16
- attr_accessor :key_name
17
-
18
- # @return [String] Base 64 encoded value of the key.
19
- attr_accessor :value
20
-
21
- # @return [KeyPermission] Permissions for the key. Possible values
22
- # include: 'READ', 'FULL'
23
- attr_accessor :permissions
24
-
25
- #
26
- # Validate the object. Throws ValidationError if validation fails.
27
- #
28
- def validate
29
- end
30
-
31
- #
32
- # Serializes given Model object into Ruby Hash.
33
- # @param object Model object to serialize.
34
- # @return [Hash] Serialized object in form of Ruby Hash.
35
- #
36
- def self.serialize_object(object)
37
- object.validate
38
- output_object = {}
39
-
40
- serialized_property = object.key_name
41
- output_object['keyName'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.value
44
- output_object['value'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.permissions
47
- output_object['permissions'] = serialized_property unless serialized_property.nil?
48
-
49
- output_object
50
- end
51
-
52
- #
53
- # Deserializes given Ruby Hash into Model object.
54
- # @param object [Hash] Ruby Hash object to deserialize.
55
- # @return [StorageAccountKey] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = StorageAccountKey.new
60
-
61
- deserialized_property = object['keyName']
62
- output_object.key_name = deserialized_property
63
-
64
- deserialized_property = object['value']
65
- output_object.value = deserialized_property
66
-
67
- deserialized_property = object['permissions']
68
- if (!deserialized_property.nil? && !deserialized_property.empty?)
69
- enum_is_valid = KeyPermission.constants.any? { |e| KeyPermission.const_get(e).to_s.downcase == deserialized_property.downcase }
70
- warn 'Enum KeyPermission does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
71
- end
72
- output_object.permissions = deserialized_property
73
-
74
- output_object
75
- end
76
- end
77
- end
78
- end
@@ -1,77 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Storage
7
- module Models
8
- #
9
- # The ListKeys operation response.
10
- #
11
- class StorageAccountListKeysResult
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<StorageAccountKey>] Gets the list of account keys and
16
- # their properties.
17
- attr_accessor :keys
18
-
19
- #
20
- # Validate the object. Throws ValidationError if validation fails.
21
- #
22
- def validate
23
- @keys.each{ |e| e.validate if e.respond_to?(:validate) } unless @keys.nil?
24
- end
25
-
26
- #
27
- # Serializes given Model object into Ruby Hash.
28
- # @param object Model object to serialize.
29
- # @return [Hash] Serialized object in form of Ruby Hash.
30
- #
31
- def self.serialize_object(object)
32
- object.validate
33
- output_object = {}
34
-
35
- serialized_property = object.keys
36
- unless serialized_property.nil?
37
- serializedArray = []
38
- serialized_property.each do |element|
39
- unless element.nil?
40
- element = StorageAccountKey.serialize_object(element)
41
- end
42
- serializedArray.push(element)
43
- end
44
- serialized_property = serializedArray
45
- end
46
- output_object['keys'] = serialized_property unless serialized_property.nil?
47
-
48
- output_object
49
- end
50
-
51
- #
52
- # Deserializes given Ruby Hash into Model object.
53
- # @param object [Hash] Ruby Hash object to deserialize.
54
- # @return [StorageAccountListKeysResult] Deserialized object.
55
- #
56
- def self.deserialize_object(object)
57
- return if object.nil?
58
- output_object = StorageAccountListKeysResult.new
59
-
60
- deserialized_property = object['keys']
61
- unless deserialized_property.nil?
62
- deserialized_array = []
63
- deserialized_property.each do |element1|
64
- unless element1.nil?
65
- element1 = StorageAccountKey.deserialize_object(element1)
66
- end
67
- deserialized_array.push(element1)
68
- end
69
- deserialized_property = deserialized_array
70
- end
71
- output_object.keys = deserialized_property
72
-
73
- output_object
74
- end
75
- end
76
- end
77
- end
@@ -1,77 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Storage
7
- module Models
8
- #
9
- # The list storage accounts operation response.
10
- #
11
- class StorageAccountListResult
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<StorageAccount>] Gets the list of storage accounts and
16
- # their properties.
17
- attr_accessor :value
18
-
19
- #
20
- # Validate the object. Throws ValidationError if validation fails.
21
- #
22
- def validate
23
- @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
24
- end
25
-
26
- #
27
- # Serializes given Model object into Ruby Hash.
28
- # @param object Model object to serialize.
29
- # @return [Hash] Serialized object in form of Ruby Hash.
30
- #
31
- def self.serialize_object(object)
32
- object.validate
33
- output_object = {}
34
-
35
- serialized_property = object.value
36
- unless serialized_property.nil?
37
- serializedArray = []
38
- serialized_property.each do |element|
39
- unless element.nil?
40
- element = StorageAccount.serialize_object(element)
41
- end
42
- serializedArray.push(element)
43
- end
44
- serialized_property = serializedArray
45
- end
46
- output_object['value'] = serialized_property unless serialized_property.nil?
47
-
48
- output_object
49
- end
50
-
51
- #
52
- # Deserializes given Ruby Hash into Model object.
53
- # @param object [Hash] Ruby Hash object to deserialize.
54
- # @return [StorageAccountListResult] Deserialized object.
55
- #
56
- def self.deserialize_object(object)
57
- return if object.nil?
58
- output_object = StorageAccountListResult.new
59
-
60
- deserialized_property = object['value']
61
- unless deserialized_property.nil?
62
- deserialized_array = []
63
- deserialized_property.each do |element1|
64
- unless element1.nil?
65
- element1 = StorageAccount.deserialize_object(element1)
66
- end
67
- deserialized_array.push(element1)
68
- end
69
- deserialized_property = deserialized_array
70
- end
71
- output_object.value = deserialized_property
72
-
73
- output_object
74
- end
75
- end
76
- end
77
- end
@@ -1,227 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Storage
7
- module Models
8
- #
9
- # Model object.
10
- #
11
- class StorageAccountProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [ProvisioningState] Gets the status of the storage account at
16
- # the time the operation was called. Possible values include:
17
- # 'Creating', 'ResolvingDNS', 'Succeeded'
18
- attr_accessor :provisioning_state
19
-
20
- # @return [Endpoints] Gets the URLs that are used to perform a retrieval
21
- # of a public blob, queue or table object.Note that StandardZRS and
22
- # PremiumLRS accounts only return the blob endpoint.
23
- attr_accessor :primary_endpoints
24
-
25
- # @return [String] Gets the location of the primary for the storage
26
- # account.
27
- attr_accessor :primary_location
28
-
29
- # @return [AccountStatus] Gets the status indicating whether the primary
30
- # location of the storage account is available or unavailable. Possible
31
- # values include: 'Available', 'Unavailable'
32
- attr_accessor :status_of_primary
33
-
34
- # @return [DateTime] Gets the timestamp of the most recent instance of a
35
- # failover to the secondary location. Only the most recent timestamp is
36
- # retained. This element is not returned if there has never been a
37
- # failover instance. Only available if the accountType is StandardGRS
38
- # or StandardRAGRS.
39
- attr_accessor :last_geo_failover_time
40
-
41
- # @return [String] Gets the location of the geo replicated secondary for
42
- # the storage account. Only available if the accountType is StandardGRS
43
- # or StandardRAGRS.
44
- attr_accessor :secondary_location
45
-
46
- # @return [AccountStatus] Gets the status indicating whether the
47
- # secondary location of the storage account is available or
48
- # unavailable. Only available if the accountType is StandardGRS or
49
- # StandardRAGRS. Possible values include: 'Available', 'Unavailable'
50
- attr_accessor :status_of_secondary
51
-
52
- # @return [DateTime] Gets the creation date and time of the storage
53
- # account in UTC.
54
- attr_accessor :creation_time
55
-
56
- # @return [CustomDomain] Gets the user assigned custom domain assigned
57
- # to this storage account.
58
- attr_accessor :custom_domain
59
-
60
- # @return [Endpoints] Gets the URLs that are used to perform a retrieval
61
- # of a public blob, queue or table object from the secondary location
62
- # of the storage account. Only available if the accountType is
63
- # StandardRAGRS.
64
- attr_accessor :secondary_endpoints
65
-
66
- # @return [Encryption] Gets the encryption settings on the account. If
67
- # unspecified the account is unencrypted.
68
- attr_accessor :encryption
69
-
70
- # @return [AccessTier] The access tier used for billing. Access tier
71
- # cannot be changed more than once every 7 days (168 hours). Access
72
- # tier cannot be set for StandardLRS, StandardGRS, StandardRAGRS, or
73
- # PremiumLRS account types. Possible values include: 'Hot', 'Cool'
74
- attr_accessor :access_tier
75
-
76
- #
77
- # Validate the object. Throws ValidationError if validation fails.
78
- #
79
- def validate
80
- @primary_endpoints.validate unless @primary_endpoints.nil?
81
- @custom_domain.validate unless @custom_domain.nil?
82
- @secondary_endpoints.validate unless @secondary_endpoints.nil?
83
- @encryption.validate unless @encryption.nil?
84
- end
85
-
86
- #
87
- # Serializes given Model object into Ruby Hash.
88
- # @param object Model object to serialize.
89
- # @return [Hash] Serialized object in form of Ruby Hash.
90
- #
91
- def self.serialize_object(object)
92
- object.validate
93
- output_object = {}
94
-
95
- serialized_property = object.provisioning_state
96
- output_object['provisioningState'] = serialized_property unless serialized_property.nil?
97
-
98
- serialized_property = object.primary_endpoints
99
- unless serialized_property.nil?
100
- serialized_property = Endpoints.serialize_object(serialized_property)
101
- end
102
- output_object['primaryEndpoints'] = serialized_property unless serialized_property.nil?
103
-
104
- serialized_property = object.primary_location
105
- output_object['primaryLocation'] = serialized_property unless serialized_property.nil?
106
-
107
- serialized_property = object.status_of_primary
108
- output_object['statusOfPrimary'] = serialized_property unless serialized_property.nil?
109
-
110
- serialized_property = object.last_geo_failover_time
111
- serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
112
- output_object['lastGeoFailoverTime'] = serialized_property unless serialized_property.nil?
113
-
114
- serialized_property = object.secondary_location
115
- output_object['secondaryLocation'] = serialized_property unless serialized_property.nil?
116
-
117
- serialized_property = object.status_of_secondary
118
- output_object['statusOfSecondary'] = serialized_property unless serialized_property.nil?
119
-
120
- serialized_property = object.creation_time
121
- serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
122
- output_object['creationTime'] = serialized_property unless serialized_property.nil?
123
-
124
- serialized_property = object.custom_domain
125
- unless serialized_property.nil?
126
- serialized_property = CustomDomain.serialize_object(serialized_property)
127
- end
128
- output_object['customDomain'] = serialized_property unless serialized_property.nil?
129
-
130
- serialized_property = object.secondary_endpoints
131
- unless serialized_property.nil?
132
- serialized_property = Endpoints.serialize_object(serialized_property)
133
- end
134
- output_object['secondaryEndpoints'] = serialized_property unless serialized_property.nil?
135
-
136
- serialized_property = object.encryption
137
- unless serialized_property.nil?
138
- serialized_property = Encryption.serialize_object(serialized_property)
139
- end
140
- output_object['encryption'] = serialized_property unless serialized_property.nil?
141
-
142
- serialized_property = object.access_tier
143
- output_object['accessTier'] = serialized_property unless serialized_property.nil?
144
-
145
- output_object
146
- end
147
-
148
- #
149
- # Deserializes given Ruby Hash into Model object.
150
- # @param object [Hash] Ruby Hash object to deserialize.
151
- # @return [StorageAccountProperties] Deserialized object.
152
- #
153
- def self.deserialize_object(object)
154
- return if object.nil?
155
- output_object = StorageAccountProperties.new
156
-
157
- deserialized_property = object['provisioningState']
158
- if (!deserialized_property.nil? && !deserialized_property.empty?)
159
- enum_is_valid = ProvisioningState.constants.any? { |e| ProvisioningState.const_get(e).to_s.downcase == deserialized_property.downcase }
160
- warn 'Enum ProvisioningState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
161
- end
162
- output_object.provisioning_state = deserialized_property
163
-
164
- deserialized_property = object['primaryEndpoints']
165
- unless deserialized_property.nil?
166
- deserialized_property = Endpoints.deserialize_object(deserialized_property)
167
- end
168
- output_object.primary_endpoints = deserialized_property
169
-
170
- deserialized_property = object['primaryLocation']
171
- output_object.primary_location = deserialized_property
172
-
173
- deserialized_property = object['statusOfPrimary']
174
- if (!deserialized_property.nil? && !deserialized_property.empty?)
175
- enum_is_valid = AccountStatus.constants.any? { |e| AccountStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
176
- warn 'Enum AccountStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
177
- end
178
- output_object.status_of_primary = deserialized_property
179
-
180
- deserialized_property = object['lastGeoFailoverTime']
181
- deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
182
- output_object.last_geo_failover_time = deserialized_property
183
-
184
- deserialized_property = object['secondaryLocation']
185
- output_object.secondary_location = deserialized_property
186
-
187
- deserialized_property = object['statusOfSecondary']
188
- if (!deserialized_property.nil? && !deserialized_property.empty?)
189
- enum_is_valid = AccountStatus.constants.any? { |e| AccountStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
190
- warn 'Enum AccountStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
191
- end
192
- output_object.status_of_secondary = deserialized_property
193
-
194
- deserialized_property = object['creationTime']
195
- deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
196
- output_object.creation_time = deserialized_property
197
-
198
- deserialized_property = object['customDomain']
199
- unless deserialized_property.nil?
200
- deserialized_property = CustomDomain.deserialize_object(deserialized_property)
201
- end
202
- output_object.custom_domain = deserialized_property
203
-
204
- deserialized_property = object['secondaryEndpoints']
205
- unless deserialized_property.nil?
206
- deserialized_property = Endpoints.deserialize_object(deserialized_property)
207
- end
208
- output_object.secondary_endpoints = deserialized_property
209
-
210
- deserialized_property = object['encryption']
211
- unless deserialized_property.nil?
212
- deserialized_property = Encryption.deserialize_object(deserialized_property)
213
- end
214
- output_object.encryption = deserialized_property
215
-
216
- deserialized_property = object['accessTier']
217
- if (!deserialized_property.nil? && !deserialized_property.empty?)
218
- enum_is_valid = AccessTier.constants.any? { |e| AccessTier.const_get(e).to_s.downcase == deserialized_property.downcase }
219
- warn 'Enum AccessTier does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
220
- end
221
- output_object.access_tier = deserialized_property
222
-
223
- output_object
224
- end
225
- end
226
- end
227
- end