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,72 +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 encrypted service.
10
- #
11
- class EncryptionService
12
-
13
- include MsRestAzure
14
-
15
- # @return [Boolean] A boolean indicating whether or not the service is
16
- # encrypted.
17
- attr_accessor :enabled
18
-
19
- # @return [DateTime] Gets a time value indicating when was the
20
- # encryption enabled by the user last time. We return this value only
21
- # when encryption is enabled. There might be some unencrypted blobs
22
- # which were written after this time. This time is just to give a rough
23
- # estimate of when encryption was enabled.
24
- attr_accessor :last_enabled_time
25
-
26
- #
27
- # Validate the object. Throws ValidationError if validation fails.
28
- #
29
- def validate
30
- # Nothing to validate
31
- end
32
-
33
- #
34
- # Serializes given Model object into Ruby Hash.
35
- # @param object Model object to serialize.
36
- # @return [Hash] Serialized object in form of Ruby Hash.
37
- #
38
- def self.serialize_object(object)
39
- object.validate
40
- output_object = {}
41
-
42
- serialized_property = object.enabled
43
- output_object['enabled'] = serialized_property unless serialized_property.nil?
44
-
45
- serialized_property = object.last_enabled_time
46
- serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
47
- output_object['lastEnabledTime'] = 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 [EncryptionService] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = EncryptionService.new
60
-
61
- deserialized_property = object['enabled']
62
- output_object.enabled = deserialized_property
63
-
64
- deserialized_property = object['lastEnabledTime']
65
- deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
66
- output_object.last_enabled_time = deserialized_property
67
-
68
- output_object
69
- end
70
- end
71
- end
72
- end
@@ -1,62 +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 encrypted services.
10
- #
11
- class EncryptionServices
12
-
13
- include MsRestAzure
14
-
15
- # @return [EncryptionService] The blob service.
16
- attr_accessor :blob
17
-
18
- #
19
- # Validate the object. Throws ValidationError if validation fails.
20
- #
21
- def validate
22
- @blob.validate unless @blob.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.blob
35
- unless serialized_property.nil?
36
- serialized_property = EncryptionService.serialize_object(serialized_property)
37
- end
38
- output_object['blob'] = serialized_property unless serialized_property.nil?
39
-
40
- output_object
41
- end
42
-
43
- #
44
- # Deserializes given Ruby Hash into Model object.
45
- # @param object [Hash] Ruby Hash object to deserialize.
46
- # @return [EncryptionServices] Deserialized object.
47
- #
48
- def self.deserialize_object(object)
49
- return if object.nil?
50
- output_object = EncryptionServices.new
51
-
52
- deserialized_property = object['blob']
53
- unless deserialized_property.nil?
54
- deserialized_property = EncryptionService.deserialize_object(deserialized_property)
55
- end
56
- output_object.blob = deserialized_property
57
-
58
- output_object
59
- end
60
- end
61
- end
62
- end
@@ -1,84 +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 URIs that are used to perform a retrieval of a public blob, queue or
10
- # table object.
11
- #
12
- class Endpoints
13
-
14
- include MsRestAzure
15
-
16
- # @return [String] Gets the blob endpoint.
17
- attr_accessor :blob
18
-
19
- # @return [String] Gets the queue endpoint.
20
- attr_accessor :queue
21
-
22
- # @return [String] Gets the table endpoint.
23
- attr_accessor :table
24
-
25
- # @return [String] Gets the file endpoint.
26
- attr_accessor :file
27
-
28
- #
29
- # Validate the object. Throws ValidationError if validation fails.
30
- #
31
- def validate
32
- # Nothing to validate
33
- end
34
-
35
- #
36
- # Serializes given Model object into Ruby Hash.
37
- # @param object Model object to serialize.
38
- # @return [Hash] Serialized object in form of Ruby Hash.
39
- #
40
- def self.serialize_object(object)
41
- object.validate
42
- output_object = {}
43
-
44
- serialized_property = object.blob
45
- output_object['blob'] = serialized_property unless serialized_property.nil?
46
-
47
- serialized_property = object.queue
48
- output_object['queue'] = serialized_property unless serialized_property.nil?
49
-
50
- serialized_property = object.table
51
- output_object['table'] = serialized_property unless serialized_property.nil?
52
-
53
- serialized_property = object.file
54
- output_object['file'] = serialized_property unless serialized_property.nil?
55
-
56
- output_object
57
- end
58
-
59
- #
60
- # Deserializes given Ruby Hash into Model object.
61
- # @param object [Hash] Ruby Hash object to deserialize.
62
- # @return [Endpoints] Deserialized object.
63
- #
64
- def self.deserialize_object(object)
65
- return if object.nil?
66
- output_object = Endpoints.new
67
-
68
- deserialized_property = object['blob']
69
- output_object.blob = deserialized_property
70
-
71
- deserialized_property = object['queue']
72
- output_object.queue = deserialized_property
73
-
74
- deserialized_property = object['table']
75
- output_object.table = deserialized_property
76
-
77
- deserialized_property = object['file']
78
- output_object.file = deserialized_property
79
-
80
- output_object
81
- end
82
- end
83
- end
84
- 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 SKU of the storage account.
10
- #
11
- class Sku
12
-
13
- include MsRestAzure
14
-
15
- # @return [SkuName] Gets or sets the sku name. Required for account
16
- # creation, optional for update. Note that in older versions, sku name
17
- # was called accountType. Possible values include: 'Standard_LRS',
18
- # 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
19
- attr_accessor :name
20
-
21
- # @return [SkuTier] Gets the sku tier. This is based on the SKU name.
22
- # Possible values include: 'Standard', 'Premium'
23
- attr_accessor :tier
24
-
25
- #
26
- # Validate the object. Throws ValidationError if validation fails.
27
- #
28
- def validate
29
- fail MsRest::ValidationError, 'property name is nil' if @name.nil?
30
- end
31
-
32
- #
33
- # Serializes given Model object into Ruby Hash.
34
- # @param object Model object to serialize.
35
- # @return [Hash] Serialized object in form of Ruby Hash.
36
- #
37
- def self.serialize_object(object)
38
- object.validate
39
- output_object = {}
40
-
41
- serialized_property = object.name
42
- output_object['name'] = serialized_property unless serialized_property.nil?
43
-
44
- serialized_property = object.tier
45
- output_object['tier'] = 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 [Sku] Deserialized object.
54
- #
55
- def self.deserialize_object(object)
56
- return if object.nil?
57
- output_object = Sku.new
58
-
59
- deserialized_property = object['name']
60
- if (!deserialized_property.nil? && !deserialized_property.empty?)
61
- enum_is_valid = SkuName.constants.any? { |e| SkuName.const_get(e).to_s.downcase == deserialized_property.downcase }
62
- warn 'Enum SkuName does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
63
- end
64
- output_object.name = deserialized_property
65
-
66
- deserialized_property = object['tier']
67
- if (!deserialized_property.nil? && !deserialized_property.empty?)
68
- enum_is_valid = SkuTier.constants.any? { |e| SkuTier.const_get(e).to_s.downcase == deserialized_property.downcase }
69
- warn 'Enum SkuTier does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
70
- end
71
- output_object.tier = deserialized_property
72
-
73
- output_object
74
- end
75
- end
76
- end
77
- end
@@ -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 storage account.
10
- #
11
- class StorageAccount < MsRestAzure::Resource
12
-
13
- include MsRestAzure
14
-
15
- # @return [Sku] Gets the SKU.
16
- attr_accessor :sku
17
-
18
- # @return [Kind] Gets the Kind. Possible values include: 'Storage',
19
- # 'BlobStorage'
20
- attr_accessor :kind
21
-
22
- # @return [StorageAccountProperties]
23
- attr_accessor :properties
24
-
25
- #
26
- # Validate the object. Throws ValidationError if validation fails.
27
- #
28
- def validate
29
- @sku.validate unless @sku.nil?
30
- @properties.validate unless @properties.nil?
31
- end
32
-
33
- #
34
- # Serializes given Model object into Ruby Hash.
35
- # @param object Model object to serialize.
36
- # @return [Hash] Serialized object in form of Ruby Hash.
37
- #
38
- def self.serialize_object(object)
39
- object.validate
40
- output_object = {}
41
-
42
- serialized_property = object.id
43
- output_object['id'] = serialized_property unless serialized_property.nil?
44
-
45
- serialized_property = object.name
46
- output_object['name'] = serialized_property unless serialized_property.nil?
47
-
48
- serialized_property = object.type
49
- output_object['type'] = serialized_property unless serialized_property.nil?
50
-
51
- serialized_property = object.location
52
- output_object['location'] = serialized_property unless serialized_property.nil?
53
-
54
- serialized_property = object.tags
55
- output_object['tags'] = serialized_property unless serialized_property.nil?
56
-
57
- serialized_property = object.sku
58
- unless serialized_property.nil?
59
- serialized_property = Sku.serialize_object(serialized_property)
60
- end
61
- output_object['sku'] = serialized_property unless serialized_property.nil?
62
-
63
- serialized_property = object.kind
64
- output_object['kind'] = serialized_property unless serialized_property.nil?
65
-
66
- serialized_property = object.properties
67
- unless serialized_property.nil?
68
- serialized_property = StorageAccountProperties.serialize_object(serialized_property)
69
- end
70
- output_object['properties'] = serialized_property unless serialized_property.nil?
71
-
72
- output_object
73
- end
74
-
75
- #
76
- # Deserializes given Ruby Hash into Model object.
77
- # @param object [Hash] Ruby Hash object to deserialize.
78
- # @return [StorageAccount] Deserialized object.
79
- #
80
- def self.deserialize_object(object)
81
- return if object.nil?
82
- output_object = StorageAccount.new
83
-
84
- deserialized_property = object['id']
85
- output_object.id = deserialized_property
86
-
87
- deserialized_property = object['name']
88
- output_object.name = deserialized_property
89
-
90
- deserialized_property = object['type']
91
- output_object.type = deserialized_property
92
-
93
- deserialized_property = object['location']
94
- output_object.location = deserialized_property
95
-
96
- deserialized_property = object['tags']
97
- output_object.tags = deserialized_property
98
-
99
- deserialized_property = object['sku']
100
- unless deserialized_property.nil?
101
- deserialized_property = Sku.deserialize_object(deserialized_property)
102
- end
103
- output_object.sku = deserialized_property
104
-
105
- deserialized_property = object['kind']
106
- if (!deserialized_property.nil? && !deserialized_property.empty?)
107
- enum_is_valid = Kind.constants.any? { |e| Kind.const_get(e).to_s.downcase == deserialized_property.downcase }
108
- warn 'Enum Kind does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
109
- end
110
- output_object.kind = deserialized_property
111
-
112
- deserialized_property = object['properties']
113
- unless deserialized_property.nil?
114
- deserialized_property = StorageAccountProperties.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,67 +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 StorageAccountCheckNameAvailabilityParameters
12
-
13
- include MsRestAzure
14
-
15
- # @return [String]
16
- attr_accessor :name
17
-
18
- # @return [String]
19
- attr_accessor :type
20
-
21
- #
22
- # Validate the object. Throws ValidationError if validation fails.
23
- #
24
- def validate
25
- fail MsRest::ValidationError, 'property name is nil' if @name.nil?
26
- fail MsRest::ValidationError, 'property type is nil' if @type.nil?
27
- end
28
-
29
- #
30
- # Serializes given Model object into Ruby Hash.
31
- # @param object Model object to serialize.
32
- # @return [Hash] Serialized object in form of Ruby Hash.
33
- #
34
- def self.serialize_object(object)
35
- object.validate
36
- output_object = {}
37
-
38
- serialized_property = object.name
39
- output_object['name'] = serialized_property unless serialized_property.nil?
40
-
41
- serialized_property = object.type
42
- output_object['type'] = serialized_property unless serialized_property.nil?
43
-
44
- output_object
45
- end
46
-
47
- #
48
- # Deserializes given Ruby Hash into Model object.
49
- # @param object [Hash] Ruby Hash object to deserialize.
50
- # @return [StorageAccountCheckNameAvailabilityParameters] Deserialized
51
- # object.
52
- #
53
- def self.deserialize_object(object)
54
- return if object.nil?
55
- output_object = StorageAccountCheckNameAvailabilityParameters.new
56
-
57
- deserialized_property = object['name']
58
- output_object.name = deserialized_property
59
-
60
- deserialized_property = object['type']
61
- output_object.type = deserialized_property
62
-
63
- output_object
64
- end
65
- end
66
- end
67
- end