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
- (::Google::Protobuf::Timestamp) — Output only. The time at which the attachment was created.
#creator
def creator() -> ::Google::Cloud::Support::V2::Actor
- (::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
-
(::String) — The filename of the attachment (e.g.
"graph.jpg"
).
#filename=
def filename=(value) -> ::String
-
value (::String) — The filename of the attachment (e.g.
"graph.jpg"
).
-
(::String) — The filename of the attachment (e.g.
"graph.jpg"
).
#mime_type
def mime_type() -> ::String
- (::String) — Output only. The MIME type of the attachment (e.g. text/plain).
#name
def name() -> ::String
- (::String) — Output only. Identifier. The resource name of the attachment.
#size_bytes
def size_bytes() -> ::Integer
- (::Integer) — Output only. The size of the attachment in bytes.