azure_mgmt_features 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_features.gemspec +34 -0
- data/lib/azure_mgmt_features/feature_client.rb +68 -0
- data/lib/azure_mgmt_features/features.rb +395 -0
- data/lib/azure_mgmt_features/models/deployment_extended_filter.rb +56 -0
- data/lib/azure_mgmt_features/models/feature_operations_list_result.rb +85 -0
- data/lib/azure_mgmt_features/models/feature_properties.rb +56 -0
- data/lib/azure_mgmt_features/models/feature_result.rb +90 -0
- data/lib/azure_mgmt_features/models/generic_resource_filter.rb +74 -0
- data/lib/azure_mgmt_features/models/resource_group_filter.rb +65 -0
- data/lib/azure_mgmt_features/module_definition.rb +8 -0
- data/lib/azure_mgmt_features/version.rb +8 -0
- data/lib/azure_mgmt_features.rb +33 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 853e76e46088a11031e2be828e6d0755ff2899de
|
4
|
+
data.tar.gz: f4cee57280cfbe0d91aee74e2b5ba2927730b2d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 386dd233b66c64c02682b83da4580a58a5f73eaa42107119af3c96e016e1c73a89a3abf2d5912f1bb695acfefa6fc697abc8cb4d5d578cd99e2156f86edfe7e4
|
7
|
+
data.tar.gz: 7dd6e8f7f5b291d3d8e0066b9af662534c4a40ec9be9b4434b2e16b4a1737b961e93378e999eb1e43715fff3766c7c6480302f3a6fbfb8a8b0e59df434408222
|
data/.rspec
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Microsoft Corporation
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
lib = File.expand_path('../lib', __FILE__)
|
6
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
|
+
|
8
|
+
require 'azure_mgmt_features/module_definition'
|
9
|
+
require 'azure_mgmt_features/version'
|
10
|
+
|
11
|
+
Gem::Specification.new do |spec|
|
12
|
+
spec.name = 'azure_mgmt_features'
|
13
|
+
spec.version = Azure::ARM::Features::VERSION
|
14
|
+
spec.authors = 'Microsoft Corporation'
|
15
|
+
spec.email = 'azrubyteam@microsoft.com'
|
16
|
+
spec.description = 'Microsoft Azure Resource Provider Feature Management Client Library for Ruby'
|
17
|
+
spec.summary = 'Official Ruby client library to consume Microsoft Azure Resource Provider Feature Management services.'
|
18
|
+
spec.homepage = 'http://github.com/azure/azure-sdk-for-ruby'
|
19
|
+
spec.license = 'MIT'
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
spec.bindir = 'bin'
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ['lib']
|
25
|
+
|
26
|
+
spec.required_ruby_version = '>= 1.9.3'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.9'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3'
|
31
|
+
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
+
|
33
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
|
34
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class FeatureClient < MsRestAzure::AzureServiceClient
|
11
|
+
include Azure::ARM::Features::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Gets Azure subscription credentials.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Gets subscription credentials which uniquely identify
|
21
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
22
|
+
# for every service call.
|
23
|
+
attr_accessor :subscription_id
|
24
|
+
|
25
|
+
# @return [String] Client Api Version.
|
26
|
+
attr_reader :api_version
|
27
|
+
|
28
|
+
# @return [String] Gets or sets the preferred language for the response.
|
29
|
+
attr_accessor :accept_language
|
30
|
+
|
31
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
32
|
+
# Running Operations. Default value is 30.
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
34
|
+
|
35
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
36
|
+
# is generated and included in each request. Default is true.
|
37
|
+
attr_accessor :generate_client_request_id
|
38
|
+
|
39
|
+
# @return Subscription credentials which uniquely identify client
|
40
|
+
# subscription.
|
41
|
+
attr_accessor :credentials
|
42
|
+
|
43
|
+
# @return features
|
44
|
+
attr_reader :features
|
45
|
+
|
46
|
+
#
|
47
|
+
# Creates initializes a new instance of the FeatureClient class.
|
48
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
49
|
+
# @param base_url [String] the base URI of the service.
|
50
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
51
|
+
#
|
52
|
+
def initialize(credentials, base_url = nil, options = nil)
|
53
|
+
super(credentials, options)
|
54
|
+
@base_url = base_url || 'https://management.azure.com'
|
55
|
+
|
56
|
+
fail ArgumentError, 'credentials is nil' if credentials.nil?
|
57
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
58
|
+
@credentials = credentials
|
59
|
+
|
60
|
+
@features = Features.new(self)
|
61
|
+
@api_version = '2015-12-01'
|
62
|
+
@accept_language = 'en-US'
|
63
|
+
@long_running_operation_retry_timeout = 30
|
64
|
+
@generate_client_request_id = true
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,395 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
#
|
8
|
+
# Features
|
9
|
+
#
|
10
|
+
class Features
|
11
|
+
include Azure::ARM::Features::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the Features class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return reference to the FeatureClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets a list of previewed features for all the providers in the current
|
27
|
+
# subscription.
|
28
|
+
#
|
29
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
30
|
+
# applied to HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
33
|
+
# response.
|
34
|
+
#
|
35
|
+
def list_all(custom_headers = nil)
|
36
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
37
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
38
|
+
request_headers = {}
|
39
|
+
|
40
|
+
# Set Headers
|
41
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
42
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
43
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features'
|
44
|
+
options = {
|
45
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
46
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
47
|
+
query_params: {'api-version' => @client.api_version},
|
48
|
+
headers: request_headers.merge(custom_headers || {})
|
49
|
+
}
|
50
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
51
|
+
promise = request.run_promise do |req|
|
52
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
53
|
+
end
|
54
|
+
|
55
|
+
promise = promise.then do |http_response|
|
56
|
+
status_code = http_response.status
|
57
|
+
response_content = http_response.body
|
58
|
+
unless status_code == 200
|
59
|
+
error_model = JSON.load(response_content)
|
60
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Create Result
|
64
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
65
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
66
|
+
# Deserialize Response
|
67
|
+
if status_code == 200
|
68
|
+
begin
|
69
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
70
|
+
unless parsed_response.nil?
|
71
|
+
parsed_response = FeatureOperationsListResult.deserialize_object(parsed_response)
|
72
|
+
end
|
73
|
+
result.body = parsed_response
|
74
|
+
rescue Exception => e
|
75
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
result
|
80
|
+
end
|
81
|
+
|
82
|
+
promise.execute
|
83
|
+
end
|
84
|
+
|
85
|
+
#
|
86
|
+
# Gets a list of previewed features of a resource provider.
|
87
|
+
#
|
88
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
89
|
+
# provider.
|
90
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
91
|
+
# applied to HTTP request.
|
92
|
+
#
|
93
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
94
|
+
# response.
|
95
|
+
#
|
96
|
+
def list(resource_provider_namespace, custom_headers = nil)
|
97
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
98
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
99
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
100
|
+
request_headers = {}
|
101
|
+
|
102
|
+
# Set Headers
|
103
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
104
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
105
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features'
|
106
|
+
options = {
|
107
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
108
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
109
|
+
query_params: {'api-version' => @client.api_version},
|
110
|
+
headers: request_headers.merge(custom_headers || {})
|
111
|
+
}
|
112
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
113
|
+
promise = request.run_promise do |req|
|
114
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
115
|
+
end
|
116
|
+
|
117
|
+
promise = promise.then do |http_response|
|
118
|
+
status_code = http_response.status
|
119
|
+
response_content = http_response.body
|
120
|
+
unless status_code == 200
|
121
|
+
error_model = JSON.load(response_content)
|
122
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Create Result
|
126
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
127
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
128
|
+
# Deserialize Response
|
129
|
+
if status_code == 200
|
130
|
+
begin
|
131
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
132
|
+
unless parsed_response.nil?
|
133
|
+
parsed_response = FeatureOperationsListResult.deserialize_object(parsed_response)
|
134
|
+
end
|
135
|
+
result.body = parsed_response
|
136
|
+
rescue Exception => e
|
137
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
result
|
142
|
+
end
|
143
|
+
|
144
|
+
promise.execute
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Get all features under the subscription.
|
149
|
+
#
|
150
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
151
|
+
# provider.
|
152
|
+
# @param feature_name [String] Previewed feature name in the resource provider.
|
153
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
154
|
+
# applied to HTTP request.
|
155
|
+
#
|
156
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
157
|
+
# response.
|
158
|
+
#
|
159
|
+
def get(resource_provider_namespace, feature_name, custom_headers = nil)
|
160
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
161
|
+
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
162
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
163
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
|
+
request_headers = {}
|
165
|
+
|
166
|
+
# Set Headers
|
167
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
168
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
169
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}'
|
170
|
+
options = {
|
171
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
172
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'featureName' => feature_name,'subscriptionId' => @client.subscription_id},
|
173
|
+
query_params: {'api-version' => @client.api_version},
|
174
|
+
headers: request_headers.merge(custom_headers || {})
|
175
|
+
}
|
176
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
177
|
+
promise = request.run_promise do |req|
|
178
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
179
|
+
end
|
180
|
+
|
181
|
+
promise = promise.then do |http_response|
|
182
|
+
status_code = http_response.status
|
183
|
+
response_content = http_response.body
|
184
|
+
unless status_code == 200
|
185
|
+
error_model = JSON.load(response_content)
|
186
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Create Result
|
190
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
191
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
192
|
+
# Deserialize Response
|
193
|
+
if status_code == 200
|
194
|
+
begin
|
195
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
196
|
+
unless parsed_response.nil?
|
197
|
+
parsed_response = FeatureResult.deserialize_object(parsed_response)
|
198
|
+
end
|
199
|
+
result.body = parsed_response
|
200
|
+
rescue Exception => e
|
201
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
result
|
206
|
+
end
|
207
|
+
|
208
|
+
promise.execute
|
209
|
+
end
|
210
|
+
|
211
|
+
#
|
212
|
+
# Registers for a previewed feature of a resource provider.
|
213
|
+
#
|
214
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
215
|
+
# provider.
|
216
|
+
# @param feature_name [String] Previewed feature name in the resource provider.
|
217
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
218
|
+
# applied to HTTP request.
|
219
|
+
#
|
220
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
221
|
+
# response.
|
222
|
+
#
|
223
|
+
def register(resource_provider_namespace, feature_name, custom_headers = nil)
|
224
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
225
|
+
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
226
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
227
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
228
|
+
request_headers = {}
|
229
|
+
|
230
|
+
# Set Headers
|
231
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
232
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
233
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register'
|
234
|
+
options = {
|
235
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
236
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'featureName' => feature_name,'subscriptionId' => @client.subscription_id},
|
237
|
+
query_params: {'api-version' => @client.api_version},
|
238
|
+
headers: request_headers.merge(custom_headers || {})
|
239
|
+
}
|
240
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
|
241
|
+
promise = request.run_promise do |req|
|
242
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
243
|
+
end
|
244
|
+
|
245
|
+
promise = promise.then do |http_response|
|
246
|
+
status_code = http_response.status
|
247
|
+
response_content = http_response.body
|
248
|
+
unless status_code == 200
|
249
|
+
error_model = JSON.load(response_content)
|
250
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
251
|
+
end
|
252
|
+
|
253
|
+
# Create Result
|
254
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
255
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
256
|
+
# Deserialize Response
|
257
|
+
if status_code == 200
|
258
|
+
begin
|
259
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
260
|
+
unless parsed_response.nil?
|
261
|
+
parsed_response = FeatureResult.deserialize_object(parsed_response)
|
262
|
+
end
|
263
|
+
result.body = parsed_response
|
264
|
+
rescue Exception => e
|
265
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
result
|
270
|
+
end
|
271
|
+
|
272
|
+
promise.execute
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# Gets a list of previewed features for all the providers in the current
|
277
|
+
# subscription.
|
278
|
+
#
|
279
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
280
|
+
# call to List operation.
|
281
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
282
|
+
# applied to HTTP request.
|
283
|
+
#
|
284
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
285
|
+
# response.
|
286
|
+
#
|
287
|
+
def list_all_next(next_page_link, custom_headers = nil)
|
288
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
289
|
+
request_headers = {}
|
290
|
+
|
291
|
+
# Set Headers
|
292
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
293
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
294
|
+
path_template = '{nextLink}'
|
295
|
+
options = {
|
296
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
297
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
298
|
+
headers: request_headers.merge(custom_headers || {})
|
299
|
+
}
|
300
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
301
|
+
promise = request.run_promise do |req|
|
302
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
303
|
+
end
|
304
|
+
|
305
|
+
promise = promise.then do |http_response|
|
306
|
+
status_code = http_response.status
|
307
|
+
response_content = http_response.body
|
308
|
+
unless status_code == 200
|
309
|
+
error_model = JSON.load(response_content)
|
310
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Create Result
|
314
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
315
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
316
|
+
# Deserialize Response
|
317
|
+
if status_code == 200
|
318
|
+
begin
|
319
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
320
|
+
unless parsed_response.nil?
|
321
|
+
parsed_response = FeatureOperationsListResult.deserialize_object(parsed_response)
|
322
|
+
end
|
323
|
+
result.body = parsed_response
|
324
|
+
rescue Exception => e
|
325
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
result
|
330
|
+
end
|
331
|
+
|
332
|
+
promise.execute
|
333
|
+
end
|
334
|
+
|
335
|
+
#
|
336
|
+
# Gets a list of previewed features of a resource provider.
|
337
|
+
#
|
338
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
339
|
+
# call to List operation.
|
340
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
341
|
+
# applied to HTTP request.
|
342
|
+
#
|
343
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
344
|
+
# response.
|
345
|
+
#
|
346
|
+
def list_next(next_page_link, custom_headers = nil)
|
347
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
348
|
+
request_headers = {}
|
349
|
+
|
350
|
+
# Set Headers
|
351
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
352
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
353
|
+
path_template = '{nextLink}'
|
354
|
+
options = {
|
355
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
356
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
357
|
+
headers: request_headers.merge(custom_headers || {})
|
358
|
+
}
|
359
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
360
|
+
promise = request.run_promise do |req|
|
361
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
362
|
+
end
|
363
|
+
|
364
|
+
promise = promise.then do |http_response|
|
365
|
+
status_code = http_response.status
|
366
|
+
response_content = http_response.body
|
367
|
+
unless status_code == 200
|
368
|
+
error_model = JSON.load(response_content)
|
369
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Create Result
|
373
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
374
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
375
|
+
# Deserialize Response
|
376
|
+
if status_code == 200
|
377
|
+
begin
|
378
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
379
|
+
unless parsed_response.nil?
|
380
|
+
parsed_response = FeatureOperationsListResult.deserialize_object(parsed_response)
|
381
|
+
end
|
382
|
+
result.body = parsed_response
|
383
|
+
rescue Exception => e
|
384
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
result
|
389
|
+
end
|
390
|
+
|
391
|
+
promise.execute
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Deployment filter.
|
10
|
+
#
|
11
|
+
class DeploymentExtendedFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the provisioning state.
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
# Nothing to validate
|
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.provisioning_state
|
35
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
output_object
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
+
# @return [DeploymentExtendedFilter] Deserialized object.
|
44
|
+
#
|
45
|
+
def self.deserialize_object(object)
|
46
|
+
return if object.nil?
|
47
|
+
output_object = DeploymentExtendedFilter.new
|
48
|
+
|
49
|
+
deserialized_property = object['provisioningState']
|
50
|
+
output_object.provisioning_state = deserialized_property
|
51
|
+
|
52
|
+
output_object
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of previewed features.
|
10
|
+
#
|
11
|
+
class FeatureOperationsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<FeatureResult>] Gets or sets the list of Features.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
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
|
+
unless serialized_property.nil?
|
39
|
+
serializedArray = []
|
40
|
+
serialized_property.each do |element|
|
41
|
+
unless element.nil?
|
42
|
+
element = FeatureResult.serialize_object(element)
|
43
|
+
end
|
44
|
+
serializedArray.push(element)
|
45
|
+
end
|
46
|
+
serialized_property = serializedArray
|
47
|
+
end
|
48
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.next_link
|
51
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
output_object
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Deserializes given Ruby Hash into Model object.
|
58
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
59
|
+
# @return [FeatureOperationsListResult] Deserialized object.
|
60
|
+
#
|
61
|
+
def self.deserialize_object(object)
|
62
|
+
return if object.nil?
|
63
|
+
output_object = FeatureOperationsListResult.new
|
64
|
+
|
65
|
+
deserialized_property = object['value']
|
66
|
+
unless deserialized_property.nil?
|
67
|
+
deserialized_array = []
|
68
|
+
deserialized_property.each do |element1|
|
69
|
+
unless element1.nil?
|
70
|
+
element1 = FeatureResult.deserialize_object(element1)
|
71
|
+
end
|
72
|
+
deserialized_array.push(element1)
|
73
|
+
end
|
74
|
+
deserialized_property = deserialized_array
|
75
|
+
end
|
76
|
+
output_object.value = deserialized_property
|
77
|
+
|
78
|
+
deserialized_property = object['nextLink']
|
79
|
+
output_object.next_link = deserialized_property
|
80
|
+
|
81
|
+
output_object
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Previewed feature information.
|
10
|
+
#
|
11
|
+
class FeatureProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the state of the previewed feature.
|
16
|
+
attr_accessor :state
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
# Nothing to validate
|
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.state
|
35
|
+
output_object['state'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
output_object
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
+
# @return [FeatureProperties] Deserialized object.
|
44
|
+
#
|
45
|
+
def self.deserialize_object(object)
|
46
|
+
return if object.nil?
|
47
|
+
output_object = FeatureProperties.new
|
48
|
+
|
49
|
+
deserialized_property = object['state']
|
50
|
+
output_object.state = deserialized_property
|
51
|
+
|
52
|
+
output_object
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Previewed feature information.
|
10
|
+
#
|
11
|
+
class FeatureResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the name of the feature.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [FeatureProperties] Gets or sets the properties of the
|
19
|
+
# previewed feature.
|
20
|
+
attr_accessor :properties
|
21
|
+
|
22
|
+
# @return [String] Gets or sets the Id of the feature.
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
# @return [String] Gets or sets the type of the feature.
|
26
|
+
attr_accessor :type
|
27
|
+
|
28
|
+
#
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
30
|
+
#
|
31
|
+
def validate
|
32
|
+
@properties.validate unless @properties.nil?
|
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.name
|
45
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.properties
|
48
|
+
unless serialized_property.nil?
|
49
|
+
serialized_property = FeatureProperties.serialize_object(serialized_property)
|
50
|
+
end
|
51
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.id
|
54
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
55
|
+
|
56
|
+
serialized_property = object.type
|
57
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
output_object
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Deserializes given Ruby Hash into Model object.
|
64
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
65
|
+
# @return [FeatureResult] Deserialized object.
|
66
|
+
#
|
67
|
+
def self.deserialize_object(object)
|
68
|
+
return if object.nil?
|
69
|
+
output_object = FeatureResult.new
|
70
|
+
|
71
|
+
deserialized_property = object['name']
|
72
|
+
output_object.name = deserialized_property
|
73
|
+
|
74
|
+
deserialized_property = object['properties']
|
75
|
+
unless deserialized_property.nil?
|
76
|
+
deserialized_property = FeatureProperties.deserialize_object(deserialized_property)
|
77
|
+
end
|
78
|
+
output_object.properties = deserialized_property
|
79
|
+
|
80
|
+
deserialized_property = object['id']
|
81
|
+
output_object.id = deserialized_property
|
82
|
+
|
83
|
+
deserialized_property = object['type']
|
84
|
+
output_object.type = deserialized_property
|
85
|
+
|
86
|
+
output_object
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource filter.
|
10
|
+
#
|
11
|
+
class GenericResourceFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the resource type.
|
16
|
+
attr_accessor :resource_type
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the tag name.
|
19
|
+
attr_accessor :tagname
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the tag value.
|
22
|
+
attr_accessor :tagvalue
|
23
|
+
|
24
|
+
#
|
25
|
+
# Validate the object. Throws ValidationError if validation fails.
|
26
|
+
#
|
27
|
+
def validate
|
28
|
+
# Nothing to validate
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Serializes given Model object into Ruby Hash.
|
33
|
+
# @param object Model object to serialize.
|
34
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
+
#
|
36
|
+
def self.serialize_object(object)
|
37
|
+
object.validate
|
38
|
+
output_object = {}
|
39
|
+
|
40
|
+
serialized_property = object.resource_type
|
41
|
+
output_object['resourceType'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.tagname
|
44
|
+
output_object['tagname'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.tagvalue
|
47
|
+
output_object['tagvalue'] = 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 [GenericResourceFilter] Deserialized object.
|
56
|
+
#
|
57
|
+
def self.deserialize_object(object)
|
58
|
+
return if object.nil?
|
59
|
+
output_object = GenericResourceFilter.new
|
60
|
+
|
61
|
+
deserialized_property = object['resourceType']
|
62
|
+
output_object.resource_type = deserialized_property
|
63
|
+
|
64
|
+
deserialized_property = object['tagname']
|
65
|
+
output_object.tagname = deserialized_property
|
66
|
+
|
67
|
+
deserialized_property = object['tagvalue']
|
68
|
+
output_object.tagvalue = deserialized_property
|
69
|
+
|
70
|
+
output_object
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group filter.
|
10
|
+
#
|
11
|
+
class ResourceGroupFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the tag name.
|
16
|
+
attr_accessor :tag_name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the tag value.
|
19
|
+
attr_accessor :tag_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.tag_name
|
38
|
+
output_object['tagName'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
serialized_property = object.tag_value
|
41
|
+
output_object['tagValue'] = 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 [ResourceGroupFilter] Deserialized object.
|
50
|
+
#
|
51
|
+
def self.deserialize_object(object)
|
52
|
+
return if object.nil?
|
53
|
+
output_object = ResourceGroupFilter.new
|
54
|
+
|
55
|
+
deserialized_property = object['tagName']
|
56
|
+
output_object.tag_name = deserialized_property
|
57
|
+
|
58
|
+
deserialized_property = object['tagValue']
|
59
|
+
output_object.tag_value = deserialized_property
|
60
|
+
|
61
|
+
output_object
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'ms_rest_azure'
|
20
|
+
|
21
|
+
module Azure::ARM::Features
|
22
|
+
autoload :Features, 'azure_mgmt_features/features.rb'
|
23
|
+
autoload :FeatureClient, 'azure_mgmt_features/feature_client.rb'
|
24
|
+
|
25
|
+
module Models
|
26
|
+
autoload :DeploymentExtendedFilter, 'azure_mgmt_features/models/deployment_extended_filter.rb'
|
27
|
+
autoload :GenericResourceFilter, 'azure_mgmt_features/models/generic_resource_filter.rb'
|
28
|
+
autoload :ResourceGroupFilter, 'azure_mgmt_features/models/resource_group_filter.rb'
|
29
|
+
autoload :FeatureProperties, 'azure_mgmt_features/models/feature_properties.rb'
|
30
|
+
autoload :FeatureResult, 'azure_mgmt_features/models/feature_result.rb'
|
31
|
+
autoload :FeatureOperationsListResult, 'azure_mgmt_features/models/feature_operations_list_result.rb'
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: azure_mgmt_features
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Microsoft Corporation
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ms_rest_azure
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
83
|
+
description: Microsoft Azure Resource Provider Feature Management Client Library for
|
84
|
+
Ruby
|
85
|
+
email: azrubyteam@microsoft.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".rspec"
|
91
|
+
- LICENSE.txt
|
92
|
+
- Rakefile
|
93
|
+
- azure_mgmt_features.gemspec
|
94
|
+
- lib/azure_mgmt_features.rb
|
95
|
+
- lib/azure_mgmt_features/feature_client.rb
|
96
|
+
- lib/azure_mgmt_features/features.rb
|
97
|
+
- lib/azure_mgmt_features/models/deployment_extended_filter.rb
|
98
|
+
- lib/azure_mgmt_features/models/feature_operations_list_result.rb
|
99
|
+
- lib/azure_mgmt_features/models/feature_properties.rb
|
100
|
+
- lib/azure_mgmt_features/models/feature_result.rb
|
101
|
+
- lib/azure_mgmt_features/models/generic_resource_filter.rb
|
102
|
+
- lib/azure_mgmt_features/models/resource_group_filter.rb
|
103
|
+
- lib/azure_mgmt_features/module_definition.rb
|
104
|
+
- lib/azure_mgmt_features/version.rb
|
105
|
+
homepage: http://github.com/azure/azure-sdk-for-ruby
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.9.3
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.4.6
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: Official Ruby client library to consume Microsoft Azure Resource Provider
|
129
|
+
Feature Management services.
|
130
|
+
test_files: []
|