azure_cognitiveservices_face 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6648bdf2512575046c982df50d07e0127e54b459
4
- data.tar.gz: ec848ceb96afb3fde854043a9651e0b36051f91c
3
+ metadata.gz: 8bded8bc58e20886ac65ea6cc9dd593d18a15a85
4
+ data.tar.gz: eedf3c47afe353584e0bbeb3e4900a5814c63320
5
5
  SHA512:
6
- metadata.gz: 1013d4549baea2255821fb82845e491ec86750de8f1ec35ba312f8db91e9461bc11861fe821d7f0044e9ea637fa4d41ef13135ec102d4f12fb04541457ec3e38
7
- data.tar.gz: b6fd153ddf17767e212dc5f14bf9aca2d01efed4dd87994264f66d51a60de51594276bebad42cdb8f064daba3f31c2c582bc7ef7a58626788e256a2a59ba44eb
6
+ metadata.gz: 82c6017e00c4ee09f0def2797b0d89d644da408914376c97ee6cc025104c1c15944c92a3b28bb031e4b92943a4a53fe187acb75a5b60efa60e6f3f27fb8a897e
7
+ data.tar.gz: 1f7cb05656878c8bfea351ca64fc21891dc99d1cee6daed10c71e709309b1f5ca7d8b1cfefc2f68b750eaa8b2a8925ae9c7ad64117dc38f81c611c43a1668acb
@@ -73,6 +73,5 @@ module Azure::CognitiveServices::Face::V1_0
73
73
  autoload :FindSimilarMatchMode, '1.0/generated/azure_cognitiveservices_face/models/find_similar_match_mode.rb'
74
74
  autoload :TrainingStatusType, '1.0/generated/azure_cognitiveservices_face/models/training_status_type.rb'
75
75
  autoload :FaceAttributeType, '1.0/generated/azure_cognitiveservices_face/models/face_attribute_type.rb'
76
- autoload :AzureRegions, '1.0/generated/azure_cognitiveservices_face/models/azure_regions.rb'
77
76
  end
78
77
  end
@@ -100,7 +100,6 @@ module Azure::CognitiveServices::Face::V1_0
100
100
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
101
101
  #
102
102
  def find_similar_async(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil)
103
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
104
103
  fail ArgumentError, 'face_id is nil' if face_id.nil?
105
104
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
106
105
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -132,7 +131,6 @@ module Azure::CognitiveServices::Face::V1_0
132
131
  path_template = 'findsimilars'
133
132
 
134
133
  request_url = @base_url || @client.base_url
135
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
136
134
 
137
135
  options = {
138
136
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -225,7 +223,6 @@ module Azure::CognitiveServices::Face::V1_0
225
223
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
226
224
  #
227
225
  def group_async(face_ids, custom_headers:nil)
228
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
229
226
  fail ArgumentError, 'face_ids is nil' if face_ids.nil?
230
227
  fail ArgumentError, "'face_ids' should satisfy the constraint - 'MaxItems': '1000'" if !face_ids.nil? && face_ids.length > 1000
231
228
 
@@ -249,7 +246,6 @@ module Azure::CognitiveServices::Face::V1_0
249
246
  path_template = 'group'
250
247
 
251
248
  request_url = @base_url || @client.base_url
252
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
253
249
 
254
250
  options = {
255
251
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -350,7 +346,6 @@ module Azure::CognitiveServices::Face::V1_0
350
346
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
351
347
  #
352
348
  def identify_async(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil)
353
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
354
349
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
355
350
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
356
351
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -382,7 +377,6 @@ module Azure::CognitiveServices::Face::V1_0
382
377
  path_template = 'identify'
383
378
 
384
379
  request_url = @base_url || @client.base_url
385
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
386
380
 
387
381
  options = {
388
382
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -478,7 +472,6 @@ module Azure::CognitiveServices::Face::V1_0
478
472
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
479
473
  #
480
474
  def verify_face_to_face_async(face_id1, face_id2, custom_headers:nil)
481
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
482
475
  fail ArgumentError, 'face_id1 is nil' if face_id1.nil?
483
476
  fail ArgumentError, 'face_id2 is nil' if face_id2.nil?
484
477
 
@@ -503,7 +496,6 @@ module Azure::CognitiveServices::Face::V1_0
503
496
  path_template = 'verify'
504
497
 
505
498
  request_url = @base_url || @client.base_url
506
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
507
499
 
508
500
  options = {
509
501
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -544,7 +536,7 @@ module Azure::CognitiveServices::Face::V1_0
544
536
  # Detect human faces in an image and returns face locations, and optionally
545
537
  # with faceIds, landmarks, and attributes.
546
538
  #
547
- # @param url [String]
539
+ # @param url [String] Publicly reachable URL of an image
548
540
  # @param return_face_id [Boolean] A value indicating whether the operation
549
541
  # should return faceIds of detected faces.
550
542
  # @param return_face_landmarks [Boolean] A value indicating whether the
@@ -568,7 +560,7 @@ module Azure::CognitiveServices::Face::V1_0
568
560
  # Detect human faces in an image and returns face locations, and optionally
569
561
  # with faceIds, landmarks, and attributes.
570
562
  #
571
- # @param url [String]
563
+ # @param url [String] Publicly reachable URL of an image
572
564
  # @param return_face_id [Boolean] A value indicating whether the operation
573
565
  # should return faceIds of detected faces.
574
566
  # @param return_face_landmarks [Boolean] A value indicating whether the
@@ -591,7 +583,7 @@ module Azure::CognitiveServices::Face::V1_0
591
583
  # Detect human faces in an image and returns face locations, and optionally
592
584
  # with faceIds, landmarks, and attributes.
593
585
  #
594
- # @param url [String]
586
+ # @param url [String] Publicly reachable URL of an image
595
587
  # @param return_face_id [Boolean] A value indicating whether the operation
596
588
  # should return faceIds of detected faces.
597
589
  # @param return_face_landmarks [Boolean] A value indicating whether the
@@ -607,7 +599,6 @@ module Azure::CognitiveServices::Face::V1_0
607
599
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
608
600
  #
609
601
  def detect_with_url_async(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
610
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
611
602
  fail ArgumentError, 'url is nil' if url.nil?
612
603
 
613
604
  image_url = ImageUrl.new
@@ -630,7 +621,6 @@ module Azure::CognitiveServices::Face::V1_0
630
621
  path_template = 'detect'
631
622
 
632
623
  request_url = @base_url || @client.base_url
633
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
634
624
 
635
625
  options = {
636
626
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -739,7 +729,6 @@ module Azure::CognitiveServices::Face::V1_0
739
729
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
740
730
  #
741
731
  def verify_face_to_person_async(face_id, person_group_id, person_id, custom_headers:nil)
742
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
743
732
  fail ArgumentError, 'face_id is nil' if face_id.nil?
744
733
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
745
734
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@@ -768,7 +757,6 @@ module Azure::CognitiveServices::Face::V1_0
768
757
  path_template = 'verify'
769
758
 
770
759
  request_url = @base_url || @client.base_url
771
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
772
760
 
773
761
  options = {
774
762
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -872,7 +860,6 @@ module Azure::CognitiveServices::Face::V1_0
872
860
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
873
861
  #
874
862
  def detect_with_stream_async(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
875
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
876
863
  fail ArgumentError, 'image is nil' if image.nil?
877
864
 
878
865
 
@@ -897,7 +884,6 @@ module Azure::CognitiveServices::Face::V1_0
897
884
  path_template = 'detect'
898
885
 
899
886
  request_url = @base_url || @client.base_url
900
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
901
887
 
902
888
  options = {
903
889
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -12,31 +12,25 @@ module Azure::CognitiveServices::Face::V1_0
12
12
  include MsRestAzure::Serialization
13
13
 
14
14
  # @return [String] the base URI of the service.
15
- attr_reader :base_url
15
+ attr_accessor :base_url
16
16
 
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials1
19
19
 
20
- # @return [AzureRegions] Supported Azure regions for Cognitive Services
21
- # endpoints. Possible values include: 'westus', 'westeurope',
22
- # 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus',
23
- # 'southcentralus', 'northeurope', 'eastasia', 'australiaeast',
24
- # 'brazilsouth'
25
- attr_accessor :azure_region
26
-
27
20
  # @return Subscription credentials which uniquely identify client
28
21
  # subscription.
29
22
  attr_accessor :credentials
30
23
 
31
- # @return [String] Gets or sets the preferred language for the response.
24
+ # @return [String] The preferred language for the response.
32
25
  attr_accessor :accept_language
33
26
 
34
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
35
- # Running Operations. Default value is 30.
27
+ # @return [Integer] The retry timeout in seconds for Long Running
28
+ # Operations. Default value is 30.
36
29
  attr_accessor :long_running_operation_retry_timeout
37
30
 
38
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
39
- # is generated and included in each request. Default is true.
31
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
32
+ # generated. When set to true a unique x-ms-client-request-id value is
33
+ # generated and included in each request. Default is true.
40
34
  attr_accessor :generate_client_request_id
41
35
 
42
36
  # @return [Face] face
@@ -54,11 +48,12 @@ module Azure::CognitiveServices::Face::V1_0
54
48
  #
55
49
  # Creates initializes a new instance of the FaceClient class.
56
50
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
51
+ # @param base_url [String] the base URI of the service.
57
52
  # @param options [Array] filters to be applied to the HTTP requests.
58
53
  #
59
- def initialize(credentials = nil, options = nil)
54
+ def initialize(credentials = nil, base_url = nil, options = nil)
60
55
  super(credentials, options)
61
- @base_url = 'https://{AzureRegion}.api.cognitive.microsoft.com/face/v1.0'
56
+ @base_url = base_url || 'https://api.cognitive.microsoft.com/face/v1.0'
62
57
 
63
58
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
64
59
  @credentials = credentials
@@ -138,7 +133,7 @@ module Azure::CognitiveServices::Face::V1_0
138
133
  #
139
134
  def add_telemetry
140
135
  sdk_information = 'azure_cognitiveservices_face'
141
- sdk_information = "#{sdk_information}/0.16.0"
136
+ sdk_information = "#{sdk_information}/0.17.0"
142
137
  add_user_agent_information(sdk_information)
143
138
  end
144
139
  end
@@ -66,7 +66,6 @@ module Azure::CognitiveServices::Face::V1_0
66
66
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
67
67
  #
68
68
  def create_async(face_list_id, name:nil, user_data:nil, custom_headers:nil)
69
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
70
69
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
71
70
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
72
71
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -94,7 +93,6 @@ module Azure::CognitiveServices::Face::V1_0
94
93
  path_template = 'facelists/{faceListId}'
95
94
 
96
95
  request_url = @base_url || @client.base_url
97
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
98
96
 
99
97
  options = {
100
98
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -159,7 +157,6 @@ module Azure::CognitiveServices::Face::V1_0
159
157
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
160
158
  #
161
159
  def get_async(face_list_id, custom_headers:nil)
162
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
163
160
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
164
161
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
165
162
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -174,7 +171,6 @@ module Azure::CognitiveServices::Face::V1_0
174
171
  path_template = 'facelists/{faceListId}'
175
172
 
176
173
  request_url = @base_url || @client.base_url
177
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
178
174
 
179
175
  options = {
180
176
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -253,7 +249,6 @@ module Azure::CognitiveServices::Face::V1_0
253
249
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
254
250
  #
255
251
  def update_async(face_list_id, name:nil, user_data:nil, custom_headers:nil)
256
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
257
252
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
258
253
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
259
254
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -281,7 +276,6 @@ module Azure::CognitiveServices::Face::V1_0
281
276
  path_template = 'facelists/{faceListId}'
282
277
 
283
278
  request_url = @base_url || @client.base_url
284
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
285
279
 
286
280
  options = {
287
281
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -348,7 +342,6 @@ module Azure::CognitiveServices::Face::V1_0
348
342
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
349
343
  #
350
344
  def delete_async(face_list_id, custom_headers:nil)
351
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
352
345
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
353
346
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
354
347
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -363,7 +356,6 @@ module Azure::CognitiveServices::Face::V1_0
363
356
  path_template = 'facelists/{faceListId}'
364
357
 
365
358
  request_url = @base_url || @client.base_url
366
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
367
359
 
368
360
  options = {
369
361
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -427,7 +419,6 @@ module Azure::CognitiveServices::Face::V1_0
427
419
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
428
420
  #
429
421
  def list_async(custom_headers:nil)
430
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
431
422
 
432
423
 
433
424
  request_headers = {}
@@ -439,7 +430,6 @@ module Azure::CognitiveServices::Face::V1_0
439
430
  path_template = 'facelists'
440
431
 
441
432
  request_url = @base_url || @client.base_url
442
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
443
433
 
444
434
  options = {
445
435
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -536,7 +526,6 @@ module Azure::CognitiveServices::Face::V1_0
536
526
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
537
527
  #
538
528
  def delete_face_async(face_list_id, persisted_face_id, custom_headers:nil)
539
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
540
529
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
541
530
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
542
531
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -552,7 +541,6 @@ module Azure::CognitiveServices::Face::V1_0
552
541
  path_template = 'facelists/{faceListId}/persistedFaces/{persistedFaceId}'
553
542
 
554
543
  request_url = @base_url || @client.base_url
555
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
556
544
 
557
545
  options = {
558
546
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -585,7 +573,7 @@ module Azure::CognitiveServices::Face::V1_0
585
573
  # face, and persistedFaceId will not expire.
586
574
  #
587
575
  # @param face_list_id [String] Id referencing a particular face list.
588
- # @param url [String]
576
+ # @param url [String] Publicly reachable URL of an image
589
577
  # @param user_data [String] User-specified data about the face for any purpose.
590
578
  # The maximum length is 1KB.
591
579
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -610,7 +598,7 @@ module Azure::CognitiveServices::Face::V1_0
610
598
  # face, and persistedFaceId will not expire.
611
599
  #
612
600
  # @param face_list_id [String] Id referencing a particular face list.
613
- # @param url [String]
601
+ # @param url [String] Publicly reachable URL of an image
614
602
  # @param user_data [String] User-specified data about the face for any purpose.
615
603
  # The maximum length is 1KB.
616
604
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -634,7 +622,7 @@ module Azure::CognitiveServices::Face::V1_0
634
622
  # face, and persistedFaceId will not expire.
635
623
  #
636
624
  # @param face_list_id [String] Id referencing a particular face list.
637
- # @param url [String]
625
+ # @param url [String] Publicly reachable URL of an image
638
626
  # @param user_data [String] User-specified data about the face for any purpose.
639
627
  # The maximum length is 1KB.
640
628
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -649,7 +637,6 @@ module Azure::CognitiveServices::Face::V1_0
649
637
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
650
638
  #
651
639
  def add_face_from_url_async(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil)
652
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
653
640
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
654
641
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
655
642
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -676,7 +663,6 @@ module Azure::CognitiveServices::Face::V1_0
676
663
  path_template = 'facelists/{faceListId}/persistedFaces'
677
664
 
678
665
  request_url = @base_url || @client.base_url
679
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
680
666
 
681
667
  options = {
682
668
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -785,7 +771,6 @@ module Azure::CognitiveServices::Face::V1_0
785
771
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
786
772
  #
787
773
  def add_face_from_stream_async(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil)
788
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
789
774
  fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
790
775
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
791
776
  fail ArgumentError, "'face_list_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !face_list_id.nil? && face_list_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -814,7 +799,6 @@ module Azure::CognitiveServices::Face::V1_0
814
799
  path_template = 'facelists/{faceListId}/persistedFaces'
815
800
 
816
801
  request_url = @base_url || @client.base_url
817
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
818
802
 
819
803
  options = {
820
804
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -13,7 +13,7 @@ module Azure::CognitiveServices::Face::V1_0
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [String]
16
+ # @return [String] Publicly reachable URL of an image
17
17
  attr_accessor :url
18
18
 
19
19
 
@@ -66,7 +66,6 @@ module Azure::CognitiveServices::Face::V1_0
66
66
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
67
67
  #
68
68
  def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
69
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
70
69
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
71
70
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
72
71
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -94,7 +93,6 @@ module Azure::CognitiveServices::Face::V1_0
94
93
  path_template = 'persongroups/{personGroupId}'
95
94
 
96
95
  request_url = @base_url || @client.base_url
97
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
98
96
 
99
97
  options = {
100
98
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -161,7 +159,6 @@ module Azure::CognitiveServices::Face::V1_0
161
159
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
160
  #
163
161
  def delete_async(person_group_id, custom_headers:nil)
164
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
165
162
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
166
163
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
167
164
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -176,7 +173,6 @@ module Azure::CognitiveServices::Face::V1_0
176
173
  path_template = 'persongroups/{personGroupId}'
177
174
 
178
175
  request_url = @base_url || @client.base_url
179
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
180
176
 
181
177
  options = {
182
178
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -240,7 +236,6 @@ module Azure::CognitiveServices::Face::V1_0
240
236
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
241
237
  #
242
238
  def get_async(person_group_id, custom_headers:nil)
243
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
244
239
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
245
240
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
246
241
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -255,7 +250,6 @@ module Azure::CognitiveServices::Face::V1_0
255
250
  path_template = 'persongroups/{personGroupId}'
256
251
 
257
252
  request_url = @base_url || @client.base_url
258
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
259
253
 
260
254
  options = {
261
255
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -337,7 +331,6 @@ module Azure::CognitiveServices::Face::V1_0
337
331
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
338
332
  #
339
333
  def update_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
340
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
341
334
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
342
335
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
343
336
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -365,7 +358,6 @@ module Azure::CognitiveServices::Face::V1_0
365
358
  path_template = 'persongroups/{personGroupId}'
366
359
 
367
360
  request_url = @base_url || @client.base_url
368
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
369
361
 
370
362
  options = {
371
363
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -430,7 +422,6 @@ module Azure::CognitiveServices::Face::V1_0
430
422
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
431
423
  #
432
424
  def get_training_status_async(person_group_id, custom_headers:nil)
433
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
434
425
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
435
426
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
436
427
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -445,7 +436,6 @@ module Azure::CognitiveServices::Face::V1_0
445
436
  path_template = 'persongroups/{personGroupId}/training'
446
437
 
447
438
  request_url = @base_url || @client.base_url
448
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
449
439
 
450
440
  options = {
451
441
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -525,7 +515,6 @@ module Azure::CognitiveServices::Face::V1_0
525
515
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
526
516
  #
527
517
  def list_async(start:nil, top:1000, custom_headers:nil)
528
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
529
518
  fail ArgumentError, "'start' should satisfy the constraint - 'MaxLength': '64'" if !start.nil? && start.length > 64
530
519
  fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
531
520
  fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
@@ -540,7 +529,6 @@ module Azure::CognitiveServices::Face::V1_0
540
529
  path_template = 'persongroups'
541
530
 
542
531
  request_url = @base_url || @client.base_url
543
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
544
532
 
545
533
  options = {
546
534
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -632,7 +620,6 @@ module Azure::CognitiveServices::Face::V1_0
632
620
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
633
621
  #
634
622
  def train_async(person_group_id, custom_headers:nil)
635
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
636
623
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
637
624
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
638
625
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -647,7 +634,6 @@ module Azure::CognitiveServices::Face::V1_0
647
634
  path_template = 'persongroups/{personGroupId}/train'
648
635
 
649
636
  request_url = @base_url || @client.base_url
650
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
651
637
 
652
638
  options = {
653
639
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -64,7 +64,6 @@ module Azure::CognitiveServices::Face::V1_0
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
66
  def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
67
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
68
67
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
69
68
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
70
69
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -92,7 +91,6 @@ module Azure::CognitiveServices::Face::V1_0
92
91
  path_template = 'persongroups/{personGroupId}/persons'
93
92
 
94
93
  request_url = @base_url || @client.base_url
95
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
96
94
 
97
95
  options = {
98
96
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -185,7 +183,6 @@ module Azure::CognitiveServices::Face::V1_0
185
183
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
184
  #
187
185
  def list_async(person_group_id, start:nil, top:nil, custom_headers:nil)
188
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
189
186
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
190
187
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
191
188
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -202,7 +199,6 @@ module Azure::CognitiveServices::Face::V1_0
202
199
  path_template = 'persongroups/{personGroupId}/persons'
203
200
 
204
201
  request_url = @base_url || @client.base_url
205
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
206
202
 
207
203
  options = {
208
204
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -298,7 +294,6 @@ module Azure::CognitiveServices::Face::V1_0
298
294
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
299
295
  #
300
296
  def delete_async(person_group_id, person_id, custom_headers:nil)
301
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
302
297
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
303
298
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
304
299
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -314,7 +309,6 @@ module Azure::CognitiveServices::Face::V1_0
314
309
  path_template = 'persongroups/{personGroupId}/persons/{personId}'
315
310
 
316
311
  request_url = @base_url || @client.base_url
317
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
318
312
 
319
313
  options = {
320
314
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -384,7 +378,6 @@ module Azure::CognitiveServices::Face::V1_0
384
378
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
385
379
  #
386
380
  def get_async(person_group_id, person_id, custom_headers:nil)
387
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
388
381
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
389
382
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
390
383
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -400,7 +393,6 @@ module Azure::CognitiveServices::Face::V1_0
400
393
  path_template = 'persongroups/{personGroupId}/persons/{personId}'
401
394
 
402
395
  request_url = @base_url || @client.base_url
403
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
404
396
 
405
397
  options = {
406
398
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -482,7 +474,6 @@ module Azure::CognitiveServices::Face::V1_0
482
474
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
483
475
  #
484
476
  def update_async(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil)
485
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
486
477
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
487
478
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
488
479
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -511,7 +502,6 @@ module Azure::CognitiveServices::Face::V1_0
511
502
  path_template = 'persongroups/{personGroupId}/persons/{personId}'
512
503
 
513
504
  request_url = @base_url || @client.base_url
514
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
515
505
 
516
506
  options = {
517
507
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -587,7 +577,6 @@ module Azure::CognitiveServices::Face::V1_0
587
577
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
588
578
  #
589
579
  def delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil)
590
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
591
580
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
592
581
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
593
582
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -604,7 +593,6 @@ module Azure::CognitiveServices::Face::V1_0
604
593
  path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces/{persistedFaceId}'
605
594
 
606
595
  request_url = @base_url || @client.base_url
607
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
608
596
 
609
597
  options = {
610
598
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -680,7 +668,6 @@ module Azure::CognitiveServices::Face::V1_0
680
668
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
681
669
  #
682
670
  def get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil)
683
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
684
671
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
685
672
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
686
673
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -697,7 +684,6 @@ module Azure::CognitiveServices::Face::V1_0
697
684
  path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces/{persistedFaceId}'
698
685
 
699
686
  request_url = @base_url || @client.base_url
700
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
701
687
 
702
688
  options = {
703
689
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -785,7 +771,6 @@ module Azure::CognitiveServices::Face::V1_0
785
771
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
786
772
  #
787
773
  def update_face_async(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil)
788
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
789
774
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
790
775
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
791
776
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -813,7 +798,6 @@ module Azure::CognitiveServices::Face::V1_0
813
798
  path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces/{persistedFaceId}'
814
799
 
815
800
  request_url = @base_url || @client.base_url
816
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
817
801
 
818
802
  options = {
819
803
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -847,7 +831,7 @@ module Azure::CognitiveServices::Face::V1_0
847
831
  #
848
832
  # @param person_group_id [String] Id referencing a particular person group.
849
833
  # @param person_id Id referencing a particular person.
850
- # @param url [String]
834
+ # @param url [String] Publicly reachable URL of an image
851
835
  # @param user_data [String] User-specified data about the face for any purpose.
852
836
  # The maximum length is 1KB.
853
837
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -872,7 +856,7 @@ module Azure::CognitiveServices::Face::V1_0
872
856
  #
873
857
  # @param person_group_id [String] Id referencing a particular person group.
874
858
  # @param person_id Id referencing a particular person.
875
- # @param url [String]
859
+ # @param url [String] Publicly reachable URL of an image
876
860
  # @param user_data [String] User-specified data about the face for any purpose.
877
861
  # The maximum length is 1KB.
878
862
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -896,7 +880,7 @@ module Azure::CognitiveServices::Face::V1_0
896
880
  #
897
881
  # @param person_group_id [String] Id referencing a particular person group.
898
882
  # @param person_id Id referencing a particular person.
899
- # @param url [String]
883
+ # @param url [String] Publicly reachable URL of an image
900
884
  # @param user_data [String] User-specified data about the face for any purpose.
901
885
  # The maximum length is 1KB.
902
886
  # @param target_face [Array<Integer>] A face rectangle to specify the target
@@ -911,7 +895,6 @@ module Azure::CognitiveServices::Face::V1_0
911
895
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
912
896
  #
913
897
  def add_person_face_from_url_async(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil)
914
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
915
898
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
916
899
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
917
900
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -939,7 +922,6 @@ module Azure::CognitiveServices::Face::V1_0
939
922
  path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces'
940
923
 
941
924
  request_url = @base_url || @client.base_url
942
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
943
925
 
944
926
  options = {
945
927
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -1048,7 +1030,6 @@ module Azure::CognitiveServices::Face::V1_0
1048
1030
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1049
1031
  #
1050
1032
  def add_person_face_from_stream_async(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil)
1051
- fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
1052
1033
  fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
1053
1034
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
1054
1035
  fail ArgumentError, "'person_group_id' should satisfy the constraint - 'Pattern': '^[a-z0-9-_]+$'" if !person_group_id.nil? && person_group_id.match(Regexp.new('^^[a-z0-9-_]+$$')).nil?
@@ -1078,7 +1059,6 @@ module Azure::CognitiveServices::Face::V1_0
1078
1059
  path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces'
1079
1060
 
1080
1061
  request_url = @base_url || @client.base_url
1081
- request_url = request_url.gsub('{AzureRegion}', @client.azure_region)
1082
1062
 
1083
1063
  options = {
1084
1064
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -57,7 +57,6 @@ module Azure::Face::Profiles::Latest
57
57
  FindSimilarMatchMode = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode
58
58
  TrainingStatusType = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatusType
59
59
  FaceAttributeType = Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType
60
- AzureRegions = Azure::CognitiveServices::Face::V1_0::Models::AzureRegions
61
60
  end
62
61
 
63
62
  #
@@ -246,8 +245,5 @@ module Azure::Face::Profiles::Latest
246
245
  def face_attribute_type
247
246
  Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType
248
247
  end
249
- def azure_regions
250
- Azure::CognitiveServices::Face::V1_0::Models::AzureRegions
251
- end
252
248
  end
253
249
  end
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::CognitiveServices::Face
6
- VERSION = '0.16.0'
6
+ VERSION = '0.17.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_cognitiveservices_face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.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: 2018-02-12 00:00:00.000000000 Z
11
+ date: 2018-07-31 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.10.0
75
+ version: 0.11.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.10.0
82
+ version: 0.11.0
83
83
  description: Microsoft Azure Cognitive Services Face Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -94,7 +94,6 @@ files:
94
94
  - lib/1.0/generated/azure_cognitiveservices_face/models/accessory.rb
95
95
  - lib/1.0/generated/azure_cognitiveservices_face/models/accessory_type.rb
96
96
  - lib/1.0/generated/azure_cognitiveservices_face/models/apierror.rb
97
- - lib/1.0/generated/azure_cognitiveservices_face/models/azure_regions.rb
98
97
  - lib/1.0/generated/azure_cognitiveservices_face/models/blur.rb
99
98
  - lib/1.0/generated/azure_cognitiveservices_face/models/blur_level.rb
100
99
  - lib/1.0/generated/azure_cognitiveservices_face/models/coordinate.rb
@@ -1,26 +0,0 @@
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::Face::V1_0
7
- module Models
8
- #
9
- # Defines values for AzureRegions
10
- #
11
- module AzureRegions
12
- Westus = "westus"
13
- Westeurope = "westeurope"
14
- Southeastasia = "southeastasia"
15
- Eastus2 = "eastus2"
16
- Westcentralus = "westcentralus"
17
- Westus2 = "westus2"
18
- Eastus = "eastus"
19
- Southcentralus = "southcentralus"
20
- Northeurope = "northeurope"
21
- Eastasia = "eastasia"
22
- Australiaeast = "australiaeast"
23
- Brazilsouth = "brazilsouth"
24
- end
25
- end
26
- end