Skip to content

Commit

Permalink
fix: remove bigquery.readonly auth scope (#1543)
Browse files Browse the repository at this point in the history
* fix!: remove bigquery.readonly auth scope

PiperOrigin-RevId: 429331987

Source-Link: googleapis/googleapis@4b2bd26

Source-Link: googleapis/googleapis-gen@fa17f03
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmExN2YwM2I1YWU5NjMxNmNkMDJmMjk5N2YyZmQxMTk2ZTAzNGU1ZSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 18, 2022
1 parent c777e23 commit a70ae45
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public class BigQueryReadStubSettings extends StubSettings<BigQueryReadStubSetti
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
.add("https://www.googleapis.com/auth/bigquery")
.add("https://www.googleapis.com/auth/bigquery.readonly")
.add("https://www.googleapis.com/auth/cloud-platform")
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public class BigQueryStorageStubSettings extends StubSettings<BigQueryStorageStu
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
.add("https://www.googleapis.com/auth/bigquery")
.add("https://www.googleapis.com/auth/bigquery.readonly")
.add("https://www.googleapis.com/auth/cloud-platform")
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public class BigQueryReadStubSettings extends StubSettings<BigQueryReadStubSetti
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder()
.add("https://www.googleapis.com/auth/bigquery")
.add("https://www.googleapis.com/auth/bigquery.readonly")
.add("https://www.googleapis.com/auth/cloud-platform")
.build();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "EADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUND\020\003\022\027"
+ "\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_STREA"
+ "M_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 \n\034SCHEM"
+ "A_MISMATCH_EXTRA_FIELDS\020\0072\306\006\n\014BigQueryRe"
+ "A_MISMATCH_EXTRA_FIELDS\020\0072\222\006\n\014BigQueryRe"
+ "ad\022\351\001\n\021CreateReadSession\022:.google.cloud."
+ "bigquery.storage.v1.CreateReadSessionReq"
+ "uest\032-.google.cloud.bigquery.storage.v1."
Expand All @@ -228,55 +228,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "equest\0329.google.cloud.bigquery.storage.v"
+ "1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/v1/{"
+ "name=projects/*/locations/*/sessions/*/s"
+ "treams/*}\032\256\001\312A\036bigquerystorage.googleapi"
+ "s.com\322A\211\001https://www.googleapis.com/auth"
+ "/bigquery,https://www.googleapis.com/aut"
+ "h/bigquery.readonly,https://www.googleap"
+ "is.com/auth/cloud-platform2\274\013\n\rBigQueryW"
+ "rite\022\327\001\n\021CreateWriteStream\022:.google.clou"
+ "d.bigquery.storage.v1.CreateWriteStreamR"
+ "equest\032-.google.cloud.bigquery.storage.v"
+ "1.WriteStream\"W\202\323\344\223\002;\"+/v1/{parent=proje"
+ "cts/*/datasets/*/tables/*}:\014write_stream"
+ "\332A\023parent,write_stream\022\322\001\n\nAppendRows\0223."
+ "google.cloud.bigquery.storage.v1.AppendR"
+ "owsRequest\0324.google.cloud.bigquery.stora"
+ "ge.v1.AppendRowsResponse\"U\202\323\344\223\002@\";/v1/{w"
+ "rite_stream=projects/*/datasets/*/tables"
+ "/*/streams/*}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016"
+ "GetWriteStream\0227.google.cloud.bigquery.s"
+ "torage.v1.GetWriteStreamRequest\032-.google"
+ ".cloud.bigquery.storage.v1.WriteStream\"E"
+ "\202\323\344\223\0028\"3/v1/{name=projects/*/datasets/*/"
+ "tables/*/streams/*}:\001*\332A\004name\022\331\001\n\023Finali"
+ "zeWriteStream\022<.google.cloud.bigquery.st"
+ "orage.v1.FinalizeWriteStreamRequest\032=.go"
+ "ogle.cloud.bigquery.storage.v1.FinalizeW"
+ "riteStreamResponse\"E\202\323\344\223\0028\"3/v1/{name=pr"
+ "ojects/*/datasets/*/tables/*/streams/*}:"
+ "\001*\332A\004name\022\334\001\n\027BatchCommitWriteStreams\022@."
+ "google.cloud.bigquery.storage.v1.BatchCo"
+ "mmitWriteStreamsRequest\032A.google.cloud.b"
+ "igquery.storage.v1.BatchCommitWriteStrea"
+ "msResponse\"<\202\323\344\223\002-\022+/v1/{parent=projects"
+ "/*/datasets/*/tables/*}\332A\006parent\022\313\001\n\tFlu"
+ "shRows\0222.google.cloud.bigquery.storage.v"
+ "1.FlushRowsRequest\0323.google.cloud.bigque"
+ "ry.storage.v1.FlushRowsResponse\"U\202\323\344\223\002@\""
+ ";/v1/{write_stream=projects/*/datasets/*"
+ "/tables/*/streams/*}:\001*\332A\014write_stream\032\260"
+ "\001\312A\036bigquerystorage.googleapis.com\322A\213\001ht"
+ "tps://www.googleapis.com/auth/bigquery,h"
+ "ttps://www.googleapis.com/auth/bigquery."
+ "insertdata,https://www.googleapis.com/au"
+ "th/cloud-platformB\235\002\n$com.google.cloud.b"
+ "igquery.storage.v1B\014StorageProtoP\001ZGgoog"
+ "le.golang.org/genproto/googleapis/cloud/"
+ "bigquery/storage/v1;storage\252\002 Google.Clo"
+ "ud.BigQuery.Storage.V1\312\002 Google\\Cloud\\Bi"
+ "gQuery\\Storage\\V1\352AU\n\035bigquery.googleapi"
+ "s.com/Table\0224projects/{project}/datasets"
+ "/{dataset}/tables/{table}b\006proto3"
+ "treams/*}\032{\312A\036bigquerystorage.googleapis"
+ ".com\322AWhttps://www.googleapis.com/auth/b"
+ "igquery,https://www.googleapis.com/auth/"
+ "cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n\021Cre"
+ "ateWriteStream\022:.google.cloud.bigquery.s"
+ "torage.v1.CreateWriteStreamRequest\032-.goo"
+ "gle.cloud.bigquery.storage.v1.WriteStrea"
+ "m\"W\202\323\344\223\002;\"+/v1/{parent=projects/*/datase"
+ "ts/*/tables/*}:\014write_stream\332A\023parent,wr"
+ "ite_stream\022\322\001\n\nAppendRows\0223.google.cloud"
+ ".bigquery.storage.v1.AppendRowsRequest\0324"
+ ".google.cloud.bigquery.storage.v1.Append"
+ "RowsResponse\"U\202\323\344\223\002@\";/v1/{write_stream="
+ "projects/*/datasets/*/tables/*/streams/*"
+ "}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016GetWriteStre"
+ "am\0227.google.cloud.bigquery.storage.v1.Ge"
+ "tWriteStreamRequest\032-.google.cloud.bigqu"
+ "ery.storage.v1.WriteStream\"E\202\323\344\223\0028\"3/v1/"
+ "{name=projects/*/datasets/*/tables/*/str"
+ "eams/*}:\001*\332A\004name\022\331\001\n\023FinalizeWriteStrea"
+ "m\022<.google.cloud.bigquery.storage.v1.Fin"
+ "alizeWriteStreamRequest\032=.google.cloud.b"
+ "igquery.storage.v1.FinalizeWriteStreamRe"
+ "sponse\"E\202\323\344\223\0028\"3/v1/{name=projects/*/dat"
+ "asets/*/tables/*/streams/*}:\001*\332A\004name\022\334\001"
+ "\n\027BatchCommitWriteStreams\022@.google.cloud"
+ ".bigquery.storage.v1.BatchCommitWriteStr"
+ "eamsRequest\032A.google.cloud.bigquery.stor"
+ "age.v1.BatchCommitWriteStreamsResponse\"<"
+ "\202\323\344\223\002-\022+/v1/{parent=projects/*/datasets/"
+ "*/tables/*}\332A\006parent\022\313\001\n\tFlushRows\0222.goo"
+ "gle.cloud.bigquery.storage.v1.FlushRowsR"
+ "equest\0323.google.cloud.bigquery.storage.v"
+ "1.FlushRowsResponse\"U\202\323\344\223\002@\";/v1/{write_"
+ "stream=projects/*/datasets/*/tables/*/st"
+ "reams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigquery"
+ "storage.googleapis.com\322A\213\001https://www.go"
+ "ogleapis.com/auth/bigquery,https://www.g"
+ "oogleapis.com/auth/bigquery.insertdata,h"
+ "ttps://www.googleapis.com/auth/cloud-pla"
+ "tformB\235\002\n$com.google.cloud.bigquery.stor"
+ "age.v1B\014StorageProtoP\001ZGgoogle.golang.or"
+ "g/genproto/googleapis/cloud/bigquery/sto"
+ "rage/v1;storage\252\002 Google.Cloud.BigQuery."
+ "Storage.V1\312\002 Google\\Cloud\\BigQuery\\Stora"
+ "ge\\V1\352AU\n\035bigquery.googleapis.com/Table\022"
+ "4projects/{project}/datasets/{dataset}/t"
+ "ables/{table}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ service BigQueryRead {
option (google.api.default_host) = "bigquerystorage.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/bigquery,"
"https://www.googleapis.com/auth/bigquery.readonly,"
"https://www.googleapis.com/auth/cloud-platform";

// Creates a new read session. A read session divides the contents of a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17774,7 +17774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "1beta1.Stream*>\n\nDataFormat\022\033\n\027DATA_FORM"
+ "AT_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\003*O\n"
+ "\020ShardingStrategy\022!\n\035SHARDING_STRATEGY_U"
+ "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\353"
+ "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\267"
+ "\n\n\017BigQueryStorage\022\263\002\n\021CreateReadSession"
+ "\022?.google.cloud.bigquery.storage.v1beta1"
+ ".CreateReadSessionRequest\0322.google.cloud"
Expand Down Expand Up @@ -17805,14 +17805,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ud.bigquery.storage.v1beta1.SplitReadStr"
+ "eamResponse\"N\202\323\344\223\0026\0224/v1beta1/{original_"
+ "stream.name=projects/*/streams/*}\332A\017orig"
+ "inal_stream\032\256\001\312A\036bigquerystorage.googlea"
+ "pis.com\322A\211\001https://www.googleapis.com/au"
+ "th/bigquery,https://www.googleapis.com/a"
+ "uth/bigquery.readonly,https://www.google"
+ "apis.com/auth/cloud-platformBy\n)com.goog"
+ "le.cloud.bigquery.storage.v1beta1ZLgoogl"
+ "e.golang.org/genproto/googleapis/cloud/b"
+ "igquery/storage/v1beta1;storageb\006proto3"
+ "inal_stream\032{\312A\036bigquerystorage.googleap"
+ "is.com\322AWhttps://www.googleapis.com/auth"
+ "/bigquery,https://www.googleapis.com/aut"
+ "h/cloud-platformBy\n)com.google.cloud.big"
+ "query.storage.v1beta1ZLgoogle.golang.org"
+ "/genproto/googleapis/cloud/bigquery/stor"
+ "age/v1beta1;storageb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ service BigQueryStorage {
option (google.api.default_host) = "bigquerystorage.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/bigquery,"
"https://www.googleapis.com/auth/bigquery.readonly,"
"https://www.googleapis.com/auth/cloud-platform";

// Creates a new read session. A read session divides the contents of a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "PECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREA"
+ "M_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUN"
+ "D\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_"
+ "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\363\006\n"
+ "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\277\006\n"
+ "\014BigQueryRead\022\370\001\n\021CreateReadSession\022?.go"
+ "ogle.cloud.bigquery.storage.v1beta2.Crea"
+ "teReadSessionRequest\0322.google.cloud.bigq"
Expand All @@ -231,54 +231,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "treamRequest\032>.google.cloud.bigquery.sto"
+ "rage.v1beta2.SplitReadStreamResponse\"C\202\323"
+ "\344\223\002=\022;/v1beta2/{name=projects/*/location"
+ "s/*/sessions/*/streams/*}\032\256\001\312A\036bigquerys"
+ "torage.googleapis.com\322A\211\001https://www.goo"
+ "gleapis.com/auth/bigquery,https://www.go"
+ "ogleapis.com/auth/bigquery.readonly,http"
+ "s://www.googleapis.com/auth/cloud-platfo"
+ "rm2\226\014\n\rBigQueryWrite\022\346\001\n\021CreateWriteStre"
+ "am\022?.google.cloud.bigquery.storage.v1bet"
+ "a2.CreateWriteStreamRequest\0322.google.clo"
+ "ud.bigquery.storage.v1beta2.WriteStream\""
+ "\\\202\323\344\223\002@\"0/v1beta2/{parent=projects/*/dat"
+ "asets/*/tables/*}:\014write_stream\332A\023parent"
+ ",write_stream\022\341\001\n\nAppendRows\0228.google.cl"
+ "oud.bigquery.storage.v1beta2.AppendRowsR"
+ "equest\0329.google.cloud.bigquery.storage.v"
+ "1beta2.AppendRowsResponse\"Z\202\323\344\223\002E\"@/v1be"
+ "ta2/{write_stream=projects/*/datasets/*/"
+ "tables/*/streams/*}:\001*\332A\014write_stream(\0010"
+ "\001\022\316\001\n\016GetWriteStream\022<.google.cloud.bigq"
+ "uery.storage.v1beta2.GetWriteStreamReque"
+ "st\0322.google.cloud.bigquery.storage.v1bet"
+ "a2.WriteStream\"J\202\323\344\223\002=\"8/v1beta2/{name=p"
+ "rojects/*/datasets/*/tables/*/streams/*}"
+ ":\001*\332A\004name\022\350\001\n\023FinalizeWriteStream\022A.goo"
+ "gle.cloud.bigquery.storage.v1beta2.Final"
+ "izeWriteStreamRequest\032B.google.cloud.big"
+ "query.storage.v1beta2.FinalizeWriteStrea"
+ "mResponse\"J\202\323\344\223\002=\"8/v1beta2/{name=projec"
+ "ts/*/datasets/*/tables/*/streams/*}:\001*\332A"
+ "\004name\022\353\001\n\027BatchCommitWriteStreams\022E.goog"
+ "le.cloud.bigquery.storage.v1beta2.BatchC"
+ "ommitWriteStreamsRequest\032F.google.cloud."
+ "bigquery.storage.v1beta2.BatchCommitWrit"
+ "eStreamsResponse\"A\202\323\344\223\0022\0220/v1beta2/{pare"
+ "nt=projects/*/datasets/*/tables/*}\332A\006par"
+ "ent\022\332\001\n\tFlushRows\0227.google.cloud.bigquer"
+ "y.storage.v1beta2.FlushRowsRequest\0328.goo"
+ "gle.cloud.bigquery.storage.v1beta2.Flush"
+ "RowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_st"
+ "ream=projects/*/datasets/*/tables/*/stre"
+ "ams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigqueryst"
+ "orage.googleapis.com\322A\213\001https://www.goog"
+ "leapis.com/auth/bigquery,https://www.goo"
+ "gleapis.com/auth/bigquery.insertdata,htt"
+ "ps://www.googleapis.com/auth/cloud-platf"
+ "ormB\211\001\n)com.google.cloud.bigquery.storag"
+ "e.v1beta2B\014StorageProtoP\001ZLgoogle.golang"
+ ".org/genproto/googleapis/cloud/bigquery/"
+ "storage/v1beta2;storageb\006proto3"
+ "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst"
+ "orage.googleapis.com\322AWhttps://www.googl"
+ "eapis.com/auth/bigquery,https://www.goog"
+ "leapis.com/auth/cloud-platform2\226\014\n\rBigQu"
+ "eryWrite\022\346\001\n\021CreateWriteStream\022?.google."
+ "cloud.bigquery.storage.v1beta2.CreateWri"
+ "teStreamRequest\0322.google.cloud.bigquery."
+ "storage.v1beta2.WriteStream\"\\\202\323\344\223\002@\"0/v1"
+ "beta2/{parent=projects/*/datasets/*/tabl"
+ "es/*}:\014write_stream\332A\023parent,write_strea"
+ "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery"
+ ".storage.v1beta2.AppendRowsRequest\0329.goo"
+ "gle.cloud.bigquery.storage.v1beta2.Appen"
+ "dRowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_s"
+ "tream=projects/*/datasets/*/tables/*/str"
+ "eams/*}:\001*\332A\014write_stream(\0010\001\022\316\001\n\016GetWri"
+ "teStream\022<.google.cloud.bigquery.storage"
+ ".v1beta2.GetWriteStreamRequest\0322.google."
+ "cloud.bigquery.storage.v1beta2.WriteStre"
+ "am\"J\202\323\344\223\002=\"8/v1beta2/{name=projects/*/da"
+ "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\350"
+ "\001\n\023FinalizeWriteStream\022A.google.cloud.bi"
+ "gquery.storage.v1beta2.FinalizeWriteStre"
+ "amRequest\032B.google.cloud.bigquery.storag"
+ "e.v1beta2.FinalizeWriteStreamResponse\"J\202"
+ "\323\344\223\002=\"8/v1beta2/{name=projects/*/dataset"
+ "s/*/tables/*/streams/*}:\001*\332A\004name\022\353\001\n\027Ba"
+ "tchCommitWriteStreams\022E.google.cloud.big"
+ "query.storage.v1beta2.BatchCommitWriteSt"
+ "reamsRequest\032F.google.cloud.bigquery.sto"
+ "rage.v1beta2.BatchCommitWriteStreamsResp"
+ "onse\"A\202\323\344\223\0022\0220/v1beta2/{parent=projects/"
+ "*/datasets/*/tables/*}\332A\006parent\022\332\001\n\tFlus"
+ "hRows\0227.google.cloud.bigquery.storage.v1"
+ "beta2.FlushRowsRequest\0328.google.cloud.bi"
+ "gquery.storage.v1beta2.FlushRowsResponse"
+ "\"Z\202\323\344\223\002E\"@/v1beta2/{write_stream=project"
+ "s/*/datasets/*/tables/*/streams/*}:\001*\332A\014"
+ "write_stream\032\260\001\312A\036bigquerystorage.google"
+ "apis.com\322A\213\001https://www.googleapis.com/a"
+ "uth/bigquery,https://www.googleapis.com/"
+ "auth/bigquery.insertdata,https://www.goo"
+ "gleapis.com/auth/cloud-platformB\211\001\n)com."
+ "google.cloud.bigquery.storage.v1beta2B\014S"
+ "torageProtoP\001ZLgoogle.golang.org/genprot"
+ "o/googleapis/cloud/bigquery/storage/v1be"
+ "ta2;storageb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ service BigQueryRead {
option (google.api.default_host) = "bigquerystorage.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/bigquery,"
"https://www.googleapis.com/auth/bigquery.readonly,"
"https://www.googleapis.com/auth/cloud-platform";

// Creates a new read session. A read session divides the contents of a
Expand Down

0 comments on commit a70ae45

Please sign in to comment.