Class ModuleMetadata
Module metadata
Inherited Members
Namespace: Unity.Services.Apis.Admin.CloudCode
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Module_metadata")]
[Preserve]
public class ModuleMetadata
Constructors
ModuleMetadata(string, string, Dictionary<string, string>, string, DateTime, DateTime)
Initializes a new instance of the ModuleMetadata class.
Declaration
[Preserve]
public ModuleMetadata(string name = null, string language = "CS", Dictionary<string, string> tags = null, string signedDownloadURL = null, DateTime dateCreated = default, DateTime dateModified = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of a Cloud Code module. (required). |
| string | language | The language of a Cloud Code module. Currently, only |
| Dictionary<string, string> | tags | A set of user-defined tags in the form of string key-value pairs. Use these if you need to add additional metadata related to the module. For example, if you want to automate deployment of modules with some synchronization mechanism, you can use user-defined tags for marking version or ownership to avoid conflicts. . |
| string | signedDownloadURL | Signed URL for time-limited access to the binary contents of the module. (required). |
| DateTime | dateCreated | RFC3339 date representation (required). |
| DateTime | dateModified | RFC3339 date representation (required). |
Properties
DateCreated
RFC3339 date representation
Declaration
[DataMember(Name = "dateCreated", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public DateTime DateCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | RFC3339 date representation |
DateModified
RFC3339 date representation
Declaration
[DataMember(Name = "dateModified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public DateTime DateModified { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | RFC3339 date representation |
Language
The language of a Cloud Code module. Currently, only CS (C#) is supported.
Declaration
[DataMember(Name = "language", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Language { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The language of a Cloud Code module. Currently, only |
Name
Name of a Cloud Code module.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Name of a Cloud Code module. |
SignedDownloadURL
Signed URL for time-limited access to the binary contents of the module.
Declaration
[DataMember(Name = "signedDownloadURL", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string SignedDownloadURL { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Signed URL for time-limited access to the binary contents of the module. |
Tags
A set of user-defined tags in the form of string key-value pairs. Use these if you need to add additional metadata related to the module. For example, if you want to automate deployment of modules with some synchronization mechanism, you can use user-defined tags for marking version or ownership to avoid conflicts.
Declaration
[DataMember(Name = "tags", EmitDefaultValue = false)]
[Preserve]
public Dictionary<string, string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | A set of user-defined tags in the form of string key-value pairs. Use these if you need to add additional metadata related to the module. For example, if you want to automate deployment of modules with some synchronization mechanism, you can use user-defined tags for marking version or ownership to avoid conflicts. |