azure_mgmt_cognitive_services 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +7 -6
  3. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +21 -9
  4. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +107 -0
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +12 -12
  6. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +11 -6
  7. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb +6 -6
  8. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb +6 -6
  9. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +6 -7
  10. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/kind.rb +3 -6
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/metric_name.rb +59 -0
  12. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/quota_usage_status.rb +18 -0
  13. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb +125 -0
  14. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restriction_info.rb +77 -0
  15. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions.rb +98 -0
  16. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions_reason_code.rb +16 -0
  17. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions_type.rb +16 -0
  18. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_skus_result.rb +99 -0
  19. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/unit_type.rb +21 -0
  20. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb +122 -0
  21. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/usages_result.rb +57 -0
  22. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +224 -0
  23. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +75 -29
  24. data/lib/version.rb +1 -1
  25. metadata +16 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86db8523cbb37693c2fcb6aaf4fd42df4bf8a18e
4
- data.tar.gz: 08568b29087e6e69e337a12bc2962f2c125191a0
3
+ metadata.gz: 38910a06740a7bba6f5537a31fc560817ff5627b
4
+ data.tar.gz: dbd1145be9fb52570642ee506a1d9b48652f122f
5
5
  SHA512:
6
- metadata.gz: de4ed523f3a0c9c39ca35c39b4f071afcffe404d1b9265189a5c30b55ecacd87e067cd2bfa5ddcc21f2e77a2202b3c4354a29585022fa6955c071c3594b9b927
7
- data.tar.gz: 6fe28db4cd5b3214cbd329db8def968c562fdb6b2a2bcecf13715028972b51e10881473a60b3ce4077b8acba5843337f0fb742deee37e7b777eb94412bd5db43
6
+ metadata.gz: ff9c43da20c3b1b772c0024370b3667f56dc21cf3368945a0831ca0b3becd6f5d6107538b6a21d3e9392acd3b71165fad0235e71bba0bebfd992ca211ce58922
7
+ data.tar.gz: d6274b29ed17614cb31a69abd257a93111aea8eb730c68e6bfdf70531660466dd4ea218c31d6cbb6b8078f871b9b2af4413569423a2bc81b5b590a01266c2328
@@ -24,15 +24,16 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
24
24
  # Current version is 2016-02-01-preview
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
38
39
  # @return [CognitiveServicesAccounts] cognitive_services_accounts
@@ -124,7 +125,7 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
124
125
  #
125
126
  def add_telemetry
126
127
  sdk_information = 'azure_mgmt_cognitive_services'
127
- sdk_information = "#{sdk_information}/0.16.0"
128
+ sdk_information = "#{sdk_information}/0.17.0"
128
129
  add_user_agent_information(sdk_information)
129
130
  end
130
131
  end
@@ -21,32 +21,44 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::CognitiveServices::Mgmt::V2017_04_18
23
23
  autoload :Accounts, '2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb'
24
+ autoload :ResourceSkus, '2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb'
24
25
  autoload :Operations, '2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb'
25
26
  autoload :CheckSkuAvailability, '2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb'
26
27
  autoload :CognitiveServicesManagementClient, '2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb'
27
28
 
28
29
  module Models
29
- autoload :CognitiveServicesAccountEnumerateSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
30
30
  autoload :ErrorBody, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb'
31
- autoload :CognitiveServicesAccountCreateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb'
31
+ autoload :Sku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb'
32
32
  autoload :Error, '2017-04-18/generated/azure_mgmt_cognitive_services/models/error.rb'
33
- autoload :CognitiveServicesAccount, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
33
+ autoload :CognitiveServicesAccountUpdateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb'
34
34
  autoload :OperationDisplayInfo, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb'
35
- autoload :CognitiveServicesAccountKeys, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb'
35
+ autoload :CognitiveServicesAccountListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
36
36
  autoload :OperationEntity, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity.rb'
37
- autoload :CognitiveServicesResourceAndSku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb'
37
+ autoload :RegenerateKeyParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
38
38
  autoload :OperationEntityListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb'
39
- autoload :CognitiveServicesAccountUpdateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb'
39
+ autoload :CognitiveServicesAccountEnumerateSkusResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
40
40
  autoload :CheckSkuAvailabilityParameter, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb'
41
- autoload :RegenerateKeyParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
41
+ autoload :Usage, '2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb'
42
42
  autoload :CheckSkuAvailabilityResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb'
43
- autoload :CognitiveServicesAccountListResult, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
43
+ autoload :CognitiveServicesAccountCreateParameters, '2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb'
44
44
  autoload :CheckSkuAvailabilityResultList, '2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb'
45
- autoload :Sku, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb'
45
+ 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'
47
+ autoload :MetricName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/metric_name.rb'
48
+ 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'
50
+ 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'
52
+ 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'
46
54
  autoload :SkuName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_name.rb'
47
55
  autoload :SkuTier, '2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_tier.rb'
48
56
  autoload :Kind, '2017-04-18/generated/azure_mgmt_cognitive_services/models/kind.rb'
49
57
  autoload :ProvisioningState, '2017-04-18/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb'
50
58
  autoload :KeyName, '2017-04-18/generated/azure_mgmt_cognitive_services/models/key_name.rb'
59
+ autoload :UnitType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/unit_type.rb'
60
+ autoload :QuotaUsageStatus, '2017-04-18/generated/azure_mgmt_cognitive_services/models/quota_usage_status.rb'
61
+ autoload :ResourceSkuRestrictionsType, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions_type.rb'
62
+ autoload :ResourceSkuRestrictionsReasonCode, '2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku_restrictions_reason_code.rb'
51
63
  end
52
64
  end
@@ -952,6 +952,113 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
952
952
  promise.execute
953
953
  end
954
954
 
955
+ #
956
+ # Get usages for the requested Cognitive Services account
957
+ #
958
+ # @param resource_group_name [String] The name of the resource group within the
959
+ # user's subscription.
960
+ # @param account_name [String] The name of Cognitive Services account.
961
+ # @param filter [String] An OData filter expression that describes a subset of
962
+ # usages to return. The supported parameter is name.value (name of the metric,
963
+ # can have an or of multiple names).
964
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
965
+ # will be added to the HTTP request.
966
+ #
967
+ # @return [UsagesResult] operation results.
968
+ #
969
+ def get_usages(resource_group_name, account_name, filter:nil, custom_headers:nil)
970
+ response = get_usages_async(resource_group_name, account_name, filter:filter, custom_headers:custom_headers).value!
971
+ response.body unless response.nil?
972
+ end
973
+
974
+ #
975
+ # Get usages for the requested Cognitive Services account
976
+ #
977
+ # @param resource_group_name [String] The name of the resource group within the
978
+ # user's subscription.
979
+ # @param account_name [String] The name of Cognitive Services account.
980
+ # @param filter [String] An OData filter expression that describes a subset of
981
+ # usages to return. The supported parameter is name.value (name of the metric,
982
+ # can have an or of multiple names).
983
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
984
+ # will be added to the HTTP request.
985
+ #
986
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
987
+ #
988
+ def get_usages_with_http_info(resource_group_name, account_name, filter:nil, custom_headers:nil)
989
+ get_usages_async(resource_group_name, account_name, filter:filter, custom_headers:custom_headers).value!
990
+ end
991
+
992
+ #
993
+ # Get usages for the requested Cognitive Services account
994
+ #
995
+ # @param resource_group_name [String] The name of the resource group within the
996
+ # user's subscription.
997
+ # @param account_name [String] The name of Cognitive Services account.
998
+ # @param filter [String] An OData filter expression that describes a subset of
999
+ # usages to return. The supported parameter is name.value (name of the metric,
1000
+ # can have an or of multiple names).
1001
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1002
+ # to the HTTP request.
1003
+ #
1004
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1005
+ #
1006
+ def get_usages_async(resource_group_name, account_name, filter:nil, custom_headers:nil)
1007
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1008
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1009
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
1010
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
1011
+ 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
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1013
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1014
+
1015
+
1016
+ request_headers = {}
1017
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1018
+
1019
+ # Set Headers
1020
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1021
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1022
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages'
1023
+
1024
+ request_url = @base_url || @client.base_url
1025
+
1026
+ options = {
1027
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1028
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
1029
+ query_params: {'api-version' => @client.api_version,'$filter' => filter},
1030
+ headers: request_headers.merge(custom_headers || {}),
1031
+ base_url: request_url
1032
+ }
1033
+ promise = @client.make_request_async(:get, path_template, options)
1034
+
1035
+ promise = promise.then do |result|
1036
+ http_response = result.response
1037
+ status_code = http_response.status
1038
+ response_content = http_response.body
1039
+ unless status_code == 200
1040
+ error_model = JSON.load(response_content)
1041
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1042
+ end
1043
+
1044
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1045
+ # Deserialize Response
1046
+ if status_code == 200
1047
+ begin
1048
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1049
+ result_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult.mapper()
1050
+ result.body = @client.deserialize(result_mapper, parsed_response)
1051
+ rescue Exception => e
1052
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1053
+ end
1054
+ end
1055
+
1056
+ result
1057
+ end
1058
+
1059
+ promise.execute
1060
+ end
1061
+
955
1062
  #
956
1063
  # Returns all the resources of a particular type belonging to a resource group
957
1064
  #
@@ -27,11 +27,11 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
27
27
  # @param location [String] Resource location.
28
28
  # @param skus [Array<SkuName>] The SKU of the resource.
29
29
  # @param kind [Kind] The Kind of the resource. Possible values include:
30
- # 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch',
31
- # 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck',
30
+ # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech',
32
31
  # 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech',
33
- # 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech',
34
- # 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'
32
+ # 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face',
33
+ # 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation',
34
+ # 'TextAnalytics', 'TextTranslation', 'WebLM'
35
35
  # @param type [String] The Type of the resource.
36
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
37
  # will be added to the HTTP request.
@@ -49,11 +49,11 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
49
49
  # @param location [String] Resource location.
50
50
  # @param skus [Array<SkuName>] The SKU of the resource.
51
51
  # @param kind [Kind] The Kind of the resource. Possible values include:
52
- # 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch',
53
- # 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck',
52
+ # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech',
54
53
  # 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech',
55
- # 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech',
56
- # 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'
54
+ # 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face',
55
+ # 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation',
56
+ # 'TextAnalytics', 'TextTranslation', 'WebLM'
57
57
  # @param type [String] The Type of the resource.
58
58
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
59
59
  # will be added to the HTTP request.
@@ -70,11 +70,11 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
70
70
  # @param location [String] Resource location.
71
71
  # @param skus [Array<SkuName>] The SKU of the resource.
72
72
  # @param kind [Kind] The Kind of the resource. Possible values include:
73
- # 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch',
74
- # 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck',
73
+ # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech',
75
74
  # 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech',
76
- # 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech',
77
- # 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'
75
+ # 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face',
76
+ # 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation',
77
+ # 'TextAnalytics', 'TextTranslation', 'WebLM'
78
78
  # @param type [String] The Type of the resource.
79
79
  # @param [Hash{String => String}] A hash of custom headers that will be added
80
80
  # to the HTTP request.
@@ -24,20 +24,24 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
24
24
  # Current version is 2017-04-18
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
38
39
  # @return [Accounts] accounts
39
40
  attr_reader :accounts
40
41
 
42
+ # @return [ResourceSkus] resource_skus
43
+ attr_reader :resource_skus
44
+
41
45
  # @return [Operations] operations
42
46
  attr_reader :operations
43
47
 
@@ -58,6 +62,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
58
62
  @credentials = credentials
59
63
 
60
64
  @accounts = Accounts.new(self)
65
+ @resource_skus = ResourceSkus.new(self)
61
66
  @operations = Operations.new(self)
62
67
  @check_sku_availability = CheckSkuAvailability.new(self)
63
68
  @api_version = '2017-04-18'
@@ -132,7 +137,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
132
137
  #
133
138
  def add_telemetry
134
139
  sdk_information = 'azure_mgmt_cognitive_services'
135
- sdk_information = "#{sdk_information}/0.16.0"
140
+ sdk_information = "#{sdk_information}/0.17.0"
136
141
  add_user_agent_information(sdk_information)
137
142
  end
138
143
  end
@@ -16,12 +16,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
16
16
  attr_accessor :skus
17
17
 
18
18
  # @return [Kind] The Kind of the resource. Possible values include:
19
- # 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7',
20
- # 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech',
21
- # 'Bing.SpellCheck', 'Bing.SpellCheck.v7', 'ComputerVision',
22
- # 'ContentModerator', 'CustomSpeech', 'Emotion', 'Face', 'LUIS',
23
- # 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation',
24
- # 'TextAnalytics', 'TextTranslation', 'WebLM'
19
+ # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7',
20
+ # 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision',
21
+ # 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction',
22
+ # 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker',
23
+ # 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics',
24
+ # 'TextTranslation', 'WebLM'
25
25
  attr_accessor :kind
26
26
 
27
27
  # @return [String] The Type of the resource.
@@ -13,12 +13,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [Kind] The Kind of the resource. Possible values include:
16
- # 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7',
17
- # 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech',
18
- # 'Bing.SpellCheck', 'Bing.SpellCheck.v7', 'ComputerVision',
19
- # 'ContentModerator', 'CustomSpeech', 'Emotion', 'Face', 'LUIS',
20
- # 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation',
21
- # 'TextAnalytics', 'TextTranslation', 'WebLM'
16
+ # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7',
17
+ # 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision',
18
+ # 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction',
19
+ # 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker',
20
+ # 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics',
21
+ # 'TextTranslation', 'WebLM'
22
22
  attr_accessor :kind
23
23
 
24
24
  # @return [String] The Type of the resource.
@@ -16,13 +16,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
16
16
  attr_accessor :sku
17
17
 
18
18
  # @return [Kind] Required. Gets or sets the Kind of the resource.
19
- # Possible values include: 'Academic', 'Bing.Autosuggest',
20
- # 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search',
21
- # 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck',
22
- # 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator',
23
- # 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations',
24
- # 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
25
- # 'TextTranslation', 'WebLM'
19
+ # Possible values include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch',
20
+ # 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7',
21
+ # 'ComputerVision', 'ContentModerator', 'CustomSpeech',
22
+ # 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face',
23
+ # 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation',
24
+ # 'TextAnalytics', 'TextTranslation', 'WebLM'
26
25
  attr_accessor :kind
27
26
 
28
27
  # @return [String] Required. Gets or sets the location of the resource.
@@ -9,24 +9,21 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
9
9
  # Defines values for Kind
10
10
  #
11
11
  module Kind
12
- Academic = "Academic"
13
- BingAutosuggest = "Bing.Autosuggest"
14
12
  BingAutosuggestv7 = "Bing.Autosuggest.v7"
15
13
  BingCustomSearch = "Bing.CustomSearch"
16
- BingSearch = "Bing.Search"
17
14
  BingSearchv7 = "Bing.Search.v7"
18
15
  BingSpeech = "Bing.Speech"
19
- BingSpellCheck = "Bing.SpellCheck"
20
16
  BingSpellCheckv7 = "Bing.SpellCheck.v7"
21
17
  ComputerVision = "ComputerVision"
22
18
  ContentModerator = "ContentModerator"
23
19
  CustomSpeech = "CustomSpeech"
20
+ CustomVisionPrediction = "CustomVision.Prediction"
21
+ CustomVisionTraining = "CustomVision.Training"
24
22
  Emotion = "Emotion"
25
23
  Face = "Face"
26
24
  LUIS = "LUIS"
27
- Recommendations = "Recommendations"
25
+ QnAMaker = "QnAMaker"
28
26
  SpeakerRecognition = "SpeakerRecognition"
29
- Speech = "Speech"
30
27
  SpeechTranslation = "SpeechTranslation"
31
28
  TextAnalytics = "TextAnalytics"
32
29
  TextTranslation = "TextTranslation"
@@ -0,0 +1,59 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::Mgmt::V2017_04_18
7
+ module Models
8
+ #
9
+ # A metric name.
10
+ #
11
+ class MetricName
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the metric.
16
+ attr_accessor :value
17
+
18
+ # @return [String] The friendly name of the metric.
19
+ attr_accessor :localized_value
20
+
21
+
22
+ #
23
+ # Mapper for MetricName class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'MetricName',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'MetricName',
34
+ model_properties: {
35
+ value: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'value',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ localized_value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'localizedValue',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end