@@ -22,6 +22,110 @@ module Google
2222 module Apis
2323 module DeveloperconnectV1
2424
25+ # Configuration for connections to an instance of Bitbucket Cloud.
26+ class BitbucketCloudConfig
27+ include Google ::Apis ::Core ::Hashable
28+
29+ # Represents a personal access token that authorized the Connection, and
30+ # associated metadata.
31+ # Corresponds to the JSON property `authorizerCredential`
32+ # @return [Google::Apis::DeveloperconnectV1::UserCredential]
33+ attr_accessor :authorizer_credential
34+
35+ # Represents a personal access token that authorized the Connection, and
36+ # associated metadata.
37+ # Corresponds to the JSON property `readAuthorizerCredential`
38+ # @return [Google::Apis::DeveloperconnectV1::UserCredential]
39+ attr_accessor :read_authorizer_credential
40+
41+ # Required. Immutable. SecretManager resource containing the webhook secret used
42+ # to verify webhook events, formatted as `projects/*/secrets/*/versions/*`. This
43+ # is used to validate and create webhooks.
44+ # Corresponds to the JSON property `webhookSecretSecretVersion`
45+ # @return [String]
46+ attr_accessor :webhook_secret_secret_version
47+
48+ # Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
49+ # Platform.
50+ # Corresponds to the JSON property `workspace`
51+ # @return [String]
52+ attr_accessor :workspace
53+
54+ def initialize ( **args )
55+ update! ( **args )
56+ end
57+
58+ # Update properties of this object
59+ def update! ( **args )
60+ @authorizer_credential = args [ :authorizer_credential ] if args . key? ( :authorizer_credential )
61+ @read_authorizer_credential = args [ :read_authorizer_credential ] if args . key? ( :read_authorizer_credential )
62+ @webhook_secret_secret_version = args [ :webhook_secret_secret_version ] if args . key? ( :webhook_secret_secret_version )
63+ @workspace = args [ :workspace ] if args . key? ( :workspace )
64+ end
65+ end
66+
67+ # Configuration for connections to an instance of Bitbucket Data Center.
68+ class BitbucketDataCenterConfig
69+ include Google ::Apis ::Core ::Hashable
70+
71+ # Represents a personal access token that authorized the Connection, and
72+ # associated metadata.
73+ # Corresponds to the JSON property `authorizerCredential`
74+ # @return [Google::Apis::DeveloperconnectV1::UserCredential]
75+ attr_accessor :authorizer_credential
76+
77+ # Required. The URI of the Bitbucket Data Center host this connection is for.
78+ # Corresponds to the JSON property `hostUri`
79+ # @return [String]
80+ attr_accessor :host_uri
81+
82+ # Represents a personal access token that authorized the Connection, and
83+ # associated metadata.
84+ # Corresponds to the JSON property `readAuthorizerCredential`
85+ # @return [Google::Apis::DeveloperconnectV1::UserCredential]
86+ attr_accessor :read_authorizer_credential
87+
88+ # Output only. Version of the Bitbucket Data Center server running on the `
89+ # host_uri`.
90+ # Corresponds to the JSON property `serverVersion`
91+ # @return [String]
92+ attr_accessor :server_version
93+
94+ # ServiceDirectoryConfig represents Service Directory configuration for a
95+ # connection.
96+ # Corresponds to the JSON property `serviceDirectoryConfig`
97+ # @return [Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig]
98+ attr_accessor :service_directory_config
99+
100+ # Optional. SSL certificate authority to trust when making requests to Bitbucket
101+ # Data Center.
102+ # Corresponds to the JSON property `sslCaCertificate`
103+ # @return [String]
104+ attr_accessor :ssl_ca_certificate
105+
106+ # Required. Immutable. SecretManager resource containing the webhook secret used
107+ # to verify webhook events, formatted as `projects/*/secrets/*/versions/*`. This
108+ # is used to validate webhooks.
109+ # Corresponds to the JSON property `webhookSecretSecretVersion`
110+ # @return [String]
111+ attr_accessor :webhook_secret_secret_version
112+
113+ def initialize ( **args )
114+ update! ( **args )
115+ end
116+
117+ # Update properties of this object
118+ def update! ( **args )
119+ @authorizer_credential = args [ :authorizer_credential ] if args . key? ( :authorizer_credential )
120+ @host_uri = args [ :host_uri ] if args . key? ( :host_uri )
121+ @read_authorizer_credential = args [ :read_authorizer_credential ] if args . key? ( :read_authorizer_credential )
122+ @server_version = args [ :server_version ] if args . key? ( :server_version )
123+ @service_directory_config = args [ :service_directory_config ] if args . key? ( :service_directory_config )
124+ @ssl_ca_certificate = args [ :ssl_ca_certificate ] if args . key? ( :ssl_ca_certificate )
125+ @webhook_secret_secret_version = args [ :webhook_secret_secret_version ] if args . key? ( :webhook_secret_secret_version )
126+ end
127+ end
128+
25129 # The request message for Operations.CancelOperation.
26130 class CancelOperationRequest
27131 include Google ::Apis ::Core ::Hashable
@@ -44,6 +148,16 @@ class Connection
44148 # @return [Hash<String,String>]
45149 attr_accessor :annotations
46150
151+ # Configuration for connections to an instance of Bitbucket Cloud.
152+ # Corresponds to the JSON property `bitbucketCloudConfig`
153+ # @return [Google::Apis::DeveloperconnectV1::BitbucketCloudConfig]
154+ attr_accessor :bitbucket_cloud_config
155+
156+ # Configuration for connections to an instance of Bitbucket Data Center.
157+ # Corresponds to the JSON property `bitbucketDataCenterConfig`
158+ # @return [Google::Apis::DeveloperconnectV1::BitbucketDataCenterConfig]
159+ attr_accessor :bitbucket_data_center_config
160+
47161 # Output only. [Output only] Create timestamp
48162 # Corresponds to the JSON property `createTime`
49163 # @return [String]
@@ -75,6 +189,11 @@ class Connection
75189 # @return [String]
76190 attr_accessor :etag
77191
192+ # The git proxy configuration.
193+ # Corresponds to the JSON property `gitProxyConfig`
194+ # @return [Google::Apis::DeveloperconnectV1::GitProxyConfig]
195+ attr_accessor :git_proxy_config
196+
78197 # Configuration for connections to github.com.
79198 # Corresponds to the JSON property `githubConfig`
80199 # @return [Google::Apis::DeveloperconnectV1::GitHubConfig]
@@ -136,11 +255,14 @@ def initialize(**args)
136255 # Update properties of this object
137256 def update! ( **args )
138257 @annotations = args [ :annotations ] if args . key? ( :annotations )
258+ @bitbucket_cloud_config = args [ :bitbucket_cloud_config ] if args . key? ( :bitbucket_cloud_config )
259+ @bitbucket_data_center_config = args [ :bitbucket_data_center_config ] if args . key? ( :bitbucket_data_center_config )
139260 @create_time = args [ :create_time ] if args . key? ( :create_time )
140261 @crypto_key_config = args [ :crypto_key_config ] if args . key? ( :crypto_key_config )
141262 @delete_time = args [ :delete_time ] if args . key? ( :delete_time )
142263 @disabled = args [ :disabled ] if args . key? ( :disabled )
143264 @etag = args [ :etag ] if args . key? ( :etag )
265+ @git_proxy_config = args [ :git_proxy_config ] if args . key? ( :git_proxy_config )
144266 @github_config = args [ :github_config ] if args . key? ( :github_config )
145267 @github_enterprise_config = args [ :github_enterprise_config ] if args . key? ( :github_enterprise_config )
146268 @gitlab_config = args [ :gitlab_config ] if args . key? ( :gitlab_config )
@@ -565,6 +687,27 @@ def update!(**args)
565687 end
566688 end
567689
690+ # The git proxy configuration.
691+ class GitProxyConfig
692+ include Google ::Apis ::Core ::Hashable
693+
694+ # Optional. Setting this to true allows the git proxy to be used for performing
695+ # git operations on the repositories linked in the connection.
696+ # Corresponds to the JSON property `enabled`
697+ # @return [Boolean]
698+ attr_accessor :enabled
699+ alias_method :enabled? , :enabled
700+
701+ def initialize ( **args )
702+ update! ( **args )
703+ end
704+
705+ # Update properties of this object
706+ def update! ( **args )
707+ @enabled = args [ :enabled ] if args . key? ( :enabled )
708+ end
709+ end
710+
568711 # Message describing the GitRepositoryLink object
569712 class GitRepositoryLink
570713 include Google ::Apis ::Core ::Hashable
@@ -596,6 +739,12 @@ class GitRepositoryLink
596739 # @return [String]
597740 attr_accessor :etag
598741
742+ # Output only. URI to access the linked repository through the Git Proxy. This
743+ # field is only populated if the git proxy is enabled for the connection.
744+ # Corresponds to the JSON property `gitProxyUri`
745+ # @return [String]
746+ attr_accessor :git_proxy_uri
747+
599748 # Optional. Labels as key value pairs
600749 # Corresponds to the JSON property `labels`
601750 # @return [Hash<String,String>]
@@ -640,6 +789,7 @@ def update!(**args)
640789 @create_time = args [ :create_time ] if args . key? ( :create_time )
641790 @delete_time = args [ :delete_time ] if args . key? ( :delete_time )
642791 @etag = args [ :etag ] if args . key? ( :etag )
792+ @git_proxy_uri = args [ :git_proxy_uri ] if args . key? ( :git_proxy_uri )
643793 @labels = args [ :labels ] if args . key? ( :labels )
644794 @name = args [ :name ] if args . key? ( :name )
645795 @reconciling = args [ :reconciling ] if args . key? ( :reconciling )
@@ -1089,6 +1239,75 @@ def update!(**args)
10891239 end
10901240 end
10911241
1242+ # RPC request object accepted by the ProcessBitbucketCloudWebhook RPC method.
1243+ class ProcessBitbucketCloudWebhookRequest
1244+ include Google ::Apis ::Core ::Hashable
1245+
1246+ # Message that represents an arbitrary HTTP body. It should only be used for
1247+ # payload formats that can't be represented as JSON, such as raw binary or an
1248+ # HTML page. This message can be used both in streaming and non-streaming API
1249+ # methods in the request as well as the response. It can be used as a top-level
1250+ # request field, which is convenient if one wants to extract parameters from
1251+ # either the URL or HTTP template into the request fields and also want access
1252+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
1253+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
1254+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
1255+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
1256+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
1257+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
1258+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
1259+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
1260+ # only changes how the request and response bodies are handled, all other
1261+ # features will continue to work unchanged.
1262+ # Corresponds to the JSON property `body`
1263+ # @return [Google::Apis::DeveloperconnectV1::HttpBody]
1264+ attr_accessor :body
1265+
1266+ def initialize ( **args )
1267+ update! ( **args )
1268+ end
1269+
1270+ # Update properties of this object
1271+ def update! ( **args )
1272+ @body = args [ :body ] if args . key? ( :body )
1273+ end
1274+ end
1275+
1276+ # RPC request object accepted by the ProcessBitbucketDataCenterWebhook RPC
1277+ # method.
1278+ class ProcessBitbucketDataCenterWebhookRequest
1279+ include Google ::Apis ::Core ::Hashable
1280+
1281+ # Message that represents an arbitrary HTTP body. It should only be used for
1282+ # payload formats that can't be represented as JSON, such as raw binary or an
1283+ # HTML page. This message can be used both in streaming and non-streaming API
1284+ # methods in the request as well as the response. It can be used as a top-level
1285+ # request field, which is convenient if one wants to extract parameters from
1286+ # either the URL or HTTP template into the request fields and also want access
1287+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
1288+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
1289+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
1290+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
1291+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
1292+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
1293+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
1294+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
1295+ # only changes how the request and response bodies are handled, all other
1296+ # features will continue to work unchanged.
1297+ # Corresponds to the JSON property `body`
1298+ # @return [Google::Apis::DeveloperconnectV1::HttpBody]
1299+ attr_accessor :body
1300+
1301+ def initialize ( **args )
1302+ update! ( **args )
1303+ end
1304+
1305+ # Update properties of this object
1306+ def update! ( **args )
1307+ @body = args [ :body ] if args . key? ( :body )
1308+ end
1309+ end
1310+
10921311 # RPC request object accepted by the ProcessGitHubEnterpriseWebhook RPC method.
10931312 class ProcessGitHubEnterpriseWebhookRequest
10941313 include Google ::Apis ::Core ::Hashable
0 commit comments