UNPKG

rapipdf

Version:

RapiPdf - Generate PDF from Open API spec

1,747 lines 233 kB
{ "swagger": "2.0", "schemes": [ "https" ], "host": "bigquery.googleapis.com", "basePath": "/bigquery/v2", "info": { "contact": { "name": "Google", "url": "https://google.com" }, "description": "A data platform for customers to create, manage, share and query data.", "license": { "name": "Creative Commons Attribution 3.0", "url": "http://creativecommons.org/licenses/by/3.0/" }, "termsOfService": "https://developers.google.com/terms/", "title": "BigQuery", "version": "v2", "x-apiClientRegistration": { "url": "https://console.developers.google.com" }, "x-apisguru-categories": [ "search" ], "x-logo": { "url": "https://api.apis.guru/v2/cache/logo/https_cloud.google.com__static_images_new-gcp-logo.png" }, "x-origin": [ { "converter": { "url": "https://github.com/lucybot/api-spec-converter", "version": "2.7.31" }, "format": "google", "url": "https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest", "version": "v1" } ], "x-preferred": true, "x-providerName": "googleapis.com", "x-serviceName": "bigquery" }, "externalDocs": { "url": "https://cloud.google.com/bigquery/" }, "securityDefinitions": { "Oauth2": { "authorizationUrl": "https://accounts.google.com/o/oauth2/auth", "description": "Oauth 2.0 implicit authentication", "flow": "implicit", "scopes": { "https://www.googleapis.com/auth/bigquery": "View and manage your data in Google BigQuery", "https://www.googleapis.com/auth/bigquery.insertdata": "Insert data into Google BigQuery", "https://www.googleapis.com/auth/bigquery.readonly": "View your data in Google BigQuery", "https://www.googleapis.com/auth/cloud-platform": "View and manage your data across Google Cloud Platform services", "https://www.googleapis.com/auth/cloud-platform.read-only": "View your data across Google Cloud Platform services", "https://www.googleapis.com/auth/devstorage.full_control": "Manage your data and permissions in Google Cloud Storage", "https://www.googleapis.com/auth/devstorage.read_only": "View your data in Google Cloud Storage", "https://www.googleapis.com/auth/devstorage.read_write": "Manage your data in Google Cloud Storage" }, "type": "oauth2" }, "Oauth2c": { "authorizationUrl": "https://accounts.google.com/o/oauth2/auth", "description": "Oauth 2.0 accessCode authentication", "flow": "accessCode", "scopes": { "https://www.googleapis.com/auth/bigquery": "View and manage your data in Google BigQuery", "https://www.googleapis.com/auth/bigquery.insertdata": "Insert data into Google BigQuery", "https://www.googleapis.com/auth/bigquery.readonly": "View your data in Google BigQuery", "https://www.googleapis.com/auth/cloud-platform": "View and manage your data across Google Cloud Platform services", "https://www.googleapis.com/auth/cloud-platform.read-only": "View your data across Google Cloud Platform services", "https://www.googleapis.com/auth/devstorage.full_control": "Manage your data and permissions in Google Cloud Storage", "https://www.googleapis.com/auth/devstorage.read_only": "View your data in Google Cloud Storage", "https://www.googleapis.com/auth/devstorage.read_write": "Manage your data in Google Cloud Storage" }, "tokenUrl": "https://accounts.google.com/o/oauth2/token", "type": "oauth2" } }, "parameters": { "alt": { "default": "json", "description": "Data format for the response.", "enum": [ "json" ], "in": "query", "name": "alt", "type": "string" }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "in": "query", "name": "fields", "type": "string" }, "key": { "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "in": "query", "name": "key", "type": "string" }, "oauth_token": { "description": "OAuth 2.0 token for the current user.", "in": "query", "name": "oauth_token", "type": "string" }, "prettyPrint": { "default": true, "description": "Returns response with indentations and line breaks.", "in": "query", "name": "prettyPrint", "type": "boolean" }, "quotaUser": { "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", "in": "query", "name": "quotaUser", "type": "string" }, "userIp": { "description": "Deprecated. Please use quotaUser instead.", "in": "query", "name": "userIp", "type": "string" } }, "tags": [ { "name": "datasets" }, { "name": "jobs" }, { "name": "models" }, { "name": "projects" }, { "name": "routines" }, { "name": "tabledata" }, { "name": "tables" } ], "paths": { "/projects": { "get": { "description": "Lists all projects to which you have been granted any project role.", "operationId": "bigquery.projects.list", "parameters": [ { "description": "Maximum number of results to return", "in": "query", "name": "maxResults", "type": "integer" }, { "description": "Page token, returned by a previous call, to request the next page of results", "in": "query", "name": "pageToken", "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/ProjectList" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "projects" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ] }, "/projects/{projectId}/datasets": { "get": { "description": "Lists all datasets in the specified project to which you have been granted the READER dataset role.", "operationId": "bigquery.datasets.list", "parameters": [ { "description": "Whether to list all datasets, including hidden ones", "in": "query", "name": "all", "type": "boolean" }, { "description": "An expression for filtering the results of the request by label. The syntax is \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by connecting with a space. Example: \"labels.department:receiving labels.active\". See Filtering datasets using labels for details.", "in": "query", "name": "filter", "type": "string" }, { "description": "The maximum number of results to return", "in": "query", "name": "maxResults", "type": "integer" }, { "description": "Page token, returned by a previous call, to request the next page of results", "in": "query", "name": "pageToken", "type": "string" }, { "description": "Project ID of the datasets to be listed", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/DatasetList" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "datasets" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "post": { "description": "Creates a new empty dataset.", "operationId": "bigquery.datasets.insert", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Dataset" } }, { "description": "Project ID of the new dataset", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Dataset" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "datasets" ] } }, "/projects/{projectId}/datasets/{datasetId}": { "delete": { "description": "Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.", "operationId": "bigquery.datasets.delete", "parameters": [ { "description": "Dataset ID of dataset being deleted", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False", "in": "query", "name": "deleteContents", "type": "boolean" }, { "description": "Project ID of the dataset being deleted", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response" } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "datasets" ] }, "get": { "description": "Returns the dataset specified by datasetID.", "operationId": "bigquery.datasets.get", "parameters": [ { "description": "Dataset ID of the requested dataset", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the requested dataset", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Dataset" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "datasets" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "patch": { "description": "Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.", "operationId": "bigquery.datasets.patch", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Dataset" } }, { "description": "Dataset ID of the dataset being updated", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the dataset being updated", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Dataset" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "datasets" ] }, "put": { "description": "Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.", "operationId": "bigquery.datasets.update", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Dataset" } }, { "description": "Dataset ID of the dataset being updated", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the dataset being updated", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Dataset" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "datasets" ] } }, "/projects/{projectId}/datasets/{datasetId}/models": { "get": { "description": "Lists all models in the specified dataset. Requires the READER dataset\nrole.", "operationId": "bigquery.models.list", "parameters": [ { "description": "Dataset ID of the models to list.", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "The maximum number of results to return in a single response page.\nLeverage the page tokens to iterate through the entire collection.", "in": "query", "name": "maxResults", "type": "integer" }, { "description": "Page token, returned by a previous call to request the next page of\nresults", "in": "query", "name": "pageToken", "type": "string" }, { "description": "Project ID of the models to list.", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/ListModelsResponse" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "models" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ] }, "/projects/{projectId}/datasets/{datasetId}/models/{modelId}": { "delete": { "description": "Deletes the model specified by modelId from the dataset.", "operationId": "bigquery.models.delete", "parameters": [ { "description": "Dataset ID of the model to delete.", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Model ID of the model to delete.", "in": "path", "name": "modelId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the model to delete.", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response" } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "models" ] }, "get": { "description": "Gets the specified model resource by model ID.", "operationId": "bigquery.models.get", "parameters": [ { "description": "Dataset ID of the requested model.", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Model ID of the requested model.", "in": "path", "name": "modelId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the requested model.", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Model" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "models" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "patch": { "description": "Patch specific fields in the specified model.", "operationId": "bigquery.models.patch", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Model" } }, { "description": "Dataset ID of the model to patch.", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Model ID of the model to patch.", "in": "path", "name": "modelId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the model to patch.", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Model" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "models" ] } }, "/projects/{projectId}/datasets/{datasetId}/routines": { "get": { "description": "Lists all routines in the specified dataset. Requires the READER dataset\nrole.", "operationId": "bigquery.routines.list", "parameters": [ { "description": "Dataset ID of the routines to list", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "The maximum number of results to return in a single response page.\nLeverage the page tokens to iterate through the entire collection.", "in": "query", "name": "maxResults", "type": "integer" }, { "description": "Page token, returned by a previous call, to request the next page of\nresults", "in": "query", "name": "pageToken", "type": "string" }, { "description": "Project ID of the routines to list", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/ListRoutinesResponse" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "routines" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "post": { "description": "Creates a new routine in the dataset.", "operationId": "bigquery.routines.insert", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Routine" } }, { "description": "Dataset ID of the new routine", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the new routine", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Routine" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "routines" ] } }, "/projects/{projectId}/datasets/{datasetId}/routines/{routineId}": { "delete": { "description": "Deletes the routine specified by routineId from the dataset.", "operationId": "bigquery.routines.delete", "parameters": [ { "description": "Dataset ID of the routine to delete", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the routine to delete", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Routine ID of the routine to delete", "in": "path", "name": "routineId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response" } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "routines" ] }, "get": { "description": "Gets the specified routine resource by routine ID.", "operationId": "bigquery.routines.get", "parameters": [ { "description": "Dataset ID of the requested routine", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "If set, only the Routine fields in the field mask are returned in the\nresponse. If unset, all Routine fields are returned.", "in": "query", "name": "fieldMask", "type": "string" }, { "description": "Project ID of the requested routine", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Routine ID of the requested routine", "in": "path", "name": "routineId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Routine" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "routines" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "put": { "description": "Updates information in an existing routine. The update method replaces the\nentire Routine resource.", "operationId": "bigquery.routines.update", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Routine" } }, { "description": "Dataset ID of the routine to update", "in": "path", "name": "datasetId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Project ID of the routine to update", "in": "path", "name": "projectId", "required": true, "type": "string", "x-reservedExpansion": true }, { "description": "Routine ID of the routine to update", "in": "path", "name": "routineId", "required": true, "type": "string", "x-reservedExpansion": true } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Routine" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "routines" ] } }, "/projects/{projectId}/datasets/{datasetId}/tables": { "get": { "description": "Lists all tables in the specified dataset. Requires the READER dataset role.", "operationId": "bigquery.tables.list", "parameters": [ { "description": "Dataset ID of the tables to list", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Maximum number of results to return", "in": "query", "name": "maxResults", "type": "integer" }, { "description": "Page token, returned by a previous call, to request the next page of results", "in": "query", "name": "pageToken", "type": "string" }, { "description": "Project ID of the tables to list", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/TableList" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "tables" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "post": { "description": "Creates a new, empty table in the dataset.", "operationId": "bigquery.tables.insert", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Table" } }, { "description": "Dataset ID of the new table", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the new table", "in": "path", "name": "projectId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Table" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "tables" ] } }, "/projects/{projectId}/datasets/{datasetId}/tables/{tableId}": { "delete": { "description": "Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.", "operationId": "bigquery.tables.delete", "parameters": [ { "description": "Dataset ID of the table to delete", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the table to delete", "in": "path", "name": "projectId", "required": true, "type": "string" }, { "description": "Table ID of the table to delete", "in": "path", "name": "tableId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response" } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "tables" ] }, "get": { "description": "Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.", "operationId": "bigquery.tables.get", "parameters": [ { "description": "Dataset ID of the requested table", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the requested table", "in": "path", "name": "projectId", "required": true, "type": "string" }, { "description": "List of fields to return (comma-separated). If unspecified, all fields are returned", "in": "query", "name": "selectedFields", "type": "string" }, { "description": "Table ID of the requested table", "in": "path", "name": "tableId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Table" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/bigquery.readonly" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery.readonly" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } ], "tags": [ "tables" ] }, "parameters": [ { "$ref": "#/parameters/alt" }, { "$ref": "#/parameters/fields" }, { "$ref": "#/parameters/key" }, { "$ref": "#/parameters/oauth_token" }, { "$ref": "#/parameters/prettyPrint" }, { "$ref": "#/parameters/quotaUser" }, { "$ref": "#/parameters/userIp" } ], "patch": { "description": "Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.", "operationId": "bigquery.tables.patch", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Table" } }, { "description": "Dataset ID of the table to update", "in": "path", "name": "datasetId", "required": true, "type": "string" }, { "description": "Project ID of the table to update", "in": "path", "name": "projectId", "required": true, "type": "string" }, { "description": "Table ID of the table to update", "in": "path", "name": "tableId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "$ref": "#/definitions/Table" } } }, "security": [ { "Oauth2": [ "https://www.googleapis.com/auth/bigquery" ], "Oauth2c": [ "https://www.googleapis.com/auth/bigquery" ] }, { "Oauth2": [ "https://www.googleapis.com/auth/cloud-platform" ], "Oauth2c": [ "https://www.googleapis.com/auth/cloud-platform" ] } ], "tags": [ "tables" ] }, "put": { "description": "Updates information in an existing table. The update method replaces t