Skip to content

Commit

Permalink
feat: Regenerated the sdk based on the latest api definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumTaj committed Oct 30, 2018
1 parent 20bd75e commit ef029ce
Show file tree
Hide file tree
Showing 72 changed files with 1,100 additions and 569 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Counterexample : BaseModel
/// The timestamp for creation of the counterexample.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the counterexample.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public enum DigressOutSlotsEnum
/// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public DialogNodeOutput Output { get; set; }
/// <summary>
/// The context for the dialog node.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/DialogNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public enum DigressOutSlotsEnum
/// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public DialogNodeOutput Output { get; set; }
/// <summary>
/// The context (if defined) for the dialog node.
/// </summary>
Expand All @@ -303,12 +303,12 @@ public enum DigressOutSlotsEnum
/// The timestamp for creation of the dialog node.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the most recent update to the dialog node.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The actions for the dialog node.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,19 @@ public enum ActionTypeEnum
/// Enum SERVER for server
/// </summary>
[EnumMember(Value = "server")]
SERVER
SERVER,

/// <summary>
/// Enum CLOUD_FUNCTION for cloud_function
/// </summary>
[EnumMember(Value = "cloud_function")]
CLOUD_FUNCTION,

/// <summary>
/// Enum WEB_ACTION for web_action
/// </summary>
[EnumMember(Value = "web_action")]
WEB_ACTION
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DialogNodeOutputOptionsElementValue : BaseModel
/// The user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class DialogSuggestionValue : BaseModel
/// The user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
/// <summary>
/// An array of intents to be sent along with the user input.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Entity : BaseModel
/// The timestamp for creation of the entity.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the entity.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class EntityExport : BaseModel
/// The timestamp for creation of the entity.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the entity.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class Example : BaseModel
/// The timestamp for creation of the example.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the example.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array of contextual entity mentions.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Intent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Intent : BaseModel
/// The timestamp for creation of the intent.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the intent.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the intent.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class IntentExport : BaseModel
/// The timestamp for creation of the intent.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the intent.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the intent.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MessageRequest : BaseModel
/// An input object that includes the input text.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
/// <summary>
/// Whether to return more than one intent. Set to `true` to return all matching intents.
/// </summary>
Expand All @@ -40,7 +40,7 @@ public class MessageRequest : BaseModel
/// previous response.
/// </summary>
[JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Context { get; set; }
public Context Context { get; set; }
/// <summary>
/// Entities to use when evaluating the message. Include entities from the previous response to continue using
/// those entities rather than detecting entities in the new input.
Expand All @@ -58,7 +58,7 @@ public class MessageRequest : BaseModel
/// multiple requests.
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public OutputData Output { get; set; }
}

}
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Synonym.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Synonym : BaseModel
/// The timestamp for creation of the synonym.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the most recent update to the synonym.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
}

}
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Value.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ public enum ValueTypeEnum
/// The timestamp for creation of the entity value.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity value.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array containing any synonyms for the entity value.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ public enum ValueTypeEnum
/// The timestamp for creation of the entity value.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity value.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array containing any synonyms for the entity value.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Workspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public class Workspace : BaseModel
/// The timestamp for creation of the workspace.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the workspace.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The workspace ID.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public enum StatusEnum
/// The timestamp for creation of the workspace.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the workspace.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The workspace ID.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>IBM.WatsonDeveloperCloud.Assistant.v2 wraps the Watson Developer Cloud Assistant service (http://www.ibm.com/watson/developercloud/assistant.html)</Description>
<AssemblyTitle>IBM.WatsonDeveloperCloud.Assistant.v2</AssemblyTitle>
<VersionPrefix>2.9.0</VersionPrefix>
<VersionPrefix>2.10.0</VersionPrefix>
<Authors>Watson Developer Cloud</Authors>
<TargetFramework>netstandard1.3</TargetFramework>
<AssemblyName>IBM.WatsonDeveloperCloud.Assistant.v2</AssemblyName>
Expand All @@ -12,7 +12,7 @@
<PackageIconUrl>https://watson-developer-cloud.github.io/dotnet-standard-sdk/img/Watson_Avatar_Pos_RGB.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/watson-developer-cloud/dotnet-standard-sdk</PackageProjectUrl>
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>
<Version>2.9.0</Version>
<Version>2.10.0</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,19 @@ public enum ActionTypeEnum
/// Enum SERVER for server
/// </summary>
[EnumMember(Value = "server")]
SERVER
SERVER,

/// <summary>
/// Enum WEB_ACTION for web-action
/// </summary>
[EnumMember(Value = "web-action")]
WEB_ACTION,

/// <summary>
/// Enum CLOUD_FUNCTION for cloud-function
/// </summary>
[EnumMember(Value = "cloud-function")]
CLOUD_FUNCTION
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class MessageContext : BaseModel
/// Contains information specific to particular skills within the Assistant.
/// </summary>
[JsonProperty("skills", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Skills { get; set; }
public MessageContextSkills Skills { get; set; }
}

}
Loading

0 comments on commit ef029ce

Please sign in to comment.