google-cloud-developer_connect-v1 1.4.1 → 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.
@@ -28,7 +28,7 @@ module Google
28
28
  #
29
29
  # The InsightsConfig resource is the core configuration object to capture
30
30
  # events from your Software Development Lifecycle. It acts as the central hub
31
- # for managing how Developer connect understands your application, its runtime
31
+ # for managing how Developer Connect understands your application, its runtime
32
32
  # environments, and the artifacts deployed within them.
33
33
  # A user can create an InsightsConfig, list previously-requested
34
34
  # InsightsConfigs or get InsightsConfigs by their ID to determine the status of
@@ -49,8 +49,12 @@ module Google
49
49
  rpc :GetInsightsConfig, ::Google::Cloud::Developerconnect::V1::GetInsightsConfigRequest, ::Google::Cloud::Developerconnect::V1::InsightsConfig
50
50
  # Updates the parameters of a single InsightsConfig.
51
51
  rpc :UpdateInsightsConfig, ::Google::Cloud::Developerconnect::V1::UpdateInsightsConfigRequest, ::Google::Longrunning::Operation
52
- # Delete a single Insight.
52
+ # Deletes a single Insight.
53
53
  rpc :DeleteInsightsConfig, ::Google::Cloud::Developerconnect::V1::DeleteInsightsConfigRequest, ::Google::Longrunning::Operation
54
+ # Gets a single Deployment Event.
55
+ rpc :GetDeploymentEvent, ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest, ::Google::Cloud::Developerconnect::V1::DeploymentEvent
56
+ # Lists Deployment Events in a given insights config.
57
+ rpc :ListDeploymentEvents, ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest, ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse
54
58
  end
55
59
 
56
60
  Stub = Service.rpc_stub_class
@@ -63,32 +63,42 @@ module Google
63
63
  # @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig]
64
64
  # Configuration for connections to github.com.
65
65
  #
66
- # Note: The following fields are mutually exclusive: `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
66
+ # Note: The following fields are mutually exclusive: `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
67
67
  # @!attribute [rw] github_enterprise_config
68
68
  # @return [::Google::Cloud::DeveloperConnect::V1::GitHubEnterpriseConfig]
69
69
  # Configuration for connections to an instance of GitHub Enterprise.
70
70
  #
71
- # Note: The following fields are mutually exclusive: `github_enterprise_config`, `github_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
+ # Note: The following fields are mutually exclusive: `github_enterprise_config`, `github_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
72
72
  # @!attribute [rw] gitlab_config
73
73
  # @return [::Google::Cloud::DeveloperConnect::V1::GitLabConfig]
74
74
  # Configuration for connections to gitlab.com.
75
75
  #
76
- # Note: The following fields are mutually exclusive: `gitlab_config`, `github_config`, `github_enterprise_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
76
+ # Note: The following fields are mutually exclusive: `gitlab_config`, `github_config`, `github_enterprise_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
77
77
  # @!attribute [rw] gitlab_enterprise_config
78
78
  # @return [::Google::Cloud::DeveloperConnect::V1::GitLabEnterpriseConfig]
79
79
  # Configuration for connections to an instance of GitLab Enterprise.
80
80
  #
81
- # Note: The following fields are mutually exclusive: `gitlab_enterprise_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
81
+ # Note: The following fields are mutually exclusive: `gitlab_enterprise_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
82
82
  # @!attribute [rw] bitbucket_data_center_config
83
83
  # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketDataCenterConfig]
84
84
  # Configuration for connections to an instance of Bitbucket Data Center.
85
85
  #
86
- # Note: The following fields are mutually exclusive: `bitbucket_data_center_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
86
+ # Note: The following fields are mutually exclusive: `bitbucket_data_center_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
87
87
  # @!attribute [rw] bitbucket_cloud_config
88
88
  # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketCloudConfig]
89
89
  # Configuration for connections to an instance of Bitbucket Clouds.
90
90
  #
91
- # Note: The following fields are mutually exclusive: `bitbucket_cloud_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
91
+ # Note: The following fields are mutually exclusive: `bitbucket_cloud_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
92
+ # @!attribute [rw] secure_source_manager_instance_config
93
+ # @return [::Google::Cloud::DeveloperConnect::V1::SecureSourceManagerInstanceConfig]
94
+ # Configuration for connections to an instance of Secure Source Manager.
95
+ #
96
+ # Note: The following fields are mutually exclusive: `secure_source_manager_instance_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
97
+ # @!attribute [rw] http_config
98
+ # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig]
99
+ # Optional. Configuration for connections to an HTTP service provider.
100
+ #
101
+ # Note: The following fields are mutually exclusive: `http_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
92
102
  # @!attribute [rw] name
93
103
  # @return [::String]
94
104
  # Identifier. The resource name of the connection, in the format
@@ -177,6 +187,14 @@ module Google
177
187
  # @return [::Boolean]
178
188
  # Optional. Setting this to true allows the git proxy to be used for
179
189
  # performing git operations on the repositories linked in the connection.
190
+ # @!attribute [r] http_proxy_base_uri
191
+ # @return [::String]
192
+ # Output only. The base URI for the HTTP proxy endpoint. Has
193
+ # the format
194
+ # `https://{generatedID}-c-h-{shortRegion}.developerconnect.dev`
195
+ # Populated only when enabled is set to true.
196
+ # This endpoint is used by other Google services that integrate with
197
+ # Developer Connect.
180
198
  class GitProxyConfig
181
199
  include ::Google::Protobuf::MessageExts
182
200
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -220,6 +238,57 @@ module Google
220
238
  end
221
239
  end
222
240
 
241
+ # Defines the configuration for connections to an HTTP service provider.
242
+ # @!attribute [rw] basic_authentication
243
+ # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication]
244
+ # Optional. Basic authentication with username and password.
245
+ #
246
+ # Note: The following fields are mutually exclusive: `basic_authentication`, `bearer_token_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.
247
+ # @!attribute [rw] bearer_token_authentication
248
+ # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication]
249
+ # Optional. Bearer token authentication with a token.
250
+ #
251
+ # Note: The following fields are mutually exclusive: `bearer_token_authentication`, `basic_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.
252
+ # @!attribute [rw] host_uri
253
+ # @return [::String]
254
+ # Required. Immutable. The service provider's https endpoint.
255
+ # @!attribute [rw] service_directory_config
256
+ # @return [::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig]
257
+ # Optional. Configuration for using Service Directory to privately connect to
258
+ # a HTTP service provider. This should only be set if the Http service
259
+ # provider is hosted on-premises and not reachable by public internet. If
260
+ # this field is left empty, calls to the HTTP service provider will be made
261
+ # over the public internet.
262
+ # @!attribute [rw] ssl_ca_certificate
263
+ # @return [::String]
264
+ # Optional. The SSL certificate to use for requests to the HTTP service
265
+ # provider.
266
+ class GenericHTTPEndpointConfig
267
+ include ::Google::Protobuf::MessageExts
268
+ extend ::Google::Protobuf::MessageExts::ClassMethods
269
+
270
+ # Basic authentication with username and password.
271
+ # @!attribute [rw] password_secret_version
272
+ # @return [::String]
273
+ # The password SecretManager secret version to authenticate as.
274
+ # @!attribute [rw] username
275
+ # @return [::String]
276
+ # Required. The username to authenticate as.
277
+ class BasicAuthentication
278
+ include ::Google::Protobuf::MessageExts
279
+ extend ::Google::Protobuf::MessageExts::ClassMethods
280
+ end
281
+
282
+ # Bearer token authentication with a token.
283
+ # @!attribute [rw] token_secret_version
284
+ # @return [::String]
285
+ # Optional. The token SecretManager secret version to authenticate as.
286
+ class BearerTokenAuthentication
287
+ include ::Google::Protobuf::MessageExts
288
+ extend ::Google::Protobuf::MessageExts::ClassMethods
289
+ end
290
+ end
291
+
223
292
  # Configuration for connections to github.com.
224
293
  # @!attribute [rw] github_app
225
294
  # @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig::GitHubApp]
@@ -252,6 +321,9 @@ module Google
252
321
 
253
322
  # The Firebase GitHub Application.
254
323
  FIREBASE = 2
324
+
325
+ # The Gemini Code Assist Application.
326
+ GEMINI_CODE_ASSIST = 3
255
327
  end
256
328
  end
257
329
 
@@ -268,11 +340,15 @@ module Google
268
340
  # @!attribute [rw] private_key_secret_version
269
341
  # @return [::String]
270
342
  # Optional. SecretManager resource containing the private key of the GitHub
271
- # App, formatted as `projects/*/secrets/*/versions/*`.
343
+ # App, formatted as `projects/*/secrets/*/versions/*` or
344
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
345
+ # supported in that location).
272
346
  # @!attribute [rw] webhook_secret_secret_version
273
347
  # @return [::String]
274
348
  # Optional. SecretManager resource containing the webhook secret of the
275
- # GitHub App, formatted as `projects/*/secrets/*/versions/*`.
349
+ # GitHub App, formatted as `projects/*/secrets/*/versions/*` or
350
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
351
+ # supported in that location).
276
352
  # @!attribute [rw] app_installation_id
277
353
  # @return [::Integer]
278
354
  # Optional. ID of the installation of the GitHub App.
@@ -293,6 +369,10 @@ module Google
293
369
  # @!attribute [rw] ssl_ca_certificate
294
370
  # @return [::String]
295
371
  # Optional. SSL certificate to use for requests to GitHub Enterprise.
372
+ # @!attribute [rw] organization
373
+ # @return [::String]
374
+ # Optional. Immutable. GitHub Enterprise organization in which the GitHub App
375
+ # is created.
296
376
  class GitHubEnterpriseConfig
297
377
  include ::Google::Protobuf::MessageExts
298
378
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -315,7 +395,9 @@ module Google
315
395
  # @!attribute [rw] oauth_token_secret_version
316
396
  # @return [::String]
317
397
  # Required. A SecretManager resource containing the OAuth token that
318
- # authorizes the connection. Format: `projects/*/secrets/*/versions/*`.
398
+ # authorizes the connection. Format: `projects/*/secrets/*/versions/*` or
399
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
400
+ # supported in that location).
319
401
  # @!attribute [r] username
320
402
  # @return [::String]
321
403
  # Output only. The username associated with this token.
@@ -328,8 +410,9 @@ module Google
328
410
  # @!attribute [rw] webhook_secret_secret_version
329
411
  # @return [::String]
330
412
  # Required. Immutable. SecretManager resource containing the webhook secret
331
- # of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
332
- # is used to validate webhooks.
413
+ # of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
414
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
415
+ # supported in that location). This is used to validate webhooks.
333
416
  # @!attribute [rw] read_authorizer_credential
334
417
  # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
335
418
  # Required. A GitLab personal access token with the minimum `read_api` scope
@@ -353,7 +436,9 @@ module Google
353
436
  # @return [::String]
354
437
  # Required. A SecretManager resource containing the user token that
355
438
  # authorizes the Developer Connect connection. Format:
356
- # `projects/*/secrets/*/versions/*`.
439
+ # `projects/*/secrets/*/versions/*` or
440
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
441
+ # supported in that location).
357
442
  # @!attribute [r] username
358
443
  # @return [::String]
359
444
  # Output only. The username associated with this token.
@@ -369,8 +454,9 @@ module Google
369
454
  # @!attribute [rw] webhook_secret_secret_version
370
455
  # @return [::String]
371
456
  # Required. Immutable. SecretManager resource containing the webhook secret
372
- # of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
373
- # is used to validate webhooks.
457
+ # of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
458
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
459
+ # supported in that location). This is used to validate webhooks.
374
460
  # @!attribute [rw] read_authorizer_credential
375
461
  # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
376
462
  # Required. A GitLab personal access token with the minimum `read_api` scope
@@ -411,7 +497,9 @@ module Google
411
497
  # @return [::String]
412
498
  # Required. Immutable. SecretManager resource containing the webhook secret
413
499
  # used to verify webhook events, formatted as
414
- # `projects/*/secrets/*/versions/*`. This is used to validate webhooks.
500
+ # `projects/*/secrets/*/versions/*` or
501
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
502
+ # supported in that location). This is used to validate webhooks.
415
503
  # @!attribute [rw] read_authorizer_credential
416
504
  # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
417
505
  # Required. An http access token with the minimum `Repository read` access.
@@ -450,8 +538,9 @@ module Google
450
538
  # @return [::String]
451
539
  # Required. Immutable. SecretManager resource containing the webhook secret
452
540
  # used to verify webhook events, formatted as
453
- # `projects/*/secrets/*/versions/*`. This is used to validate and create
454
- # webhooks.
541
+ # `projects/*/secrets/*/versions/*` or
542
+ # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
543
+ # supported in that location). This is used to validate and create webhooks.
455
544
  # @!attribute [rw] read_authorizer_credential
456
545
  # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
457
546
  # Required. An access token with the minimum `repository` access.
@@ -468,6 +557,16 @@ module Google
468
557
  extend ::Google::Protobuf::MessageExts::ClassMethods
469
558
  end
470
559
 
560
+ # Configuration for connections to Secure Source Manager instance
561
+ # @!attribute [rw] instance
562
+ # @return [::String]
563
+ # Required. Immutable. Secure Source Manager instance resource, formatted as
564
+ # `projects/*/locations/*/instances/*`
565
+ class SecureSourceManagerInstanceConfig
566
+ include ::Google::Protobuf::MessageExts
567
+ extend ::Google::Protobuf::MessageExts::ClassMethods
568
+ end
569
+
471
570
  # Message for requesting list of Connections
472
571
  # @!attribute [rw] parent
473
572
  # @return [::String]
@@ -887,6 +986,102 @@ module Google
887
986
  extend ::Google::Protobuf::MessageExts::ClassMethods
888
987
  end
889
988
 
989
+ # Message for starting an OAuth flow.
990
+ # @!attribute [rw] account_connector
991
+ # @return [::String]
992
+ # Required. The resource name of the AccountConnector in the format
993
+ # `projects/*/locations/*/accountConnectors/*`.
994
+ class StartOAuthRequest
995
+ include ::Google::Protobuf::MessageExts
996
+ extend ::Google::Protobuf::MessageExts::ClassMethods
997
+ end
998
+
999
+ # Message for responding to starting an OAuth flow.
1000
+ # @!attribute [rw] system_provider_id
1001
+ # @return [::Google::Cloud::DeveloperConnect::V1::SystemProvider]
1002
+ # The ID of the system provider.
1003
+ # @!attribute [rw] ticket
1004
+ # @return [::String]
1005
+ # The ticket to be used for post processing the callback from the service
1006
+ # provider.
1007
+ # @!attribute [rw] code_challenge
1008
+ # @return [::String]
1009
+ # Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
1010
+ # @!attribute [rw] code_challenge_method
1011
+ # @return [::String]
1012
+ # Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
1013
+ # @!attribute [rw] client_id
1014
+ # @return [::String]
1015
+ # The client ID to the OAuth App of the service provider.
1016
+ # @!attribute [rw] scopes
1017
+ # @return [::Array<::String>]
1018
+ # The list of scopes requested by the application.
1019
+ # @!attribute [rw] auth_uri
1020
+ # @return [::String]
1021
+ # The authorization server URL to the OAuth flow of the service provider.
1022
+ class StartOAuthResponse
1023
+ include ::Google::Protobuf::MessageExts
1024
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1025
+ end
1026
+
1027
+ # Message for finishing an OAuth flow.
1028
+ # @!attribute [rw] oauth_params
1029
+ # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::OAuthParams]
1030
+ # The params returned by non-Google OAuth 2.0 flow redirect.
1031
+ #
1032
+ # Note: The following fields are mutually exclusive: `oauth_params`, `google_oauth_params`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1033
+ # @!attribute [rw] google_oauth_params
1034
+ # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::GoogleOAuthParams]
1035
+ # The params returned by Google OAuth flow redirects.
1036
+ #
1037
+ # Note: The following fields are mutually exclusive: `google_oauth_params`, `oauth_params`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1038
+ # @!attribute [rw] account_connector
1039
+ # @return [::String]
1040
+ # Required. The resource name of the AccountConnector in the format
1041
+ # `projects/*/locations/*/accountConnectors/*`.
1042
+ class FinishOAuthRequest
1043
+ include ::Google::Protobuf::MessageExts
1044
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1045
+
1046
+ # The params returned by non-Google OAuth 2.0 flow redirect.
1047
+ # @!attribute [rw] code
1048
+ # @return [::String]
1049
+ # Required. The code to be used for getting the token from SCM provider.
1050
+ # @!attribute [rw] ticket
1051
+ # @return [::String]
1052
+ # Required. The ticket to be used for post processing the callback from SCM
1053
+ # provider.
1054
+ class OAuthParams
1055
+ include ::Google::Protobuf::MessageExts
1056
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1057
+ end
1058
+
1059
+ # The params returned by Google OAuth flow redirects.
1060
+ # @!attribute [rw] scopes
1061
+ # @return [::Array<::String>]
1062
+ # Required. The scopes returned by Google OAuth flow.
1063
+ # @!attribute [rw] version_info
1064
+ # @return [::String]
1065
+ # Optional. The version info returned by Google OAuth flow.
1066
+ # @!attribute [rw] ticket
1067
+ # @return [::String]
1068
+ # Required. The ticket to be used for post processing the callback from
1069
+ # Google OAuth flow.
1070
+ class GoogleOAuthParams
1071
+ include ::Google::Protobuf::MessageExts
1072
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1073
+ end
1074
+ end
1075
+
1076
+ # Message for responding to finishing an OAuth flow.
1077
+ # @!attribute [rw] exchange_error
1078
+ # @return [::Google::Cloud::DeveloperConnect::V1::ExchangeError]
1079
+ # The error resulted from exchanging OAuth tokens from the service provider.
1080
+ class FinishOAuthResponse
1081
+ include ::Google::Protobuf::MessageExts
1082
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1083
+ end
1084
+
890
1085
  # Message for representing an error from exchanging OAuth tokens.
891
1086
  # @!attribute [rw] code
892
1087
  # @return [::String]
@@ -1256,7 +1451,7 @@ module Google
1256
1451
  # token endpoints.
1257
1452
  # @!attribute [rw] provider_oauth_config
1258
1453
  # @return [::Google::Cloud::DeveloperConnect::V1::ProviderOAuthConfig]
1259
- # Provider OAuth config.
1454
+ # Optional. Provider OAuth config.
1260
1455
  # @!attribute [rw] name
1261
1456
  # @return [::String]
1262
1457
  # Identifier. The resource name of the accountConnector, in the format
@@ -1328,7 +1523,7 @@ module Google
1328
1523
  # ProviderOAuthConfig is the OAuth config for a provider.
1329
1524
  # @!attribute [rw] system_provider_id
1330
1525
  # @return [::Google::Cloud::DeveloperConnect::V1::SystemProvider]
1331
- # Immutable. Developer Connect provided OAuth.
1526
+ # Optional. Immutable. Developer Connect provided OAuth.
1332
1527
  # @!attribute [rw] scopes
1333
1528
  # @return [::Array<::String>]
1334
1529
  # Required. User selected scopes to apply to the Oauth config
@@ -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]