azure_mgmt_cognitive_services 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8072a4e48bdf60e2b1596502a17f83da53d32a5
4
- data.tar.gz: 469cc8d748be58e2ae4c60af38c77f70a78d7f50
3
+ metadata.gz: a3459b14e47abcce16f7b14e26863e6321159995
4
+ data.tar.gz: 045e8a26e504b992518c9f3680394e9e9cc564b5
5
5
  SHA512:
6
- metadata.gz: 096d93bf82dd5d839e3de33a869044fe18b03cb7827efa03d10ed68a2b799233dc273cd13b9a68cd406ea5935fa6b3d396de88f3e645a00fcc40cb6f6df5a9f6
7
- data.tar.gz: 18fb7d955bfedde34c3dd5e4551040173f413c91793751e830bdacf20a6efc31d9bdd42d27121cd411402cc2966cec1233674a8d47e443369b27e421c4ad4278
6
+ metadata.gz: 2de5c6189247221e670405115ac048cce8143d61e101eb514e295f73ec6b7fd7da6b3e23f30502c67cfdb1c76042b77b07d283c3a27c4f9bca435b99da85b454
7
+ data.tar.gz: 063e1423584476bb68823e70fff396bfea8f07de6323a1a5a655789199c9a33647c2386ef094532cffe22db9716081b6746c2560f87b7636933ab318bc3817a6
@@ -26,14 +26,14 @@ module Azure::ARM::CognitiveServices
26
26
  module Models
27
27
  autoload :CognitiveServicesAccountKeys, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb'
28
28
  autoload :RegenerateKeyParameters, 'generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb'
29
- autoload :Sku, 'generated/azure_mgmt_cognitive_services/models/sku.rb'
30
- autoload :CognitiveServicesAccountEnumerateSkusResult, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
31
- autoload :CognitiveServicesAccount, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
32
- autoload :CognitiveServicesResourceAndSku, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb'
33
29
  autoload :CognitiveServicesAccountCreateParameters, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb'
34
- autoload :Error, 'generated/azure_mgmt_cognitive_services/models/error.rb'
35
- autoload :CognitiveServicesAccountListResult, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
30
+ autoload :CognitiveServicesResourceAndSku, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb'
31
+ autoload :CognitiveServicesAccount, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb'
32
+ autoload :CognitiveServicesAccountEnumerateSkusResult, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb'
33
+ autoload :Sku, 'generated/azure_mgmt_cognitive_services/models/sku.rb'
36
34
  autoload :ErrorBody, 'generated/azure_mgmt_cognitive_services/models/error_body.rb'
35
+ autoload :CognitiveServicesAccountListResult, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb'
36
+ autoload :Error, 'generated/azure_mgmt_cognitive_services/models/error.rb'
37
37
  autoload :CognitiveServicesAccountUpdateParameters, 'generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb'
38
38
  autoload :SkuName, 'generated/azure_mgmt_cognitive_services/models/sku_name.rb'
39
39
  autoload :SkuTier, 'generated/azure_mgmt_cognitive_services/models/sku_tier.rb'
@@ -44,12 +44,11 @@ module Azure::ARM::CognitiveServices
44
44
  # @param base_url [String] the base URI of the service.
45
45
  # @param options [Array] filters to be applied to the HTTP requests.
46
46
  #
47
- def initialize(credentials, base_url = nil, options = nil)
47
+ def initialize(credentials = nil, base_url = nil, options = nil)
48
48
  super(credentials, options)
49
49
  @base_url = base_url || 'https://management.azure.com'
50
50
 
51
- fail ArgumentError, 'credentials is nil' if credentials.nil?
52
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
51
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
53
52
  @credentials = credentials
54
53
 
55
54
  @cognitive_services_accounts = CognitiveServicesAccounts.new(self)
@@ -62,7 +61,7 @@ module Azure::ARM::CognitiveServices
62
61
 
63
62
  #
64
63
  # Makes a request and returns the body of the response.
65
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
64
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
66
65
  # @param path [String] the path, relative to {base_url}.
67
66
  # @param options [Hash{String=>String}] specifying any request options like :body.
68
67
  # @return [Hash{String=>String}] containing the body of the response.
@@ -123,7 +122,7 @@ module Azure::ARM::CognitiveServices
123
122
  def add_telemetry
124
123
  sdk_information = 'azure_mgmt_cognitive_services'
125
124
  if defined? Azure::ARM::CognitiveServices::VERSION
126
- sdk_information = "#{sdk_information}/#{Azure::ARM::CognitiveServices::VERSION}"
125
+ sdk_information = "#{sdk_information}/#{Azure::ARM::CognitiveServices::VERSION}"
127
126
  end
128
127
  add_user_agent_information(sdk_information)
129
128
  end
@@ -16,8 +16,11 @@ module Azure::ARM::CognitiveServices
16
16
  attr_accessor :sku
17
17
 
18
18
  # @return [Kind] Required. Indicates the type of cognitive service
19
- # account. Possible values include: 'ComputerVision', 'Emotion', 'Face',
20
- # 'LUIS', 'Recommendations', 'Speech', 'TextAnalytics', 'WebLM'
19
+ # account. Possible values include: 'Academic', 'Bing.Autosuggest',
20
+ # 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision',
21
+ # 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations',
22
+ # 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
23
+ # 'TextTranslation', 'WebLM'
21
24
  attr_accessor :kind
22
25
 
23
26
  # @return [String] Required. Gets or sets the location of the resource.
@@ -62,8 +65,7 @@ module Azure::ARM::CognitiveServices
62
65
  required: true,
63
66
  serialized_name: 'kind',
64
67
  type: {
65
- name: 'Enum',
66
- module: 'Kind'
68
+ name: 'String'
67
69
  }
68
70
  },
69
71
  location: {
@@ -7,7 +7,7 @@ module Azure::ARM::CognitiveServices
7
7
  module Models
8
8
  #
9
9
  # Model object.
10
- #
10
+ #
11
11
  #
12
12
  class CognitiveServicesResourceAndSku
13
13
 
@@ -7,7 +7,7 @@ module Azure::ARM::CognitiveServices
7
7
  module Models
8
8
  #
9
9
  # Model object.
10
- #
10
+ #
11
11
  #
12
12
  class Error
13
13
 
@@ -7,7 +7,7 @@ module Azure::ARM::CognitiveServices
7
7
  module Models
8
8
  #
9
9
  # Model object.
10
- #
10
+ #
11
11
  #
12
12
  class ErrorBody
13
13
 
@@ -9,13 +9,22 @@ module Azure::ARM::CognitiveServices
9
9
  # Defines values for Kind
10
10
  #
11
11
  module Kind
12
+ Academic = "Academic"
13
+ BingAutosuggest = "Bing.Autosuggest"
14
+ BingSearch = "Bing.Search"
15
+ BingSpeech = "Bing.Speech"
16
+ BingSpellCheck = "Bing.SpellCheck"
12
17
  ComputerVision = "ComputerVision"
18
+ ContentModerator = "ContentModerator"
13
19
  Emotion = "Emotion"
14
20
  Face = "Face"
15
21
  LUIS = "LUIS"
16
22
  Recommendations = "Recommendations"
23
+ SpeakerRecognition = "SpeakerRecognition"
17
24
  Speech = "Speech"
25
+ SpeechTranslation = "SpeechTranslation"
18
26
  TextAnalytics = "TextAnalytics"
27
+ TextTranslation = "TextTranslation"
19
28
  WebLM = "WebLM"
20
29
  end
21
30
  end
@@ -13,8 +13,8 @@ module Azure::ARM::CognitiveServices
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [SkuName] Gets or sets the sku name. Required for account
16
- # creation, optional for update. Possible values include: 'F0', 'S0',
17
- # 'S1', 'S2', 'S3', 'S4'
16
+ # creation, optional for update. Possible values include: 'F0', 'P0',
17
+ # 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'
18
18
  attr_accessor :name
19
19
 
20
20
  # @return [SkuTier] Gets the sku tier. This is based on the SKU name.
@@ -38,8 +38,7 @@ module Azure::ARM::CognitiveServices
38
38
  required: true,
39
39
  serialized_name: 'name',
40
40
  type: {
41
- name: 'Enum',
42
- module: 'SkuName'
41
+ name: 'String'
43
42
  }
44
43
  },
45
44
  tier: {
@@ -10,11 +10,16 @@ module Azure::ARM::CognitiveServices
10
10
  #
11
11
  module SkuName
12
12
  F0 = "F0"
13
+ P0 = "P0"
14
+ P1 = "P1"
15
+ P2 = "P2"
13
16
  S0 = "S0"
14
17
  S1 = "S1"
15
18
  S2 = "S2"
16
19
  S3 = "S3"
17
20
  S4 = "S4"
21
+ S5 = "S5"
22
+ S6 = "S6"
18
23
  end
19
24
  end
20
25
  end
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CognitiveServices
7
- VERSION = '0.8.0'
7
+ VERSION = '0.9.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_cognitive_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.2
75
+ version: 0.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.2
82
+ version: 0.7.0
83
83
  description: Microsoft Azure Cognitive Services Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []