[f9c482b] | 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;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for Meet (v2).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Create and manage meetings in Google Meet.</p>
|
---|
| 27 | *
|
---|
| 28 | * <p>
|
---|
| 29 | * For more information about this service, see the API
|
---|
| 30 | * <a href="https://developers.google.com/meet/api" target="_blank">Documentation</a>
|
---|
| 31 | * </p>
|
---|
| 32 | *
|
---|
| 33 | * @author Google, Inc.
|
---|
| 34 | */
|
---|
| 35 | class Meet extends \Google\Service
|
---|
| 36 | {
|
---|
| 37 | /** Create, edit, and see information about your Google Meet conferences created by the app.. */
|
---|
| 38 | const MEETINGS_SPACE_CREATED =
|
---|
| 39 | "https://www.googleapis.com/auth/meetings.space.created";
|
---|
| 40 | /** Read information about any of your Google Meet conferences. */
|
---|
| 41 | const MEETINGS_SPACE_READONLY =
|
---|
| 42 | "https://www.googleapis.com/auth/meetings.space.readonly";
|
---|
| 43 |
|
---|
| 44 | public $conferenceRecords;
|
---|
| 45 | public $conferenceRecords_participants;
|
---|
| 46 | public $conferenceRecords_participants_participantSessions;
|
---|
| 47 | public $conferenceRecords_recordings;
|
---|
| 48 | public $conferenceRecords_transcripts;
|
---|
| 49 | public $conferenceRecords_transcripts_entries;
|
---|
| 50 | public $spaces;
|
---|
| 51 | public $rootUrlTemplate;
|
---|
| 52 |
|
---|
| 53 | /**
|
---|
| 54 | * Constructs the internal representation of the Meet service.
|
---|
| 55 | *
|
---|
| 56 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 57 | * config array to pass to a new Client instance.
|
---|
| 58 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 59 | */
|
---|
| 60 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 61 | {
|
---|
| 62 | parent::__construct($clientOrConfig);
|
---|
| 63 | $this->rootUrl = $rootUrl ?: 'https://meet.googleapis.com/';
|
---|
| 64 | $this->rootUrlTemplate = $rootUrl ?: 'https://meet.UNIVERSE_DOMAIN/';
|
---|
| 65 | $this->servicePath = '';
|
---|
| 66 | $this->batchPath = 'batch';
|
---|
| 67 | $this->version = 'v2';
|
---|
| 68 | $this->serviceName = 'meet';
|
---|
| 69 |
|
---|
| 70 | $this->conferenceRecords = new Meet\Resource\ConferenceRecords(
|
---|
| 71 | $this,
|
---|
| 72 | $this->serviceName,
|
---|
| 73 | 'conferenceRecords',
|
---|
| 74 | [
|
---|
| 75 | 'methods' => [
|
---|
| 76 | 'get' => [
|
---|
| 77 | 'path' => 'v2/{+name}',
|
---|
| 78 | 'httpMethod' => 'GET',
|
---|
| 79 | 'parameters' => [
|
---|
| 80 | 'name' => [
|
---|
| 81 | 'location' => 'path',
|
---|
| 82 | 'type' => 'string',
|
---|
| 83 | 'required' => true,
|
---|
| 84 | ],
|
---|
| 85 | ],
|
---|
| 86 | ],'list' => [
|
---|
| 87 | 'path' => 'v2/conferenceRecords',
|
---|
| 88 | 'httpMethod' => 'GET',
|
---|
| 89 | 'parameters' => [
|
---|
| 90 | 'filter' => [
|
---|
| 91 | 'location' => 'query',
|
---|
| 92 | 'type' => 'string',
|
---|
| 93 | ],
|
---|
| 94 | 'pageSize' => [
|
---|
| 95 | 'location' => 'query',
|
---|
| 96 | 'type' => 'integer',
|
---|
| 97 | ],
|
---|
| 98 | 'pageToken' => [
|
---|
| 99 | 'location' => 'query',
|
---|
| 100 | 'type' => 'string',
|
---|
| 101 | ],
|
---|
| 102 | ],
|
---|
| 103 | ],
|
---|
| 104 | ]
|
---|
| 105 | ]
|
---|
| 106 | );
|
---|
| 107 | $this->conferenceRecords_participants = new Meet\Resource\ConferenceRecordsParticipants(
|
---|
| 108 | $this,
|
---|
| 109 | $this->serviceName,
|
---|
| 110 | 'participants',
|
---|
| 111 | [
|
---|
| 112 | 'methods' => [
|
---|
| 113 | 'get' => [
|
---|
| 114 | 'path' => 'v2/{+name}',
|
---|
| 115 | 'httpMethod' => 'GET',
|
---|
| 116 | 'parameters' => [
|
---|
| 117 | 'name' => [
|
---|
| 118 | 'location' => 'path',
|
---|
| 119 | 'type' => 'string',
|
---|
| 120 | 'required' => true,
|
---|
| 121 | ],
|
---|
| 122 | ],
|
---|
| 123 | ],'list' => [
|
---|
| 124 | 'path' => 'v2/{+parent}/participants',
|
---|
| 125 | 'httpMethod' => 'GET',
|
---|
| 126 | 'parameters' => [
|
---|
| 127 | 'parent' => [
|
---|
| 128 | 'location' => 'path',
|
---|
| 129 | 'type' => 'string',
|
---|
| 130 | 'required' => true,
|
---|
| 131 | ],
|
---|
| 132 | 'filter' => [
|
---|
| 133 | 'location' => 'query',
|
---|
| 134 | 'type' => 'string',
|
---|
| 135 | ],
|
---|
| 136 | 'pageSize' => [
|
---|
| 137 | 'location' => 'query',
|
---|
| 138 | 'type' => 'integer',
|
---|
| 139 | ],
|
---|
| 140 | 'pageToken' => [
|
---|
| 141 | 'location' => 'query',
|
---|
| 142 | 'type' => 'string',
|
---|
| 143 | ],
|
---|
| 144 | ],
|
---|
| 145 | ],
|
---|
| 146 | ]
|
---|
| 147 | ]
|
---|
| 148 | );
|
---|
| 149 | $this->conferenceRecords_participants_participantSessions = new Meet\Resource\ConferenceRecordsParticipantsParticipantSessions(
|
---|
| 150 | $this,
|
---|
| 151 | $this->serviceName,
|
---|
| 152 | 'participantSessions',
|
---|
| 153 | [
|
---|
| 154 | 'methods' => [
|
---|
| 155 | 'get' => [
|
---|
| 156 | 'path' => 'v2/{+name}',
|
---|
| 157 | 'httpMethod' => 'GET',
|
---|
| 158 | 'parameters' => [
|
---|
| 159 | 'name' => [
|
---|
| 160 | 'location' => 'path',
|
---|
| 161 | 'type' => 'string',
|
---|
| 162 | 'required' => true,
|
---|
| 163 | ],
|
---|
| 164 | ],
|
---|
| 165 | ],'list' => [
|
---|
| 166 | 'path' => 'v2/{+parent}/participantSessions',
|
---|
| 167 | 'httpMethod' => 'GET',
|
---|
| 168 | 'parameters' => [
|
---|
| 169 | 'parent' => [
|
---|
| 170 | 'location' => 'path',
|
---|
| 171 | 'type' => 'string',
|
---|
| 172 | 'required' => true,
|
---|
| 173 | ],
|
---|
| 174 | 'filter' => [
|
---|
| 175 | 'location' => 'query',
|
---|
| 176 | 'type' => 'string',
|
---|
| 177 | ],
|
---|
| 178 | 'pageSize' => [
|
---|
| 179 | 'location' => 'query',
|
---|
| 180 | 'type' => 'integer',
|
---|
| 181 | ],
|
---|
| 182 | 'pageToken' => [
|
---|
| 183 | 'location' => 'query',
|
---|
| 184 | 'type' => 'string',
|
---|
| 185 | ],
|
---|
| 186 | ],
|
---|
| 187 | ],
|
---|
| 188 | ]
|
---|
| 189 | ]
|
---|
| 190 | );
|
---|
| 191 | $this->conferenceRecords_recordings = new Meet\Resource\ConferenceRecordsRecordings(
|
---|
| 192 | $this,
|
---|
| 193 | $this->serviceName,
|
---|
| 194 | 'recordings',
|
---|
| 195 | [
|
---|
| 196 | 'methods' => [
|
---|
| 197 | 'get' => [
|
---|
| 198 | 'path' => 'v2/{+name}',
|
---|
| 199 | 'httpMethod' => 'GET',
|
---|
| 200 | 'parameters' => [
|
---|
| 201 | 'name' => [
|
---|
| 202 | 'location' => 'path',
|
---|
| 203 | 'type' => 'string',
|
---|
| 204 | 'required' => true,
|
---|
| 205 | ],
|
---|
| 206 | ],
|
---|
| 207 | ],'list' => [
|
---|
| 208 | 'path' => 'v2/{+parent}/recordings',
|
---|
| 209 | 'httpMethod' => 'GET',
|
---|
| 210 | 'parameters' => [
|
---|
| 211 | 'parent' => [
|
---|
| 212 | 'location' => 'path',
|
---|
| 213 | 'type' => 'string',
|
---|
| 214 | 'required' => true,
|
---|
| 215 | ],
|
---|
| 216 | 'pageSize' => [
|
---|
| 217 | 'location' => 'query',
|
---|
| 218 | 'type' => 'integer',
|
---|
| 219 | ],
|
---|
| 220 | 'pageToken' => [
|
---|
| 221 | 'location' => 'query',
|
---|
| 222 | 'type' => 'string',
|
---|
| 223 | ],
|
---|
| 224 | ],
|
---|
| 225 | ],
|
---|
| 226 | ]
|
---|
| 227 | ]
|
---|
| 228 | );
|
---|
| 229 | $this->conferenceRecords_transcripts = new Meet\Resource\ConferenceRecordsTranscripts(
|
---|
| 230 | $this,
|
---|
| 231 | $this->serviceName,
|
---|
| 232 | 'transcripts',
|
---|
| 233 | [
|
---|
| 234 | 'methods' => [
|
---|
| 235 | 'get' => [
|
---|
| 236 | 'path' => 'v2/{+name}',
|
---|
| 237 | 'httpMethod' => 'GET',
|
---|
| 238 | 'parameters' => [
|
---|
| 239 | 'name' => [
|
---|
| 240 | 'location' => 'path',
|
---|
| 241 | 'type' => 'string',
|
---|
| 242 | 'required' => true,
|
---|
| 243 | ],
|
---|
| 244 | ],
|
---|
| 245 | ],'list' => [
|
---|
| 246 | 'path' => 'v2/{+parent}/transcripts',
|
---|
| 247 | 'httpMethod' => 'GET',
|
---|
| 248 | 'parameters' => [
|
---|
| 249 | 'parent' => [
|
---|
| 250 | 'location' => 'path',
|
---|
| 251 | 'type' => 'string',
|
---|
| 252 | 'required' => true,
|
---|
| 253 | ],
|
---|
| 254 | 'pageSize' => [
|
---|
| 255 | 'location' => 'query',
|
---|
| 256 | 'type' => 'integer',
|
---|
| 257 | ],
|
---|
| 258 | 'pageToken' => [
|
---|
| 259 | 'location' => 'query',
|
---|
| 260 | 'type' => 'string',
|
---|
| 261 | ],
|
---|
| 262 | ],
|
---|
| 263 | ],
|
---|
| 264 | ]
|
---|
| 265 | ]
|
---|
| 266 | );
|
---|
| 267 | $this->conferenceRecords_transcripts_entries = new Meet\Resource\ConferenceRecordsTranscriptsEntries(
|
---|
| 268 | $this,
|
---|
| 269 | $this->serviceName,
|
---|
| 270 | 'entries',
|
---|
| 271 | [
|
---|
| 272 | 'methods' => [
|
---|
| 273 | 'get' => [
|
---|
| 274 | 'path' => 'v2/{+name}',
|
---|
| 275 | 'httpMethod' => 'GET',
|
---|
| 276 | 'parameters' => [
|
---|
| 277 | 'name' => [
|
---|
| 278 | 'location' => 'path',
|
---|
| 279 | 'type' => 'string',
|
---|
| 280 | 'required' => true,
|
---|
| 281 | ],
|
---|
| 282 | ],
|
---|
| 283 | ],'list' => [
|
---|
| 284 | 'path' => 'v2/{+parent}/entries',
|
---|
| 285 | 'httpMethod' => 'GET',
|
---|
| 286 | 'parameters' => [
|
---|
| 287 | 'parent' => [
|
---|
| 288 | 'location' => 'path',
|
---|
| 289 | 'type' => 'string',
|
---|
| 290 | 'required' => true,
|
---|
| 291 | ],
|
---|
| 292 | 'pageSize' => [
|
---|
| 293 | 'location' => 'query',
|
---|
| 294 | 'type' => 'integer',
|
---|
| 295 | ],
|
---|
| 296 | 'pageToken' => [
|
---|
| 297 | 'location' => 'query',
|
---|
| 298 | 'type' => 'string',
|
---|
| 299 | ],
|
---|
| 300 | ],
|
---|
| 301 | ],
|
---|
| 302 | ]
|
---|
| 303 | ]
|
---|
| 304 | );
|
---|
| 305 | $this->spaces = new Meet\Resource\Spaces(
|
---|
| 306 | $this,
|
---|
| 307 | $this->serviceName,
|
---|
| 308 | 'spaces',
|
---|
| 309 | [
|
---|
| 310 | 'methods' => [
|
---|
| 311 | 'create' => [
|
---|
| 312 | 'path' => 'v2/spaces',
|
---|
| 313 | 'httpMethod' => 'POST',
|
---|
| 314 | 'parameters' => [],
|
---|
| 315 | ],'endActiveConference' => [
|
---|
| 316 | 'path' => 'v2/{+name}:endActiveConference',
|
---|
| 317 | 'httpMethod' => 'POST',
|
---|
| 318 | 'parameters' => [
|
---|
| 319 | 'name' => [
|
---|
| 320 | 'location' => 'path',
|
---|
| 321 | 'type' => 'string',
|
---|
| 322 | 'required' => true,
|
---|
| 323 | ],
|
---|
| 324 | ],
|
---|
| 325 | ],'get' => [
|
---|
| 326 | 'path' => 'v2/{+name}',
|
---|
| 327 | 'httpMethod' => 'GET',
|
---|
| 328 | 'parameters' => [
|
---|
| 329 | 'name' => [
|
---|
| 330 | 'location' => 'path',
|
---|
| 331 | 'type' => 'string',
|
---|
| 332 | 'required' => true,
|
---|
| 333 | ],
|
---|
| 334 | ],
|
---|
| 335 | ],'patch' => [
|
---|
| 336 | 'path' => 'v2/{+name}',
|
---|
| 337 | 'httpMethod' => 'PATCH',
|
---|
| 338 | 'parameters' => [
|
---|
| 339 | 'name' => [
|
---|
| 340 | 'location' => 'path',
|
---|
| 341 | 'type' => 'string',
|
---|
| 342 | 'required' => true,
|
---|
| 343 | ],
|
---|
| 344 | 'updateMask' => [
|
---|
| 345 | 'location' => 'query',
|
---|
| 346 | 'type' => 'string',
|
---|
| 347 | ],
|
---|
| 348 | ],
|
---|
| 349 | ],
|
---|
| 350 | ]
|
---|
| 351 | ]
|
---|
| 352 | );
|
---|
| 353 | }
|
---|
| 354 | }
|
---|
| 355 |
|
---|
| 356 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 357 | class_alias(Meet::class, 'Google_Service_Meet');
|
---|