Skip to content

Commit 9f6e849

Browse files
feat: Automated regeneration of datastream v1 client (#22219)
Auto-created at 2025-03-23 10:49:14 +0000 using the toys pull request generator.
1 parent 8a74e8b commit 9f6e849

File tree

6 files changed

+100
-8
lines changed

6 files changed

+100
-8
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149610,6 +149610,7 @@
149610149610
"/datastream:v1/MysqlProfile/hostname": hostname
149611149611
"/datastream:v1/MysqlProfile/password": password
149612149612
"/datastream:v1/MysqlProfile/port": port
149613+
"/datastream:v1/MysqlProfile/secretManagerStoredPassword": secret_manager_stored_password
149613149614
"/datastream:v1/MysqlProfile/sslConfig": ssl_config
149614149615
"/datastream:v1/MysqlProfile/username": username
149615149616
"/datastream:v1/MysqlRdbms": mysql_rdbms
@@ -149663,6 +149664,7 @@
149663149664
"/datastream:v1/OracleAsmConfig/oracleSslConfig": oracle_ssl_config
149664149665
"/datastream:v1/OracleAsmConfig/password": password
149665149666
"/datastream:v1/OracleAsmConfig/port": port
149667+
"/datastream:v1/OracleAsmConfig/secretManagerStoredPassword": secret_manager_stored_password
149666149668
"/datastream:v1/OracleAsmConfig/username": username
149667149669
"/datastream:v1/OracleAsmLogFileAccess": oracle_asm_log_file_access
149668149670
"/datastream:v1/OracleColumn": oracle_column
@@ -149732,6 +149734,7 @@
149732149734
"/datastream:v1/PostgresqlProfile/hostname": hostname
149733149735
"/datastream:v1/PostgresqlProfile/password": password
149734149736
"/datastream:v1/PostgresqlProfile/port": port
149737+
"/datastream:v1/PostgresqlProfile/secretManagerStoredPassword": secret_manager_stored_password
149735149738
"/datastream:v1/PostgresqlProfile/sslConfig": ssl_config
149736149739
"/datastream:v1/PostgresqlProfile/username": username
149737149740
"/datastream:v1/PostgresqlRdbms": postgresql_rdbms
@@ -149761,13 +149764,16 @@
149761149764
"/datastream:v1/PrivateConnection/labels": labels
149762149765
"/datastream:v1/PrivateConnection/labels/label": label
149763149766
"/datastream:v1/PrivateConnection/name": name
149767+
"/datastream:v1/PrivateConnection/pscInterfaceConfig": psc_interface_config
149764149768
"/datastream:v1/PrivateConnection/satisfiesPzi": satisfies_pzi
149765149769
"/datastream:v1/PrivateConnection/satisfiesPzs": satisfies_pzs
149766149770
"/datastream:v1/PrivateConnection/state": state
149767149771
"/datastream:v1/PrivateConnection/updateTime": update_time
149768149772
"/datastream:v1/PrivateConnection/vpcPeeringConfig": vpc_peering_config
149769149773
"/datastream:v1/PrivateConnectivity": private_connectivity
149770149774
"/datastream:v1/PrivateConnectivity/privateConnection": private_connection
149775+
"/datastream:v1/PscInterfaceConfig": psc_interface_config
149776+
"/datastream:v1/PscInterfaceConfig/networkAttachment": network_attachment
149771149777
"/datastream:v1/Route": route
149772149778
"/datastream:v1/Route/createTime": create_time
149773149779
"/datastream:v1/Route/destinationAddress": destination_address
@@ -149849,6 +149855,7 @@
149849149855
"/datastream:v1/SqlServerProfile/hostname": hostname
149850149856
"/datastream:v1/SqlServerProfile/password": password
149851149857
"/datastream:v1/SqlServerProfile/port": port
149858+
"/datastream:v1/SqlServerProfile/secretManagerStoredPassword": secret_manager_stored_password
149852149859
"/datastream:v1/SqlServerProfile/username": username
149853149860
"/datastream:v1/SqlServerRdbms": sql_server_rdbms
149854149861
"/datastream:v1/SqlServerRdbms/schemas": schemas
@@ -149986,6 +149993,7 @@
149986149993
"/datastream:v1/datastream.projects.locations.privateConnections.create/parent": parent
149987149994
"/datastream:v1/datastream.projects.locations.privateConnections.create/privateConnectionId": private_connection_id
149988149995
"/datastream:v1/datastream.projects.locations.privateConnections.create/requestId": request_id
149996+
"/datastream:v1/datastream.projects.locations.privateConnections.create/validateOnly": validate_only
149989149997
"/datastream:v1/datastream.projects.locations.privateConnections.delete": delete_project_location_private_connection
149990149998
"/datastream:v1/datastream.projects.locations.privateConnections.delete/force": force
149991149999
"/datastream:v1/datastream.projects.locations.privateConnections.delete/name": name

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.46.0 (2025-03-23)
4+
5+
* Regenerated from discovery document revision 20250316
6+
37
### v0.45.0 (2025-03-02)
48

59
* Regenerated from discovery document revision 20250219

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

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,12 @@ class MysqlProfile
14031403
# @return [Fixnum]
14041404
attr_accessor :port
14051405

1406+
# Optional. A reference to a Secret Manager resource name storing the MySQL
1407+
# connection password. Mutually exclusive with the `password` field.
1408+
# Corresponds to the JSON property `secretManagerStoredPassword`
1409+
# @return [String]
1410+
attr_accessor :secret_manager_stored_password
1411+
14061412
# MySQL SSL configuration information.
14071413
# Corresponds to the JSON property `sslConfig`
14081414
# @return [Google::Apis::DatastreamV1::MysqlSslConfig]
@@ -1422,6 +1428,7 @@ def update!(**args)
14221428
@hostname = args[:hostname] if args.key?(:hostname)
14231429
@password = args[:password] if args.key?(:password)
14241430
@port = args[:port] if args.key?(:port)
1431+
@secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password)
14251432
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
14261433
@username = args[:username] if args.key?(:username)
14271434
end
@@ -1528,8 +1535,7 @@ class MysqlSslConfig
15281535

15291536
# Optional. Input only. PEM-encoded private key associated with the Client
15301537
# Certificate. If this field is used then the 'client_certificate' and the '
1531-
# ca_certificate' fields are mandatory. Mutually exclusive with the `
1532-
# secret_manager_stored_client_key` field.
1538+
# ca_certificate' fields are mandatory.
15331539
# Corresponds to the JSON property `clientKey`
15341540
# @return [String]
15351541
attr_accessor :client_key
@@ -1779,7 +1785,8 @@ class OracleAsmConfig
17791785
# @return [Google::Apis::DatastreamV1::OracleSslConfig]
17801786
attr_accessor :oracle_ssl_config
17811787

1782-
# Optional. Password for the Oracle ASM connection.
1788+
# Optional. Password for the Oracle ASM connection. Mutually exclusive with the `
1789+
# secret_manager_stored_password` field.
17831790
# Corresponds to the JSON property `password`
17841791
# @return [String]
17851792
attr_accessor :password
@@ -1789,6 +1796,12 @@ class OracleAsmConfig
17891796
# @return [Fixnum]
17901797
attr_accessor :port
17911798

1799+
# Optional. A reference to a Secret Manager resource name storing the Oracle ASM
1800+
# connection password. Mutually exclusive with the `password` field.
1801+
# Corresponds to the JSON property `secretManagerStoredPassword`
1802+
# @return [String]
1803+
attr_accessor :secret_manager_stored_password
1804+
17921805
# Required. Username for the Oracle ASM connection.
17931806
# Corresponds to the JSON property `username`
17941807
# @return [String]
@@ -1806,6 +1819,7 @@ def update!(**args)
18061819
@oracle_ssl_config = args[:oracle_ssl_config] if args.key?(:oracle_ssl_config)
18071820
@password = args[:password] if args.key?(:password)
18081821
@port = args[:port] if args.key?(:port)
1822+
@secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password)
18091823
@username = args[:username] if args.key?(:username)
18101824
end
18111825
end
@@ -2279,6 +2293,12 @@ class PostgresqlProfile
22792293
# @return [Fixnum]
22802294
attr_accessor :port
22812295

2296+
# Optional. A reference to a Secret Manager resource name storing the PostgreSQL
2297+
# connection password. Mutually exclusive with the `password` field.
2298+
# Corresponds to the JSON property `secretManagerStoredPassword`
2299+
# @return [String]
2300+
attr_accessor :secret_manager_stored_password
2301+
22822302
# PostgreSQL SSL configuration information.
22832303
# Corresponds to the JSON property `sslConfig`
22842304
# @return [Google::Apis::DatastreamV1::PostgresqlSslConfig]
@@ -2299,6 +2319,7 @@ def update!(**args)
22992319
@hostname = args[:hostname] if args.key?(:hostname)
23002320
@password = args[:password] if args.key?(:password)
23012321
@port = args[:port] if args.key?(:port)
2322+
@secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password)
23022323
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
23032324
@username = args[:username] if args.key?(:username)
23042325
end
@@ -2480,6 +2501,12 @@ class PrivateConnection
24802501
# @return [String]
24812502
attr_accessor :name
24822503

2504+
# The PSC Interface configuration is used to create PSC Interface between
2505+
# Datastream and the consumer's PSC.
2506+
# Corresponds to the JSON property `pscInterfaceConfig`
2507+
# @return [Google::Apis::DatastreamV1::PscInterfaceConfig]
2508+
attr_accessor :psc_interface_config
2509+
24832510
# Output only. Reserved for future use.
24842511
# Corresponds to the JSON property `satisfiesPzi`
24852512
# @return [Boolean]
@@ -2519,6 +2546,7 @@ def update!(**args)
25192546
@error = args[:error] if args.key?(:error)
25202547
@labels = args[:labels] if args.key?(:labels)
25212548
@name = args[:name] if args.key?(:name)
2549+
@psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
25222550
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
25232551
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
25242552
@state = args[:state] if args.key?(:state)
@@ -2547,6 +2575,28 @@ def update!(**args)
25472575
end
25482576
end
25492577

2578+
# The PSC Interface configuration is used to create PSC Interface between
2579+
# Datastream and the consumer's PSC.
2580+
class PscInterfaceConfig
2581+
include Google::Apis::Core::Hashable
2582+
2583+
# Required. Fully qualified name of the Network Attachment that Datastream will
2584+
# connect to. Format: `projects/``project``/regions/``region``/
2585+
# networkAttachments/``name```
2586+
# Corresponds to the JSON property `networkAttachment`
2587+
# @return [String]
2588+
attr_accessor :network_attachment
2589+
2590+
def initialize(**args)
2591+
update!(**args)
2592+
end
2593+
2594+
# Update properties of this object
2595+
def update!(**args)
2596+
@network_attachment = args[:network_attachment] if args.key?(:network_attachment)
2597+
end
2598+
end
2599+
25502600
# The route resource is the child of the private connection resource, used for
25512601
# defining a route for a private connection.
25522602
class Route
@@ -2813,8 +2863,7 @@ class ServerAndClientVerification
28132863
# Optional. Input only. PEM-encoded private key associated with the client
28142864
# certificate. This value will be used during the SSL/TLS handshake, allowing
28152865
# the PostgreSQL server to authenticate the client's identity, i.e. identity of
2816-
# the Datastream. Mutually exclusive with the `secret_manager_stored_client_key`
2817-
# field.
2866+
# the Datastream.
28182867
# Corresponds to the JSON property `clientKey`
28192868
# @return [String]
28202869
attr_accessor :client_key
@@ -3167,6 +3216,12 @@ class SqlServerProfile
31673216
# @return [Fixnum]
31683217
attr_accessor :port
31693218

3219+
# Optional. A reference to a Secret Manager resource name storing the SQLServer
3220+
# connection password. Mutually exclusive with the `password` field.
3221+
# Corresponds to the JSON property `secretManagerStoredPassword`
3222+
# @return [String]
3223+
attr_accessor :secret_manager_stored_password
3224+
31703225
# Required. Username for the SQLServer connection.
31713226
# Corresponds to the JSON property `username`
31723227
# @return [String]
@@ -3182,6 +3237,7 @@ def update!(**args)
31823237
@hostname = args[:hostname] if args.key?(:hostname)
31833238
@password = args[:password] if args.key?(:password)
31843239
@port = args[:port] if args.key?(:port)
3240+
@secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password)
31853241
@username = args[:username] if args.key?(:username)
31863242
end
31873243
end

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.45.0"
19+
GEM_VERSION = "0.46.0"
2020

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

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
466466
include Google::Apis::Core::JsonObjectSupport
467467
end
468468

469+
class PscInterfaceConfig
470+
class Representation < Google::Apis::Core::JsonRepresentation; end
471+
472+
include Google::Apis::Core::JsonObjectSupport
473+
end
474+
469475
class Route
470476
class Representation < Google::Apis::Core::JsonRepresentation; end
471477

@@ -1142,6 +1148,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
11421148
property :hostname, as: 'hostname'
11431149
property :password, as: 'password'
11441150
property :port, as: 'port'
1151+
property :secret_manager_stored_password, as: 'secretManagerStoredPassword'
11451152
property :ssl_config, as: 'sslConfig', class: Google::Apis::DatastreamV1::MysqlSslConfig, decorator: Google::Apis::DatastreamV1::MysqlSslConfig::Representation
11461153

11471154
property :username, as: 'username'
@@ -1245,6 +1252,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
12451252

12461253
property :password, as: 'password'
12471254
property :port, as: 'port'
1255+
property :secret_manager_stored_password, as: 'secretManagerStoredPassword'
12481256
property :username, as: 'username'
12491257
end
12501258
end
@@ -1385,6 +1393,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
13851393
property :hostname, as: 'hostname'
13861394
property :password, as: 'password'
13871395
property :port, as: 'port'
1396+
property :secret_manager_stored_password, as: 'secretManagerStoredPassword'
13881397
property :ssl_config, as: 'sslConfig', class: Google::Apis::DatastreamV1::PostgresqlSslConfig, decorator: Google::Apis::DatastreamV1::PostgresqlSslConfig::Representation
13891398

13901399
property :username, as: 'username'
@@ -1449,6 +1458,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
14491458

14501459
hash :labels, as: 'labels'
14511460
property :name, as: 'name'
1461+
property :psc_interface_config, as: 'pscInterfaceConfig', class: Google::Apis::DatastreamV1::PscInterfaceConfig, decorator: Google::Apis::DatastreamV1::PscInterfaceConfig::Representation
1462+
14521463
property :satisfies_pzi, as: 'satisfiesPzi'
14531464
property :satisfies_pzs, as: 'satisfiesPzs'
14541465
property :state, as: 'state'
@@ -1465,6 +1476,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
14651476
end
14661477
end
14671478

1479+
class PscInterfaceConfig
1480+
# @private
1481+
class Representation < Google::Apis::Core::JsonRepresentation
1482+
property :network_attachment, as: 'networkAttachment'
1483+
end
1484+
end
1485+
14681486
class Route
14691487
# @private
14701488
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1662,6 +1680,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
16621680
property :hostname, as: 'hostname'
16631681
property :password, as: 'password'
16641682
property :port, as: 'port'
1683+
property :secret_manager_stored_password, as: 'secretManagerStoredPassword'
16651684
property :username, as: 'username'
16661685
end
16671686
end

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
595595
# second request. This prevents clients from accidentally creating duplicate
596596
# commitments. The request ID must be a valid UUID with the exception that zero
597597
# UUID is not supported (00000000-0000-0000-0000-000000000000).
598+
# @param [Boolean] validate_only
599+
# Optional. When supplied with PSC Interface config, will get/create the tenant
600+
# project required for the customer to allow list and won't actually create the
601+
# private connection.
598602
# @param [String] fields
599603
# Selector specifying which fields to include in a partial response.
600604
# @param [String] quota_user
@@ -612,7 +616,7 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
612616
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
613617
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
614618
# @raise [Google::Apis::AuthorizationError] Authorization is required
615-
def create_project_location_private_connection(parent, private_connection_object = nil, force: nil, private_connection_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
619+
def create_project_location_private_connection(parent, private_connection_object = nil, force: nil, private_connection_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
616620
command = make_simple_command(:post, 'v1/{+parent}/privateConnections', options)
617621
command.request_representation = Google::Apis::DatastreamV1::PrivateConnection::Representation
618622
command.request_object = private_connection_object
@@ -622,6 +626,7 @@ def create_project_location_private_connection(parent, private_connection_object
622626
command.query['force'] = force unless force.nil?
623627
command.query['privateConnectionId'] = private_connection_id unless private_connection_id.nil?
624628
command.query['requestId'] = request_id unless request_id.nil?
629+
command.query['validateOnly'] = validate_only unless validate_only.nil?
625630
command.query['fields'] = fields unless fields.nil?
626631
command.query['quotaUser'] = quota_user unless quota_user.nil?
627632
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)