azure_mgmt_storage 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +15 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +111 -0
  8. data/Rakefile +5 -0
  9. data/azure_mgmt_storage.gemspec +39 -0
  10. data/lib/azure_mgmt_storage.rb +54 -0
  11. data/lib/azure_mgmt_storage/models/account_status.rb +16 -0
  12. data/lib/azure_mgmt_storage/models/account_type.rb +19 -0
  13. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +85 -0
  14. data/lib/azure_mgmt_storage/models/custom_domain.rb +70 -0
  15. data/lib/azure_mgmt_storage/models/endpoints.rb +77 -0
  16. data/lib/azure_mgmt_storage/models/key_name.rb +16 -0
  17. data/lib/azure_mgmt_storage/models/provisioning_state.rb +17 -0
  18. data/lib/azure_mgmt_storage/models/reason.rb +16 -0
  19. data/lib/azure_mgmt_storage/models/storage_account.rb +94 -0
  20. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +68 -0
  21. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +94 -0
  22. data/lib/azure_mgmt_storage/models/storage_account_keys.rb +67 -0
  23. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +89 -0
  24. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +212 -0
  25. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +63 -0
  26. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +85 -0
  27. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +62 -0
  28. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +94 -0
  29. data/lib/azure_mgmt_storage/models/usage.rb +101 -0
  30. data/lib/azure_mgmt_storage/models/usage_list_result.rb +78 -0
  31. data/lib/azure_mgmt_storage/models/usage_name.rb +67 -0
  32. data/lib/azure_mgmt_storage/models/usage_unit.rb +20 -0
  33. data/lib/azure_mgmt_storage/module_definition.rb +6 -0
  34. data/lib/azure_mgmt_storage/storage_accounts.rb +1105 -0
  35. data/lib/azure_mgmt_storage/storage_management_client.rb +65 -0
  36. data/lib/azure_mgmt_storage/usage_operations.rb +111 -0
  37. data/lib/azure_mgmt_storage/version.rb +6 -0
  38. metadata +226 -0
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ # Nothing to validate
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.blob
42
+ output_object['blob'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.queue
45
+ output_object['queue'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.table
48
+ output_object['table'] = serialized_property unless serialized_property.nil?
49
+
50
+ output_object
51
+ end
52
+
53
+ #
54
+ # Deserializes given Ruby Hash into Model object.
55
+ # @param object [Hash] Ruby Hash object to deserialize.
56
+ # @return [Endpoints] Deserialized object.
57
+ #
58
+ def self.deserialize_object(object)
59
+ return if object.nil?
60
+ output_object = Endpoints.new
61
+
62
+ deserialized_property = object['blob']
63
+ output_object.blob = deserialized_property
64
+
65
+ deserialized_property = object['queue']
66
+ output_object.queue = deserialized_property
67
+
68
+ deserialized_property = object['table']
69
+ output_object.table = deserialized_property
70
+
71
+ output_object.validate
72
+
73
+ output_object
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for KeyName
10
+ #
11
+ module KeyName
12
+ Key1 = "key1"
13
+ Key2 = "key2"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Creating = "Creating"
13
+ ResolvingDNS = "ResolvingDNS"
14
+ Succeeded = "Succeeded"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for Reason
10
+ #
11
+ module Reason
12
+ AccountNameInvalid = "AccountNameInvalid"
13
+ AlreadyExists = "AlreadyExists"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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 [StorageAccountProperties]
16
+ attr_accessor :properties
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ @properties.validate unless @properties.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.location
35
+ output_object['location'] = serialized_property unless serialized_property.nil?
36
+
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
+ serialized_property = object.tags
47
+ output_object['tags'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.properties
50
+ unless serialized_property.nil?
51
+ serialized_property = StorageAccountProperties.serialize_object(serialized_property)
52
+ end
53
+ output_object['properties'] = serialized_property unless serialized_property.nil?
54
+
55
+ output_object
56
+ end
57
+
58
+ #
59
+ # Deserializes given Ruby Hash into Model object.
60
+ # @param object [Hash] Ruby Hash object to deserialize.
61
+ # @return [StorageAccount] Deserialized object.
62
+ #
63
+ def self.deserialize_object(object)
64
+ return if object.nil?
65
+ output_object = StorageAccount.new
66
+
67
+ deserialized_property = object['location']
68
+ output_object.location = deserialized_property
69
+
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
+ deserialized_property = object['tags']
80
+ output_object.tags = deserialized_property
81
+
82
+ deserialized_property = object['properties']
83
+ unless deserialized_property.nil?
84
+ deserialized_property = StorageAccountProperties.deserialize_object(deserialized_property)
85
+ end
86
+ output_object.properties = deserialized_property
87
+
88
+ output_object.validate
89
+
90
+ output_object
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # 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.name
38
+ output_object['name'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.type
41
+ output_object['type'] = 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 [StorageAccountCheckNameAvailabilityParameters] Deserialized
50
+ # object.
51
+ #
52
+ def self.deserialize_object(object)
53
+ return if object.nil?
54
+ output_object = StorageAccountCheckNameAvailabilityParameters.new
55
+
56
+ deserialized_property = object['name']
57
+ output_object.name = deserialized_property
58
+
59
+ deserialized_property = object['type']
60
+ output_object.type = deserialized_property
61
+
62
+ output_object.validate
63
+
64
+ output_object
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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 < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [StorageAccountPropertiesCreateParameters]
16
+ attr_accessor :properties
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ @properties.validate unless @properties.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.location
35
+ output_object['location'] = serialized_property unless serialized_property.nil?
36
+
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
+ serialized_property = object.tags
47
+ output_object['tags'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.properties
50
+ unless serialized_property.nil?
51
+ serialized_property = StorageAccountPropertiesCreateParameters.serialize_object(serialized_property)
52
+ end
53
+ output_object['properties'] = serialized_property unless serialized_property.nil?
54
+
55
+ output_object
56
+ end
57
+
58
+ #
59
+ # Deserializes given Ruby Hash into Model object.
60
+ # @param object [Hash] Ruby Hash object to deserialize.
61
+ # @return [StorageAccountCreateParameters] Deserialized object.
62
+ #
63
+ def self.deserialize_object(object)
64
+ return if object.nil?
65
+ output_object = StorageAccountCreateParameters.new
66
+
67
+ deserialized_property = object['location']
68
+ output_object.location = deserialized_property
69
+
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
+ deserialized_property = object['tags']
80
+ output_object.tags = deserialized_property
81
+
82
+ deserialized_property = object['properties']
83
+ unless deserialized_property.nil?
84
+ deserialized_property = StorageAccountPropertiesCreateParameters.deserialize_object(deserialized_property)
85
+ end
86
+ output_object.properties = deserialized_property
87
+
88
+ output_object.validate
89
+
90
+ output_object
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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 access keys for the storage account.
10
+ #
11
+ class StorageAccountKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets the value of key 1.
16
+ attr_accessor :key1
17
+
18
+ # @return [String] Gets the value of key 2.
19
+ attr_accessor :key2
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.key1
38
+ output_object['key1'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.key2
41
+ output_object['key2'] = 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 [StorageAccountKeys] Deserialized object.
50
+ #
51
+ def self.deserialize_object(object)
52
+ return if object.nil?
53
+ output_object = StorageAccountKeys.new
54
+
55
+ deserialized_property = object['key1']
56
+ output_object.key1 = deserialized_property
57
+
58
+ deserialized_property = object['key2']
59
+ output_object.key2 = deserialized_property
60
+
61
+ output_object.validate
62
+
63
+ output_object
64
+ end
65
+ end
66
+ end
67
+ end