Skip to content

Commit

Permalink
feat: Automated regeneration of datastream v1 client (#21352)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-12 10:05:00 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 12, 2025
1 parent 1f45e50 commit 8b4cb7b
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 3 deletions.
10 changes: 10 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146770,6 +146770,7 @@
"/datastream:v1/PostgresqlProfile/hostname": hostname
"/datastream:v1/PostgresqlProfile/password": password
"/datastream:v1/PostgresqlProfile/port": port
"/datastream:v1/PostgresqlProfile/sslConfig": ssl_config
"/datastream:v1/PostgresqlProfile/username": username
"/datastream:v1/PostgresqlRdbms": postgresql_rdbms
"/datastream:v1/PostgresqlRdbms/postgresqlSchemas": postgresql_schemas
Expand All @@ -146784,6 +146785,9 @@
"/datastream:v1/PostgresqlSourceConfig/maxConcurrentBackfillTasks": max_concurrent_backfill_tasks
"/datastream:v1/PostgresqlSourceConfig/publication": publication
"/datastream:v1/PostgresqlSourceConfig/replicationSlot": replication_slot
"/datastream:v1/PostgresqlSslConfig": postgresql_ssl_config
"/datastream:v1/PostgresqlSslConfig/serverAndClientVerification": server_and_client_verification
"/datastream:v1/PostgresqlSslConfig/serverVerification": server_verification
"/datastream:v1/PostgresqlTable": postgresql_table
"/datastream:v1/PostgresqlTable/postgresqlColumns": postgresql_columns
"/datastream:v1/PostgresqlTable/postgresqlColumns/postgresql_column": postgresql_column
Expand Down Expand Up @@ -146812,6 +146816,12 @@
"/datastream:v1/RunStreamRequest": run_stream_request
"/datastream:v1/RunStreamRequest/cdcStrategy": cdc_strategy
"/datastream:v1/RunStreamRequest/force": force
"/datastream:v1/ServerAndClientVerification": server_and_client_verification
"/datastream:v1/ServerAndClientVerification/caCertificate": ca_certificate
"/datastream:v1/ServerAndClientVerification/clientCertificate": client_certificate
"/datastream:v1/ServerAndClientVerification/clientKey": client_key
"/datastream:v1/ServerVerification": server_verification
"/datastream:v1/ServerVerification/caCertificate": ca_certificate
"/datastream:v1/SingleTargetDataset": single_target_dataset
"/datastream:v1/SingleTargetDataset/datasetId": dataset_id
"/datastream:v1/SourceConfig": source_config
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-datastream_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-datastream_v1

### v0.44.0 (2025-01-12)

* Regenerated from discovery document revision 20250101
* Regenerated using generator version 0.16.0

### v0.43.0 (2024-12-15)

* Regenerated from discovery document revision 20241204
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2151,6 +2151,11 @@ class PostgresqlProfile
# @return [Fixnum]
attr_accessor :port

# PostgreSQL SSL configuration information.
# Corresponds to the JSON property `sslConfig`
# @return [Google::Apis::DatastreamV1::PostgresqlSslConfig]
attr_accessor :ssl_config

# Required. Username for the PostgreSQL connection.
# Corresponds to the JSON property `username`
# @return [String]
Expand All @@ -2166,6 +2171,7 @@ def update!(**args)
@hostname = args[:hostname] if args.key?(:hostname)
@password = args[:password] if args.key?(:password)
@port = args[:port] if args.key?(:port)
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
@username = args[:username] if args.key?(:username)
end
end
Expand Down Expand Up @@ -2260,6 +2266,36 @@ def update!(**args)
end
end

# PostgreSQL SSL configuration information.
class PostgresqlSslConfig
include Google::Apis::Core::Hashable

# Message represents the option where Datastream will enforce the encryption and
# authenticate the server identity as well as the client identity.
# ca_certificate, client_certificate and client_key must be set if user selects
# this option.
# Corresponds to the JSON property `serverAndClientVerification`
# @return [Google::Apis::DatastreamV1::ServerAndClientVerification]
attr_accessor :server_and_client_verification

# Message represents the option where Datastream will enforce the encryption and
# authenticate the server identity. ca_certificate must be set if user selects
# this option.
# Corresponds to the JSON property `serverVerification`
# @return [Google::Apis::DatastreamV1::ServerVerification]
attr_accessor :server_verification

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@server_and_client_verification = args[:server_and_client_verification] if args.key?(:server_and_client_verification)
@server_verification = args[:server_verification] if args.key?(:server_verification)
end
end

# PostgreSQL table.
class PostgresqlTable
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2451,6 +2487,68 @@ def update!(**args)
end
end

# Message represents the option where Datastream will enforce the encryption and
# authenticate the server identity as well as the client identity.
# ca_certificate, client_certificate and client_key must be set if user selects
# this option.
class ServerAndClientVerification
include Google::Apis::Core::Hashable

# Required. Input only. PEM-encoded server root CA certificate.
# Corresponds to the JSON property `caCertificate`
# @return [String]
attr_accessor :ca_certificate

# Required. Input only. PEM-encoded certificate used by the source database to
# authenticate the client identity (i.e., the Datastream's identity). This
# certificate is signed by either a root certificate trusted by the server or
# one or more intermediate certificates (which is stored with the leaf
# certificate) to link the this certificate to the trusted root certificate.
# Corresponds to the JSON property `clientCertificate`
# @return [String]
attr_accessor :client_certificate

# Required. Input only. PEM-encoded private key associated with the client
# certificate. This value will be used during the SSL/TLS handshake, allowing
# the PostgreSQL server to authenticate the client's identity, i.e. identity of
# the Datastream.
# Corresponds to the JSON property `clientKey`
# @return [String]
attr_accessor :client_key

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
@client_key = args[:client_key] if args.key?(:client_key)
end
end

# Message represents the option where Datastream will enforce the encryption and
# authenticate the server identity. ca_certificate must be set if user selects
# this option.
class ServerVerification
include Google::Apis::Core::Hashable

# Required. Input only. PEM-encoded server root CA certificate.
# Corresponds to the JSON property `caCertificate`
# @return [String]
attr_accessor :ca_certificate

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
end
end

# A single target dataset to which all data will be streamed.
class SingleTargetDataset
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DatastreamV1
# Version of the google-apis-datastream_v1 gem
GEM_VERSION = "0.43.0"
GEM_VERSION = "0.44.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"
GENERATOR_VERSION = "0.16.0"

# Revision of the discovery document this client was generated from
REVISION = "20241204"
REVISION = "20250101"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class PostgresqlSslConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class PostgresqlTable
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -454,6 +460,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ServerAndClientVerification
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ServerVerification
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SingleTargetDataset
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1272,6 +1290,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :hostname, as: 'hostname'
property :password, as: 'password'
property :port, as: 'port'
property :ssl_config, as: 'sslConfig', class: Google::Apis::DatastreamV1::PostgresqlSslConfig, decorator: Google::Apis::DatastreamV1::PostgresqlSslConfig::Representation

property :username, as: 'username'
end
end
Expand Down Expand Up @@ -1306,6 +1326,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class PostgresqlSslConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :server_and_client_verification, as: 'serverAndClientVerification', class: Google::Apis::DatastreamV1::ServerAndClientVerification, decorator: Google::Apis::DatastreamV1::ServerAndClientVerification::Representation

property :server_verification, as: 'serverVerification', class: Google::Apis::DatastreamV1::ServerVerification, decorator: Google::Apis::DatastreamV1::ServerVerification::Representation

end
end

class PostgresqlTable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1360,6 +1390,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ServerAndClientVerification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ca_certificate, as: 'caCertificate'
property :client_certificate, as: 'clientCertificate'
property :client_key, as: 'clientKey'
end
end

class ServerVerification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ca_certificate, as: 'caCertificate'
end
end

class SingleTargetDataset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 8b4cb7b

Please sign in to comment.