1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Meet\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Meet\ListParticipantSessionsResponse;
|
---|
21 | use Google\Service\Meet\ParticipantSession;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "participantSessions" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $meetService = new Google\Service\Meet(...);
|
---|
28 | * $participantSessions = $meetService->conferenceRecords_participants_participantSessions;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class ConferenceRecordsParticipantsParticipantSessions extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Gets a participant session by participant session ID.
|
---|
35 | * (participantSessions.get)
|
---|
36 | *
|
---|
37 | * @param string $name Required. Resource name of the participant.
|
---|
38 | * @param array $optParams Optional parameters.
|
---|
39 | * @return ParticipantSession
|
---|
40 | * @throws \Google\Service\Exception
|
---|
41 | */
|
---|
42 | public function get($name, $optParams = [])
|
---|
43 | {
|
---|
44 | $params = ['name' => $name];
|
---|
45 | $params = array_merge($params, $optParams);
|
---|
46 | return $this->call('get', [$params], ParticipantSession::class);
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * Lists the participant sessions of a participant in a conference record. By
|
---|
50 | * default, ordered by join time and in descending order. This API supports
|
---|
51 | * `fields` as standard parameters like every other API. However, when the
|
---|
52 | * `fields` request parameter is omitted this API defaults to
|
---|
53 | * `'participantsessions, next_page_token'`.
|
---|
54 | * (participantSessions.listConferenceRecordsParticipantsParticipantSessions)
|
---|
55 | *
|
---|
56 | * @param string $parent Required. Format:
|
---|
57 | * `conferenceRecords/{conference_record}/participants/{participant}`
|
---|
58 | * @param array $optParams Optional parameters.
|
---|
59 | *
|
---|
60 | * @opt_param string filter Optional. User specified filtering condition in
|
---|
61 | * [EBNF
|
---|
62 | * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). The
|
---|
63 | * following are the filterable fields: * `start_time` * `end_time` For example,
|
---|
64 | * `end_time IS NULL` returns active participant sessions in the conference
|
---|
65 | * record.
|
---|
66 | * @opt_param int pageSize Optional. Maximum number of participant sessions to
|
---|
67 | * return. The service might return fewer than this value. If unspecified, at
|
---|
68 | * most 100 participants are returned. The maximum value is 250; values above
|
---|
69 | * 250 are coerced to 250. Maximum might change in the future.
|
---|
70 | * @opt_param string pageToken Optional. Page token returned from previous List
|
---|
71 | * Call.
|
---|
72 | * @return ListParticipantSessionsResponse
|
---|
73 | * @throws \Google\Service\Exception
|
---|
74 | */
|
---|
75 | public function listConferenceRecordsParticipantsParticipantSessions($parent, $optParams = [])
|
---|
76 | {
|
---|
77 | $params = ['parent' => $parent];
|
---|
78 | $params = array_merge($params, $optParams);
|
---|
79 | return $this->call('list', [$params], ListParticipantSessionsResponse::class);
|
---|
80 | }
|
---|
81 | }
|
---|
82 |
|
---|
83 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
84 | class_alias(ConferenceRecordsParticipantsParticipantSessions::class, 'Google_Service_Meet_Resource_ConferenceRecordsParticipantsParticipantSessions');
|
---|