Class: Google::Apis::CloudsupportV2::CreateAttachmentRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsupport_v2/classes.rb,
lib/google/apis/cloudsupport_v2/representations.rb,
lib/google/apis/cloudsupport_v2/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.



504
505
506
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 504

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

Instance Attribute Details

#attachmentGoogle::Apis::CloudsupportV2::Attachment

Represents a file attached to a support case. Corresponds to the JSON property attachment



502
503
504
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 502

def attachment
  @attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



509
510
511
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 509

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