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