Class: Google::Apis::CloudsupportV2beta::CreateAttachmentRequest

Inherits:
Object
  • Object
show all
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

The request message for the CreateAttachment endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateAttachmentRequest

Returns a new instance of CreateAttachmentRequest.



552
553
554
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 552

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attachmentGoogle::Apis::CloudsupportV2beta::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. Corresponds to the JSON property attachment



550
551
552
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 550

def attachment
  @attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



557
558
559
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 557

def update!(**args)
  @attachment = args[:attachment] if args.key?(:attachment)
end