google-apis-developerconnect_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module DeveloperconnectV1
18
+ # Version of the google-apis-developerconnect_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.15.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20240523"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,400 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DeveloperconnectV1
24
+
25
+ class CancelOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Connection
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Empty
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class FetchGitHubInstallationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class FetchGitRefsResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class FetchLinkableGitRepositoriesResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class FetchReadTokenRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class FetchReadTokenResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class FetchReadWriteTokenRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class FetchReadWriteTokenResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GitHubConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GitRepositoryLink
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Installation
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class InstallationState
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class LinkableGitRepository
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListConnectionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListGitRepositoryLinksResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListLocationsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListOperationsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Location
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class OAuthCredential
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Operation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class OperationMetadata
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Status
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class CancelOperationRequest
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ end
173
+ end
174
+
175
+ class Connection
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ hash :annotations, as: 'annotations'
179
+ property :create_time, as: 'createTime'
180
+ property :delete_time, as: 'deleteTime'
181
+ property :disabled, as: 'disabled'
182
+ property :etag, as: 'etag'
183
+ property :github_config, as: 'githubConfig', class: Google::Apis::DeveloperconnectV1::GitHubConfig, decorator: Google::Apis::DeveloperconnectV1::GitHubConfig::Representation
184
+
185
+ property :installation_state, as: 'installationState', class: Google::Apis::DeveloperconnectV1::InstallationState, decorator: Google::Apis::DeveloperconnectV1::InstallationState::Representation
186
+
187
+ hash :labels, as: 'labels'
188
+ property :name, as: 'name'
189
+ property :reconciling, as: 'reconciling'
190
+ property :uid, as: 'uid'
191
+ property :update_time, as: 'updateTime'
192
+ end
193
+ end
194
+
195
+ class Empty
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ end
199
+ end
200
+
201
+ class FetchGitHubInstallationsResponse
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ collection :installations, as: 'installations', class: Google::Apis::DeveloperconnectV1::Installation, decorator: Google::Apis::DeveloperconnectV1::Installation::Representation
205
+
206
+ end
207
+ end
208
+
209
+ class FetchGitRefsResponse
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :next_page_token, as: 'nextPageToken'
213
+ collection :ref_names, as: 'refNames'
214
+ end
215
+ end
216
+
217
+ class FetchLinkableGitRepositoriesResponse
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ collection :linkable_git_repositories, as: 'linkableGitRepositories', class: Google::Apis::DeveloperconnectV1::LinkableGitRepository, decorator: Google::Apis::DeveloperconnectV1::LinkableGitRepository::Representation
221
+
222
+ property :next_page_token, as: 'nextPageToken'
223
+ end
224
+ end
225
+
226
+ class FetchReadTokenRequest
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ end
230
+ end
231
+
232
+ class FetchReadTokenResponse
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :expiration_time, as: 'expirationTime'
236
+ property :git_username, as: 'gitUsername'
237
+ property :token, as: 'token'
238
+ end
239
+ end
240
+
241
+ class FetchReadWriteTokenRequest
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ end
245
+ end
246
+
247
+ class FetchReadWriteTokenResponse
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ property :expiration_time, as: 'expirationTime'
251
+ property :git_username, as: 'gitUsername'
252
+ property :token, as: 'token'
253
+ end
254
+ end
255
+
256
+ class GitHubConfig
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ property :app_installation_id, :numeric_string => true, as: 'appInstallationId'
260
+ property :authorizer_credential, as: 'authorizerCredential', class: Google::Apis::DeveloperconnectV1::OAuthCredential, decorator: Google::Apis::DeveloperconnectV1::OAuthCredential::Representation
261
+
262
+ property :github_app, as: 'githubApp'
263
+ property :installation_uri, as: 'installationUri'
264
+ end
265
+ end
266
+
267
+ class GitRepositoryLink
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ hash :annotations, as: 'annotations'
271
+ property :clone_uri, as: 'cloneUri'
272
+ property :create_time, as: 'createTime'
273
+ property :delete_time, as: 'deleteTime'
274
+ property :etag, as: 'etag'
275
+ hash :labels, as: 'labels'
276
+ property :name, as: 'name'
277
+ property :reconciling, as: 'reconciling'
278
+ property :uid, as: 'uid'
279
+ property :update_time, as: 'updateTime'
280
+ end
281
+ end
282
+
283
+ class Installation
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :id, :numeric_string => true, as: 'id'
287
+ property :name, as: 'name'
288
+ property :type, as: 'type'
289
+ end
290
+ end
291
+
292
+ class InstallationState
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :action_uri, as: 'actionUri'
296
+ property :message, as: 'message'
297
+ property :stage, as: 'stage'
298
+ end
299
+ end
300
+
301
+ class LinkableGitRepository
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :clone_uri, as: 'cloneUri'
305
+ end
306
+ end
307
+
308
+ class ListConnectionsResponse
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ collection :connections, as: 'connections', class: Google::Apis::DeveloperconnectV1::Connection, decorator: Google::Apis::DeveloperconnectV1::Connection::Representation
312
+
313
+ property :next_page_token, as: 'nextPageToken'
314
+ collection :unreachable, as: 'unreachable'
315
+ end
316
+ end
317
+
318
+ class ListGitRepositoryLinksResponse
319
+ # @private
320
+ class Representation < Google::Apis::Core::JsonRepresentation
321
+ collection :git_repository_links, as: 'gitRepositoryLinks', class: Google::Apis::DeveloperconnectV1::GitRepositoryLink, decorator: Google::Apis::DeveloperconnectV1::GitRepositoryLink::Representation
322
+
323
+ property :next_page_token, as: 'nextPageToken'
324
+ collection :unreachable, as: 'unreachable'
325
+ end
326
+ end
327
+
328
+ class ListLocationsResponse
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ collection :locations, as: 'locations', class: Google::Apis::DeveloperconnectV1::Location, decorator: Google::Apis::DeveloperconnectV1::Location::Representation
332
+
333
+ property :next_page_token, as: 'nextPageToken'
334
+ end
335
+ end
336
+
337
+ class ListOperationsResponse
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ property :next_page_token, as: 'nextPageToken'
341
+ collection :operations, as: 'operations', class: Google::Apis::DeveloperconnectV1::Operation, decorator: Google::Apis::DeveloperconnectV1::Operation::Representation
342
+
343
+ end
344
+ end
345
+
346
+ class Location
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ property :display_name, as: 'displayName'
350
+ hash :labels, as: 'labels'
351
+ property :location_id, as: 'locationId'
352
+ hash :metadata, as: 'metadata'
353
+ property :name, as: 'name'
354
+ end
355
+ end
356
+
357
+ class OAuthCredential
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :oauth_token_secret_version, as: 'oauthTokenSecretVersion'
361
+ property :username, as: 'username'
362
+ end
363
+ end
364
+
365
+ class Operation
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ property :done, as: 'done'
369
+ property :error, as: 'error', class: Google::Apis::DeveloperconnectV1::Status, decorator: Google::Apis::DeveloperconnectV1::Status::Representation
370
+
371
+ hash :metadata, as: 'metadata'
372
+ property :name, as: 'name'
373
+ hash :response, as: 'response'
374
+ end
375
+ end
376
+
377
+ class OperationMetadata
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :api_version, as: 'apiVersion'
381
+ property :create_time, as: 'createTime'
382
+ property :end_time, as: 'endTime'
383
+ property :requested_cancellation, as: 'requestedCancellation'
384
+ property :status_message, as: 'statusMessage'
385
+ property :target, as: 'target'
386
+ property :verb, as: 'verb'
387
+ end
388
+ end
389
+
390
+ class Status
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ property :code, as: 'code'
394
+ collection :details, as: 'details'
395
+ property :message, as: 'message'
396
+ end
397
+ end
398
+ end
399
+ end
400
+ end