Skip to content

Commit 9c6a9a8

Browse files
committed
feat(CompareAndComply): add support for username and password
1 parent 69743d4 commit 9c6a9a8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/ibm_watson/compare_comply_v1.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ class CompareComplyV1 < IBMCloudSdkCore::BaseService
4747
# @option args url [String] The base url to use when contacting the service (e.g.
4848
# "https://gateway.watsonplatform.net/compare-comply/api").
4949
# The base url may differ between IBM Cloud regions.
50+
# @option args username [String] The username used to authenticate with the service.
51+
# Username and password credentials are only required to run your
52+
# application locally or outside of IBM Cloud. When running on
53+
# IBM Cloud, the credentials will be automatically loaded from the
54+
# `VCAP_SERVICES` environment variable.
55+
# @option args password [String] The password used to authenticate with the service.
56+
# Username and password credentials are only required to run your
57+
# application locally or outside of IBM Cloud. When running on
58+
# IBM Cloud, the credentials will be automatically loaded from the
59+
# `VCAP_SERVICES` environment variable.
5060
# @option args iam_apikey [String] An API key that can be used to request IAM tokens. If
5161
# this API key is provided, the SDK will manage the token and handle the
5262
# refreshing.
@@ -71,6 +81,8 @@ def initialize(args = {})
7181
defaults = {}
7282
defaults[:version] = nil
7383
defaults[:url] = "https://gateway.watsonplatform.net/compare-comply/api"
84+
defaults[:username] = nil
85+
defaults[:password] = nil
7486
defaults[:iam_apikey] = nil
7587
defaults[:iam_access_token] = nil
7688
defaults[:iam_url] = nil
@@ -679,4 +691,4 @@ def update_batch(batch_id:, action:, model: nil)
679691
response
680692
end
681693
end
682-
end
694+
end

0 commit comments

Comments
 (0)