[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> Coordinate.php (source)

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1