Skip to content

Commit

Permalink
updating GAPIC and bumping semver minor version (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Feb 6, 2018
1 parent f4ac847 commit d84be42
Show file tree
Hide file tree
Showing 18 changed files with 300 additions and 85 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery-datatransfer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/bigquery-data-transfer",
"description": "BigQuery Data Transfer API client for Node.js",
"version": "0.1.1",
"version": "0.2.0",
"license": "Apache-2.0",
"author": "Google Inc",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017 Google Inc.
// Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,7 +97,7 @@ service DataTransferService {
};
}

// Creates transfer runs for a time range [range_start_time, range_end_time].
// Creates transfer runs for a time range [start_time, end_time].
// For each date - or whatever granularity the data source supports - in the
// range, one transfer run is created.
// Note that runs are created per UTC time in the time range.
Expand Down Expand Up @@ -339,7 +339,7 @@ message DataSource {
// for the data source.
bool manual_runs_disabled = 17;

// The minimum interval between two consecutive scheduled runs.
// The minimum interval for scheduler to schedule runs.
google.protobuf.Duration minimum_schedule_interval = 18;
}

Expand Down Expand Up @@ -388,10 +388,8 @@ message ListDataSourcesResponse {
message CreateTransferConfigRequest {
// The BigQuery project id where the transfer configuration should be created.
// Must be in the format /projects/{project_id}/locations/{location_id}
// or
// /projects/{project_id}/locations/-
// In case when '-' is specified as location_id, location is infered from
// the destination dataset region.
// If specified location and location of the destination bigquery dataset
// do not match - the request will fail.
string parent = 1;

// Data transfer configuration to create.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017 Google Inc.
// Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,6 +35,7 @@ option php_namespace = "Google\\Cloud\\BigQuery\\DataTransfer\\V1";
// When a new transfer configuration is created, the specified
// `destination_dataset_id` is created when needed and shared with the
// appropriate data source service account.
// Next id: 20
message TransferConfig {
// The resource name of the transfer config.
// Transfer config names have the form
Expand Down Expand Up @@ -94,34 +95,33 @@ message TransferConfig {
// Output only. Unique ID of the user on whose behalf transfer is done.
// Applicable only to data sources that do not support service accounts.
// When set to 0, the data source service account credentials are used.
// May be negative. Note, that this identifier is not stable.
// It may change over time even for the same user.
int64 user_id = 11;

// Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
}

// Represents a data transfer run.
// Next id: 23
// Next id: 27
message TransferRun {
// The resource name of the transfer run.
// Transfer run names have the form
// `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`.
// The name is ignored when creating a transfer run.
string name = 1;

// The BigQuery target dataset id.
string destination_dataset_id = 2;

// Minimum time after which a transfer run can be started.
google.protobuf.Timestamp schedule_time = 3;

// Data transfer specific parameters.
google.protobuf.Struct params = 9;

// For batch transfer runs, specifies the date and time that
// data should be ingested.
google.protobuf.Timestamp run_time = 10;

// Status of the transfer run.
google.rpc.Status error_status = 21;

// Output only. Time when transfer run was started.
// Parameter ignored by server for input requests.
google.protobuf.Timestamp start_time = 4;
Expand All @@ -133,6 +133,12 @@ message TransferRun {
// Output only. Last time the data transfer run state was updated.
google.protobuf.Timestamp update_time = 6;

// Output only. Data transfer specific parameters.
google.protobuf.Struct params = 9;

// Output only. The BigQuery target dataset id.
string destination_dataset_id = 2;

// Output only. Data source id.
string data_source_id = 7;

Expand All @@ -142,7 +148,8 @@ message TransferRun {
// Output only. Unique ID of the user on whose behalf transfer is done.
// Applicable only to data sources that do not support service accounts.
// When set to 0, the data source service account credentials are used.
// May be negative.
// May be negative. Note, that this identifier is not stable.
// It may change over time even for the same user.
int64 user_id = 11;

// Output only. Describes the schedule of this transfer run if it was
Expand Down Expand Up @@ -198,9 +205,6 @@ enum TransferState {
// State placeholder.
TRANSFER_STATE_UNSPECIFIED = 0;

// Data transfer is inactive.
INACTIVE = 1;

// Data transfer is scheduled and is waiting to be picked up by
// data transfer backend.
PENDING = 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2017, Google LLC All rights reserved.
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-bigquery-datatransfer/src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2017, Google LLC All rights reserved.
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2017, Google LLC All rights reserved.
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -224,11 +224,7 @@ class DataTransferServiceClient {
* in this service.
*/
static get scopes() {
return [
'https://www.googleapis.com/auth/bigquery',
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
];
return ['https://www.googleapis.com/auth/cloud-platform'];
}

/**
Expand Down Expand Up @@ -452,10 +448,8 @@ class DataTransferServiceClient {
* @param {string} request.parent
* The BigQuery project id where the transfer configuration should be created.
* Must be in the format /projects/{project_id}/locations/{location_id}
* or
* /projects/{project_id}/locations/-
* In case when '-' is specified as location_id, location is infered from
* the destination dataset region.
* If specified location and location of the destination bigquery dataset
* do not match - the request will fail.
* @param {Object} request.transferConfig
* Data transfer configuration to create.
*
Expand Down Expand Up @@ -839,7 +833,7 @@ class DataTransferServiceClient {
}

/**
* Creates transfer runs for a time range [range_start_time, range_end_time].
* Creates transfer runs for a time range [start_time, end_time].
* For each date - or whatever granularity the data source supports - in the
* range, one transfer run is created.
* Note that runs are created per UTC time in the time range.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2017, Google LLC All rights reserved.
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -214,7 +214,7 @@ var DataSourceParameter = {
* for the data source.
*
* @property {Object} minimumScheduleInterval
* The minimum interval between two consecutive scheduled runs.
* The minimum interval for scheduler to schedule runs.
*
* This object should have the same structure as [Duration]{@link google.protobuf.Duration}
*
Expand Down Expand Up @@ -353,10 +353,8 @@ var ListDataSourcesResponse = {
* @property {string} parent
* The BigQuery project id where the transfer configuration should be created.
* Must be in the format /projects/{project_id}/locations/{location_id}
* or
* /projects/{project_id}/locations/-
* In case when '-' is specified as location_id, location is infered from
* the destination dataset region.
* If specified location and location of the destination bigquery dataset
* do not match - the request will fail.
*
* @property {Object} transferConfig
* Data transfer configuration to create.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2017, Google LLC All rights reserved.
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -22,6 +22,7 @@
* When a new transfer configuration is created, the specified
* `destination_dataset_id` is created when needed and shared with the
* appropriate data source service account.
* Next id: 20
*
* @property {string} name
* The resource name of the transfer config.
Expand Down Expand Up @@ -90,6 +91,8 @@
* Output only. Unique ID of the user on whose behalf transfer is done.
* Applicable only to data sources that do not support service accounts.
* When set to 0, the data source service account credentials are used.
* May be negative. Note, that this identifier is not stable.
* It may change over time even for the same user.
*
* @property {string} datasetRegion
* Output only. Region in which BigQuery dataset is located.
Expand All @@ -104,33 +107,30 @@ var TransferConfig = {

/**
* Represents a data transfer run.
* Next id: 23
* Next id: 27
*
* @property {string} name
* The resource name of the transfer run.
* Transfer run names have the form
* `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`.
* The name is ignored when creating a transfer run.
*
* @property {string} destinationDatasetId
* The BigQuery target dataset id.
*
* @property {Object} scheduleTime
* Minimum time after which a transfer run can be started.
*
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
*
* @property {Object} params
* Data transfer specific parameters.
*
* This object should have the same structure as [Struct]{@link google.protobuf.Struct}
*
* @property {Object} runTime
* For batch transfer runs, specifies the date and time that
* data should be ingested.
*
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
*
* @property {Object} errorStatus
* Status of the transfer run.
*
* This object should have the same structure as [Status]{@link google.rpc.Status}
*
* @property {Object} startTime
* Output only. Time when transfer run was started.
* Parameter ignored by server for input requests.
Expand All @@ -148,6 +148,14 @@ var TransferConfig = {
*
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
*
* @property {Object} params
* Output only. Data transfer specific parameters.
*
* This object should have the same structure as [Struct]{@link google.protobuf.Struct}
*
* @property {string} destinationDatasetId
* Output only. The BigQuery target dataset id.
*
* @property {string} dataSourceId
* Output only. Data source id.
*
Expand All @@ -160,7 +168,8 @@ var TransferConfig = {
* Output only. Unique ID of the user on whose behalf transfer is done.
* Applicable only to data sources that do not support service accounts.
* When set to 0, the data source service account credentials are used.
* May be negative.
* May be negative. Note, that this identifier is not stable.
* It may change over time even for the same user.
*
* @property {string} schedule
* Output only. Describes the schedule of this transfer run if it was
Expand Down Expand Up @@ -268,11 +277,6 @@ var TransferState = {
*/
TRANSFER_STATE_UNSPECIFIED: 0,

/**
* Data transfer is inactive.
*/
INACTIVE: 1,

/**
* Data transfer is scheduled and is waiting to be picked up by
* data transfer backend.
Expand Down
Loading

0 comments on commit d84be42

Please sign in to comment.