azure_mgmt_search 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-08-19/generated/azure_mgmt_search.rb +8 -4
- data/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb +12 -10
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation.rb +61 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation_display.rb +84 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation_list_result.rb +71 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/resource.rb +3 -2
- data/lib/2015-08-19/generated/azure_mgmt_search/models/search_service.rb +4 -3
- data/lib/2015-08-19/generated/azure_mgmt_search/operations.rb +110 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb +18 -15
- data/lib/2015-08-19/generated/azure_mgmt_search/search_management_client.rb +8 -1
- data/lib/2015-08-19/generated/azure_mgmt_search/services.rb +160 -33
- data/lib/profiles/latest/modules/search_profile_module.rb +91 -58
- data/lib/profiles/latest/search_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/search_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +7 -3
@@ -38,8 +38,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
38
38
|
#
|
39
39
|
# @return [QueryKey] operation results.
|
40
40
|
#
|
41
|
-
def create(resource_group_name, search_service_name, name, search_management_request_options
|
42
|
-
response = create_async(resource_group_name, search_service_name, name, search_management_request_options, custom_headers).value!
|
41
|
+
def create(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil)
|
42
|
+
response = create_async(resource_group_name, search_service_name, name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
43
43
|
response.body unless response.nil?
|
44
44
|
end
|
45
45
|
|
@@ -60,8 +60,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
60
60
|
#
|
61
61
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
62
|
#
|
63
|
-
def create_with_http_info(resource_group_name, search_service_name, name, search_management_request_options
|
64
|
-
create_async(resource_group_name, search_service_name, name, search_management_request_options, custom_headers).value!
|
63
|
+
def create_with_http_info(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil)
|
64
|
+
create_async(resource_group_name, search_service_name, name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
65
65
|
end
|
66
66
|
|
67
67
|
#
|
@@ -81,7 +81,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
81
81
|
#
|
82
82
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
83
|
#
|
84
|
-
def create_async(resource_group_name, search_service_name, name, search_management_request_options
|
84
|
+
def create_async(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil)
|
85
85
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
86
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
87
87
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -94,6 +94,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
94
94
|
end
|
95
95
|
|
96
96
|
request_headers = {}
|
97
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
97
98
|
|
98
99
|
# Set Headers
|
99
100
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -154,8 +155,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
154
155
|
#
|
155
156
|
# @return [ListQueryKeysResult] operation results.
|
156
157
|
#
|
157
|
-
def list_by_search_service(resource_group_name, search_service_name, search_management_request_options
|
158
|
-
response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
158
|
+
def list_by_search_service(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
159
|
+
response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
159
160
|
response.body unless response.nil?
|
160
161
|
end
|
161
162
|
|
@@ -174,8 +175,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
174
175
|
#
|
175
176
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
176
177
|
#
|
177
|
-
def list_by_search_service_with_http_info(resource_group_name, search_service_name, search_management_request_options
|
178
|
-
list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
178
|
+
def list_by_search_service_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
179
|
+
list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
179
180
|
end
|
180
181
|
|
181
182
|
#
|
@@ -193,7 +194,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
193
194
|
#
|
194
195
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
195
196
|
#
|
196
|
-
def list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options
|
197
|
+
def list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
197
198
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
198
199
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
199
200
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -205,6 +206,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
205
206
|
end
|
206
207
|
|
207
208
|
request_headers = {}
|
209
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
208
210
|
|
209
211
|
# Set Headers
|
210
212
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -268,8 +270,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
268
270
|
# will be added to the HTTP request.
|
269
271
|
#
|
270
272
|
#
|
271
|
-
def delete(resource_group_name, search_service_name, key, search_management_request_options
|
272
|
-
response = delete_async(resource_group_name, search_service_name, key, search_management_request_options, custom_headers).value!
|
273
|
+
def delete(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil)
|
274
|
+
response = delete_async(resource_group_name, search_service_name, key, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
273
275
|
nil
|
274
276
|
end
|
275
277
|
|
@@ -292,8 +294,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
292
294
|
#
|
293
295
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
294
296
|
#
|
295
|
-
def delete_with_http_info(resource_group_name, search_service_name, key, search_management_request_options
|
296
|
-
delete_async(resource_group_name, search_service_name, key, search_management_request_options, custom_headers).value!
|
297
|
+
def delete_with_http_info(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil)
|
298
|
+
delete_async(resource_group_name, search_service_name, key, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
297
299
|
end
|
298
300
|
|
299
301
|
#
|
@@ -315,7 +317,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
315
317
|
#
|
316
318
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
317
319
|
#
|
318
|
-
def delete_async(resource_group_name, search_service_name, key, search_management_request_options
|
320
|
+
def delete_async(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil)
|
319
321
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
320
322
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
321
323
|
fail ArgumentError, 'key is nil' if key.nil?
|
@@ -328,6 +330,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
328
330
|
end
|
329
331
|
|
330
332
|
request_headers = {}
|
333
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
331
334
|
|
332
335
|
# Set Headers
|
333
336
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -37,6 +37,9 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
37
37
|
# is generated and included in each request. Default is true.
|
38
38
|
attr_accessor :generate_client_request_id
|
39
39
|
|
40
|
+
# @return [Operations] operations
|
41
|
+
attr_reader :operations
|
42
|
+
|
40
43
|
# @return [AdminKeys] admin_keys
|
41
44
|
attr_reader :admin_keys
|
42
45
|
|
@@ -59,6 +62,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
59
62
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
60
63
|
@credentials = credentials
|
61
64
|
|
65
|
+
@operations = Operations.new(self)
|
62
66
|
@admin_keys = AdminKeys.new(self)
|
63
67
|
@query_keys = QueryKeys.new(self)
|
64
68
|
@services = Services.new(self)
|
@@ -115,6 +119,9 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
115
119
|
fail ArgumentError, 'path is nil' if path.nil?
|
116
120
|
|
117
121
|
request_url = options[:base_url] || @base_url
|
122
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
123
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
124
|
+
end
|
118
125
|
|
119
126
|
request_headers = @request_headers
|
120
127
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -131,7 +138,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
131
138
|
#
|
132
139
|
def add_telemetry
|
133
140
|
sdk_information = 'azure_mgmt_search'
|
134
|
-
sdk_information = "#{sdk_information}/0.
|
141
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
135
142
|
add_user_agent_information(sdk_information)
|
136
143
|
end
|
137
144
|
end
|
@@ -45,8 +45,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
45
45
|
#
|
46
46
|
# @return [SearchService] operation results.
|
47
47
|
#
|
48
|
-
def create_or_update(resource_group_name, search_service_name, service, search_management_request_options
|
49
|
-
response = create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value!
|
48
|
+
def create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
49
|
+
response = create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
50
50
|
response.body unless response.nil?
|
51
51
|
end
|
52
52
|
|
@@ -71,9 +71,9 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
71
71
|
# @return [Concurrent::Promise] promise which provides async access to http
|
72
72
|
# response.
|
73
73
|
#
|
74
|
-
def create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options
|
74
|
+
def create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
75
75
|
# Send request
|
76
|
-
promise = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers)
|
76
|
+
promise = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers)
|
77
77
|
|
78
78
|
promise = promise.then do |response|
|
79
79
|
# Defining deserialization method.
|
@@ -89,6 +89,132 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
89
89
|
promise
|
90
90
|
end
|
91
91
|
|
92
|
+
#
|
93
|
+
# Updates an existing Search service in the given resource group.
|
94
|
+
#
|
95
|
+
# @param resource_group_name [String] The name of the resource group within the
|
96
|
+
# current subscription. You can obtain this value from the Azure Resource
|
97
|
+
# Manager API or the portal.
|
98
|
+
# @param search_service_name [String] The name of the Azure Search service to
|
99
|
+
# update.
|
100
|
+
# @param service [SearchService] The definition of the Search service to
|
101
|
+
# update.
|
102
|
+
# @param search_management_request_options [SearchManagementRequestOptions]
|
103
|
+
# Additional parameters for the operation
|
104
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
105
|
+
# will be added to the HTTP request.
|
106
|
+
#
|
107
|
+
# @return [SearchService] operation results.
|
108
|
+
#
|
109
|
+
def update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
110
|
+
response = update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
111
|
+
response.body unless response.nil?
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Updates an existing Search service in the given resource group.
|
116
|
+
#
|
117
|
+
# @param resource_group_name [String] The name of the resource group within the
|
118
|
+
# current subscription. You can obtain this value from the Azure Resource
|
119
|
+
# Manager API or the portal.
|
120
|
+
# @param search_service_name [String] The name of the Azure Search service to
|
121
|
+
# update.
|
122
|
+
# @param service [SearchService] The definition of the Search service to
|
123
|
+
# update.
|
124
|
+
# @param search_management_request_options [SearchManagementRequestOptions]
|
125
|
+
# Additional parameters for the operation
|
126
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
127
|
+
# will be added to the HTTP request.
|
128
|
+
#
|
129
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
130
|
+
#
|
131
|
+
def update_with_http_info(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
132
|
+
update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Updates an existing Search service in the given resource group.
|
137
|
+
#
|
138
|
+
# @param resource_group_name [String] The name of the resource group within the
|
139
|
+
# current subscription. You can obtain this value from the Azure Resource
|
140
|
+
# Manager API or the portal.
|
141
|
+
# @param search_service_name [String] The name of the Azure Search service to
|
142
|
+
# update.
|
143
|
+
# @param service [SearchService] The definition of the Search service to
|
144
|
+
# update.
|
145
|
+
# @param search_management_request_options [SearchManagementRequestOptions]
|
146
|
+
# Additional parameters for the operation
|
147
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
148
|
+
# to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
151
|
+
#
|
152
|
+
def update_async(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
153
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
154
|
+
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
155
|
+
fail ArgumentError, 'service is nil' if service.nil?
|
156
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
157
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
158
|
+
|
159
|
+
client_request_id = nil
|
160
|
+
unless search_management_request_options.nil?
|
161
|
+
client_request_id = search_management_request_options.clientRequestId
|
162
|
+
end
|
163
|
+
|
164
|
+
request_headers = {}
|
165
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
166
|
+
|
167
|
+
# Set Headers
|
168
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
169
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
170
|
+
request_headers['x-ms-client-request-id'] = client_request_id.to_s unless client_request_id.to_s.nil?
|
171
|
+
|
172
|
+
# Serialize Request
|
173
|
+
request_mapper = Azure::Search::Mgmt::V2015_08_19::Models::SearchService.mapper()
|
174
|
+
request_content = @client.serialize(request_mapper, service)
|
175
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
176
|
+
|
177
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}'
|
178
|
+
|
179
|
+
request_url = @base_url || @client.base_url
|
180
|
+
|
181
|
+
options = {
|
182
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
183
|
+
path_params: {'resourceGroupName' => resource_group_name,'searchServiceName' => search_service_name,'subscriptionId' => @client.subscription_id},
|
184
|
+
query_params: {'api-version' => @client.api_version},
|
185
|
+
body: request_content,
|
186
|
+
headers: request_headers.merge(custom_headers || {}),
|
187
|
+
base_url: request_url
|
188
|
+
}
|
189
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
190
|
+
|
191
|
+
promise = promise.then do |result|
|
192
|
+
http_response = result.response
|
193
|
+
status_code = http_response.status
|
194
|
+
response_content = http_response.body
|
195
|
+
unless status_code == 200
|
196
|
+
error_model = JSON.load(response_content)
|
197
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
198
|
+
end
|
199
|
+
|
200
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
201
|
+
# Deserialize Response
|
202
|
+
if status_code == 200
|
203
|
+
begin
|
204
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
205
|
+
result_mapper = Azure::Search::Mgmt::V2015_08_19::Models::SearchService.mapper()
|
206
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
207
|
+
rescue Exception => e
|
208
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
result
|
213
|
+
end
|
214
|
+
|
215
|
+
promise.execute
|
216
|
+
end
|
217
|
+
|
92
218
|
#
|
93
219
|
# Gets the Search service with the given name in the given resource group.
|
94
220
|
#
|
@@ -104,8 +230,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
104
230
|
#
|
105
231
|
# @return [SearchService] operation results.
|
106
232
|
#
|
107
|
-
def get(resource_group_name, search_service_name, search_management_request_options
|
108
|
-
response = get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
233
|
+
def get(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
234
|
+
response = get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
109
235
|
response.body unless response.nil?
|
110
236
|
end
|
111
237
|
|
@@ -124,8 +250,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
124
250
|
#
|
125
251
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
126
252
|
#
|
127
|
-
def get_with_http_info(resource_group_name, search_service_name, search_management_request_options
|
128
|
-
get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
253
|
+
def get_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
254
|
+
get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
129
255
|
end
|
130
256
|
|
131
257
|
#
|
@@ -143,7 +269,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
143
269
|
#
|
144
270
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
145
271
|
#
|
146
|
-
def get_async(resource_group_name, search_service_name, search_management_request_options
|
272
|
+
def get_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
147
273
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
148
274
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
149
275
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -155,6 +281,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
155
281
|
end
|
156
282
|
|
157
283
|
request_headers = {}
|
284
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
158
285
|
|
159
286
|
# Set Headers
|
160
287
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -215,8 +342,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
215
342
|
# will be added to the HTTP request.
|
216
343
|
#
|
217
344
|
#
|
218
|
-
def delete(resource_group_name, search_service_name, search_management_request_options
|
219
|
-
response = delete_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
345
|
+
def delete(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
346
|
+
response = delete_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
220
347
|
nil
|
221
348
|
end
|
222
349
|
|
@@ -236,8 +363,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
236
363
|
#
|
237
364
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
238
365
|
#
|
239
|
-
def delete_with_http_info(resource_group_name, search_service_name, search_management_request_options
|
240
|
-
delete_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
366
|
+
def delete_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
367
|
+
delete_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
241
368
|
end
|
242
369
|
|
243
370
|
#
|
@@ -256,7 +383,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
256
383
|
#
|
257
384
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
258
385
|
#
|
259
|
-
def delete_async(resource_group_name, search_service_name, search_management_request_options
|
386
|
+
def delete_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
260
387
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
261
388
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
262
389
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -268,6 +395,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
268
395
|
end
|
269
396
|
|
270
397
|
request_headers = {}
|
398
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
271
399
|
|
272
400
|
# Set Headers
|
273
401
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -316,8 +444,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
316
444
|
#
|
317
445
|
# @return [SearchServiceListResult] operation results.
|
318
446
|
#
|
319
|
-
def list_by_resource_group(resource_group_name, search_management_request_options
|
320
|
-
response = list_by_resource_group_async(resource_group_name, search_management_request_options, custom_headers).value!
|
447
|
+
def list_by_resource_group(resource_group_name, search_management_request_options:nil, custom_headers:nil)
|
448
|
+
response = list_by_resource_group_async(resource_group_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
321
449
|
response.body unless response.nil?
|
322
450
|
end
|
323
451
|
|
@@ -334,8 +462,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
334
462
|
#
|
335
463
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
336
464
|
#
|
337
|
-
def list_by_resource_group_with_http_info(resource_group_name, search_management_request_options
|
338
|
-
list_by_resource_group_async(resource_group_name, search_management_request_options, custom_headers).value!
|
465
|
+
def list_by_resource_group_with_http_info(resource_group_name, search_management_request_options:nil, custom_headers:nil)
|
466
|
+
list_by_resource_group_async(resource_group_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
339
467
|
end
|
340
468
|
|
341
469
|
#
|
@@ -351,7 +479,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
351
479
|
#
|
352
480
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
353
481
|
#
|
354
|
-
def list_by_resource_group_async(resource_group_name, search_management_request_options
|
482
|
+
def list_by_resource_group_async(resource_group_name, search_management_request_options:nil, custom_headers:nil)
|
355
483
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
356
484
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
357
485
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -362,6 +490,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
362
490
|
end
|
363
491
|
|
364
492
|
request_headers = {}
|
493
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
365
494
|
|
366
495
|
# Set Headers
|
367
496
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -423,8 +552,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
423
552
|
#
|
424
553
|
# @return [CheckNameAvailabilityOutput] operation results.
|
425
554
|
#
|
426
|
-
def check_name_availability(name, search_management_request_options
|
427
|
-
response = check_name_availability_async(name, search_management_request_options, custom_headers).value!
|
555
|
+
def check_name_availability(name, search_management_request_options:nil, custom_headers:nil)
|
556
|
+
response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
428
557
|
response.body unless response.nil?
|
429
558
|
end
|
430
559
|
|
@@ -444,8 +573,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
444
573
|
#
|
445
574
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
446
575
|
#
|
447
|
-
def check_name_availability_with_http_info(name, search_management_request_options
|
448
|
-
check_name_availability_async(name, search_management_request_options, custom_headers).value!
|
576
|
+
def check_name_availability_with_http_info(name, search_management_request_options:nil, custom_headers:nil)
|
577
|
+
check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
449
578
|
end
|
450
579
|
|
451
580
|
#
|
@@ -464,7 +593,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
464
593
|
#
|
465
594
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
466
595
|
#
|
467
|
-
def check_name_availability_async(name, search_management_request_options
|
596
|
+
def check_name_availability_async(name, search_management_request_options:nil, custom_headers:nil)
|
468
597
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
469
598
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
470
599
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -479,14 +608,13 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
479
608
|
end
|
480
609
|
|
481
610
|
request_headers = {}
|
611
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
482
612
|
|
483
613
|
# Set Headers
|
484
614
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
485
615
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
486
616
|
request_headers['x-ms-client-request-id'] = client_request_id.to_s unless client_request_id.to_s.nil?
|
487
617
|
|
488
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
489
|
-
|
490
618
|
# Serialize Request
|
491
619
|
request_mapper = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput.mapper()
|
492
620
|
request_content = @client.serialize(request_mapper, check_name_availability_input)
|
@@ -557,8 +685,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
557
685
|
#
|
558
686
|
# @return [SearchService] operation results.
|
559
687
|
#
|
560
|
-
def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options
|
561
|
-
response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value!
|
688
|
+
def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
689
|
+
response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
562
690
|
response.body unless response.nil?
|
563
691
|
end
|
564
692
|
|
@@ -586,8 +714,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
586
714
|
#
|
587
715
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
588
716
|
#
|
589
|
-
def begin_create_or_update_with_http_info(resource_group_name, search_service_name, service, search_management_request_options
|
590
|
-
begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value!
|
717
|
+
def begin_create_or_update_with_http_info(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
718
|
+
begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
591
719
|
end
|
592
720
|
|
593
721
|
#
|
@@ -614,7 +742,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
614
742
|
#
|
615
743
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
616
744
|
#
|
617
|
-
def begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options
|
745
|
+
def begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil)
|
618
746
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
619
747
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
620
748
|
fail ArgumentError, 'service is nil' if service.nil?
|
@@ -627,14 +755,13 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
627
755
|
end
|
628
756
|
|
629
757
|
request_headers = {}
|
758
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
630
759
|
|
631
760
|
# Set Headers
|
632
761
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
633
762
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
634
763
|
request_headers['x-ms-client-request-id'] = client_request_id.to_s unless client_request_id.to_s.nil?
|
635
764
|
|
636
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
637
|
-
|
638
765
|
# Serialize Request
|
639
766
|
request_mapper = Azure::Search::Mgmt::V2015_08_19::Models::SearchService.mapper()
|
640
767
|
request_content = @client.serialize(request_mapper, service)
|