Class Attachment
An Attachment contains metadata about a file that was uploaded to a case - it is NOT a file itself. That being
said, the name of an Attachment object can be used to download its accompanying file through the
media.download
endpoint. While attachments can be uploaded in the console at the same time as a comment,
they're associated on a "case" level, not a "comment" level.
Implements
Inherited Members
Namespace: Google.Apis.CloudSupport.v2.Data
Assembly: Google.Apis.CloudSupport.v2.dll
Syntax
public class Attachment : IDirectResponseSchema
Properties
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The time at which the attachment was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Creator
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
Declaration
[JsonProperty("creator")]
public virtual Actor Creator { get; set; }
Property Value
Type | Description |
---|---|
Actor |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Filename
The filename of the attachment (e.g. "graph.jpg"
).
Declaration
[JsonProperty("filename")]
public virtual string Filename { get; set; }
Property Value
Type | Description |
---|---|
string |
MimeType
Output only. The MIME type of the attachment (e.g. text/plain).
Declaration
[JsonProperty("mimeType")]
public virtual string MimeType { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Output only. The resource name of the attachment.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SizeBytes
Output only. The size of the attachment in bytes.
Declaration
[JsonProperty("sizeBytes")]
public virtual long? SizeBytes { get; set; }
Property Value
Type | Description |
---|---|
long? |