Skip to content

Commit 9318982

Browse files
authored
Merge pull request #436 from watson-developer-cloud/5243-abstract-discovery-updates
Abstract Discovery Updates
2 parents 2fcd561 + 760c235 commit 9318982

File tree

85 files changed

+4772
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+4772
-387
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ etc.meta
6363
/Travis/build.sh.meta
6464
/Travis/createProject.sh.meta
6565
/Travis/installSDK.sh.meta
66+
/Travis/installTestTools.sh.meta
6667
/Travis/installUnity.sh.meta
6768
/Travis/README.md.meta
6869
/Travis/runTests.sh.meta
@@ -73,4 +74,6 @@ Docs/publishing-release.md.meta
7374
*.txt.meta
7475
*.ps1.meta
7576
**/.swagger-codegen-ignore
76-
**/.swagger-codegen
77+
**/.swagger-codegen
78+
/Scripts/Editor/Help/
79+
/Scripts/Editor/Help.meta

Examples/ServiceExamples/Scripts/ExampleDiscovery.cs

Lines changed: 194 additions & 114 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Watson APIs Unity SDK
1+
# IBM Watson SDK for Unity
22
[![Build Status](https://travis-ci.org/watson-developer-cloud/unity-sdk.svg?branch=develop)](https://travis-ci.org/watson-developer-cloud/unity-sdk)
33
[![wdc-community.slack.com](https://wdc-slack-inviter.mybluemix.net/badge.svg)](http://wdc-slack-inviter.mybluemix.net/)
44

@@ -362,6 +362,9 @@ Watson services have upgraded their hosts to TLS 1.2. The US South region has a
362362
## Documentation
363363
Documentation can be found [here][documentation]. You can also access the documentation by selecting API Reference the Watson menu (**Watson -> API Reference**).
364364

365+
## Getting started videos
366+
You can view Getting Started videos for the IBM Watson SDK for Unity on [YouTube](https://www.youtube.com/watch?v=Sa5hmukwHV8&list=PLZDyxLlNKRY8MdgiUq45cZztn_f0EVz6c).
367+
365368
## Questions
366369

367370
If you are having difficulties using the APIs or have a question about the IBM Watson Services, please ask a question on

Scripts/Services/Assistant/v1/Model/Counterexample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public class Counterexample
3737
/// </summary>
3838
/// <value>The timestamp for creation of the counterexample.</value>
3939
[fsProperty("created")]
40-
public virtual DateTime Created { get; private set; }
40+
public virtual DateTime? Created { get; private set; }
4141
/// <summary>
4242
/// The timestamp for the last update to the counterexample.
4343
/// </summary>
4444
/// <value>The timestamp for the last update to the counterexample.</value>
4545
[fsProperty("updated")]
46-
public virtual DateTime Updated { get; private set; }
46+
public virtual DateTime? Updated { get; private set; }
4747
}
4848

4949
}

Scripts/Services/Assistant/v1/Model/DialogNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ public enum EventNameEnum
193193
/// </summary>
194194
/// <value>The timestamp for creation of the dialog node.</value>
195195
[fsProperty("created")]
196-
public virtual DateTime Created { get; private set; }
196+
public virtual DateTime? Created { get; private set; }
197197
/// <summary>
198198
/// The timestamp for the most recent update to the dialog node.
199199
/// </summary>
200200
/// <value>The timestamp for the most recent update to the dialog node.</value>
201201
[fsProperty("updated")]
202-
public virtual DateTime Updated { get; private set; }
202+
public virtual DateTime? Updated { get; private set; }
203203
/// <summary>
204204
/// The actions for the dialog node.
205205
/// </summary>

Scripts/Services/Assistant/v1/Model/Entity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public class Entity
3737
/// </summary>
3838
/// <value>The timestamp for creation of the entity.</value>
3939
[fsProperty("created")]
40-
public virtual DateTime Created { get; private set; }
40+
public virtual DateTime? Created { get; private set; }
4141
/// <summary>
4242
/// The timestamp for the last update to the entity.
4343
/// </summary>
4444
/// <value>The timestamp for the last update to the entity.</value>
4545
[fsProperty("updated")]
46-
public virtual DateTime Updated { get; private set; }
46+
public virtual DateTime? Updated { get; private set; }
4747
/// <summary>
4848
/// The description of the entity.
4949
/// </summary>

Scripts/Services/Assistant/v1/Model/EntityExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ public class EntityExport
3838
/// </summary>
3939
/// <value>The timestamp for creation of the entity.</value>
4040
[fsProperty("created")]
41-
public virtual DateTime Created { get; private set; }
41+
public virtual DateTime? Created { get; private set; }
4242
/// <summary>
4343
/// The timestamp for the last update to the entity.
4444
/// </summary>
4545
/// <value>The timestamp for the last update to the entity.</value>
4646
[fsProperty("updated")]
47-
public virtual DateTime Updated { get; private set; }
47+
public virtual DateTime? Updated { get; private set; }
4848
/// <summary>
4949
/// The description of the entity.
5050
/// </summary>

Scripts/Services/Assistant/v1/Model/Example.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ public class Example
3838
/// </summary>
3939
/// <value>The timestamp for creation of the example.</value>
4040
[fsProperty("created")]
41-
public virtual DateTime Created { get; private set; }
41+
public virtual DateTime? Created { get; private set; }
4242
/// <summary>
4343
/// The timestamp for the last update to the example.
4444
/// </summary>
4545
/// <value>The timestamp for the last update to the example.</value>
4646
[fsProperty("updated")]
47-
public virtual DateTime Updated { get; private set; }
47+
public virtual DateTime? Updated { get; private set; }
4848
/// <summary>
4949
/// An array of contextual entity mentions.
5050
/// </summary>

Scripts/Services/Assistant/v1/Model/Intent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public class Intent
3737
/// </summary>
3838
/// <value>The timestamp for creation of the intent.</value>
3939
[fsProperty("created")]
40-
public virtual DateTime Created { get; private set; }
40+
public virtual DateTime? Created { get; private set; }
4141
/// <summary>
4242
/// The timestamp for the last update to the intent.
4343
/// </summary>
4444
/// <value>The timestamp for the last update to the intent.</value>
4545
[fsProperty("updated")]
46-
public virtual DateTime Updated { get; private set; }
46+
public virtual DateTime? Updated { get; private set; }
4747
/// <summary>
4848
/// The description of the intent.
4949
/// </summary>

Scripts/Services/Assistant/v1/Model/IntentExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ public class IntentExport
3838
/// </summary>
3939
/// <value>The timestamp for creation of the intent.</value>
4040
[fsProperty("created")]
41-
public virtual DateTime Created { get; private set; }
41+
public virtual DateTime? Created { get; private set; }
4242
/// <summary>
4343
/// The timestamp for the last update to the intent.
4444
/// </summary>
4545
/// <value>The timestamp for the last update to the intent.</value>
4646
[fsProperty("updated")]
47-
public virtual DateTime Updated { get; private set; }
47+
public virtual DateTime? Updated { get; private set; }
4848
/// <summary>
4949
/// The description of the intent.
5050
/// </summary>

Scripts/Services/Assistant/v1/Model/Synonym.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public class Synonym
3737
/// </summary>
3838
/// <value>The timestamp for creation of the synonym.</value>
3939
[fsProperty("created")]
40-
public virtual DateTime Created { get; private set; }
40+
public virtual DateTime? Created { get; private set; }
4141
/// <summary>
4242
/// The timestamp for the most recent update to the synonym.
4343
/// </summary>
4444
/// <value>The timestamp for the most recent update to the synonym.</value>
4545
[fsProperty("updated")]
46-
public virtual DateTime Updated { get; private set; }
46+
public virtual DateTime? Updated { get; private set; }
4747
}
4848

4949
}

Scripts/Services/Assistant/v1/Model/Value.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public enum ValueTypeEnum
7171
/// </summary>
7272
/// <value>The timestamp for creation of the entity value.</value>
7373
[fsProperty("created")]
74-
public virtual DateTime Created { get; private set; }
74+
public virtual DateTime? Created { get; private set; }
7575
/// <summary>
7676
/// The timestamp for the last update to the entity value.
7777
/// </summary>
7878
/// <value>The timestamp for the last update to the entity value.</value>
7979
[fsProperty("updated")]
80-
public virtual DateTime Updated { get; private set; }
80+
public virtual DateTime? Updated { get; private set; }
8181
/// <summary>
8282
/// An array containing any synonyms for the entity value.
8383
/// </summary>

Scripts/Services/Assistant/v1/Model/ValueExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public enum ValueTypeEnum
7171
/// </summary>
7272
/// <value>The timestamp for creation of the entity value.</value>
7373
[fsProperty("created")]
74-
public virtual DateTime Created { get; private set; }
74+
public virtual DateTime? Created { get; private set; }
7575
/// <summary>
7676
/// The timestamp for the last update to the entity value.
7777
/// </summary>
7878
/// <value>The timestamp for the last update to the entity value.</value>
7979
[fsProperty("updated")]
80-
public virtual DateTime Updated { get; private set; }
80+
public virtual DateTime? Updated { get; private set; }
8181
/// <summary>
8282
/// An array containing any synonyms for the entity value.
8383
/// </summary>

Scripts/Services/Assistant/v1/Model/Workspace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public class Workspace
4343
/// </summary>
4444
/// <value>The timestamp for creation of the workspace.</value>
4545
[fsProperty("created")]
46-
public virtual DateTime Created { get; private set; }
46+
public virtual DateTime? Created { get; private set; }
4747
/// <summary>
4848
/// The timestamp for the last update to the workspace.
4949
/// </summary>
5050
/// <value>The timestamp for the last update to the workspace.</value>
5151
[fsProperty("updated")]
52-
public virtual DateTime Updated { get; private set; }
52+
public virtual DateTime? Updated { get; private set; }
5353
/// <summary>
5454
/// The workspace ID.
5555
/// </summary>

Scripts/Services/Assistant/v1/Model/WorkspaceExport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ public enum StatusEnum
101101
/// </summary>
102102
/// <value>The timestamp for creation of the workspace.</value>
103103
[fsProperty("created")]
104-
public virtual DateTime Created { get; private set; }
104+
public virtual DateTime? Created { get; private set; }
105105
/// <summary>
106106
/// The timestamp for the last update to the workspace.
107107
/// </summary>
108108
/// <value>The timestamp for the last update to the workspace.</value>
109109
[fsProperty("updated")]
110-
public virtual DateTime Updated { get; private set; }
110+
public virtual DateTime? Updated { get; private set; }
111111
/// <summary>
112112
/// The workspace ID.
113113
/// </summary>

Scripts/Services/Discovery/v1/DataModels.cs

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,105 @@ public class Environment
7171
/// </summary>
7272
public bool read_only { get; set; }
7373
/// <summary>
74+
/// Size of the environment. = ['XS', 'S', 'MS', 'M', 'ML', 'L', 'XL', 'XXL', 'XXXL'].
75+
/// </summary>
76+
public SizeEnum? size { get; set; }
77+
/// <summary>
7478
/// Disk and memory usage.
7579
/// </summary>
7680
public IndexCapacity index_capacity { get; set; }
7781
}
7882

83+
/// <summary>
84+
/// An object that defines an environment name and optional description. The fields in this object are
85+
/// not approved for personal information and cannot be deleted based on customer ID.
86+
/// </summary>
87+
[fsObject]
88+
public class CreateEnvironmentRequest
89+
{
90+
/// <summary>
91+
/// Name that identifies the environment.
92+
/// </summary>
93+
[fsProperty("name")]
94+
public string Name { get; set; }
95+
/// <summary>
96+
/// Description of the environment.
97+
/// </summary>
98+
[fsProperty("description")]
99+
public string Description { get; set; }
100+
/// <summary>
101+
/// Size of the environment. = ['XS', 'S', 'MS', 'M', 'ML', 'L', 'XL', 'XXL', 'XXXL'].
102+
/// </summary>
103+
[fsProperty("size")]
104+
public SizeEnum? Size { get; set; }
105+
}
106+
107+
/// <summary>
108+
/// Size of the environment.
109+
/// </summary>
110+
/// <value>
111+
/// Size of the environment.
112+
/// </value>
113+
public enum SizeEnum
114+
{
115+
116+
/// <summary>
117+
/// Enum XS for XS
118+
/// </summary>
119+
[EnumMember(Value = "XS")]
120+
XS,
121+
122+
/// <summary>
123+
/// Enum S for S
124+
/// </summary>
125+
[EnumMember(Value = "S")]
126+
S,
127+
128+
/// <summary>
129+
/// Enum MS for MS
130+
/// </summary>
131+
[EnumMember(Value = "MS")]
132+
MS,
133+
134+
/// <summary>
135+
/// Enum M for M
136+
/// </summary>
137+
[EnumMember(Value = "M")]
138+
M,
139+
140+
/// <summary>
141+
/// Enum ML for ML
142+
/// </summary>
143+
[EnumMember(Value = "ML")]
144+
ML,
145+
146+
/// <summary>
147+
/// Enum L for L
148+
/// </summary>
149+
[EnumMember(Value = "L")]
150+
L,
151+
152+
/// <summary>
153+
/// Enum XL for XL
154+
/// </summary>
155+
[EnumMember(Value = "XL")]
156+
XL,
157+
158+
/// <summary>
159+
/// Enum XXL for XXL
160+
/// </summary>
161+
[EnumMember(Value = "XXL")]
162+
XXL,
163+
164+
/// <summary>
165+
/// Enum XXXL for XXXL
166+
/// </summary>
167+
[EnumMember(Value = "XXXL")]
168+
XXXL
169+
}
170+
171+
172+
79173
/// <summary>
80174
/// The disk and memory usage.
81175
/// </summary>
@@ -1626,7 +1720,7 @@ public enum StatusEnum
16261720
/// Date in UTC format indicating when the last crawl was attempted. If `null`, no crawl was completed.
16271721
/// </summary>
16281722
[fsProperty("last_updated")]
1629-
public DateTime LastUpdated { get; set; }
1723+
public DateTime? LastUpdated { get; set; }
16301724
}
16311725
#endregion
16321726
}

0 commit comments

Comments
 (0)