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