Skip to content

Commit

Permalink
Vision semi-GAPIC (googleapis#3373)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer authored and landrito committed Aug 22, 2017
1 parent c371f1d commit c8f8b9c
Show file tree
Hide file tree
Showing 112 changed files with 5,649 additions and 1,669 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pip-log.txt
.nox
.tox
.cache
htmlcov

# Translations
*.mo
Expand Down
14 changes: 7 additions & 7 deletions bigquery/google/cloud/bigquery/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, project=None, credentials=None, _http=None):
def list_projects(self, max_results=None, page_token=None):
"""List projects for the project associated with this client.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/list
:type max_results: int
Expand All @@ -111,7 +111,7 @@ def list_datasets(self, include_all=False, max_results=None,
page_token=None):
"""List datasets for the project associated with this client.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/list
:type include_all: bool
Expand Down Expand Up @@ -183,7 +183,7 @@ def list_jobs(self, max_results=None, page_token=None, all_users=None,
state_filter=None):
"""List jobs for the project associated with this client.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/list
:type max_results: int
Expand Down Expand Up @@ -227,7 +227,7 @@ def list_jobs(self, max_results=None, page_token=None, all_users=None,
def load_table_from_storage(self, job_name, destination, *source_uris):
"""Construct a job for loading data into a table from CloudStorage.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load
:type job_name: str
Expand All @@ -249,7 +249,7 @@ def load_table_from_storage(self, job_name, destination, *source_uris):
def copy_table(self, job_name, destination, *sources):
"""Construct a job for copying one or more tables into another table.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.copy
:type job_name: str
Expand All @@ -269,7 +269,7 @@ def copy_table(self, job_name, destination, *sources):
def extract_table_to_storage(self, job_name, source, *destination_uris):
"""Construct a job for extracting a table into Cloud Storage files.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.extract
:type job_name: str
Expand All @@ -293,7 +293,7 @@ def run_async_query(self, job_name, query,
udf_resources=(), query_parameters=()):
"""Construct a job for running a SQL query asynchronously.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query
:type job_name: str
Expand Down
8 changes: 4 additions & 4 deletions bigquery/google/cloud/bigquery/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __repr__(self):
class Dataset(object):
"""Datasets are containers for tables.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets
:type name: str
Expand Down Expand Up @@ -417,7 +417,7 @@ def _build_resource(self):
def create(self, client=None):
"""API call: create the dataset via a PUT request.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/insert
:type client: :class:`~google.cloud.bigquery.client.Client` or
Expand Down Expand Up @@ -530,7 +530,7 @@ def update(self, client=None):
def delete(self, client=None):
"""API call: delete the dataset via a DELETE request.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/delete
:type client: :class:`~google.cloud.bigquery.client.Client` or
Expand All @@ -544,7 +544,7 @@ def delete(self, client=None):
def list_tables(self, max_results=None, page_token=None):
"""List tables for the project associated with this client.
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/list
:type max_results: int
Expand Down
60 changes: 30 additions & 30 deletions bigquery/google/cloud/bigquery/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _get_resource_config(cls, resource):
def begin(self, client=None):
"""API call: begin the job via a POST request
See:
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert
:type client: :class:`~google.cloud.bigquery.client.Client` or
Expand Down Expand Up @@ -497,57 +497,57 @@ def output_rows(self):
return int(statistics['load']['outputRows'])

allow_jagged_rows = _TypedProperty('allow_jagged_rows', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.allowJaggedRows
"""

allow_quoted_newlines = _TypedProperty('allow_quoted_newlines', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.allowQuotedNewlines
"""

create_disposition = CreateDisposition('create_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.createDisposition
"""

encoding = Encoding('encoding')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.encoding
"""

field_delimiter = _TypedProperty('field_delimiter', six.string_types)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.fieldDelimiter
"""

ignore_unknown_values = _TypedProperty('ignore_unknown_values', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.ignoreUnknownValues
"""

max_bad_records = _TypedProperty('max_bad_records', six.integer_types)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.maxBadRecords
"""

quote_character = _TypedProperty('quote_character', six.string_types)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.quote
"""

skip_leading_rows = _TypedProperty('skip_leading_rows', six.integer_types)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.skipLeadingRows
"""

source_format = SourceFormat('source_format')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.sourceFormat
"""

write_disposition = WriteDisposition('write_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.writeDisposition
"""

Expand Down Expand Up @@ -672,12 +672,12 @@ def __init__(self, name, destination, sources, client):
self._configuration = _CopyConfiguration()

create_disposition = CreateDisposition('create_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.copy.createDisposition
"""

write_disposition = WriteDisposition('write_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.copy.writeDisposition
"""

Expand Down Expand Up @@ -795,22 +795,22 @@ def __init__(self, name, source, destination_uris, client):
self._configuration = _ExtractConfiguration()

compression = Compression('compression')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.extract.compression
"""

destination_format = DestinationFormat('destination_format')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.extract.destinationFormat
"""

field_delimiter = _TypedProperty('field_delimiter', six.string_types)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.extract.fieldDelimiter
"""

print_header = _TypedProperty('print_header', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.extract.printHeader
"""

Expand Down Expand Up @@ -936,32 +936,32 @@ def __init__(self, name, query, client,
self._configuration = _AsyncQueryConfiguration()

allow_large_results = _TypedProperty('allow_large_results', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.allowLargeResults
"""

create_disposition = CreateDisposition('create_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.createDisposition
"""

default_dataset = _TypedProperty('default_dataset', Dataset)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.defaultDataset
"""

destination = _TypedProperty('destination', Table)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.destinationTable
"""

flatten_results = _TypedProperty('flatten_results', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.flattenResults
"""

priority = QueryPriority('priority')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.priority
"""

Expand All @@ -970,34 +970,34 @@ def __init__(self, name, query, client,
udf_resources = UDFResourcesProperty()

use_query_cache = _TypedProperty('use_query_cache', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.useQueryCache
"""

use_legacy_sql = _TypedProperty('use_legacy_sql', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/\
reference/v2/jobs#configuration.query.useLegacySql
"""

dry_run = _TypedProperty('dry_run', bool)
"""See:
"""See
https://cloud.google.com/bigquery/docs/\
reference/rest/v2/jobs#configuration.dryRun
"""

write_disposition = WriteDisposition('write_disposition')
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.writeDisposition
"""

maximum_billing_tier = _TypedProperty('maximum_billing_tier', int)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.maximumBillingTier
"""

maximum_bytes_billed = _TypedProperty('maximum_bytes_billed', int)
"""See:
"""See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.maximumBytesBilled
"""

Expand Down
Loading

0 comments on commit c8f8b9c

Please sign in to comment.