|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright 2020 Google LLC |
|
|
|
// Copyright 2021 Google LLC |
|
|
|
// |
|
|
|
// |
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
// you may not use this file except in compliance with the License. |
|
|
@ -18,6 +18,7 @@ package google.cloud.bigquery.datatransfer.v1; |
|
|
|
|
|
|
|
|
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
import "google/api/resource.proto"; |
|
|
|
import "google/api/resource.proto"; |
|
|
|
|
|
|
|
import "google/protobuf/duration.proto"; |
|
|
|
import "google/protobuf/struct.proto"; |
|
|
|
import "google/protobuf/struct.proto"; |
|
|
|
import "google/protobuf/timestamp.proto"; |
|
|
|
import "google/protobuf/timestamp.proto"; |
|
|
|
import "google/rpc/status.proto"; |
|
|
|
import "google/rpc/status.proto"; |
|
|
@ -48,23 +49,23 @@ enum TransferType { |
|
|
|
|
|
|
|
|
|
|
|
// Represents data transfer run state. |
|
|
|
// Represents data transfer run state. |
|
|
|
enum TransferState { |
|
|
|
enum TransferState { |
|
|
|
// State placeholder. |
|
|
|
// State placeholder (0). |
|
|
|
TRANSFER_STATE_UNSPECIFIED = 0; |
|
|
|
TRANSFER_STATE_UNSPECIFIED = 0; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer is scheduled and is waiting to be picked up by |
|
|
|
// Data transfer is scheduled and is waiting to be picked up by |
|
|
|
// data transfer backend. |
|
|
|
// data transfer backend (2). |
|
|
|
PENDING = 2; |
|
|
|
PENDING = 2; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer is in progress. |
|
|
|
// Data transfer is in progress (3). |
|
|
|
RUNNING = 3; |
|
|
|
RUNNING = 3; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer completed successfully. |
|
|
|
// Data transfer completed successfully (4). |
|
|
|
SUCCEEDED = 4; |
|
|
|
SUCCEEDED = 4; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer failed. |
|
|
|
// Data transfer failed (5). |
|
|
|
FAILED = 5; |
|
|
|
FAILED = 5; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer is cancelled. |
|
|
|
// Data transfer is cancelled (6). |
|
|
|
CANCELLED = 6; |
|
|
|
CANCELLED = 6; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -111,12 +112,11 @@ message TransferConfig { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// The resource name of the transfer config. |
|
|
|
// The resource name of the transfer config. |
|
|
|
// Transfer config names have the form of |
|
|
|
// Transfer config names have the form |
|
|
|
// `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. |
|
|
|
// `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. |
|
|
|
// The name is automatically generated based on the config_id specified in |
|
|
|
// Where `config_id` is usually a uuid, even though it is not |
|
|
|
// CreateTransferConfigRequest along with project_id and region. If config_id |
|
|
|
// guaranteed or required. The name is ignored when creating a transfer |
|
|
|
// is not provided, usually a uuid, even though it is not guaranteed or |
|
|
|
// config. |
|
|
|
// required, will be generated for config_id. |
|
|
|
|
|
|
|
string name = 1; |
|
|
|
string name = 1; |
|
|
|
|
|
|
|
|
|
|
|
// The desination of the transfer config. |
|
|
|
// The desination of the transfer config. |
|
|
@ -131,7 +131,10 @@ message TransferConfig { |
|
|
|
// Data source id. Cannot be changed once data transfer is created. |
|
|
|
// Data source id. Cannot be changed once data transfer is created. |
|
|
|
string data_source_id = 5; |
|
|
|
string data_source_id = 5; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer specific parameters. |
|
|
|
// Parameters specific to each data source. For more information see the |
|
|
|
|
|
|
|
// bq tab in the 'Setting up a data transfer' section for each data source. |
|
|
|
|
|
|
|
// For example the parameters for Cloud Storage transfers are listed here: |
|
|
|
|
|
|
|
// https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq |
|
|
|
google.protobuf.Struct params = 9; |
|
|
|
google.protobuf.Struct params = 9; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer schedule. |
|
|
|
// Data transfer schedule. |
|
|
@ -180,6 +183,9 @@ message TransferConfig { |
|
|
|
|
|
|
|
|
|
|
|
// Pub/Sub topic where notifications will be sent after transfer runs |
|
|
|
// Pub/Sub topic where notifications will be sent after transfer runs |
|
|
|
// associated with this transfer config finish. |
|
|
|
// associated with this transfer config finish. |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// The format for specifying a pubsub topic is: |
|
|
|
|
|
|
|
// `projects/{project}/topics/{topic}` |
|
|
|
string notification_pubsub_topic = 15; |
|
|
|
string notification_pubsub_topic = 15; |
|
|
|
|
|
|
|
|
|
|
|
// Email notifications will be sent according to these preferences |
|
|
|
// Email notifications will be sent according to these preferences |
|
|
@ -222,7 +228,10 @@ message TransferRun { |
|
|
|
// Output only. Last time the data transfer run state was updated. |
|
|
|
// Output only. Last time the data transfer run state was updated. |
|
|
|
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
|
|
// Output only. Data transfer specific parameters. |
|
|
|
// Output only. Parameters specific to each data source. For more information see the |
|
|
|
|
|
|
|
// bq tab in the 'Setting up a data transfer' section for each data source. |
|
|
|
|
|
|
|
// For example the parameters for Cloud Storage transfers are listed here: |
|
|
|
|
|
|
|
// https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq |
|
|
|
google.protobuf.Struct params = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
google.protobuf.Struct params = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
|
|
// Data transfer destination. |
|
|
|
// Data transfer destination. |
|
|
@ -248,7 +257,10 @@ message TransferRun { |
|
|
|
string schedule = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
string schedule = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
|
|
// Output only. Pub/Sub topic where a notification will be sent after this |
|
|
|
// Output only. Pub/Sub topic where a notification will be sent after this |
|
|
|
// transfer run finishes |
|
|
|
// transfer run finishes. |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// The format for specifying a pubsub topic is: |
|
|
|
|
|
|
|
// `projects/{project}/topics/{topic}` |
|
|
|
string notification_pubsub_topic = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
string notification_pubsub_topic = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
|
|
// Output only. Email notifications will be sent according to these |
|
|
|
// Output only. Email notifications will be sent according to these |
|
|
|