google-cloud-developer_connect-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/developer_connect/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +1932 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/credentials.rb +47 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/operations.rb +809 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb +109 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +1815 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/operations.rb +902 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +900 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest.rb +54 -0
- data/lib/google/cloud/developer_connect/v1/developer_connect.rb +56 -0
- data/lib/google/cloud/developer_connect/v1/rest.rb +38 -0
- data/lib/google/cloud/developer_connect/v1/version.rb +7 -2
- data/lib/google/cloud/developer_connect/v1.rb +45 -0
- data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +85 -0
- data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +79 -0
- data/lib/google-cloud-developer_connect-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +708 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +95 -10
@@ -0,0 +1,708 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DeveloperConnect
|
23
|
+
module V1
|
24
|
+
# Message describing Connection object
|
25
|
+
# @!attribute [rw] github_config
|
26
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig]
|
27
|
+
# Configuration for connections to github.com.
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Identifier. The resource name of the connection, in the format
|
31
|
+
# `projects/{project}/locations/{location}/connections/{connection_id}`.
|
32
|
+
# @!attribute [r] create_time
|
33
|
+
# @return [::Google::Protobuf::Timestamp]
|
34
|
+
# Output only. [Output only] Create timestamp
|
35
|
+
# @!attribute [r] update_time
|
36
|
+
# @return [::Google::Protobuf::Timestamp]
|
37
|
+
# Output only. [Output only] Update timestamp
|
38
|
+
# @!attribute [r] delete_time
|
39
|
+
# @return [::Google::Protobuf::Timestamp]
|
40
|
+
# Output only. [Output only] Delete timestamp
|
41
|
+
# @!attribute [rw] labels
|
42
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
43
|
+
# Optional. Labels as key value pairs
|
44
|
+
# @!attribute [r] installation_state
|
45
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::InstallationState]
|
46
|
+
# Output only. Installation state of the Connection.
|
47
|
+
# @!attribute [rw] disabled
|
48
|
+
# @return [::Boolean]
|
49
|
+
# Optional. If disabled is set to true, functionality is disabled for this
|
50
|
+
# connection. Repository based API methods and webhooks processing for
|
51
|
+
# repositories in this connection will be disabled.
|
52
|
+
# @!attribute [r] reconciling
|
53
|
+
# @return [::Boolean]
|
54
|
+
# Output only. Set to true when the connection is being set up or updated in
|
55
|
+
# the background.
|
56
|
+
# @!attribute [rw] annotations
|
57
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
58
|
+
# Optional. Allows clients to store small amounts of arbitrary data.
|
59
|
+
# @!attribute [rw] etag
|
60
|
+
# @return [::String]
|
61
|
+
# Optional. This checksum is computed by the server based on the value of
|
62
|
+
# other fields, and may be sent on update and delete requests to ensure the
|
63
|
+
# client has an up-to-date value before proceeding.
|
64
|
+
# @!attribute [r] uid
|
65
|
+
# @return [::String]
|
66
|
+
# Output only. A system-assigned unique identifier for a the
|
67
|
+
# GitRepositoryLink.
|
68
|
+
class Connection
|
69
|
+
include ::Google::Protobuf::MessageExts
|
70
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
71
|
+
|
72
|
+
# @!attribute [rw] key
|
73
|
+
# @return [::String]
|
74
|
+
# @!attribute [rw] value
|
75
|
+
# @return [::String]
|
76
|
+
class LabelsEntry
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# @!attribute [rw] key
|
82
|
+
# @return [::String]
|
83
|
+
# @!attribute [rw] value
|
84
|
+
# @return [::String]
|
85
|
+
class AnnotationsEntry
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Describes stage and necessary actions to be taken by the
|
92
|
+
# user to complete the installation. Used for GitHub and GitHub Enterprise
|
93
|
+
# based connections.
|
94
|
+
# @!attribute [r] stage
|
95
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::InstallationState::Stage]
|
96
|
+
# Output only. Current step of the installation process.
|
97
|
+
# @!attribute [r] message
|
98
|
+
# @return [::String]
|
99
|
+
# Output only. Message of what the user should do next to continue the
|
100
|
+
# installation. Empty string if the installation is already complete.
|
101
|
+
# @!attribute [r] action_uri
|
102
|
+
# @return [::String]
|
103
|
+
# Output only. Link to follow for next action. Empty string if the
|
104
|
+
# installation is already complete.
|
105
|
+
class InstallationState
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
|
109
|
+
# Stage of the installation process.
|
110
|
+
module Stage
|
111
|
+
# No stage specified.
|
112
|
+
STAGE_UNSPECIFIED = 0
|
113
|
+
|
114
|
+
# Only for GitHub Enterprise. An App creation has been requested.
|
115
|
+
# The user needs to confirm the creation in their GitHub enterprise host.
|
116
|
+
PENDING_CREATE_APP = 1
|
117
|
+
|
118
|
+
# User needs to authorize the GitHub (or Enterprise) App via OAuth.
|
119
|
+
PENDING_USER_OAUTH = 2
|
120
|
+
|
121
|
+
# User needs to follow the link to install the GitHub (or Enterprise) App.
|
122
|
+
PENDING_INSTALL_APP = 3
|
123
|
+
|
124
|
+
# Installation process has been completed.
|
125
|
+
COMPLETE = 10
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Configuration for connections to github.com.
|
130
|
+
# @!attribute [rw] github_app
|
131
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig::GitHubApp]
|
132
|
+
# Required. Immutable. The GitHub Application that was installed to the
|
133
|
+
# GitHub user or organization.
|
134
|
+
# @!attribute [rw] authorizer_credential
|
135
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::OAuthCredential]
|
136
|
+
# Optional. OAuth credential of the account that authorized the GitHub App.
|
137
|
+
# It is recommended to use a robot account instead of a human user account.
|
138
|
+
# The OAuth token must be tied to the GitHub App of this config.
|
139
|
+
# @!attribute [rw] app_installation_id
|
140
|
+
# @return [::Integer]
|
141
|
+
# Optional. GitHub App installation id.
|
142
|
+
# @!attribute [r] installation_uri
|
143
|
+
# @return [::String]
|
144
|
+
# Output only. The URI to navigate to in order to manage the installation
|
145
|
+
# associated with this GitHubConfig.
|
146
|
+
class GitHubConfig
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
|
150
|
+
# Represents the various GitHub Applications that can be installed to a
|
151
|
+
# GitHub user or organization and used with Developer Connect.
|
152
|
+
module GitHubApp
|
153
|
+
# GitHub App not specified.
|
154
|
+
GIT_HUB_APP_UNSPECIFIED = 0
|
155
|
+
|
156
|
+
# The Developer Connect GitHub Application.
|
157
|
+
DEVELOPER_CONNECT = 1
|
158
|
+
|
159
|
+
# The Firebase GitHub Application.
|
160
|
+
FIREBASE = 2
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# Represents an OAuth token of the account that authorized the Connection,
|
165
|
+
# and associated metadata.
|
166
|
+
# @!attribute [rw] oauth_token_secret_version
|
167
|
+
# @return [::String]
|
168
|
+
# Required. A SecretManager resource containing the OAuth token that
|
169
|
+
# authorizes the connection. Format: `projects/*/secrets/*/versions/*`.
|
170
|
+
# @!attribute [r] username
|
171
|
+
# @return [::String]
|
172
|
+
# Output only. The username associated with this token.
|
173
|
+
class OAuthCredential
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
177
|
+
|
178
|
+
# Message for requesting list of Connections
|
179
|
+
# @!attribute [rw] parent
|
180
|
+
# @return [::String]
|
181
|
+
# Required. Parent value for ListConnectionsRequest
|
182
|
+
# @!attribute [rw] page_size
|
183
|
+
# @return [::Integer]
|
184
|
+
# Optional. Requested page size. Server may return fewer items than
|
185
|
+
# requested. If unspecified, server will pick an appropriate default.
|
186
|
+
# @!attribute [rw] page_token
|
187
|
+
# @return [::String]
|
188
|
+
# Optional. A token identifying a page of results the server should return.
|
189
|
+
# @!attribute [rw] filter
|
190
|
+
# @return [::String]
|
191
|
+
# Optional. Filtering results
|
192
|
+
# @!attribute [rw] order_by
|
193
|
+
# @return [::String]
|
194
|
+
# Optional. Hint for how to order the results
|
195
|
+
class ListConnectionsRequest
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
|
+
end
|
199
|
+
|
200
|
+
# Message for response to listing Connections
|
201
|
+
# @!attribute [rw] connections
|
202
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::Connection>]
|
203
|
+
# The list of Connection
|
204
|
+
# @!attribute [rw] next_page_token
|
205
|
+
# @return [::String]
|
206
|
+
# A token identifying a page of results the server should return.
|
207
|
+
# @!attribute [rw] unreachable
|
208
|
+
# @return [::Array<::String>]
|
209
|
+
# Locations that could not be reached.
|
210
|
+
class ListConnectionsResponse
|
211
|
+
include ::Google::Protobuf::MessageExts
|
212
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
213
|
+
end
|
214
|
+
|
215
|
+
# Message for getting a Connection
|
216
|
+
# @!attribute [rw] name
|
217
|
+
# @return [::String]
|
218
|
+
# Required. Name of the resource
|
219
|
+
class GetConnectionRequest
|
220
|
+
include ::Google::Protobuf::MessageExts
|
221
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
222
|
+
end
|
223
|
+
|
224
|
+
# Message for creating a Connection
|
225
|
+
# @!attribute [rw] parent
|
226
|
+
# @return [::String]
|
227
|
+
# Required. Value for parent.
|
228
|
+
# @!attribute [rw] connection_id
|
229
|
+
# @return [::String]
|
230
|
+
# Required. Id of the requesting object
|
231
|
+
# If auto-generating Id server-side, remove this field and
|
232
|
+
# connection_id from the method_signature of Create RPC
|
233
|
+
# @!attribute [rw] connection
|
234
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::Connection]
|
235
|
+
# Required. The resource being created
|
236
|
+
# @!attribute [rw] request_id
|
237
|
+
# @return [::String]
|
238
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
239
|
+
# request ID so that if you must retry your request, the server will know to
|
240
|
+
# ignore the request if it has already been completed. The server will
|
241
|
+
# guarantee that for at least 60 minutes since the first request.
|
242
|
+
#
|
243
|
+
# For example, consider a situation where you make an initial request and the
|
244
|
+
# request times out. If you make the request again with the same request
|
245
|
+
# ID, the server can check if original operation with the same request ID
|
246
|
+
# was received, and if so, will ignore the second request. This prevents
|
247
|
+
# clients from accidentally creating duplicate commitments.
|
248
|
+
#
|
249
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
250
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
251
|
+
# @!attribute [rw] validate_only
|
252
|
+
# @return [::Boolean]
|
253
|
+
# Optional. If set, validate the request, but do not actually post it.
|
254
|
+
class CreateConnectionRequest
|
255
|
+
include ::Google::Protobuf::MessageExts
|
256
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
257
|
+
end
|
258
|
+
|
259
|
+
# Message for updating a Connection
|
260
|
+
# @!attribute [rw] update_mask
|
261
|
+
# @return [::Google::Protobuf::FieldMask]
|
262
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
263
|
+
# Connection resource by the update.
|
264
|
+
# The fields specified in the update_mask are relative to the resource, not
|
265
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
266
|
+
# user does not provide a mask then all fields will be overwritten.
|
267
|
+
# @!attribute [rw] connection
|
268
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::Connection]
|
269
|
+
# Required. The resource being updated
|
270
|
+
# @!attribute [rw] request_id
|
271
|
+
# @return [::String]
|
272
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
273
|
+
# request ID so that if you must retry your request, the server will know to
|
274
|
+
# ignore the request if it has already been completed. The server will
|
275
|
+
# guarantee that for at least 60 minutes since the first request.
|
276
|
+
#
|
277
|
+
# For example, consider a situation where you make an initial request and the
|
278
|
+
# request times out. If you make the request again with the same request
|
279
|
+
# ID, the server can check if original operation with the same request ID
|
280
|
+
# was received, and if so, will ignore the second request. This prevents
|
281
|
+
# clients from accidentally creating duplicate commitments.
|
282
|
+
#
|
283
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
284
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
285
|
+
# @!attribute [rw] allow_missing
|
286
|
+
# @return [::Boolean]
|
287
|
+
# Optional. If set to true, and the connection is not found a new connection
|
288
|
+
# will be created. In this situation `update_mask` is ignored.
|
289
|
+
# The creation will succeed only if the input connection has all the
|
290
|
+
# necessary information (e.g a github_config with both user_oauth_token and
|
291
|
+
# installation_id properties).
|
292
|
+
# @!attribute [rw] validate_only
|
293
|
+
# @return [::Boolean]
|
294
|
+
# Optional. If set, validate the request, but do not actually post it.
|
295
|
+
class UpdateConnectionRequest
|
296
|
+
include ::Google::Protobuf::MessageExts
|
297
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
|
+
end
|
299
|
+
|
300
|
+
# Message for deleting a Connection
|
301
|
+
# @!attribute [rw] name
|
302
|
+
# @return [::String]
|
303
|
+
# Required. Name of the resource
|
304
|
+
# @!attribute [rw] request_id
|
305
|
+
# @return [::String]
|
306
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
307
|
+
# request ID so that if you must retry your request, the server will know to
|
308
|
+
# ignore the request if it has already been completed. The server will
|
309
|
+
# guarantee that for at least 60 minutes after the first request.
|
310
|
+
#
|
311
|
+
# For example, consider a situation where you make an initial request and the
|
312
|
+
# request times out. If you make the request again with the same request
|
313
|
+
# ID, the server can check if original operation with the same request ID
|
314
|
+
# was received, and if so, will ignore the second request. This prevents
|
315
|
+
# clients from accidentally creating duplicate commitments.
|
316
|
+
#
|
317
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
318
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
319
|
+
# @!attribute [rw] validate_only
|
320
|
+
# @return [::Boolean]
|
321
|
+
# Optional. If set, validate the request, but do not actually post it.
|
322
|
+
# @!attribute [rw] etag
|
323
|
+
# @return [::String]
|
324
|
+
# Optional. The current etag of the Connection.
|
325
|
+
# If an etag is provided and does not match the current etag of the
|
326
|
+
# Connection, deletion will be blocked and an ABORTED error will be returned.
|
327
|
+
class DeleteConnectionRequest
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
331
|
+
|
332
|
+
# Represents the metadata of the long-running operation.
|
333
|
+
# @!attribute [r] create_time
|
334
|
+
# @return [::Google::Protobuf::Timestamp]
|
335
|
+
# Output only. The time the operation was created.
|
336
|
+
# @!attribute [r] end_time
|
337
|
+
# @return [::Google::Protobuf::Timestamp]
|
338
|
+
# Output only. The time the operation finished running.
|
339
|
+
# @!attribute [r] target
|
340
|
+
# @return [::String]
|
341
|
+
# Output only. Server-defined resource path for the target of the operation.
|
342
|
+
# @!attribute [r] verb
|
343
|
+
# @return [::String]
|
344
|
+
# Output only. Name of the verb executed by the operation.
|
345
|
+
# @!attribute [r] status_message
|
346
|
+
# @return [::String]
|
347
|
+
# Output only. Human-readable status of the operation, if any.
|
348
|
+
# @!attribute [r] requested_cancellation
|
349
|
+
# @return [::Boolean]
|
350
|
+
# Output only. Identifies whether the user has requested cancellation
|
351
|
+
# of the operation. Operations that have been cancelled successfully
|
352
|
+
# have [Operation.error][] value with a
|
353
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
|
354
|
+
# `Code.CANCELLED`.
|
355
|
+
# @!attribute [r] api_version
|
356
|
+
# @return [::String]
|
357
|
+
# Output only. API version used to start the operation.
|
358
|
+
class OperationMetadata
|
359
|
+
include ::Google::Protobuf::MessageExts
|
360
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
|
+
end
|
362
|
+
|
363
|
+
# Message describing the GitRepositoryLink object
|
364
|
+
# @!attribute [rw] name
|
365
|
+
# @return [::String]
|
366
|
+
# Identifier. Resource name of the repository, in the format
|
367
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
368
|
+
# @!attribute [rw] clone_uri
|
369
|
+
# @return [::String]
|
370
|
+
# Required. Git Clone URI.
|
371
|
+
# @!attribute [r] create_time
|
372
|
+
# @return [::Google::Protobuf::Timestamp]
|
373
|
+
# Output only. [Output only] Create timestamp
|
374
|
+
# @!attribute [r] update_time
|
375
|
+
# @return [::Google::Protobuf::Timestamp]
|
376
|
+
# Output only. [Output only] Update timestamp
|
377
|
+
# @!attribute [r] delete_time
|
378
|
+
# @return [::Google::Protobuf::Timestamp]
|
379
|
+
# Output only. [Output only] Delete timestamp
|
380
|
+
# @!attribute [rw] labels
|
381
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
382
|
+
# Optional. Labels as key value pairs
|
383
|
+
# @!attribute [rw] etag
|
384
|
+
# @return [::String]
|
385
|
+
# Optional. This checksum is computed by the server based on the value of
|
386
|
+
# other fields, and may be sent on update and delete requests to ensure the
|
387
|
+
# client has an up-to-date value before proceeding.
|
388
|
+
# @!attribute [r] reconciling
|
389
|
+
# @return [::Boolean]
|
390
|
+
# Output only. Set to true when the connection is being set up or updated in
|
391
|
+
# the background.
|
392
|
+
# @!attribute [rw] annotations
|
393
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
394
|
+
# Optional. Allows clients to store small amounts of arbitrary data.
|
395
|
+
# @!attribute [r] uid
|
396
|
+
# @return [::String]
|
397
|
+
# Output only. A system-assigned unique identifier for a the
|
398
|
+
# GitRepositoryLink.
|
399
|
+
class GitRepositoryLink
|
400
|
+
include ::Google::Protobuf::MessageExts
|
401
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
402
|
+
|
403
|
+
# @!attribute [rw] key
|
404
|
+
# @return [::String]
|
405
|
+
# @!attribute [rw] value
|
406
|
+
# @return [::String]
|
407
|
+
class LabelsEntry
|
408
|
+
include ::Google::Protobuf::MessageExts
|
409
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
410
|
+
end
|
411
|
+
|
412
|
+
# @!attribute [rw] key
|
413
|
+
# @return [::String]
|
414
|
+
# @!attribute [rw] value
|
415
|
+
# @return [::String]
|
416
|
+
class AnnotationsEntry
|
417
|
+
include ::Google::Protobuf::MessageExts
|
418
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# Message for creating a GitRepositoryLink
|
423
|
+
# @!attribute [rw] parent
|
424
|
+
# @return [::String]
|
425
|
+
# Required. Value for parent.
|
426
|
+
# @!attribute [rw] git_repository_link
|
427
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::GitRepositoryLink]
|
428
|
+
# Required. The resource being created
|
429
|
+
# @!attribute [rw] git_repository_link_id
|
430
|
+
# @return [::String]
|
431
|
+
# Required. The ID to use for the repository, which will become the final
|
432
|
+
# component of the repository's resource name. This ID should be unique in
|
433
|
+
# the connection. Allows alphanumeric characters and any of
|
434
|
+
# -._~%!$&'()*+,;=@.
|
435
|
+
# @!attribute [rw] request_id
|
436
|
+
# @return [::String]
|
437
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
438
|
+
# request ID so that if you must retry your request, the server will know to
|
439
|
+
# ignore the request if it has already been completed. The server will
|
440
|
+
# guarantee that for at least 60 minutes since the first request.
|
441
|
+
#
|
442
|
+
# For example, consider a situation where you make an initial request and the
|
443
|
+
# request times out. If you make the request again with the same request
|
444
|
+
# ID, the server can check if original operation with the same request ID
|
445
|
+
# was received, and if so, will ignore the second request. This prevents
|
446
|
+
# clients from accidentally creating duplicate commitments.
|
447
|
+
#
|
448
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
449
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
450
|
+
# @!attribute [rw] validate_only
|
451
|
+
# @return [::Boolean]
|
452
|
+
# Optional. If set, validate the request, but do not actually post it.
|
453
|
+
class CreateGitRepositoryLinkRequest
|
454
|
+
include ::Google::Protobuf::MessageExts
|
455
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
456
|
+
end
|
457
|
+
|
458
|
+
# Message for deleting a GitRepositoryLink
|
459
|
+
# @!attribute [rw] name
|
460
|
+
# @return [::String]
|
461
|
+
# Required. Name of the resource
|
462
|
+
# @!attribute [rw] request_id
|
463
|
+
# @return [::String]
|
464
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
465
|
+
# request ID so that if you must retry your request, the server will know to
|
466
|
+
# ignore the request if it has already been completed. The server will
|
467
|
+
# guarantee that for at least 60 minutes after the first request.
|
468
|
+
#
|
469
|
+
# For example, consider a situation where you make an initial request and the
|
470
|
+
# request times out. If you make the request again with the same request
|
471
|
+
# ID, the server can check if original operation with the same request ID
|
472
|
+
# was received, and if so, will ignore the second request. This prevents
|
473
|
+
# clients from accidentally creating duplicate commitments.
|
474
|
+
#
|
475
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
476
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
477
|
+
# @!attribute [rw] validate_only
|
478
|
+
# @return [::Boolean]
|
479
|
+
# Optional. If set, validate the request, but do not actually post it.
|
480
|
+
# @!attribute [rw] etag
|
481
|
+
# @return [::String]
|
482
|
+
# Optional. This checksum is computed by the server based on the value of
|
483
|
+
# other fields, and may be sent on update and delete requests to ensure the
|
484
|
+
# client has an up-to-date value before proceeding.
|
485
|
+
class DeleteGitRepositoryLinkRequest
|
486
|
+
include ::Google::Protobuf::MessageExts
|
487
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
488
|
+
end
|
489
|
+
|
490
|
+
# Message for requesting a list of GitRepositoryLinks
|
491
|
+
# @!attribute [rw] parent
|
492
|
+
# @return [::String]
|
493
|
+
# Required. Parent value for ListGitRepositoryLinksRequest
|
494
|
+
# @!attribute [rw] page_size
|
495
|
+
# @return [::Integer]
|
496
|
+
# Optional. Requested page size. Server may return fewer items than
|
497
|
+
# requested. If unspecified, server will pick an appropriate default.
|
498
|
+
# @!attribute [rw] page_token
|
499
|
+
# @return [::String]
|
500
|
+
# Optional. A token identifying a page of results the server should return.
|
501
|
+
# @!attribute [rw] filter
|
502
|
+
# @return [::String]
|
503
|
+
# Optional. Filtering results
|
504
|
+
# @!attribute [rw] order_by
|
505
|
+
# @return [::String]
|
506
|
+
# Optional. Hint for how to order the results
|
507
|
+
class ListGitRepositoryLinksRequest
|
508
|
+
include ::Google::Protobuf::MessageExts
|
509
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
510
|
+
end
|
511
|
+
|
512
|
+
# Message for response to listing GitRepositoryLinks
|
513
|
+
# @!attribute [rw] git_repository_links
|
514
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::GitRepositoryLink>]
|
515
|
+
# The list of GitRepositoryLinks
|
516
|
+
# @!attribute [rw] next_page_token
|
517
|
+
# @return [::String]
|
518
|
+
# A token identifying a page of results the server should return.
|
519
|
+
# @!attribute [rw] unreachable
|
520
|
+
# @return [::Array<::String>]
|
521
|
+
# Locations that could not be reached.
|
522
|
+
class ListGitRepositoryLinksResponse
|
523
|
+
include ::Google::Protobuf::MessageExts
|
524
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
525
|
+
end
|
526
|
+
|
527
|
+
# Message for getting a GitRepositoryLink
|
528
|
+
# @!attribute [rw] name
|
529
|
+
# @return [::String]
|
530
|
+
# Required. Name of the resource
|
531
|
+
class GetGitRepositoryLinkRequest
|
532
|
+
include ::Google::Protobuf::MessageExts
|
533
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
534
|
+
end
|
535
|
+
|
536
|
+
# Message for fetching SCM read/write token.
|
537
|
+
# @!attribute [rw] git_repository_link
|
538
|
+
# @return [::String]
|
539
|
+
# Required. The resource name of the gitRepositoryLink in the format
|
540
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
541
|
+
class FetchReadWriteTokenRequest
|
542
|
+
include ::Google::Protobuf::MessageExts
|
543
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
544
|
+
end
|
545
|
+
|
546
|
+
# Message for fetching SCM read token.
|
547
|
+
# @!attribute [rw] git_repository_link
|
548
|
+
# @return [::String]
|
549
|
+
# Required. The resource name of the gitRepositoryLink in the format
|
550
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
551
|
+
class FetchReadTokenRequest
|
552
|
+
include ::Google::Protobuf::MessageExts
|
553
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
554
|
+
end
|
555
|
+
|
556
|
+
# Message for responding to get read token.
|
557
|
+
# @!attribute [rw] token
|
558
|
+
# @return [::String]
|
559
|
+
# The token content.
|
560
|
+
# @!attribute [rw] expiration_time
|
561
|
+
# @return [::Google::Protobuf::Timestamp]
|
562
|
+
# Expiration timestamp. Can be empty if unknown or non-expiring.
|
563
|
+
# @!attribute [rw] git_username
|
564
|
+
# @return [::String]
|
565
|
+
# The git_username to specify when making a git clone with the
|
566
|
+
# token. For example, for GitHub GitRepositoryLinks, this would be
|
567
|
+
# "x-access-token"
|
568
|
+
class FetchReadTokenResponse
|
569
|
+
include ::Google::Protobuf::MessageExts
|
570
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
571
|
+
end
|
572
|
+
|
573
|
+
# Message for responding to get read/write token.
|
574
|
+
# @!attribute [rw] token
|
575
|
+
# @return [::String]
|
576
|
+
# The token content.
|
577
|
+
# @!attribute [rw] expiration_time
|
578
|
+
# @return [::Google::Protobuf::Timestamp]
|
579
|
+
# Expiration timestamp. Can be empty if unknown or non-expiring.
|
580
|
+
# @!attribute [rw] git_username
|
581
|
+
# @return [::String]
|
582
|
+
# The git_username to specify when making a git clone with the
|
583
|
+
# token. For example, for GitHub GitRepositoryLinks, this would be
|
584
|
+
# "x-access-token"
|
585
|
+
class FetchReadWriteTokenResponse
|
586
|
+
include ::Google::Protobuf::MessageExts
|
587
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
588
|
+
end
|
589
|
+
|
590
|
+
# Request message for FetchLinkableGitRepositoriesRequest.
|
591
|
+
# @!attribute [rw] connection
|
592
|
+
# @return [::String]
|
593
|
+
# Required. The name of the Connection.
|
594
|
+
# Format: `projects/*/locations/*/connections/*`.
|
595
|
+
# @!attribute [rw] page_size
|
596
|
+
# @return [::Integer]
|
597
|
+
# Optional. Number of results to return in the list. Defaults to 20.
|
598
|
+
# @!attribute [rw] page_token
|
599
|
+
# @return [::String]
|
600
|
+
# Optional. Page start.
|
601
|
+
class FetchLinkableGitRepositoriesRequest
|
602
|
+
include ::Google::Protobuf::MessageExts
|
603
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
604
|
+
end
|
605
|
+
|
606
|
+
# Response message for FetchLinkableGitRepositories.
|
607
|
+
# @!attribute [rw] linkable_git_repositories
|
608
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository>]
|
609
|
+
# The git repositories that can be linked to the connection.
|
610
|
+
# @!attribute [rw] next_page_token
|
611
|
+
# @return [::String]
|
612
|
+
# A token identifying a page of results the server should return.
|
613
|
+
class FetchLinkableGitRepositoriesResponse
|
614
|
+
include ::Google::Protobuf::MessageExts
|
615
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
616
|
+
end
|
617
|
+
|
618
|
+
# LinkableGitRepository represents a git repository that can be linked to a
|
619
|
+
# connection.
|
620
|
+
# @!attribute [rw] clone_uri
|
621
|
+
# @return [::String]
|
622
|
+
# The clone uri of the repository.
|
623
|
+
class LinkableGitRepository
|
624
|
+
include ::Google::Protobuf::MessageExts
|
625
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
626
|
+
end
|
627
|
+
|
628
|
+
# Request for fetching github installations.
|
629
|
+
# @!attribute [rw] connection
|
630
|
+
# @return [::String]
|
631
|
+
# Required. The resource name of the connection in the format
|
632
|
+
# `projects/*/locations/*/connections/*`.
|
633
|
+
class FetchGitHubInstallationsRequest
|
634
|
+
include ::Google::Protobuf::MessageExts
|
635
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
636
|
+
end
|
637
|
+
|
638
|
+
# Response of fetching github installations.
|
639
|
+
# @!attribute [rw] installations
|
640
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse::Installation>]
|
641
|
+
# List of installations available to the OAuth user (for github.com)
|
642
|
+
# or all the installations (for GitHub enterprise).
|
643
|
+
class FetchGitHubInstallationsResponse
|
644
|
+
include ::Google::Protobuf::MessageExts
|
645
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
646
|
+
|
647
|
+
# Represents an installation of the GitHub App.
|
648
|
+
# @!attribute [rw] id
|
649
|
+
# @return [::Integer]
|
650
|
+
# ID of the installation in GitHub.
|
651
|
+
# @!attribute [rw] name
|
652
|
+
# @return [::String]
|
653
|
+
# Name of the GitHub user or organization that owns this installation.
|
654
|
+
# @!attribute [rw] type
|
655
|
+
# @return [::String]
|
656
|
+
# Either "user" or "organization".
|
657
|
+
class Installation
|
658
|
+
include ::Google::Protobuf::MessageExts
|
659
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
# Request for fetching git refs.
|
664
|
+
# @!attribute [rw] git_repository_link
|
665
|
+
# @return [::String]
|
666
|
+
# Required. The resource name of GitRepositoryLink in the format
|
667
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
668
|
+
# @!attribute [rw] ref_type
|
669
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest::RefType]
|
670
|
+
# Required. Type of refs to fetch.
|
671
|
+
# @!attribute [rw] page_size
|
672
|
+
# @return [::Integer]
|
673
|
+
# Optional. Number of results to return in the list. Default to 20.
|
674
|
+
# @!attribute [rw] page_token
|
675
|
+
# @return [::String]
|
676
|
+
# Optional. Page start.
|
677
|
+
class FetchGitRefsRequest
|
678
|
+
include ::Google::Protobuf::MessageExts
|
679
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
680
|
+
|
681
|
+
# Type of refs.
|
682
|
+
module RefType
|
683
|
+
# No type specified.
|
684
|
+
REF_TYPE_UNSPECIFIED = 0
|
685
|
+
|
686
|
+
# To fetch tags.
|
687
|
+
TAG = 1
|
688
|
+
|
689
|
+
# To fetch branches.
|
690
|
+
BRANCH = 2
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# Response for fetching git refs.
|
695
|
+
# @!attribute [rw] ref_names
|
696
|
+
# @return [::Array<::String>]
|
697
|
+
# Name of the refs fetched.
|
698
|
+
# @!attribute [rw] next_page_token
|
699
|
+
# @return [::String]
|
700
|
+
# A token identifying a page of results the server should return.
|
701
|
+
class FetchGitRefsResponse
|
702
|
+
include ::Google::Protobuf::MessageExts
|
703
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
704
|
+
end
|
705
|
+
end
|
706
|
+
end
|
707
|
+
end
|
708
|
+
end
|