Skip to content

Commit 74edaf2

Browse files
feat: Automated regeneration of datastream v1 client (googleapis#23186)
Auto-created at 2025-05-21 20:25:02 +0000 using the toys pull request generator.
1 parent eeb1752 commit 74edaf2

File tree

5 files changed

+110
-4
lines changed

5 files changed

+110
-4
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153451,12 +153451,21 @@
153451153451
"/datastream:v1/MongodbProfile/replicaSet": replica_set
153452153452
"/datastream:v1/MongodbProfile/secretManagerStoredPassword": secret_manager_stored_password
153453153453
"/datastream:v1/MongodbProfile/srvConnectionFormat": srv_connection_format
153454+
"/datastream:v1/MongodbProfile/sslConfig": ssl_config
153454153455
"/datastream:v1/MongodbProfile/standardConnectionFormat": standard_connection_format
153455153456
"/datastream:v1/MongodbProfile/username": username
153456153457
"/datastream:v1/MongodbSourceConfig": mongodb_source_config
153457153458
"/datastream:v1/MongodbSourceConfig/excludeObjects": exclude_objects
153458153459
"/datastream:v1/MongodbSourceConfig/includeObjects": include_objects
153459153460
"/datastream:v1/MongodbSourceConfig/maxConcurrentBackfillTasks": max_concurrent_backfill_tasks
153461+
"/datastream:v1/MongodbSslConfig": mongodb_ssl_config
153462+
"/datastream:v1/MongodbSslConfig/caCertificate": ca_certificate
153463+
"/datastream:v1/MongodbSslConfig/caCertificateSet": ca_certificate_set
153464+
"/datastream:v1/MongodbSslConfig/clientCertificate": client_certificate
153465+
"/datastream:v1/MongodbSslConfig/clientCertificateSet": client_certificate_set
153466+
"/datastream:v1/MongodbSslConfig/clientKey": client_key
153467+
"/datastream:v1/MongodbSslConfig/clientKeySet": client_key_set
153468+
"/datastream:v1/MongodbSslConfig/secretManagerStoredClientKey": secret_manager_stored_client_key
153460153469
"/datastream:v1/MostRecentStartPosition": most_recent_start_position
153461153470
"/datastream:v1/MysqlColumn": mysql_column
153462153471
"/datastream:v1/MysqlColumn/collation": collation

generated/google-apis-datastream_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-datastream_v1
22

3+
### v0.51.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250518
6+
37
### v0.50.0 (2025-05-18)
48

59
* Regenerated from discovery document revision 20250511

generated/google-apis-datastream_v1/lib/google/apis/datastream_v1/classes.rb

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,11 @@ class MongodbProfile
14171417
# @return [Google::Apis::DatastreamV1::SrvConnectionFormat]
14181418
attr_accessor :srv_connection_format
14191419

1420+
# MongoDB SSL configuration information.
1421+
# Corresponds to the JSON property `sslConfig`
1422+
# @return [Google::Apis::DatastreamV1::MongodbSslConfig]
1423+
attr_accessor :ssl_config
1424+
14201425
# Standard connection format.
14211426
# Corresponds to the JSON property `standardConnectionFormat`
14221427
# @return [Google::Apis::DatastreamV1::StandardConnectionFormat]
@@ -1438,6 +1443,7 @@ def update!(**args)
14381443
@replica_set = args[:replica_set] if args.key?(:replica_set)
14391444
@secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password)
14401445
@srv_connection_format = args[:srv_connection_format] if args.key?(:srv_connection_format)
1446+
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
14411447
@standard_connection_format = args[:standard_connection_format] if args.key?(:standard_connection_format)
14421448
@username = args[:username] if args.key?(:username)
14431449
end
@@ -1476,6 +1482,72 @@ def update!(**args)
14761482
end
14771483
end
14781484

1485+
# MongoDB SSL configuration information.
1486+
class MongodbSslConfig
1487+
include Google::Apis::Core::Hashable
1488+
1489+
# Optional. Input only. PEM-encoded certificate of the CA that signed the source
1490+
# database server's certificate.
1491+
# Corresponds to the JSON property `caCertificate`
1492+
# @return [String]
1493+
attr_accessor :ca_certificate
1494+
1495+
# Output only. Indicates whether the ca_certificate field is set.
1496+
# Corresponds to the JSON property `caCertificateSet`
1497+
# @return [Boolean]
1498+
attr_accessor :ca_certificate_set
1499+
alias_method :ca_certificate_set?, :ca_certificate_set
1500+
1501+
# Optional. Input only. PEM-encoded certificate that will be used by the replica
1502+
# to authenticate against the source database server. If this field is used then
1503+
# the 'client_key' and the 'ca_certificate' fields are mandatory.
1504+
# Corresponds to the JSON property `clientCertificate`
1505+
# @return [String]
1506+
attr_accessor :client_certificate
1507+
1508+
# Output only. Indicates whether the client_certificate field is set.
1509+
# Corresponds to the JSON property `clientCertificateSet`
1510+
# @return [Boolean]
1511+
attr_accessor :client_certificate_set
1512+
alias_method :client_certificate_set?, :client_certificate_set
1513+
1514+
# Optional. Input only. PEM-encoded private key associated with the Client
1515+
# Certificate. If this field is used then the 'client_certificate' and the '
1516+
# ca_certificate' fields are mandatory.
1517+
# Corresponds to the JSON property `clientKey`
1518+
# @return [String]
1519+
attr_accessor :client_key
1520+
1521+
# Output only. Indicates whether the client_key field is set.
1522+
# Corresponds to the JSON property `clientKeySet`
1523+
# @return [Boolean]
1524+
attr_accessor :client_key_set
1525+
alias_method :client_key_set?, :client_key_set
1526+
1527+
# Optional. Input only. A reference to a Secret Manager resource name storing
1528+
# the PEM-encoded private key associated with the Client Certificate. If this
1529+
# field is used then the 'client_certificate' and the 'ca_certificate' fields
1530+
# are mandatory. Mutually exclusive with the `client_key` field.
1531+
# Corresponds to the JSON property `secretManagerStoredClientKey`
1532+
# @return [String]
1533+
attr_accessor :secret_manager_stored_client_key
1534+
1535+
def initialize(**args)
1536+
update!(**args)
1537+
end
1538+
1539+
# Update properties of this object
1540+
def update!(**args)
1541+
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
1542+
@ca_certificate_set = args[:ca_certificate_set] if args.key?(:ca_certificate_set)
1543+
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
1544+
@client_certificate_set = args[:client_certificate_set] if args.key?(:client_certificate_set)
1545+
@client_key = args[:client_key] if args.key?(:client_key)
1546+
@client_key_set = args[:client_key_set] if args.key?(:client_key_set)
1547+
@secret_manager_stored_client_key = args[:secret_manager_stored_client_key] if args.key?(:secret_manager_stored_client_key)
1548+
end
1549+
end
1550+
14791551
# CDC strategy to start replicating from the most recent position in the source.
14801552
class MostRecentStartPosition
14811553
include Google::Apis::Core::Hashable
@@ -2851,8 +2923,8 @@ class PscInterfaceConfig
28512923
include Google::Apis::Core::Hashable
28522924

28532925
# Required. Fully qualified name of the Network Attachment that Datastream will
2854-
# connect to. Format: `projects/``project``/regions/``region``/
2855-
# networkAttachments/``name```
2926+
# connect to. Format: `projects/`project`/regions/`region`/networkAttachments/`
2927+
# name``
28562928
# Corresponds to the JSON property `networkAttachment`
28572929
# @return [String]
28582930
attr_accessor :network_attachment

generated/google-apis-datastream_v1/lib/google/apis/datastream_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DatastreamV1
1818
# Version of the google-apis-datastream_v1 gem
19-
GEM_VERSION = "0.50.0"
19+
GEM_VERSION = "0.51.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250511"
25+
REVISION = "20250518"
2626
end
2727
end
2828
end

generated/google-apis-datastream_v1/lib/google/apis/datastream_v1/representations.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
298298
include Google::Apis::Core::JsonObjectSupport
299299
end
300300

301+
class MongodbSslConfig
302+
class Representation < Google::Apis::Core::JsonRepresentation; end
303+
304+
include Google::Apis::Core::JsonObjectSupport
305+
end
306+
301307
class MostRecentStartPosition
302308
class Representation < Google::Apis::Core::JsonRepresentation; end
303309

@@ -1220,6 +1226,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
12201226
property :secret_manager_stored_password, as: 'secretManagerStoredPassword'
12211227
property :srv_connection_format, as: 'srvConnectionFormat', class: Google::Apis::DatastreamV1::SrvConnectionFormat, decorator: Google::Apis::DatastreamV1::SrvConnectionFormat::Representation
12221228

1229+
property :ssl_config, as: 'sslConfig', class: Google::Apis::DatastreamV1::MongodbSslConfig, decorator: Google::Apis::DatastreamV1::MongodbSslConfig::Representation
1230+
12231231
property :standard_connection_format, as: 'standardConnectionFormat', class: Google::Apis::DatastreamV1::StandardConnectionFormat, decorator: Google::Apis::DatastreamV1::StandardConnectionFormat::Representation
12241232

12251233
property :username, as: 'username'
@@ -1237,6 +1245,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
12371245
end
12381246
end
12391247

1248+
class MongodbSslConfig
1249+
# @private
1250+
class Representation < Google::Apis::Core::JsonRepresentation
1251+
property :ca_certificate, as: 'caCertificate'
1252+
property :ca_certificate_set, as: 'caCertificateSet'
1253+
property :client_certificate, as: 'clientCertificate'
1254+
property :client_certificate_set, as: 'clientCertificateSet'
1255+
property :client_key, as: 'clientKey'
1256+
property :client_key_set, as: 'clientKeySet'
1257+
property :secret_manager_stored_client_key, as: 'secretManagerStoredClientKey'
1258+
end
1259+
end
1260+
12401261
class MostRecentStartPosition
12411262
# @private
12421263
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)