Class: Google::Cloud::Support::V2beta::Attachment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/support/v2beta/attachment.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#create_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The time at which the attachment was created.

Returns:



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#creator::Google::Cloud::Support::V2beta::Actor (readonly)

Returns Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

Returns:



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#filename::String

Returns The filename of the attachment (e.g. "graph.jpg").

Returns:

  • (::String)

    The filename of the attachment (e.g. "graph.jpg").



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String (readonly)

Returns Output only. The MIME type of the attachment (e.g. text/plain).

Returns:

  • (::String)

    Output only. The MIME type of the attachment (e.g. text/plain).



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String (readonly)

Returns Output only. Identifier. The resource name of the attachment.

Returns:

  • (::String)

    Output only. Identifier. The resource name of the attachment.



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#size_bytes::Integer (readonly)

Returns Output only. The size of the attachment in bytes.

Returns:

  • (::Integer)

    Output only. The size of the attachment in bytes.



51
52
53
54
# File 'proto_docs/google/cloud/support/v2beta/attachment.rb', line 51

class Attachment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end