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,76 +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 Usages operation response.
10
- #
11
- class UsageListResult
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<Usage>] Gets or sets the list Storage Resource Usages.
16
- attr_accessor :value
17
-
18
- #
19
- # Validate the object. Throws ValidationError if validation fails.
20
- #
21
- def validate
22
- @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
23
- end
24
-
25
- #
26
- # Serializes given Model object into Ruby Hash.
27
- # @param object Model object to serialize.
28
- # @return [Hash] Serialized object in form of Ruby Hash.
29
- #
30
- def self.serialize_object(object)
31
- object.validate
32
- output_object = {}
33
-
34
- serialized_property = object.value
35
- unless serialized_property.nil?
36
- serializedArray = []
37
- serialized_property.each do |element|
38
- unless element.nil?
39
- element = Usage.serialize_object(element)
40
- end
41
- serializedArray.push(element)
42
- end
43
- serialized_property = serializedArray
44
- end
45
- output_object['value'] = serialized_property unless serialized_property.nil?
46
-
47
- output_object
48
- end
49
-
50
- #
51
- # Deserializes given Ruby Hash into Model object.
52
- # @param object [Hash] Ruby Hash object to deserialize.
53
- # @return [UsageListResult] Deserialized object.
54
- #
55
- def self.deserialize_object(object)
56
- return if object.nil?
57
- output_object = UsageListResult.new
58
-
59
- deserialized_property = object['value']
60
- unless deserialized_property.nil?
61
- deserialized_array = []
62
- deserialized_property.each do |element1|
63
- unless element1.nil?
64
- element1 = Usage.deserialize_object(element1)
65
- end
66
- deserialized_array.push(element1)
67
- end
68
- deserialized_property = deserialized_array
69
- end
70
- output_object.value = deserialized_property
71
-
72
- output_object
73
- end
74
- end
75
- end
76
- end
@@ -1,65 +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 Usage Names.
10
- #
11
- class UsageName
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets a string describing the resource name.
16
- attr_accessor :value
17
-
18
- # @return [String] Gets a localized string describing the resource name.
19
- attr_accessor :localized_value
20
-
21
- #
22
- # Validate the object. Throws ValidationError if validation fails.
23
- #
24
- def validate
25
- # Nothing to validate
26
- end
27
-
28
- #
29
- # Serializes given Model object into Ruby Hash.
30
- # @param object Model object to serialize.
31
- # @return [Hash] Serialized object in form of Ruby Hash.
32
- #
33
- def self.serialize_object(object)
34
- object.validate
35
- output_object = {}
36
-
37
- serialized_property = object.value
38
- output_object['value'] = serialized_property unless serialized_property.nil?
39
-
40
- serialized_property = object.localized_value
41
- output_object['localizedValue'] = serialized_property unless serialized_property.nil?
42
-
43
- output_object
44
- end
45
-
46
- #
47
- # Deserializes given Ruby Hash into Model object.
48
- # @param object [Hash] Ruby Hash object to deserialize.
49
- # @return [UsageName] Deserialized object.
50
- #
51
- def self.deserialize_object(object)
52
- return if object.nil?
53
- output_object = UsageName.new
54
-
55
- deserialized_property = object['value']
56
- output_object.value = deserialized_property
57
-
58
- deserialized_property = object['localizedValue']
59
- output_object.localized_value = deserialized_property
60
-
61
- output_object
62
- end
63
- end
64
- end
65
- end