Skip to content

Commit cde46be

Browse files
feat: Automated regeneration of bigquerydatatransfer v1 client (googleapis#20267)
Auto-created at 2024-09-22 09:54:48 +0000 using the toys pull request generator.
1 parent d6da6e3 commit cde46be

File tree

5 files changed

+213
-2
lines changed

5 files changed

+213
-2
lines changed

api_names_out.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47333,6 +47333,8 @@
4733347333
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest": enroll_data_sources_request
4733447334
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest/dataSourceIds": data_source_ids
4733547335
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest/dataSourceIds/data_source_id": data_source_id
47336+
"/bigquerydatatransfer:v1/EventDrivenSchedule": event_driven_schedule
47337+
"/bigquerydatatransfer:v1/EventDrivenSchedule/pubsubSubscription": pubsub_subscription
4733647338
"/bigquerydatatransfer:v1/IsEnabledRequest": is_enabled_request
4733747339
"/bigquerydatatransfer:v1/IsEnabledResponse": is_enabled_response
4733847340
"/bigquerydatatransfer:v1/IsEnabledResponse/enabled": enabled
@@ -47364,10 +47366,15 @@
4736447366
"/bigquerydatatransfer:v1/Location/metadata": metadata
4736547367
"/bigquerydatatransfer:v1/Location/metadata/metadatum": metadatum
4736647368
"/bigquerydatatransfer:v1/Location/name": name
47369+
"/bigquerydatatransfer:v1/ManualSchedule": manual_schedule
4736747370
"/bigquerydatatransfer:v1/ScheduleOptions": schedule_options
4736847371
"/bigquerydatatransfer:v1/ScheduleOptions/disableAutoScheduling": disable_auto_scheduling
4736947372
"/bigquerydatatransfer:v1/ScheduleOptions/endTime": end_time
4737047373
"/bigquerydatatransfer:v1/ScheduleOptions/startTime": start_time
47374+
"/bigquerydatatransfer:v1/ScheduleOptionsV2": schedule_options_v2
47375+
"/bigquerydatatransfer:v1/ScheduleOptionsV2/eventDrivenSchedule": event_driven_schedule
47376+
"/bigquerydatatransfer:v1/ScheduleOptionsV2/manualSchedule": manual_schedule
47377+
"/bigquerydatatransfer:v1/ScheduleOptionsV2/timeBasedSchedule": time_based_schedule
4737147378
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest": schedule_transfer_runs_request
4737247379
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/endTime": end_time
4737347380
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/rangeEndTime": range_end_time
@@ -47392,6 +47399,10 @@
4739247399
"/bigquerydatatransfer:v1/Status/details/detail": detail
4739347400
"/bigquerydatatransfer:v1/Status/details/detail/detail": detail
4739447401
"/bigquerydatatransfer:v1/Status/message": message
47402+
"/bigquerydatatransfer:v1/TimeBasedSchedule": time_based_schedule
47403+
"/bigquerydatatransfer:v1/TimeBasedSchedule/endTime": end_time
47404+
"/bigquerydatatransfer:v1/TimeBasedSchedule/schedule": schedule
47405+
"/bigquerydatatransfer:v1/TimeBasedSchedule/startTime": start_time
4739547406
"/bigquerydatatransfer:v1/TimeRange": time_range
4739647407
"/bigquerydatatransfer:v1/TimeRange/endTime": end_time
4739747408
"/bigquerydatatransfer:v1/TimeRange/startTime": start_time
@@ -47404,6 +47415,7 @@
4740447415
"/bigquerydatatransfer:v1/TransferConfig/displayName": display_name
4740547416
"/bigquerydatatransfer:v1/TransferConfig/emailPreferences": email_preferences
4740647417
"/bigquerydatatransfer:v1/TransferConfig/encryptionConfiguration": encryption_configuration
47418+
"/bigquerydatatransfer:v1/TransferConfig/error": error
4740747419
"/bigquerydatatransfer:v1/TransferConfig/name": name
4740847420
"/bigquerydatatransfer:v1/TransferConfig/nextRunTime": next_run_time
4740947421
"/bigquerydatatransfer:v1/TransferConfig/notificationPubsubTopic": notification_pubsub_topic
@@ -47412,6 +47424,7 @@
4741247424
"/bigquerydatatransfer:v1/TransferConfig/params/param": param
4741347425
"/bigquerydatatransfer:v1/TransferConfig/schedule": schedule
4741447426
"/bigquerydatatransfer:v1/TransferConfig/scheduleOptions": schedule_options
47427+
"/bigquerydatatransfer:v1/TransferConfig/scheduleOptionsV2": schedule_options_v2
4741547428
"/bigquerydatatransfer:v1/TransferConfig/state": state
4741647429
"/bigquerydatatransfer:v1/TransferConfig/status": status
4741747430
"/bigquerydatatransfer:v1/TransferConfig/updateTime": update_time

generated/google-apis-bigquerydatatransfer_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-bigquerydatatransfer_v1
22

3+
### v0.43.0 (2024-09-22)
4+
5+
* Regenerated from discovery document revision 20240914
6+
37
### v0.42.0 (2024-08-11)
48

59
* Regenerated from discovery document revision 20240806

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

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,27 @@ def update!(**args)
385385
end
386386
end
387387

388+
# Options customizing EventDriven transfers schedule.
389+
class EventDrivenSchedule
390+
include Google::Apis::Core::Hashable
391+
392+
# Pub/Sub subscription name used to receive events. Only Google Cloud Storage
393+
# data source support this option. Format: projects/`project`/subscriptions/`
394+
# subscription`
395+
# Corresponds to the JSON property `pubsubSubscription`
396+
# @return [String]
397+
attr_accessor :pubsub_subscription
398+
399+
def initialize(**args)
400+
update!(**args)
401+
end
402+
403+
# Update properties of this object
404+
def update!(**args)
405+
@pubsub_subscription = args[:pubsub_subscription] if args.key?(:pubsub_subscription)
406+
end
407+
end
408+
388409
# Returns list of supported data sources and their metadata.
389410
class ListDataSourcesResponse
390411
include Google::Apis::Core::Hashable
@@ -565,6 +586,19 @@ def update!(**args)
565586
end
566587
end
567588

589+
# Options customizing manual transfers schedule.
590+
class ManualSchedule
591+
include Google::Apis::Core::Hashable
592+
593+
def initialize(**args)
594+
update!(**args)
595+
end
596+
597+
# Update properties of this object
598+
def update!(**args)
599+
end
600+
end
601+
568602
# Options customizing the data transfer schedule.
569603
class ScheduleOptions
570604
include Google::Apis::Core::Hashable
@@ -606,6 +640,41 @@ def update!(**args)
606640
end
607641
end
608642

643+
# V2 options customizing different types of data transfer schedule. This field
644+
# supports existing time-based and manual transfer schedule. Also supports Event-
645+
# Driven transfer schedule. ScheduleOptionsV2 cannot be used together with
646+
# ScheduleOptions/Schedule.
647+
class ScheduleOptionsV2
648+
include Google::Apis::Core::Hashable
649+
650+
# Options customizing EventDriven transfers schedule.
651+
# Corresponds to the JSON property `eventDrivenSchedule`
652+
# @return [Google::Apis::BigquerydatatransferV1::EventDrivenSchedule]
653+
attr_accessor :event_driven_schedule
654+
655+
# Options customizing manual transfers schedule.
656+
# Corresponds to the JSON property `manualSchedule`
657+
# @return [Google::Apis::BigquerydatatransferV1::ManualSchedule]
658+
attr_accessor :manual_schedule
659+
660+
# Options customizing the time based transfer schedule. Options are migrated
661+
# from the original ScheduleOptions message.
662+
# Corresponds to the JSON property `timeBasedSchedule`
663+
# @return [Google::Apis::BigquerydatatransferV1::TimeBasedSchedule]
664+
attr_accessor :time_based_schedule
665+
666+
def initialize(**args)
667+
update!(**args)
668+
end
669+
670+
# Update properties of this object
671+
def update!(**args)
672+
@event_driven_schedule = args[:event_driven_schedule] if args.key?(:event_driven_schedule)
673+
@manual_schedule = args[:manual_schedule] if args.key?(:manual_schedule)
674+
@time_based_schedule = args[:time_based_schedule] if args.key?(:time_based_schedule)
675+
end
676+
end
677+
609678
# A request to schedule transfer runs for a time range.
610679
class ScheduleTransferRunsRequest
611680
include Google::Apis::Core::Hashable
@@ -738,6 +807,49 @@ def update!(**args)
738807
end
739808
end
740809

810+
# Options customizing the time based transfer schedule. Options are migrated
811+
# from the original ScheduleOptions message.
812+
class TimeBasedSchedule
813+
include Google::Apis::Core::Hashable
814+
815+
# Defines time to stop scheduling transfer runs. A transfer run cannot be
816+
# scheduled at or after the end time. The end time can be changed at any moment.
817+
# Corresponds to the JSON property `endTime`
818+
# @return [String]
819+
attr_accessor :end_time
820+
821+
# Data transfer schedule. If the data source does not support a custom schedule,
822+
# this should be empty. If it is empty, the default value for the data source
823+
# will be used. The specified times are in UTC. Examples of valid format: `1st,
824+
# 3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first
825+
# sunday of quarter 00:00`. See more explanation about the format here: https://
826+
# cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#
827+
# the_schedule_format NOTE: The minimum interval time between recurring
828+
# transfers depends on the data source; refer to the documentation for your data
829+
# source.
830+
# Corresponds to the JSON property `schedule`
831+
# @return [String]
832+
attr_accessor :schedule
833+
834+
# Specifies time to start scheduling transfer runs. The first run will be
835+
# scheduled at or after the start time according to a recurrence pattern defined
836+
# in the schedule string. The start time can be changed at any moment.
837+
# Corresponds to the JSON property `startTime`
838+
# @return [String]
839+
attr_accessor :start_time
840+
841+
def initialize(**args)
842+
update!(**args)
843+
end
844+
845+
# Update properties of this object
846+
def update!(**args)
847+
@end_time = args[:end_time] if args.key?(:end_time)
848+
@schedule = args[:schedule] if args.key?(:schedule)
849+
@start_time = args[:start_time] if args.key?(:start_time)
850+
end
851+
end
852+
741853
# A specification for a time range, this will request transfer runs with
742854
# run_time between start_time (inclusive) and end_time (exclusive).
743855
class TimeRange
@@ -828,6 +940,16 @@ class TransferConfig
828940
# @return [Google::Apis::BigquerydatatransferV1::EncryptionConfiguration]
829941
attr_accessor :encryption_configuration
830942

943+
# The `Status` type defines a logical error model that is suitable for different
944+
# programming environments, including REST APIs and RPC APIs. It is used by [
945+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
946+
# data: error code, error message, and error details. You can find out more
947+
# about this error model and how to work with it in the [API Design Guide](https:
948+
# //cloud.google.com/apis/design/errors).
949+
# Corresponds to the JSON property `error`
950+
# @return [Google::Apis::BigquerydatatransferV1::Status]
951+
attr_accessor :error
952+
831953
# Identifier. The resource name of the transfer config. Transfer config names
832954
# have the form either `projects/`project_id`/locations/`region`/transferConfigs/
833955
# `config_id`` or `projects/`project_id`/transferConfigs/`config_id``, where `
@@ -880,6 +1002,14 @@ class TransferConfig
8801002
# @return [Google::Apis::BigquerydatatransferV1::ScheduleOptions]
8811003
attr_accessor :schedule_options
8821004

1005+
# V2 options customizing different types of data transfer schedule. This field
1006+
# supports existing time-based and manual transfer schedule. Also supports Event-
1007+
# Driven transfer schedule. ScheduleOptionsV2 cannot be used together with
1008+
# ScheduleOptions/Schedule.
1009+
# Corresponds to the JSON property `scheduleOptionsV2`
1010+
# @return [Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2]
1011+
attr_accessor :schedule_options_v2
1012+
8831013
# Output only. State of the most recently updated transfer run.
8841014
# Corresponds to the JSON property `state`
8851015
# @return [String]
@@ -909,13 +1039,15 @@ def update!(**args)
9091039
@display_name = args[:display_name] if args.key?(:display_name)
9101040
@email_preferences = args[:email_preferences] if args.key?(:email_preferences)
9111041
@encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
1042+
@error = args[:error] if args.key?(:error)
9121043
@name = args[:name] if args.key?(:name)
9131044
@next_run_time = args[:next_run_time] if args.key?(:next_run_time)
9141045
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
9151046
@owner_info = args[:owner_info] if args.key?(:owner_info)
9161047
@params = args[:params] if args.key?(:params)
9171048
@schedule = args[:schedule] if args.key?(:schedule)
9181049
@schedule_options = args[:schedule_options] if args.key?(:schedule_options)
1050+
@schedule_options_v2 = args[:schedule_options_v2] if args.key?(:schedule_options_v2)
9191051
@state = args[:state] if args.key?(:state)
9201052
@update_time = args[:update_time] if args.key?(:update_time)
9211053
@user_id = args[:user_id] if args.key?(:user_id)

generated/google-apis-bigquerydatatransfer_v1/lib/google/apis/bigquerydatatransfer_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 BigquerydatatransferV1
1818
# Version of the google-apis-bigquerydatatransfer_v1 gem
19-
GEM_VERSION = "0.42.0"
19+
GEM_VERSION = "0.43.0"
2020

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

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

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class EventDrivenSchedule
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
7379
class ListDataSourcesResponse
7480
class Representation < Google::Apis::Core::JsonRepresentation; end
7581

@@ -106,12 +112,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
106112
include Google::Apis::Core::JsonObjectSupport
107113
end
108114

115+
class ManualSchedule
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
109121
class ScheduleOptions
110122
class Representation < Google::Apis::Core::JsonRepresentation; end
111123

112124
include Google::Apis::Core::JsonObjectSupport
113125
end
114126

127+
class ScheduleOptionsV2
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
115133
class ScheduleTransferRunsRequest
116134
class Representation < Google::Apis::Core::JsonRepresentation; end
117135

@@ -142,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142160
include Google::Apis::Core::JsonObjectSupport
143161
end
144162

163+
class TimeBasedSchedule
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
145169
class TimeRange
146170
class Representation < Google::Apis::Core::JsonRepresentation; end
147171

@@ -266,6 +290,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
266290
end
267291
end
268292

293+
class EventDrivenSchedule
294+
# @private
295+
class Representation < Google::Apis::Core::JsonRepresentation
296+
property :pubsub_subscription, as: 'pubsubSubscription'
297+
end
298+
end
299+
269300
class ListDataSourcesResponse
270301
# @private
271302
class Representation < Google::Apis::Core::JsonRepresentation
@@ -322,6 +353,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
322353
end
323354
end
324355

356+
class ManualSchedule
357+
# @private
358+
class Representation < Google::Apis::Core::JsonRepresentation
359+
end
360+
end
361+
325362
class ScheduleOptions
326363
# @private
327364
class Representation < Google::Apis::Core::JsonRepresentation
@@ -331,6 +368,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
331368
end
332369
end
333370

371+
class ScheduleOptionsV2
372+
# @private
373+
class Representation < Google::Apis::Core::JsonRepresentation
374+
property :event_driven_schedule, as: 'eventDrivenSchedule', class: Google::Apis::BigquerydatatransferV1::EventDrivenSchedule, decorator: Google::Apis::BigquerydatatransferV1::EventDrivenSchedule::Representation
375+
376+
property :manual_schedule, as: 'manualSchedule', class: Google::Apis::BigquerydatatransferV1::ManualSchedule, decorator: Google::Apis::BigquerydatatransferV1::ManualSchedule::Representation
377+
378+
property :time_based_schedule, as: 'timeBasedSchedule', class: Google::Apis::BigquerydatatransferV1::TimeBasedSchedule, decorator: Google::Apis::BigquerydatatransferV1::TimeBasedSchedule::Representation
379+
380+
end
381+
end
382+
334383
class ScheduleTransferRunsRequest
335384
# @private
336385
class Representation < Google::Apis::Core::JsonRepresentation
@@ -373,6 +422,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
373422
end
374423
end
375424

425+
class TimeBasedSchedule
426+
# @private
427+
class Representation < Google::Apis::Core::JsonRepresentation
428+
property :end_time, as: 'endTime'
429+
property :schedule, as: 'schedule'
430+
property :start_time, as: 'startTime'
431+
end
432+
end
433+
376434
class TimeRange
377435
# @private
378436
class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +452,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
394452

395453
property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigquerydatatransferV1::EncryptionConfiguration, decorator: Google::Apis::BigquerydatatransferV1::EncryptionConfiguration::Representation
396454

455+
property :error, as: 'error', class: Google::Apis::BigquerydatatransferV1::Status, decorator: Google::Apis::BigquerydatatransferV1::Status::Representation
456+
397457
property :name, as: 'name'
398458
property :next_run_time, as: 'nextRunTime'
399459
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
@@ -403,6 +463,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
403463
property :schedule, as: 'schedule'
404464
property :schedule_options, as: 'scheduleOptions', class: Google::Apis::BigquerydatatransferV1::ScheduleOptions, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptions::Representation
405465

466+
property :schedule_options_v2, as: 'scheduleOptionsV2', class: Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2::Representation
467+
406468
property :state, as: 'state'
407469
property :update_time, as: 'updateTime'
408470
property :user_id, :numeric_string => true, as: 'userId'

0 commit comments

Comments
 (0)