Skip to content

Commit

Permalink
feat(generated code): generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-arn authored and apaparazzi0329 committed Aug 20, 2020
1 parent 1a18f4c commit ec93e39
Show file tree
Hide file tree
Showing 554 changed files with 5,526 additions and 2,920 deletions.
69 changes: 8 additions & 61 deletions Source/AssistantV1/Assistant.swift

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Source/AssistantV1/Models/CaptureGroup.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,13 +38,13 @@ public struct CaptureGroup: Codable, Equatable {
}

/**
Initialize a `CaptureGroup` with member variables.
Initialize a `CaptureGroup` with member variables.
- parameter group: A recognized capture group for the entity.
- parameter location: Zero-based character offsets that indicate where the entity value begins and ends in the
input text.
- parameter group: A recognized capture group for the entity.
- parameter location: Zero-based character offsets that indicate where the entity value begins and ends in the
input text.
- returns: An initialized `CaptureGroup`.
- returns: An initialized `CaptureGroup`.
*/
public init(
group: String,
Expand Down
12 changes: 6 additions & 6 deletions Source/AssistantV1/Models/Context.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2016, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -49,13 +49,13 @@ public struct Context: Codable, Equatable {
}

/**
Initialize a `Context` with member variables.
Initialize a `Context` with member variables.
- parameter conversationID: The unique identifier of the conversation.
- parameter system: For internal use only.
- parameter metadata: Metadata related to the message.
- parameter conversationID: The unique identifier of the conversation.
- parameter system: For internal use only.
- parameter metadata: Metadata related to the message.
- returns: An initialized `Context`.
- returns: An initialized `Context`.
*/
public init(
conversationID: String? = nil,
Expand Down
18 changes: 9 additions & 9 deletions Source/AssistantV1/Models/Counterexample.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2017, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -44,16 +44,16 @@ public struct Counterexample: Codable, Equatable {
}

/**
Initialize a `Counterexample` with member variables.
Initialize a `Counterexample` with member variables.
- parameter text: The text of a user input marked as irrelevant input. This string must conform to the following
restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter text: The text of a user input marked as irrelevant input. This string must conform to the following
restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- returns: An initialized `Counterexample`.
- returns: An initialized `Counterexample`.
*/
public init(
text: String,
Expand Down
2 changes: 1 addition & 1 deletion Source/AssistantV1/Models/CounterexampleCollection.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
28 changes: 14 additions & 14 deletions Source/AssistantV1/Models/CreateEntity.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -70,21 +70,21 @@ public struct CreateEntity: Codable, Equatable {
}

/**
Initialize a `CreateEntity` with member variables.
Initialize a `CreateEntity` with member variables.
- parameter entity: The name of the entity. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, and hyphen characters.
- If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
that you want to enable. (Any entity content specified with the request is ignored.).
- parameter description: The description of the entity. This string cannot contain carriage return, newline, or
tab characters.
- parameter metadata: Any metadata related to the entity.
- parameter fuzzyMatch: Whether to use fuzzy matching for the entity.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter values: An array of objects describing the entity values.
- parameter entity: The name of the entity. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, and hyphen characters.
- If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
that you want to enable. (Any entity content specified with the request is ignored.).
- parameter description: The description of the entity. This string cannot contain carriage return, newline, or
tab characters.
- parameter metadata: Any metadata related to the entity.
- parameter fuzzyMatch: Whether to use fuzzy matching for the entity.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter values: An array of objects describing the entity values.
- returns: An initialized `CreateEntity`.
- returns: An initialized `CreateEntity`.
*/
public init(
entity: String,
Expand Down
22 changes: 11 additions & 11 deletions Source/AssistantV1/Models/CreateIntent.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,18 +56,18 @@ public struct CreateIntent: Codable, Equatable {
}

/**
Initialize a `CreateIntent` with member variables.
Initialize a `CreateIntent` with member variables.
- parameter intent: The name of the intent. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
- It cannot begin with the reserved prefix `sys-`.
- parameter description: The description of the intent. This string cannot contain carriage return, newline, or
tab characters.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter examples: An array of user input examples for the intent.
- parameter intent: The name of the intent. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
- It cannot begin with the reserved prefix `sys-`.
- parameter description: The description of the intent. This string cannot contain carriage return, newline, or
tab characters.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter examples: An array of user input examples for the intent.
- returns: An initialized `CreateIntent`.
- returns: An initialized `CreateIntent`.
*/
public init(
intent: String,
Expand Down
36 changes: 18 additions & 18 deletions Source/AssistantV1/Models/CreateValue.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -83,25 +83,25 @@ public struct CreateValue: Codable, Equatable {
}

/**
Initialize a `CreateValue` with member variables.
Initialize a `CreateValue` with member variables.
- parameter value: The text of the entity value. This string must conform to the following restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter metadata: Any metadata related to the entity value.
- parameter type: Specifies the type of entity value.
- parameter synonyms: An array of synonyms for the entity value. A value can specify either synonyms or patterns
(depending on the value type), but not both. A synonym must conform to the following resrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter patterns: An array of patterns for the entity value. A value can specify either synonyms or patterns
(depending on the value type), but not both. A pattern is a regular expression; for more information about how to
specify a pattern, see the
[documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter value: The text of the entity value. This string must conform to the following restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter metadata: Any metadata related to the entity value.
- parameter type: Specifies the type of entity value.
- parameter synonyms: An array of synonyms for the entity value. A value can specify either synonyms or patterns
(depending on the value type), but not both. A synonym must conform to the following resrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
- parameter patterns: An array of patterns for the entity value. A value can specify either synonyms or patterns
(depending on the value type), but not both. A pattern is a regular expression; for more information about how to
specify a pattern, see the
[documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- returns: An initialized `CreateValue`.
- returns: An initialized `CreateValue`.
*/
public init(
value: String,
Expand Down
50 changes: 25 additions & 25 deletions Source/AssistantV1/Models/CreateWorkspace.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -124,30 +124,30 @@ internal struct CreateWorkspace: Codable, Equatable {
}

/**
Initialize a `CreateWorkspace` with member variables.
- parameter name: The name of the workspace. This string cannot contain carriage return, newline, or tab
characters.
- parameter description: The description of the workspace. This string cannot contain carriage return, newline,
or tab characters.
- parameter language: The language of the workspace.
- parameter metadata: Any metadata related to the workspace.
- parameter learningOptOut: Whether training data from the workspace (including artifacts such as intents and
entities) can be used by IBM for general service improvements. `true` indicates that workspace training data is
not to be used.
- parameter systemSettings: Global settings for the workspace.
- parameter workspaceID: The workspace ID of the workspace.
- parameter status: The current status of the workspace.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter intents: An array of objects defining the intents for the workspace.
- parameter entities: An array of objects describing the entities for the workspace.
- parameter dialogNodes: An array of objects describing the dialog nodes in the workspace.
- parameter counterexamples: An array of objects defining input examples that have been marked as irrelevant
input.
- parameter webhooks:
- returns: An initialized `CreateWorkspace`.
Initialize a `CreateWorkspace` with member variables.
- parameter name: The name of the workspace. This string cannot contain carriage return, newline, or tab
characters.
- parameter description: The description of the workspace. This string cannot contain carriage return, newline,
or tab characters.
- parameter language: The language of the workspace.
- parameter metadata: Any metadata related to the workspace.
- parameter learningOptOut: Whether training data from the workspace (including artifacts such as intents and
entities) can be used by IBM for general service improvements. `true` indicates that workspace training data is
not to be used.
- parameter systemSettings: Global settings for the workspace.
- parameter workspaceID: The workspace ID of the workspace.
- parameter status: The current status of the workspace.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- parameter intents: An array of objects defining the intents for the workspace.
- parameter entities: An array of objects describing the entities for the workspace.
- parameter dialogNodes: An array of objects describing the dialog nodes in the workspace.
- parameter counterexamples: An array of objects defining input examples that have been marked as irrelevant
input.
- parameter webhooks:
- returns: An initialized `CreateWorkspace`.
*/
public init(
name: String? = nil,
Expand Down
72 changes: 36 additions & 36 deletions Source/AssistantV1/Models/DialogNode.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -216,41 +216,41 @@ public struct DialogNode: Codable, Equatable {
}

/**
Initialize a `DialogNode` with member variables.
- parameter dialogNode: The dialog node ID. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
- parameter description: The description of the dialog node. This string cannot contain carriage return,
newline, or tab characters.
- parameter conditions: The condition that will trigger the dialog node. This string cannot contain carriage
return, newline, or tab characters.
- parameter parent: The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
- parameter previousSibling: The ID of the previous sibling dialog node. This property is omitted if the dialog
node has no previous sibling.
- parameter output: The output of the dialog node. For more information about how to specify dialog node output,
see the
[documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
- parameter context: The context for the dialog node.
- parameter metadata: The metadata for the dialog node.
- parameter nextStep: The next step to execute following this dialog node.
- parameter title: The alias used to identify the dialog node. This string must conform to the following
restrictions:
- It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
- parameter type: How the dialog node is processed.
- parameter eventName: How an `event_handler` node is processed.
- parameter variable: The location in the dialog context where output is stored.
- parameter actions: An array of objects describing any actions to be invoked by the dialog node.
- parameter digressIn: Whether this top-level dialog node can be digressed into.
- parameter digressOut: Whether this dialog node can be returned to after a digression.
- parameter digressOutSlots: Whether the user can digress to top-level nodes while filling out slots.
- parameter userLabel: A label that can be displayed externally to describe the purpose of the node to users.
- parameter disambiguationOptOut: Whether the dialog node should be excluded from disambiguation suggestions.
Valid only when **type**=`standard` or `frame`.
- parameter disabled: For internal use only.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- returns: An initialized `DialogNode`.
Initialize a `DialogNode` with member variables.
- parameter dialogNode: The dialog node ID. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
- parameter description: The description of the dialog node. This string cannot contain carriage return,
newline, or tab characters.
- parameter conditions: The condition that will trigger the dialog node. This string cannot contain carriage
return, newline, or tab characters.
- parameter parent: The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
- parameter previousSibling: The ID of the previous sibling dialog node. This property is omitted if the dialog
node has no previous sibling.
- parameter output: The output of the dialog node. For more information about how to specify dialog node output,
see the
[documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
- parameter context: The context for the dialog node.
- parameter metadata: The metadata for the dialog node.
- parameter nextStep: The next step to execute following this dialog node.
- parameter title: The alias used to identify the dialog node. This string must conform to the following
restrictions:
- It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
- parameter type: How the dialog node is processed.
- parameter eventName: How an `event_handler` node is processed.
- parameter variable: The location in the dialog context where output is stored.
- parameter actions: An array of objects describing any actions to be invoked by the dialog node.
- parameter digressIn: Whether this top-level dialog node can be digressed into.
- parameter digressOut: Whether this dialog node can be returned to after a digression.
- parameter digressOutSlots: Whether the user can digress to top-level nodes while filling out slots.
- parameter userLabel: A label that can be displayed externally to describe the purpose of the node to users.
- parameter disambiguationOptOut: Whether the dialog node should be excluded from disambiguation suggestions.
Valid only when **type**=`standard` or `frame`.
- parameter disabled: For internal use only.
- parameter created: The timestamp for creation of the object.
- parameter updated: The timestamp for the most recent update to the object.
- returns: An initialized `DialogNode`.
*/
public init(
dialogNode: String,
Expand Down
Loading

0 comments on commit ec93e39

Please sign in to comment.