Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]
1 <?php 2 /* 3 * Copyright 2010 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 /** 19 * Service definition for Coordinate (v1). 20 * 21 * <p> 22 * Lets you view and manage jobs in a Coordinate team.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/coordinate/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31 #[AllowDynamicProperties] 32 class Google_Service_Coordinate extends Google_Service 33 { 34 /** View and manage your Google Maps Coordinate jobs. */ 35 const COORDINATE = 36 "https://www.googleapis.com/auth/coordinate"; 37 /** View your Google Coordinate jobs. */ 38 const COORDINATE_READONLY = 39 "https://www.googleapis.com/auth/coordinate.readonly"; 40 41 public $customFieldDef; 42 public $jobs; 43 public $location; 44 public $schedule; 45 public $team; 46 public $worker; 47 48 49 /** 50 * Constructs the internal representation of the Coordinate service. 51 * 52 * @param Google_Client $client 53 */ 54 public function __construct(Google_Client $client) 55 { 56 parent::__construct($client); 57 $this->rootUrl = 'https://www.googleapis.com/'; 58 $this->servicePath = 'coordinate/v1/'; 59 $this->version = 'v1'; 60 $this->serviceName = 'coordinate'; 61 62 $this->customFieldDef = new Google_Service_Coordinate_CustomFieldDef_Resource( 63 $this, 64 $this->serviceName, 65 'customFieldDef', 66 array( 67 'methods' => array( 68 'list' => array( 69 'path' => 'teams/{teamId}/custom_fields', 70 'httpMethod' => 'GET', 71 'parameters' => array( 72 'teamId' => array( 73 'location' => 'path', 74 'type' => 'string', 75 'required' => true, 76 ), 77 ), 78 ), 79 ) 80 ) 81 ); 82 $this->jobs = new Google_Service_Coordinate_Jobs_Resource( 83 $this, 84 $this->serviceName, 85 'jobs', 86 array( 87 'methods' => array( 88 'get' => array( 89 'path' => 'teams/{teamId}/jobs/{jobId}', 90 'httpMethod' => 'GET', 91 'parameters' => array( 92 'teamId' => array( 93 'location' => 'path', 94 'type' => 'string', 95 'required' => true, 96 ), 97 'jobId' => array( 98 'location' => 'path', 99 'type' => 'string', 100 'required' => true, 101 ), 102 ), 103 ),'insert' => array( 104 'path' => 'teams/{teamId}/jobs', 105 'httpMethod' => 'POST', 106 'parameters' => array( 107 'teamId' => array( 108 'location' => 'path', 109 'type' => 'string', 110 'required' => true, 111 ), 112 'address' => array( 113 'location' => 'query', 114 'type' => 'string', 115 'required' => true, 116 ), 117 'lat' => array( 118 'location' => 'query', 119 'type' => 'number', 120 'required' => true, 121 ), 122 'lng' => array( 123 'location' => 'query', 124 'type' => 'number', 125 'required' => true, 126 ), 127 'title' => array( 128 'location' => 'query', 129 'type' => 'string', 130 'required' => true, 131 ), 132 'customerName' => array( 133 'location' => 'query', 134 'type' => 'string', 135 ), 136 'note' => array( 137 'location' => 'query', 138 'type' => 'string', 139 ), 140 'assignee' => array( 141 'location' => 'query', 142 'type' => 'string', 143 ), 144 'customerPhoneNumber' => array( 145 'location' => 'query', 146 'type' => 'string', 147 ), 148 'customField' => array( 149 'location' => 'query', 150 'type' => 'string', 151 'repeated' => true, 152 ), 153 ), 154 ),'list' => array( 155 'path' => 'teams/{teamId}/jobs', 156 'httpMethod' => 'GET', 157 'parameters' => array( 158 'teamId' => array( 159 'location' => 'path', 160 'type' => 'string', 161 'required' => true, 162 ), 163 'minModifiedTimestampMs' => array( 164 'location' => 'query', 165 'type' => 'string', 166 ), 167 'pageToken' => array( 168 'location' => 'query', 169 'type' => 'string', 170 ), 171 'maxResults' => array( 172 'location' => 'query', 173 'type' => 'integer', 174 ), 175 'omitJobChanges' => array( 176 'location' => 'query', 177 'type' => 'boolean', 178 ), 179 ), 180 ),'patch' => array( 181 'path' => 'teams/{teamId}/jobs/{jobId}', 182 'httpMethod' => 'PATCH', 183 'parameters' => array( 184 'teamId' => array( 185 'location' => 'path', 186 'type' => 'string', 187 'required' => true, 188 ), 189 'jobId' => array( 190 'location' => 'path', 191 'type' => 'string', 192 'required' => true, 193 ), 194 'customerName' => array( 195 'location' => 'query', 196 'type' => 'string', 197 ), 198 'title' => array( 199 'location' => 'query', 200 'type' => 'string', 201 ), 202 'note' => array( 203 'location' => 'query', 204 'type' => 'string', 205 ), 206 'assignee' => array( 207 'location' => 'query', 208 'type' => 'string', 209 ), 210 'customerPhoneNumber' => array( 211 'location' => 'query', 212 'type' => 'string', 213 ), 214 'address' => array( 215 'location' => 'query', 216 'type' => 'string', 217 ), 218 'lat' => array( 219 'location' => 'query', 220 'type' => 'number', 221 ), 222 'progress' => array( 223 'location' => 'query', 224 'type' => 'string', 225 ), 226 'lng' => array( 227 'location' => 'query', 228 'type' => 'number', 229 ), 230 'customField' => array( 231 'location' => 'query', 232 'type' => 'string', 233 'repeated' => true, 234 ), 235 ), 236 ),'update' => array( 237 'path' => 'teams/{teamId}/jobs/{jobId}', 238 'httpMethod' => 'PUT', 239 'parameters' => array( 240 'teamId' => array( 241 'location' => 'path', 242 'type' => 'string', 243 'required' => true, 244 ), 245 'jobId' => array( 246 'location' => 'path', 247 'type' => 'string', 248 'required' => true, 249 ), 250 'customerName' => array( 251 'location' => 'query', 252 'type' => 'string', 253 ), 254 'title' => array( 255 'location' => 'query', 256 'type' => 'string', 257 ), 258 'note' => array( 259 'location' => 'query', 260 'type' => 'string', 261 ), 262 'assignee' => array( 263 'location' => 'query', 264 'type' => 'string', 265 ), 266 'customerPhoneNumber' => array( 267 'location' => 'query', 268 'type' => 'string', 269 ), 270 'address' => array( 271 'location' => 'query', 272 'type' => 'string', 273 ), 274 'lat' => array( 275 'location' => 'query', 276 'type' => 'number', 277 ), 278 'progress' => array( 279 'location' => 'query', 280 'type' => 'string', 281 ), 282 'lng' => array( 283 'location' => 'query', 284 'type' => 'number', 285 ), 286 'customField' => array( 287 'location' => 'query', 288 'type' => 'string', 289 'repeated' => true, 290 ), 291 ), 292 ), 293 ) 294 ) 295 ); 296 $this->location = new Google_Service_Coordinate_Location_Resource( 297 $this, 298 $this->serviceName, 299 'location', 300 array( 301 'methods' => array( 302 'list' => array( 303 'path' => 'teams/{teamId}/workers/{workerEmail}/locations', 304 'httpMethod' => 'GET', 305 'parameters' => array( 306 'teamId' => array( 307 'location' => 'path', 308 'type' => 'string', 309 'required' => true, 310 ), 311 'workerEmail' => array( 312 'location' => 'path', 313 'type' => 'string', 314 'required' => true, 315 ), 316 'startTimestampMs' => array( 317 'location' => 'query', 318 'type' => 'string', 319 'required' => true, 320 ), 321 'pageToken' => array( 322 'location' => 'query', 323 'type' => 'string', 324 ), 325 'maxResults' => array( 326 'location' => 'query', 327 'type' => 'integer', 328 ), 329 ), 330 ), 331 ) 332 ) 333 ); 334 $this->schedule = new Google_Service_Coordinate_Schedule_Resource( 335 $this, 336 $this->serviceName, 337 'schedule', 338 array( 339 'methods' => array( 340 'get' => array( 341 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 342 'httpMethod' => 'GET', 343 'parameters' => array( 344 'teamId' => array( 345 'location' => 'path', 346 'type' => 'string', 347 'required' => true, 348 ), 349 'jobId' => array( 350 'location' => 'path', 351 'type' => 'string', 352 'required' => true, 353 ), 354 ), 355 ),'patch' => array( 356 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 357 'httpMethod' => 'PATCH', 358 'parameters' => array( 359 'teamId' => array( 360 'location' => 'path', 361 'type' => 'string', 362 'required' => true, 363 ), 364 'jobId' => array( 365 'location' => 'path', 366 'type' => 'string', 367 'required' => true, 368 ), 369 'allDay' => array( 370 'location' => 'query', 371 'type' => 'boolean', 372 ), 373 'startTime' => array( 374 'location' => 'query', 375 'type' => 'string', 376 ), 377 'duration' => array( 378 'location' => 'query', 379 'type' => 'string', 380 ), 381 'endTime' => array( 382 'location' => 'query', 383 'type' => 'string', 384 ), 385 ), 386 ),'update' => array( 387 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 388 'httpMethod' => 'PUT', 389 'parameters' => array( 390 'teamId' => array( 391 'location' => 'path', 392 'type' => 'string', 393 'required' => true, 394 ), 395 'jobId' => array( 396 'location' => 'path', 397 'type' => 'string', 398 'required' => true, 399 ), 400 'allDay' => array( 401 'location' => 'query', 402 'type' => 'boolean', 403 ), 404 'startTime' => array( 405 'location' => 'query', 406 'type' => 'string', 407 ), 408 'duration' => array( 409 'location' => 'query', 410 'type' => 'string', 411 ), 412 'endTime' => array( 413 'location' => 'query', 414 'type' => 'string', 415 ), 416 ), 417 ), 418 ) 419 ) 420 ); 421 $this->team = new Google_Service_Coordinate_Team_Resource( 422 $this, 423 $this->serviceName, 424 'team', 425 array( 426 'methods' => array( 427 'list' => array( 428 'path' => 'teams', 429 'httpMethod' => 'GET', 430 'parameters' => array( 431 'admin' => array( 432 'location' => 'query', 433 'type' => 'boolean', 434 ), 435 'worker' => array( 436 'location' => 'query', 437 'type' => 'boolean', 438 ), 439 'dispatcher' => array( 440 'location' => 'query', 441 'type' => 'boolean', 442 ), 443 ), 444 ), 445 ) 446 ) 447 ); 448 $this->worker = new Google_Service_Coordinate_Worker_Resource( 449 $this, 450 $this->serviceName, 451 'worker', 452 array( 453 'methods' => array( 454 'list' => array( 455 'path' => 'teams/{teamId}/workers', 456 'httpMethod' => 'GET', 457 'parameters' => array( 458 'teamId' => array( 459 'location' => 'path', 460 'type' => 'string', 461 'required' => true, 462 ), 463 ), 464 ), 465 ) 466 ) 467 ); 468 } 469 } 470 471 472 /** 473 * The "customFieldDef" collection of methods. 474 * Typical usage is: 475 * <code> 476 * $coordinateService = new Google_Service_Coordinate(...); 477 * $customFieldDef = $coordinateService->customFieldDef; 478 * </code> 479 */ 480 #[AllowDynamicProperties] 481 class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_Resource 482 { 483 484 /** 485 * Retrieves a list of custom field definitions for a team. 486 * (customFieldDef.listCustomFieldDef) 487 * 488 * @param string $teamId Team ID 489 * @param array $optParams Optional parameters. 490 * @return Google_Service_Coordinate_CustomFieldDefListResponse 491 */ 492 public function listCustomFieldDef($teamId, $optParams = array()) 493 { 494 $params = array('teamId' => $teamId); 495 $params = array_merge($params, $optParams); 496 return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse"); 497 } 498 } 499 500 /** 501 * The "jobs" collection of methods. 502 * Typical usage is: 503 * <code> 504 * $coordinateService = new Google_Service_Coordinate(...); 505 * $jobs = $coordinateService->jobs; 506 * </code> 507 */ 508 #[AllowDynamicProperties] 509 class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource 510 { 511 512 /** 513 * Retrieves a job, including all the changes made to the job. (jobs.get) 514 * 515 * @param string $teamId Team ID 516 * @param string $jobId Job number 517 * @param array $optParams Optional parameters. 518 * @return Google_Service_Coordinate_Job 519 */ 520 public function get($teamId, $jobId, $optParams = array()) 521 { 522 $params = array('teamId' => $teamId, 'jobId' => $jobId); 523 $params = array_merge($params, $optParams); 524 return $this->call('get', array($params), "Google_Service_Coordinate_Job"); 525 } 526 527 /** 528 * Inserts a new job. Only the state field of the job should be set. 529 * (jobs.insert) 530 * 531 * @param string $teamId Team ID 532 * @param string $address Job address as newline (Unix) separated string 533 * @param double $lat The latitude coordinate of this job's location. 534 * @param double $lng The longitude coordinate of this job's location. 535 * @param string $title Job title 536 * @param Google_Job $postBody 537 * @param array $optParams Optional parameters. 538 * 539 * @opt_param string customerName Customer name 540 * @opt_param string note Job note as newline (Unix) separated string 541 * @opt_param string assignee Assignee email address, or empty string to 542 * unassign. 543 * @opt_param string customerPhoneNumber Customer phone number 544 * @opt_param string customField Sets the value of custom fields. To set a 545 * custom field, pass the field id (from /team/teamId/custom_fields), a URL 546 * escaped '=' character, and the desired value as a parameter. For example, 547 * customField=12%3DAlice. Repeat the parameter for each custom field. Note that 548 * '=' cannot appear in the parameter value. Specifying an invalid, or inactive 549 * enum field will result in an error 500. 550 * @return Google_Service_Coordinate_Job 551 */ 552 public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) 553 { 554 $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody); 555 $params = array_merge($params, $optParams); 556 return $this->call('insert', array($params), "Google_Service_Coordinate_Job"); 557 } 558 559 /** 560 * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs) 561 * 562 * @param string $teamId Team ID 563 * @param array $optParams Optional parameters. 564 * 565 * @opt_param string minModifiedTimestampMs Minimum time a job was modified in 566 * milliseconds since epoch. 567 * @opt_param string pageToken Continuation token 568 * @opt_param string maxResults Maximum number of results to return in one page. 569 * @opt_param bool omitJobChanges Whether to omit detail job history 570 * information. 571 * @return Google_Service_Coordinate_JobListResponse 572 */ 573 public function listJobs($teamId, $optParams = array()) 574 { 575 $params = array('teamId' => $teamId); 576 $params = array_merge($params, $optParams); 577 return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse"); 578 } 579 580 /** 581 * Updates a job. Fields that are set in the job state will be updated. This 582 * method supports patch semantics. (jobs.patch) 583 * 584 * @param string $teamId Team ID 585 * @param string $jobId Job number 586 * @param Google_Job $postBody 587 * @param array $optParams Optional parameters. 588 * 589 * @opt_param string customerName Customer name 590 * @opt_param string title Job title 591 * @opt_param string note Job note as newline (Unix) separated string 592 * @opt_param string assignee Assignee email address, or empty string to 593 * unassign. 594 * @opt_param string customerPhoneNumber Customer phone number 595 * @opt_param string address Job address as newline (Unix) separated string 596 * @opt_param double lat The latitude coordinate of this job's location. 597 * @opt_param string progress Job progress 598 * @opt_param double lng The longitude coordinate of this job's location. 599 * @opt_param string customField Sets the value of custom fields. To set a 600 * custom field, pass the field id (from /team/teamId/custom_fields), a URL 601 * escaped '=' character, and the desired value as a parameter. For example, 602 * customField=12%3DAlice. Repeat the parameter for each custom field. Note that 603 * '=' cannot appear in the parameter value. Specifying an invalid, or inactive 604 * enum field will result in an error 500. 605 * @return Google_Service_Coordinate_Job 606 */ 607 public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) 608 { 609 $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); 610 $params = array_merge($params, $optParams); 611 return $this->call('patch', array($params), "Google_Service_Coordinate_Job"); 612 } 613 614 /** 615 * Updates a job. Fields that are set in the job state will be updated. 616 * (jobs.update) 617 * 618 * @param string $teamId Team ID 619 * @param string $jobId Job number 620 * @param Google_Job $postBody 621 * @param array $optParams Optional parameters. 622 * 623 * @opt_param string customerName Customer name 624 * @opt_param string title Job title 625 * @opt_param string note Job note as newline (Unix) separated string 626 * @opt_param string assignee Assignee email address, or empty string to 627 * unassign. 628 * @opt_param string customerPhoneNumber Customer phone number 629 * @opt_param string address Job address as newline (Unix) separated string 630 * @opt_param double lat The latitude coordinate of this job's location. 631 * @opt_param string progress Job progress 632 * @opt_param double lng The longitude coordinate of this job's location. 633 * @opt_param string customField Sets the value of custom fields. To set a 634 * custom field, pass the field id (from /team/teamId/custom_fields), a URL 635 * escaped '=' character, and the desired value as a parameter. For example, 636 * customField=12%3DAlice. Repeat the parameter for each custom field. Note that 637 * '=' cannot appear in the parameter value. Specifying an invalid, or inactive 638 * enum field will result in an error 500. 639 * @return Google_Service_Coordinate_Job 640 */ 641 public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) 642 { 643 $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); 644 $params = array_merge($params, $optParams); 645 return $this->call('update', array($params), "Google_Service_Coordinate_Job"); 646 } 647 } 648 649 /** 650 * The "location" collection of methods. 651 * Typical usage is: 652 * <code> 653 * $coordinateService = new Google_Service_Coordinate(...); 654 * $location = $coordinateService->location; 655 * </code> 656 */ 657 #[AllowDynamicProperties] 658 class Google_Service_Coordinate_Location_Resource extends Google_Service_Resource 659 { 660 661 /** 662 * Retrieves a list of locations for a worker. (location.listLocation) 663 * 664 * @param string $teamId Team ID 665 * @param string $workerEmail Worker email address. 666 * @param string $startTimestampMs Start timestamp in milliseconds since the 667 * epoch. 668 * @param array $optParams Optional parameters. 669 * 670 * @opt_param string pageToken Continuation token 671 * @opt_param string maxResults Maximum number of results to return in one page. 672 * @return Google_Service_Coordinate_LocationListResponse 673 */ 674 public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) 675 { 676 $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs); 677 $params = array_merge($params, $optParams); 678 return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse"); 679 } 680 } 681 682 /** 683 * The "schedule" collection of methods. 684 * Typical usage is: 685 * <code> 686 * $coordinateService = new Google_Service_Coordinate(...); 687 * $schedule = $coordinateService->schedule; 688 * </code> 689 */ 690 #[AllowDynamicProperties] 691 class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resource 692 { 693 694 /** 695 * Retrieves the schedule for a job. (schedule.get) 696 * 697 * @param string $teamId Team ID 698 * @param string $jobId Job number 699 * @param array $optParams Optional parameters. 700 * @return Google_Service_Coordinate_Schedule 701 */ 702 public function get($teamId, $jobId, $optParams = array()) 703 { 704 $params = array('teamId' => $teamId, 'jobId' => $jobId); 705 $params = array_merge($params, $optParams); 706 return $this->call('get', array($params), "Google_Service_Coordinate_Schedule"); 707 } 708 709 /** 710 * Replaces the schedule of a job with the provided schedule. This method 711 * supports patch semantics. (schedule.patch) 712 * 713 * @param string $teamId Team ID 714 * @param string $jobId Job number 715 * @param Google_Schedule $postBody 716 * @param array $optParams Optional parameters. 717 * 718 * @opt_param bool allDay Whether the job is scheduled for the whole day. Time 719 * of day in start/end times is ignored if this is true. 720 * @opt_param string startTime Scheduled start time in milliseconds since epoch. 721 * @opt_param string duration Job duration in milliseconds. 722 * @opt_param string endTime Scheduled end time in milliseconds since epoch. 723 * @return Google_Service_Coordinate_Schedule 724 */ 725 public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) 726 { 727 $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); 728 $params = array_merge($params, $optParams); 729 return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule"); 730 } 731 732 /** 733 * Replaces the schedule of a job with the provided schedule. (schedule.update) 734 * 735 * @param string $teamId Team ID 736 * @param string $jobId Job number 737 * @param Google_Schedule $postBody 738 * @param array $optParams Optional parameters. 739 * 740 * @opt_param bool allDay Whether the job is scheduled for the whole day. Time 741 * of day in start/end times is ignored if this is true. 742 * @opt_param string startTime Scheduled start time in milliseconds since epoch. 743 * @opt_param string duration Job duration in milliseconds. 744 * @opt_param string endTime Scheduled end time in milliseconds since epoch. 745 * @return Google_Service_Coordinate_Schedule 746 */ 747 public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) 748 { 749 $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); 750 $params = array_merge($params, $optParams); 751 return $this->call('update', array($params), "Google_Service_Coordinate_Schedule"); 752 } 753 } 754 755 /** 756 * The "team" collection of methods. 757 * Typical usage is: 758 * <code> 759 * $coordinateService = new Google_Service_Coordinate(...); 760 * $team = $coordinateService->team; 761 * </code> 762 */ 763 #[AllowDynamicProperties] 764 class Google_Service_Coordinate_Team_Resource extends Google_Service_Resource 765 { 766 767 /** 768 * Retrieves a list of teams for a user. (team.listTeam) 769 * 770 * @param array $optParams Optional parameters. 771 * 772 * @opt_param bool admin Whether to include teams for which the user has the 773 * Admin role. 774 * @opt_param bool worker Whether to include teams for which the user has the 775 * Worker role. 776 * @opt_param bool dispatcher Whether to include teams for which the user has 777 * the Dispatcher role. 778 * @return Google_Service_Coordinate_TeamListResponse 779 */ 780 public function listTeam($optParams = array()) 781 { 782 $params = array(); 783 $params = array_merge($params, $optParams); 784 return $this->call('list', array($params), "Google_Service_Coordinate_TeamListResponse"); 785 } 786 } 787 788 /** 789 * The "worker" collection of methods. 790 * Typical usage is: 791 * <code> 792 * $coordinateService = new Google_Service_Coordinate(...); 793 * $worker = $coordinateService->worker; 794 * </code> 795 */ 796 #[AllowDynamicProperties] 797 class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource 798 { 799 800 /** 801 * Retrieves a list of workers in a team. (worker.listWorker) 802 * 803 * @param string $teamId Team ID 804 * @param array $optParams Optional parameters. 805 * @return Google_Service_Coordinate_WorkerListResponse 806 */ 807 public function listWorker($teamId, $optParams = array()) 808 { 809 $params = array('teamId' => $teamId); 810 $params = array_merge($params, $optParams); 811 return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse"); 812 } 813 } 814 815 816 817 818 #[AllowDynamicProperties] 819 class Google_Service_Coordinate_CustomField extends Google_Model 820 { 821 protected $internal_gapi_mappings = array( 822 ); 823 public $customFieldId; 824 public $kind; 825 public $value; 826 827 828 public function setCustomFieldId($customFieldId) 829 { 830 $this->customFieldId = $customFieldId; 831 } 832 public function getCustomFieldId() 833 { 834 return $this->customFieldId; 835 } 836 public function setKind($kind) 837 { 838 $this->kind = $kind; 839 } 840 public function getKind() 841 { 842 return $this->kind; 843 } 844 public function setValue($value) 845 { 846 $this->value = $value; 847 } 848 public function getValue() 849 { 850 return $this->value; 851 } 852 } 853 854 #[AllowDynamicProperties] 855 class Google_Service_Coordinate_CustomFieldDef extends Google_Collection 856 { 857 protected $collection_key = 'enumitems'; 858 protected $internal_gapi_mappings = array( 859 ); 860 public $enabled; 861 protected $enumitemsType = 'Google_Service_Coordinate_EnumItemDef'; 862 protected $enumitemsDataType = 'array'; 863 public $id; 864 public $kind; 865 public $name; 866 public $requiredForCheckout; 867 public $type; 868 869 870 public function setEnabled($enabled) 871 { 872 $this->enabled = $enabled; 873 } 874 public function getEnabled() 875 { 876 return $this->enabled; 877 } 878 public function setEnumitems($enumitems) 879 { 880 $this->enumitems = $enumitems; 881 } 882 public function getEnumitems() 883 { 884 return $this->enumitems; 885 } 886 public function setId($id) 887 { 888 $this->id = $id; 889 } 890 public function getId() 891 { 892 return $this->id; 893 } 894 public function setKind($kind) 895 { 896 $this->kind = $kind; 897 } 898 public function getKind() 899 { 900 return $this->kind; 901 } 902 public function setName($name) 903 { 904 $this->name = $name; 905 } 906 public function getName() 907 { 908 return $this->name; 909 } 910 public function setRequiredForCheckout($requiredForCheckout) 911 { 912 $this->requiredForCheckout = $requiredForCheckout; 913 } 914 public function getRequiredForCheckout() 915 { 916 return $this->requiredForCheckout; 917 } 918 public function setType($type) 919 { 920 $this->type = $type; 921 } 922 public function getType() 923 { 924 return $this->type; 925 } 926 } 927 928 #[AllowDynamicProperties] 929 class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection 930 { 931 protected $collection_key = 'items'; 932 protected $internal_gapi_mappings = array( 933 ); 934 protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; 935 protected $itemsDataType = 'array'; 936 public $kind; 937 938 939 public function setItems($items) 940 { 941 $this->items = $items; 942 } 943 public function getItems() 944 { 945 return $this->items; 946 } 947 public function setKind($kind) 948 { 949 $this->kind = $kind; 950 } 951 public function getKind() 952 { 953 return $this->kind; 954 } 955 } 956 957 #[AllowDynamicProperties] 958 class Google_Service_Coordinate_CustomFields extends Google_Collection 959 { 960 protected $collection_key = 'customField'; 961 protected $internal_gapi_mappings = array( 962 ); 963 protected $customFieldType = 'Google_Service_Coordinate_CustomField'; 964 protected $customFieldDataType = 'array'; 965 public $kind; 966 967 968 public function setCustomField($customField) 969 { 970 $this->customField = $customField; 971 } 972 public function getCustomField() 973 { 974 return $this->customField; 975 } 976 public function setKind($kind) 977 { 978 $this->kind = $kind; 979 } 980 public function getKind() 981 { 982 return $this->kind; 983 } 984 } 985 986 #[AllowDynamicProperties] 987 class Google_Service_Coordinate_EnumItemDef extends Google_Model 988 { 989 protected $internal_gapi_mappings = array( 990 ); 991 public $active; 992 public $kind; 993 public $value; 994 995 996 public function setActive($active) 997 { 998 $this->active = $active; 999 } 1000 public function getActive() 1001 { 1002 return $this->active; 1003 } 1004 public function setKind($kind) 1005 { 1006 $this->kind = $kind; 1007 } 1008 public function getKind() 1009 { 1010 return $this->kind; 1011 } 1012 public function setValue($value) 1013 { 1014 $this->value = $value; 1015 } 1016 public function getValue() 1017 { 1018 return $this->value; 1019 } 1020 } 1021 1022 #[AllowDynamicProperties] 1023 class Google_Service_Coordinate_Job extends Google_Collection 1024 { 1025 protected $collection_key = 'jobChange'; 1026 protected $internal_gapi_mappings = array( 1027 ); 1028 public $id; 1029 protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; 1030 protected $jobChangeDataType = 'array'; 1031 public $kind; 1032 protected $stateType = 'Google_Service_Coordinate_JobState'; 1033 protected $stateDataType = ''; 1034 1035 1036 public function setId($id) 1037 { 1038 $this->id = $id; 1039 } 1040 public function getId() 1041 { 1042 return $this->id; 1043 } 1044 public function setJobChange($jobChange) 1045 { 1046 $this->jobChange = $jobChange; 1047 } 1048 public function getJobChange() 1049 { 1050 return $this->jobChange; 1051 } 1052 public function setKind($kind) 1053 { 1054 $this->kind = $kind; 1055 } 1056 public function getKind() 1057 { 1058 return $this->kind; 1059 } 1060 public function setState(Google_Service_Coordinate_JobState $state) 1061 { 1062 $this->state = $state; 1063 } 1064 public function getState() 1065 { 1066 return $this->state; 1067 } 1068 } 1069 1070 #[AllowDynamicProperties] 1071 class Google_Service_Coordinate_JobChange extends Google_Model 1072 { 1073 protected $internal_gapi_mappings = array( 1074 ); 1075 public $kind; 1076 protected $stateType = 'Google_Service_Coordinate_JobState'; 1077 protected $stateDataType = ''; 1078 public $timestamp; 1079 1080 1081 public function setKind($kind) 1082 { 1083 $this->kind = $kind; 1084 } 1085 public function getKind() 1086 { 1087 return $this->kind; 1088 } 1089 public function setState(Google_Service_Coordinate_JobState $state) 1090 { 1091 $this->state = $state; 1092 } 1093 public function getState() 1094 { 1095 return $this->state; 1096 } 1097 public function setTimestamp($timestamp) 1098 { 1099 $this->timestamp = $timestamp; 1100 } 1101 public function getTimestamp() 1102 { 1103 return $this->timestamp; 1104 } 1105 } 1106 1107 #[AllowDynamicProperties] 1108 class Google_Service_Coordinate_JobListResponse extends Google_Collection 1109 { 1110 protected $collection_key = 'items'; 1111 protected $internal_gapi_mappings = array( 1112 ); 1113 protected $itemsType = 'Google_Service_Coordinate_Job'; 1114 protected $itemsDataType = 'array'; 1115 public $kind; 1116 public $nextPageToken; 1117 1118 1119 public function setItems($items) 1120 { 1121 $this->items = $items; 1122 } 1123 public function getItems() 1124 { 1125 return $this->items; 1126 } 1127 public function setKind($kind) 1128 { 1129 $this->kind = $kind; 1130 } 1131 public function getKind() 1132 { 1133 return $this->kind; 1134 } 1135 public function setNextPageToken($nextPageToken) 1136 { 1137 $this->nextPageToken = $nextPageToken; 1138 } 1139 public function getNextPageToken() 1140 { 1141 return $this->nextPageToken; 1142 } 1143 } 1144 1145 #[AllowDynamicProperties] 1146 class Google_Service_Coordinate_JobState extends Google_Collection 1147 { 1148 protected $collection_key = 'note'; 1149 protected $internal_gapi_mappings = array( 1150 ); 1151 public $assignee; 1152 protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; 1153 protected $customFieldsDataType = ''; 1154 public $customerName; 1155 public $customerPhoneNumber; 1156 public $kind; 1157 protected $locationType = 'Google_Service_Coordinate_Location'; 1158 protected $locationDataType = ''; 1159 public $note; 1160 public $progress; 1161 public $title; 1162 1163 1164 public function setAssignee($assignee) 1165 { 1166 $this->assignee = $assignee; 1167 } 1168 public function getAssignee() 1169 { 1170 return $this->assignee; 1171 } 1172 public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields) 1173 { 1174 $this->customFields = $customFields; 1175 } 1176 public function getCustomFields() 1177 { 1178 return $this->customFields; 1179 } 1180 public function setCustomerName($customerName) 1181 { 1182 $this->customerName = $customerName; 1183 } 1184 public function getCustomerName() 1185 { 1186 return $this->customerName; 1187 } 1188 public function setCustomerPhoneNumber($customerPhoneNumber) 1189 { 1190 $this->customerPhoneNumber = $customerPhoneNumber; 1191 } 1192 public function getCustomerPhoneNumber() 1193 { 1194 return $this->customerPhoneNumber; 1195 } 1196 public function setKind($kind) 1197 { 1198 $this->kind = $kind; 1199 } 1200 public function getKind() 1201 { 1202 return $this->kind; 1203 } 1204 public function setLocation(Google_Service_Coordinate_Location $location) 1205 { 1206 $this->location = $location; 1207 } 1208 public function getLocation() 1209 { 1210 return $this->location; 1211 } 1212 public function setNote($note) 1213 { 1214 $this->note = $note; 1215 } 1216 public function getNote() 1217 { 1218 return $this->note; 1219 } 1220 public function setProgress($progress) 1221 { 1222 $this->progress = $progress; 1223 } 1224 public function getProgress() 1225 { 1226 return $this->progress; 1227 } 1228 public function setTitle($title) 1229 { 1230 $this->title = $title; 1231 } 1232 public function getTitle() 1233 { 1234 return $this->title; 1235 } 1236 } 1237 1238 #[AllowDynamicProperties] 1239 class Google_Service_Coordinate_Location extends Google_Collection 1240 { 1241 protected $collection_key = 'addressLine'; 1242 protected $internal_gapi_mappings = array( 1243 ); 1244 public $addressLine; 1245 public $kind; 1246 public $lat; 1247 public $lng; 1248 1249 1250 public function setAddressLine($addressLine) 1251 { 1252 $this->addressLine = $addressLine; 1253 } 1254 public function getAddressLine() 1255 { 1256 return $this->addressLine; 1257 } 1258 public function setKind($kind) 1259 { 1260 $this->kind = $kind; 1261 } 1262 public function getKind() 1263 { 1264 return $this->kind; 1265 } 1266 public function setLat($lat) 1267 { 1268 $this->lat = $lat; 1269 } 1270 public function getLat() 1271 { 1272 return $this->lat; 1273 } 1274 public function setLng($lng) 1275 { 1276 $this->lng = $lng; 1277 } 1278 public function getLng() 1279 { 1280 return $this->lng; 1281 } 1282 } 1283 1284 #[AllowDynamicProperties] 1285 class Google_Service_Coordinate_LocationListResponse extends Google_Collection 1286 { 1287 protected $collection_key = 'items'; 1288 protected $internal_gapi_mappings = array( 1289 ); 1290 protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; 1291 protected $itemsDataType = 'array'; 1292 public $kind; 1293 public $nextPageToken; 1294 protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination'; 1295 protected $tokenPaginationDataType = ''; 1296 1297 1298 public function setItems($items) 1299 { 1300 $this->items = $items; 1301 } 1302 public function getItems() 1303 { 1304 return $this->items; 1305 } 1306 public function setKind($kind) 1307 { 1308 $this->kind = $kind; 1309 } 1310 public function getKind() 1311 { 1312 return $this->kind; 1313 } 1314 public function setNextPageToken($nextPageToken) 1315 { 1316 $this->nextPageToken = $nextPageToken; 1317 } 1318 public function getNextPageToken() 1319 { 1320 return $this->nextPageToken; 1321 } 1322 public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination) 1323 { 1324 $this->tokenPagination = $tokenPagination; 1325 } 1326 public function getTokenPagination() 1327 { 1328 return $this->tokenPagination; 1329 } 1330 } 1331 1332 #[AllowDynamicProperties] 1333 class Google_Service_Coordinate_LocationRecord extends Google_Model 1334 { 1335 protected $internal_gapi_mappings = array( 1336 ); 1337 public $collectionTime; 1338 public $confidenceRadius; 1339 public $kind; 1340 public $latitude; 1341 public $longitude; 1342 1343 1344 public function setCollectionTime($collectionTime) 1345 { 1346 $this->collectionTime = $collectionTime; 1347 } 1348 public function getCollectionTime() 1349 { 1350 return $this->collectionTime; 1351 } 1352 public function setConfidenceRadius($confidenceRadius) 1353 { 1354 $this->confidenceRadius = $confidenceRadius; 1355 } 1356 public function getConfidenceRadius() 1357 { 1358 return $this->confidenceRadius; 1359 } 1360 public function setKind($kind) 1361 { 1362 $this->kind = $kind; 1363 } 1364 public function getKind() 1365 { 1366 return $this->kind; 1367 } 1368 public function setLatitude($latitude) 1369 { 1370 $this->latitude = $latitude; 1371 } 1372 public function getLatitude() 1373 { 1374 return $this->latitude; 1375 } 1376 public function setLongitude($longitude) 1377 { 1378 $this->longitude = $longitude; 1379 } 1380 public function getLongitude() 1381 { 1382 return $this->longitude; 1383 } 1384 } 1385 1386 #[AllowDynamicProperties] 1387 class Google_Service_Coordinate_Schedule extends Google_Model 1388 { 1389 protected $internal_gapi_mappings = array( 1390 ); 1391 public $allDay; 1392 public $duration; 1393 public $endTime; 1394 public $kind; 1395 public $startTime; 1396 1397 1398 public function setAllDay($allDay) 1399 { 1400 $this->allDay = $allDay; 1401 } 1402 public function getAllDay() 1403 { 1404 return $this->allDay; 1405 } 1406 public function setDuration($duration) 1407 { 1408 $this->duration = $duration; 1409 } 1410 public function getDuration() 1411 { 1412 return $this->duration; 1413 } 1414 public function setEndTime($endTime) 1415 { 1416 $this->endTime = $endTime; 1417 } 1418 public function getEndTime() 1419 { 1420 return $this->endTime; 1421 } 1422 public function setKind($kind) 1423 { 1424 $this->kind = $kind; 1425 } 1426 public function getKind() 1427 { 1428 return $this->kind; 1429 } 1430 public function setStartTime($startTime) 1431 { 1432 $this->startTime = $startTime; 1433 } 1434 public function getStartTime() 1435 { 1436 return $this->startTime; 1437 } 1438 } 1439 1440 #[AllowDynamicProperties] 1441 class Google_Service_Coordinate_Team extends Google_Model 1442 { 1443 protected $internal_gapi_mappings = array( 1444 ); 1445 public $id; 1446 public $kind; 1447 public $name; 1448 1449 1450 public function setId($id) 1451 { 1452 $this->id = $id; 1453 } 1454 public function getId() 1455 { 1456 return $this->id; 1457 } 1458 public function setKind($kind) 1459 { 1460 $this->kind = $kind; 1461 } 1462 public function getKind() 1463 { 1464 return $this->kind; 1465 } 1466 public function setName($name) 1467 { 1468 $this->name = $name; 1469 } 1470 public function getName() 1471 { 1472 return $this->name; 1473 } 1474 } 1475 1476 #[AllowDynamicProperties] 1477 class Google_Service_Coordinate_TeamListResponse extends Google_Collection 1478 { 1479 protected $collection_key = 'items'; 1480 protected $internal_gapi_mappings = array( 1481 ); 1482 protected $itemsType = 'Google_Service_Coordinate_Team'; 1483 protected $itemsDataType = 'array'; 1484 public $kind; 1485 1486 1487 public function setItems($items) 1488 { 1489 $this->items = $items; 1490 } 1491 public function getItems() 1492 { 1493 return $this->items; 1494 } 1495 public function setKind($kind) 1496 { 1497 $this->kind = $kind; 1498 } 1499 public function getKind() 1500 { 1501 return $this->kind; 1502 } 1503 } 1504 1505 #[AllowDynamicProperties] 1506 class Google_Service_Coordinate_TokenPagination extends Google_Model 1507 { 1508 protected $internal_gapi_mappings = array( 1509 ); 1510 public $kind; 1511 public $nextPageToken; 1512 public $previousPageToken; 1513 1514 1515 public function setKind($kind) 1516 { 1517 $this->kind = $kind; 1518 } 1519 public function getKind() 1520 { 1521 return $this->kind; 1522 } 1523 public function setNextPageToken($nextPageToken) 1524 { 1525 $this->nextPageToken = $nextPageToken; 1526 } 1527 public function getNextPageToken() 1528 { 1529 return $this->nextPageToken; 1530 } 1531 public function setPreviousPageToken($previousPageToken) 1532 { 1533 $this->previousPageToken = $previousPageToken; 1534 } 1535 public function getPreviousPageToken() 1536 { 1537 return $this->previousPageToken; 1538 } 1539 } 1540 1541 #[AllowDynamicProperties] 1542 class Google_Service_Coordinate_Worker extends Google_Model 1543 { 1544 protected $internal_gapi_mappings = array( 1545 ); 1546 public $id; 1547 public $kind; 1548 1549 1550 public function setId($id) 1551 { 1552 $this->id = $id; 1553 } 1554 public function getId() 1555 { 1556 return $this->id; 1557 } 1558 public function setKind($kind) 1559 { 1560 $this->kind = $kind; 1561 } 1562 public function getKind() 1563 { 1564 return $this->kind; 1565 } 1566 } 1567 1568 #[AllowDynamicProperties] 1569 class Google_Service_Coordinate_WorkerListResponse extends Google_Collection 1570 { 1571 protected $collection_key = 'items'; 1572 protected $internal_gapi_mappings = array( 1573 ); 1574 protected $itemsType = 'Google_Service_Coordinate_Worker'; 1575 protected $itemsDataType = 'array'; 1576 public $kind; 1577 1578 1579 public function setItems($items) 1580 { 1581 $this->items = $items; 1582 } 1583 public function getItems() 1584 { 1585 return $this->items; 1586 } 1587 public function setKind($kind) 1588 { 1589 $this->kind = $kind; 1590 } 1591 public function getKind() 1592 { 1593 return $this->kind; 1594 } 1595 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body