Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Csv
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Csv
- 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
A representation of a CSV file attachment, as a list of column headers and a list of data rows.
Instance Attribute Summary collapse
-
#data_rows ⇒ Array<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1CsvCsvRow>
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
-
#headers ⇒ Array<String>
The list of headers for data columns in a CSV file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Csv
constructor
A new instance of GoogleCloudAdvisorynotificationsV1Csv.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Csv
Returns a new instance of GoogleCloudAdvisorynotificationsV1Csv.
67 68 69 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 67 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_rows ⇒ Array<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1CsvCsvRow>
The list of data rows in a CSV file, as string arrays rather than as a single
comma-separated string.
Corresponds to the JSON property dataRows
60 61 62 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 60 def data_rows @data_rows end |
#headers ⇒ Array<String>
The list of headers for data columns in a CSV file.
Corresponds to the JSON property headers
65 66 67 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 65 def headers @headers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
72 73 74 75 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 72 def update!(**args) @data_rows = args[:data_rows] if args.key?(:data_rows) @headers = args[:headers] if args.key?(:headers) end |