azure_mgmt_storage 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +8 -31
  3. data/azure_mgmt_storage.gemspec +2 -2
  4. data/lib/azure_mgmt_storage.rb +14 -5
  5. data/lib/azure_mgmt_storage/models/access_tier.rb +16 -0
  6. data/lib/azure_mgmt_storage/models/account_status.rb +1 -1
  7. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +1 -1
  8. data/lib/azure_mgmt_storage/models/custom_domain.rb +1 -1
  9. data/lib/azure_mgmt_storage/models/encryption.rb +73 -0
  10. data/lib/azure_mgmt_storage/models/encryption_service.rb +72 -0
  11. data/lib/azure_mgmt_storage/models/{storage_account_keys.rb → encryption_services.rb} +18 -21
  12. data/lib/azure_mgmt_storage/models/endpoints.rb +1 -1
  13. data/lib/azure_mgmt_storage/models/key_permission.rb +16 -0
  14. data/lib/azure_mgmt_storage/models/kind.rb +16 -0
  15. data/lib/azure_mgmt_storage/models/provisioning_state.rb +1 -1
  16. data/lib/azure_mgmt_storage/models/reason.rb +1 -1
  17. data/lib/azure_mgmt_storage/models/sku.rb +77 -0
  18. data/lib/azure_mgmt_storage/models/{account_type.rb → sku_name.rb} +4 -4
  19. data/lib/azure_mgmt_storage/models/sku_tier.rb +16 -0
  20. data/lib/azure_mgmt_storage/models/storage_account.rb +31 -1
  21. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +2 -1
  22. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +43 -3
  23. data/lib/azure_mgmt_storage/models/storage_account_key.rb +78 -0
  24. data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +77 -0
  25. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +1 -1
  26. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +34 -16
  27. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +50 -12
  28. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +34 -18
  29. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +1 -1
  30. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +25 -3
  31. data/lib/azure_mgmt_storage/models/usage.rb +1 -5
  32. data/lib/azure_mgmt_storage/models/usage_list_result.rb +1 -1
  33. data/lib/azure_mgmt_storage/models/usage_name.rb +1 -1
  34. data/lib/azure_mgmt_storage/models/usage_unit.rb +1 -1
  35. data/lib/azure_mgmt_storage/module_definition.rb +1 -1
  36. data/lib/azure_mgmt_storage/storage_accounts.rb +450 -100
  37. data/lib/azure_mgmt_storage/storage_management_client.rb +2 -2
  38. data/lib/azure_mgmt_storage/usage_operations.rb +35 -6
  39. data/lib/azure_mgmt_storage/version.rb +2 -2
  40. metadata +42 -26
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -62,7 +62,7 @@ module Azure::ARM::Storage
62
62
 
63
63
  @storage_accounts = StorageAccounts.new(self)
64
64
  @usage_operations = UsageOperations.new(self)
65
- @api_version = '2015-06-15'
65
+ @api_version = '2016-01-01'
66
66
  @accept_language = 'en-US'
67
67
  @long_running_operation_retry_timeout = 30
68
68
  @generate_client_request_id = true
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -26,13 +26,39 @@ module Azure::ARM::Storage
26
26
  # Gets the current usage count and the limit for the resources under the
27
27
  # subscription.
28
28
  #
29
- # @param [Hash{String => String}] The hash of custom headers need to be
30
- # applied to HTTP request.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
31
  #
32
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
33
- # response.
32
+ # @return [UsageListResult] operation results.
34
33
  #
35
34
  def list(custom_headers = nil)
35
+ response = list_async(custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Gets the current usage count and the limit for the resources under the
41
+ # subscription.
42
+ #
43
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
+ # will be added to the HTTP request.
45
+ #
46
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
+ #
48
+ def list_with_http_info(custom_headers = nil)
49
+ list_async(custom_headers).value!
50
+ end
51
+
52
+ #
53
+ # Gets the current usage count and the limit for the resources under the
54
+ # subscription.
55
+ #
56
+ # @param [Hash{String => String}] A hash of custom headers that will be added
57
+ # to the HTTP request.
58
+ #
59
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
60
+ #
61
+ def list_async(custom_headers = nil)
36
62
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
37
63
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
38
64
  request_headers = {}
@@ -47,7 +73,10 @@ module Azure::ARM::Storage
47
73
  query_params: {'api-version' => @client.api_version},
48
74
  headers: request_headers.merge(custom_headers || {})
49
75
  }
50
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
76
+
77
+ request_url = @base_url || @client.base_url
78
+
79
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
51
80
  promise = request.run_promise do |req|
52
81
  @client.credentials.sign_request(req) unless @client.credentials.nil?
53
82
  end
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Storage
7
- VERSION = '0.2.1'
7
+ VERSION = '0.3.0'
8
8
  end
metadata CHANGED
@@ -1,122 +1,138 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: !binary |-
5
+ MC4zLjA=
5
6
  platform: ruby
6
7
  authors:
7
8
  - Microsoft Corporation
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
12
+ date: 2016-05-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.9'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - "~>"
25
+ - - ~>
25
26
  - !ruby/object:Gem::Version
26
27
  version: '1.9'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rake
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - "~>"
32
+ - - ~>
32
33
  - !ruby/object:Gem::Version
33
34
  version: '10'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - "~>"
39
+ - - ~>
39
40
  - !ruby/object:Gem::Version
40
41
  version: '10'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: rspec
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: '3'
48
+ version: !binary |-
49
+ Mw==
48
50
  type: :development
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - "~>"
54
+ - - ~>
53
55
  - !ruby/object:Gem::Version
54
- version: '3'
56
+ version: !binary |-
57
+ Mw==
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: dotenv
57
60
  requirement: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - "~>"
62
+ - - ~>
60
63
  - !ruby/object:Gem::Version
61
64
  version: '2'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ~>
67
70
  - !ruby/object:Gem::Version
68
71
  version: '2'
69
72
  - !ruby/object:Gem::Dependency
70
73
  name: azure_mgmt_resources
71
74
  requirement: !ruby/object:Gem::Requirement
72
75
  requirements:
73
- - - "~>"
76
+ - - ~>
74
77
  - !ruby/object:Gem::Version
75
- version: '0.2'
78
+ version: !binary |-
79
+ MC4z
76
80
  type: :development
77
81
  prerelease: false
78
82
  version_requirements: !ruby/object:Gem::Requirement
79
83
  requirements:
80
- - - "~>"
84
+ - - ~>
81
85
  - !ruby/object:Gem::Version
82
- version: '0.2'
86
+ version: !binary |-
87
+ MC4z
83
88
  - !ruby/object:Gem::Dependency
84
89
  name: ms_rest_azure
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - "~>"
92
+ - - ~>
88
93
  - !ruby/object:Gem::Version
89
- version: 0.2.0
94
+ version: !binary |-
95
+ MC4yLjM=
90
96
  type: :runtime
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - "~>"
100
+ - - ~>
95
101
  - !ruby/object:Gem::Version
96
- version: 0.2.0
102
+ version: !binary |-
103
+ MC4yLjM=
97
104
  description: Microsoft Azure Storage Management Client Library for Ruby
98
105
  email: azrubyteam@microsoft.com
99
106
  executables: []
100
107
  extensions: []
101
108
  extra_rdoc_files: []
102
109
  files:
103
- - ".rspec"
110
+ - .rspec
104
111
  - LICENSE.txt
105
112
  - README.md
106
113
  - Rakefile
107
114
  - azure_mgmt_storage.gemspec
108
115
  - lib/azure_mgmt_storage.rb
116
+ - lib/azure_mgmt_storage/models/access_tier.rb
109
117
  - lib/azure_mgmt_storage/models/account_status.rb
110
- - lib/azure_mgmt_storage/models/account_type.rb
111
118
  - lib/azure_mgmt_storage/models/check_name_availability_result.rb
112
119
  - lib/azure_mgmt_storage/models/custom_domain.rb
120
+ - lib/azure_mgmt_storage/models/encryption.rb
121
+ - lib/azure_mgmt_storage/models/encryption_service.rb
122
+ - lib/azure_mgmt_storage/models/encryption_services.rb
113
123
  - lib/azure_mgmt_storage/models/endpoints.rb
124
+ - lib/azure_mgmt_storage/models/key_permission.rb
125
+ - lib/azure_mgmt_storage/models/kind.rb
114
126
  - lib/azure_mgmt_storage/models/provisioning_state.rb
115
127
  - lib/azure_mgmt_storage/models/reason.rb
128
+ - lib/azure_mgmt_storage/models/sku.rb
129
+ - lib/azure_mgmt_storage/models/sku_name.rb
130
+ - lib/azure_mgmt_storage/models/sku_tier.rb
116
131
  - lib/azure_mgmt_storage/models/storage_account.rb
117
132
  - lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb
118
133
  - lib/azure_mgmt_storage/models/storage_account_create_parameters.rb
119
- - lib/azure_mgmt_storage/models/storage_account_keys.rb
134
+ - lib/azure_mgmt_storage/models/storage_account_key.rb
135
+ - lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb
120
136
  - lib/azure_mgmt_storage/models/storage_account_list_result.rb
121
137
  - lib/azure_mgmt_storage/models/storage_account_properties.rb
122
138
  - lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb
@@ -142,17 +158,17 @@ require_paths:
142
158
  - lib
143
159
  required_ruby_version: !ruby/object:Gem::Requirement
144
160
  requirements:
145
- - - ">="
161
+ - - ! '>='
146
162
  - !ruby/object:Gem::Version
147
163
  version: 1.9.3
148
164
  required_rubygems_version: !ruby/object:Gem::Requirement
149
165
  requirements:
150
- - - ">="
166
+ - - ! '>='
151
167
  - !ruby/object:Gem::Version
152
168
  version: '0'
153
169
  requirements: []
154
170
  rubyforge_project:
155
- rubygems_version: 2.4.6
171
+ rubygems_version: 2.4.5
156
172
  signing_key:
157
173
  specification_version: 4
158
174
  summary: Official ruby client library to consume Microsoft Azure Storage Management