azure_mgmt_search 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_search/admin_keys.rb +9 -12
- data/lib/generated/azure_mgmt_search/query_keys.rb +9 -12
- data/lib/generated/azure_mgmt_search/search_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_search/services.rb +27 -36
- data/lib/generated/azure_mgmt_search/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4689f6ccfc9f6a2c795abab169c76d59d8ece867
|
4
|
+
data.tar.gz: 705bd5d1b682c7ce0c5a10a372ecd5a0198ed23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8358a659b8d88f0754b0dede860790817be9d25259e3eebb33c4d1d45b5dc08e84156a224709563b49580460910f66e06e88d2c88a608d80f32616334fb095
|
7
|
+
data.tar.gz: c392099bae4d7bea0993891b8dc9f5bf55b1bd3a434c7b4ec9ab2ac75527bfd998e6c8afc45d8488a499783452ddfd3f2ff038b8368217b868a4b3200967040d
|
@@ -83,30 +83,27 @@ module Azure::ARM::Search
|
|
83
83
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
84
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
85
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listAdminKeys'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
86
89
|
options = {
|
87
90
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
91
|
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
89
92
|
query_params: {'api-version' => @client.api_version},
|
90
|
-
headers: request_headers.merge(custom_headers || {})
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
91
95
|
}
|
96
|
+
promise = @client.make_request_async(:post, path_template, options)
|
92
97
|
|
93
|
-
|
94
|
-
|
95
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
96
|
-
promise = request.run_promise do |req|
|
97
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
98
|
-
end
|
99
|
-
|
100
|
-
promise = promise.then do |http_response|
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
101
100
|
status_code = http_response.status
|
102
101
|
response_content = http_response.body
|
103
102
|
unless status_code == 200
|
104
103
|
error_model = JSON.load(response_content)
|
105
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
104
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
106
105
|
end
|
107
106
|
|
108
|
-
# Create Result
|
109
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
110
107
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
111
108
|
# Deserialize Response
|
112
109
|
if status_code == 200
|
@@ -80,30 +80,27 @@ module Azure::ARM::Search
|
|
80
80
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
81
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
82
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys'
|
83
|
+
|
84
|
+
request_url = @base_url || @client.base_url
|
85
|
+
|
83
86
|
options = {
|
84
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
88
|
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
86
89
|
query_params: {'api-version' => @client.api_version},
|
87
|
-
headers: request_headers.merge(custom_headers || {})
|
90
|
+
headers: request_headers.merge(custom_headers || {}),
|
91
|
+
base_url: request_url
|
88
92
|
}
|
93
|
+
promise = @client.make_request_async(:get, path_template, options)
|
89
94
|
|
90
|
-
|
91
|
-
|
92
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
93
|
-
promise = request.run_promise do |req|
|
94
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
95
|
-
end
|
96
|
-
|
97
|
-
promise = promise.then do |http_response|
|
95
|
+
promise = promise.then do |result|
|
96
|
+
http_response = result.response
|
98
97
|
status_code = http_response.status
|
99
98
|
response_content = http_response.body
|
100
99
|
unless status_code == 200
|
101
100
|
error_model = JSON.load(response_content)
|
102
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
101
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
103
102
|
end
|
104
103
|
|
105
|
-
# Create Result
|
106
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
107
104
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
105
|
# Deserialize Response
|
109
106
|
if status_code == 200
|
@@ -36,10 +36,6 @@ module Azure::ARM::Search
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
-
# @return Subscription credentials which uniquely identify client
|
40
|
-
# subscription.
|
41
|
-
attr_accessor :credentials
|
42
|
-
|
43
39
|
# @return [AdminKeys] admin_keys
|
44
40
|
attr_reader :admin_keys
|
45
41
|
|
@@ -72,5 +68,60 @@ module Azure::ARM::Search
|
|
72
68
|
@generate_client_request_id = true
|
73
69
|
end
|
74
70
|
|
71
|
+
#
|
72
|
+
# Makes a request and returns the body of the response.
|
73
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
74
|
+
# @param path [String] the path, relative to {base_url}.
|
75
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
76
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
77
|
+
# Example:
|
78
|
+
#
|
79
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
80
|
+
# path = "/path"
|
81
|
+
# options = {
|
82
|
+
# body: request_content,
|
83
|
+
# query_params: {'api-version' => '2016-02-01'}
|
84
|
+
# }
|
85
|
+
# result = @client.make_request(:put, path, options)
|
86
|
+
#
|
87
|
+
def make_request(method, path, options = {})
|
88
|
+
result = make_request_with_http_info(method, path, options)
|
89
|
+
result.body unless result.nil?
|
90
|
+
end
|
91
|
+
|
92
|
+
#
|
93
|
+
# Makes a request and returns the operation response.
|
94
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
95
|
+
# @param path [String] the path, relative to {base_url}.
|
96
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
97
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
98
|
+
#
|
99
|
+
def make_request_with_http_info(method, path, options = {})
|
100
|
+
result = make_request_async(method, path, options).value!
|
101
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
102
|
+
result
|
103
|
+
end
|
104
|
+
|
105
|
+
#
|
106
|
+
# Makes a request asynchronously.
|
107
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
108
|
+
# @param path [String] the path, relative to {base_url}.
|
109
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
110
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
111
|
+
#
|
112
|
+
def make_request_async(method, path, options = {})
|
113
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
114
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
115
|
+
|
116
|
+
request_url = options[:base_url] || @base_url
|
117
|
+
|
118
|
+
request_headers = @request_headers
|
119
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
120
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
121
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
122
|
+
|
123
|
+
super(request_url, method, path, options)
|
124
|
+
end
|
125
|
+
|
75
126
|
end
|
76
127
|
end
|
@@ -101,31 +101,28 @@ module Azure::ARM::Search
|
|
101
101
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
102
102
|
|
103
103
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}'
|
104
|
+
|
105
|
+
request_url = @base_url || @client.base_url
|
106
|
+
|
104
107
|
options = {
|
105
108
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
106
109
|
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
107
110
|
query_params: {'api-version' => @client.api_version},
|
108
111
|
body: request_content,
|
109
|
-
headers: request_headers.merge(custom_headers || {})
|
112
|
+
headers: request_headers.merge(custom_headers || {}),
|
113
|
+
base_url: request_url
|
110
114
|
}
|
115
|
+
promise = @client.make_request_async(:put, path_template, options)
|
111
116
|
|
112
|
-
|
113
|
-
|
114
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
115
|
-
promise = request.run_promise do |req|
|
116
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
117
|
-
end
|
118
|
-
|
119
|
-
promise = promise.then do |http_response|
|
117
|
+
promise = promise.then do |result|
|
118
|
+
http_response = result.response
|
120
119
|
status_code = http_response.status
|
121
120
|
response_content = http_response.body
|
122
121
|
unless status_code == 200 || status_code == 201
|
123
122
|
error_model = JSON.load(response_content)
|
124
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
123
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
125
124
|
end
|
126
125
|
|
127
|
-
# Create Result
|
128
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
129
126
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
130
127
|
# Deserialize Response
|
131
128
|
if status_code == 200
|
@@ -211,30 +208,27 @@ module Azure::ARM::Search
|
|
211
208
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
212
209
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
213
210
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
214
|
options = {
|
215
215
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
216
|
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
217
217
|
query_params: {'api-version' => @client.api_version},
|
218
|
-
headers: request_headers.merge(custom_headers || {})
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
219
220
|
}
|
221
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
220
222
|
|
221
|
-
|
222
|
-
|
223
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
224
|
-
promise = request.run_promise do |req|
|
225
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
226
|
-
end
|
227
|
-
|
228
|
-
promise = promise.then do |http_response|
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
229
225
|
status_code = http_response.status
|
230
226
|
response_content = http_response.body
|
231
227
|
unless status_code == 200 || status_code == 404 || status_code == 204
|
232
228
|
error_model = JSON.load(response_content)
|
233
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
234
230
|
end
|
235
231
|
|
236
|
-
# Create Result
|
237
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
238
232
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
239
233
|
|
240
234
|
result
|
@@ -294,30 +288,27 @@ module Azure::ARM::Search
|
|
294
288
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
295
289
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
296
290
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices'
|
291
|
+
|
292
|
+
request_url = @base_url || @client.base_url
|
293
|
+
|
297
294
|
options = {
|
298
295
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
299
296
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
300
297
|
query_params: {'api-version' => @client.api_version},
|
301
|
-
headers: request_headers.merge(custom_headers || {})
|
298
|
+
headers: request_headers.merge(custom_headers || {}),
|
299
|
+
base_url: request_url
|
302
300
|
}
|
301
|
+
promise = @client.make_request_async(:get, path_template, options)
|
303
302
|
|
304
|
-
|
305
|
-
|
306
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
307
|
-
promise = request.run_promise do |req|
|
308
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
309
|
-
end
|
310
|
-
|
311
|
-
promise = promise.then do |http_response|
|
303
|
+
promise = promise.then do |result|
|
304
|
+
http_response = result.response
|
312
305
|
status_code = http_response.status
|
313
306
|
response_content = http_response.body
|
314
307
|
unless status_code == 200
|
315
308
|
error_model = JSON.load(response_content)
|
316
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
309
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
317
310
|
end
|
318
311
|
|
319
|
-
# Create Result
|
320
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
321
312
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
322
313
|
# Deserialize Response
|
323
314
|
if status_code == 200
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.6.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.6.0
|
83
83
|
description: Microsoft Azure Search Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
122
|
+
version: 2.0.0
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - ">="
|