Class ChildResource
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
Unified class for deserializing children resources based on the OpenAPI specification. Contains properties returned by the /children endpoints before converting to the appropriate specific type based on resourceType.
public class ChildResource : NamedModel
- Inheritance
-
ChildResource
- Inherited Members
Properties
AccessLevel
The user's access level for the resource
public AccessLevel? AccessLevel { get; set; }
Property Value
CreatedAt
The resource creation date Either a DateTime object, or Long if numericDates parameter is true on API call.
public object CreatedAt { get; set; }
Property Value
ModifiedAt
The resource last updated date Either a DateTime object, or Long if numericDates parameter is true on API call.
public object ModifiedAt { get; set; }
Property Value
Owner
The email address of the owner, or the user with admin permissions if there is no owner assigned. Only present for sheets if 'ownerInfo' is listed for the 'include' query parameter.
public string Owner { get; set; }
Property Value
OwnerId
The ID of the owner, or the user with admin permissions if there is no owner assigned. Only present for sheets if 'ownerInfo' is listed for the 'include' query parameter.
public long? OwnerId { get; set; }
Property Value
- long?
Permalink
The resource permalink
public string Permalink { get; set; }
Property Value
ResourceType
The resource type (sheet, report, sight, folder)
public string ResourceType { get; set; }
Property Value
Source
Data on the source object from which this asset was instantiated. Only present if 'source' is listed for the 'include' query parameter.
public Source Source { get; set; }
Property Value
Methods
ConvertToSpecificType(ChildResource)
Converts a ChildResource to the appropriate specific type based on resourceType
public static object ConvertToSpecificType(ChildResource childResource)
Parameters
childResourceChildResourceThe ChildResource to convert
Returns
- object
The converted object (Sheet, Report, Sight, Folder, or Template)