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.
- checksums.yaml +5 -13
- data/azure_mgmt_storage.gemspec +4 -5
- data/lib/azure_mgmt_storage.rb +3 -57
- data/lib/generated/azure_mgmt_storage.rb +56 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/access_tier.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/account_status.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +73 -0
- data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +57 -0
- data/lib/generated/azure_mgmt_storage/models/encryption.rb +59 -0
- data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +60 -0
- data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +45 -0
- data/lib/generated/azure_mgmt_storage/models/endpoints.rb +79 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/key_permission.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/kind.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/provisioning_state.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/reason.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/sku.rb +61 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_name.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_tier.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account.rb +269 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +57 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +134 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +69 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +44 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +108 -0
- data/lib/generated/azure_mgmt_storage/models/usage.rb +84 -0
- data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_storage/models/usage_name.rb +56 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/usage_unit.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_accounts.rb +81 -66
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_management_client.rb +4 -4
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/usage_operations.rb +4 -4
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/version.rb +1 -1
- metadata +54 -77
- data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +0 -82
- data/lib/azure_mgmt_storage/models/custom_domain.rb +0 -68
- data/lib/azure_mgmt_storage/models/encryption.rb +0 -73
- data/lib/azure_mgmt_storage/models/encryption_service.rb +0 -72
- data/lib/azure_mgmt_storage/models/encryption_services.rb +0 -62
- data/lib/azure_mgmt_storage/models/endpoints.rb +0 -84
- data/lib/azure_mgmt_storage/models/sku.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account.rb +0 -122
- data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +0 -67
- data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +0 -122
- data/lib/azure_mgmt_storage/models/storage_account_key.rb +0 -78
- data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account_properties.rb +0 -227
- data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +0 -100
- data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +0 -98
- data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +0 -56
- data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +0 -94
- data/lib/azure_mgmt_storage/models/usage.rb +0 -99
- data/lib/azure_mgmt_storage/models/usage_list_result.rb +0 -76
- 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
|