OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 "type": "string" | 454 "type": "string" |
455 } | 455 } |
456 }, | 456 }, |
457 "path": "v1/{+name}", | 457 "path": "v1/{+name}", |
458 "response": { | 458 "response": { |
459 "$ref": "ListOperationsResponse" | 459 "$ref": "ListOperationsResponse" |
460 }, | 460 }, |
461 "scopes": [ | 461 "scopes": [ |
462 "https://www.googleapis.com/auth/cloud-platform" | 462 "https://www.googleapis.com/auth/cloud-platform" |
463 ] | 463 ] |
| 464 }, |
| 465 "cancel": { |
| 466 "description": "Starts asynchronous cancellation on a long-r
unning operation. The server\nmakes a best effort to cancel the operation, but
success is not\nguaranteed. If the server doesn't support this method, it retur
ns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation o
r\nother methods to check whether the cancellation succeeded or whether the\nope
ration completed despite cancellation. On successful cancellation,\nthe operatio
n is not deleted; instead, it becomes an operation with\nan Operation.error valu
e with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", |
| 467 "httpMethod": "POST", |
| 468 "id": "cloudbuild.operations.cancel", |
| 469 "parameterOrder": [ |
| 470 "name" |
| 471 ], |
| 472 "parameters": { |
| 473 "name": { |
| 474 "description": "The name of the operation resource t
o be cancelled.", |
| 475 "location": "path", |
| 476 "pattern": "^operations/.+$", |
| 477 "required": true, |
| 478 "type": "string" |
| 479 } |
| 480 }, |
| 481 "path": "v1/{+name}:cancel", |
| 482 "request": { |
| 483 "$ref": "CancelOperationRequest" |
| 484 }, |
| 485 "response": { |
| 486 "$ref": "Empty" |
| 487 }, |
| 488 "scopes": [ |
| 489 "https://www.googleapis.com/auth/cloud-platform" |
| 490 ] |
464 } | 491 } |
465 } | 492 } |
466 } | 493 } |
467 }, | 494 }, |
468 "revision": "20161107", | 495 "revision": "20161212", |
469 "rootUrl": "https://cloudbuild.googleapis.com/", | 496 "rootUrl": "https://cloudbuild.googleapis.com/", |
470 "schemas": { | 497 "schemas": { |
471 "Status": { | 498 "Status": { |
472 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", | 499 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
473 "id": "Status", | 500 "id": "Status", |
474 "properties": { | 501 "properties": { |
475 "code": { | 502 "code": { |
476 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 503 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
477 "format": "int32", | 504 "format": "int32", |
478 "type": "integer" | 505 "type": "integer" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 ], | 673 ], |
647 "enumDescriptions": [ | 674 "enumDescriptions": [ |
648 "No hash requested.", | 675 "No hash requested.", |
649 "Use a sha256 hash." | 676 "Use a sha256 hash." |
650 ], | 677 ], |
651 "type": "string" | 678 "type": "string" |
652 } | 679 } |
653 }, | 680 }, |
654 "type": "object" | 681 "type": "object" |
655 }, | 682 }, |
| 683 "CancelOperationRequest": { |
| 684 "description": "The request message for Operations.CancelOperation."
, |
| 685 "id": "CancelOperationRequest", |
| 686 "properties": {}, |
| 687 "type": "object" |
| 688 }, |
656 "StorageSource": { | 689 "StorageSource": { |
657 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", | 690 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", |
658 "id": "StorageSource", | 691 "id": "StorageSource", |
659 "properties": { | 692 "properties": { |
660 "bucket": { | 693 "bucket": { |
661 "description": "Google Cloud Storage bucket containing sourc
e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket
-naming#requirements)).", | 694 "description": "Google Cloud Storage bucket containing sourc
e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket
-naming#requirements)).", |
662 "type": "string" | 695 "type": "string" |
663 }, | 696 }, |
664 "generation": { | 697 "generation": { |
665 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", | 698 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 "description": "A permanent fixed identifier for source.\n@O
utputOnly" | 740 "description": "A permanent fixed identifier for source.\n@O
utputOnly" |
708 }, | 741 }, |
709 "results": { | 742 "results": { |
710 "$ref": "Results", | 743 "$ref": "Results", |
711 "description": "Results of the build.\n@OutputOnly" | 744 "description": "Results of the build.\n@OutputOnly" |
712 }, | 745 }, |
713 "status": { | 746 "status": { |
714 "description": "Status of the build.\n@OutputOnly", | 747 "description": "Status of the build.\n@OutputOnly", |
715 "enum": [ | 748 "enum": [ |
716 "STATUS_UNKNOWN", | 749 "STATUS_UNKNOWN", |
717 "QUEUING", | |
718 "QUEUED", | 750 "QUEUED", |
719 "WORKING", | 751 "WORKING", |
720 "SUCCESS", | 752 "SUCCESS", |
721 "FAILURE", | 753 "FAILURE", |
722 "INTERNAL_ERROR", | 754 "INTERNAL_ERROR", |
723 "TIMEOUT", | 755 "TIMEOUT", |
724 "CANCELLED" | 756 "CANCELLED" |
725 ], | 757 ], |
726 "enumDescriptions": [ | 758 "enumDescriptions": [ |
727 "Status of the build is unknown.", | 759 "Status of the build is unknown.", |
728 "Build has been received and is being queued.", | |
729 "Build is queued; work has not yet begun.", | 760 "Build is queued; work has not yet begun.", |
730 "Build is being executed.", | 761 "Build is being executed.", |
731 "Build finished successfully.", | 762 "Build finished successfully.", |
732 "Build failed to complete successfully.", | 763 "Build failed to complete successfully.", |
733 "Build failed due to an internal cause.", | 764 "Build failed due to an internal cause.", |
734 "Build took longer than was allowed.", | 765 "Build took longer than was allowed.", |
735 "Build was canceled by a user." | 766 "Build was canceled by a user." |
736 ], | 767 ], |
737 "type": "string" | 768 "type": "string" |
738 }, | 769 }, |
739 "options": { | 770 "options": { |
740 "$ref": "BuildOptions", | 771 "$ref": "BuildOptions", |
741 "description": "Special options for this build." | 772 "description": "Special options for this build." |
742 }, | 773 }, |
743 "finishTime": { | 774 "finishTime": { |
744 "description": "Time at which execution of the build was fin
ished.\n@OutputOnly", | 775 "description": "Time at which execution of the build was fin
ished.\n\nThe difference between finish_time and start_time is the duration of t
he\nbuild's execution.\n@OutputOnly", |
745 "format": "google-datetime", | 776 "format": "google-datetime", |
746 "type": "string" | 777 "type": "string" |
747 }, | 778 }, |
748 "timeout": { | 779 "timeout": { |
749 "description": "Amount of time that this build should be all
owed to run, to second\ngranularity. If this amount of time elapses, work on the
build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten
minutes.", | 780 "description": "Amount of time that this build should be all
owed to run, to second\ngranularity. If this amount of time elapses, work on the
build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten
minutes.", |
750 "format": "google-duration", | 781 "format": "google-duration", |
751 "type": "string" | 782 "type": "string" |
752 }, | 783 }, |
753 "steps": { | 784 "steps": { |
754 "description": "Describes the operations to be performed on
the workspace.", | 785 "description": "Describes the operations to be performed on
the workspace.", |
755 "items": { | 786 "items": { |
756 "$ref": "BuildStep" | 787 "$ref": "BuildStep" |
757 }, | 788 }, |
758 "type": "array" | 789 "type": "array" |
759 }, | 790 }, |
760 "source": { | 791 "source": { |
761 "$ref": "Source", | 792 "$ref": "Source", |
762 "description": "Describes where to find the source files to
build." | 793 "description": "Describes where to find the source files to
build." |
763 }, | 794 }, |
764 "createTime": { | 795 "createTime": { |
765 "description": "Time at which the build was created.\n@Outpu
tOnly", | 796 "description": "Time at which the request to create the buil
d was received.\n@OutputOnly", |
766 "format": "google-datetime", | 797 "format": "google-datetime", |
767 "type": "string" | 798 "type": "string" |
768 }, | 799 }, |
769 "logUrl": { | 800 "logUrl": { |
770 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", | 801 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", |
771 "type": "string" | 802 "type": "string" |
772 }, | 803 }, |
773 "statusDetail": { | 804 "statusDetail": { |
774 "description": "Customer-readable message about the current
status.\n@OutputOnly", | 805 "description": "Customer-readable message about the current
status.\n@OutputOnly", |
775 "type": "string" | 806 "type": "string" |
776 }, | 807 }, |
777 "images": { | 808 "images": { |
778 "description": "A list of images to be pushed upon the succe
ssful completion of all build\nsteps.\n\nThe images will be pushed using the bui
lder\nservice account's credentials.\n\nThe digests of the pushed images will be
stored in the Build resource's\nresults field.\n\nIf any of the images fail to
be pushed, the build is marked FAILURE.", | 809 "description": "A list of images to be pushed upon the succe
ssful completion of all build\nsteps.\n\nThe images will be pushed using the bui
lder service account's credentials.\n\nThe digests of the pushed images will be
stored in the Build resource's\nresults field.\n\nIf any of the images fail to b
e pushed, the build is marked FAILURE.", |
779 "items": { | 810 "items": { |
780 "type": "string" | 811 "type": "string" |
781 }, | 812 }, |
782 "type": "array" | 813 "type": "array" |
783 }, | 814 }, |
784 "startTime": { | 815 "startTime": { |
785 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", | 816 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", |
786 "format": "google-datetime", | 817 "format": "google-datetime", |
787 "type": "string" | 818 "type": "string" |
788 }, | 819 }, |
(...skipping 25 matching lines...) Expand all Loading... |
814 } | 845 } |
815 }, | 846 }, |
816 "type": "object" | 847 "type": "object" |
817 }, | 848 }, |
818 "CancelBuildRequest": { | 849 "CancelBuildRequest": { |
819 "description": "Request to cancel an ongoing build.", | 850 "description": "Request to cancel an ongoing build.", |
820 "id": "CancelBuildRequest", | 851 "id": "CancelBuildRequest", |
821 "properties": {}, | 852 "properties": {}, |
822 "type": "object" | 853 "type": "object" |
823 }, | 854 }, |
824 "FileHashes": { | |
825 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", | |
826 "id": "FileHashes", | |
827 "properties": { | |
828 "fileHash": { | |
829 "description": "Collection of file hashes.", | |
830 "items": { | |
831 "$ref": "Hash" | |
832 }, | |
833 "type": "array" | |
834 } | |
835 }, | |
836 "type": "object" | |
837 }, | |
838 "ListOperationsResponse": { | 855 "ListOperationsResponse": { |
839 "description": "The response message for Operations.ListOperations."
, | 856 "description": "The response message for Operations.ListOperations."
, |
840 "id": "ListOperationsResponse", | 857 "id": "ListOperationsResponse", |
841 "properties": { | 858 "properties": { |
842 "nextPageToken": { | 859 "nextPageToken": { |
843 "description": "The standard List next-page token.", | 860 "description": "The standard List next-page token.", |
844 "type": "string" | 861 "type": "string" |
845 }, | 862 }, |
846 "operations": { | 863 "operations": { |
847 "description": "A list of operations that matches the specif
ied filter in the request.", | 864 "description": "A list of operations that matches the specif
ied filter in the request.", |
848 "items": { | 865 "items": { |
849 "$ref": "Operation" | 866 "$ref": "Operation" |
850 }, | 867 }, |
851 "type": "array" | 868 "type": "array" |
852 } | 869 } |
853 }, | 870 }, |
854 "type": "object" | 871 "type": "object" |
855 }, | 872 }, |
| 873 "FileHashes": { |
| 874 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", |
| 875 "id": "FileHashes", |
| 876 "properties": { |
| 877 "fileHash": { |
| 878 "description": "Collection of file hashes.", |
| 879 "items": { |
| 880 "$ref": "Hash" |
| 881 }, |
| 882 "type": "array" |
| 883 } |
| 884 }, |
| 885 "type": "object" |
| 886 }, |
856 "RepoSource": { | 887 "RepoSource": { |
857 "description": "RepoSource describes the location of the source in a
Google Cloud Source\nRepository.", | 888 "description": "RepoSource describes the location of the source in a
Google Cloud Source\nRepository.", |
858 "id": "RepoSource", | 889 "id": "RepoSource", |
859 "properties": { | 890 "properties": { |
860 "repoName": { | 891 "repoName": { |
861 "description": "Name of the repo. If omitted, the name \"def
ault\" is assumed.", | 892 "description": "Name of the repo. If omitted, the name \"def
ault\" is assumed.", |
862 "type": "string" | 893 "type": "string" |
863 }, | 894 }, |
864 "tagName": { | 895 "tagName": { |
865 "description": "Name of the tag to build.", | 896 "description": "Name of the tag to build.", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 "type": "array" | 934 "type": "array" |
904 }, | 935 }, |
905 "args": { | 936 "args": { |
906 "description": "A list of arguments that will be presented t
o the step when it is started.\n\nIf the image used to run the step's container
has an entrypoint, these args\nwill be used as arguments to that entrypoint. If
the image does not define\nan entrypoint, the first element in args will be used
as the entrypoint,\nand the remainder will be used as arguments.", | 937 "description": "A list of arguments that will be presented t
o the step when it is started.\n\nIf the image used to run the step's container
has an entrypoint, these args\nwill be used as arguments to that entrypoint. If
the image does not define\nan entrypoint, the first element in args will be used
as the entrypoint,\nand the remainder will be used as arguments.", |
907 "items": { | 938 "items": { |
908 "type": "string" | 939 "type": "string" |
909 }, | 940 }, |
910 "type": "array" | 941 "type": "array" |
911 }, | 942 }, |
912 "name": { | 943 "name": { |
913 "description": "The name of the container image that will ru
n this particular build step.\n\nIf the image is already available in the host's
\nDocker daemon's cache, it will be run directly. If not, the host will\nattempt
to pull the image first, using the builder service account's\ncredentials if ne
cessary.\n\nThe Docker daemon's cache will already have the latest versions of a
ll of\nthe officially supported build steps\n(https://github.com/GoogleCloudPlat
form/cloud-builders). The Docker daemon\nwill also have cached many of the layer
s for some popular images, like\n\"ubuntu\", \"debian\", but they will be refres
hed at the time you attempt to\nuse them.\n\nIf you built an image in a previous
build step, it will be stored in the\nhost's Docker daemon's cache and is avail
able to use as the name for a\nlater build step.", | 944 "description": "The name of the container image that will ru
n this particular build step.\n\nIf the image is already available in the host's
Docker daemon's cache, it\nwill be run directly. If not, the host will attempt
to pull the image\nfirst, using the builder service account's credentials if nec
essary.\n\nThe Docker daemon's cache will already have the latest versions of al
l of\nthe officially supported build steps\n(https://github.com/GoogleCloudPlatf
orm/cloud-builders). The Docker daemon\nwill also have cached many of the layers
for some popular images, like\n\"ubuntu\", \"debian\", but they will be refresh
ed at the time you attempt to\nuse them.\n\nIf you built an image in a previous
build step, it will be stored in the\nhost's Docker daemon's cache and is availa
ble to use as the name for a\nlater build step.", |
914 "type": "string" | 945 "type": "string" |
915 }, | 946 }, |
916 "dir": { | 947 "dir": { |
917 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", | 948 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", |
918 "type": "string" | 949 "type": "string" |
919 } | 950 } |
920 }, | 951 }, |
921 "type": "object" | 952 "type": "object" |
922 }, | 953 }, |
923 "Empty": { | 954 "Empty": { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 "type": "array" | 1007 "type": "array" |
977 } | 1008 } |
978 }, | 1009 }, |
979 "type": "object" | 1010 "type": "object" |
980 } | 1011 } |
981 }, | 1012 }, |
982 "servicePath": "", | 1013 "servicePath": "", |
983 "title": "Google Cloud Container Builder API", | 1014 "title": "Google Cloud Container Builder API", |
984 "version": "v1" | 1015 "version": "v1" |
985 } | 1016 } |
OLD | NEW |