google-cloud-developer_connect-v1 1.0.1 → 1.2.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.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +1087 -0
  3. data/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb +40 -0
  4. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +1017 -0
  5. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +613 -0
  6. data/lib/google/cloud/developer_connect/v1/rest.rb +1 -0
  7. data/lib/google/cloud/developer_connect/v1/version.rb +1 -1
  8. data/lib/google/cloud/developer_connect/v1.rb +1 -0
  9. data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +22 -1
  10. data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +20 -0
  11. data/lib/google/cloud/developerconnect/v1/insights_config_pb.rb +69 -0
  12. data/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb +956 -0
  13. data/lib/google/cloud/developerconnect/v1/insights_config_service/credentials.rb +47 -0
  14. data/lib/google/cloud/developerconnect/v1/insights_config_service/operations.rb +813 -0
  15. data/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb +69 -0
  16. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb +903 -0
  17. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/operations.rb +914 -0
  18. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb +388 -0
  19. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb +62 -0
  20. data/lib/google/cloud/developerconnect/v1/insights_config_service.rb +64 -0
  21. data/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb +61 -0
  22. data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +515 -8
  23. data/proto_docs/google/cloud/developerconnect/v1/insights_config.rb +353 -0
  24. metadata +23 -23
@@ -0,0 +1,353 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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
+ # The InsightsConfig resource is the core configuration object to capture
25
+ # events from your Software Development Lifecycle. It acts as the central hub
26
+ # for managing how Developer connect understands your application, its runtime
27
+ # environments, and the artifacts deployed within them.
28
+ # @!attribute [rw] app_hub_application
29
+ # @return [::String]
30
+ # Optional. The name of the App Hub Application.
31
+ # Format:
32
+ # projects/\\{project}/locations/\\{location}/applications/\\{application}
33
+ # @!attribute [rw] name
34
+ # @return [::String]
35
+ # Identifier. The name of the InsightsConfig.
36
+ # Format:
37
+ # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insightsConfig}
38
+ # @!attribute [r] create_time
39
+ # @return [::Google::Protobuf::Timestamp]
40
+ # Output only. [Output only] Create timestamp
41
+ # @!attribute [r] update_time
42
+ # @return [::Google::Protobuf::Timestamp]
43
+ # Output only. [Output only] Update timestamp
44
+ # @!attribute [r] runtime_configs
45
+ # @return [::Array<::Google::Cloud::Developerconnect::V1::RuntimeConfig>]
46
+ # Output only. The runtime configurations where the application is deployed.
47
+ # @!attribute [rw] artifact_configs
48
+ # @return [::Array<::Google::Cloud::Developerconnect::V1::ArtifactConfig>]
49
+ # Optional. The artifact configurations of the artifacts that are deployed.
50
+ # @!attribute [rw] state
51
+ # @return [::Google::Cloud::Developerconnect::V1::InsightsConfig::State]
52
+ # Optional. Output only. The state of the InsightsConfig.
53
+ # @!attribute [rw] annotations
54
+ # @return [::Google::Protobuf::Map{::String => ::String}]
55
+ # Optional. User specified annotations. See
56
+ # https://google.aip.dev/148#annotations for more details such as format and
57
+ # size limitations.
58
+ # @!attribute [rw] labels
59
+ # @return [::Google::Protobuf::Map{::String => ::String}]
60
+ # Optional. Set of labels associated with an InsightsConfig.
61
+ # @!attribute [r] reconciling
62
+ # @return [::Boolean]
63
+ # Output only. Reconciling (https://google.aip.dev/128#reconciliation).
64
+ # Set to true if the current state of InsightsConfig does not match the
65
+ # user's intended state, and the service is actively updating the resource to
66
+ # reconcile them. This can happen due to user-triggered updates or
67
+ # system actions like failover or maintenance.
68
+ # @!attribute [r] errors
69
+ # @return [::Array<::Google::Rpc::Status>]
70
+ # Output only. Any errors that occurred while setting up the InsightsConfig.
71
+ # Each error will be in the format: `field_name: error_message`, e.g.
72
+ # GetAppHubApplication: Permission denied while getting App Hub
73
+ # application. Please grant permissions to the P4SA.
74
+ class InsightsConfig
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+
78
+ # @!attribute [rw] key
79
+ # @return [::String]
80
+ # @!attribute [rw] value
81
+ # @return [::String]
82
+ class AnnotationsEntry
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # @!attribute [rw] key
88
+ # @return [::String]
89
+ # @!attribute [rw] value
90
+ # @return [::String]
91
+ class LabelsEntry
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+ end
95
+
96
+ # The state of the InsightsConfig.
97
+ module State
98
+ # No state specified.
99
+ STATE_UNSPECIFIED = 0
100
+
101
+ # The InsightsConfig is pending application discovery/runtime discovery.
102
+ PENDING = 5
103
+
104
+ # The initial discovery process is complete.
105
+ COMPLETE = 3
106
+
107
+ # The InsightsConfig is in an error state.
108
+ ERROR = 4
109
+ end
110
+ end
111
+
112
+ # RuntimeConfig represents the runtimes where the application is
113
+ # deployed.
114
+ # @!attribute [r] gke_workload
115
+ # @return [::Google::Cloud::Developerconnect::V1::GKEWorkload]
116
+ # Output only. Google Kubernetes Engine runtime.
117
+ # @!attribute [r] app_hub_workload
118
+ # @return [::Google::Cloud::Developerconnect::V1::AppHubWorkload]
119
+ # Output only. App Hub Workload.
120
+ # @!attribute [rw] uri
121
+ # @return [::String]
122
+ # Required. Immutable. The URI of the runtime configuration.
123
+ # For GKE, this is the cluster name.
124
+ # For Cloud Run, this is the service name.
125
+ # @!attribute [r] state
126
+ # @return [::Google::Cloud::Developerconnect::V1::RuntimeConfig::State]
127
+ # Output only. The state of the Runtime.
128
+ class RuntimeConfig
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+
132
+ # The state of the runtime in the InsightsConfig.
133
+ # Whether the runtime is linked to the InsightsConfig.
134
+ module State
135
+ # No state specified.
136
+ STATE_UNSPECIFIED = 0
137
+
138
+ # The runtime configuration has been linked to the InsightsConfig.
139
+ LINKED = 1
140
+
141
+ # The runtime configuration has been unlinked to the InsightsConfig.
142
+ UNLINKED = 2
143
+ end
144
+ end
145
+
146
+ # GKEWorkload represents the Google Kubernetes Engine runtime.
147
+ # @!attribute [rw] cluster
148
+ # @return [::String]
149
+ # Required. Immutable. The name of the GKE cluster.
150
+ # Format:
151
+ # `projects/{project}/locations/{location}/clusters/{cluster}`.
152
+ # @!attribute [r] deployment
153
+ # @return [::String]
154
+ # Output only. The name of the GKE deployment.
155
+ # Format:
156
+ # `projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}`.
157
+ class GKEWorkload
158
+ include ::Google::Protobuf::MessageExts
159
+ extend ::Google::Protobuf::MessageExts::ClassMethods
160
+ end
161
+
162
+ # AppHubWorkload represents the App Hub Workload.
163
+ # @!attribute [r] workload
164
+ # @return [::String]
165
+ # Required. Output only. Immutable. The name of the App Hub Workload.
166
+ # Format:
167
+ # `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
168
+ # @!attribute [r] criticality
169
+ # @return [::String]
170
+ # Output only. The criticality of the App Hub Workload.
171
+ # @!attribute [r] environment
172
+ # @return [::String]
173
+ # Output only. The environment of the App Hub Workload.
174
+ class AppHubWorkload
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+
179
+ # The artifact config of the artifact that is deployed.
180
+ # @!attribute [rw] google_artifact_registry
181
+ # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactRegistry]
182
+ # Optional. Set if the artifact is stored in Artifact regsitry.
183
+ # @!attribute [rw] google_artifact_analysis
184
+ # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactAnalysis]
185
+ # Optional. Set if the artifact metadata is stored in Artifact analysis.
186
+ # @!attribute [rw] uri
187
+ # @return [::String]
188
+ # Required. Immutable. The URI of the artifact that is deployed.
189
+ # e.g. `us-docker.pkg.dev/my-project/my-repo/image`.
190
+ # The URI does not include the tag / digest because it captures a lineage of
191
+ # artifacts.
192
+ class ArtifactConfig
193
+ include ::Google::Protobuf::MessageExts
194
+ extend ::Google::Protobuf::MessageExts::ClassMethods
195
+ end
196
+
197
+ # Google Artifact Analysis configurations.
198
+ # @!attribute [rw] project_id
199
+ # @return [::String]
200
+ # Required. The project id of the project where the provenance is stored.
201
+ class GoogleArtifactAnalysis
202
+ include ::Google::Protobuf::MessageExts
203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
204
+ end
205
+
206
+ # Google Artifact Registry configurations.
207
+ # @!attribute [rw] project_id
208
+ # @return [::String]
209
+ # Required. The host project of Artifact Registry.
210
+ # @!attribute [rw] artifact_registry_package
211
+ # @return [::String]
212
+ # Required. Immutable. The name of the artifact registry package.
213
+ class GoogleArtifactRegistry
214
+ include ::Google::Protobuf::MessageExts
215
+ extend ::Google::Protobuf::MessageExts::ClassMethods
216
+ end
217
+
218
+ # Request for creating an InsightsConfig.
219
+ # @!attribute [rw] parent
220
+ # @return [::String]
221
+ # Required. Value for parent.
222
+ # @!attribute [rw] insights_config_id
223
+ # @return [::String]
224
+ # Required. ID of the requesting InsightsConfig.
225
+ # @!attribute [rw] insights_config
226
+ # @return [::Google::Cloud::Developerconnect::V1::InsightsConfig]
227
+ # Required. The resource being created.
228
+ # @!attribute [rw] validate_only
229
+ # @return [::Boolean]
230
+ # Optional. If set, validate the request, but do not actually post it.
231
+ class CreateInsightsConfigRequest
232
+ include ::Google::Protobuf::MessageExts
233
+ extend ::Google::Protobuf::MessageExts::ClassMethods
234
+ end
235
+
236
+ # Request for getting an InsightsConfig.
237
+ # @!attribute [rw] name
238
+ # @return [::String]
239
+ # Required. Name of the resource.
240
+ class GetInsightsConfigRequest
241
+ include ::Google::Protobuf::MessageExts
242
+ extend ::Google::Protobuf::MessageExts::ClassMethods
243
+ end
244
+
245
+ # Request for requesting list of InsightsConfigs.
246
+ # @!attribute [rw] parent
247
+ # @return [::String]
248
+ # Required. Parent value for ListInsightsConfigsRequest.
249
+ # @!attribute [rw] page_size
250
+ # @return [::Integer]
251
+ # Optional. Requested page size. Server may return fewer items than
252
+ # requested. If unspecified, server will pick an appropriate default.
253
+ # @!attribute [rw] page_token
254
+ # @return [::String]
255
+ # Optional. A token identifying a page of results the server should return.
256
+ # @!attribute [rw] filter
257
+ # @return [::String]
258
+ # Optional. Filtering results. See https://google.aip.dev/160 for more
259
+ # details. Filter string, adhering to the rules in
260
+ # https://google.aip.dev/160. List only InsightsConfigs matching the filter.
261
+ # If filter is empty, all InsightsConfigs are listed.
262
+ # @!attribute [rw] order_by
263
+ # @return [::String]
264
+ # Optional. Hint for how to order the results.
265
+ class ListInsightsConfigsRequest
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
270
+ # Request for response to listing InsightsConfigs.
271
+ # @!attribute [rw] insights_configs
272
+ # @return [::Array<::Google::Cloud::Developerconnect::V1::InsightsConfig>]
273
+ # The list of InsightsConfigs.
274
+ # @!attribute [rw] next_page_token
275
+ # @return [::String]
276
+ # A token identifying a page of results the server should return.
277
+ # @!attribute [rw] unreachable
278
+ # @return [::Array<::String>]
279
+ # Locations that could not be reached.
280
+ class ListInsightsConfigsResponse
281
+ include ::Google::Protobuf::MessageExts
282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
283
+ end
284
+
285
+ # Request for deleting an InsightsConfig.
286
+ # @!attribute [rw] name
287
+ # @return [::String]
288
+ # Required. Value for parent.
289
+ # @!attribute [rw] request_id
290
+ # @return [::String]
291
+ # Optional. An optional request ID to identify requests. Specify a unique
292
+ # request ID so that if you must retry your request, the server will know to
293
+ # ignore the request if it has already been completed. The server will
294
+ # guarantee that for at least 60 minutes after the first request.
295
+ #
296
+ # For example, consider a situation where you make an initial request and the
297
+ # request times out. If you make the request again with the same request
298
+ # ID, the server can check if original operation with the same request ID
299
+ # was received, and if so, will ignore the second request. This prevents
300
+ # clients from accidentally creating duplicate commitments.
301
+ #
302
+ # The request ID must be a valid UUID with the exception that zero UUID is
303
+ # not supported (00000000-0000-0000-0000-000000000000).
304
+ # @!attribute [rw] validate_only
305
+ # @return [::Boolean]
306
+ # Optional. If set, validate the request, but do not actually post it.
307
+ # @!attribute [rw] etag
308
+ # @return [::String]
309
+ # Optional. This checksum is computed by the server based on the value of
310
+ # other fields, and may be sent on update and delete requests to ensure the
311
+ # client has an up-to-date value before proceeding.
312
+ class DeleteInsightsConfigRequest
313
+ include ::Google::Protobuf::MessageExts
314
+ extend ::Google::Protobuf::MessageExts::ClassMethods
315
+ end
316
+
317
+ # Request for updating an InsightsConfig.
318
+ # @!attribute [rw] insights_config
319
+ # @return [::Google::Cloud::Developerconnect::V1::InsightsConfig]
320
+ # Required. The resource being updated.
321
+ # @!attribute [rw] request_id
322
+ # @return [::String]
323
+ # Optional. An optional request ID to identify requests. Specify a unique
324
+ # request ID so that if you must retry your request, the server will know to
325
+ # ignore the request if it has already been completed. The server will
326
+ # guarantee that for at least 60 minutes after the first request.
327
+ #
328
+ # For example, consider a situation where you make an initial request and the
329
+ # request times out. If you make the request again with the same request
330
+ # ID, the server can check if original operation with the same request ID
331
+ # was received, and if so, will ignore the second request. This prevents
332
+ # clients from accidentally creating duplicate commitments.
333
+ #
334
+ # The request ID must be a valid UUID with the exception that zero UUID is
335
+ # not supported (00000000-0000-0000-0000-000000000000).
336
+ # @!attribute [rw] allow_missing
337
+ # @return [::Boolean]
338
+ # Optional. If set to true, and the insightsConfig is not found a new
339
+ # insightsConfig will be created. In this situation `update_mask` is ignored.
340
+ # The creation will succeed only if the input insightsConfig has all the
341
+ # necessary information (e.g a github_config with both user_oauth_token and
342
+ # installation_id properties).
343
+ # @!attribute [rw] validate_only
344
+ # @return [::Boolean]
345
+ # Optional. If set, validate the request, but do not actually post it.
346
+ class UpdateInsightsConfigRequest
347
+ include ::Google::Protobuf::MessageExts
348
+ extend ::Google::Protobuf::MessageExts::ClassMethods
349
+ end
350
+ end
351
+ end
352
+ end
353
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-developer_connect-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -13,22 +13,16 @@ dependencies:
13
13
  name: gapic-common
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 0.25.0
19
- - - "<"
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: 2.a
18
+ version: '1.0'
22
19
  type: :runtime
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
22
  requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: 0.25.0
29
- - - "<"
23
+ - - "~>"
30
24
  - !ruby/object:Gem::Version
31
- version: 2.a
25
+ version: '1.0'
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: google-cloud-errors
34
28
  requirement: !ruby/object:Gem::Requirement
@@ -47,22 +41,16 @@ dependencies:
47
41
  name: google-cloud-location
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: '0.7'
53
- - - "<"
44
+ - - "~>"
54
45
  - !ruby/object:Gem::Version
55
- version: 2.a
46
+ version: '1.0'
56
47
  type: :runtime
57
48
  prerelease: false
58
49
  version_requirements: !ruby/object:Gem::Requirement
59
50
  requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0.7'
63
- - - "<"
51
+ - - "~>"
64
52
  - !ruby/object:Gem::Version
65
- version: 2.a
53
+ version: '1.0'
66
54
  description: Developer Connect streamlines integration with third-party source code
67
55
  management platforms by simplifying authentication, authorization, and networking
68
56
  configuration. Note that google-cloud-developer_connect-v1 is a version-specific
@@ -93,6 +81,17 @@ files:
93
81
  - lib/google/cloud/developer_connect/v1/version.rb
94
82
  - lib/google/cloud/developerconnect/v1/developer_connect_pb.rb
95
83
  - lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb
84
+ - lib/google/cloud/developerconnect/v1/insights_config_pb.rb
85
+ - lib/google/cloud/developerconnect/v1/insights_config_service.rb
86
+ - lib/google/cloud/developerconnect/v1/insights_config_service/client.rb
87
+ - lib/google/cloud/developerconnect/v1/insights_config_service/credentials.rb
88
+ - lib/google/cloud/developerconnect/v1/insights_config_service/operations.rb
89
+ - lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb
90
+ - lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb
91
+ - lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb
92
+ - lib/google/cloud/developerconnect/v1/insights_config_service/rest/operations.rb
93
+ - lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb
94
+ - lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb
96
95
  - proto_docs/README.md
97
96
  - proto_docs/google/api/client.rb
98
97
  - proto_docs/google/api/field_behavior.rb
@@ -100,6 +99,7 @@ files:
100
99
  - proto_docs/google/api/launch_stage.rb
101
100
  - proto_docs/google/api/resource.rb
102
101
  - proto_docs/google/cloud/developerconnect/v1/developer_connect.rb
102
+ - proto_docs/google/cloud/developerconnect/v1/insights_config.rb
103
103
  - proto_docs/google/longrunning/operations.rb
104
104
  - proto_docs/google/protobuf/any.rb
105
105
  - proto_docs/google/protobuf/duration.rb
@@ -118,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: '3.0'
121
+ version: '3.1'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.6.8
128
+ rubygems_version: 3.6.9
129
129
  specification_version: 4
130
130
  summary: Connect third-party source code management to Google.
131
131
  test_files: []