Skip to content

Commit

Permalink
feat(NaturalLanguageUnderstandingV1): Add 4 new properties to the Mod…
Browse files Browse the repository at this point in the history
…el model

Add workspaceID, version, versionDescription, and created
  • Loading branch information
Anthony Oliveri committed Dec 11, 2018
1 parent ab9a339 commit 53fe057
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Source/NaturalLanguageUnderstandingV1/Models/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,36 @@ public struct Model: Codable, Equatable {
*/
public var description: String?

/**
ID of the Watson Knowledge Studio workspace that deployed this model to Natural Language Understanding.
*/
public var workspaceID: String?

/**
The model version, if it was manually provided in Watson Knowledge Studio.
*/
public var version: String?

/**
The description of the version, if it was manually provided in Watson Knowledge Studio.
*/
public var versionDescription: String?

/**
A dateTime indicating when the model was created.
*/
public var created: Date?

// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case status = "status"
case modelID = "model_id"
case language = "language"
case description = "description"
case workspaceID = "workspace_id"
case version = "version"
case versionDescription = "version_description"
case created = "created"
}

}

0 comments on commit 53fe057

Please sign in to comment.