azure_mgmt_cognitive_services 0.18.1 → 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +18 -0
  3. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -1
  4. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +40 -12
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +178 -103
  6. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +235 -7
  7. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb +75 -0
  8. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_parameter.rb +57 -0
  9. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_result.rb +79 -0
  10. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +21 -31
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb +90 -0
  12. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb +201 -0
  13. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb +61 -0
  14. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity.rb +95 -0
  15. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity_type.rb +17 -0
  16. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.rb +49 -0
  17. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_source.rb +16 -0
  18. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_vault_properties.rb +68 -0
  19. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_action.rb +16 -0
  20. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb +89 -0
  21. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb +47 -0
  22. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb +74 -0
  23. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb +80 -0
  24. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
  25. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
  26. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
  27. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
  28. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
  29. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
  30. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
  31. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
  32. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
  33. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/tracked_resource.rb +92 -0
  34. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb +58 -0
  35. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb +46 -0
  36. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb +69 -0
  37. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +5 -0
  38. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +373 -0
  39. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
  40. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +6 -0
  41. data/lib/azure_mgmt_cognitive_services.rb +1 -1
  42. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +146 -36
  43. data/lib/version.rb +1 -1
  44. metadata +36 -8
  45. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +0 -138
  46. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +0 -108
  47. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +0 -70
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b495086744a7ab57a053b8a0c41863a00ab0ebb1e9010be7fddd0d20b462c9dd
4
- data.tar.gz: 6033bc2818c6f4ee67b627a004b2c7fe03650dce8eb0ddebcdd10b75766c660c
3
+ metadata.gz: 01c0ea205fc323d33830f4eafc20ff608bac9a89ef6d0f20aa5a97e7069ecaf2
4
+ data.tar.gz: c7b353ed9f6701aa05ce89efb0c7c17e36a50fd42f2b7a75caec502fd239921e
5
5
  SHA512:
6
- metadata.gz: a090ff954245a2e7925fef74bbc7e51f20e0684de85095854bcf0cbd3eb2f00200cc3ce18b9bba889607502b00c6890d831d4deb8c5e7c4e9a20b71616e8ab3a
7
- data.tar.gz: 9456356b304ad0f896014e687a346f11335043ad8bf6862879cf829bd20954efca273fae98a4f6c593da068954fc7bc3d7d834a209901e8db0ed2b6df95b9dc1
6
+ metadata.gz: c2e9365d6e260f320cf5feb70b8f1ba8acbcfbe52148789dfa42f464b9e0fc3233fce49fb7215c146426e11fce9f1213be519f90f00659d8b5ce8844d9818d25
7
+ data.tar.gz: 28d1aa546b1523ba291c9fd866ae6c20bdf4e9841dc04957a1ddc803e87f0602810b8b9fb87975268877818a62c59c1e67be9c87732d5106bb551577ef1365bf
@@ -131,6 +131,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
131
131
  end
132
132
 
133
133
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
134
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
135
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
134
136
  # Deserialize Response
135
137
  if status_code == 200
136
138
  begin
@@ -278,6 +280,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
278
280
  end
279
281
 
280
282
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
283
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
284
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
281
285
  # Deserialize Response
282
286
  if status_code == 200
283
287
  begin
@@ -384,6 +388,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
384
388
  end
385
389
 
386
390
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
391
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
392
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
387
393
 
388
394
  result
389
395
  end
@@ -481,6 +487,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
481
487
  end
482
488
 
483
489
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
490
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
491
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
484
492
  # Deserialize Response
485
493
  if status_code == 200
486
494
  begin
@@ -572,6 +580,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
572
580
  end
573
581
 
574
582
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
583
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
584
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
575
585
  # Deserialize Response
576
586
  if status_code == 200
577
587
  begin
@@ -656,6 +666,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
656
666
  end
657
667
 
658
668
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
669
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
670
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
659
671
  # Deserialize Response
660
672
  if status_code == 200
661
673
  begin
@@ -763,6 +775,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
763
775
  end
764
776
 
765
777
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
778
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
779
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
766
780
  # Deserialize Response
767
781
  if status_code == 200
768
782
  begin
@@ -890,6 +904,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
890
904
  end
891
905
 
892
906
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
907
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
908
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
893
909
  # Deserialize Response
894
910
  if status_code == 200
895
911
  begin
@@ -997,6 +1013,8 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
997
1013
  end
998
1014
 
999
1015
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1016
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1017
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1000
1018
  # Deserialize Response
1001
1019
  if status_code == 200
1002
1020
  begin
@@ -125,7 +125,7 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_cognitive_services'
128
- sdk_information = "#{sdk_information}/0.18.1"
128
+ sdk_information = "#{sdk_information}/0.19.2"
129
129
  add_user_agent_information(sdk_information)
130
130
  end
131
131
  end
@@ -23,36 +23,64 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
23
23
  autoload :Accounts, '2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb'
24
24
  autoload :ResourceSkus, '2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb'
25
25
  autoload :Operations, '2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb'
26
- autoload :CheckSkuAvailability, '2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb'
26
+ autoload :PrivateEndpointConnections, '2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb'
27
+ autoload :PrivateLinkResources, '2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb'
27
28
  autoload :CognitiveServicesManagementClient, '2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb'
28
29
 
29
30
  module Models
30
- autoload :ErrorBody, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb'
31
+ autoload :Usage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb'
31
32
  autoload :Sku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb'
33
+ autoload :UsagesResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usages_result.rb'
34
+ autoload :IpRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.rb'
35
+ autoload :ErrorBody, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb'
36
+ autoload :NetworkRuleSet, '2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb'
32
37
  autoload :Error, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error.rb'
33
- autoload :CognitiveServicesAccountUpdateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb'
38
+ autoload :Encryption, '2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb'
34
39
  autoload :OperationDisplayInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb'
35
- autoload :CognitiveServicesAccountListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
40
+ autoload :PrivateEndpoint, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb'
36
41
  autoload :OperationEntity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity.rb'
37
- autoload :RegenerateKeyParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
42
+ autoload :PrivateEndpointConnectionProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb'
38
43
  autoload :OperationEntityListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb'
39
- autoload :CognitiveServicesAccountEnumerateSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
44
+ autoload :CognitiveServicesAccountApiProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb'
40
45
  autoload :CheckSkuAvailabilityParameter, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb'
41
- autoload :Usage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb'
46
+ autoload :UserAssignedIdentity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb'
42
47
  autoload :CheckSkuAvailabilityResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb'
43
- autoload :CognitiveServicesAccountCreateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb'
48
+ autoload :CognitiveServicesAccount, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
44
49
  autoload :CheckSkuAvailabilityResultList, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb'
45
50
  autoload :CognitiveServicesAccountKeys, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb'
46
- autoload :ResourceSkuRestrictionInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restriction_info.rb'
51
+ autoload :CheckDomainAvailabilityParameter, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_parameter.rb'
52
+ autoload :CognitiveServicesResourceAndSku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb'
53
+ autoload :CheckDomainAvailabilityResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_result.rb'
47
54
  autoload :MetricName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/metric_name.rb'
55
+ autoload :ResourceSkuRestrictionInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restriction_info.rb'
56
+ autoload :VirtualNetworkRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb'
48
57
  autoload :ResourceSkuRestrictions, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions.rb'
49
- autoload :CognitiveServicesAccount, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
58
+ autoload :UserOwnedStorage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb'
50
59
  autoload :ResourceSku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb'
51
- autoload :UsagesResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usages_result.rb'
60
+ autoload :KeyVaultProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_vault_properties.rb'
61
+ autoload :CognitiveServicesAccountProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb'
62
+ autoload :PrivateLinkServiceConnectionState, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb'
63
+ autoload :CognitiveServicesAccountListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
64
+ autoload :CognitiveServicesAccountEnumerateSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
52
65
  autoload :ResourceSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_skus_result.rb'
53
- autoload :CognitiveServicesResourceAndSku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb'
66
+ autoload :Identity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/identity.rb'
67
+ autoload :PrivateLinkResourceProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb'
68
+ autoload :SkuCapability, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb'
69
+ autoload :Resource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb'
70
+ autoload :RegenerateKeyParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
71
+ autoload :PrivateLinkResourceListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb'
72
+ autoload :PrivateEndpointConnection, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb'
73
+ autoload :PrivateLinkResource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb'
74
+ autoload :ProxyResource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb'
75
+ autoload :TrackedResource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/tracked_resource.rb'
76
+ autoload :AzureEntityResource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb'
54
77
  autoload :SkuTier, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_tier.rb'
55
78
  autoload :ProvisioningState, '2017-04-18/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb'
79
+ autoload :NetworkRuleAction, '2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_action.rb'
80
+ autoload :KeySource, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_source.rb'
81
+ autoload :PrivateEndpointServiceConnectionStatus, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb'
82
+ autoload :PublicNetworkAccess, '2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb'
83
+ autoload :IdentityType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/identity_type.rb'
56
84
  autoload :KeyName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_name.rb'
57
85
  autoload :UnitType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/unit_type.rb'
58
86
  autoload :QuotaUsageStatus, '2017-04-18/generated/azure_mgmt_cognitive_services/models/quota_usage_status.rb'
@@ -26,18 +26,18 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
26
26
  # type. It holds the keys for developer to access intelligent APIs. It's also
27
27
  # the resource type for billing.
28
28
  #
29
- # @param resource_group_name [String] The name of the resource group within the
30
- # user's subscription.
29
+ # @param resource_group_name [String] The name of the resource group. The name
30
+ # is case insensitive.
31
31
  # @param account_name [String] The name of Cognitive Services account.
32
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
33
- # to provide for the created account.
32
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
33
+ # created account.
34
34
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
35
  # will be added to the HTTP request.
36
36
  #
37
37
  # @return [CognitiveServicesAccount] operation results.
38
38
  #
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!
39
+ def create(resource_group_name, account_name, account, custom_headers:nil)
40
+ response = create_async(resource_group_name, account_name, account, custom_headers:custom_headers).value!
41
41
  response.body unless response.nil?
42
42
  end
43
43
 
@@ -46,18 +46,18 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
46
46
  # type. It holds the keys for developer to access intelligent APIs. It's also
47
47
  # the resource type for billing.
48
48
  #
49
- # @param resource_group_name [String] The name of the resource group within the
50
- # user's subscription.
49
+ # @param resource_group_name [String] The name of the resource group. The name
50
+ # is case insensitive.
51
51
  # @param account_name [String] The name of Cognitive Services account.
52
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
53
- # to provide for the created account.
52
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
53
+ # created account.
54
54
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
55
  # will be added to the HTTP request.
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:nil)
60
- create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
59
+ def create_with_http_info(resource_group_name, account_name, account, custom_headers:nil)
60
+ create_async(resource_group_name, account_name, account, custom_headers:custom_headers).value!
61
61
  end
62
62
 
63
63
  #
@@ -65,25 +65,30 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
65
65
  # type. It holds the keys for developer to access intelligent APIs. It's also
66
66
  # the resource type for billing.
67
67
  #
68
- # @param resource_group_name [String] The name of the resource group within the
69
- # user's subscription.
68
+ # @param resource_group_name [String] The name of the resource group. The name
69
+ # is case insensitive.
70
70
  # @param account_name [String] The name of Cognitive Services account.
71
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
72
- # to provide for the created account.
71
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
72
+ # created account.
73
73
  # @param [Hash{String => String}] A hash of custom headers that will be added
74
74
  # to the HTTP request.
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:nil)
78
+ def create_async(resource_group_name, account_name, account, custom_headers:nil)
79
79
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
80
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
81
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
82
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
80
83
  fail ArgumentError, 'account_name is nil' if account_name.nil?
81
84
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
82
85
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
83
86
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
84
- fail ArgumentError, 'parameters is nil' if parameters.nil?
87
+ fail ArgumentError, 'account is nil' if account.nil?
85
88
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
89
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
86
90
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
91
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
87
92
 
88
93
 
89
94
  request_headers = {}
@@ -94,8 +99,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
94
99
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
95
100
 
96
101
  # Serialize Request
97
- request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters.mapper()
98
- request_content = @client.serialize(request_mapper, parameters)
102
+ request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount.mapper()
103
+ request_content = @client.serialize(request_mapper, account)
99
104
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
100
105
 
101
106
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
@@ -116,12 +121,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
116
121
  http_response = result.response
117
122
  status_code = http_response.status
118
123
  response_content = http_response.body
119
- unless status_code == 200 || status_code == 201
124
+ unless status_code == 200 || status_code == 201 || status_code == 202
120
125
  error_model = JSON.load(response_content)
121
126
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
122
127
  end
123
128
 
124
129
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
130
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
131
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
125
132
  # Deserialize Response
126
133
  if status_code == 200
127
134
  begin
@@ -142,6 +149,16 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
142
149
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
143
150
  end
144
151
  end
152
+ # Deserialize Response
153
+ if status_code == 202
154
+ begin
155
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
156
+ result_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount.mapper()
157
+ result.body = @client.deserialize(result_mapper, parsed_response)
158
+ rescue Exception => e
159
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
160
+ end
161
+ end
145
162
 
146
163
  result
147
164
  end
@@ -152,77 +169,66 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
152
169
  #
153
170
  # Updates a Cognitive Services account
154
171
  #
155
- # @param resource_group_name [String] The name of the resource group within the
156
- # user's subscription.
172
+ # @param resource_group_name [String] The name of the resource group. The name
173
+ # is case insensitive.
157
174
  # @param account_name [String] The name of Cognitive Services account.
158
- # @param sku [Sku] Gets or sets the SKU of the resource.
159
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
160
- # that describe the resource. These tags can be used in viewing and grouping
161
- # this resource (across resource groups). A maximum of 15 tags can be provided
162
- # for a resource. Each tag must have a key no greater than 128 characters and
163
- # value no greater than 256 characters.
175
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
176
+ # created account.
164
177
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
178
  # will be added to the HTTP request.
166
179
  #
167
180
  # @return [CognitiveServicesAccount] operation results.
168
181
  #
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!
182
+ def update(resource_group_name, account_name, account, custom_headers:nil)
183
+ response = update_async(resource_group_name, account_name, account, custom_headers:custom_headers).value!
171
184
  response.body unless response.nil?
172
185
  end
173
186
 
174
187
  #
175
188
  # Updates a Cognitive Services account
176
189
  #
177
- # @param resource_group_name [String] The name of the resource group within the
178
- # user's subscription.
190
+ # @param resource_group_name [String] The name of the resource group. The name
191
+ # is case insensitive.
179
192
  # @param account_name [String] The name of Cognitive Services account.
180
- # @param sku [Sku] Gets or sets the SKU of the resource.
181
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
182
- # that describe the resource. These tags can be used in viewing and grouping
183
- # this resource (across resource groups). A maximum of 15 tags can be provided
184
- # for a resource. Each tag must have a key no greater than 128 characters and
185
- # value no greater than 256 characters.
193
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
194
+ # created account.
186
195
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
187
196
  # will be added to the HTTP request.
188
197
  #
189
198
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
190
199
  #
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!
200
+ def update_with_http_info(resource_group_name, account_name, account, custom_headers:nil)
201
+ update_async(resource_group_name, account_name, account, custom_headers:custom_headers).value!
193
202
  end
194
203
 
195
204
  #
196
205
  # Updates a Cognitive Services account
197
206
  #
198
- # @param resource_group_name [String] The name of the resource group within the
199
- # user's subscription.
207
+ # @param resource_group_name [String] The name of the resource group. The name
208
+ # is case insensitive.
200
209
  # @param account_name [String] The name of Cognitive Services account.
201
- # @param sku [Sku] Gets or sets the SKU of the resource.
202
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
203
- # that describe the resource. These tags can be used in viewing and grouping
204
- # this resource (across resource groups). A maximum of 15 tags can be provided
205
- # for a resource. Each tag must have a key no greater than 128 characters and
206
- # value no greater than 256 characters.
210
+ # @param account [CognitiveServicesAccount] The parameters to provide for the
211
+ # created account.
207
212
  # @param [Hash{String => String}] A hash of custom headers that will be added
208
213
  # to the HTTP request.
209
214
  #
210
215
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
211
216
  #
212
- def update_async(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
217
+ def update_async(resource_group_name, account_name, account, custom_headers:nil)
213
218
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
219
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
220
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
221
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
214
222
  fail ArgumentError, 'account_name is nil' if account_name.nil?
215
223
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
216
224
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
217
225
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
226
+ fail ArgumentError, 'account is nil' if account.nil?
218
227
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
228
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
219
229
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
230
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
220
231
 
221
- parameters = CognitiveServicesAccountUpdateParameters.new
222
- unless sku.nil? && tags.nil?
223
- parameters.sku = sku
224
- parameters.tags = tags
225
- end
226
232
 
227
233
  request_headers = {}
228
234
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
@@ -232,8 +238,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
232
238
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
233
239
 
234
240
  # Serialize Request
235
- request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters.mapper()
236
- request_content = @client.serialize(request_mapper, parameters)
241
+ request_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount.mapper()
242
+ request_content = @client.serialize(request_mapper, account)
237
243
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
238
244
 
239
245
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
@@ -254,12 +260,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
254
260
  http_response = result.response
255
261
  status_code = http_response.status
256
262
  response_content = http_response.body
257
- unless status_code == 200
263
+ unless status_code == 200 || status_code == 202
258
264
  error_model = JSON.load(response_content)
259
265
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
260
266
  end
261
267
 
262
268
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
269
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
270
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
263
271
  # Deserialize Response
264
272
  if status_code == 200
265
273
  begin
@@ -270,6 +278,16 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
270
278
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
271
279
  end
272
280
  end
281
+ # Deserialize Response
282
+ if status_code == 202
283
+ begin
284
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
285
+ result_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount.mapper()
286
+ result.body = @client.deserialize(result_mapper, parsed_response)
287
+ rescue Exception => e
288
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
289
+ end
290
+ end
273
291
 
274
292
  result
275
293
  end
@@ -280,8 +298,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
280
298
  #
281
299
  # Deletes a Cognitive Services account from the resource group.
282
300
  #
283
- # @param resource_group_name [String] The name of the resource group within the
284
- # user's subscription.
301
+ # @param resource_group_name [String] The name of the resource group. The name
302
+ # is case insensitive.
285
303
  # @param account_name [String] The name of Cognitive Services account.
286
304
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
287
305
  # will be added to the HTTP request.
@@ -295,8 +313,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
295
313
  #
296
314
  # Deletes a Cognitive Services account from the resource group.
297
315
  #
298
- # @param resource_group_name [String] The name of the resource group within the
299
- # user's subscription.
316
+ # @param resource_group_name [String] The name of the resource group. The name
317
+ # is case insensitive.
300
318
  # @param account_name [String] The name of Cognitive Services account.
301
319
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
302
320
  # will be added to the HTTP request.
@@ -310,8 +328,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
310
328
  #
311
329
  # Deletes a Cognitive Services account from the resource group.
312
330
  #
313
- # @param resource_group_name [String] The name of the resource group within the
314
- # user's subscription.
331
+ # @param resource_group_name [String] The name of the resource group. The name
332
+ # is case insensitive.
315
333
  # @param account_name [String] The name of Cognitive Services account.
316
334
  # @param [Hash{String => String}] A hash of custom headers that will be added
317
335
  # to the HTTP request.
@@ -320,12 +338,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
320
338
  #
321
339
  def delete_async(resource_group_name, account_name, custom_headers:nil)
322
340
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
341
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
342
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
343
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
323
344
  fail ArgumentError, 'account_name is nil' if account_name.nil?
324
345
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
325
346
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
326
347
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
327
348
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
349
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
328
350
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
351
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
329
352
 
330
353
 
331
354
  request_headers = {}
@@ -351,12 +374,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
351
374
  http_response = result.response
352
375
  status_code = http_response.status
353
376
  response_content = http_response.body
354
- unless status_code == 200 || status_code == 204
377
+ unless status_code == 200 || status_code == 202 || status_code == 204
355
378
  error_model = JSON.load(response_content)
356
379
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
357
380
  end
358
381
 
359
382
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
383
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
384
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
360
385
 
361
386
  result
362
387
  end
@@ -367,8 +392,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
367
392
  #
368
393
  # Returns a Cognitive Services account specified by the parameters.
369
394
  #
370
- # @param resource_group_name [String] The name of the resource group within the
371
- # user's subscription.
395
+ # @param resource_group_name [String] The name of the resource group. The name
396
+ # is case insensitive.
372
397
  # @param account_name [String] The name of Cognitive Services account.
373
398
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
374
399
  # will be added to the HTTP request.
@@ -383,8 +408,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
383
408
  #
384
409
  # Returns a Cognitive Services account specified by the parameters.
385
410
  #
386
- # @param resource_group_name [String] The name of the resource group within the
387
- # user's subscription.
411
+ # @param resource_group_name [String] The name of the resource group. The name
412
+ # is case insensitive.
388
413
  # @param account_name [String] The name of Cognitive Services account.
389
414
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
390
415
  # will be added to the HTTP request.
@@ -398,8 +423,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
398
423
  #
399
424
  # Returns a Cognitive Services account specified by the parameters.
400
425
  #
401
- # @param resource_group_name [String] The name of the resource group within the
402
- # user's subscription.
426
+ # @param resource_group_name [String] The name of the resource group. The name
427
+ # is case insensitive.
403
428
  # @param account_name [String] The name of Cognitive Services account.
404
429
  # @param [Hash{String => String}] A hash of custom headers that will be added
405
430
  # to the HTTP request.
@@ -408,12 +433,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
408
433
  #
409
434
  def get_properties_async(resource_group_name, account_name, custom_headers:nil)
410
435
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
436
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
437
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
438
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
411
439
  fail ArgumentError, 'account_name is nil' if account_name.nil?
412
440
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
413
441
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
414
442
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
415
443
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
444
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
416
445
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
446
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
417
447
 
418
448
 
419
449
  request_headers = {}
@@ -445,6 +475,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
445
475
  end
446
476
 
447
477
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
478
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
479
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
448
480
  # Deserialize Response
449
481
  if status_code == 200
450
482
  begin
@@ -465,8 +497,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
465
497
  #
466
498
  # Returns all the resources of a particular type belonging to a resource group
467
499
  #
468
- # @param resource_group_name [String] The name of the resource group within the
469
- # user's subscription.
500
+ # @param resource_group_name [String] The name of the resource group. The name
501
+ # is case insensitive.
470
502
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
471
503
  # will be added to the HTTP request.
472
504
  #
@@ -480,8 +512,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
480
512
  #
481
513
  # Returns all the resources of a particular type belonging to a resource group
482
514
  #
483
- # @param resource_group_name [String] The name of the resource group within the
484
- # user's subscription.
515
+ # @param resource_group_name [String] The name of the resource group. The name
516
+ # is case insensitive.
485
517
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
518
  # will be added to the HTTP request.
487
519
  #
@@ -494,8 +526,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
494
526
  #
495
527
  # Returns all the resources of a particular type belonging to a resource group
496
528
  #
497
- # @param resource_group_name [String] The name of the resource group within the
498
- # user's subscription.
529
+ # @param resource_group_name [String] The name of the resource group. The name
530
+ # is case insensitive.
499
531
  # @param [Hash{String => String}] A hash of custom headers that will be added
500
532
  # to the HTTP request.
501
533
  #
@@ -503,8 +535,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
503
535
  #
504
536
  def list_by_resource_group_async(resource_group_name, custom_headers:nil)
505
537
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
538
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
539
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
540
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
506
541
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
542
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
507
543
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
544
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
508
545
 
509
546
 
510
547
  request_headers = {}
@@ -536,6 +573,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
536
573
  end
537
574
 
538
575
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
576
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
577
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
539
578
  # Deserialize Response
540
579
  if status_code == 200
541
580
  begin
@@ -588,7 +627,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
588
627
  #
589
628
  def list_async(custom_headers:nil)
590
629
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
630
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
591
631
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
632
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
592
633
 
593
634
 
594
635
  request_headers = {}
@@ -620,6 +661,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
620
661
  end
621
662
 
622
663
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
664
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
665
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
623
666
  # Deserialize Response
624
667
  if status_code == 200
625
668
  begin
@@ -640,8 +683,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
640
683
  #
641
684
  # Lists the account keys for the specified Cognitive Services account.
642
685
  #
643
- # @param resource_group_name [String] The name of the resource group within the
644
- # user's subscription.
686
+ # @param resource_group_name [String] The name of the resource group. The name
687
+ # is case insensitive.
645
688
  # @param account_name [String] The name of Cognitive Services account.
646
689
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
647
690
  # will be added to the HTTP request.
@@ -656,8 +699,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
656
699
  #
657
700
  # Lists the account keys for the specified Cognitive Services account.
658
701
  #
659
- # @param resource_group_name [String] The name of the resource group within the
660
- # user's subscription.
702
+ # @param resource_group_name [String] The name of the resource group. The name
703
+ # is case insensitive.
661
704
  # @param account_name [String] The name of Cognitive Services account.
662
705
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
663
706
  # will be added to the HTTP request.
@@ -671,8 +714,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
671
714
  #
672
715
  # Lists the account keys for the specified Cognitive Services account.
673
716
  #
674
- # @param resource_group_name [String] The name of the resource group within the
675
- # user's subscription.
717
+ # @param resource_group_name [String] The name of the resource group. The name
718
+ # is case insensitive.
676
719
  # @param account_name [String] The name of Cognitive Services account.
677
720
  # @param [Hash{String => String}] A hash of custom headers that will be added
678
721
  # to the HTTP request.
@@ -681,12 +724,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
681
724
  #
682
725
  def list_keys_async(resource_group_name, account_name, custom_headers:nil)
683
726
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
727
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
728
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
729
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
684
730
  fail ArgumentError, 'account_name is nil' if account_name.nil?
685
731
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
686
732
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
687
733
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
688
734
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
735
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
689
736
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
737
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
690
738
 
691
739
 
692
740
  request_headers = {}
@@ -718,6 +766,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
718
766
  end
719
767
 
720
768
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
769
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
770
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
721
771
  # Deserialize Response
722
772
  if status_code == 200
723
773
  begin
@@ -739,8 +789,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
739
789
  # Regenerates the specified account key for the specified Cognitive Services
740
790
  # account.
741
791
  #
742
- # @param resource_group_name [String] The name of the resource group within the
743
- # user's subscription.
792
+ # @param resource_group_name [String] The name of the resource group. The name
793
+ # is case insensitive.
744
794
  # @param account_name [String] The name of Cognitive Services account.
745
795
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
746
796
  # include: 'Key1', 'Key2'
@@ -758,8 +808,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
758
808
  # Regenerates the specified account key for the specified Cognitive Services
759
809
  # account.
760
810
  #
761
- # @param resource_group_name [String] The name of the resource group within the
762
- # user's subscription.
811
+ # @param resource_group_name [String] The name of the resource group. The name
812
+ # is case insensitive.
763
813
  # @param account_name [String] The name of Cognitive Services account.
764
814
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
765
815
  # include: 'Key1', 'Key2'
@@ -776,8 +826,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
776
826
  # Regenerates the specified account key for the specified Cognitive Services
777
827
  # account.
778
828
  #
779
- # @param resource_group_name [String] The name of the resource group within the
780
- # user's subscription.
829
+ # @param resource_group_name [String] The name of the resource group. The name
830
+ # is case insensitive.
781
831
  # @param account_name [String] The name of Cognitive Services account.
782
832
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
783
833
  # include: 'Key1', 'Key2'
@@ -788,12 +838,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
788
838
  #
789
839
  def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:nil)
790
840
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
841
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
842
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
843
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
791
844
  fail ArgumentError, 'account_name is nil' if account_name.nil?
792
845
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
793
846
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
794
847
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
795
848
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
849
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
796
850
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
851
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
797
852
  fail ArgumentError, 'key_name is nil' if key_name.nil?
798
853
 
799
854
  parameters = RegenerateKeyParameters.new
@@ -837,6 +892,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
837
892
  end
838
893
 
839
894
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
895
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
896
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
840
897
  # Deserialize Response
841
898
  if status_code == 200
842
899
  begin
@@ -857,8 +914,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
857
914
  #
858
915
  # List available SKUs for the requested Cognitive Services account
859
916
  #
860
- # @param resource_group_name [String] The name of the resource group within the
861
- # user's subscription.
917
+ # @param resource_group_name [String] The name of the resource group. The name
918
+ # is case insensitive.
862
919
  # @param account_name [String] The name of Cognitive Services account.
863
920
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
864
921
  # will be added to the HTTP request.
@@ -873,8 +930,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
873
930
  #
874
931
  # List available SKUs for the requested Cognitive Services account
875
932
  #
876
- # @param resource_group_name [String] The name of the resource group within the
877
- # user's subscription.
933
+ # @param resource_group_name [String] The name of the resource group. The name
934
+ # is case insensitive.
878
935
  # @param account_name [String] The name of Cognitive Services account.
879
936
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
880
937
  # will be added to the HTTP request.
@@ -888,8 +945,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
888
945
  #
889
946
  # List available SKUs for the requested Cognitive Services account
890
947
  #
891
- # @param resource_group_name [String] The name of the resource group within the
892
- # user's subscription.
948
+ # @param resource_group_name [String] The name of the resource group. The name
949
+ # is case insensitive.
893
950
  # @param account_name [String] The name of Cognitive Services account.
894
951
  # @param [Hash{String => String}] A hash of custom headers that will be added
895
952
  # to the HTTP request.
@@ -898,12 +955,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
898
955
  #
899
956
  def list_skus_async(resource_group_name, account_name, custom_headers:nil)
900
957
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
958
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
959
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
960
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
901
961
  fail ArgumentError, 'account_name is nil' if account_name.nil?
902
962
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
903
963
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
904
964
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
905
965
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
966
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
906
967
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
968
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
907
969
 
908
970
 
909
971
  request_headers = {}
@@ -935,6 +997,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
935
997
  end
936
998
 
937
999
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1000
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1001
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
938
1002
  # Deserialize Response
939
1003
  if status_code == 200
940
1004
  begin
@@ -955,8 +1019,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
955
1019
  #
956
1020
  # Get usages for the requested Cognitive Services account
957
1021
  #
958
- # @param resource_group_name [String] The name of the resource group within the
959
- # user's subscription.
1022
+ # @param resource_group_name [String] The name of the resource group. The name
1023
+ # is case insensitive.
960
1024
  # @param account_name [String] The name of Cognitive Services account.
961
1025
  # @param filter [String] An OData filter expression that describes a subset of
962
1026
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -974,8 +1038,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
974
1038
  #
975
1039
  # Get usages for the requested Cognitive Services account
976
1040
  #
977
- # @param resource_group_name [String] The name of the resource group within the
978
- # user's subscription.
1041
+ # @param resource_group_name [String] The name of the resource group. The name
1042
+ # is case insensitive.
979
1043
  # @param account_name [String] The name of Cognitive Services account.
980
1044
  # @param filter [String] An OData filter expression that describes a subset of
981
1045
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -992,8 +1056,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
992
1056
  #
993
1057
  # Get usages for the requested Cognitive Services account
994
1058
  #
995
- # @param resource_group_name [String] The name of the resource group within the
996
- # user's subscription.
1059
+ # @param resource_group_name [String] The name of the resource group. The name
1060
+ # is case insensitive.
997
1061
  # @param account_name [String] The name of Cognitive Services account.
998
1062
  # @param filter [String] An OData filter expression that describes a subset of
999
1063
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -1005,12 +1069,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1005
1069
  #
1006
1070
  def get_usages_async(resource_group_name, account_name, filter:nil, custom_headers:nil)
1007
1071
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1072
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1073
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1074
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1008
1075
  fail ArgumentError, 'account_name is nil' if account_name.nil?
1009
1076
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
1010
1077
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
1011
1078
  fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
1012
1079
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1080
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1013
1081
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1082
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1014
1083
 
1015
1084
 
1016
1085
  request_headers = {}
@@ -1042,6 +1111,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1042
1111
  end
1043
1112
 
1044
1113
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1114
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1115
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1045
1116
  # Deserialize Response
1046
1117
  if status_code == 200
1047
1118
  begin
@@ -1130,6 +1201,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1130
1201
  end
1131
1202
 
1132
1203
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1204
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1205
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1133
1206
  # Deserialize Response
1134
1207
  if status_code == 200
1135
1208
  begin
@@ -1218,6 +1291,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1218
1291
  end
1219
1292
 
1220
1293
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1294
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1295
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1221
1296
  # Deserialize Response
1222
1297
  if status_code == 200
1223
1298
  begin
@@ -1238,8 +1313,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1238
1313
  #
1239
1314
  # Returns all the resources of a particular type belonging to a resource group
1240
1315
  #
1241
- # @param resource_group_name [String] The name of the resource group within the
1242
- # user's subscription.
1316
+ # @param resource_group_name [String] The name of the resource group. The name
1317
+ # is case insensitive.
1243
1318
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1244
1319
  # will be added to the HTTP request.
1245
1320
  #