azure_mgmt_cognitive_services 0.11.0 → 0.12.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: 24dc8726c25fa19148400fdcb18ff18a204e9700
4
- data.tar.gz: e0c6e815aaf3ec042426a78c3a319acbf197da74
3
+ metadata.gz: 83f589339f5e50e12b6ab6aa830aefb53ef5ffa9
4
+ data.tar.gz: 6f3d65dd34a9cc1fecdabad8689cccca19be6a94
5
5
  SHA512:
6
- metadata.gz: 27e9d3373e8dafa245a0aa65195e9188f4baabbf090e1ca39d7eaddb48b72862ad0b8b7dc27dec96def7ec619156f0647087155a9b722b46de1ea90b52e09ca6
7
- data.tar.gz: d8e916227ada9fc97374864a4d034258a345afaaa75578d5df73a271a162fc046c47d1c650b3dec9cee73e34e4fc69d2a303083422324ecb84cafcffb4ef0c8f
6
+ metadata.gz: 4d71e607a77d80214a7aa26e9709bf994857fda51572bb3613716823a0c8a09c3b864e5b31bbb93abc4ddfade487e3e7dc356ee9fa3d825b03fb50eb227ba32b
7
+ data.tar.gz: eb844f2428332b46cf9717b06f7a889c6ddd0dd5b90cf8801e7c4fe064ff8e2220024c8f6b9acd7810dcd1ccda05fd9bdb46254364a242739639c37202665de4
@@ -24,6 +24,7 @@ module Azure::ARM::CognitiveServices
24
24
  #
25
25
  # Check available SKUs.
26
26
  #
27
+ # @param location [String] Resource location.
27
28
  # @param skus [Array<SkuName>] The SKU of the resource.
28
29
  # @param kind [Kind] The Kind of the resource. Possible values include:
29
30
  # 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -36,14 +37,15 @@ module Azure::ARM::CognitiveServices
36
37
  #
37
38
  # @return [CheckSkuAvailabilityResultList] operation results.
38
39
  #
39
- def list(skus, kind, type, custom_headers = nil)
40
- response = list_async(skus, kind, type, custom_headers).value!
40
+ def list(location, skus, kind, type, custom_headers = nil)
41
+ response = list_async(location, skus, kind, type, custom_headers).value!
41
42
  response.body unless response.nil?
42
43
  end
43
44
 
44
45
  #
45
46
  # Check available SKUs.
46
47
  #
48
+ # @param location [String] Resource location.
47
49
  # @param skus [Array<SkuName>] The SKU of the resource.
48
50
  # @param kind [Kind] The Kind of the resource. Possible values include:
49
51
  # 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -56,13 +58,14 @@ module Azure::ARM::CognitiveServices
56
58
  #
57
59
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
60
  #
59
- def list_with_http_info(skus, kind, type, custom_headers = nil)
60
- list_async(skus, kind, type, custom_headers).value!
61
+ def list_with_http_info(location, skus, kind, type, custom_headers = nil)
62
+ list_async(location, skus, kind, type, custom_headers).value!
61
63
  end
62
64
 
63
65
  #
64
66
  # Check available SKUs.
65
67
  #
68
+ # @param location [String] Resource location.
66
69
  # @param skus [Array<SkuName>] The SKU of the resource.
67
70
  # @param kind [Kind] The Kind of the resource. Possible values include:
68
71
  # 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -75,10 +78,10 @@ module Azure::ARM::CognitiveServices
75
78
  #
76
79
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
80
  #
78
- def list_async(skus, kind, type, custom_headers = nil)
81
+ def list_async(location, skus, kind, type, custom_headers = nil)
79
82
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
80
83
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
81
- fail ArgumentError, '@client.location is nil' if @client.location.nil?
84
+ fail ArgumentError, 'location is nil' if location.nil?
82
85
  fail ArgumentError, 'skus is nil' if skus.nil?
83
86
  fail ArgumentError, 'kind is nil' if kind.nil?
84
87
  fail ArgumentError, 'type is nil' if type.nil?
@@ -109,7 +112,7 @@ module Azure::ARM::CognitiveServices
109
112
 
110
113
  options = {
111
114
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
112
- path_params: {'subscriptionId' => @client.subscription_id,'location' => @client.location},
115
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
113
116
  query_params: {'api-version' => @client.api_version},
114
117
  body: request_content,
115
118
  headers: request_headers.merge(custom_headers || {}),
@@ -24,9 +24,6 @@ module Azure::ARM::CognitiveServices
24
24
  # Current version is 2017-04-18
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Resource location.
28
- attr_accessor :location
29
-
30
27
  # @return [String] Gets or sets the preferred language for the response.
31
28
  attr_accessor :accept_language
32
29
 
@@ -75,6 +75,7 @@ module Azure::ARM::CognitiveServices
75
75
  },
76
76
  id: {
77
77
  required: false,
78
+ read_only: true,
78
79
  serialized_name: 'id',
79
80
  type: {
80
81
  name: 'String'
@@ -96,6 +97,7 @@ module Azure::ARM::CognitiveServices
96
97
  },
97
98
  name: {
98
99
  required: false,
100
+ read_only: true,
99
101
  serialized_name: 'name',
100
102
  type: {
101
103
  name: 'String'
@@ -148,6 +150,7 @@ module Azure::ARM::CognitiveServices
148
150
  },
149
151
  type: {
150
152
  required: false,
153
+ read_only: true,
151
154
  serialized_name: 'type',
152
155
  type: {
153
156
  name: 'String'
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CognitiveServices
7
- VERSION = '0.11.0'
7
+ VERSION = '0.12.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.11.0
4
+ version: 0.12.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: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2017-09-12 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.8.0
75
+ version: 0.9.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.8.0
82
+ version: 0.9.0
83
83
  description: Microsoft Azure Cognitive Services Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []