Skip to content

Commit e8487b4

Browse files
committed
Regenrated client with inclusion of the pipeline API parameter.
1 parent ea6822f commit e8487b4

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docraptor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ definitions:
144144
- document_type
145145
- document_content
146146
properties:
147+
pipeline:
148+
type: string
149+
description: Specify a specific verison of the DocRaptor Pipeline to use.
147150
name:
148151
type: string
149152
description: A name for identifying your document.

src/main/csharp/DocRaptor/Model/Doc.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public enum StrictEnum {
5656
/// Initializes a new instance of the <see cref="Doc" /> class.
5757
/// Initializes a new instance of the <see cref="Doc" />class.
5858
/// </summary>
59+
/// <param name="Pipeline">Specify a specific verison of the DocRaptor Pipeline to use..</param>
5960
/// <param name="Name">A name for identifying your document. (required).</param>
6061
/// <param name="DocumentType">The type of document being created. (required).</param>
6162
/// <param name="DocumentContent">The HTML data to be transformed into a document. You must supply content using document_content or document_url. (required).</param>
@@ -70,7 +71,7 @@ public enum StrictEnum {
7071
/// <param name="CallbackUrl">A URL that will receive a POST request after successfully completing an asynchronous document. The POST data will include download_url and download_id similar to status api responses. WARNING: this only works on asynchronous documents..</param>
7172
/// <param name="PrinceOptions">PrinceOptions.</param>
7273

73-
public Doc(string Name = null, DocumentTypeEnum? DocumentType = null, string DocumentContent = null, string DocumentUrl = null, bool? Test = null, StrictEnum? Strict = null, bool? IgnoreResourceErrors = null, string Tag = null, bool? Help = null, bool? Javascript = null, string Referrer = null, string CallbackUrl = null, PrinceOptions PrinceOptions = null)
74+
public Doc(string Pipeline = null, string Name = null, DocumentTypeEnum? DocumentType = null, string DocumentContent = null, string DocumentUrl = null, bool? Test = null, StrictEnum? Strict = null, bool? IgnoreResourceErrors = null, string Tag = null, bool? Help = null, bool? Javascript = null, string Referrer = null, string CallbackUrl = null, PrinceOptions PrinceOptions = null)
7475
{
7576
// to ensure "Name" is required (not null)
7677
if (Name == null)
@@ -99,6 +100,7 @@ public Doc(string Name = null, DocumentTypeEnum? DocumentType = null, string Doc
99100
{
100101
this.DocumentContent = DocumentContent;
101102
}
103+
this.Pipeline = Pipeline;
102104
this.DocumentUrl = DocumentUrl;
103105
// use default value if no "Test" provided
104106
if (Test == null)
@@ -153,6 +155,13 @@ public Doc(string Name = null, DocumentTypeEnum? DocumentType = null, string Doc
153155
}
154156

155157

158+
/// <summary>
159+
/// Specify a specific verison of the DocRaptor Pipeline to use.
160+
/// </summary>
161+
/// <value>Specify a specific verison of the DocRaptor Pipeline to use.</value>
162+
[DataMember(Name="pipeline", EmitDefaultValue=false)]
163+
public string Pipeline { get; set; }
164+
156165
/// <summary>
157166
/// A name for identifying your document.
158167
/// </summary>
@@ -237,6 +246,7 @@ public override string ToString()
237246
{
238247
var sb = new StringBuilder();
239248
sb.Append("class Doc {\n");
249+
sb.Append(" Pipeline: ").Append(Pipeline).Append("\n");
240250
sb.Append(" Name: ").Append(Name).Append("\n");
241251
sb.Append(" DocumentType: ").Append(DocumentType).Append("\n");
242252
sb.Append(" DocumentContent: ").Append(DocumentContent).Append("\n");
@@ -287,6 +297,11 @@ public bool Equals(Doc other)
287297
return false;
288298

289299
return
300+
(
301+
this.Pipeline == other.Pipeline ||
302+
this.Pipeline != null &&
303+
this.Pipeline.Equals(other.Pipeline)
304+
) &&
290305
(
291306
this.Name == other.Name ||
292307
this.Name != null &&
@@ -366,6 +381,9 @@ public override int GetHashCode()
366381
int hash = 41;
367382
// Suitable nullity checks etc, of course :)
368383

384+
if (this.Pipeline != null)
385+
hash = hash * 59 + this.Pipeline.GetHashCode();
386+
369387
if (this.Name != null)
370388
hash = hash * 59 + this.Name.GetHashCode();
371389

0 commit comments

Comments
 (0)