Skip to content

Regenerate services #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ public class PreferenceValue
[JsonProperty("topic", NullValueHandling = NullValueHandling.Ignore)]
public virtual string Topic { get; private set; }
/// <summary>
/// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
/// using the value of the dialog node's **user_label** property.
/// </summary>
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
public string DialogNode { get; set; }
/// <summary>
/// An array of objects describing the possible matching dialog nodes from which the user can choose.
///
/// **Note:** The **suggestions** property is part of the disambiguation feature, which is only available for
Expand Down
6 changes: 6 additions & 0 deletions Scripts/Services/Assistant/V1/Model/DialogSuggestion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,11 @@ public class DialogSuggestion
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> Output { get; set; }
/// <summary>
/// The ID of the dialog node that the **label** property is taken from. The **label** property is populated
/// using the value of the dialog node's **user_label** property.
/// </summary>
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
public string DialogNode { get; set; }
}
}
176 changes: 91 additions & 85 deletions Scripts/Services/CompareComply/V1/CompareComplyService.cs

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions Scripts/Services/CompareComply/V1/Model/AlignedElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ public class AlignedElement
[JsonProperty("element_pair", NullValueHandling = NullValueHandling.Ignore)]
public List<ElementPair> ElementPair { get; set; }
/// <summary>
/// Specifies whether the text is identical.
/// Specifies whether the aligned element is identical. Elements are considered identical despite minor
/// differences such as leading punctuation, end-of-sentence punctuation, whitespace, the presence or absence of
/// definite or indefinite articles, and others.
/// </summary>
[JsonProperty("identical_text", NullValueHandling = NullValueHandling.Ignore)]
public bool? IdenticalText { get; set; }
/// <summary>
/// Indicates that the elements aligned are contractual clauses of significance.
/// </summary>
[JsonProperty("significant_elements", NullValueHandling = NullValueHandling.Ignore)]
public bool? SignificantElements { get; set; }
/// <summary>
/// One or more hashed values that you can send to IBM to provide feedback or receive support.
/// </summary>
[JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ProvenanceIds { get; set; }
/// <summary>
/// Indicates that the elements aligned are contractual clauses of significance.
/// </summary>
[JsonProperty("significant_elements", NullValueHandling = NullValueHandling.Ignore)]
public bool? SignificantElements { get; set; }
}
}
12 changes: 8 additions & 4 deletions Scripts/Services/CompareComply/V1/Model/Attribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ public class Attribute
/// </summary>
public class TypeValue
{
/// <summary>
/// Constant ADDRESS for Address
/// </summary>
public const string ADDRESS = "Address";
/// <summary>
/// Constant CURRENCY for Currency
/// </summary>
Expand All @@ -42,6 +38,10 @@ public class TypeValue
/// </summary>
public const string DATETIME = "DateTime";
/// <summary>
/// Constant DURATION for Duration
/// </summary>
public const string DURATION = "Duration";
/// <summary>
/// Constant LOCATION for Location
/// </summary>
public const string LOCATION = "Location";
Expand All @@ -50,6 +50,10 @@ public class TypeValue
/// </summary>
public const string ORGANIZATION = "Organization";
/// <summary>
/// Constant PERCENTAGE for Percentage
/// </summary>
public const string PERCENTAGE = "Percentage";
/// <summary>
/// Constant PERSON for Person
/// </summary>
public const string PERSON = "Person";
Expand Down
29 changes: 13 additions & 16 deletions Scripts/Services/CompareComply/V1/Model/BodyCells.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ namespace IBM.Watson.CompareComply.V1.Model
public class BodyCells
{
/// <summary>
/// A string value in the format `columnHeader-x-y`, where `x` and `y` are the begin and end offsets of this
/// column header cell in the input document.
/// The unique ID of the cell in the current table.
/// </summary>
[JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
public string CellId { get; set; }
Expand Down Expand Up @@ -63,37 +62,35 @@ public class BodyCells
[JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
public long? ColumnIndexEnd { get; set; }
/// <summary>
/// An array of values, each being the `id` value of a row header that is applicable to this body cell.
/// Gets or Sets RowHeaderIds
/// </summary>
[JsonProperty("row_header_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> RowHeaderIds { get; set; }
public List<RowHeaderIds> RowHeaderIds { get; set; }
/// <summary>
/// An array of values, each being the `text` value of a row header that is applicable to this body cell.
/// Gets or Sets RowHeaderTexts
/// </summary>
[JsonProperty("row_header_texts", NullValueHandling = NullValueHandling.Ignore)]
public List<string> RowHeaderTexts { get; set; }
public List<RowHeaderTexts> RowHeaderTexts { get; set; }
/// <summary>
/// If you provide customization input, the normalized version of the row header texts according to the
/// customization; otherwise, the same value as `row_header_texts`.
/// Gets or Sets RowHeaderTextsNormalized
/// </summary>
[JsonProperty("row_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
public List<string> RowHeaderTextsNormalized { get; set; }
public List<RowHeaderTextsNormalized> RowHeaderTextsNormalized { get; set; }
/// <summary>
/// An array of values, each being the `id` value of a column header that is applicable to the current cell.
/// Gets or Sets ColumnHeaderIds
/// </summary>
[JsonProperty("column_header_ids", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ColumnHeaderIds { get; set; }
public List<ColumnHeaderIds> ColumnHeaderIds { get; set; }
/// <summary>
/// An array of values, each being the `text` value of a column header that is applicable to the current cell.
/// Gets or Sets ColumnHeaderTexts
/// </summary>
[JsonProperty("column_header_texts", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ColumnHeaderTexts { get; set; }
public List<ColumnHeaderTexts> ColumnHeaderTexts { get; set; }
/// <summary>
/// If you provide customization input, the normalized version of the column header texts according to the
/// customization; otherwise, the same value as `column_header_texts`.
/// Gets or Sets ColumnHeaderTextsNormalized
/// </summary>
[JsonProperty("column_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
public List<string> ColumnHeaderTextsNormalized { get; set; }
public List<ColumnHeaderTextsNormalized> ColumnHeaderTextsNormalized { get; set; }
/// <summary>
/// Gets or Sets Attributes
/// </summary>
Expand Down
138 changes: 138 additions & 0 deletions Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/**
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using Newtonsoft.Json;

namespace IBM.Watson.CompareComply.V1.Model
{
/// <summary>
/// Information defining an element's subject matter.
/// </summary>
public class CategoryComparison
{
/// <summary>
/// The category of the associated element.
/// </summary>
public class LabelValue
{
/// <summary>
/// Constant AMENDMENTS for Amendments
/// </summary>
public const string AMENDMENTS = "Amendments";
/// <summary>
/// Constant ASSET_USE for Asset Use
/// </summary>
public const string ASSET_USE = "Asset Use";
/// <summary>
/// Constant ASSIGNMENTS for Assignments
/// </summary>
public const string ASSIGNMENTS = "Assignments";
/// <summary>
/// Constant AUDITS for Audits
/// </summary>
public const string AUDITS = "Audits";
/// <summary>
/// Constant BUSINESS_CONTINUITY for Business Continuity
/// </summary>
public const string BUSINESS_CONTINUITY = "Business Continuity";
/// <summary>
/// Constant COMMUNICATION for Communication
/// </summary>
public const string COMMUNICATION = "Communication";
/// <summary>
/// Constant CONFIDENTIALITY for Confidentiality
/// </summary>
public const string CONFIDENTIALITY = "Confidentiality";
/// <summary>
/// Constant DELIVERABLES for Deliverables
/// </summary>
public const string DELIVERABLES = "Deliverables";
/// <summary>
/// Constant DELIVERY for Delivery
/// </summary>
public const string DELIVERY = "Delivery";
/// <summary>
/// Constant DISPUTE_RESOLUTION for Dispute Resolution
/// </summary>
public const string DISPUTE_RESOLUTION = "Dispute Resolution";
/// <summary>
/// Constant FORCE_MAJEURE for Force Majeure
/// </summary>
public const string FORCE_MAJEURE = "Force Majeure";
/// <summary>
/// Constant INDEMNIFICATION for Indemnification
/// </summary>
public const string INDEMNIFICATION = "Indemnification";
/// <summary>
/// Constant INSURANCE for Insurance
/// </summary>
public const string INSURANCE = "Insurance";
/// <summary>
/// Constant INTELLECTUAL_PROPERTY for Intellectual Property
/// </summary>
public const string INTELLECTUAL_PROPERTY = "Intellectual Property";
/// <summary>
/// Constant LIABILITY for Liability
/// </summary>
public const string LIABILITY = "Liability";
/// <summary>
/// Constant PAYMENT_TERMS_BILLING for Payment Terms & Billing
/// </summary>
public const string PAYMENT_TERMS_BILLING = "Payment Terms & Billing";
/// <summary>
/// Constant PRICING_TAXES for Pricing & Taxes
/// </summary>
public const string PRICING_TAXES = "Pricing & Taxes";
/// <summary>
/// Constant PRIVACY for Privacy
/// </summary>
public const string PRIVACY = "Privacy";
/// <summary>
/// Constant RESPONSIBILITIES for Responsibilities
/// </summary>
public const string RESPONSIBILITIES = "Responsibilities";
/// <summary>
/// Constant SAFETY_AND_SECURITY for Safety and Security
/// </summary>
public const string SAFETY_AND_SECURITY = "Safety and Security";
/// <summary>
/// Constant SCOPE_OF_WORK for Scope of Work
/// </summary>
public const string SCOPE_OF_WORK = "Scope of Work";
/// <summary>
/// Constant SUBCONTRACTS for Subcontracts
/// </summary>
public const string SUBCONTRACTS = "Subcontracts";
/// <summary>
/// Constant TERM_TERMINATION for Term & Termination
/// </summary>
public const string TERM_TERMINATION = "Term & Termination";
/// <summary>
/// Constant WARRANTIES for Warranties
/// </summary>
public const string WARRANTIES = "Warranties";

}

/// <summary>
/// The category of the associated element.
/// Constants for possible values can be found using CategoryComparison.LabelValue
/// </summary>
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
public string Label { get; set; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 12 additions & 6 deletions Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace IBM.Watson.CompareComply.V1.Model
{
/// <summary>
/// The analysis of objects returned by the `/v1/element_classification` method.
/// The analysis of objects returned by the **Element classification** method.
/// </summary>
public class ClassifyReturn
{
Expand All @@ -31,8 +31,8 @@ public class ClassifyReturn
[JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
public Document Document { get; set; }
/// <summary>
/// The analysis model used to classify the input document. For the `/v1/element_classification` method, the
/// only valid value is `contracts`.
/// The analysis model used to classify the input document. For the **Element classification** method, the only
/// valid value is `contracts`.
/// </summary>
[JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
public string ModelId { get; set; }
Expand Down Expand Up @@ -62,19 +62,25 @@ public class ClassifyReturn
[JsonProperty("parties", NullValueHandling = NullValueHandling.Ignore)]
public List<Parties> Parties { get; set; }
/// <summary>
/// The effective dates of the input document.
/// The date or dates on which the document becomes effective.
/// </summary>
[JsonProperty("effective_dates", NullValueHandling = NullValueHandling.Ignore)]
public List<EffectiveDates> EffectiveDates { get; set; }
/// <summary>
/// The monetary amounts identified in the input document.
/// The monetary amounts that identify the total amount of the contract that needs to be paid from one party to
/// another.
/// </summary>
[JsonProperty("contract_amounts", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractAmts> ContractAmounts { get; set; }
/// <summary>
/// The input document's termination dates.
/// The date or dates on which the document is to be terminated.
/// </summary>
[JsonProperty("termination_dates", NullValueHandling = NullValueHandling.Ignore)]
public List<TerminationDates> TerminationDates { get; set; }
/// <summary>
/// The document's contract type or types as declared in the document.
/// </summary>
[JsonProperty("contract_type", NullValueHandling = NullValueHandling.Ignore)]
public List<ContractType> ContractType { get; set; }
}
}
33 changes: 33 additions & 0 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using Newtonsoft.Json;

namespace IBM.Watson.CompareComply.V1.Model
{
/// <summary>
/// An array of values, each being the `id` value of a column header that is applicable to the current cell.
/// </summary>
public class ColumnHeaderIds
{
/// <summary>
/// The `id` value of a column header.
/// </summary>
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
public string Id { get; set; }
}
}
11 changes: 11 additions & 0 deletions Scripts/Services/CompareComply/V1/Model/ColumnHeaderIds.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading