Google Cloud Support V2 API - Class Google::Cloud::Support::V2::Attachment (v1.4.1)

Reference documentation and code samples for the Google Cloud Support V2 API class Google::Cloud::Support::V2::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#creator

def creator() -> ::Google::Cloud::Support::V2::Actor
Returns
  • (::Google::Cloud::Support::V2::Actor) — Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

#filename

def filename() -> ::String
Returns
  • (::String) — The filename of the attachment (e.g. "graph.jpg").

#filename=

def filename=(value) -> ::String
Parameter
  • value (::String) — The filename of the attachment (e.g. "graph.jpg").
Returns
  • (::String) — The filename of the attachment (e.g. "graph.jpg").

#mime_type

def mime_type() -> ::String
Returns
  • (::String) — Output only. The MIME type of the attachment (e.g. text/plain).

#name

def name() -> ::String
Returns
  • (::String) — Output only. Identifier. The resource name of the attachment.

#size_bytes

def size_bytes() -> ::Integer
Returns
  • (::Integer) — Output only. The size of the attachment in bytes.