Skip to content

Commit 46aced4

Browse files
authored
Merge pull request #84 from watson-developer-cloud/release-1-2019
Release 1 2019
2 parents a1f251f + 9131cc8 commit 46aced4

15 files changed

+170
-44
lines changed

lib/ibm_watson/assistant_v1.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -2306,6 +2306,9 @@ def list_all_logs(filter:, sort: nil, page_limit: nil, cursor: nil)
23062306
# with a request that passes data. For more information about personal data and
23072307
# customer IDs, see [Information
23082308
# security](https://cloud.ibm.com/docs/services/assistant?topic=assistant-information-security#information-security).
2309+
#
2310+
# This operation is limited to 4 requests per minute. For more information, see
2311+
# **Rate limiting**.
23092312
# @param customer_id [String] The customer ID for which all data is to be deleted.
23102313
# @return [nil]
23112314
def delete_user_data(customer_id:)

lib/ibm_watson/assistant_v2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/ibm_watson/compare_comply_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/ibm_watson/discovery_v1.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -631,6 +631,8 @@ def update_collection(environment_id:, collection_id:, name:, description: nil,
631631

632632
raise ArgumentError.new("collection_id must be provided") if collection_id.nil?
633633

634+
raise ArgumentError.new("name must be provided") if name.nil?
635+
634636
headers = {
635637
}
636638
sdk_headers = Common.new.get_sdk_headers("discovery", "V1", "update_collection")
@@ -1590,6 +1592,8 @@ def query_notices(environment_id:, collection_id:, filter: nil, query: nil, natu
15901592
def federated_query(environment_id:, collection_ids:, filter: nil, query: nil, natural_language_query: nil, passages: nil, aggregation: nil, count: nil, _return: nil, offset: nil, sort: nil, highlight: nil, passages_fields: nil, passages_count: nil, passages_characters: nil, deduplicate: nil, deduplicate_field: nil, similar: nil, similar_document_ids: nil, similar_fields: nil, bias: nil, x_watson_logging_opt_out: nil)
15911593
raise ArgumentError.new("environment_id must be provided") if environment_id.nil?
15921594

1595+
raise ArgumentError.new("collection_ids must be provided") if collection_ids.nil?
1596+
15931597
headers = {
15941598
"X-Watson-Logging-Opt-Out" => x_watson_logging_opt_out
15951599
}
@@ -2216,7 +2220,7 @@ def delete_user_data(customer_id:)
22162220
# Create event.
22172221
# The **Events** API can be used to create log entries that are associated with
22182222
# specific queries. For example, you can record which documents in the results set
2219-
# were "clicked" by a user and when that click occured.
2223+
# were "clicked" by a user and when that click occurred.
22202224
# @param type [String] The event type to be created.
22212225
# @param data [EventData] Query event data object.
22222226
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.

lib/ibm_watson/discovery_v2.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -387,14 +387,14 @@ def get_component_settings(project_id:)
387387
# **_/v2/projects/{project_id}/collections/{collection_id}/documents** method.
388388
#
389389
# **Note:** This operation only works on collections created to accept direct file
390-
# uploads. It cannot be used to modify a collection that conects to an external
390+
# uploads. It cannot be used to modify a collection that connects to an external
391391
# source such as Microsoft SharePoint.
392392
# @param project_id [String] The ID of the project. This information can be found from the deploy page of the
393393
# Discovery administrative tooling.
394394
# @param collection_id [String] The ID of the collection.
395395
# @param file [File] The content of the document to ingest. The maximum supported file size when adding
396396
# a file to a collection is 50 megabytes, the maximum supported file size when
397-
# testing a confiruration is 1 megabyte. Files larger than the supported size are
397+
# testing a configuration is 1 megabyte. Files larger than the supported size are
398398
# rejected.
399399
# @param filename [String] The filename for file.
400400
# @param file_content_type [String] The content type of file.
@@ -459,15 +459,15 @@ def add_document(project_id:, collection_id:, file: nil, filename: nil, file_con
459459
# any document stored with the same **document_id** if it exists.
460460
#
461461
# **Note:** This operation only works on collections created to accept direct file
462-
# uploads. It cannot be used to modify a collection that conects to an external
462+
# uploads. It cannot be used to modify a collection that connects to an external
463463
# source such as Microsoft SharePoint.
464464
# @param project_id [String] The ID of the project. This information can be found from the deploy page of the
465465
# Discovery administrative tooling.
466466
# @param collection_id [String] The ID of the collection.
467467
# @param document_id [String] The ID of the document.
468468
# @param file [File] The content of the document to ingest. The maximum supported file size when adding
469469
# a file to a collection is 50 megabytes, the maximum supported file size when
470-
# testing a confiruration is 1 megabyte. Files larger than the supported size are
470+
# testing a configuration is 1 megabyte. Files larger than the supported size are
471471
# rejected.
472472
# @param filename [String] The filename for file.
473473
# @param file_content_type [String] The content type of file.
@@ -529,7 +529,7 @@ def update_document(project_id:, collection_id:, document_id:, file: nil, filena
529529
# 'deleted'.
530530
#
531531
# **Note:** This operation only works on collections created to accept direct file
532-
# uploads. It cannot be used to modify a collection that conects to an external
532+
# uploads. It cannot be used to modify a collection that connects to an external
533533
# source such as Microsoft SharePoint.
534534
# @param project_id [String] The ID of the project. This information can be found from the deploy page of the
535535
# Discovery administrative tooling.
@@ -647,6 +647,10 @@ def delete_training_queries(project_id:)
647647
def create_training_query(project_id:, natural_language_query:, examples:, filter: nil)
648648
raise ArgumentError.new("project_id must be provided") if project_id.nil?
649649

650+
raise ArgumentError.new("natural_language_query must be provided") if natural_language_query.nil?
651+
652+
raise ArgumentError.new("examples must be provided") if examples.nil?
653+
650654
headers = {
651655
}
652656
sdk_headers = Common.new.get_sdk_headers("discovery", "V2", "create_training_query")

lib/ibm_watson/language_translator_v3.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -391,7 +391,7 @@ def list_documents
391391
# Submit a document for translation. You can submit the document contents in the
392392
# `file` parameter, or you can reference a previously submitted document by document
393393
# ID.
394-
# @param file [File] The source file to translate.
394+
# @param file [File] The contents of the source file to translate.
395395
#
396396
# [Supported file
397397
# types](https://cloud.ibm.com/docs/services/language-translator?topic=language-translator-document-translator-tutorial#supported-file-formats)

lib/ibm_watson/natural_language_classifier_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/ibm_watson/natural_language_understanding_v1.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
#
2222
# You can create [custom
2323
# models](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
24-
# with Watson Knowledge Studio to detect custom entities, relations, and categories in
25-
# Natural Language Understanding.
24+
# with Watson Knowledge Studio to detect custom entities and relations in Natural Language
25+
# Understanding.
2626

2727
require "concurrent"
2828
require "erb"
@@ -87,6 +87,10 @@ def initialize(args = {})
8787
# - Semantic roles
8888
# - Sentiment
8989
# - Syntax (Experimental).
90+
#
91+
# If a language for the input text is not specified with the `language` parameter,
92+
# the service [automatically detects the
93+
# language](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-detectable-languages).
9094
# @param features [Features] Specific features to analyze the document for.
9195
# @param text [String] The plain text to analyze. One of the `text`, `html`, or `url` parameters is
9296
# required.

lib/ibm_watson/personality_insights_v3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# (C) Copyright IBM Corp. 2019.
3+
# (C) Copyright IBM Corp. 2020.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)