azure_mgmt_cognitive_services 0.19.1 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -1
  3. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +34 -18
  4. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +103 -56
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +15 -4
  6. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb +75 -0
  7. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb +57 -0
  8. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb +47 -0
  9. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb +74 -0
  10. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb +80 -0
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
  12. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
  13. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
  14. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
  15. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
  16. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
  17. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
  18. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
  19. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
  20. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/tracked_resource.rb +92 -0
  21. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +1 -0
  22. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +373 -0
  23. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
  24. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +2 -0
  25. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +117 -57
  26. data/lib/version.rb +1 -1
  27. metadata +20 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7106ea1a77ffbc0ab00c2017f682a27838ca9a8e6c4962f44ed5b59bca856be0
4
- data.tar.gz: 38c0790721f264156aff3b04377207fc8f1a9db409701ca3d1349fdbdf023a66
3
+ metadata.gz: 01c0ea205fc323d33830f4eafc20ff608bac9a89ef6d0f20aa5a97e7069ecaf2
4
+ data.tar.gz: c7b353ed9f6701aa05ce89efb0c7c17e36a50fd42f2b7a75caec502fd239921e
5
5
  SHA512:
6
- metadata.gz: 614aa6f9c3df75be142f32a95720391b43a16f24a1f8f86138a516e696998be5ecb489953bcef0ce146741d346ff2d21d046372f0290f0934fc57d75a99a4550
7
- data.tar.gz: 52e275cc75848c11b1c322d8a88773c00c1dd56f74a768cf8e84e35beb6dd2b95fdcfd74af2d6d0c8a9d274a3c779391423ad668222bb589dfa82c90d6e3768e
6
+ metadata.gz: c2e9365d6e260f320cf5feb70b8f1ba8acbcfbe52148789dfa42f464b9e0fc3233fce49fb7215c146426e11fce9f1213be519f90f00659d8b5ce8844d9818d25
7
+ data.tar.gz: 28d1aa546b1523ba291c9fd866ae6c20bdf4e9841dc04957a1ddc803e87f0602810b8b9fb87975268877818a62c59c1e67be9c87732d5106bb551577ef1365bf
@@ -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.19.1"
128
+ sdk_information = "#{sdk_information}/0.19.2"
129
129
  add_user_agent_information(sdk_information)
130
130
  end
131
131
  end
@@ -23,47 +23,63 @@ 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 :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'
26
28
  autoload :CognitiveServicesManagementClient, '2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb'
27
29
 
28
30
  module Models
29
- autoload :MetricName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/metric_name.rb'
30
- autoload :Sku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb'
31
31
  autoload :Usage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb'
32
- autoload :VirtualNetworkRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb'
32
+ autoload :Sku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb'
33
33
  autoload :UsagesResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usages_result.rb'
34
- autoload :KeyVaultProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_vault_properties.rb'
34
+ autoload :IpRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.rb'
35
35
  autoload :ErrorBody, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb'
36
- autoload :UserOwnedStorage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb'
36
+ autoload :NetworkRuleSet, '2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb'
37
37
  autoload :Error, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error.rb'
38
- autoload :CognitiveServicesAccountProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb'
38
+ autoload :Encryption, '2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb'
39
39
  autoload :OperationDisplayInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb'
40
- autoload :Identity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/identity.rb'
40
+ autoload :PrivateEndpoint, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb'
41
41
  autoload :OperationEntity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity.rb'
42
- autoload :CognitiveServicesAccountListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
42
+ autoload :PrivateEndpointConnectionProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb'
43
43
  autoload :OperationEntityListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb'
44
- autoload :RegenerateKeyParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
44
+ autoload :CognitiveServicesAccountApiProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb'
45
45
  autoload :CheckSkuAvailabilityParameter, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb'
46
- autoload :CognitiveServicesAccountEnumerateSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
46
+ autoload :UserAssignedIdentity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb'
47
47
  autoload :CheckSkuAvailabilityResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb'
48
- autoload :NetworkRuleSet, '2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb'
48
+ autoload :CognitiveServicesAccount, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
49
49
  autoload :CheckSkuAvailabilityResultList, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb'
50
- autoload :CognitiveServicesAccountApiProperties, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb'
50
+ autoload :CognitiveServicesAccountKeys, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb'
51
51
  autoload :CheckDomainAvailabilityParameter, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_parameter.rb'
52
- autoload :CognitiveServicesAccount, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
53
- autoload :CheckDomainAvailabilityResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_result.rb'
54
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'
54
+ autoload :MetricName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/metric_name.rb'
55
55
  autoload :ResourceSkuRestrictionInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restriction_info.rb'
56
- autoload :Encryption, '2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb'
56
+ autoload :VirtualNetworkRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb'
57
57
  autoload :ResourceSkuRestrictions, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions.rb'
58
- autoload :CognitiveServicesAccountKeys, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb'
58
+ autoload :UserOwnedStorage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb'
59
59
  autoload :ResourceSku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb'
60
- autoload :UserAssignedIdentity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.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'
61
65
  autoload :ResourceSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_skus_result.rb'
62
- autoload :IpRule, '2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.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'
63
77
  autoload :SkuTier, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_tier.rb'
64
78
  autoload :ProvisioningState, '2017-04-18/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb'
65
79
  autoload :NetworkRuleAction, '2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_action.rb'
66
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'
67
83
  autoload :IdentityType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/identity_type.rb'
68
84
  autoload :KeyName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_name.rb'
69
85
  autoload :UnitType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/unit_type.rb'
@@ -26,8 +26,8 @@ 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
32
  # @param account [CognitiveServicesAccount] The parameters to provide for the
33
33
  # created account.
@@ -46,8 +46,8 @@ 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
52
  # @param account [CognitiveServicesAccount] The parameters to provide for the
53
53
  # created account.
@@ -65,8 +65,8 @@ 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
71
  # @param account [CognitiveServicesAccount] The parameters to provide for the
72
72
  # created account.
@@ -77,13 +77,18 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
77
77
  #
78
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
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 = {}
@@ -164,8 +169,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
164
169
  #
165
170
  # Updates a Cognitive Services account
166
171
  #
167
- # @param resource_group_name [String] The name of the resource group within the
168
- # user's subscription.
172
+ # @param resource_group_name [String] The name of the resource group. The name
173
+ # is case insensitive.
169
174
  # @param account_name [String] The name of Cognitive Services account.
170
175
  # @param account [CognitiveServicesAccount] The parameters to provide for the
171
176
  # created account.
@@ -182,8 +187,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
182
187
  #
183
188
  # Updates a Cognitive Services account
184
189
  #
185
- # @param resource_group_name [String] The name of the resource group within the
186
- # user's subscription.
190
+ # @param resource_group_name [String] The name of the resource group. The name
191
+ # is case insensitive.
187
192
  # @param account_name [String] The name of Cognitive Services account.
188
193
  # @param account [CognitiveServicesAccount] The parameters to provide for the
189
194
  # created account.
@@ -199,8 +204,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
199
204
  #
200
205
  # Updates a Cognitive Services account
201
206
  #
202
- # @param resource_group_name [String] The name of the resource group within the
203
- # user's subscription.
207
+ # @param resource_group_name [String] The name of the resource group. The name
208
+ # is case insensitive.
204
209
  # @param account_name [String] The name of Cognitive Services account.
205
210
  # @param account [CognitiveServicesAccount] The parameters to provide for the
206
211
  # created account.
@@ -211,13 +216,18 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
211
216
  #
212
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?
218
226
  fail ArgumentError, 'account is nil' if account.nil?
219
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
220
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
221
231
 
222
232
 
223
233
  request_headers = {}
@@ -288,8 +298,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
288
298
  #
289
299
  # Deletes a Cognitive Services account from the resource group.
290
300
  #
291
- # @param resource_group_name [String] The name of the resource group within the
292
- # user's subscription.
301
+ # @param resource_group_name [String] The name of the resource group. The name
302
+ # is case insensitive.
293
303
  # @param account_name [String] The name of Cognitive Services account.
294
304
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
305
  # will be added to the HTTP request.
@@ -303,8 +313,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
303
313
  #
304
314
  # Deletes a Cognitive Services account from the resource group.
305
315
  #
306
- # @param resource_group_name [String] The name of the resource group within the
307
- # user's subscription.
316
+ # @param resource_group_name [String] The name of the resource group. The name
317
+ # is case insensitive.
308
318
  # @param account_name [String] The name of Cognitive Services account.
309
319
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
320
  # will be added to the HTTP request.
@@ -318,8 +328,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
318
328
  #
319
329
  # Deletes a Cognitive Services account from the resource group.
320
330
  #
321
- # @param resource_group_name [String] The name of the resource group within the
322
- # user's subscription.
331
+ # @param resource_group_name [String] The name of the resource group. The name
332
+ # is case insensitive.
323
333
  # @param account_name [String] The name of Cognitive Services account.
324
334
  # @param [Hash{String => String}] A hash of custom headers that will be added
325
335
  # to the HTTP request.
@@ -328,12 +338,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
328
338
  #
329
339
  def delete_async(resource_group_name, account_name, custom_headers:nil)
330
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?
331
344
  fail ArgumentError, 'account_name is nil' if account_name.nil?
332
345
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
333
346
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
334
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?
335
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
336
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
337
352
 
338
353
 
339
354
  request_headers = {}
@@ -377,8 +392,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
377
392
  #
378
393
  # Returns a Cognitive Services account specified by the parameters.
379
394
  #
380
- # @param resource_group_name [String] The name of the resource group within the
381
- # user's subscription.
395
+ # @param resource_group_name [String] The name of the resource group. The name
396
+ # is case insensitive.
382
397
  # @param account_name [String] The name of Cognitive Services account.
383
398
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
399
  # will be added to the HTTP request.
@@ -393,8 +408,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
393
408
  #
394
409
  # Returns a Cognitive Services account specified by the parameters.
395
410
  #
396
- # @param resource_group_name [String] The name of the resource group within the
397
- # user's subscription.
411
+ # @param resource_group_name [String] The name of the resource group. The name
412
+ # is case insensitive.
398
413
  # @param account_name [String] The name of Cognitive Services account.
399
414
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
415
  # will be added to the HTTP request.
@@ -408,8 +423,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
408
423
  #
409
424
  # Returns a Cognitive Services account specified by the parameters.
410
425
  #
411
- # @param resource_group_name [String] The name of the resource group within the
412
- # user's subscription.
426
+ # @param resource_group_name [String] The name of the resource group. The name
427
+ # is case insensitive.
413
428
  # @param account_name [String] The name of Cognitive Services account.
414
429
  # @param [Hash{String => String}] A hash of custom headers that will be added
415
430
  # to the HTTP request.
@@ -418,12 +433,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
418
433
  #
419
434
  def get_properties_async(resource_group_name, account_name, custom_headers:nil)
420
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?
421
439
  fail ArgumentError, 'account_name is nil' if account_name.nil?
422
440
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
423
441
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
424
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?
425
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
426
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
427
447
 
428
448
 
429
449
  request_headers = {}
@@ -477,8 +497,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
477
497
  #
478
498
  # Returns all the resources of a particular type belonging to a resource group
479
499
  #
480
- # @param resource_group_name [String] The name of the resource group within the
481
- # user's subscription.
500
+ # @param resource_group_name [String] The name of the resource group. The name
501
+ # is case insensitive.
482
502
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
483
503
  # will be added to the HTTP request.
484
504
  #
@@ -492,8 +512,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
492
512
  #
493
513
  # Returns all the resources of a particular type belonging to a resource group
494
514
  #
495
- # @param resource_group_name [String] The name of the resource group within the
496
- # user's subscription.
515
+ # @param resource_group_name [String] The name of the resource group. The name
516
+ # is case insensitive.
497
517
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
498
518
  # will be added to the HTTP request.
499
519
  #
@@ -506,8 +526,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
506
526
  #
507
527
  # Returns all the resources of a particular type belonging to a resource group
508
528
  #
509
- # @param resource_group_name [String] The name of the resource group within the
510
- # user's subscription.
529
+ # @param resource_group_name [String] The name of the resource group. The name
530
+ # is case insensitive.
511
531
  # @param [Hash{String => String}] A hash of custom headers that will be added
512
532
  # to the HTTP request.
513
533
  #
@@ -515,8 +535,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
515
535
  #
516
536
  def list_by_resource_group_async(resource_group_name, custom_headers:nil)
517
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?
518
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
519
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
520
545
 
521
546
 
522
547
  request_headers = {}
@@ -602,7 +627,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
602
627
  #
603
628
  def list_async(custom_headers:nil)
604
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
605
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
606
633
 
607
634
 
608
635
  request_headers = {}
@@ -656,8 +683,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
656
683
  #
657
684
  # Lists the account keys for the specified Cognitive Services account.
658
685
  #
659
- # @param resource_group_name [String] The name of the resource group within the
660
- # user's subscription.
686
+ # @param resource_group_name [String] The name of the resource group. The name
687
+ # is case insensitive.
661
688
  # @param account_name [String] The name of Cognitive Services account.
662
689
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
663
690
  # will be added to the HTTP request.
@@ -672,8 +699,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
672
699
  #
673
700
  # Lists the account keys for the specified Cognitive Services account.
674
701
  #
675
- # @param resource_group_name [String] The name of the resource group within the
676
- # user's subscription.
702
+ # @param resource_group_name [String] The name of the resource group. The name
703
+ # is case insensitive.
677
704
  # @param account_name [String] The name of Cognitive Services account.
678
705
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
679
706
  # will be added to the HTTP request.
@@ -687,8 +714,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
687
714
  #
688
715
  # Lists the account keys for the specified Cognitive Services account.
689
716
  #
690
- # @param resource_group_name [String] The name of the resource group within the
691
- # user's subscription.
717
+ # @param resource_group_name [String] The name of the resource group. The name
718
+ # is case insensitive.
692
719
  # @param account_name [String] The name of Cognitive Services account.
693
720
  # @param [Hash{String => String}] A hash of custom headers that will be added
694
721
  # to the HTTP request.
@@ -697,12 +724,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
697
724
  #
698
725
  def list_keys_async(resource_group_name, account_name, custom_headers:nil)
699
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?
700
730
  fail ArgumentError, 'account_name is nil' if account_name.nil?
701
731
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
702
732
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
703
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?
704
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
705
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
706
738
 
707
739
 
708
740
  request_headers = {}
@@ -757,8 +789,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
757
789
  # Regenerates the specified account key for the specified Cognitive Services
758
790
  # account.
759
791
  #
760
- # @param resource_group_name [String] The name of the resource group within the
761
- # user's subscription.
792
+ # @param resource_group_name [String] The name of the resource group. The name
793
+ # is case insensitive.
762
794
  # @param account_name [String] The name of Cognitive Services account.
763
795
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
764
796
  # include: 'Key1', 'Key2'
@@ -776,8 +808,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
776
808
  # Regenerates the specified account key for the specified Cognitive Services
777
809
  # account.
778
810
  #
779
- # @param resource_group_name [String] The name of the resource group within the
780
- # user's subscription.
811
+ # @param resource_group_name [String] The name of the resource group. The name
812
+ # is case insensitive.
781
813
  # @param account_name [String] The name of Cognitive Services account.
782
814
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
783
815
  # include: 'Key1', 'Key2'
@@ -794,8 +826,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
794
826
  # Regenerates the specified account key for the specified Cognitive Services
795
827
  # account.
796
828
  #
797
- # @param resource_group_name [String] The name of the resource group within the
798
- # user's subscription.
829
+ # @param resource_group_name [String] The name of the resource group. The name
830
+ # is case insensitive.
799
831
  # @param account_name [String] The name of Cognitive Services account.
800
832
  # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
801
833
  # include: 'Key1', 'Key2'
@@ -806,12 +838,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
806
838
  #
807
839
  def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:nil)
808
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?
809
844
  fail ArgumentError, 'account_name is nil' if account_name.nil?
810
845
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
811
846
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
812
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?
813
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
814
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
815
852
  fail ArgumentError, 'key_name is nil' if key_name.nil?
816
853
 
817
854
  parameters = RegenerateKeyParameters.new
@@ -877,8 +914,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
877
914
  #
878
915
  # List available SKUs for the requested Cognitive Services account
879
916
  #
880
- # @param resource_group_name [String] The name of the resource group within the
881
- # user's subscription.
917
+ # @param resource_group_name [String] The name of the resource group. The name
918
+ # is case insensitive.
882
919
  # @param account_name [String] The name of Cognitive Services account.
883
920
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
884
921
  # will be added to the HTTP request.
@@ -893,8 +930,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
893
930
  #
894
931
  # List available SKUs for the requested Cognitive Services account
895
932
  #
896
- # @param resource_group_name [String] The name of the resource group within the
897
- # user's subscription.
933
+ # @param resource_group_name [String] The name of the resource group. The name
934
+ # is case insensitive.
898
935
  # @param account_name [String] The name of Cognitive Services account.
899
936
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
900
937
  # will be added to the HTTP request.
@@ -908,8 +945,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
908
945
  #
909
946
  # List available SKUs for the requested Cognitive Services account
910
947
  #
911
- # @param resource_group_name [String] The name of the resource group within the
912
- # user's subscription.
948
+ # @param resource_group_name [String] The name of the resource group. The name
949
+ # is case insensitive.
913
950
  # @param account_name [String] The name of Cognitive Services account.
914
951
  # @param [Hash{String => String}] A hash of custom headers that will be added
915
952
  # to the HTTP request.
@@ -918,12 +955,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
918
955
  #
919
956
  def list_skus_async(resource_group_name, account_name, custom_headers:nil)
920
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?
921
961
  fail ArgumentError, 'account_name is nil' if account_name.nil?
922
962
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
923
963
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
924
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?
925
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
926
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
927
969
 
928
970
 
929
971
  request_headers = {}
@@ -977,8 +1019,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
977
1019
  #
978
1020
  # Get usages for the requested Cognitive Services account
979
1021
  #
980
- # @param resource_group_name [String] The name of the resource group within the
981
- # user's subscription.
1022
+ # @param resource_group_name [String] The name of the resource group. The name
1023
+ # is case insensitive.
982
1024
  # @param account_name [String] The name of Cognitive Services account.
983
1025
  # @param filter [String] An OData filter expression that describes a subset of
984
1026
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -996,8 +1038,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
996
1038
  #
997
1039
  # Get usages for the requested Cognitive Services account
998
1040
  #
999
- # @param resource_group_name [String] The name of the resource group within the
1000
- # user's subscription.
1041
+ # @param resource_group_name [String] The name of the resource group. The name
1042
+ # is case insensitive.
1001
1043
  # @param account_name [String] The name of Cognitive Services account.
1002
1044
  # @param filter [String] An OData filter expression that describes a subset of
1003
1045
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -1014,8 +1056,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1014
1056
  #
1015
1057
  # Get usages for the requested Cognitive Services account
1016
1058
  #
1017
- # @param resource_group_name [String] The name of the resource group within the
1018
- # user's subscription.
1059
+ # @param resource_group_name [String] The name of the resource group. The name
1060
+ # is case insensitive.
1019
1061
  # @param account_name [String] The name of Cognitive Services account.
1020
1062
  # @param filter [String] An OData filter expression that describes a subset of
1021
1063
  # usages to return. The supported parameter is name.value (name of the metric,
@@ -1027,12 +1069,17 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1027
1069
  #
1028
1070
  def get_usages_async(resource_group_name, account_name, filter:nil, custom_headers:nil)
1029
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?
1030
1075
  fail ArgumentError, 'account_name is nil' if account_name.nil?
1031
1076
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
1032
1077
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
1033
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?
1034
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
1035
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
1036
1083
 
1037
1084
 
1038
1085
  request_headers = {}
@@ -1266,8 +1313,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
1266
1313
  #
1267
1314
  # Returns all the resources of a particular type belonging to a resource group
1268
1315
  #
1269
- # @param resource_group_name [String] The name of the resource group within the
1270
- # user's subscription.
1316
+ # @param resource_group_name [String] The name of the resource group. The name
1317
+ # is case insensitive.
1271
1318
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1272
1319
  # will be added to the HTTP request.
1273
1320
  #