azure_mgmt_cognitive_services 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services.rb +44 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +1018 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +131 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +163 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +112 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb +58 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb +57 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb +57 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +70 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb +59 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/error.rb +48 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/error_body.rb +58 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/key_name.rb +16 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/kind.rb +31 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb +18 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb +48 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb +62 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku_name.rb +25 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku_tier.rb +17 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/module_definition.rb +9 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +72 -67
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +15 -13
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +4 -1
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb +6 -5
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb +6 -5
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +2 -3
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +4 -2
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/kind.rb +4 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb +2 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +15 -13
- data/lib/azure_mgmt_cognitive_services.rb +1 -0
- data/lib/profiles/latest/cognitiveservices_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/cognitiveservices_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +96 -77
- data/lib/version.rb +1 -1
- metadata +22 -2
@@ -0,0 +1,62 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The SKU of the cognitive services account.
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SkuName] Gets or sets the sku name. Required for account
|
16
|
+
# creation, optional for update. Possible values include: 'F0', 'P0',
|
17
|
+
# 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [SkuTier] Gets the sku tier. This is based on the SKU name.
|
21
|
+
# Possible values include: 'Free', 'Standard', 'Premium'
|
22
|
+
attr_accessor :tier
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for Sku class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'Sku',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'Sku',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: true,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
tier: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'tier',
|
51
|
+
type: {
|
52
|
+
name: 'Enum',
|
53
|
+
module: 'SkuTier'
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuName
|
10
|
+
#
|
11
|
+
module SkuName
|
12
|
+
F0 = "F0"
|
13
|
+
P0 = "P0"
|
14
|
+
P1 = "P1"
|
15
|
+
P2 = "P2"
|
16
|
+
S0 = "S0"
|
17
|
+
S1 = "S1"
|
18
|
+
S2 = "S2"
|
19
|
+
S3 = "S3"
|
20
|
+
S4 = "S4"
|
21
|
+
S5 = "S5"
|
22
|
+
S6 = "S6"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuTier
|
10
|
+
#
|
11
|
+
module SkuTier
|
12
|
+
Free = "Free"
|
13
|
+
Standard = "Standard"
|
14
|
+
Premium = "Premium"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::CognitiveServices end
|
8
|
+
module Azure::CognitiveServices::Mgmt end
|
9
|
+
module Azure::CognitiveServices::Mgmt::V2016_02_01_preview end
|
@@ -36,8 +36,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
36
36
|
#
|
37
37
|
# @return [CognitiveServicesAccount] operation results.
|
38
38
|
#
|
39
|
-
def create(resource_group_name, account_name, parameters, custom_headers
|
40
|
-
response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
39
|
+
def create(resource_group_name, account_name, parameters, custom_headers:nil)
|
40
|
+
response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -56,8 +56,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def create_with_http_info(resource_group_name, account_name, parameters, custom_headers
|
60
|
-
create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
59
|
+
def create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
|
60
|
+
create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -75,7 +75,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def create_async(resource_group_name, account_name, parameters, custom_headers
|
78
|
+
def create_async(resource_group_name, account_name, parameters, custom_headers:nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
81
81
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -87,13 +87,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
87
87
|
|
88
88
|
|
89
89
|
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
90
91
|
|
91
92
|
# Set Headers
|
92
93
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
93
94
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
94
95
|
|
95
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
96
|
-
|
97
96
|
# Serialize Request
|
98
97
|
request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters.mapper()
|
99
98
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -167,8 +166,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
167
166
|
#
|
168
167
|
# @return [CognitiveServicesAccount] operation results.
|
169
168
|
#
|
170
|
-
def update(resource_group_name, account_name, sku
|
171
|
-
response = update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
|
169
|
+
def update(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
|
170
|
+
response = update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value!
|
172
171
|
response.body unless response.nil?
|
173
172
|
end
|
174
173
|
|
@@ -189,8 +188,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
189
188
|
#
|
190
189
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
191
190
|
#
|
192
|
-
def update_with_http_info(resource_group_name, account_name, sku
|
193
|
-
update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
|
191
|
+
def update_with_http_info(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
|
192
|
+
update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value!
|
194
193
|
end
|
195
194
|
|
196
195
|
#
|
@@ -210,7 +209,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
210
209
|
#
|
211
210
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
212
211
|
#
|
213
|
-
def update_async(resource_group_name, account_name, sku
|
212
|
+
def update_async(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
|
214
213
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
215
214
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
216
215
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -226,13 +225,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
226
225
|
end
|
227
226
|
|
228
227
|
request_headers = {}
|
228
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
229
229
|
|
230
230
|
# Set Headers
|
231
231
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
232
232
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
233
233
|
|
234
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
235
|
-
|
236
234
|
# Serialize Request
|
237
235
|
request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters.mapper()
|
238
236
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -289,8 +287,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
289
287
|
# will be added to the HTTP request.
|
290
288
|
#
|
291
289
|
#
|
292
|
-
def delete(resource_group_name, account_name, custom_headers
|
293
|
-
response = delete_async(resource_group_name, account_name, custom_headers).value!
|
290
|
+
def delete(resource_group_name, account_name, custom_headers:nil)
|
291
|
+
response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
294
292
|
nil
|
295
293
|
end
|
296
294
|
|
@@ -305,8 +303,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
305
303
|
#
|
306
304
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
307
305
|
#
|
308
|
-
def delete_with_http_info(resource_group_name, account_name, custom_headers
|
309
|
-
delete_async(resource_group_name, account_name, custom_headers).value!
|
306
|
+
def delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
307
|
+
delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
310
308
|
end
|
311
309
|
|
312
310
|
#
|
@@ -320,7 +318,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
320
318
|
#
|
321
319
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
322
320
|
#
|
323
|
-
def delete_async(resource_group_name, account_name, custom_headers
|
321
|
+
def delete_async(resource_group_name, account_name, custom_headers:nil)
|
324
322
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
325
323
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
326
324
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -331,6 +329,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
331
329
|
|
332
330
|
|
333
331
|
request_headers = {}
|
332
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
334
333
|
|
335
334
|
# Set Headers
|
336
335
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -376,8 +375,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
376
375
|
#
|
377
376
|
# @return [CognitiveServicesAccount] operation results.
|
378
377
|
#
|
379
|
-
def get_properties(resource_group_name, account_name, custom_headers
|
380
|
-
response = get_properties_async(resource_group_name, account_name, custom_headers).value!
|
378
|
+
def get_properties(resource_group_name, account_name, custom_headers:nil)
|
379
|
+
response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
381
380
|
response.body unless response.nil?
|
382
381
|
end
|
383
382
|
|
@@ -392,8 +391,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
392
391
|
#
|
393
392
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
394
393
|
#
|
395
|
-
def get_properties_with_http_info(resource_group_name, account_name, custom_headers
|
396
|
-
get_properties_async(resource_group_name, account_name, custom_headers).value!
|
394
|
+
def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
395
|
+
get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
397
396
|
end
|
398
397
|
|
399
398
|
#
|
@@ -407,7 +406,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
407
406
|
#
|
408
407
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
409
408
|
#
|
410
|
-
def get_properties_async(resource_group_name, account_name, custom_headers
|
409
|
+
def get_properties_async(resource_group_name, account_name, custom_headers:nil)
|
411
410
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
412
411
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
413
412
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -418,6 +417,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
418
417
|
|
419
418
|
|
420
419
|
request_headers = {}
|
420
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
421
421
|
|
422
422
|
# Set Headers
|
423
423
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -472,8 +472,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
472
472
|
#
|
473
473
|
# @return [Array<CognitiveServicesAccount>] operation results.
|
474
474
|
#
|
475
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
476
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
475
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
476
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
477
477
|
first_page.get_all_items
|
478
478
|
end
|
479
479
|
|
@@ -487,8 +487,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
487
487
|
#
|
488
488
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
489
489
|
#
|
490
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
491
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
490
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
491
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
492
492
|
end
|
493
493
|
|
494
494
|
#
|
@@ -501,13 +501,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
501
501
|
#
|
502
502
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
503
503
|
#
|
504
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
504
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
505
505
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
506
506
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
507
507
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
508
508
|
|
509
509
|
|
510
510
|
request_headers = {}
|
511
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
511
512
|
|
512
513
|
# Set Headers
|
513
514
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -560,8 +561,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
560
561
|
#
|
561
562
|
# @return [Array<CognitiveServicesAccount>] operation results.
|
562
563
|
#
|
563
|
-
def list(custom_headers
|
564
|
-
first_page = list_as_lazy(custom_headers)
|
564
|
+
def list(custom_headers:nil)
|
565
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
565
566
|
first_page.get_all_items
|
566
567
|
end
|
567
568
|
|
@@ -573,8 +574,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
573
574
|
#
|
574
575
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
575
576
|
#
|
576
|
-
def list_with_http_info(custom_headers
|
577
|
-
list_async(custom_headers).value!
|
577
|
+
def list_with_http_info(custom_headers:nil)
|
578
|
+
list_async(custom_headers:custom_headers).value!
|
578
579
|
end
|
579
580
|
|
580
581
|
#
|
@@ -585,12 +586,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
585
586
|
#
|
586
587
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
587
588
|
#
|
588
|
-
def list_async(custom_headers
|
589
|
+
def list_async(custom_headers:nil)
|
589
590
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
590
591
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
591
592
|
|
592
593
|
|
593
594
|
request_headers = {}
|
595
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
594
596
|
|
595
597
|
# Set Headers
|
596
598
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -646,8 +648,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
646
648
|
#
|
647
649
|
# @return [CognitiveServicesAccountKeys] operation results.
|
648
650
|
#
|
649
|
-
def list_keys(resource_group_name, account_name, custom_headers
|
650
|
-
response = list_keys_async(resource_group_name, account_name, custom_headers).value!
|
651
|
+
def list_keys(resource_group_name, account_name, custom_headers:nil)
|
652
|
+
response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
651
653
|
response.body unless response.nil?
|
652
654
|
end
|
653
655
|
|
@@ -662,8 +664,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
662
664
|
#
|
663
665
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
664
666
|
#
|
665
|
-
def list_keys_with_http_info(resource_group_name, account_name, custom_headers
|
666
|
-
list_keys_async(resource_group_name, account_name, custom_headers).value!
|
667
|
+
def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
668
|
+
list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
667
669
|
end
|
668
670
|
|
669
671
|
#
|
@@ -677,7 +679,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
677
679
|
#
|
678
680
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
679
681
|
#
|
680
|
-
def list_keys_async(resource_group_name, account_name, custom_headers
|
682
|
+
def list_keys_async(resource_group_name, account_name, custom_headers:nil)
|
681
683
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
682
684
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
683
685
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -688,6 +690,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
688
690
|
|
689
691
|
|
690
692
|
request_headers = {}
|
693
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
691
694
|
|
692
695
|
# Set Headers
|
693
696
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -746,8 +749,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
746
749
|
#
|
747
750
|
# @return [CognitiveServicesAccountKeys] operation results.
|
748
751
|
#
|
749
|
-
def regenerate_key(resource_group_name, account_name, key_name, custom_headers
|
750
|
-
response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
|
752
|
+
def regenerate_key(resource_group_name, account_name, key_name, custom_headers:nil)
|
753
|
+
response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:custom_headers).value!
|
751
754
|
response.body unless response.nil?
|
752
755
|
end
|
753
756
|
|
@@ -765,8 +768,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
765
768
|
#
|
766
769
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
767
770
|
#
|
768
|
-
def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers
|
769
|
-
regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
|
771
|
+
def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers:nil)
|
772
|
+
regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:custom_headers).value!
|
770
773
|
end
|
771
774
|
|
772
775
|
#
|
@@ -783,7 +786,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
783
786
|
#
|
784
787
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
785
788
|
#
|
786
|
-
def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers
|
789
|
+
def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:nil)
|
787
790
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
788
791
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
789
792
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -799,13 +802,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
799
802
|
end
|
800
803
|
|
801
804
|
request_headers = {}
|
805
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
802
806
|
|
803
807
|
# Set Headers
|
804
808
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
805
809
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
806
810
|
|
807
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
808
|
-
|
809
811
|
# Serialize Request
|
810
812
|
request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters.mapper()
|
811
813
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -863,8 +865,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
863
865
|
#
|
864
866
|
# @return [CognitiveServicesAccountEnumerateSkusResult] operation results.
|
865
867
|
#
|
866
|
-
def list_skus(resource_group_name, account_name, custom_headers
|
867
|
-
response = list_skus_async(resource_group_name, account_name, custom_headers).value!
|
868
|
+
def list_skus(resource_group_name, account_name, custom_headers:nil)
|
869
|
+
response = list_skus_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
868
870
|
response.body unless response.nil?
|
869
871
|
end
|
870
872
|
|
@@ -879,8 +881,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
879
881
|
#
|
880
882
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
881
883
|
#
|
882
|
-
def list_skus_with_http_info(resource_group_name, account_name, custom_headers
|
883
|
-
list_skus_async(resource_group_name, account_name, custom_headers).value!
|
884
|
+
def list_skus_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
885
|
+
list_skus_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
884
886
|
end
|
885
887
|
|
886
888
|
#
|
@@ -894,7 +896,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
894
896
|
#
|
895
897
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
896
898
|
#
|
897
|
-
def list_skus_async(resource_group_name, account_name, custom_headers
|
899
|
+
def list_skus_async(resource_group_name, account_name, custom_headers:nil)
|
898
900
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
899
901
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
900
902
|
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
@@ -905,6 +907,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
905
907
|
|
906
908
|
|
907
909
|
request_headers = {}
|
910
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
908
911
|
|
909
912
|
# Set Headers
|
910
913
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -959,8 +962,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
959
962
|
#
|
960
963
|
# @return [CognitiveServicesAccountListResult] operation results.
|
961
964
|
#
|
962
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
963
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
965
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
966
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
964
967
|
response.body unless response.nil?
|
965
968
|
end
|
966
969
|
|
@@ -974,8 +977,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
974
977
|
#
|
975
978
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
976
979
|
#
|
977
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
978
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
980
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
981
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
979
982
|
end
|
980
983
|
|
981
984
|
#
|
@@ -988,11 +991,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
988
991
|
#
|
989
992
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
990
993
|
#
|
991
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
994
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
992
995
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
993
996
|
|
994
997
|
|
995
998
|
request_headers = {}
|
999
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
996
1000
|
|
997
1001
|
# Set Headers
|
998
1002
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1046,8 +1050,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
1046
1050
|
#
|
1047
1051
|
# @return [CognitiveServicesAccountListResult] operation results.
|
1048
1052
|
#
|
1049
|
-
def list_next(next_page_link, custom_headers
|
1050
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1053
|
+
def list_next(next_page_link, custom_headers:nil)
|
1054
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1051
1055
|
response.body unless response.nil?
|
1052
1056
|
end
|
1053
1057
|
|
@@ -1061,8 +1065,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
1061
1065
|
#
|
1062
1066
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1063
1067
|
#
|
1064
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1065
|
-
list_next_async(next_page_link, custom_headers).value!
|
1068
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1069
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1066
1070
|
end
|
1067
1071
|
|
1068
1072
|
#
|
@@ -1075,11 +1079,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
1075
1079
|
#
|
1076
1080
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1077
1081
|
#
|
1078
|
-
def list_next_async(next_page_link, custom_headers
|
1082
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1079
1083
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1080
1084
|
|
1081
1085
|
|
1082
1086
|
request_headers = {}
|
1087
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1083
1088
|
|
1084
1089
|
# Set Headers
|
1085
1090
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1134,12 +1139,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
1134
1139
|
# @return [CognitiveServicesAccountListResult] which provide lazy access to
|
1135
1140
|
# pages of the response.
|
1136
1141
|
#
|
1137
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1138
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1142
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1143
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1139
1144
|
unless response.nil?
|
1140
1145
|
page = response.body
|
1141
1146
|
page.next_method = Proc.new do |next_page_link|
|
1142
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1147
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1143
1148
|
end
|
1144
1149
|
page
|
1145
1150
|
end
|
@@ -1154,12 +1159,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
1154
1159
|
# @return [CognitiveServicesAccountListResult] which provide lazy access to
|
1155
1160
|
# pages of the response.
|
1156
1161
|
#
|
1157
|
-
def list_as_lazy(custom_headers
|
1158
|
-
response = list_async(custom_headers).value!
|
1162
|
+
def list_as_lazy(custom_headers:nil)
|
1163
|
+
response = list_async(custom_headers:custom_headers).value!
|
1159
1164
|
unless response.nil?
|
1160
1165
|
page = response.body
|
1161
1166
|
page.next_method = Proc.new do |next_page_link|
|
1162
|
-
list_next_async(next_page_link, custom_headers)
|
1167
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1163
1168
|
end
|
1164
1169
|
page
|
1165
1170
|
end
|