google-cloud-developer_connect-v1 1.4.0 → 1.5.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 (21) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +217 -5
  3. data/lib/google/cloud/developer_connect/v1/developer_connect/operations.rb +20 -3
  4. data/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb +55 -10
  5. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +183 -2
  6. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +122 -0
  7. data/lib/google/cloud/developer_connect/v1/version.rb +1 -1
  8. data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +11 -1
  9. data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +7 -2
  10. data/lib/google/cloud/developerconnect/v1/insights_config_pb.rb +10 -1
  11. data/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb +230 -5
  12. data/lib/google/cloud/developerconnect/v1/insights_config_service/operations.rb +20 -3
  13. data/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb +21 -0
  14. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb +196 -2
  15. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb +122 -0
  16. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb +1 -1
  17. data/lib/google/cloud/developerconnect/v1/insights_config_service.rb +1 -1
  18. data/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb +6 -2
  19. data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +214 -19
  20. data/proto_docs/google/cloud/developerconnect/v1/insights_config.rb +207 -4
  21. metadata +1 -1
@@ -23,13 +23,20 @@ module Google
23
23
  module V1
24
24
  # The InsightsConfig resource is the core configuration object to capture
25
25
  # events from your Software Development Lifecycle. It acts as the central hub
26
- # for managing how Developer connect understands your application, its runtime
26
+ # for managing how Developer Connect understands your application, its runtime
27
27
  # environments, and the artifacts deployed within them.
28
28
  # @!attribute [rw] app_hub_application
29
29
  # @return [::String]
30
30
  # Optional. The name of the App Hub Application.
31
31
  # Format:
32
32
  # projects/\\{project}/locations/\\{location}/applications/\\{application}
33
+ #
34
+ # Note: The following fields are mutually exclusive: `app_hub_application`, `projects`. If a field in that set is populated, all other fields in the set will automatically be cleared.
35
+ # @!attribute [rw] projects
36
+ # @return [::Google::Cloud::Developerconnect::V1::Projects]
37
+ # Optional. The projects to track with the InsightsConfig.
38
+ #
39
+ # Note: The following fields are mutually exclusive: `projects`, `app_hub_application`. If a field in that set is populated, all other fields in the set will automatically be cleared.
33
40
  # @!attribute [rw] name
34
41
  # @return [::String]
35
42
  # Identifier. The name of the InsightsConfig.
@@ -37,10 +44,10 @@ module Google
37
44
  # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insightsConfig}
38
45
  # @!attribute [r] create_time
39
46
  # @return [::Google::Protobuf::Timestamp]
40
- # Output only. [Output only] Create timestamp
47
+ # Output only. Create timestamp.
41
48
  # @!attribute [r] update_time
42
49
  # @return [::Google::Protobuf::Timestamp]
43
- # Output only. [Output only] Update timestamp
50
+ # Output only. Update timestamp.
44
51
  # @!attribute [r] runtime_configs
45
52
  # @return [::Array<::Google::Cloud::Developerconnect::V1::RuntimeConfig>]
46
53
  # Output only. The runtime configurations where the application is deployed.
@@ -109,14 +116,38 @@ module Google
109
116
  end
110
117
  end
111
118
 
119
+ # Projects represents the projects to track with the InsightsConfig.
120
+ # @!attribute [rw] project_ids
121
+ # @return [::Array<::String>]
122
+ # Optional. The project IDs.
123
+ # Format: \\{project}
124
+ class Projects
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
112
129
  # RuntimeConfig represents the runtimes where the application is
113
130
  # deployed.
114
131
  # @!attribute [r] gke_workload
115
132
  # @return [::Google::Cloud::Developerconnect::V1::GKEWorkload]
116
133
  # Output only. Google Kubernetes Engine runtime.
134
+ #
135
+ # Note: The following fields are mutually exclusive: `gke_workload`, `google_cloud_run`. If a field in that set is populated, all other fields in the set will automatically be cleared.
136
+ # @!attribute [r] google_cloud_run
137
+ # @return [::Google::Cloud::Developerconnect::V1::GoogleCloudRun]
138
+ # Output only. Cloud Run runtime.
139
+ #
140
+ # Note: The following fields are mutually exclusive: `google_cloud_run`, `gke_workload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
117
141
  # @!attribute [r] app_hub_workload
118
142
  # @return [::Google::Cloud::Developerconnect::V1::AppHubWorkload]
119
143
  # Output only. App Hub Workload.
144
+ #
145
+ # Note: The following fields are mutually exclusive: `app_hub_workload`, `app_hub_service`. If a field in that set is populated, all other fields in the set will automatically be cleared.
146
+ # @!attribute [r] app_hub_service
147
+ # @return [::Google::Cloud::Developerconnect::V1::AppHubService]
148
+ # Output only. App Hub Service.
149
+ #
150
+ # Note: The following fields are mutually exclusive: `app_hub_service`, `app_hub_workload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
120
151
  # @!attribute [rw] uri
121
152
  # @return [::String]
122
153
  # Required. Immutable. The URI of the runtime configuration.
@@ -159,6 +190,17 @@ module Google
159
190
  extend ::Google::Protobuf::MessageExts::ClassMethods
160
191
  end
161
192
 
193
+ # GoogleCloudRun represents the Cloud Run runtime.
194
+ # @!attribute [rw] service_uri
195
+ # @return [::String]
196
+ # Required. Immutable. The name of the Cloud Run service.
197
+ # Format:
198
+ # `projects/{project}/locations/{location}/services/{service}`.
199
+ class GoogleCloudRun
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+ end
203
+
162
204
  # AppHubWorkload represents the App Hub Workload.
163
205
  # @!attribute [r] workload
164
206
  # @return [::String]
@@ -176,10 +218,27 @@ module Google
176
218
  extend ::Google::Protobuf::MessageExts::ClassMethods
177
219
  end
178
220
 
221
+ # AppHubService represents the App Hub Service.
222
+ # @!attribute [r] apphub_service
223
+ # @return [::String]
224
+ # Required. Output only. Immutable. The name of the App Hub Service.
225
+ # Format:
226
+ # `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
227
+ # @!attribute [r] criticality
228
+ # @return [::String]
229
+ # Output only. The criticality of the App Hub Service.
230
+ # @!attribute [r] environment
231
+ # @return [::String]
232
+ # Output only. The environment of the App Hub Service.
233
+ class AppHubService
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
179
238
  # The artifact config of the artifact that is deployed.
180
239
  # @!attribute [rw] google_artifact_registry
181
240
  # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactRegistry]
182
- # Optional. Set if the artifact is stored in Artifact regsitry.
241
+ # Optional. Set if the artifact is stored in Artifact registry.
183
242
  # @!attribute [rw] google_artifact_analysis
184
243
  # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactAnalysis]
185
244
  # Optional. Set if the artifact metadata is stored in Artifact analysis.
@@ -215,6 +274,150 @@ module Google
215
274
  extend ::Google::Protobuf::MessageExts::ClassMethods
216
275
  end
217
276
 
277
+ # The DeploymentEvent resource represents the deployment of the artifact within
278
+ # the InsightsConfig resource.
279
+ # @!attribute [rw] name
280
+ # @return [::String]
281
+ # Identifier. The name of the DeploymentEvent. This name is provided by
282
+ # Developer Connect insights. Format:
283
+ # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid}
284
+ # @!attribute [r] create_time
285
+ # @return [::Google::Protobuf::Timestamp]
286
+ # Output only. The create time of the DeploymentEvent.
287
+ # @!attribute [r] update_time
288
+ # @return [::Google::Protobuf::Timestamp]
289
+ # Output only. The update time of the DeploymentEvent.
290
+ # @!attribute [r] runtime_config
291
+ # @return [::Google::Cloud::Developerconnect::V1::RuntimeConfig]
292
+ # Output only. The runtime configurations where the DeploymentEvent happened.
293
+ # @!attribute [r] runtime_deployment_uri
294
+ # @return [::String]
295
+ # Output only. The runtime assigned URI of the DeploymentEvent.
296
+ # For GKE, this is the fully qualified replica set uri.
297
+ # e.g.
298
+ # container.googleapis.com/projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/k8s/namespaces/\\{namespace}/apps/replicasets/\\{replica-set-id}
299
+ # For Cloud Run, this is the revision name.
300
+ # @!attribute [r] state
301
+ # @return [::Google::Cloud::Developerconnect::V1::DeploymentEvent::State]
302
+ # Output only. The state of the DeploymentEvent.
303
+ # @!attribute [r] artifact_deployments
304
+ # @return [::Array<::Google::Cloud::Developerconnect::V1::ArtifactDeployment>]
305
+ # Output only. The artifact deployments of the DeploymentEvent. Each artifact
306
+ # deployment contains the artifact uri and the runtime configuration uri. For
307
+ # GKE, this would be all the containers images that are deployed in the pod.
308
+ # @!attribute [r] deploy_time
309
+ # @return [::Google::Protobuf::Timestamp]
310
+ # Output only. The time at which the DeploymentEvent was deployed.
311
+ # This would be the min of all ArtifactDeployment deploy_times.
312
+ # @!attribute [r] undeploy_time
313
+ # @return [::Google::Protobuf::Timestamp]
314
+ # Output only. The time at which the DeploymentEvent was undeployed, all
315
+ # artifacts are considered undeployed once this time is set. This would be
316
+ # the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment
317
+ # is still active (i.e. does not have an undeploy_time), this field will be
318
+ # empty.
319
+ class DeploymentEvent
320
+ include ::Google::Protobuf::MessageExts
321
+ extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ # The state of the DeploymentEvent.
324
+ module State
325
+ # No state specified.
326
+ STATE_UNSPECIFIED = 0
327
+
328
+ # The deployment is active in the runtime.
329
+ STATE_ACTIVE = 1
330
+
331
+ # The deployment is not in the runtime.
332
+ STATE_INACTIVE = 2
333
+ end
334
+ end
335
+
336
+ # Request for getting a DeploymentEvent.
337
+ # @!attribute [rw] name
338
+ # @return [::String]
339
+ # Required. The name of the deployment event to retrieve.
340
+ # Format:
341
+ # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid}
342
+ class GetDeploymentEventRequest
343
+ include ::Google::Protobuf::MessageExts
344
+ extend ::Google::Protobuf::MessageExts::ClassMethods
345
+ end
346
+
347
+ # Request for requesting list of DeploymentEvents.
348
+ # @!attribute [rw] parent
349
+ # @return [::String]
350
+ # Required. The parent insights config that owns this collection of
351
+ # deployment events. Format:
352
+ # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}
353
+ # @!attribute [rw] page_size
354
+ # @return [::Integer]
355
+ # Optional. The maximum number of deployment events to return. The service
356
+ # may return fewer than this value. If unspecified, at most 50 deployment
357
+ # events will be returned. The maximum value is 1000; values above 1000 will
358
+ # be coerced to 1000.
359
+ # @!attribute [rw] page_token
360
+ # @return [::String]
361
+ # Optional. A page token, received from a previous `ListDeploymentEvents`
362
+ # call. Provide this to retrieve the subsequent page.
363
+ #
364
+ # When paginating, all other parameters provided to `ListDeploymentEvents`
365
+ # must match the call that provided the page token.
366
+ # @!attribute [rw] filter
367
+ # @return [::String]
368
+ # Optional. Filter expression that matches a subset of the DeploymentEvents.
369
+ # https://google.aip.dev/160.
370
+ class ListDeploymentEventsRequest
371
+ include ::Google::Protobuf::MessageExts
372
+ extend ::Google::Protobuf::MessageExts::ClassMethods
373
+ end
374
+
375
+ # Response to listing DeploymentEvents.
376
+ # @!attribute [rw] deployment_events
377
+ # @return [::Array<::Google::Cloud::Developerconnect::V1::DeploymentEvent>]
378
+ # The list of DeploymentEvents.
379
+ # @!attribute [rw] next_page_token
380
+ # @return [::String]
381
+ # A token, which can be sent as `page_token` to retrieve the next page.
382
+ # If this field is omitted, there are no subsequent pages.
383
+ class ListDeploymentEventsResponse
384
+ include ::Google::Protobuf::MessageExts
385
+ extend ::Google::Protobuf::MessageExts::ClassMethods
386
+ end
387
+
388
+ # The ArtifactDeployment resource represents the deployment of the artifact
389
+ # within the InsightsConfig resource.
390
+ # @!attribute [r] id
391
+ # @return [::String]
392
+ # Output only. Unique identifier of `ArtifactDeployment`.
393
+ # @!attribute [r] artifact_reference
394
+ # @return [::String]
395
+ # Output only. The artifact that is deployed.
396
+ # @!attribute [r] artifact_alias
397
+ # @return [::String]
398
+ # Output only. The artifact alias in the deployment spec, with Tag/SHA.
399
+ # e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
400
+ # @!attribute [r] source_commit_uris
401
+ # @return [::Array<::String>]
402
+ # Output only. The source commits at which this artifact was built. Extracted
403
+ # from provenance.
404
+ # @!attribute [r] deploy_time
405
+ # @return [::Google::Protobuf::Timestamp]
406
+ # Output only. The time at which the deployment was deployed.
407
+ # @!attribute [r] undeploy_time
408
+ # @return [::Google::Protobuf::Timestamp]
409
+ # Output only. The time at which the deployment was undeployed, all artifacts
410
+ # are considered undeployed once this time is set.
411
+ # @!attribute [r] container_status_summary
412
+ # @return [::String]
413
+ # Output only. The summary of container status of the artifact deployment.
414
+ # Format as `ContainerStatusState-Reason : restartCount`
415
+ # e.g. "Waiting-ImagePullBackOff : 3"
416
+ class ArtifactDeployment
417
+ include ::Google::Protobuf::MessageExts
418
+ extend ::Google::Protobuf::MessageExts::ClassMethods
419
+ end
420
+
218
421
  # Request for creating an InsightsConfig.
219
422
  # @!attribute [rw] parent
220
423
  # @return [::String]
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.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC