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

1.9.0 (latest) 1.8.0 1.7.1 1.6.0 1.5.1 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.0 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.


<br />

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**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which the attachment was created.

### #creator

    def creator() -> ::Google::Cloud::Support::V2::Actor

**Returns**

- ([::Google::Cloud::Support::V2::Actor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2/latest/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.