Skip to content

Commit 853cfd3

Browse files
Google APIscopybara-github
authored andcommitted
docs: Improvements to various message and field descriptions
PiperOrigin-RevId: 391604499
1 parent 76bed90 commit 853cfd3

3 files changed

Lines changed: 49 additions & 24 deletions

File tree

google/cloud/bigquery/datatransfer/v1/bigquerydatatransfer_v1.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,24 @@ documentation:
1010
summary: |-
1111
Schedule queries or transfer external data from SaaS applications to Google
1212
BigQuery on a regular basis.
13+
rules:
14+
- selector: google.cloud.location.Locations.GetLocation
15+
description: Gets information about a location.
16+
17+
- selector: google.cloud.location.Locations.ListLocations
18+
description: Lists information about the supported locations for this service.
1319

1420
authentication:
1521
rules:
1622
- selector: 'google.cloud.bigquery.datatransfer.v1.DataTransferService.*'
1723
oauth:
1824
canonical_scopes: |-
1925
https://www.googleapis.com/auth/cloud-platform
26+
- selector: google.cloud.location.Locations.GetLocation
27+
oauth:
28+
canonical_scopes: |-
29+
https://www.googleapis.com/auth/cloud-platform
30+
- selector: google.cloud.location.Locations.ListLocations
31+
oauth:
32+
canonical_scopes: |-
33+
https://www.googleapis.com/auth/cloud-platform

google/cloud/bigquery/datatransfer/v1/datatransfer.proto

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -117,7 +117,8 @@ service DataTransferService {
117117
option (google.api.method_signature) = "name";
118118
}
119119

120-
// Returns information about all data transfers in the project.
120+
// Returns information about all transfer configs owned by a project in the
121+
// specified location.
121122
rpc ListTransferConfigs(ListTransferConfigsRequest) returns (ListTransferConfigsResponse) {
122123
option (google.api.http) = {
123124
get: "/v1/{parent=projects/*/locations/*}/transferConfigs"
@@ -329,9 +330,7 @@ message DataSource {
329330
// exchanged for a refresh token on the backend.
330331
GOOGLE_PLUS_AUTHORIZATION_CODE = 2;
331332

332-
// Use First Party Client OAuth. First Party Client OAuth doesn't require a
333-
// refresh token to get an offline access token. Instead, it uses a
334-
// client-signed JWT assertion to retrieve an access token.
333+
// Use First Party OAuth.
335334
FIRST_PARTY_OAUTH = 3;
336335
}
337336

@@ -806,14 +805,14 @@ message StartManualTransferRunsRequest {
806805
message TimeRange {
807806
// Start time of the range of transfer runs. For example,
808807
// `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly less than
809-
// the end_time. Creates transfer runs where run_time is in the range betwen
810-
// start_time (inclusive) and end_time (exlusive).
808+
// the end_time. Creates transfer runs where run_time is in the range
809+
// between start_time (inclusive) and end_time (exclusive).
811810
google.protobuf.Timestamp start_time = 1;
812811

813812
// End time of the range of transfer runs. For example,
814813
// `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the future.
815-
// Creates transfer runs where run_time is in the range betwen start_time
816-
// (inclusive) and end_time (exlusive).
814+
// Creates transfer runs where run_time is in the range between start_time
815+
// (inclusive) and end_time (exclusive).
817816
google.protobuf.Timestamp end_time = 2;
818817
}
819818

google/cloud/bigquery/datatransfer/v1/transfer.proto

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.bigquery.datatransfer.v1;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
21+
import "google/protobuf/duration.proto";
2122
import "google/protobuf/struct.proto";
2223
import "google/protobuf/timestamp.proto";
2324
import "google/rpc/status.proto";
@@ -48,23 +49,23 @@ enum TransferType {
4849

4950
// Represents data transfer run state.
5051
enum TransferState {
51-
// State placeholder.
52+
// State placeholder (0).
5253
TRANSFER_STATE_UNSPECIFIED = 0;
5354

5455
// Data transfer is scheduled and is waiting to be picked up by
55-
// data transfer backend.
56+
// data transfer backend (2).
5657
PENDING = 2;
5758

58-
// Data transfer is in progress.
59+
// Data transfer is in progress (3).
5960
RUNNING = 3;
6061

61-
// Data transfer completed successfully.
62+
// Data transfer completed successfully (4).
6263
SUCCEEDED = 4;
6364

64-
// Data transfer failed.
65+
// Data transfer failed (5).
6566
FAILED = 5;
6667

67-
// Data transfer is cancelled.
68+
// Data transfer is cancelled (6).
6869
CANCELLED = 6;
6970
}
7071

@@ -111,12 +112,11 @@ message TransferConfig {
111112
};
112113

113114
// The resource name of the transfer config.
114-
// Transfer config names have the form of
115+
// Transfer config names have the form
115116
// `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
116-
// The name is automatically generated based on the config_id specified in
117-
// CreateTransferConfigRequest along with project_id and region. If config_id
118-
// is not provided, usually a uuid, even though it is not guaranteed or
119-
// required, will be generated for config_id.
117+
// Where `config_id` is usually a uuid, even though it is not
118+
// guaranteed or required. The name is ignored when creating a transfer
119+
// config.
120120
string name = 1;
121121

122122
// The desination of the transfer config.
@@ -131,7 +131,10 @@ message TransferConfig {
131131
// Data source id. Cannot be changed once data transfer is created.
132132
string data_source_id = 5;
133133

134-
// Data transfer specific parameters.
134+
// Parameters specific to each data source. For more information see the
135+
// bq tab in the 'Setting up a data transfer' section for each data source.
136+
// For example the parameters for Cloud Storage transfers are listed here:
137+
// https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
135138
google.protobuf.Struct params = 9;
136139

137140
// Data transfer schedule.
@@ -180,6 +183,9 @@ message TransferConfig {
180183

181184
// Pub/Sub topic where notifications will be sent after transfer runs
182185
// associated with this transfer config finish.
186+
//
187+
// The format for specifying a pubsub topic is:
188+
// `projects/{project}/topics/{topic}`
183189
string notification_pubsub_topic = 15;
184190

185191
// Email notifications will be sent according to these preferences
@@ -222,7 +228,10 @@ message TransferRun {
222228
// Output only. Last time the data transfer run state was updated.
223229
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
224230

225-
// Output only. Data transfer specific parameters.
231+
// Output only. Parameters specific to each data source. For more information see the
232+
// bq tab in the 'Setting up a data transfer' section for each data source.
233+
// For example the parameters for Cloud Storage transfers are listed here:
234+
// https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
226235
google.protobuf.Struct params = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
227236

228237
// Data transfer destination.
@@ -248,7 +257,10 @@ message TransferRun {
248257
string schedule = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
249258

250259
// Output only. Pub/Sub topic where a notification will be sent after this
251-
// transfer run finishes
260+
// transfer run finishes.
261+
//
262+
// The format for specifying a pubsub topic is:
263+
// `projects/{project}/topics/{topic}`
252264
string notification_pubsub_topic = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
253265

254266
// Output only. Email notifications will be sent according to these

0 commit comments

Comments
 (0)