Skip to content

Commit

Permalink
iam changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Compton committed Jun 21, 2018
1 parent ad97c2b commit 664f2e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Sources/CloudEnvironment/WatsonAssistantCredentials.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@
///
/// Contains the credentials for a Watson Assistant service instance.
public class WatsonAssistantCredentials {

public let apiKey: String
public let url: String

public init(apiKey: String, url: String) {
self.apiKey = apiKey
self.url = url
}
}


extension CloudEnv {

/// Returns an WatsonAssistantCredentials object with the corresponding credentials.
Expand Down
4 changes: 0 additions & 4 deletions Tests/CloudEnvironmentTests/resources/config_cf_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
{
"credentials": {
"apikey": "assistant-apikey",
"iam_apikey_description": "Auto generated apikey during resource-key operation for Instance - crn:v1:bluemix:public:conversation:au-syd:a/0abf627bc63ab2e45c2b60838a7de045:7e7ceb57-4c16-4a63-afbb-d9848bbb9aa1::",
"iam_apikey_name": "auto-generated-apikey-c94ac094-b83f-48ec-9282-64094b48d1d2",
"iam_role_crn": "crn:v1:bluemix:public:iam::::serviceRole:Writer",
"iam_serviceid_crn": "crn:v1:bluemix:public:iam-identity::a/0abf627bc63ab2e45c2b60838a7de045::serviceid:ServiceId-d9893726-7b8f-4fb3-aa85-e27cfec541ca",
"url": "https://gateway.watsonplatform.net/assistant/api"
},
"label": "conversation",
Expand Down

0 comments on commit 664f2e6

Please sign in to comment.