azure_mgmt_cognitive_services 0.18.1 → 0.18.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b495086744a7ab57a053b8a0c41863a00ab0ebb1e9010be7fddd0d20b462c9dd
4
- data.tar.gz: 6033bc2818c6f4ee67b627a004b2c7fe03650dce8eb0ddebcdd10b75766c660c
2
+ SHA1:
3
+ metadata.gz: 7c6426a6e62fdc08a6acd31badda38de658c4ed2
4
+ data.tar.gz: 1090411a655b0a2797f8af5951b9900d9828d7a5
5
5
  SHA512:
6
- metadata.gz: a090ff954245a2e7925fef74bbc7e51f20e0684de85095854bcf0cbd3eb2f00200cc3ce18b9bba889607502b00c6890d831d4deb8c5e7c4e9a20b71616e8ab3a
7
- data.tar.gz: 9456356b304ad0f896014e687a346f11335043ad8bf6862879cf829bd20954efca273fae98a4f6c593da068954fc7bc3d7d834a209901e8db0ed2b6df95b9dc1
6
+ metadata.gz: 376a578bf4150f08558faad611c74fd585250151c618409ce47e65e83d4cbf9ea122a6797dbe56fe5e778d51b49270ef6e40e0305111a3b2ba33cd5ba550e2b0
7
+ data.tar.gz: 2b37969ce28fdf1ea03d8a70040ab13e57715d9d100aa7a2e6d98e167644105064027eb9a8033e808b8705699fab030be1d521952b35334d62d13f425b720825
@@ -125,7 +125,7 @@ module Azure::CognitiveServices::Mgmt::V2016_02_01_preview
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_cognitive_services'
128
- sdk_information = "#{sdk_information}/0.18.1"
128
+ sdk_information = "#{sdk_information}/0.18.2"
129
129
  add_user_agent_information(sdk_information)
130
130
  end
131
131
  end
@@ -161,13 +161,15 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
161
161
  # this resource (across resource groups). A maximum of 15 tags can be provided
162
162
  # for a resource. Each tag must have a key no greater than 128 characters and
163
163
  # value no greater than 256 characters.
164
+ # @param properties Additional properties for Account. Only provided fields
165
+ # will be updated.
164
166
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
167
  # will be added to the HTTP request.
166
168
  #
167
169
  # @return [CognitiveServicesAccount] operation results.
168
170
  #
169
- def update(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
170
- response = update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value!
171
+ def update(resource_group_name, account_name, sku:nil, tags:nil, properties:nil, custom_headers:nil)
172
+ response = update_async(resource_group_name, account_name, sku:sku, tags:tags, properties:properties, custom_headers:custom_headers).value!
171
173
  response.body unless response.nil?
172
174
  end
173
175
 
@@ -183,13 +185,15 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
183
185
  # this resource (across resource groups). A maximum of 15 tags can be provided
184
186
  # for a resource. Each tag must have a key no greater than 128 characters and
185
187
  # value no greater than 256 characters.
188
+ # @param properties Additional properties for Account. Only provided fields
189
+ # will be updated.
186
190
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
187
191
  # will be added to the HTTP request.
188
192
  #
189
193
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
190
194
  #
191
- def update_with_http_info(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
192
- update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value!
195
+ def update_with_http_info(resource_group_name, account_name, sku:nil, tags:nil, properties:nil, custom_headers:nil)
196
+ update_async(resource_group_name, account_name, sku:sku, tags:tags, properties:properties, custom_headers:custom_headers).value!
193
197
  end
194
198
 
195
199
  #
@@ -204,12 +208,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
204
208
  # this resource (across resource groups). A maximum of 15 tags can be provided
205
209
  # for a resource. Each tag must have a key no greater than 128 characters and
206
210
  # value no greater than 256 characters.
211
+ # @param properties Additional properties for Account. Only provided fields
212
+ # will be updated.
207
213
  # @param [Hash{String => String}] A hash of custom headers that will be added
208
214
  # to the HTTP request.
209
215
  #
210
216
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
211
217
  #
212
- def update_async(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil)
218
+ def update_async(resource_group_name, account_name, sku:nil, tags:nil, properties:nil, custom_headers:nil)
213
219
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
214
220
  fail ArgumentError, 'account_name is nil' if account_name.nil?
215
221
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
@@ -219,9 +225,10 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
219
225
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
220
226
 
221
227
  parameters = CognitiveServicesAccountUpdateParameters.new
222
- unless sku.nil? && tags.nil?
228
+ unless sku.nil? && tags.nil? && properties.nil?
223
229
  parameters.sku = sku
224
230
  parameters.tags = tags
231
+ parameters.properties = properties
225
232
  end
226
233
 
227
234
  request_headers = {}
@@ -137,7 +137,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
137
137
  #
138
138
  def add_telemetry
139
139
  sdk_information = 'azure_mgmt_cognitive_services'
140
- sdk_information = "#{sdk_information}/0.18.1"
140
+ sdk_information = "#{sdk_information}/0.18.2"
141
141
  add_user_agent_information(sdk_information)
142
142
  end
143
143
  end
@@ -39,6 +39,10 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
39
39
  # @return [String] The internal identifier.
40
40
  attr_accessor :internal_id
41
41
 
42
+ # @return [String] Optional subdomain name used for token-based
43
+ # authentication.
44
+ attr_accessor :custom_sub_domain_name
45
+
42
46
  # @return [Sku] The SKU of Cognitive Services account.
43
47
  attr_accessor :sku
44
48
 
@@ -133,6 +137,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
133
137
  name: 'String'
134
138
  }
135
139
  },
140
+ custom_sub_domain_name: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ serialized_name: 'properties.customSubDomainName',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
136
148
  sku: {
137
149
  client_side_validation: true,
138
150
  required: false,
@@ -22,6 +22,10 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
22
22
  # than 128 characters and value no greater than 256 characters.
23
23
  attr_accessor :tags
24
24
 
25
+ # @return Additional properties for Account. Only provided fields will be
26
+ # updated.
27
+ attr_accessor :properties
28
+
25
29
 
26
30
  #
27
31
  # Mapper for CognitiveServicesAccountUpdateParameters class as Ruby Hash.
@@ -60,6 +64,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
60
64
  }
61
65
  }
62
66
  }
67
+ },
68
+ properties: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'properties',
72
+ type: {
73
+ name: 'Object'
74
+ }
63
75
  }
64
76
  }
65
77
  }
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::CognitiveServices::Mgmt
6
- VERSION = '0.18.1'
6
+ VERSION = '0.18.2'
7
7
  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.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.7.6
179
+ rubygems_version: 2.5.1
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Official Ruby client library to consume Microsoft Azure Cognitive Services