azure_mgmt_storage 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_storage.gemspec +3 -8
  3. data/lib/azure_mgmt_storage.rb +3 -8
  4. data/lib/azure_mgmt_storage/models/account_status.rb +1 -1
  5. data/lib/azure_mgmt_storage/models/account_type.rb +1 -1
  6. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +3 -6
  7. data/lib/azure_mgmt_storage/models/custom_domain.rb +2 -4
  8. data/lib/azure_mgmt_storage/models/endpoints.rb +9 -2
  9. data/lib/azure_mgmt_storage/models/provisioning_state.rb +1 -1
  10. data/lib/azure_mgmt_storage/models/reason.rb +1 -1
  11. data/lib/azure_mgmt_storage/models/storage_account.rb +7 -9
  12. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +2 -4
  13. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +10 -22
  14. data/lib/azure_mgmt_storage/models/storage_account_keys.rb +1 -3
  15. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +4 -16
  16. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +11 -14
  17. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +5 -6
  18. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +4 -7
  19. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +3 -9
  20. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +6 -28
  21. data/lib/azure_mgmt_storage/models/usage.rb +9 -7
  22. data/lib/azure_mgmt_storage/models/usage_list_result.rb +4 -6
  23. data/lib/azure_mgmt_storage/models/usage_name.rb +1 -3
  24. data/lib/azure_mgmt_storage/models/usage_unit.rb +1 -1
  25. data/lib/azure_mgmt_storage/module_definition.rb +5 -3
  26. data/lib/azure_mgmt_storage/storage_accounts.rb +187 -591
  27. data/lib/azure_mgmt_storage/storage_management_client.rb +14 -7
  28. data/lib/azure_mgmt_storage/usage_operations.rb +20 -45
  29. data/lib/azure_mgmt_storage/version.rb +5 -3
  30. metadata +7 -87
  31. data/.gitignore +0 -10
  32. data/.travis.yml +0 -3
  33. data/Gemfile +0 -15
  34. data/lib/azure_mgmt_storage/models/key_name.rb +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a17b3e4a240a4c2d87bbe2e18fc996bd72b84b1d
4
- data.tar.gz: 8025bf535447f6c47f0ed356a8758eaca46d8b89
3
+ metadata.gz: 0b5d2762ab61763d32a74d654ce34ccde34d62db
4
+ data.tar.gz: bb2d81909d2f3cbcb22a27a13763c9e703d79504
5
5
  SHA512:
6
- metadata.gz: d2bcd27997548bf51d5a509cc3ee900e3044397b278cac8ea57ff7a06e76abd95596bcb751fb5b3f3f677a6ecca574d0a4d85e4f6b56009c7c4dc3232c619de0
7
- data.tar.gz: 8019546e9a4613702d231040e7c1d75fbeecba5babdd8a48c7a7b4a2e3e451ed6edb107967b4933772aa4fda90065358d61c68e866783809d223ae967ede4024
6
+ metadata.gz: 6e18be00e0f43e9302168222807f7406c1028fb928e1200299a13a8ff6cd3698cdeb700dd6b5db2e2f7926a852efc6e8528b7d752ff8bcdac847911c0bf4d927
7
+ data.tar.gz: d1a1644ca30b5cf718f6156b1d1630fbd9754ca6be77bebb8e7f24b9f94f8485907944a735ab248dda59c1b6448b6a3db97fd8d1ddb1c684464f6d221fc536d9
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.name = 'azure_mgmt_storage'
13
13
  spec.version = Azure::ARM::Storage::VERSION
14
14
  spec.authors = 'Microsoft Corporation'
15
- spec.email = 'azsdkteam@microsoft.com'
15
+ spec.email = 'azrubyteam@microsoft.com'
16
16
  spec.description = 'Microsoft Azure Storage Management Client Library for Ruby'
17
17
  spec.summary = 'Official ruby client library to consume Microsoft Azure Storage Management services.'
18
18
  spec.homepage = 'http://github.com/azure/azure-sdk-for-ruby'
@@ -29,12 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.1'
32
+ spec.add_development_dependency 'azure_mgmt_resources', '~> 0.2'
33
33
 
34
- spec.add_runtime_dependency 'json', '~> 1.8'
35
- spec.add_runtime_dependency 'concurrent-ruby', ['>= 1.0.0.pre1', '<2']
36
- spec.add_runtime_dependency 'faraday', '~> 0.9'
37
- spec.add_runtime_dependency 'faraday-cookie_jar', '~> 0.0.6'
38
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.1.0'
39
- spec.add_runtime_dependency 'ms_rest', '~> 0.1.0'
34
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
40
35
  end
@@ -1,9 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
-
7
6
  require 'uri'
8
7
  require 'cgi'
9
8
  require 'date'
@@ -19,9 +18,6 @@ require 'concurrent'
19
18
  require 'ms_rest'
20
19
  require 'ms_rest_azure'
21
20
 
22
- require 'azure_mgmt_storage/module_definition'
23
- require 'azure_mgmt_storage/version'
24
-
25
21
  module Azure::ARM::Storage
26
22
  autoload :StorageAccounts, 'azure_mgmt_storage/storage_accounts.rb'
27
23
  autoload :UsageOperations, 'azure_mgmt_storage/usage_operations.rb'
@@ -31,24 +27,23 @@ module Azure::ARM::Storage
31
27
  autoload :StorageAccountCheckNameAvailabilityParameters, 'azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
32
28
  autoload :CheckNameAvailabilityResult, 'azure_mgmt_storage/models/check_name_availability_result.rb'
33
29
  autoload :StorageAccountPropertiesCreateParameters, 'azure_mgmt_storage/models/storage_account_properties_create_parameters.rb'
30
+ autoload :StorageAccountCreateParameters, 'azure_mgmt_storage/models/storage_account_create_parameters.rb'
34
31
  autoload :Endpoints, 'azure_mgmt_storage/models/endpoints.rb'
35
32
  autoload :CustomDomain, 'azure_mgmt_storage/models/custom_domain.rb'
36
33
  autoload :StorageAccountProperties, 'azure_mgmt_storage/models/storage_account_properties.rb'
37
34
  autoload :StorageAccountKeys, 'azure_mgmt_storage/models/storage_account_keys.rb'
38
35
  autoload :StorageAccountListResult, 'azure_mgmt_storage/models/storage_account_list_result.rb'
39
36
  autoload :StorageAccountPropertiesUpdateParameters, 'azure_mgmt_storage/models/storage_account_properties_update_parameters.rb'
37
+ autoload :StorageAccountUpdateParameters, 'azure_mgmt_storage/models/storage_account_update_parameters.rb'
40
38
  autoload :StorageAccountRegenerateKeyParameters, 'azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
41
39
  autoload :UsageName, 'azure_mgmt_storage/models/usage_name.rb'
42
40
  autoload :Usage, 'azure_mgmt_storage/models/usage.rb'
43
41
  autoload :UsageListResult, 'azure_mgmt_storage/models/usage_list_result.rb'
44
- autoload :StorageAccountCreateParameters, 'azure_mgmt_storage/models/storage_account_create_parameters.rb'
45
42
  autoload :StorageAccount, 'azure_mgmt_storage/models/storage_account.rb'
46
- autoload :StorageAccountUpdateParameters, 'azure_mgmt_storage/models/storage_account_update_parameters.rb'
47
43
  autoload :Reason, 'azure_mgmt_storage/models/reason.rb'
48
44
  autoload :AccountType, 'azure_mgmt_storage/models/account_type.rb'
49
45
  autoload :ProvisioningState, 'azure_mgmt_storage/models/provisioning_state.rb'
50
46
  autoload :AccountStatus, 'azure_mgmt_storage/models/account_status.rb'
51
- autoload :KeyName, 'azure_mgmt_storage/models/key_name.rb'
52
47
  autoload :UsageUnit, 'azure_mgmt_storage/models/usage_unit.rb'
53
48
  end
54
49
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -19,8 +19,7 @@ module Azure::ARM::Storage
19
19
 
20
20
  # @return [Reason] Gets the reason that a storage account name could not
21
21
  # be used. The Reason element is only returned if NameAvailable is
22
- # false. Possible values for this property include:
23
- # 'AccountNameInvalid', 'AlreadyExists'.
22
+ # false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'
24
23
  attr_accessor :reason
25
24
 
26
25
  # @return [String] Gets an error message explaining the Reason value in
@@ -69,15 +68,13 @@ module Azure::ARM::Storage
69
68
  deserialized_property = object['reason']
70
69
  if (!deserialized_property.nil? && !deserialized_property.empty?)
71
70
  enum_is_valid = Reason.constants.any? { |e| Reason.const_get(e).to_s.downcase == deserialized_property.downcase }
72
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
71
+ warn 'Enum Reason does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
73
72
  end
74
73
  output_object.reason = deserialized_property
75
74
 
76
75
  deserialized_property = object['message']
77
76
  output_object.message = deserialized_property
78
77
 
79
- output_object.validate
80
-
81
78
  output_object
82
79
  end
83
80
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -25,7 +25,7 @@ module Azure::ARM::Storage
25
25
  # Validate the object. Throws ValidationError if validation fails.
26
26
  #
27
27
  def validate
28
- # Nothing to validate
28
+ fail MsRest::ValidationError, 'property name is nil' if @name.nil?
29
29
  end
30
30
 
31
31
  #
@@ -61,8 +61,6 @@ module Azure::ARM::Storage
61
61
  deserialized_property = object['useSubDomain']
62
62
  output_object.use_sub_domain = deserialized_property
63
63
 
64
- output_object.validate
65
-
66
64
  output_object
67
65
  end
68
66
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -22,6 +22,9 @@ module Azure::ARM::Storage
22
22
  # @return [String] Gets the table endpoint.
23
23
  attr_accessor :table
24
24
 
25
+ # @return [String] Gets the file endpoint.
26
+ attr_accessor :file
27
+
25
28
  #
26
29
  # Validate the object. Throws ValidationError if validation fails.
27
30
  #
@@ -47,6 +50,9 @@ module Azure::ARM::Storage
47
50
  serialized_property = object.table
48
51
  output_object['table'] = serialized_property unless serialized_property.nil?
49
52
 
53
+ serialized_property = object.file
54
+ output_object['file'] = serialized_property unless serialized_property.nil?
55
+
50
56
  output_object
51
57
  end
52
58
 
@@ -68,7 +74,8 @@ module Azure::ARM::Storage
68
74
  deserialized_property = object['table']
69
75
  output_object.table = deserialized_property
70
76
 
71
- output_object.validate
77
+ deserialized_property = object['file']
78
+ output_object.file = deserialized_property
72
79
 
73
80
  output_object
74
81
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -31,9 +31,6 @@ module Azure::ARM::Storage
31
31
  object.validate
32
32
  output_object = {}
33
33
 
34
- serialized_property = object.location
35
- output_object['location'] = serialized_property unless serialized_property.nil?
36
-
37
34
  serialized_property = object.id
38
35
  output_object['id'] = serialized_property unless serialized_property.nil?
39
36
 
@@ -43,6 +40,9 @@ module Azure::ARM::Storage
43
40
  serialized_property = object.type
44
41
  output_object['type'] = serialized_property unless serialized_property.nil?
45
42
 
43
+ serialized_property = object.location
44
+ output_object['location'] = serialized_property unless serialized_property.nil?
45
+
46
46
  serialized_property = object.tags
47
47
  output_object['tags'] = serialized_property unless serialized_property.nil?
48
48
 
@@ -64,9 +64,6 @@ module Azure::ARM::Storage
64
64
  return if object.nil?
65
65
  output_object = StorageAccount.new
66
66
 
67
- deserialized_property = object['location']
68
- output_object.location = deserialized_property
69
-
70
67
  deserialized_property = object['id']
71
68
  output_object.id = deserialized_property
72
69
 
@@ -76,6 +73,9 @@ module Azure::ARM::Storage
76
73
  deserialized_property = object['type']
77
74
  output_object.type = deserialized_property
78
75
 
76
+ deserialized_property = object['location']
77
+ output_object.location = deserialized_property
78
+
79
79
  deserialized_property = object['tags']
80
80
  output_object.tags = deserialized_property
81
81
 
@@ -85,8 +85,6 @@ module Azure::ARM::Storage
85
85
  end
86
86
  output_object.properties = deserialized_property
87
87
 
88
- output_object.validate
89
-
90
88
  output_object
91
89
  end
92
90
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -22,7 +22,7 @@ module Azure::ARM::Storage
22
22
  # Validate the object. Throws ValidationError if validation fails.
23
23
  #
24
24
  def validate
25
- # Nothing to validate
25
+ fail MsRest::ValidationError, 'property name is nil' if @name.nil?
26
26
  end
27
27
 
28
28
  #
@@ -59,8 +59,6 @@ module Azure::ARM::Storage
59
59
  deserialized_property = object['type']
60
60
  output_object.type = deserialized_property
61
61
 
62
- output_object.validate
63
-
64
62
  output_object
65
63
  end
66
64
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,10 +8,16 @@ module Azure::ARM::Storage
8
8
  #
9
9
  # The parameters to provide for the account.
10
10
  #
11
- class StorageAccountCreateParameters < MsRestAzure::Resource
11
+ class StorageAccountCreateParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ # @return [String] Resource location
16
+ attr_accessor :location
17
+
18
+ # @return [Hash{String => String}] Resource tags
19
+ attr_accessor :tags
20
+
15
21
  # @return [StorageAccountPropertiesCreateParameters]
16
22
  attr_accessor :properties
17
23
 
@@ -19,6 +25,8 @@ module Azure::ARM::Storage
19
25
  # Validate the object. Throws ValidationError if validation fails.
20
26
  #
21
27
  def validate
28
+ fail MsRest::ValidationError, 'property location is nil' if @location.nil?
29
+ @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
22
30
  @properties.validate unless @properties.nil?
23
31
  end
24
32
 
@@ -34,15 +42,6 @@ module Azure::ARM::Storage
34
42
  serialized_property = object.location
35
43
  output_object['location'] = serialized_property unless serialized_property.nil?
36
44
 
37
- serialized_property = object.id
38
- output_object['id'] = serialized_property unless serialized_property.nil?
39
-
40
- serialized_property = object.name
41
- output_object['name'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.type
44
- output_object['type'] = serialized_property unless serialized_property.nil?
45
-
46
45
  serialized_property = object.tags
47
46
  output_object['tags'] = serialized_property unless serialized_property.nil?
48
47
 
@@ -67,15 +66,6 @@ module Azure::ARM::Storage
67
66
  deserialized_property = object['location']
68
67
  output_object.location = deserialized_property
69
68
 
70
- deserialized_property = object['id']
71
- output_object.id = deserialized_property
72
-
73
- deserialized_property = object['name']
74
- output_object.name = deserialized_property
75
-
76
- deserialized_property = object['type']
77
- output_object.type = deserialized_property
78
-
79
69
  deserialized_property = object['tags']
80
70
  output_object.tags = deserialized_property
81
71
 
@@ -85,8 +75,6 @@ module Azure::ARM::Storage
85
75
  end
86
76
  output_object.properties = deserialized_property
87
77
 
88
- output_object.validate
89
-
90
78
  output_object
91
79
  end
92
80
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -58,8 +58,6 @@ module Azure::ARM::Storage
58
58
  deserialized_property = object['key2']
59
59
  output_object.key2 = deserialized_property
60
60
 
61
- output_object.validate
62
-
63
61
  output_object
64
62
  end
65
63
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -16,10 +16,6 @@ module Azure::ARM::Storage
16
16
  # their properties.
17
17
  attr_accessor :value
18
18
 
19
- # @return [String] Gets the link to the next set of results. Currently
20
- # this will always be empty as the API does not support pagination.
21
- attr_accessor :next_link
22
-
23
19
  #
24
20
  # Validate the object. Throws ValidationError if validation fails.
25
21
  #
@@ -49,9 +45,6 @@ module Azure::ARM::Storage
49
45
  end
50
46
  output_object['value'] = serialized_property unless serialized_property.nil?
51
47
 
52
- serialized_property = object.next_link
53
- output_object['nextLink'] = serialized_property unless serialized_property.nil?
54
-
55
48
  output_object
56
49
  end
57
50
 
@@ -66,22 +59,17 @@ module Azure::ARM::Storage
66
59
 
67
60
  deserialized_property = object['value']
68
61
  unless deserialized_property.nil?
69
- deserializedArray = [];
62
+ deserialized_array = []
70
63
  deserialized_property.each do |element1|
71
64
  unless element1.nil?
72
65
  element1 = StorageAccount.deserialize_object(element1)
73
66
  end
74
- deserializedArray.push(element1);
67
+ deserialized_array.push(element1)
75
68
  end
76
- deserialized_property = deserializedArray;
69
+ deserialized_property = deserialized_array
77
70
  end
78
71
  output_object.value = deserialized_property
79
72
 
80
- deserialized_property = object['nextLink']
81
- output_object.next_link = deserialized_property
82
-
83
- output_object.validate
84
-
85
73
  output_object
86
74
  end
87
75
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,13 +13,13 @@ module Azure::ARM::Storage
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [ProvisioningState] Gets the status of the storage account at
16
- # the time the operation was called. Possible values for this property
17
- # include: 'Creating', 'ResolvingDNS', 'Succeeded'.
16
+ # the time the operation was called. Possible values include:
17
+ # 'Creating', 'ResolvingDNS', 'Succeeded'
18
18
  attr_accessor :provisioning_state
19
19
 
20
20
  # @return [AccountType] Gets the type of the storage account. Possible
21
- # values for this property include: 'Standard_LRS', 'Standard_ZRS',
22
- # 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS'.
21
+ # values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS',
22
+ # 'Standard_RAGRS', 'Premium_LRS'
23
23
  attr_accessor :account_type
24
24
 
25
25
  # @return [Endpoints] Gets the URLs that are used to perform a retrieval
@@ -33,7 +33,7 @@ module Azure::ARM::Storage
33
33
 
34
34
  # @return [AccountStatus] Gets the status indicating whether the primary
35
35
  # location of the storage account is available or unavailable. Possible
36
- # values for this property include: 'Available', 'Unavailable'.
36
+ # values include: 'Available', 'Unavailable'
37
37
  attr_accessor :status_of_primary
38
38
 
39
39
  # @return [DateTime] Gets the timestamp of the most recent instance of a
@@ -51,8 +51,7 @@ module Azure::ARM::Storage
51
51
  # @return [AccountStatus] Gets the status indicating whether the
52
52
  # secondary location of the storage account is available or
53
53
  # unavailable. Only available if the accountType is StandardGRS or
54
- # StandardRAGRS. Possible values for this property include:
55
- # 'Available', 'Unavailable'.
54
+ # StandardRAGRS. Possible values include: 'Available', 'Unavailable'
56
55
  attr_accessor :status_of_secondary
57
56
 
58
57
  # @return [DateTime] Gets the creation date and time of the storage
@@ -146,14 +145,14 @@ module Azure::ARM::Storage
146
145
  deserialized_property = object['provisioningState']
147
146
  if (!deserialized_property.nil? && !deserialized_property.empty?)
148
147
  enum_is_valid = ProvisioningState.constants.any? { |e| ProvisioningState.const_get(e).to_s.downcase == deserialized_property.downcase }
149
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
148
+ warn 'Enum ProvisioningState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
150
149
  end
151
150
  output_object.provisioning_state = deserialized_property
152
151
 
153
152
  deserialized_property = object['accountType']
154
153
  if (!deserialized_property.nil? && !deserialized_property.empty?)
155
154
  enum_is_valid = AccountType.constants.any? { |e| AccountType.const_get(e).to_s.downcase == deserialized_property.downcase }
156
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
155
+ warn 'Enum AccountType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
157
156
  end
158
157
  output_object.account_type = deserialized_property
159
158
 
@@ -169,7 +168,7 @@ module Azure::ARM::Storage
169
168
  deserialized_property = object['statusOfPrimary']
170
169
  if (!deserialized_property.nil? && !deserialized_property.empty?)
171
170
  enum_is_valid = AccountStatus.constants.any? { |e| AccountStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
172
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
171
+ warn 'Enum AccountStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
173
172
  end
174
173
  output_object.status_of_primary = deserialized_property
175
174
 
@@ -183,7 +182,7 @@ module Azure::ARM::Storage
183
182
  deserialized_property = object['statusOfSecondary']
184
183
  if (!deserialized_property.nil? && !deserialized_property.empty?)
185
184
  enum_is_valid = AccountStatus.constants.any? { |e| AccountStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
186
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
185
+ warn 'Enum AccountStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
187
186
  end
188
187
  output_object.status_of_secondary = deserialized_property
189
188
 
@@ -203,8 +202,6 @@ module Azure::ARM::Storage
203
202
  end
204
203
  output_object.secondary_endpoints = deserialized_property
205
204
 
206
- output_object.validate
207
-
208
205
  output_object
209
206
  end
210
207
  end