Google BigQuery (Independent Publisher) (#2146)

* Google BigQuery (Independent Publisher)

* Google BigQuery (Independent Publisher)

* Update README.md

* Google BigQuery (Independent Publisher)

* Google Photos (Independent Publisher) (microsoft #2087)

* Google BigQuery (Independent Publisher)  #2146

* Google Photos (Independent Publisher) #2087

* Google BigQuery (Independent Publisher) #2146

* Google BigQuery (Independent Publisher) (#2146)
This commit is contained in:
Ashwani Kumar 2022-12-16 09:33:04 +05:30 коммит произвёл GitHub
Родитель 0c642f10fe
Коммит 39eb50038e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 270 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,31 @@
# Google BigQuery
BigQuery is a completely serverless and cost-effective enterprise data warehouse. It has built-in machine learning and BI that works across clouds, and scales with your data.
BigQuery's serverless architecture lets you use SQL queries to analyze your data. You can store and analyze your data within BigQuery or use BigQuery to assess your data where it lives.
[BigQuery - Google Cloud](https://cloud.google.com/bigquery)
## Publisher: Ashwani Kumar
## Prerequisites
Have full/owner permission to the Google BigQuery Project and Dataset to the same user account
## Supported Operations
The connector supports the following operations:
- `Get Data`: This action will return your BigQuery data in JSON format by providing 'projectId' and 'datasetId'
## Obtaining Credentials
You will need to generate an OAuth 2.0 client ID and secret for authentication. You will need to setup your OAuth Consent Screen before creating the credentials. More information about the setup is located here. [Using OAuth 2.0 to Access Google APIs](https://developers.google.com/identity/protocols/oauth2)
## Known issues and limitations
There are no known issues and limitations.
## Deployment Instructions
Use the connector and choose OAuth 2.0 authentication as the authentication type.

Просмотреть файл

@ -0,0 +1,202 @@
{
"swagger": "2.0",
"info": {
"title": "Google BigQuery - Dev",
"description": "BigQuery is a completely serverless and cost-effective enterprise data warehouse. It has built-in machine learning and BI that works across clouds, and scales with your data.",
"version": "1.0",
"contact": {
"name": "Ashwani Kumar",
"url": "https://about.me/ashwanidv100",
"email": "ashwanidv100@gmail.com"
}
},
"host": "www.googleapis.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": ["application/json"],
"paths": {
"/bigquery/v2/projects/{projectId}/datasets/{datasetId}": {
"get": {
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "Kind",
"x-ms-summary": "Kind",
"x-ms-visibility": "internal"
},
"etag": {
"type": "string",
"description": "Etag",
"x-ms-summary": "Etag",
"x-ms-visibility": "internal"
},
"id": {
"type": "string",
"description": "ID",
"x-ms-summary": "ID",
"x-ms-visibility": "internal"
},
"selfLink": {
"type": "string",
"description": "SelfLink",
"x-ms-summary": "SelfLink",
"x-ms-visibility": "internal"
},
"datasetReference": {
"type": "object",
"properties": {
"datasetId": {
"type": "string",
"description": "Dataset ID",
"x-ms-summary": "Dataset ID",
"x-ms-visibility": "internal"
},
"projectId": {
"type": "string",
"description": "Project ID",
"x-ms-summary": "Project ID",
"x-ms-visibility": "internal"
}
}
},
"defaultTableExpirationMs": {
"type": "string",
"description": "Default Table Expiration Ms",
"x-ms-summary": "Default Table Expiration Ms",
"x-ms-visibility": "internal"
},
"access": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"description": "Role",
"x-ms-summary": "Role",
"x-ms-visibility": "internal"
},
"specialGroup": {
"type": "string",
"description": "Special Group",
"x-ms-summary": "Special Group",
"x-ms-visibility": "internal"
},
"userByEmail": {
"type": "string",
"description": "User By Email",
"x-ms-summary": "User By Email",
"x-ms-visibility": "internal"
}
},
"required": [
"role"
]
}
},
"creationTime": {
"type": "string",
"description": "Creation Time",
"x-ms-summary": "Creation Time",
"x-ms-visibility": "internal"
},
"lastModifiedTime": {
"type": "string",
"description": "Last Modified Time",
"x-ms-summary": "Last Modified Time",
"x-ms-visibility": "internal"
},
"location": {
"type": "string",
"description": "Location",
"x-ms-summary": "Location",
"x-ms-visibility": "internal"
},
"defaultPartitionExpirationMs": {
"type": "string",
"description": "Default Partition Expiration Ms",
"x-ms-summary": "Default Partition Expiration Ms",
"x-ms-visibility": "internal"
},
"type": {
"type": "string",
"description": "Type",
"x-ms-summary": "Type",
"x-ms-visibility": "internal"
}
}
}
}
},
"operationId": "GetDataset",
"summary": "Get Data",
"description": "Get Data from Google BigQuery",
"parameters": [
{
"name": "projectId",
"in": "path",
"x-ms-summary": "Project ID",
"x-ms-url-encoding": "single",
"description": "Project ID",
"required": true,
"type": "string"
},
{
"name": "datasetId",
"in": "path",
"x-ms-summary": "Dataset ID",
"x-ms-url-encoding": "single",
"description": "Dataset ID",
"required": true,
"type": "string"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"undefined": {
"type": "oauth2",
"flow": "accessCode",
"authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
"tokenUrl": "https://accounts.google.com/o/oauth2/token",
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": "https://www.googleapis.com/auth/cloud-platform"
}
}
},
"security": [
{
"undefined": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://cloud.google.com/bigquery"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://policies.google.com/privacy"
},
{
"propertyName": "Categories",
"propertyValue": "Data"
}
]
}

Просмотреть файл

@ -0,0 +1,37 @@
{
"properties": {
"connectionParameters": {
"token": {
"type": "oauthSetting",
"oAuthSettings": {
"identityProvider": "oauth2",
"clientId": "[YOUR_CLIENT_ID]",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"redirectMode": "Global",
"redirectUrl": "https://global.consent.azure-apim.net/redirect",
"properties": {
"IsFirstParty": "False",
"IsOnbehalfofLoginSupported": false
},
"customParameters": {
"authorizationUrl": {
"value": "https://accounts.google.com/o/oauth2/v2/auth"
},
"tokenUrl": {
"value": "https://accounts.google.com/o/oauth2/token"
},
"refreshUrl": {
"value": "https://accounts.google.com/o/oauth2/token"
}
}
}
}
},
"iconBrandColor": "#da3b01",
"capabilities": [],
"publisher": "Ashwani Kumar",
"stackOwner": "Google"
}
}