Class PutScriptRequest
Request for PutScript
Inheritance
PutScriptRequest
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class PutScriptRequest : PlainRequestBase<PutScriptRequestParameters>, IPutScriptRequest, IRequest<PutScriptRequestParameters>, IRequest
Constructors
| Edit this page View SourcePutScriptRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected PutScriptRequest()
PutScriptRequest(Id)
/_scripts/{id}
Declaration
public PutScriptRequest(Id id)
Parameters
Type | Name | Description |
---|---|---|
Id | id | this parameter is required |
PutScriptRequest(Id, Name)
/_scripts/{id}/{context}
Declaration
public PutScriptRequest(Id id, Name context)
Parameters
Type | Name | Description |
---|---|---|
Id | id | this parameter is required |
Name | context | Optional, accepts null |
Properties
| Edit this page View SourceClusterManagerTimeout
Specify timeout for connection to cluster_manager node
Declaration
public Time ClusterManagerTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Remarks
Introduced in OpenSearch 2.0 instead of MasterTimeout
MasterTimeout
Specify timeout for connection to master node
Declaration
public Time MasterTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Remarks
Deprecated as of OpenSearch 2.0, use ClusterManagerTimeout instead
Script
Declaration
public IStoredScript Script { get; set; }
Property Value
Type | Description |
---|---|
IStoredScript |
Self
Declaration
protected IPutScriptRequest Self { get; }
Property Value
Type | Description |
---|---|
IPutScriptRequest |
Timeout
Explicit operation timeout
Declaration
public Time Timeout { get; set; }
Property Value
Type | Description |
---|---|
Time |