Class: Google::Apis::BigqueryV2::TableDataInsertAllRequest

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

Defined Under Namespace

Classes: Row

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TableDataInsertAllRequest

Returns a new instance of TableDataInsertAllRequest



2649
2650
2651
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2649

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

Instance Attribute Details

#ignore_unknown_valuesBoolean Also known as: ignore_unknown_values?

[Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. Corresponds to the JSON property ignoreUnknownValues

Returns:

  • (Boolean)


2618
2619
2620
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2618

def ignore_unknown_values
  @ignore_unknown_values
end

#kindString

The resource type of the response. Corresponds to the JSON property kind

Returns:

  • (String)


2624
2625
2626
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2624

def kind
  @kind
end

#rowsArray<Google::Apis::BigqueryV2::TableDataInsertAllRequest::Row>

The rows to insert. Corresponds to the JSON property rows



2629
2630
2631
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2629

def rows
  @rows
end

#skip_invalid_rowsBoolean Also known as: skip_invalid_rows?

[Optional] Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. Corresponds to the JSON property skipInvalidRows

Returns:

  • (Boolean)


2636
2637
2638
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2636

def skip_invalid_rows
  @skip_invalid_rows
end

#template_suffixString

[Experimental] If specified, treats the destination table as a base template, and inserts the rows into an instance table named "destination templateSuffix". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/ streaming-data-into-bigquery#template-tables for considerations when working with templates tables. Corresponds to the JSON property templateSuffix

Returns:

  • (String)


2647
2648
2649
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2647

def template_suffix
  @template_suffix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2654
2655
2656
2657
2658
2659
2660
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2654

def update!(**args)
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
  @kind = args[:kind] if args.key?(:kind)
  @rows = args[:rows] if args.key?(:rows)
  @skip_invalid_rows = args[:skip_invalid_rows] if args.key?(:skip_invalid_rows)
  @template_suffix = args[:template_suffix] if args.key?(:template_suffix)
end