blob: 944b2b4d4a0671cc372bdcb0f7b7da462e5a0e0f [file] [log] [blame]
yoshi-code-botb539cc42021-08-03 00:20:27 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.projects.html">projects</a> . <a href="cloudbuild_v1.projects.githubEnterpriseConfigs.html">githubEnterpriseConfigs</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="#create">create(parent, body=None, projectId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Create an association between a GCP project and a GitHub Enterprise server. This API is experimental.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, configId=None, projectId=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Delete an association between a GCP project and a GitHub Enterprise server. This API is experimental.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, configId=None, projectId=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Retrieve a GitHubEnterpriseConfig. This API is experimental.</p>
89<p class="toc_element">
90 <code><a href="#list">list(parent, projectId=None, x__xgafv=None)</a></code></p>
91<p class="firstline">List all GitHubEnterpriseConfigs for a given project. This API is experimental.</p>
92<p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Update an association between a GCP project and a GitHub Enterprise server. This API is experimental.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
102 <code class="details" id="create">create(parent, body=None, projectId=None, x__xgafv=None)</code>
103 <pre>Create an association between a GCP project and a GitHub Enterprise server. This API is experimental.
104
105Args:
106 parent: string, Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} (required)
107 body: object, The request body.
108 The object takes the form of:
109
110{ # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.
111 &quot;appId&quot;: &quot;A String&quot;, # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
112 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the installation was associated with the project.
113 &quot;displayName&quot;: &quot;A String&quot;, # Name to display for this config.
114 &quot;hostUrl&quot;: &quot;A String&quot;, # The URL of the github enterprise host the configuration is for.
115 &quot;name&quot;: &quot;A String&quot;, # Optional. The full resource name for the GitHubEnterpriseConfig For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot;
116 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
117 &quot;secrets&quot;: { # GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/. # Names of secrets in Secret Manager.
118 &quot;oauthClientIdName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret in Secret Manager.
119 &quot;oauthClientIdVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret version in Secret Manager.
120 &quot;oauthSecretName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret in Secret Manager.
121 &quot;oauthSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret secret version in Secret Manager.
122 &quot;privateKeyName&quot;: &quot;A String&quot;, # The resource name for the private key secret.
123 &quot;privateKeyVersionName&quot;: &quot;A String&quot;, # The resource name for the private key secret version.
124 &quot;webhookSecretName&quot;: &quot;A String&quot;, # The resource name for the webhook secret in Secret Manager.
125 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the webhook secret secret version in Secret Manager.
126 },
127 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to GitHub Enterprise.
128 &quot;webhookKey&quot;: &quot;A String&quot;, # The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
129}
130
131 projectId: string, ID of the project.
132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
136
137Returns:
138 An object of the form:
139
140 { # This resource represents a long-running operation that is the result of a network API call.
141 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
142 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
144 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
145 {
146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
147 },
148 ],
149 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
150 },
151 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
155 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
157 },
158}</pre>
159</div>
160
161<div class="method">
162 <code class="details" id="delete">delete(name, configId=None, projectId=None, x__xgafv=None)</code>
163 <pre>Delete an association between a GCP project and a GitHub Enterprise server. This API is experimental.
164
165Args:
166 name: string, This field should contain the name of the enterprise config resource. For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot; (required)
167 configId: string, Unique identifier of the `GitHubEnterpriseConfig`
168 projectId: string, ID of the project
169 x__xgafv: string, V1 error format.
170 Allowed values
171 1 - v1 error format
172 2 - v2 error format
173
174Returns:
175 An object of the form:
176
177 { # This resource represents a long-running operation that is the result of a network API call.
178 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
179 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
180 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
181 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
182 {
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
185 ],
186 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
187 },
188 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
189 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
190 },
191 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
192 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195}</pre>
196</div>
197
198<div class="method">
199 <code class="details" id="get">get(name, configId=None, projectId=None, x__xgafv=None)</code>
200 <pre>Retrieve a GitHubEnterpriseConfig. This API is experimental.
201
202Args:
203 name: string, This field should contain the name of the enterprise config resource. For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot; (required)
204 configId: string, Unique identifier of the `GitHubEnterpriseConfig`
205 projectId: string, ID of the project
206 x__xgafv: string, V1 error format.
207 Allowed values
208 1 - v1 error format
209 2 - v2 error format
210
211Returns:
212 An object of the form:
213
214 { # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.
215 &quot;appId&quot;: &quot;A String&quot;, # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
216 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the installation was associated with the project.
217 &quot;displayName&quot;: &quot;A String&quot;, # Name to display for this config.
218 &quot;hostUrl&quot;: &quot;A String&quot;, # The URL of the github enterprise host the configuration is for.
219 &quot;name&quot;: &quot;A String&quot;, # Optional. The full resource name for the GitHubEnterpriseConfig For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot;
220 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
221 &quot;secrets&quot;: { # GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/. # Names of secrets in Secret Manager.
222 &quot;oauthClientIdName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret in Secret Manager.
223 &quot;oauthClientIdVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret version in Secret Manager.
224 &quot;oauthSecretName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret in Secret Manager.
225 &quot;oauthSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret secret version in Secret Manager.
226 &quot;privateKeyName&quot;: &quot;A String&quot;, # The resource name for the private key secret.
227 &quot;privateKeyVersionName&quot;: &quot;A String&quot;, # The resource name for the private key secret version.
228 &quot;webhookSecretName&quot;: &quot;A String&quot;, # The resource name for the webhook secret in Secret Manager.
229 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the webhook secret secret version in Secret Manager.
230 },
231 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to GitHub Enterprise.
232 &quot;webhookKey&quot;: &quot;A String&quot;, # The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
233}</pre>
234</div>
235
236<div class="method">
237 <code class="details" id="list">list(parent, projectId=None, x__xgafv=None)</code>
238 <pre>List all GitHubEnterpriseConfigs for a given project. This API is experimental.
239
240Args:
241 parent: string, Name of the parent project. For example: projects/{$project_number} or projects/{$project_id} (required)
242 projectId: string, ID of the project
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248Returns:
249 An object of the form:
250
251 { # RPC response object returned by ListGithubEnterpriseConfigs RPC method.
252 &quot;configs&quot;: [ # A list of GitHubEnterpriseConfigs
253 { # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.
254 &quot;appId&quot;: &quot;A String&quot;, # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
255 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the installation was associated with the project.
256 &quot;displayName&quot;: &quot;A String&quot;, # Name to display for this config.
257 &quot;hostUrl&quot;: &quot;A String&quot;, # The URL of the github enterprise host the configuration is for.
258 &quot;name&quot;: &quot;A String&quot;, # Optional. The full resource name for the GitHubEnterpriseConfig For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot;
259 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
260 &quot;secrets&quot;: { # GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/. # Names of secrets in Secret Manager.
261 &quot;oauthClientIdName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret in Secret Manager.
262 &quot;oauthClientIdVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret version in Secret Manager.
263 &quot;oauthSecretName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret in Secret Manager.
264 &quot;oauthSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret secret version in Secret Manager.
265 &quot;privateKeyName&quot;: &quot;A String&quot;, # The resource name for the private key secret.
266 &quot;privateKeyVersionName&quot;: &quot;A String&quot;, # The resource name for the private key secret version.
267 &quot;webhookSecretName&quot;: &quot;A String&quot;, # The resource name for the webhook secret in Secret Manager.
268 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the webhook secret secret version in Secret Manager.
269 },
270 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to GitHub Enterprise.
271 &quot;webhookKey&quot;: &quot;A String&quot;, # The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
272 },
273 ],
274}</pre>
275</div>
276
277<div class="method">
278 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
279 <pre>Update an association between a GCP project and a GitHub Enterprise server. This API is experimental.
280
281Args:
282 name: string, Optional. The full resource name for the GitHubEnterpriseConfig For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot; (required)
283 body: object, The request body.
284 The object takes the form of:
285
286{ # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.
287 &quot;appId&quot;: &quot;A String&quot;, # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
288 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the installation was associated with the project.
289 &quot;displayName&quot;: &quot;A String&quot;, # Name to display for this config.
290 &quot;hostUrl&quot;: &quot;A String&quot;, # The URL of the github enterprise host the configuration is for.
291 &quot;name&quot;: &quot;A String&quot;, # Optional. The full resource name for the GitHubEnterpriseConfig For example: &quot;projects/{$project_id}/githubEnterpriseConfig/{$config_id}&quot;
292 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
293 &quot;secrets&quot;: { # GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/. # Names of secrets in Secret Manager.
294 &quot;oauthClientIdName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret in Secret Manager.
295 &quot;oauthClientIdVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth client ID secret version in Secret Manager.
296 &quot;oauthSecretName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret in Secret Manager.
297 &quot;oauthSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the OAuth secret secret version in Secret Manager.
298 &quot;privateKeyName&quot;: &quot;A String&quot;, # The resource name for the private key secret.
299 &quot;privateKeyVersionName&quot;: &quot;A String&quot;, # The resource name for the private key secret version.
300 &quot;webhookSecretName&quot;: &quot;A String&quot;, # The resource name for the webhook secret in Secret Manager.
301 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # The resource name for the webhook secret secret version in Secret Manager.
302 },
303 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to GitHub Enterprise.
304 &quot;webhookKey&quot;: &quot;A String&quot;, # The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
305}
306
307 updateMask: string, Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313Returns:
314 An object of the form:
315
316 { # This resource represents a long-running operation that is the result of a network API call.
317 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
318 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
319 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
320 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
321 {
322 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
323 },
324 ],
325 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
326 },
327 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
329 },
330 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
331 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334}</pre>
335</div>
336
337</body></html>