@@ -289,29 +289,46 @@ def validate(cls, value):
289289
290290class CreateDisposition (_Enum ):
291291 """Pseudo-enum for allowed values for ``create_disposition`` properties.
292+
293+ See:
294+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.createDisposition
295+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.copy.createDisposition
292296 """
293297 CREATE_IF_NEEDED = 'CREATE_IF_NEEDED'
294298 CREATE_NEVER = 'CREATE_NEVER'
295299 ALLOWED = (CREATE_IF_NEEDED , CREATE_NEVER )
296300
297301
298302class Encoding (_Enum ):
299- """Pseudo-enum for allowed values for ``encoding`` properties."""
303+ """Pseudo-enum for allowed values for ``encoding`` properties.
304+
305+ See:
306+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.encoding
307+ """
300308 UTF_8 = 'UTF-8'
301309 ISO_8559_1 = 'ISO-8559-1'
302310 ALLOWED = (UTF_8 , ISO_8559_1 )
303311
304312
305313class SourceFormat (_Enum ):
306- """Pseudo-enum for allowed values for ``source_format`` properties."""
314+ """Pseudo-enum for allowed values for ``source_format`` properties.
315+
316+ See:
317+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.sourceFormat
318+ """
307319 CSV = 'CSV'
308320 DATASTORE_BACKUP = 'DATASTORE_BACKUP'
309321 NEWLINE_DELIMITED_JSON = 'NEWLINE_DELIMITED_JSON'
310322 ALLOWED = (CSV , DATASTORE_BACKUP , NEWLINE_DELIMITED_JSON )
311323
312324
313325class WriteDisposition (_Enum ):
314- """Pseudo-enum for allowed values for ``write_disposition`` properties."""
326+ """Pseudo-enum for allowed values for ``write_disposition`` properties.
327+
328+ See:
329+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.writeDisposition
330+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.copy.writeDisposition
331+ """
315332 WRITE_APPEND = 'WRITE_APPEND'
316333 WRITE_TRUNCATE = 'WRITE_TRUNCATE'
317334 WRITE_EMPTY = 'WRITE_EMPTY'
@@ -431,6 +448,9 @@ def output_rows(self):
431448 def allow_jagged_rows (self ):
432449 """Allow rows with missing trailing commas for optional fields.
433450
451+ See:
452+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.allowJaggedRows
453+
434454 :rtype: boolean, or ``NoneType``
435455 :returns: The value as set by the user, or None (the default).
436456 """
@@ -458,6 +478,9 @@ def allow_jagged_rows(self):
458478 def allow_quoted_newlines (self ):
459479 """Allow rows with quoted newlines.
460480
481+ See:
482+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.allowQuotedNewlines
483+
461484 :rtype: boolean, or ``NoneType``
462485 :returns: The value as set by the user, or None (the default).
463486 """
@@ -485,6 +508,9 @@ def allow_quoted_newlines(self):
485508 def create_disposition (self ):
486509 """Define how the back-end handles a missing destination table.
487510
511+ See:
512+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.createDisposition
513+
488514 :rtype: string, or ``NoneType``
489515 :returns: The value as set by the user, or None (the default).
490516 """
@@ -509,6 +535,9 @@ def create_disposition(self):
509535 def encoding (self ):
510536 """Encoding for source data.
511537
538+ See:
539+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.encoding
540+
512541 :rtype: string, or ``NoneType``
513542 :returns: The value as set by the user, or None (the default).
514543 """
@@ -533,6 +562,9 @@ def encoding(self):
533562 def field_delimiter (self ):
534563 """Allow rows with missing trailing commas for optional fields.
535564
565+ See:
566+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.fieldDelimiter
567+
536568 :rtype: string, or ``NoneType``
537569 :returns: The value as set by the user, or None (the default).
538570 """
@@ -560,6 +592,9 @@ def field_delimiter(self):
560592 def ignore_unknown_values (self ):
561593 """Ignore rows with extra columns beyond those specified by the schema.
562594
595+ See:
596+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.ignoreUnknownValues
597+
563598 :rtype: boolean, or ``NoneType``
564599 :returns: The value as set by the user, or None (the default).
565600 """
@@ -587,6 +622,9 @@ def ignore_unknown_values(self):
587622 def max_bad_records (self ):
588623 """Max number of bad records to be ignored.
589624
625+ See:
626+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.maxBadRecords
627+
590628 :rtype: integer, or ``NoneType``
591629 :returns: The value as set by the user, or None (the default).
592630 """
@@ -614,6 +652,9 @@ def max_bad_records(self):
614652 def quote_character (self ):
615653 """Character used to quote values.
616654
655+ See:
656+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.quote
657+
617658 :rtype: string, or ``NoneType``
618659 :returns: The value as set by the user, or None (the default).
619660 """
@@ -641,6 +682,9 @@ def quote_character(self):
641682 def skip_leading_rows (self ):
642683 """Count of leading rows to be skipped.
643684
685+ See:
686+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.skipLeadingRows
687+
644688 :rtype: integer, or ``NoneType``
645689 :returns: The value as set by the user, or None (the default).
646690 """
@@ -668,6 +712,9 @@ def skip_leading_rows(self):
668712 def source_format (self ):
669713 """Format of source data files.
670714
715+ See:
716+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.sourceFormat
717+
671718 :rtype: string, or ``NoneType``
672719 :returns: The value as set by the user, or None (the default).
673720 """
@@ -692,6 +739,9 @@ def source_format(self):
692739 def write_disposition (self ):
693740 """Allow rows with missing trailing commas for optional fields.
694741
742+ See:
743+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.writeDisposition
744+
695745 :rtype: boolean, or ``NoneType``
696746 :returns: The value as set by the user, or None (the default).
697747 """
@@ -803,6 +853,9 @@ def __init__(self, name, destination, sources, client):
803853 def create_disposition (self ):
804854 """Handling for missing destination table.
805855
856+ See:
857+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.copy.createDisposition
858+
806859 :rtype: string, or ``NoneType``
807860 :returns: The value as set by the user, or None (the default).
808861 """
@@ -812,9 +865,8 @@ def create_disposition(self):
812865 def create_disposition (self , value ):
813866 """Update create_disposition.
814867
815- :type value: boolean
816- :param value: new create_disposition: one of "CREATE_IF_NEEDED" or
817- "CREATE_NEVER"
868+ :type value: string
869+ :param value: allowed values for :class:`CreateDisposition`
818870 """
819871 CreateDisposition .validate (value ) # raises ValueError if invalid
820872 self ._configuration ._create_disposition = value
@@ -828,7 +880,10 @@ def create_disposition(self):
828880 def write_disposition (self ):
829881 """Allow rows with missing trailing commas for optional fields.
830882
831- :rtype: boolean, or ``NoneType``
883+ See:
884+ https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.copy.writeDisposition
885+
886+ :rtype: string, or ``NoneType``
832887 :returns: The value as set by the user, or None (the default).
833888 """
834889 return self ._configuration ._write_disposition
0 commit comments