Skip to content

Commit 76adf70

Browse files
committed
chore: Merged in master
2 parents 1fd5e35 + dd1a1f9 commit 76adf70

File tree

34 files changed

+1673
-917
lines changed

34 files changed

+1673
-917
lines changed

.secrets.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exclude_regex": null,
3-
"generated_at": "2019-01-17T18:46:47Z",
3+
"generated_at": "2019-02-02T15:16:30Z",
44
"plugins_used": [
55
{
66
"base64_limit": 4.5,
@@ -25,13 +25,13 @@
2525
{
2626
"hashed_secret": "c51238bc51c3b0abee7f61d90c414aec89009734",
2727
"is_secret": false,
28-
"line_number": 47,
28+
"line_number": 49,
2929
"type": "Basic Auth Credentials"
3030
},
3131
{
3232
"hashed_secret": "3f820839b94508b2a9dc3b3e6e1149080af8780c",
3333
"is_secret": false,
34-
"line_number": 82,
34+
"line_number": 84,
3535
"type": "Basic Auth Credentials"
3636
}
3737
]

IBM.WatsonDeveloperCloud.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IBM.WatsonDeveloperCloud.Co
127127
EndProject
128128
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IBM.WatsonDeveloperCloud.CompareComply.v1.IT", "test\IBM.WatsonDeveloperCloud.CompareComply.v1.IT\IBM.WatsonDeveloperCloud.CompareComply.v1.IT.csproj", "{42258A9B-CE18-4C39-BAA5-19F8C5DE041B}"
129129
EndProject
130-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBM.WatsonDeveloperCloud.CompareComply.v1.UT", "test\IBM.WatsonDeveloperCloud.CompareComply.v1.UT\IBM.WatsonDeveloperCloud.CompareComply.v1.UT.csproj", "{DF7A03F2-66F3-4B70-8311-A3487553CA0C}"
130+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IBM.WatsonDeveloperCloud.CompareComply.v1.UT", "test\IBM.WatsonDeveloperCloud.CompareComply.v1.UT\IBM.WatsonDeveloperCloud.CompareComply.v1.UT.csproj", "{DF7A03F2-66F3-4B70-8311-A3487553CA0C}"
131+
EndProject
132+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IBM.WatsonDeveloperCloud.Core.IntegrationTests", "test\IBM.WatsonDeveloperCloud.Core.IntegrationTests\IBM.WatsonDeveloperCloud.Core.IntegrationTests.csproj", "{03A84C2E-8285-483E-8BD2-4A367DDFF230}"
131133
EndProject
132134
Global
133135
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -319,6 +321,10 @@ Global
319321
{DF7A03F2-66F3-4B70-8311-A3487553CA0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
320322
{DF7A03F2-66F3-4B70-8311-A3487553CA0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
321323
{DF7A03F2-66F3-4B70-8311-A3487553CA0C}.Release|Any CPU.Build.0 = Release|Any CPU
324+
{03A84C2E-8285-483E-8BD2-4A367DDFF230}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
325+
{03A84C2E-8285-483E-8BD2-4A367DDFF230}.Debug|Any CPU.Build.0 = Debug|Any CPU
326+
{03A84C2E-8285-483E-8BD2-4A367DDFF230}.Release|Any CPU.ActiveCfg = Release|Any CPU
327+
{03A84C2E-8285-483E-8BD2-4A367DDFF230}.Release|Any CPU.Build.0 = Release|Any CPU
322328
EndGlobalSection
323329
GlobalSection(SolutionProperties) = preSolution
324330
HideSolutionNode = FALSE
@@ -385,6 +391,7 @@ Global
385391
{0287B6FD-D28A-47C9-9686-C4658EBD2129} = {B368DCF7-FB57-4302-8467-4EB142394A29}
386392
{42258A9B-CE18-4C39-BAA5-19F8C5DE041B} = {B368DCF7-FB57-4302-8467-4EB142394A29}
387393
{DF7A03F2-66F3-4B70-8311-A3487553CA0C} = {B368DCF7-FB57-4302-8467-4EB142394A29}
394+
{03A84C2E-8285-483E-8BD2-4A367DDFF230} = {FF4673C9-CB33-4D4F-9116-776A792A2189}
388395
EndGlobalSection
389396
GlobalSection(ExtensibilityGlobals) = postSolution
390397
SolutionGuid = {B9D9D17B-1C17-402F-B701-DC671528690A}

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,25 @@ void Example()
101101
}
102102
```
103103

104+
### ibm-credentials.env
105+
You can create an ibm-credentials.env file for authentication. This has the basic format
106+
```
107+
VISUAL_RECOGNITION_APIKEY=<visual-recognition-apikey>
108+
VISUAL_RECOGNITION_URL=<visual-recognition-service-url>
109+
ASSISTANT_APIKEY=<assistant-apikey>
110+
ASSISTANT_URL=<assistant-service-url>
111+
```
112+
The SDK will search for this file in the following order
113+
- Path specified by environmental variable `IBM_CREDENTIALS_FILE`
114+
- System home directory
115+
- Top level of the project directory
116+
117+
Using a `ibm-credentials.env` file you can easily instantiate and authenticate a service.
118+
```
119+
AssistantService assistantService = new AssistantService();
120+
var listWorkspacesResult = assistantService.ListWorkspaces();
121+
```
122+
104123
## Custom Request Headers
105124
You can send custom request headers by adding them to the `customData` object.
106125
```cs

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ environment:
1717
secure: gevsMhy8RTWMdf7MjOnIo5QaN6JpL9DPK6I+Go5ByZir5LDwyFsv9hO6nBjGTg8n #pragma: whitelist secret
1818
GITHUB_TOKEN:
1919
secure: +B2bs86RVtJtlbkB+cTf9bkqnNlFJi/PbBBPzR5jlUlLLZoOc+ZgqgQLwee4tCT+ #pragma: whitelist secret
20+
IBM_CREDENTIALS_FILE: C:\projects\sdk-credentials\ibm-credentials.env #pragma: whitelist secret
2021
install:
2122
# Get the latest stable version of Node.js or io.js
2223
- ps: Install-Product node $env:nodejs_version
24+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
2325
# install modules
24-
- pip install git+git://github.com/smsearcy/bumpversion.git@issue-135
26+
- pip install --user git+git://github.com/smsearcy/bumpversion.git@issue-135
2527
- npm install @semantic-release/exec
2628
- cmd: >-
2729
rm -rf packages
@@ -164,7 +166,7 @@ test_script:
164166
}
165167
}
166168
167-
If($branchName -eq "feature-build-on-tag")
169+
If($branchName -eq "master")
168170
169171
{
170172
Write-Output "branchName is master - running semantic release"
@@ -225,4 +227,4 @@ deploy:
225227
on:
226228
branch: master
227229
APPVEYOR_REPO_TAG: true
228-
230+

0 commit comments

Comments
 (0)