Google Cloud Support V2 API - Class Google::Cloud::Support::V2::Attachment (v0.2.0)

Reference documentation and code samples for the Google Cloud Support V2 API class Google::Cloud::Support::V2::Attachment.

Represents a file attached to a support case.

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. The resource name of the attachment.

#size_bytes

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