You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook.
92
+
93
+
Args:
94
+
location: string, Required. The location where the webhook should be sent. (required)
95
+
body: object, The request body.
96
+
The object takes the form of:
97
+
98
+
{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can'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.
99
+
"contentType": "A String", # The HTTP Content-Type header value specifying the content type of the body.
100
+
"data": "A String", # The HTTP request/response body as raw binary.
101
+
"extensions": [ # Application specific response metadata. Must be set in the first response for streaming APIs.
102
+
{
103
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
104
+
},
105
+
],
106
+
}
107
+
108
+
webhookKey: string, For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation.
109
+
x__xgafv: string, V1 error format.
110
+
Allowed values
111
+
1 - v1 error format
112
+
2 - v2 error format
113
+
114
+
Returns:
115
+
An object of the form:
116
+
117
+
{ # 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>Batch connecting Bitbucket Server repositories to Cloud Build.
87
+
88
+
Args:
89
+
parent: string, The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` (required)
90
+
body: object, The request body.
91
+
The object takes the form of:
92
+
93
+
{ # RPC request object accepted by BatchCreateBitbucketServerConnectedRepositories RPC method.
94
+
"requests": [ # Required. Requests to connect Bitbucket Server repositories.
95
+
{ # Request to connect a repository from a connected Bitbucket Server host.
96
+
"bitbucketServerConnectedRepository": { # / BitbucketServerConnectedRepository represents a connected Bitbucket Server / repository. # Required. The Bitbucket Server repository to connect.
97
+
"parent": "A String", # The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
98
+
"repo": { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server. # The Bitbucket Server repositories to connect.
99
+
"projectKey": "A String", # Required. Identifier for the project storing the repository.
100
+
"repoSlug": "A String", # Required. Identifier for the repository.
101
+
"webhookId": 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.
102
+
},
103
+
"status": { # 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.
104
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
105
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
106
+
{
107
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
108
+
},
109
+
],
110
+
"message": "A String", # 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.
111
+
},
112
+
},
113
+
"parent": "A String", # Required. The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
114
+
},
115
+
],
116
+
}
117
+
118
+
x__xgafv: string, V1 error format.
119
+
Allowed values
120
+
1 - v1 error format
121
+
2 - v2 error format
122
+
123
+
Returns:
124
+
An object of the form:
125
+
126
+
{ # This resource represents a long-running operation that is the result of a network API call.
127
+
"done": 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.
128
+
"error": { # 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.
129
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
130
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
131
+
{
132
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
133
+
},
134
+
],
135
+
"message": "A String", # 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.
136
+
},
137
+
"metadata": { # 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.
138
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
139
+
},
140
+
"name": "A String", # 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}`.
141
+
"response": { # 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`.
142
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
0 commit comments