~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/google.golang.org/api/coordinate/v1/coordinate-api.json

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
 "kind": "discovery#restDescription",
 
3
 "etag": "\"FrPV2U6xXFUq8eRv_PO3IoAURkc/ckefd3M0PpbhIY5DVZQuUY4ElY0\"",
 
4
 "discoveryVersion": "v1",
 
5
 "id": "coordinate:v1",
 
6
 "name": "coordinate",
 
7
 "version": "v1",
 
8
 "revision": "20131114",
 
9
 "title": "Google Maps Coordinate API",
 
10
 "description": "Lets you view and manage jobs in a Coordinate team.",
 
11
 "ownerDomain": "google.com",
 
12
 "ownerName": "Google",
 
13
 "icons": {
 
14
  "x16": "http://www.google.com/images/icons/product/search-16.gif",
 
15
  "x32": "http://www.google.com/images/icons/product/search-32.gif"
 
16
 },
 
17
 "documentationLink": "https://developers.google.com/coordinate/",
 
18
 "protocol": "rest",
 
19
 "baseUrl": "https://www.googleapis.com/coordinate/v1/teams/",
 
20
 "basePath": "/coordinate/v1/teams/",
 
21
 "rootUrl": "https://www.googleapis.com/",
 
22
 "servicePath": "coordinate/v1/teams/",
 
23
 "batchPath": "batch",
 
24
 "parameters": {
 
25
  "alt": {
 
26
   "type": "string",
 
27
   "description": "Data format for the response.",
 
28
   "default": "json",
 
29
   "enum": [
 
30
    "json"
 
31
   ],
 
32
   "enumDescriptions": [
 
33
    "Responses with Content-Type of application/json"
 
34
   ],
 
35
   "location": "query"
 
36
  },
 
37
  "fields": {
 
38
   "type": "string",
 
39
   "description": "Selector specifying which fields to include in a partial response.",
 
40
   "location": "query"
 
41
  },
 
42
  "key": {
 
43
   "type": "string",
 
44
   "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
 
45
   "location": "query"
 
46
  },
 
47
  "oauth_token": {
 
48
   "type": "string",
 
49
   "description": "OAuth 2.0 token for the current user.",
 
50
   "location": "query"
 
51
  },
 
52
  "prettyPrint": {
 
53
   "type": "boolean",
 
54
   "description": "Returns response with indentations and line breaks.",
 
55
   "default": "true",
 
56
   "location": "query"
 
57
  },
 
58
  "quotaUser": {
 
59
   "type": "string",
 
60
   "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
 
61
   "location": "query"
 
62
  },
 
63
  "userIp": {
 
64
   "type": "string",
 
65
   "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
 
66
   "location": "query"
 
67
  }
 
68
 },
 
69
 "auth": {
 
70
  "oauth2": {
 
71
   "scopes": {
 
72
    "https://www.googleapis.com/auth/coordinate": {
 
73
     "description": "View and manage your Google Maps Coordinate jobs"
 
74
    },
 
75
    "https://www.googleapis.com/auth/coordinate.readonly": {
 
76
     "description": "View your Google Coordinate jobs"
 
77
    }
 
78
   }
 
79
  }
 
80
 },
 
81
 "schemas": {
 
82
  "CustomField": {
 
83
   "id": "CustomField",
 
84
   "type": "object",
 
85
   "description": "Custom field.",
 
86
   "properties": {
 
87
    "customFieldId": {
 
88
     "type": "string",
 
89
     "description": "Custom field id.",
 
90
     "format": "int64"
 
91
    },
 
92
    "kind": {
 
93
     "type": "string",
 
94
     "description": "Identifies this object as a custom field.",
 
95
     "default": "coordinate#customField"
 
96
    },
 
97
    "value": {
 
98
     "type": "string",
 
99
     "description": "Custom field value."
 
100
    }
 
101
   }
 
102
  },
 
103
  "CustomFieldDef": {
 
104
   "id": "CustomFieldDef",
 
105
   "type": "object",
 
106
   "description": "Custom field definition.",
 
107
   "properties": {
 
108
    "enabled": {
 
109
     "type": "boolean",
 
110
     "description": "Whether the field is enabled."
 
111
    },
 
112
    "id": {
 
113
     "type": "string",
 
114
     "description": "Custom field id.",
 
115
     "format": "int64"
 
116
    },
 
117
    "kind": {
 
118
     "type": "string",
 
119
     "description": "Identifies this object as a custom field definition.",
 
120
     "default": "coordinate#customFieldDef"
 
121
    },
 
122
    "name": {
 
123
     "type": "string",
 
124
     "description": "Custom field name."
 
125
    },
 
126
    "requiredForCheckout": {
 
127
     "type": "boolean",
 
128
     "description": "Whether the field is required for checkout."
 
129
    },
 
130
    "type": {
 
131
     "type": "string",
 
132
     "description": "Custom field type."
 
133
    }
 
134
   }
 
135
  },
 
136
  "CustomFieldDefListResponse": {
 
137
   "id": "CustomFieldDefListResponse",
 
138
   "type": "object",
 
139
   "description": "Collection of custom field definitions for a team.",
 
140
   "properties": {
 
141
    "items": {
 
142
     "type": "array",
 
143
     "description": "Collection of custom field definitions in a team.",
 
144
     "items": {
 
145
      "$ref": "CustomFieldDef"
 
146
     }
 
147
    },
 
148
    "kind": {
 
149
     "type": "string",
 
150
     "description": "Identifies this object as a collection of custom field definitions in a team.",
 
151
     "default": "coordinate#customFieldDefList"
 
152
    }
 
153
   }
 
154
  },
 
155
  "CustomFields": {
 
156
   "id": "CustomFields",
 
157
   "type": "object",
 
158
   "description": "Collection of custom fields.",
 
159
   "properties": {
 
160
    "customField": {
 
161
     "type": "array",
 
162
     "description": "Collection of custom fields.",
 
163
     "items": {
 
164
      "$ref": "CustomField"
 
165
     }
 
166
    },
 
167
    "kind": {
 
168
     "type": "string",
 
169
     "description": "Identifies this object as a collection of custom fields.",
 
170
     "default": "coordinate#customFields"
 
171
    }
 
172
   }
 
173
  },
 
174
  "Job": {
 
175
   "id": "Job",
 
176
   "type": "object",
 
177
   "description": "A job.",
 
178
   "properties": {
 
179
    "id": {
 
180
     "type": "string",
 
181
     "description": "Job id.",
 
182
     "format": "uint64"
 
183
    },
 
184
    "jobChange": {
 
185
     "type": "array",
 
186
     "description": "List of job changes since it was created. The first change corresponds to the state of the job when it was created.",
 
187
     "items": {
 
188
      "$ref": "JobChange"
 
189
     }
 
190
    },
 
191
    "kind": {
 
192
     "type": "string",
 
193
     "description": "Identifies this object as a job.",
 
194
     "default": "coordinate#job"
 
195
    },
 
196
    "state": {
 
197
     "$ref": "JobState",
 
198
     "description": "Current job state."
 
199
    }
 
200
   }
 
201
  },
 
202
  "JobChange": {
 
203
   "id": "JobChange",
 
204
   "type": "object",
 
205
   "description": "Change to a job. For example assigning the job to a different worker.",
 
206
   "properties": {
 
207
    "kind": {
 
208
     "type": "string",
 
209
     "description": "Identifies this object as a job change.",
 
210
     "default": "coordinate#jobChange"
 
211
    },
 
212
    "state": {
 
213
     "$ref": "JobState",
 
214
     "description": "Change applied to the job. Only the fields that were changed are set."
 
215
    },
 
216
    "timestamp": {
 
217
     "type": "string",
 
218
     "description": "Time at which this change was applied.",
 
219
     "format": "uint64"
 
220
    }
 
221
   }
 
222
  },
 
223
  "JobListResponse": {
 
224
   "id": "JobListResponse",
 
225
   "type": "object",
 
226
   "description": "Response from a List Jobs request.",
 
227
   "properties": {
 
228
    "items": {
 
229
     "type": "array",
 
230
     "description": "Jobs in the collection.",
 
231
     "items": {
 
232
      "$ref": "Job"
 
233
     }
 
234
    },
 
235
    "kind": {
 
236
     "type": "string",
 
237
     "description": "Identifies this object as a list of jobs.",
 
238
     "default": "coordinate#jobList"
 
239
    },
 
240
    "nextPageToken": {
 
241
     "type": "string",
 
242
     "description": "A token to provide to get the next page of results."
 
243
    }
 
244
   }
 
245
  },
 
246
  "JobState": {
 
247
   "id": "JobState",
 
248
   "type": "object",
 
249
   "description": "Current state of a job.",
 
250
   "properties": {
 
251
    "assignee": {
 
252
     "type": "string",
 
253
     "description": "Email address of the assignee."
 
254
    },
 
255
    "customFields": {
 
256
     "$ref": "CustomFields",
 
257
     "description": "Custom fields."
 
258
    },
 
259
    "customerName": {
 
260
     "type": "string",
 
261
     "description": "Customer name."
 
262
    },
 
263
    "customerPhoneNumber": {
 
264
     "type": "string",
 
265
     "description": "Customer phone number."
 
266
    },
 
267
    "kind": {
 
268
     "type": "string",
 
269
     "description": "Identifies this object as a job state.",
 
270
     "default": "coordinate#jobState"
 
271
    },
 
272
    "location": {
 
273
     "$ref": "Location",
 
274
     "description": "Job location."
 
275
    },
 
276
    "note": {
 
277
     "type": "array",
 
278
     "description": "Note added to the job.",
 
279
     "items": {
 
280
      "type": "string"
 
281
     }
 
282
    },
 
283
    "progress": {
 
284
     "type": "string",
 
285
     "description": "Job progress."
 
286
    },
 
287
    "title": {
 
288
     "type": "string",
 
289
     "description": "Job title."
 
290
    }
 
291
   }
 
292
  },
 
293
  "Location": {
 
294
   "id": "Location",
 
295
   "type": "object",
 
296
   "description": "Location of a job.",
 
297
   "properties": {
 
298
    "addressLine": {
 
299
     "type": "array",
 
300
     "description": "Address.",
 
301
     "items": {
 
302
      "type": "string"
 
303
     }
 
304
    },
 
305
    "kind": {
 
306
     "type": "string",
 
307
     "description": "Identifies this object as a location.",
 
308
     "default": "coordinate#location"
 
309
    },
 
310
    "lat": {
 
311
     "type": "number",
 
312
     "description": "Latitude.",
 
313
     "format": "double"
 
314
    },
 
315
    "lng": {
 
316
     "type": "number",
 
317
     "description": "Longitude.",
 
318
     "format": "double"
 
319
    }
 
320
   }
 
321
  },
 
322
  "LocationListResponse": {
 
323
   "id": "LocationListResponse",
 
324
   "type": "object",
 
325
   "description": "Response from a List Locations request.",
 
326
   "properties": {
 
327
    "items": {
 
328
     "type": "array",
 
329
     "description": "Locations in the collection.",
 
330
     "items": {
 
331
      "$ref": "LocationRecord"
 
332
     }
 
333
    },
 
334
    "kind": {
 
335
     "type": "string",
 
336
     "description": "Identifies this object as a list of locations.",
 
337
     "default": "coordinate#locationList"
 
338
    },
 
339
    "nextPageToken": {
 
340
     "type": "string",
 
341
     "description": "A token to provide to get the next page of results."
 
342
    },
 
343
    "tokenPagination": {
 
344
     "$ref": "TokenPagination",
 
345
     "description": "Pagination information for token pagination."
 
346
    }
 
347
   }
 
348
  },
 
349
  "LocationRecord": {
 
350
   "id": "LocationRecord",
 
351
   "type": "object",
 
352
   "description": "Recorded location of a worker.",
 
353
   "properties": {
 
354
    "collectionTime": {
 
355
     "type": "string",
 
356
     "description": "The collection time in milliseconds since the epoch.",
 
357
     "format": "int64"
 
358
    },
 
359
    "confidenceRadius": {
 
360
     "type": "number",
 
361
     "description": "The location accuracy in meters. This is the radius of a 95% confidence interval around the location measurement.",
 
362
     "format": "double"
 
363
    },
 
364
    "kind": {
 
365
     "type": "string",
 
366
     "description": "Identifies this object as a location.",
 
367
     "default": "coordinate#locationRecord"
 
368
    },
 
369
    "latitude": {
 
370
     "type": "number",
 
371
     "description": "Latitude.",
 
372
     "format": "double"
 
373
    },
 
374
    "longitude": {
 
375
     "type": "number",
 
376
     "description": "Longitude.",
 
377
     "format": "double"
 
378
    }
 
379
   }
 
380
  },
 
381
  "Schedule": {
 
382
   "id": "Schedule",
 
383
   "type": "object",
 
384
   "description": "Job schedule.",
 
385
   "properties": {
 
386
    "allDay": {
 
387
     "type": "boolean",
 
388
     "description": "Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true."
 
389
    },
 
390
    "duration": {
 
391
     "type": "string",
 
392
     "description": "Job duration in milliseconds.",
 
393
     "format": "uint64"
 
394
    },
 
395
    "endTime": {
 
396
     "type": "string",
 
397
     "description": "Scheduled end time in milliseconds since epoch.",
 
398
     "format": "uint64"
 
399
    },
 
400
    "kind": {
 
401
     "type": "string",
 
402
     "description": "Identifies this object as a job schedule.",
 
403
     "default": "coordinate#schedule"
 
404
    },
 
405
    "startTime": {
 
406
     "type": "string",
 
407
     "description": "Scheduled start time in milliseconds since epoch.",
 
408
     "format": "uint64"
 
409
    }
 
410
   }
 
411
  },
 
412
  "TokenPagination": {
 
413
   "id": "TokenPagination",
 
414
   "type": "object",
 
415
   "description": "Pagination information.",
 
416
   "properties": {
 
417
    "kind": {
 
418
     "type": "string",
 
419
     "description": "Identifies this object as pagination information.",
 
420
     "default": "coordinate#tokenPagination"
 
421
    },
 
422
    "nextPageToken": {
 
423
     "type": "string",
 
424
     "description": "A token to provide to get the next page of results."
 
425
    },
 
426
    "previousPageToken": {
 
427
     "type": "string",
 
428
     "description": "A token to provide to get the previous page of results."
 
429
    }
 
430
   }
 
431
  },
 
432
  "Worker": {
 
433
   "id": "Worker",
 
434
   "type": "object",
 
435
   "description": "A worker in a Coordinate team.",
 
436
   "properties": {
 
437
    "id": {
 
438
     "type": "string",
 
439
     "description": "Worker email address."
 
440
    },
 
441
    "kind": {
 
442
     "type": "string",
 
443
     "description": "Identifies this object as a worker.",
 
444
     "default": "coordinate#worker"
 
445
    }
 
446
   }
 
447
  },
 
448
  "WorkerListResponse": {
 
449
   "id": "WorkerListResponse",
 
450
   "type": "object",
 
451
   "description": "Response from a List Workers request.",
 
452
   "properties": {
 
453
    "items": {
 
454
     "type": "array",
 
455
     "description": "Workers in the collection.",
 
456
     "items": {
 
457
      "$ref": "Worker"
 
458
     }
 
459
    },
 
460
    "kind": {
 
461
     "type": "string",
 
462
     "description": "Identifies this object as a list of workers.",
 
463
     "default": "coordinate#workerList"
 
464
    }
 
465
   }
 
466
  }
 
467
 },
 
468
 "resources": {
 
469
  "customFieldDef": {
 
470
   "methods": {
 
471
    "list": {
 
472
     "id": "coordinate.customFieldDef.list",
 
473
     "path": "{teamId}/custom_fields",
 
474
     "httpMethod": "GET",
 
475
     "description": "Retrieves a list of custom field definitions for a team.",
 
476
     "parameters": {
 
477
      "teamId": {
 
478
       "type": "string",
 
479
       "description": "Team ID",
 
480
       "required": true,
 
481
       "location": "path"
 
482
      }
 
483
     },
 
484
     "parameterOrder": [
 
485
      "teamId"
 
486
     ],
 
487
     "response": {
 
488
      "$ref": "CustomFieldDefListResponse"
 
489
     },
 
490
     "scopes": [
 
491
      "https://www.googleapis.com/auth/coordinate",
 
492
      "https://www.googleapis.com/auth/coordinate.readonly"
 
493
     ]
 
494
    }
 
495
   }
 
496
  },
 
497
  "jobs": {
 
498
   "methods": {
 
499
    "get": {
 
500
     "id": "coordinate.jobs.get",
 
501
     "path": "{teamId}/jobs/{jobId}",
 
502
     "httpMethod": "GET",
 
503
     "description": "Retrieves a job, including all the changes made to the job.",
 
504
     "parameters": {
 
505
      "jobId": {
 
506
       "type": "string",
 
507
       "description": "Job number",
 
508
       "required": true,
 
509
       "format": "uint64",
 
510
       "location": "path"
 
511
      },
 
512
      "teamId": {
 
513
       "type": "string",
 
514
       "description": "Team ID",
 
515
       "required": true,
 
516
       "location": "path"
 
517
      }
 
518
     },
 
519
     "parameterOrder": [
 
520
      "teamId",
 
521
      "jobId"
 
522
     ],
 
523
     "response": {
 
524
      "$ref": "Job"
 
525
     },
 
526
     "scopes": [
 
527
      "https://www.googleapis.com/auth/coordinate",
 
528
      "https://www.googleapis.com/auth/coordinate.readonly"
 
529
     ]
 
530
    },
 
531
    "insert": {
 
532
     "id": "coordinate.jobs.insert",
 
533
     "path": "{teamId}/jobs",
 
534
     "httpMethod": "POST",
 
535
     "description": "Inserts a new job. Only the state field of the job should be set.",
 
536
     "parameters": {
 
537
      "address": {
 
538
       "type": "string",
 
539
       "description": "Job address as newline (Unix) separated string",
 
540
       "required": true,
 
541
       "location": "query"
 
542
      },
 
543
      "assignee": {
 
544
       "type": "string",
 
545
       "description": "Assignee email address, or empty string to unassign.",
 
546
       "location": "query"
 
547
      },
 
548
      "customField": {
 
549
       "type": "string",
 
550
       "description": "Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'",
 
551
       "repeated": true,
 
552
       "location": "query"
 
553
      },
 
554
      "customerName": {
 
555
       "type": "string",
 
556
       "description": "Customer name",
 
557
       "location": "query"
 
558
      },
 
559
      "customerPhoneNumber": {
 
560
       "type": "string",
 
561
       "description": "Customer phone number",
 
562
       "location": "query"
 
563
      },
 
564
      "lat": {
 
565
       "type": "number",
 
566
       "description": "The latitude coordinate of this job's location.",
 
567
       "required": true,
 
568
       "format": "double",
 
569
       "location": "query"
 
570
      },
 
571
      "lng": {
 
572
       "type": "number",
 
573
       "description": "The longitude coordinate of this job's location.",
 
574
       "required": true,
 
575
       "format": "double",
 
576
       "location": "query"
 
577
      },
 
578
      "note": {
 
579
       "type": "string",
 
580
       "description": "Job note as newline (Unix) separated string",
 
581
       "location": "query"
 
582
      },
 
583
      "teamId": {
 
584
       "type": "string",
 
585
       "description": "Team ID",
 
586
       "required": true,
 
587
       "location": "path"
 
588
      },
 
589
      "title": {
 
590
       "type": "string",
 
591
       "description": "Job title",
 
592
       "required": true,
 
593
       "location": "query"
 
594
      }
 
595
     },
 
596
     "parameterOrder": [
 
597
      "teamId",
 
598
      "address",
 
599
      "lat",
 
600
      "lng",
 
601
      "title"
 
602
     ],
 
603
     "request": {
 
604
      "$ref": "Job"
 
605
     },
 
606
     "response": {
 
607
      "$ref": "Job"
 
608
     },
 
609
     "scopes": [
 
610
      "https://www.googleapis.com/auth/coordinate"
 
611
     ]
 
612
    },
 
613
    "list": {
 
614
     "id": "coordinate.jobs.list",
 
615
     "path": "{teamId}/jobs",
 
616
     "httpMethod": "GET",
 
617
     "description": "Retrieves jobs created or modified since the given timestamp.",
 
618
     "parameters": {
 
619
      "maxResults": {
 
620
       "type": "integer",
 
621
       "description": "Maximum number of results to return in one page.",
 
622
       "format": "uint32",
 
623
       "location": "query"
 
624
      },
 
625
      "minModifiedTimestampMs": {
 
626
       "type": "string",
 
627
       "description": "Minimum time a job was modified in milliseconds since epoch.",
 
628
       "format": "uint64",
 
629
       "location": "query"
 
630
      },
 
631
      "pageToken": {
 
632
       "type": "string",
 
633
       "description": "Continuation token",
 
634
       "location": "query"
 
635
      },
 
636
      "teamId": {
 
637
       "type": "string",
 
638
       "description": "Team ID",
 
639
       "required": true,
 
640
       "location": "path"
 
641
      }
 
642
     },
 
643
     "parameterOrder": [
 
644
      "teamId"
 
645
     ],
 
646
     "response": {
 
647
      "$ref": "JobListResponse"
 
648
     },
 
649
     "scopes": [
 
650
      "https://www.googleapis.com/auth/coordinate",
 
651
      "https://www.googleapis.com/auth/coordinate.readonly"
 
652
     ]
 
653
    },
 
654
    "patch": {
 
655
     "id": "coordinate.jobs.patch",
 
656
     "path": "{teamId}/jobs/{jobId}",
 
657
     "httpMethod": "PATCH",
 
658
     "description": "Updates a job. Fields that are set in the job state will be updated. This method supports patch semantics.",
 
659
     "parameters": {
 
660
      "address": {
 
661
       "type": "string",
 
662
       "description": "Job address as newline (Unix) separated string",
 
663
       "location": "query"
 
664
      },
 
665
      "assignee": {
 
666
       "type": "string",
 
667
       "description": "Assignee email address, or empty string to unassign.",
 
668
       "location": "query"
 
669
      },
 
670
      "customField": {
 
671
       "type": "string",
 
672
       "description": "Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'",
 
673
       "repeated": true,
 
674
       "location": "query"
 
675
      },
 
676
      "customerName": {
 
677
       "type": "string",
 
678
       "description": "Customer name",
 
679
       "location": "query"
 
680
      },
 
681
      "customerPhoneNumber": {
 
682
       "type": "string",
 
683
       "description": "Customer phone number",
 
684
       "location": "query"
 
685
      },
 
686
      "jobId": {
 
687
       "type": "string",
 
688
       "description": "Job number",
 
689
       "required": true,
 
690
       "format": "uint64",
 
691
       "location": "path"
 
692
      },
 
693
      "lat": {
 
694
       "type": "number",
 
695
       "description": "The latitude coordinate of this job's location.",
 
696
       "format": "double",
 
697
       "location": "query"
 
698
      },
 
699
      "lng": {
 
700
       "type": "number",
 
701
       "description": "The longitude coordinate of this job's location.",
 
702
       "format": "double",
 
703
       "location": "query"
 
704
      },
 
705
      "note": {
 
706
       "type": "string",
 
707
       "description": "Job note as newline (Unix) separated string",
 
708
       "location": "query"
 
709
      },
 
710
      "progress": {
 
711
       "type": "string",
 
712
       "description": "Job progress",
 
713
       "enum": [
 
714
        "COMPLETED",
 
715
        "IN_PROGRESS",
 
716
        "NOT_ACCEPTED",
 
717
        "NOT_STARTED",
 
718
        "OBSOLETE"
 
719
       ],
 
720
       "enumDescriptions": [
 
721
        "Completed",
 
722
        "In progress",
 
723
        "Not accepted",
 
724
        "Not started",
 
725
        "Obsolete"
 
726
       ],
 
727
       "location": "query"
 
728
      },
 
729
      "teamId": {
 
730
       "type": "string",
 
731
       "description": "Team ID",
 
732
       "required": true,
 
733
       "location": "path"
 
734
      },
 
735
      "title": {
 
736
       "type": "string",
 
737
       "description": "Job title",
 
738
       "location": "query"
 
739
      }
 
740
     },
 
741
     "parameterOrder": [
 
742
      "teamId",
 
743
      "jobId"
 
744
     ],
 
745
     "request": {
 
746
      "$ref": "Job"
 
747
     },
 
748
     "response": {
 
749
      "$ref": "Job"
 
750
     },
 
751
     "scopes": [
 
752
      "https://www.googleapis.com/auth/coordinate"
 
753
     ]
 
754
    },
 
755
    "update": {
 
756
     "id": "coordinate.jobs.update",
 
757
     "path": "{teamId}/jobs/{jobId}",
 
758
     "httpMethod": "PUT",
 
759
     "description": "Updates a job. Fields that are set in the job state will be updated.",
 
760
     "parameters": {
 
761
      "address": {
 
762
       "type": "string",
 
763
       "description": "Job address as newline (Unix) separated string",
 
764
       "location": "query"
 
765
      },
 
766
      "assignee": {
 
767
       "type": "string",
 
768
       "description": "Assignee email address, or empty string to unassign.",
 
769
       "location": "query"
 
770
      },
 
771
      "customField": {
 
772
       "type": "string",
 
773
       "description": "Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'",
 
774
       "repeated": true,
 
775
       "location": "query"
 
776
      },
 
777
      "customerName": {
 
778
       "type": "string",
 
779
       "description": "Customer name",
 
780
       "location": "query"
 
781
      },
 
782
      "customerPhoneNumber": {
 
783
       "type": "string",
 
784
       "description": "Customer phone number",
 
785
       "location": "query"
 
786
      },
 
787
      "jobId": {
 
788
       "type": "string",
 
789
       "description": "Job number",
 
790
       "required": true,
 
791
       "format": "uint64",
 
792
       "location": "path"
 
793
      },
 
794
      "lat": {
 
795
       "type": "number",
 
796
       "description": "The latitude coordinate of this job's location.",
 
797
       "format": "double",
 
798
       "location": "query"
 
799
      },
 
800
      "lng": {
 
801
       "type": "number",
 
802
       "description": "The longitude coordinate of this job's location.",
 
803
       "format": "double",
 
804
       "location": "query"
 
805
      },
 
806
      "note": {
 
807
       "type": "string",
 
808
       "description": "Job note as newline (Unix) separated string",
 
809
       "location": "query"
 
810
      },
 
811
      "progress": {
 
812
       "type": "string",
 
813
       "description": "Job progress",
 
814
       "enum": [
 
815
        "COMPLETED",
 
816
        "IN_PROGRESS",
 
817
        "NOT_ACCEPTED",
 
818
        "NOT_STARTED",
 
819
        "OBSOLETE"
 
820
       ],
 
821
       "enumDescriptions": [
 
822
        "Completed",
 
823
        "In progress",
 
824
        "Not accepted",
 
825
        "Not started",
 
826
        "Obsolete"
 
827
       ],
 
828
       "location": "query"
 
829
      },
 
830
      "teamId": {
 
831
       "type": "string",
 
832
       "description": "Team ID",
 
833
       "required": true,
 
834
       "location": "path"
 
835
      },
 
836
      "title": {
 
837
       "type": "string",
 
838
       "description": "Job title",
 
839
       "location": "query"
 
840
      }
 
841
     },
 
842
     "parameterOrder": [
 
843
      "teamId",
 
844
      "jobId"
 
845
     ],
 
846
     "request": {
 
847
      "$ref": "Job"
 
848
     },
 
849
     "response": {
 
850
      "$ref": "Job"
 
851
     },
 
852
     "scopes": [
 
853
      "https://www.googleapis.com/auth/coordinate"
 
854
     ]
 
855
    }
 
856
   }
 
857
  },
 
858
  "location": {
 
859
   "methods": {
 
860
    "list": {
 
861
     "id": "coordinate.location.list",
 
862
     "path": "{teamId}/workers/{workerEmail}/locations",
 
863
     "httpMethod": "GET",
 
864
     "description": "Retrieves a list of locations for a worker.",
 
865
     "parameters": {
 
866
      "maxResults": {
 
867
       "type": "integer",
 
868
       "description": "Maximum number of results to return in one page.",
 
869
       "format": "uint32",
 
870
       "location": "query"
 
871
      },
 
872
      "pageToken": {
 
873
       "type": "string",
 
874
       "description": "Continuation token",
 
875
       "location": "query"
 
876
      },
 
877
      "startTimestampMs": {
 
878
       "type": "string",
 
879
       "description": "Start timestamp in milliseconds since the epoch.",
 
880
       "required": true,
 
881
       "format": "uint64",
 
882
       "location": "query"
 
883
      },
 
884
      "teamId": {
 
885
       "type": "string",
 
886
       "description": "Team ID",
 
887
       "required": true,
 
888
       "location": "path"
 
889
      },
 
890
      "workerEmail": {
 
891
       "type": "string",
 
892
       "description": "Worker email address.",
 
893
       "required": true,
 
894
       "location": "path"
 
895
      }
 
896
     },
 
897
     "parameterOrder": [
 
898
      "teamId",
 
899
      "workerEmail",
 
900
      "startTimestampMs"
 
901
     ],
 
902
     "response": {
 
903
      "$ref": "LocationListResponse"
 
904
     },
 
905
     "scopes": [
 
906
      "https://www.googleapis.com/auth/coordinate",
 
907
      "https://www.googleapis.com/auth/coordinate.readonly"
 
908
     ]
 
909
    }
 
910
   }
 
911
  },
 
912
  "schedule": {
 
913
   "methods": {
 
914
    "get": {
 
915
     "id": "coordinate.schedule.get",
 
916
     "path": "{teamId}/jobs/{jobId}/schedule",
 
917
     "httpMethod": "GET",
 
918
     "description": "Retrieves the schedule for a job.",
 
919
     "parameters": {
 
920
      "jobId": {
 
921
       "type": "string",
 
922
       "description": "Job number",
 
923
       "required": true,
 
924
       "format": "uint64",
 
925
       "location": "path"
 
926
      },
 
927
      "teamId": {
 
928
       "type": "string",
 
929
       "description": "Team ID",
 
930
       "required": true,
 
931
       "location": "path"
 
932
      }
 
933
     },
 
934
     "parameterOrder": [
 
935
      "teamId",
 
936
      "jobId"
 
937
     ],
 
938
     "response": {
 
939
      "$ref": "Schedule"
 
940
     },
 
941
     "scopes": [
 
942
      "https://www.googleapis.com/auth/coordinate",
 
943
      "https://www.googleapis.com/auth/coordinate.readonly"
 
944
     ]
 
945
    },
 
946
    "patch": {
 
947
     "id": "coordinate.schedule.patch",
 
948
     "path": "{teamId}/jobs/{jobId}/schedule",
 
949
     "httpMethod": "PATCH",
 
950
     "description": "Replaces the schedule of a job with the provided schedule. This method supports patch semantics.",
 
951
     "parameters": {
 
952
      "allDay": {
 
953
       "type": "boolean",
 
954
       "description": "Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.",
 
955
       "location": "query"
 
956
      },
 
957
      "duration": {
 
958
       "type": "string",
 
959
       "description": "Job duration in milliseconds.",
 
960
       "format": "uint64",
 
961
       "location": "query"
 
962
      },
 
963
      "endTime": {
 
964
       "type": "string",
 
965
       "description": "Scheduled end time in milliseconds since epoch.",
 
966
       "format": "uint64",
 
967
       "location": "query"
 
968
      },
 
969
      "jobId": {
 
970
       "type": "string",
 
971
       "description": "Job number",
 
972
       "required": true,
 
973
       "format": "uint64",
 
974
       "location": "path"
 
975
      },
 
976
      "startTime": {
 
977
       "type": "string",
 
978
       "description": "Scheduled start time in milliseconds since epoch.",
 
979
       "format": "uint64",
 
980
       "location": "query"
 
981
      },
 
982
      "teamId": {
 
983
       "type": "string",
 
984
       "description": "Team ID",
 
985
       "required": true,
 
986
       "location": "path"
 
987
      }
 
988
     },
 
989
     "parameterOrder": [
 
990
      "teamId",
 
991
      "jobId"
 
992
     ],
 
993
     "request": {
 
994
      "$ref": "Schedule"
 
995
     },
 
996
     "response": {
 
997
      "$ref": "Schedule"
 
998
     },
 
999
     "scopes": [
 
1000
      "https://www.googleapis.com/auth/coordinate"
 
1001
     ]
 
1002
    },
 
1003
    "update": {
 
1004
     "id": "coordinate.schedule.update",
 
1005
     "path": "{teamId}/jobs/{jobId}/schedule",
 
1006
     "httpMethod": "PUT",
 
1007
     "description": "Replaces the schedule of a job with the provided schedule.",
 
1008
     "parameters": {
 
1009
      "allDay": {
 
1010
       "type": "boolean",
 
1011
       "description": "Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.",
 
1012
       "location": "query"
 
1013
      },
 
1014
      "duration": {
 
1015
       "type": "string",
 
1016
       "description": "Job duration in milliseconds.",
 
1017
       "format": "uint64",
 
1018
       "location": "query"
 
1019
      },
 
1020
      "endTime": {
 
1021
       "type": "string",
 
1022
       "description": "Scheduled end time in milliseconds since epoch.",
 
1023
       "format": "uint64",
 
1024
       "location": "query"
 
1025
      },
 
1026
      "jobId": {
 
1027
       "type": "string",
 
1028
       "description": "Job number",
 
1029
       "required": true,
 
1030
       "format": "uint64",
 
1031
       "location": "path"
 
1032
      },
 
1033
      "startTime": {
 
1034
       "type": "string",
 
1035
       "description": "Scheduled start time in milliseconds since epoch.",
 
1036
       "format": "uint64",
 
1037
       "location": "query"
 
1038
      },
 
1039
      "teamId": {
 
1040
       "type": "string",
 
1041
       "description": "Team ID",
 
1042
       "required": true,
 
1043
       "location": "path"
 
1044
      }
 
1045
     },
 
1046
     "parameterOrder": [
 
1047
      "teamId",
 
1048
      "jobId"
 
1049
     ],
 
1050
     "request": {
 
1051
      "$ref": "Schedule"
 
1052
     },
 
1053
     "response": {
 
1054
      "$ref": "Schedule"
 
1055
     },
 
1056
     "scopes": [
 
1057
      "https://www.googleapis.com/auth/coordinate"
 
1058
     ]
 
1059
    }
 
1060
   }
 
1061
  },
 
1062
  "worker": {
 
1063
   "methods": {
 
1064
    "list": {
 
1065
     "id": "coordinate.worker.list",
 
1066
     "path": "{teamId}/workers",
 
1067
     "httpMethod": "GET",
 
1068
     "description": "Retrieves a list of workers in a team.",
 
1069
     "parameters": {
 
1070
      "teamId": {
 
1071
       "type": "string",
 
1072
       "description": "Team ID",
 
1073
       "required": true,
 
1074
       "location": "path"
 
1075
      }
 
1076
     },
 
1077
     "parameterOrder": [
 
1078
      "teamId"
 
1079
     ],
 
1080
     "response": {
 
1081
      "$ref": "WorkerListResponse"
 
1082
     },
 
1083
     "scopes": [
 
1084
      "https://www.googleapis.com/auth/coordinate",
 
1085
      "https://www.googleapis.com/auth/coordinate.readonly"
 
1086
     ]
 
1087
    }
 
1088
   }
 
1089
  }
 
1090
 }
 
1091
}