Skip to content

Commit

Permalink
feat(cloudbuild): update the api
Browse files Browse the repository at this point in the history
#### cloudbuild:v1

The following keys were added:
- resources.locations.methods.regionalWebhook (Total Keys: 13)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.addBitbucketServerConnectedRepository (Total Keys: 12)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.create (Total Keys: 14)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.delete (Total Keys: 11)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.get (Total Keys: 11)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.list (Total Keys: 16)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.patch (Total Keys: 15)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.methods.removeBitbucketServerConnectedRepository (Total Keys: 12)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.resources.connectedRepositories.methods.batchCreate (Total Keys: 12)
- resources.projects.resources.locations.resources.bitbucketServerConfigs.resources.repos.methods.list (Total Keys: 16)
- schemas.AddBitbucketServerConnectedRepositoryRequest (Total Keys: 3)
- schemas.AddBitbucketServerConnectedRepositoryResponse (Total Keys: 4)
- schemas.BatchCreateBitbucketServerConnectedRepositoriesRequest (Total Keys: 4)
- schemas.BatchCreateBitbucketServerConnectedRepositoriesResponse (Total Keys: 4)
- schemas.BitbucketServerConfig (Total Keys: 16)
- schemas.BitbucketServerConnectedRepository (Total Keys: 6)
- schemas.BitbucketServerRepository (Total Keys: 13)
- schemas.BitbucketServerSecrets (Total Keys: 5)
- schemas.BitbucketServerTriggerConfig (Total Keys: 9)
- schemas.BuildTrigger.properties.bitbucketServerTriggerConfig.$ref (Total Keys: 1)
- schemas.CreateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.CreateBitbucketServerConnectedRepositoryRequest (Total Keys: 4)
- schemas.CreateGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.ListBitbucketServerConfigsResponse (Total Keys: 5)
- schemas.ListBitbucketServerRepositoriesResponse (Total Keys: 5)
- schemas.RemoveBitbucketServerConnectedRepositoryRequest (Total Keys: 3)
- schemas.UpdateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateGitLabConfigOperationMetadata (Total Keys: 7)

#### cloudbuild:v1alpha1

The following keys were added:
- schemas.BatchCreateBitbucketServerConnectedRepositoriesResponse (Total Keys: 4)
- schemas.BitbucketServerConnectedRepository (Total Keys: 6)
- schemas.BitbucketServerRepositoryId (Total Keys: 7)
- schemas.CreateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.CreateGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateGitLabConfigOperationMetadata (Total Keys: 7)

#### cloudbuild:v1alpha2

The following keys were added:
- schemas.BatchCreateBitbucketServerConnectedRepositoriesResponse (Total Keys: 4)
- schemas.BitbucketServerConnectedRepository (Total Keys: 6)
- schemas.BitbucketServerRepositoryId (Total Keys: 7)
- schemas.CreateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.CreateGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateGitLabConfigOperationMetadata (Total Keys: 7)

#### cloudbuild:v1beta1

The following keys were added:
- schemas.BatchCreateBitbucketServerConnectedRepositoriesResponse (Total Keys: 4)
- schemas.BitbucketServerConnectedRepository (Total Keys: 6)
- schemas.BitbucketServerRepositoryId (Total Keys: 7)
- schemas.CreateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.CreateGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.DeleteGitLabConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateBitbucketServerConfigOperationMetadata (Total Keys: 7)
- schemas.UpdateGitLabConfigOperationMetadata (Total Keys: 7)
  • Loading branch information
yoshi-automation committed Jan 11, 2022
1 parent 0ca8ea3 commit 06362dc
Show file tree
Hide file tree
Showing 13 changed files with 2,617 additions and 26 deletions.
5 changes: 5 additions & 0 deletions docs/dyn/cloudbuild_v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@

<h1><a href="cloudbuild_v1.html">Cloud Build API</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="cloudbuild_v1.locations.html">locations()</a></code>
</p>
<p class="firstline">Returns the locations Resource.</p>

<p class="toc_element">
<code><a href="cloudbuild_v1.operations.html">operations()</a></code>
</p>
Expand Down
121 changes: 121 additions & 0 deletions docs/dyn/cloudbuild_v1.locations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.locations.html">locations</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#regionalWebhook">regionalWebhook(location, body=None, webhookKey=None, x__xgafv=None)</a></code></p>
<p class="firstline">ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="regionalWebhook">regionalWebhook(location, body=None, webhookKey=None, x__xgafv=None)</code>
<pre>ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook.

Args:
location: string, Required. The location where the webhook should be sent. (required)
body: object, The request body.
The object takes the form of:

{ # 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.
&quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
&quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
&quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
}

webhookKey: string, For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # 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); } The JSON representation for `Empty` is empty JSON object `{}`.
}</pre>
</div>

</body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.projects.html">projects</a> . <a href="cloudbuild_v1.projects.locations.html">locations</a> . <a href="cloudbuild_v1.projects.locations.bitbucketServerConfigs.html">bitbucketServerConfigs</a> . <a href="cloudbuild_v1.projects.locations.bitbucketServerConfigs.connectedRepositories.html">connectedRepositories</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Batch connecting Bitbucket Server repositories to Cloud Build.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
<pre>Batch connecting Bitbucket Server repositories to Cloud Build.

Args:
parent: string, The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` (required)
body: object, The request body.
The object takes the form of:

{ # RPC request object accepted by BatchCreateBitbucketServerConnectedRepositories RPC method.
&quot;requests&quot;: [ # Required. Requests to connect Bitbucket Server repositories.
{ # Request to connect a repository from a connected Bitbucket Server host.
&quot;bitbucketServerConnectedRepository&quot;: { # / BitbucketServerConnectedRepository represents a connected Bitbucket Server / repository. # Required. The Bitbucket Server repository to connect.
&quot;parent&quot;: &quot;A String&quot;, # The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
&quot;repo&quot;: { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server. # The Bitbucket Server repositories to connect.
&quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
&quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
&quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
},
&quot;status&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). # Output only. The status of the repo connection request.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&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.
},
},
&quot;parent&quot;: &quot;A String&quot;, # Required. The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
},
],
}

x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # This resource represents a long-running operation that is the result of a network API call.
&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.
&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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&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.
},
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&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}`.
&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`.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

</body></html>
Loading

0 comments on commit 06362dc

Please sign in to comment.