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
@@ -21,27 +21,74 @@ module Google
21
21
  module Cloud
22
22
  module DeveloperConnect
23
23
  module V1
24
+ # Message for requesting a list of Users
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. Parent value for ListUsersRequest
28
+ # @!attribute [rw] page_size
29
+ # @return [::Integer]
30
+ # Optional. Requested page size. Server may return fewer items than
31
+ # requested. If unspecified, server will pick an appropriate default.
32
+ # @!attribute [rw] page_token
33
+ # @return [::String]
34
+ # Optional. A token identifying a page of results the server should return.
35
+ # @!attribute [rw] filter
36
+ # @return [::String]
37
+ # Optional. Filtering results
38
+ # @!attribute [rw] order_by
39
+ # @return [::String]
40
+ # Optional. Hint for how to order the results
41
+ class ListUsersRequest
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Message for response to listing Users
47
+ # @!attribute [rw] users
48
+ # @return [::Array<::Google::Cloud::DeveloperConnect::V1::User>]
49
+ # The list of Users
50
+ # @!attribute [rw] next_page_token
51
+ # @return [::String]
52
+ # A token identifying a page of results the server should return.
53
+ # @!attribute [rw] unreachable
54
+ # @return [::Array<::String>]
55
+ # Locations that could not be reached.
56
+ class ListUsersResponse
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
24
61
  # Message describing Connection object
25
62
  # @!attribute [rw] github_config
26
63
  # @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig]
27
64
  # Configuration for connections to github.com.
28
65
  #
29
- # Note: The following fields are mutually exclusive: `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_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`. If a field in that set is populated, all other fields in the set will automatically be cleared.
30
67
  # @!attribute [rw] github_enterprise_config
31
68
  # @return [::Google::Cloud::DeveloperConnect::V1::GitHubEnterpriseConfig]
32
69
  # Configuration for connections to an instance of GitHub Enterprise.
33
70
  #
34
- # Note: The following fields are mutually exclusive: `github_enterprise_config`, `github_config`, `gitlab_config`, `gitlab_enterprise_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`. If a field in that set is populated, all other fields in the set will automatically be cleared.
35
72
  # @!attribute [rw] gitlab_config
36
73
  # @return [::Google::Cloud::DeveloperConnect::V1::GitLabConfig]
37
74
  # Configuration for connections to gitlab.com.
38
75
  #
39
- # Note: The following fields are mutually exclusive: `gitlab_config`, `github_config`, `github_enterprise_config`, `gitlab_enterprise_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`. If a field in that set is populated, all other fields in the set will automatically be cleared.
40
77
  # @!attribute [rw] gitlab_enterprise_config
41
78
  # @return [::Google::Cloud::DeveloperConnect::V1::GitLabEnterpriseConfig]
42
79
  # Configuration for connections to an instance of GitLab Enterprise.
43
80
  #
44
- # Note: The following fields are mutually exclusive: `gitlab_enterprise_config`, `github_config`, `github_enterprise_config`, `gitlab_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`. If a field in that set is populated, all other fields in the set will automatically be cleared.
82
+ # @!attribute [rw] bitbucket_data_center_config
83
+ # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketDataCenterConfig]
84
+ # Configuration for connections to an instance of Bitbucket Data Center.
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.
87
+ # @!attribute [rw] bitbucket_cloud_config
88
+ # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketCloudConfig]
89
+ # Configuration for connections to an instance of Bitbucket Clouds.
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.
45
92
  # @!attribute [rw] name
46
93
  # @return [::String]
47
94
  # Identifier. The resource name of the connection, in the format
@@ -80,12 +127,16 @@ module Google
80
127
  # client has an up-to-date value before proceeding.
81
128
  # @!attribute [r] uid
82
129
  # @return [::String]
83
- # Output only. A system-assigned unique identifier for a the
84
- # GitRepositoryLink.
130
+ # Output only. A system-assigned unique identifier for the Connection.
85
131
  # @!attribute [rw] crypto_key_config
86
132
  # @return [::Google::Cloud::DeveloperConnect::V1::CryptoKeyConfig]
87
133
  # Optional. The crypto key configuration. This field is used by the
88
134
  # Customer-Managed Encryption Keys (CMEK) feature.
135
+ # @!attribute [rw] git_proxy_config
136
+ # @return [::Google::Cloud::DeveloperConnect::V1::GitProxyConfig]
137
+ # Optional. Configuration for the git proxy feature. Enabling the git proxy
138
+ # allows clients to perform git operations on the repositories linked in the
139
+ # connection.
89
140
  class Connection
90
141
  include ::Google::Protobuf::MessageExts
91
142
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -121,6 +172,16 @@ module Google
121
172
  extend ::Google::Protobuf::MessageExts::ClassMethods
122
173
  end
123
174
 
175
+ # The git proxy configuration.
176
+ # @!attribute [rw] enabled
177
+ # @return [::Boolean]
178
+ # Optional. Setting this to true allows the git proxy to be used for
179
+ # performing git operations on the repositories linked in the connection.
180
+ class GitProxyConfig
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
124
185
  # Describes stage and necessary actions to be taken by the
125
186
  # user to complete the installation. Used for GitHub and GitHub Enterprise
126
187
  # based connections.
@@ -342,6 +403,71 @@ module Google
342
403
  extend ::Google::Protobuf::MessageExts::ClassMethods
343
404
  end
344
405
 
406
+ # Configuration for connections to an instance of Bitbucket Data Center.
407
+ # @!attribute [rw] host_uri
408
+ # @return [::String]
409
+ # Required. The URI of the Bitbucket Data Center host this connection is for.
410
+ # @!attribute [rw] webhook_secret_secret_version
411
+ # @return [::String]
412
+ # Required. Immutable. SecretManager resource containing the webhook secret
413
+ # used to verify webhook events, formatted as
414
+ # `projects/*/secrets/*/versions/*`. This is used to validate webhooks.
415
+ # @!attribute [rw] read_authorizer_credential
416
+ # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
417
+ # Required. An http access token with the minimum `Repository read` access.
418
+ # It's recommended to use a system account to generate the credentials.
419
+ # @!attribute [rw] authorizer_credential
420
+ # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
421
+ # Required. An http access token with the minimum `Repository admin` scope
422
+ # access. This is needed to create webhooks. It's recommended to use a system
423
+ # account to generate these credentials.
424
+ # @!attribute [rw] service_directory_config
425
+ # @return [::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig]
426
+ # Optional. Configuration for using Service Directory to privately connect to
427
+ # a Bitbucket Data Center instance. This should only be set if the Bitbucket
428
+ # Data Center is hosted on-premises and not reachable by public internet. If
429
+ # this field is left empty, calls to the Bitbucket Data Center will be made
430
+ # over the public internet.
431
+ # @!attribute [rw] ssl_ca_certificate
432
+ # @return [::String]
433
+ # Optional. SSL certificate authority to trust when making requests to
434
+ # Bitbucket Data Center.
435
+ # @!attribute [r] server_version
436
+ # @return [::String]
437
+ # Output only. Version of the Bitbucket Data Center server running on the
438
+ # `host_uri`.
439
+ class BitbucketDataCenterConfig
440
+ include ::Google::Protobuf::MessageExts
441
+ extend ::Google::Protobuf::MessageExts::ClassMethods
442
+ end
443
+
444
+ # Configuration for connections to an instance of Bitbucket Cloud.
445
+ # @!attribute [rw] workspace
446
+ # @return [::String]
447
+ # Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
448
+ # Platform.
449
+ # @!attribute [rw] webhook_secret_secret_version
450
+ # @return [::String]
451
+ # Required. Immutable. SecretManager resource containing the webhook secret
452
+ # used to verify webhook events, formatted as
453
+ # `projects/*/secrets/*/versions/*`. This is used to validate and create
454
+ # webhooks.
455
+ # @!attribute [rw] read_authorizer_credential
456
+ # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
457
+ # Required. An access token with the minimum `repository` access.
458
+ # It can either be a workspace, project or repository access token.
459
+ # It's recommended to use a system account to generate the credentials.
460
+ # @!attribute [rw] authorizer_credential
461
+ # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential]
462
+ # Required. An access token with the minimum `repository`, `pullrequest` and
463
+ # `webhook` scope access. It can either be a workspace, project or repository
464
+ # access token. This is needed to create webhooks. It's recommended to use a
465
+ # system account to generate these credentials.
466
+ class BitbucketCloudConfig
467
+ include ::Google::Protobuf::MessageExts
468
+ extend ::Google::Protobuf::MessageExts::ClassMethods
469
+ end
470
+
345
471
  # Message for requesting list of Connections
346
472
  # @!attribute [rw] parent
347
473
  # @return [::String]
@@ -496,6 +622,193 @@ module Google
496
622
  extend ::Google::Protobuf::MessageExts::ClassMethods
497
623
  end
498
624
 
625
+ # Message for requesting list of AccountConnectors
626
+ # @!attribute [rw] parent
627
+ # @return [::String]
628
+ # Required. Parent value for ListAccountConnectorsRequest
629
+ # @!attribute [rw] page_size
630
+ # @return [::Integer]
631
+ # Optional. Requested page size. Server may return fewer items than
632
+ # requested. If unspecified, server will pick an appropriate default.
633
+ # @!attribute [rw] page_token
634
+ # @return [::String]
635
+ # Optional. A token identifying a page of results the server should return.
636
+ # @!attribute [rw] filter
637
+ # @return [::String]
638
+ # Optional. Filtering results
639
+ # @!attribute [rw] order_by
640
+ # @return [::String]
641
+ # Optional. Hint for how to order the results
642
+ class ListAccountConnectorsRequest
643
+ include ::Google::Protobuf::MessageExts
644
+ extend ::Google::Protobuf::MessageExts::ClassMethods
645
+ end
646
+
647
+ # Message for response to listing AccountConnectors
648
+ # @!attribute [rw] account_connectors
649
+ # @return [::Array<::Google::Cloud::DeveloperConnect::V1::AccountConnector>]
650
+ # The list of AccountConnectors
651
+ # @!attribute [rw] next_page_token
652
+ # @return [::String]
653
+ # A token identifying a page of results the server should return.
654
+ # @!attribute [rw] unreachable
655
+ # @return [::Array<::String>]
656
+ # Locations that could not be reached.
657
+ class ListAccountConnectorsResponse
658
+ include ::Google::Protobuf::MessageExts
659
+ extend ::Google::Protobuf::MessageExts::ClassMethods
660
+ end
661
+
662
+ # Message for getting a AccountConnector
663
+ # @!attribute [rw] name
664
+ # @return [::String]
665
+ # Required. Name of the resource
666
+ class GetAccountConnectorRequest
667
+ include ::Google::Protobuf::MessageExts
668
+ extend ::Google::Protobuf::MessageExts::ClassMethods
669
+ end
670
+
671
+ # @!attribute [rw] parent
672
+ # @return [::String]
673
+ # Required. Location resource name as the account_connector’s parent.
674
+ # @!attribute [rw] account_connector_id
675
+ # @return [::String]
676
+ # Required. The ID to use for the AccountConnector, which will become the
677
+ # final component of the AccountConnector's resource name. Its format should
678
+ # adhere to https://google.aip.dev/122#resource-id-segments Names must be
679
+ # unique per-project per-location.
680
+ # @!attribute [rw] account_connector
681
+ # @return [::Google::Cloud::DeveloperConnect::V1::AccountConnector]
682
+ # Required. The AccountConnector to create.
683
+ # @!attribute [rw] request_id
684
+ # @return [::String]
685
+ # Optional. An optional request ID to identify requests. Specify a unique
686
+ # request ID so that if you must retry your request, the server will know to
687
+ # ignore the request if it has already been completed. The server will
688
+ # guarantee that for at least 60 minutes since the first request.
689
+ #
690
+ # For example, consider a situation where you make an initial request and the
691
+ # request times out. If you make the request again with the same request
692
+ # ID, the server can check if original operation with the same request ID
693
+ # was received, and if so, will ignore the second request. This prevents
694
+ # clients from accidentally creating duplicate commitments.
695
+ #
696
+ # The request ID must be a valid UUID with the exception that zero UUID is
697
+ # not supported (00000000-0000-0000-0000-000000000000).
698
+ # @!attribute [rw] validate_only
699
+ # @return [::Boolean]
700
+ # Optional. If set, validate the request, but do not actually post it.
701
+ class CreateAccountConnectorRequest
702
+ include ::Google::Protobuf::MessageExts
703
+ extend ::Google::Protobuf::MessageExts::ClassMethods
704
+ end
705
+
706
+ # Message for updating a AccountConnector
707
+ # @!attribute [rw] update_mask
708
+ # @return [::Google::Protobuf::FieldMask]
709
+ # Optional. The list of fields to be updated.
710
+ # @!attribute [rw] account_connector
711
+ # @return [::Google::Cloud::DeveloperConnect::V1::AccountConnector]
712
+ # Required. The AccountConnector to update.
713
+ # @!attribute [rw] request_id
714
+ # @return [::String]
715
+ # Optional. An optional request ID to identify requests. Specify a unique
716
+ # request ID so that if you must retry your request, the server will know to
717
+ # ignore the request if it has already been completed. The server will
718
+ # guarantee that for at least 60 minutes since the first request.
719
+ #
720
+ # For example, consider a situation where you make an initial request and the
721
+ # request times out. If you make the request again with the same request
722
+ # ID, the server can check if original operation with the same request ID
723
+ # was received, and if so, will ignore the second request. This prevents
724
+ # clients from accidentally creating duplicate commitments.
725
+ #
726
+ # The request ID must be a valid UUID with the exception that zero UUID is
727
+ # not supported (00000000-0000-0000-0000-000000000000).
728
+ # @!attribute [rw] allow_missing
729
+ # @return [::Boolean]
730
+ # Optional. If set to true, and the accountConnector is not found a new
731
+ # accountConnector will be created. In this situation `update_mask` is
732
+ # ignored. The creation will succeed only if the input accountConnector has
733
+ # all the necessary
734
+ # @!attribute [rw] validate_only
735
+ # @return [::Boolean]
736
+ # Optional. If set, validate the request, but do not actually post it.
737
+ class UpdateAccountConnectorRequest
738
+ include ::Google::Protobuf::MessageExts
739
+ extend ::Google::Protobuf::MessageExts::ClassMethods
740
+ end
741
+
742
+ # Message for deleting a AccountConnector
743
+ # @!attribute [rw] name
744
+ # @return [::String]
745
+ # Required. Name of the resource
746
+ # @!attribute [rw] request_id
747
+ # @return [::String]
748
+ # Optional. An optional request ID to identify requests. Specify a unique
749
+ # request ID so that if you must retry your request, the server will know to
750
+ # ignore the request if it has already been completed. The server will
751
+ # guarantee that for at least 60 minutes after the first request.
752
+ #
753
+ # For example, consider a situation where you make an initial request and the
754
+ # request times out. If you make the request again with the same request
755
+ # ID, the server can check if original operation with the same request ID
756
+ # was received, and if so, will ignore the second request. This prevents
757
+ # clients from accidentally creating duplicate commitments.
758
+ #
759
+ # The request ID must be a valid UUID with the exception that zero UUID is
760
+ # not supported (00000000-0000-0000-0000-000000000000).
761
+ # @!attribute [rw] validate_only
762
+ # @return [::Boolean]
763
+ # Optional. If set, validate the request, but do not actually post it.
764
+ # @!attribute [rw] etag
765
+ # @return [::String]
766
+ # Optional. The current etag of the AccountConnectorn.
767
+ # If an etag is provided and does not match the current etag of the
768
+ # AccountConnector, deletion will be blocked and an ABORTED error will be
769
+ # returned.
770
+ # @!attribute [rw] force
771
+ # @return [::Boolean]
772
+ # Optional. If set to true, any Users from this AccountConnector will also
773
+ # be deleted. (Otherwise, the request will only work if the AccountConnector
774
+ # has no Users.)
775
+ class DeleteAccountConnectorRequest
776
+ include ::Google::Protobuf::MessageExts
777
+ extend ::Google::Protobuf::MessageExts::ClassMethods
778
+ end
779
+
780
+ # Message for deleting a User
781
+ # @!attribute [rw] name
782
+ # @return [::String]
783
+ # Required. Name of the resource
784
+ # @!attribute [rw] request_id
785
+ # @return [::String]
786
+ # Optional. An optional request ID to identify requests. Specify a unique
787
+ # request ID so that if you must retry your request, the server will know to
788
+ # ignore the request if it has already been completed. The server will
789
+ # guarantee that for at least 60 minutes after the first request.
790
+ #
791
+ # For example, consider a situation where you make an initial request and the
792
+ # request times out. If you make the request again with the same request
793
+ # ID, the server can check if original operation with the same request ID
794
+ # was received, and if so, will ignore the second request. This prevents
795
+ # clients from accidentally creating duplicate commitments.
796
+ #
797
+ # The request ID must be a valid UUID with the exception that zero UUID is
798
+ # not supported (00000000-0000-0000-0000-000000000000).
799
+ # @!attribute [rw] validate_only
800
+ # @return [::Boolean]
801
+ # Optional. If set, validate the request, but do not actually post it.
802
+ # @!attribute [rw] etag
803
+ # @return [::String]
804
+ # Optional. This checksum is computed by the server based on the value of
805
+ # other fields, and may be sent on update and delete requests to ensure the
806
+ # client has an up-to-date value before proceeding.
807
+ class DeleteUserRequest
808
+ include ::Google::Protobuf::MessageExts
809
+ extend ::Google::Protobuf::MessageExts::ClassMethods
810
+ end
811
+
499
812
  # Represents the metadata of the long-running operation.
500
813
  # @!attribute [r] create_time
501
814
  # @return [::Google::Protobuf::Timestamp]
@@ -528,6 +841,65 @@ module Google
528
841
  extend ::Google::Protobuf::MessageExts::ClassMethods
529
842
  end
530
843
 
844
+ # Message for fetching a User of the user themselves.
845
+ # @!attribute [rw] name
846
+ # @return [::String]
847
+ # Required. Name of the AccountConnector resource
848
+ class FetchSelfRequest
849
+ include ::Google::Protobuf::MessageExts
850
+ extend ::Google::Protobuf::MessageExts::ClassMethods
851
+ end
852
+
853
+ # Message for deleting a User of the user themselves.
854
+ # @!attribute [rw] name
855
+ # @return [::String]
856
+ # Required. Name of the AccountConnector resource
857
+ class DeleteSelfRequest
858
+ include ::Google::Protobuf::MessageExts
859
+ extend ::Google::Protobuf::MessageExts::ClassMethods
860
+ end
861
+
862
+ # Message for fetching an OAuth access token.
863
+ # @!attribute [rw] account_connector
864
+ # @return [::String]
865
+ # Required. The resource name of the AccountConnector in the format
866
+ # `projects/*/locations/*/accountConnectors/*`.
867
+ class FetchAccessTokenRequest
868
+ include ::Google::Protobuf::MessageExts
869
+ extend ::Google::Protobuf::MessageExts::ClassMethods
870
+ end
871
+
872
+ # Message for responding to getting an OAuth access token.
873
+ # @!attribute [rw] token
874
+ # @return [::String]
875
+ # The token content.
876
+ # @!attribute [rw] expiration_time
877
+ # @return [::Google::Protobuf::Timestamp]
878
+ # Expiration timestamp. Can be empty if unknown or non-expiring.
879
+ # @!attribute [rw] scopes
880
+ # @return [::Array<::String>]
881
+ # The scopes of the access token.
882
+ # @!attribute [rw] exchange_error
883
+ # @return [::Google::Cloud::DeveloperConnect::V1::ExchangeError]
884
+ # The error resulted from exchanging OAuth tokens from the service provider.
885
+ class FetchAccessTokenResponse
886
+ include ::Google::Protobuf::MessageExts
887
+ extend ::Google::Protobuf::MessageExts::ClassMethods
888
+ end
889
+
890
+ # Message for representing an error from exchanging OAuth tokens.
891
+ # @!attribute [rw] code
892
+ # @return [::String]
893
+ # https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error
894
+ # @!attribute [rw] description
895
+ # @return [::String]
896
+ # https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 -
897
+ # error_description
898
+ class ExchangeError
899
+ include ::Google::Protobuf::MessageExts
900
+ extend ::Google::Protobuf::MessageExts::ClassMethods
901
+ end
902
+
531
903
  # Message describing the GitRepositoryLink object
532
904
  # @!attribute [rw] name
533
905
  # @return [::String]
@@ -562,11 +934,15 @@ module Google
562
934
  # Optional. Allows clients to store small amounts of arbitrary data.
563
935
  # @!attribute [r] uid
564
936
  # @return [::String]
565
- # Output only. A system-assigned unique identifier for a the
566
- # GitRepositoryLink.
937
+ # Output only. A system-assigned unique identifier for the GitRepositoryLink.
567
938
  # @!attribute [r] webhook_id
568
939
  # @return [::String]
569
940
  # Output only. External ID of the webhook created for the repository.
941
+ # @!attribute [r] git_proxy_uri
942
+ # @return [::String]
943
+ # Output only. URI to access the linked repository through the Git Proxy.
944
+ # This field is only populated if the git proxy is enabled for the
945
+ # connection.
570
946
  class GitRepositoryLink
571
947
  include ::Google::Protobuf::MessageExts
572
948
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -873,6 +1249,137 @@ module Google
873
1249
  include ::Google::Protobuf::MessageExts
874
1250
  extend ::Google::Protobuf::MessageExts::ClassMethods
875
1251
  end
1252
+
1253
+ # AccountConnector encapsulates what a platform administrator needs to
1254
+ # configure for users to connect to the service providers, which includes,
1255
+ # among other fields, the OAuth client ID, client secret, and authorization and
1256
+ # token endpoints.
1257
+ # @!attribute [rw] provider_oauth_config
1258
+ # @return [::Google::Cloud::DeveloperConnect::V1::ProviderOAuthConfig]
1259
+ # Provider OAuth config.
1260
+ # @!attribute [rw] name
1261
+ # @return [::String]
1262
+ # Identifier. The resource name of the accountConnector, in the format
1263
+ # `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
1264
+ # @!attribute [r] create_time
1265
+ # @return [::Google::Protobuf::Timestamp]
1266
+ # Output only. The timestamp when the accountConnector was created.
1267
+ # @!attribute [r] update_time
1268
+ # @return [::Google::Protobuf::Timestamp]
1269
+ # Output only. The timestamp when the accountConnector was updated.
1270
+ # @!attribute [rw] annotations
1271
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1272
+ # Optional. Allows users to store small amounts of arbitrary data.
1273
+ # @!attribute [rw] etag
1274
+ # @return [::String]
1275
+ # Optional. This checksum is computed by the server based on the value of
1276
+ # other fields, and may be sent on update and delete requests to ensure the
1277
+ # client has an up-to-date value before proceeding.
1278
+ # @!attribute [rw] labels
1279
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1280
+ # Optional. Labels as key value pairs
1281
+ # @!attribute [r] oauth_start_uri
1282
+ # @return [::String]
1283
+ # Output only. Start OAuth flow by clicking on this URL.
1284
+ class AccountConnector
1285
+ include ::Google::Protobuf::MessageExts
1286
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1287
+
1288
+ # @!attribute [rw] key
1289
+ # @return [::String]
1290
+ # @!attribute [rw] value
1291
+ # @return [::String]
1292
+ class AnnotationsEntry
1293
+ include ::Google::Protobuf::MessageExts
1294
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1295
+ end
1296
+
1297
+ # @!attribute [rw] key
1298
+ # @return [::String]
1299
+ # @!attribute [rw] value
1300
+ # @return [::String]
1301
+ class LabelsEntry
1302
+ include ::Google::Protobuf::MessageExts
1303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1304
+ end
1305
+ end
1306
+
1307
+ # User represents a user connected to the service providers through
1308
+ # a AccountConnector.
1309
+ # @!attribute [rw] name
1310
+ # @return [::String]
1311
+ # Identifier. Resource name of the user, in the format
1312
+ # `projects/*/locations/*/accountConnectors/*/users/*`.
1313
+ # @!attribute [r] display_name
1314
+ # @return [::String]
1315
+ # Output only. Developer Connect automatically converts user identity
1316
+ # to some human readable description, e.g., email address.
1317
+ # @!attribute [r] create_time
1318
+ # @return [::Google::Protobuf::Timestamp]
1319
+ # Output only. The timestamp when the user was created.
1320
+ # @!attribute [r] last_token_request_time
1321
+ # @return [::Google::Protobuf::Timestamp]
1322
+ # Output only. The timestamp when the token was last requested.
1323
+ class User
1324
+ include ::Google::Protobuf::MessageExts
1325
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1326
+ end
1327
+
1328
+ # ProviderOAuthConfig is the OAuth config for a provider.
1329
+ # @!attribute [rw] system_provider_id
1330
+ # @return [::Google::Cloud::DeveloperConnect::V1::SystemProvider]
1331
+ # Immutable. Developer Connect provided OAuth.
1332
+ # @!attribute [rw] scopes
1333
+ # @return [::Array<::String>]
1334
+ # Required. User selected scopes to apply to the Oauth config
1335
+ # In the event of changing scopes, user records under AccountConnector will
1336
+ # be deleted and users will re-auth again.
1337
+ class ProviderOAuthConfig
1338
+ include ::Google::Protobuf::MessageExts
1339
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1340
+ end
1341
+
1342
+ # SystemProvider is a list of providers that are owned by Developer Connect.
1343
+ module SystemProvider
1344
+ # No system provider specified.
1345
+ SYSTEM_PROVIDER_UNSPECIFIED = 0
1346
+
1347
+ # GitHub provider.
1348
+ # Scopes can be found at
1349
+ # https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes
1350
+ GITHUB = 1
1351
+
1352
+ # GitLab provider.
1353
+ # Scopes can be found at
1354
+ # https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-access-token-scopes
1355
+ GITLAB = 2
1356
+
1357
+ # Google provider.
1358
+ # Recommended scopes:
1359
+ # "https://www.googleapis.com/auth/drive.readonly",
1360
+ # "https://www.googleapis.com/auth/documents.readonly"
1361
+ GOOGLE = 3
1362
+
1363
+ # Sentry provider.
1364
+ # Scopes can be found at
1365
+ # https://docs.sentry.io/api/permissions/
1366
+ SENTRY = 4
1367
+
1368
+ # Rovo provider.
1369
+ # Must select the "rovo" scope.
1370
+ ROVO = 5
1371
+
1372
+ # New Relic provider.
1373
+ # No scopes are allowed.
1374
+ NEW_RELIC = 6
1375
+
1376
+ # Datastax provider.
1377
+ # No scopes are allowed.
1378
+ DATASTAX = 7
1379
+
1380
+ # Dynatrace provider.
1381
+ DYNATRACE = 8
1382
+ end
876
1383
  end
877
1384
  end
878
1385
  end