Skip to content

Commit e8ae38e

Browse files
feat: [meet] Add outh_scope values to services (#10401)
* feat: Add outh_scope values to services PiperOrigin-RevId: 607757333 Source-Link: googleapis/googleapis@89ee00d Source-Link: https://github.com/googleapis/googleapis-gen/commit/3daf4f3296ea518298aac9960eb3bccdc9f69692 Copy-Tag: eyJwIjoiamF2YS1tZWV0Ly5Pd2xCb3QueWFtbCIsImgiOiIzZGFmNGYzMjk2ZWE1MTgyOThhYWM5OTYwZWIzYmNjZGM5ZjY5NjkyIn0= * 🦉 Updates from OwlBot post-processor 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>
1 parent 75cfdd4 commit e8ae38e

File tree

4 files changed

+82
-63
lines changed

4 files changed

+82
-63
lines changed

java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ public class ConferenceRecordsServiceStubSettings
124124
extends StubSettings<ConferenceRecordsServiceStubSettings> {
125125
/** The default scopes of the service. */
126126
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
127-
ImmutableList.<String>builder().build();
127+
ImmutableList.<String>builder()
128+
.add("https://www.googleapis.com/auth/meetings.space.created")
129+
.add("https://www.googleapis.com/auth/meetings.space.readonly")
130+
.build();
128131

129132
private final UnaryCallSettings<GetConferenceRecordRequest, ConferenceRecord>
130133
getConferenceRecordSettings;

java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
public class SpacesServiceStubSettings extends StubSettings<SpacesServiceStubSettings> {
9191
/** The default scopes of the service. */
9292
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
93-
ImmutableList.<String>builder().build();
93+
ImmutableList.<String>builder()
94+
.add("https://www.googleapis.com/auth/meetings.space.created")
95+
.add("https://www.googleapis.com/auth/meetings.space.readonly")
96+
.build();
9497

9598
private final UnaryCallSettings<CreateSpaceRequest, Space> createSpaceSettings;
9699
private final UnaryCallSettings<GetSpaceRequest, Space> getSpaceSettings;

java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java

Lines changed: 68 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
190190
+ "page_token\030\003 \001(\t\"z\n\035ListTranscriptEntrie"
191191
+ "sResponse\022@\n\022transcript_entries\030\001 \003(\0132$."
192192
+ "google.apps.meet.v2.TranscriptEntry\022\027\n\017n"
193-
+ "ext_page_token\030\002 \001(\t2\277\004\n\rSpacesService\022u"
193+
+ "ext_page_token\030\002 \001(\t2\261\005\n\rSpacesService\022u"
194194
+ "\n\013CreateSpace\022\'.google.apps.meet.v2.Crea"
195195
+ "teSpaceRequest\032\032.google.apps.meet.v2.Spa"
196196
+ "ce\"!\332A\005space\202\323\344\223\002\023\"\n/v2/spaces:\005space\022p\n"
@@ -204,66 +204,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
204204
+ "ce\022/.google.apps.meet.v2.EndActiveConfer"
205205
+ "enceRequest\032\026.google.protobuf.Empty\"9\332A\004"
206206
+ "name\202\323\344\223\002,\"\'/v2/{name=spaces/*}:endActiv"
207-
+ "eConference:\001*\032\026\312A\023meet.googleapis.com2\361"
208-
+ "\020\n\030ConferenceRecordsService\022\234\001\n\023GetConfe"
209-
+ "renceRecord\022/.google.apps.meet.v2.GetCon"
210-
+ "ferenceRecordRequest\032%.google.apps.meet."
211-
+ "v2.ConferenceRecord\"-\332A\004name\202\323\344\223\002 \022\036/v2/"
212-
+ "{name=conferenceRecords/*}\022\235\001\n\025ListConfe"
213-
+ "renceRecords\0221.google.apps.meet.v2.ListC"
214-
+ "onferenceRecordsRequest\0322.google.apps.me"
215-
+ "et.v2.ListConferenceRecordsResponse\"\035\202\323\344"
216-
+ "\223\002\027\022\025/v2/conferenceRecords\022\234\001\n\016GetPartic"
217-
+ "ipant\022*.google.apps.meet.v2.GetParticipa"
218-
+ "ntRequest\032 .google.apps.meet.v2.Particip"
219-
+ "ant\"<\332A\004name\202\323\344\223\002/\022-/v2/{name=conference"
220-
+ "Records/*/participants/*}\022\257\001\n\020ListPartic"
221-
+ "ipants\022,.google.apps.meet.v2.ListPartici"
222-
+ "pantsRequest\032-.google.apps.meet.v2.ListP"
223-
+ "articipantsResponse\">\332A\006parent\202\323\344\223\002/\022-/v"
224-
+ "2/{parent=conferenceRecords/*}/participa"
225-
+ "nts\022\307\001\n\025GetParticipantSession\0221.google.a"
226-
+ "pps.meet.v2.GetParticipantSessionRequest"
227-
+ "\032\'.google.apps.meet.v2.ParticipantSessio"
228-
+ "n\"R\332A\004name\202\323\344\223\002E\022C/v2/{name=conferenceRe"
229-
+ "cords/*/participants/*/participantSessio"
230-
+ "ns/*}\022\332\001\n\027ListParticipantSessions\0223.goog"
231-
+ "le.apps.meet.v2.ListParticipantSessionsR"
232-
+ "equest\0324.google.apps.meet.v2.ListPartici"
233-
+ "pantSessionsResponse\"T\332A\006parent\202\323\344\223\002E\022C/"
234-
+ "v2/{parent=conferenceRecords/*/participa"
235-
+ "nts/*}/participantSessions\022\224\001\n\014GetRecord"
236-
+ "ing\022(.google.apps.meet.v2.GetRecordingRe"
237-
+ "quest\032\036.google.apps.meet.v2.Recording\":\332"
238-
+ "A\004name\202\323\344\223\002-\022+/v2/{name=conferenceRecord"
239-
+ "s/*/recordings/*}\022\247\001\n\016ListRecordings\022*.g"
240-
+ "oogle.apps.meet.v2.ListRecordingsRequest"
241-
+ "\032+.google.apps.meet.v2.ListRecordingsRes"
242-
+ "ponse\"<\332A\006parent\202\323\344\223\002-\022+/v2/{parent=conf"
243-
+ "erenceRecords/*}/recordings\022\230\001\n\rGetTrans"
244-
+ "cript\022).google.apps.meet.v2.GetTranscrip"
245-
+ "tRequest\032\037.google.apps.meet.v2.Transcrip"
246-
+ "t\";\332A\004name\202\323\344\223\002.\022,/v2/{name=conferenceRe"
247-
+ "cords/*/transcripts/*}\022\253\001\n\017ListTranscrip"
248-
+ "ts\022+.google.apps.meet.v2.ListTranscripts"
249-
+ "Request\032,.google.apps.meet.v2.ListTransc"
250-
+ "riptsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/{par"
251-
+ "ent=conferenceRecords/*}/transcripts\022\261\001\n"
252-
+ "\022GetTranscriptEntry\022..google.apps.meet.v"
253-
+ "2.GetTranscriptEntryRequest\032$.google.app"
254-
+ "s.meet.v2.TranscriptEntry\"E\332A\004name\202\323\344\223\0028"
255-
+ "\0226/v2/{name=conferenceRecords/*/transcri"
256-
+ "pts/*/entries/*}\022\307\001\n\025ListTranscriptEntri"
257-
+ "es\0221.google.apps.meet.v2.ListTranscriptE"
258-
+ "ntriesRequest\0322.google.apps.meet.v2.List"
259-
+ "TranscriptEntriesResponse\"G\332A\006parent\202\323\344\223"
260-
+ "\0028\0226/v2/{parent=conferenceRecords/*/tran"
261-
+ "scripts/*}/entries\032\026\312A\023meet.googleapis.c"
262-
+ "omB\241\001\n\027com.google.apps.meet.v2B\014ServiceP"
263-
+ "rotoP\001Z1cloud.google.com/go/apps/meet/ap"
264-
+ "iv2/meetpb;meetpb\252\002\023Google.Apps.Meet.V2\312"
265-
+ "\002\023Google\\Apps\\Meet\\V2\352\002\026Google::Apps::Me"
266-
+ "et::V2b\006proto3"
207+
+ "eConference:\001*\032\207\001\312A\023meet.googleapis.com\322"
208+
+ "Anhttps://www.googleapis.com/auth/meetin"
209+
+ "gs.space.created,https://www.googleapis."
210+
+ "com/auth/meetings.space.readonly2\343\021\n\030Con"
211+
+ "ferenceRecordsService\022\234\001\n\023GetConferenceR"
212+
+ "ecord\022/.google.apps.meet.v2.GetConferenc"
213+
+ "eRecordRequest\032%.google.apps.meet.v2.Con"
214+
+ "ferenceRecord\"-\332A\004name\202\323\344\223\002 \022\036/v2/{name="
215+
+ "conferenceRecords/*}\022\235\001\n\025ListConferenceR"
216+
+ "ecords\0221.google.apps.meet.v2.ListConfere"
217+
+ "nceRecordsRequest\0322.google.apps.meet.v2."
218+
+ "ListConferenceRecordsResponse\"\035\202\323\344\223\002\027\022\025/"
219+
+ "v2/conferenceRecords\022\234\001\n\016GetParticipant\022"
220+
+ "*.google.apps.meet.v2.GetParticipantRequ"
221+
+ "est\032 .google.apps.meet.v2.Participant\"<\332"
222+
+ "A\004name\202\323\344\223\002/\022-/v2/{name=conferenceRecord"
223+
+ "s/*/participants/*}\022\257\001\n\020ListParticipants"
224+
+ "\022,.google.apps.meet.v2.ListParticipantsR"
225+
+ "equest\032-.google.apps.meet.v2.ListPartici"
226+
+ "pantsResponse\">\332A\006parent\202\323\344\223\002/\022-/v2/{par"
227+
+ "ent=conferenceRecords/*}/participants\022\307\001"
228+
+ "\n\025GetParticipantSession\0221.google.apps.me"
229+
+ "et.v2.GetParticipantSessionRequest\032\'.goo"
230+
+ "gle.apps.meet.v2.ParticipantSession\"R\332A\004"
231+
+ "name\202\323\344\223\002E\022C/v2/{name=conferenceRecords/"
232+
+ "*/participants/*/participantSessions/*}\022"
233+
+ "\332\001\n\027ListParticipantSessions\0223.google.app"
234+
+ "s.meet.v2.ListParticipantSessionsRequest"
235+
+ "\0324.google.apps.meet.v2.ListParticipantSe"
236+
+ "ssionsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v2/{pa"
237+
+ "rent=conferenceRecords/*/participants/*}"
238+
+ "/participantSessions\022\224\001\n\014GetRecording\022(."
239+
+ "google.apps.meet.v2.GetRecordingRequest\032"
240+
+ "\036.google.apps.meet.v2.Recording\":\332A\004name"
241+
+ "\202\323\344\223\002-\022+/v2/{name=conferenceRecords/*/re"
242+
+ "cordings/*}\022\247\001\n\016ListRecordings\022*.google."
243+
+ "apps.meet.v2.ListRecordingsRequest\032+.goo"
244+
+ "gle.apps.meet.v2.ListRecordingsResponse\""
245+
+ "<\332A\006parent\202\323\344\223\002-\022+/v2/{parent=conference"
246+
+ "Records/*}/recordings\022\230\001\n\rGetTranscript\022"
247+
+ ").google.apps.meet.v2.GetTranscriptReque"
248+
+ "st\032\037.google.apps.meet.v2.Transcript\";\332A\004"
249+
+ "name\202\323\344\223\002.\022,/v2/{name=conferenceRecords/"
250+
+ "*/transcripts/*}\022\253\001\n\017ListTranscripts\022+.g"
251+
+ "oogle.apps.meet.v2.ListTranscriptsReques"
252+
+ "t\032,.google.apps.meet.v2.ListTranscriptsR"
253+
+ "esponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/{parent=co"
254+
+ "nferenceRecords/*}/transcripts\022\261\001\n\022GetTr"
255+
+ "anscriptEntry\022..google.apps.meet.v2.GetT"
256+
+ "ranscriptEntryRequest\032$.google.apps.meet"
257+
+ ".v2.TranscriptEntry\"E\332A\004name\202\323\344\223\0028\0226/v2/"
258+
+ "{name=conferenceRecords/*/transcripts/*/"
259+
+ "entries/*}\022\307\001\n\025ListTranscriptEntries\0221.g"
260+
+ "oogle.apps.meet.v2.ListTranscriptEntries"
261+
+ "Request\0322.google.apps.meet.v2.ListTransc"
262+
+ "riptEntriesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v"
263+
+ "2/{parent=conferenceRecords/*/transcript"
264+
+ "s/*}/entries\032\207\001\312A\023meet.googleapis.com\322An"
265+
+ "https://www.googleapis.com/auth/meetings"
266+
+ ".space.created,https://www.googleapis.co"
267+
+ "m/auth/meetings.space.readonlyB\241\001\n\027com.g"
268+
+ "oogle.apps.meet.v2B\014ServiceProtoP\001Z1clou"
269+
+ "d.google.com/go/apps/meet/apiv2/meetpb;m"
270+
+ "eetpb\252\002\023Google.Apps.Meet.V2\312\002\023Google\\App"
271+
+ "s\\Meet\\V2\352\002\026Google::Apps::Meet::V2b\006prot"
272+
+ "o3"
267273
};
268274
descriptor =
269275
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -459,6 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
459465
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
460466
registry.add(com.google.api.AnnotationsProto.http);
461467
registry.add(com.google.api.ClientProto.methodSignature);
468+
registry.add(com.google.api.ClientProto.oauthScopes);
462469
registry.add(com.google.api.ResourceProto.resourceReference);
463470
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
464471
descriptor, registry);

java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ option ruby_package = "Google::Apps::Meet::V2";
3535
// REST API for services dealing with spaces.
3636
service SpacesService {
3737
option (google.api.default_host) = "meet.googleapis.com";
38+
option (google.api.oauth_scopes) =
39+
"https://www.googleapis.com/auth/meetings.space.created,"
40+
"https://www.googleapis.com/auth/meetings.space.readonly";
3841

3942
// Creates a space.
4043
rpc CreateSpace(CreateSpaceRequest) returns (Space) {
@@ -76,6 +79,9 @@ service SpacesService {
7679
// REST API for services dealing with conference records.
7780
service ConferenceRecordsService {
7881
option (google.api.default_host) = "meet.googleapis.com";
82+
option (google.api.oauth_scopes) =
83+
"https://www.googleapis.com/auth/meetings.space.created,"
84+
"https://www.googleapis.com/auth/meetings.space.readonly";
7985

8086
// Gets a conference record by conference ID.
8187
rpc GetConferenceRecord(GetConferenceRecordRequest)

0 commit comments

Comments
 (0)