Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Attachment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/advisorynotifications_v1/classes.rb,
lib/google/apis/advisorynotifications_v1/representations.rb,
lib/google/apis/advisorynotifications_v1/representations.rb

Overview

Attachment with specific information about the issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Attachment

Returns a new instance of GoogleCloudAdvisorynotificationsV1Attachment.



40
41
42
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 40

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

Instance Attribute Details

#csvGoogle::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Csv

A representation of a CSV file attachment, as a list of column headers and a list of data rows. Corresponds to the JSON property csv



33
34
35
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 33

def csv
  @csv
end

#display_nameString

The title of the attachment. Corresponds to the JSON property displayName

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 38

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 45

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