Class GetScriptResponseActiveScript
Information about the currently active version of the script.
Inherited Members
Namespace: Unity.Services.Apis.Admin.CloudCode
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "GetScriptResponse_activeScript")]
[Preserve]
public class GetScriptResponseActiveScript
Constructors
GetScriptResponseActiveScript(string, int, DateTime, List<ScriptParameter>)
Initializes a new instance of the Get
Declaration
[Preserve]
public GetScriptResponseActiveScript(string code = null, int version = 0, DateTime datePublished = default, List<ScriptParameter> _params = null)
Parameters
Type | Name | Description |
---|---|---|
string | code | The script code to be executed (required). |
int | version | The version id of the active version of the script (required). |
Date |
datePublished | RFC3339 date representation (required). |
List<Script |
_params | The list of parameters which can be defined for a script. (required). |
Properties
Code
The script code to be executed
Declaration
[DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Code { get; set; }
Property Value
Type | Description |
---|---|
string | The script code to be executed |
DatePublished
RFC3339 date representation
Declaration
[DataMember(Name = "datePublished", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public DateTime DatePublished { get; set; }
Property Value
Type | Description |
---|---|
Date |
RFC3339 date representation |
Params
The list of parameters which can be defined for a script.
Declaration
[DataMember(Name = "params", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<ScriptParameter> Params { get; set; }
Property Value
Type | Description |
---|---|
List<Script |
The list of parameters which can be defined for a script. |
_Version
The version id of the active version of the script
Declaration
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int _Version { get; set; }
Property Value
Type | Description |
---|---|
int | The version id of the active version of the script |