Class ScriptCreateRequest
ScriptCreateRequest
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ScriptCreateRequest : IEquatable<ScriptCreateRequest>
Constructors
ScriptCreateRequest()
Initializes a new instance of the ScriptCreateRequest class.
Declaration
protected ScriptCreateRequest()
ScriptCreateRequest(String, String, String, ScriptLanguage)
Initializes a new instance of the ScriptCreateRequest class.
Declaration
public ScriptCreateRequest(string name = null, string description = null, string script = null, ScriptLanguage language = (ScriptLanguage)0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the script. The name must be unique within the organization. (required). |
| System.String | description | description (required). |
| System.String | script | The script to execute. (required). |
| ScriptLanguage | language | language (required). |
Properties
Description
Gets or Sets Description
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Language
Gets or Sets Language
Declaration
public ScriptLanguage Language { get; set; }
Property Value
| Type | Description |
|---|---|
| ScriptLanguage |
Name
The name of the script. The name must be unique within the organization.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the script. The name must be unique within the organization. |
Script
The script to execute.
Declaration
public string Script { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The script to execute. |
Methods
Equals(ScriptCreateRequest)
Returns true if ScriptCreateRequest instances are equal
Declaration
public bool Equals(ScriptCreateRequest input)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptCreateRequest | input | Instance of ScriptCreateRequest to be compared |
Returns
| Type | Description |
|---|---|
| System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | input | Object to be compared |
Returns
| Type | Description |
|---|---|
| System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | String presentation of the object |