Skip to content

Commit 43df9c8

Browse files
feat: Automated regeneration of datastream v1 client (#24790)
Auto-created at 2025-11-02 09:34:15 +0000 using the toys pull request generator.
1 parent 740cc13 commit 43df9c8

File tree

6 files changed

+72
-4
lines changed

6 files changed

+72
-4
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162724,6 +162724,8 @@
162724162724
"/datastream:v1/Error/errorUuid": error_uuid
162725162725
"/datastream:v1/Error/message": message
162726162726
"/datastream:v1/Error/reason": reason
162727+
"/datastream:v1/EventFilter": event_filter
162728+
"/datastream:v1/EventFilter/sqlWhereClause": sql_where_clause
162727162729
"/datastream:v1/FetchStaticIpsResponse": fetch_static_ips_response
162728162730
"/datastream:v1/FetchStaticIpsResponse/nextPageToken": next_page_token
162729162731
"/datastream:v1/FetchStaticIpsResponse/staticIps": static_ips
@@ -162764,6 +162766,8 @@
162764162766
"/datastream:v1/ListOperationsResponse/nextPageToken": next_page_token
162765162767
"/datastream:v1/ListOperationsResponse/operations": operations
162766162768
"/datastream:v1/ListOperationsResponse/operations/operation": operation
162769+
"/datastream:v1/ListOperationsResponse/unreachable": unreachable
162770+
"/datastream:v1/ListOperationsResponse/unreachable/unreachable": unreachable
162767162771
"/datastream:v1/ListPrivateConnectionsResponse": list_private_connections_response
162768162772
"/datastream:v1/ListPrivateConnectionsResponse/nextPageToken": next_page_token
162769162773
"/datastream:v1/ListPrivateConnectionsResponse/privateConnections": private_connections
@@ -163150,6 +163154,7 @@
163150163154
"/datastream:v1/StandardConnectionFormat": standard_connection_format
163151163155
"/datastream:v1/StandardConnectionFormat/directConnection": direct_connection
163152163156
"/datastream:v1/StartBackfillJobRequest": start_backfill_job_request
163157+
"/datastream:v1/StartBackfillJobRequest/eventFilter": event_filter
163153163158
"/datastream:v1/StartBackfillJobResponse": start_backfill_job_response
163154163159
"/datastream:v1/StartBackfillJobResponse/object": object
163155163160
"/datastream:v1/StaticServiceIpConnectivity": static_service_ip_connectivity
@@ -163262,6 +163267,7 @@
163262163267
"/datastream:v1/datastream.projects.locations.operations.list/name": name
163263163268
"/datastream:v1/datastream.projects.locations.operations.list/pageSize": page_size
163264163269
"/datastream:v1/datastream.projects.locations.operations.list/pageToken": page_token
163270+
"/datastream:v1/datastream.projects.locations.operations.list/returnPartialSuccess": return_partial_success
163265163271
"/datastream:v1/datastream.projects.locations.privateConnections.create": create_project_location_private_connection
163266163272
"/datastream:v1/datastream.projects.locations.privateConnections.create/force": force
163267163273
"/datastream:v1/datastream.projects.locations.privateConnections.create/parent": parent

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.57.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251021
6+
37
### v0.56.0 (2025-09-07)
48

59
* Regenerated from discovery document revision 20250827

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,26 @@ def update!(**args)
806806
end
807807
end
808808

809+
# Represents a filter for included data on a stream object.
810+
class EventFilter
811+
include Google::Apis::Core::Hashable
812+
813+
# An SQL-query Where clause selecting which data should be included, not
814+
# including the "WHERE" keyword. E.g., "t.key1 = 'value1' AND t.key2 = 'value2'".
815+
# Corresponds to the JSON property `sqlWhereClause`
816+
# @return [String]
817+
attr_accessor :sql_where_clause
818+
819+
def initialize(**args)
820+
update!(**args)
821+
end
822+
823+
# Update properties of this object
824+
def update!(**args)
825+
@sql_where_clause = args[:sql_where_clause] if args.key?(:sql_where_clause)
826+
end
827+
end
828+
809829
# Response message for a 'FetchStaticIps' response.
810830
class FetchStaticIpsResponse
811831
include Google::Apis::Core::Hashable
@@ -1080,6 +1100,13 @@ class ListOperationsResponse
10801100
# @return [Array<Google::Apis::DatastreamV1::Operation>]
10811101
attr_accessor :operations
10821102

1103+
# Unordered list. Unreachable resources. Populated when the request sets `
1104+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
1105+
# when attempting to list all resources across all supported locations.
1106+
# Corresponds to the JSON property `unreachable`
1107+
# @return [Array<String>]
1108+
attr_accessor :unreachable
1109+
10831110
def initialize(**args)
10841111
update!(**args)
10851112
end
@@ -1088,6 +1115,7 @@ def initialize(**args)
10881115
def update!(**args)
10891116
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
10901117
@operations = args[:operations] if args.key?(:operations)
1118+
@unreachable = args[:unreachable] if args.key?(:unreachable)
10911119
end
10921120
end
10931121

@@ -1335,7 +1363,7 @@ def update!(**args)
13351363
class MongodbChangeStreamPosition
13361364
include Google::Apis::Core::Hashable
13371365

1338-
# Required. The timestamp (in epoch seconds) to start change stream from.
1366+
# Required. The timestamp to start change stream from.
13391367
# Corresponds to the JSON property `startTime`
13401368
# @return [String]
13411369
attr_accessor :start_time
@@ -3929,12 +3957,18 @@ def update!(**args)
39293957
class StartBackfillJobRequest
39303958
include Google::Apis::Core::Hashable
39313959

3960+
# Represents a filter for included data on a stream object.
3961+
# Corresponds to the JSON property `eventFilter`
3962+
# @return [Google::Apis::DatastreamV1::EventFilter]
3963+
attr_accessor :event_filter
3964+
39323965
def initialize(**args)
39333966
update!(**args)
39343967
end
39353968

39363969
# Update properties of this object
39373970
def update!(**args)
3971+
@event_filter = args[:event_filter] if args.key?(:event_filter)
39383972
end
39393973
end
39403974

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.56.0"
19+
GEM_VERSION = "0.57.0"
2020

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

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
160160
include Google::Apis::Core::JsonObjectSupport
161161
end
162162

163+
class EventFilter
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
163169
class FetchStaticIpsResponse
164170
class Representation < Google::Apis::Core::JsonRepresentation; end
165171

@@ -1057,6 +1063,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
10571063
end
10581064
end
10591065

1066+
class EventFilter
1067+
# @private
1068+
class Representation < Google::Apis::Core::JsonRepresentation
1069+
property :sql_where_clause, as: 'sqlWhereClause'
1070+
end
1071+
end
1072+
10601073
class FetchStaticIpsResponse
10611074
# @private
10621075
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1144,6 +1157,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
11441157
property :next_page_token, as: 'nextPageToken'
11451158
collection :operations, as: 'operations', class: Google::Apis::DatastreamV1::Operation, decorator: Google::Apis::DatastreamV1::Operation::Representation
11461159

1160+
collection :unreachable, as: 'unreachable'
11471161
end
11481162
end
11491163

@@ -1999,6 +2013,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
19992013
class StartBackfillJobRequest
20002014
# @private
20012015
class Representation < Google::Apis::Core::JsonRepresentation
2016+
property :event_filter, as: 'eventFilter', class: Google::Apis::DatastreamV1::EventFilter, decorator: Google::Apis::DatastreamV1::EventFilter::Representation
2017+
20022018
end
20032019
end
20042020

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
550550
# The standard list page size.
551551
# @param [String] page_token
552552
# The standard list page token.
553+
# @param [Boolean] return_partial_success
554+
# When set to `true`, operations that are reachable are returned as normal, and
555+
# those that are unreachable are returned in the [ListOperationsResponse.
556+
# unreachable] field. This can only be `true` when reading across collections e.
557+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
558+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
559+
# explicitly documented otherwise in service or product specific documentation.
553560
# @param [String] fields
554561
# Selector specifying which fields to include in a partial response.
555562
# @param [String] quota_user
@@ -567,14 +574,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
567574
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568575
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569576
# @raise [Google::Apis::AuthorizationError] Authorization is required
570-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
577+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
571578
command = make_simple_command(:get, 'v1/{+name}/operations', options)
572579
command.response_representation = Google::Apis::DatastreamV1::ListOperationsResponse::Representation
573580
command.response_class = Google::Apis::DatastreamV1::ListOperationsResponse
574581
command.params['name'] = name unless name.nil?
575582
command.query['filter'] = filter unless filter.nil?
576583
command.query['pageSize'] = page_size unless page_size.nil?
577584
command.query['pageToken'] = page_token unless page_token.nil?
585+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
578586
command.query['fields'] = fields unless fields.nil?
579587
command.query['quotaUser'] = quota_user unless quota_user.nil?
580588
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)