Class: Google::Apis::CloudsupportV2beta::Attachment
- Inherits:
-
Object
- Object
- Google::Apis::CloudsupportV2beta::Attachment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsupport_v2beta/classes.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb
Overview
Represents a file attached to a support case.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#creator ⇒ Google::Apis::CloudsupportV2beta::Actor
An object containing information about the effective user and authenticated principal responsible for an action.
-
#filename ⇒ String
The filename of the attachment (e.g.
"graph.jpg"
). -
#mime_type ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attachment
constructor
A new instance of Attachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attachment
Returns a new instance of Attachment.
100 101 102 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which the attachment was created.
Corresponds to the JSON property createTime
72 73 74 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 72 def create_time @create_time end |
#creator ⇒ Google::Apis::CloudsupportV2beta::Actor
An object containing information about the effective user and authenticated
principal responsible for an action.
Corresponds to the JSON property creator
78 79 80 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 78 def creator @creator end |
#filename ⇒ String
The filename of the attachment (e.g. "graph.jpg"
).
Corresponds to the JSON property filename
83 84 85 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 83 def filename @filename end |
#mime_type ⇒ String
Output only. The MIME type of the attachment (e.g. text/plain).
Corresponds to the JSON property mimeType
88 89 90 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 88 def mime_type @mime_type end |
#name ⇒ String
Output only. The resource name of the attachment.
Corresponds to the JSON property name
93 94 95 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 93 def name @name end |
#size_bytes ⇒ Fixnum
Output only. The size of the attachment in bytes.
Corresponds to the JSON property sizeBytes
98 99 100 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 98 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
105 106 107 108 109 110 111 112 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 105 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @creator = args[:creator] if args.key?(:creator) @filename = args[:filename] if args.key?(:filename) @mime_type = args[:mime_type] if args.key?(:mime_type) @name = args[:name] if args.key?(:name) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) end |