Skip to content

Commit 86868a2

Browse files
feat(cloudbuild): update the api
#### cloudbuild:v1 The following keys were added: - resources.githubDotComWebhook.methods.receive (Total Keys: 9)
1 parent 91232ae commit 86868a2

File tree

6 files changed

+154
-4
lines changed

6 files changed

+154
-4
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.githubDotComWebhook.html">githubDotComWebhook</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#receive">receive(body=None, webhookKey=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="receive">receive(body=None, webhookKey=None, x__xgafv=None)</code>
91+
<pre>ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook.
92+
93+
Args:
94+
body: object, The request body.
95+
The object takes the form of:
96+
97+
{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
98+
&quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
99+
&quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
100+
&quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
101+
{
102+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
103+
},
104+
],
105+
}
106+
107+
webhookKey: string, For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation.
108+
x__xgafv: string, V1 error format.
109+
Allowed values
110+
1 - v1 error format
111+
2 - v2 error format
112+
113+
Returns:
114+
An object of the form:
115+
116+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
117+
}</pre>
118+
</div>
119+
120+
</body></html>

docs/dyn/cloudbuild_v1.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474

7575
<h1><a href="cloudbuild_v1.html">Cloud Build API</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="cloudbuild_v1.githubDotComWebhook.html">githubDotComWebhook()</a></code>
79+
</p>
80+
<p class="firstline">Returns the githubDotComWebhook Resource.</p>
81+
7782
<p class="toc_element">
7883
<code><a href="cloudbuild_v1.locations.html">locations()</a></code>
7984
</p>

googleapiclient/discovery_cache/documents/cloudbuild.v1.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,31 @@
105105
},
106106
"protocol": "rest",
107107
"resources": {
108+
"githubDotComWebhook": {
109+
"methods": {
110+
"receive": {
111+
"description": "ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook.",
112+
"flatPath": "v1/githubDotComWebhook:receive",
113+
"httpMethod": "POST",
114+
"id": "cloudbuild.githubDotComWebhook.receive",
115+
"parameterOrder": [],
116+
"parameters": {
117+
"webhookKey": {
118+
"description": "For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation.",
119+
"location": "query",
120+
"type": "string"
121+
}
122+
},
123+
"path": "v1/githubDotComWebhook:receive",
124+
"request": {
125+
"$ref": "HttpBody"
126+
},
127+
"response": {
128+
"$ref": "Empty"
129+
}
130+
}
131+
}
132+
},
108133
"locations": {
109134
"methods": {
110135
"regionalWebhook": {
@@ -2011,7 +2036,7 @@
20112036
}
20122037
}
20132038
},
2014-
"revision": "20220812",
2039+
"revision": "20220818",
20152040
"rootUrl": "https://cloudbuild.googleapis.com/",
20162041
"schemas": {
20172042
"ApprovalConfig": {

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
}
307307
}
308308
},
309-
"revision": "20220812",
309+
"revision": "20220818",
310310
"rootUrl": "https://cloudbuild.googleapis.com/",
311311
"schemas": {
312312
"ApprovalConfig": {

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
}
318318
}
319319
},
320-
"revision": "20220812",
320+
"revision": "20220818",
321321
"rootUrl": "https://cloudbuild.googleapis.com/",
322322
"schemas": {
323323
"ApprovalConfig": {

googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
}
323323
}
324324
},
325-
"revision": "20220812",
325+
"revision": "20220818",
326326
"rootUrl": "https://cloudbuild.googleapis.com/",
327327
"schemas": {
328328
"ApprovalConfig": {

0 commit comments

Comments
 (0)