Skip to content

Commit

Permalink
feat: Automated regeneration of bigquerydatatransfer v1 client (#20267)
Browse files Browse the repository at this point in the history
Auto-created at 2024-09-22 09:54:48 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Sep 22, 2024
1 parent d6da6e3 commit cde46be
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 2 deletions.
13 changes: 13 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47333,6 +47333,8 @@
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest": enroll_data_sources_request
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest/dataSourceIds": data_source_ids
"/bigquerydatatransfer:v1/EnrollDataSourcesRequest/dataSourceIds/data_source_id": data_source_id
"/bigquerydatatransfer:v1/EventDrivenSchedule": event_driven_schedule
"/bigquerydatatransfer:v1/EventDrivenSchedule/pubsubSubscription": pubsub_subscription
"/bigquerydatatransfer:v1/IsEnabledRequest": is_enabled_request
"/bigquerydatatransfer:v1/IsEnabledResponse": is_enabled_response
"/bigquerydatatransfer:v1/IsEnabledResponse/enabled": enabled
Expand Down Expand Up @@ -47364,10 +47366,15 @@
"/bigquerydatatransfer:v1/Location/metadata": metadata
"/bigquerydatatransfer:v1/Location/metadata/metadatum": metadatum
"/bigquerydatatransfer:v1/Location/name": name
"/bigquerydatatransfer:v1/ManualSchedule": manual_schedule
"/bigquerydatatransfer:v1/ScheduleOptions": schedule_options
"/bigquerydatatransfer:v1/ScheduleOptions/disableAutoScheduling": disable_auto_scheduling
"/bigquerydatatransfer:v1/ScheduleOptions/endTime": end_time
"/bigquerydatatransfer:v1/ScheduleOptions/startTime": start_time
"/bigquerydatatransfer:v1/ScheduleOptionsV2": schedule_options_v2
"/bigquerydatatransfer:v1/ScheduleOptionsV2/eventDrivenSchedule": event_driven_schedule
"/bigquerydatatransfer:v1/ScheduleOptionsV2/manualSchedule": manual_schedule
"/bigquerydatatransfer:v1/ScheduleOptionsV2/timeBasedSchedule": time_based_schedule
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest": schedule_transfer_runs_request
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/endTime": end_time
"/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/rangeEndTime": range_end_time
Expand All @@ -47392,6 +47399,10 @@
"/bigquerydatatransfer:v1/Status/details/detail": detail
"/bigquerydatatransfer:v1/Status/details/detail/detail": detail
"/bigquerydatatransfer:v1/Status/message": message
"/bigquerydatatransfer:v1/TimeBasedSchedule": time_based_schedule
"/bigquerydatatransfer:v1/TimeBasedSchedule/endTime": end_time
"/bigquerydatatransfer:v1/TimeBasedSchedule/schedule": schedule
"/bigquerydatatransfer:v1/TimeBasedSchedule/startTime": start_time
"/bigquerydatatransfer:v1/TimeRange": time_range
"/bigquerydatatransfer:v1/TimeRange/endTime": end_time
"/bigquerydatatransfer:v1/TimeRange/startTime": start_time
Expand All @@ -47404,6 +47415,7 @@
"/bigquerydatatransfer:v1/TransferConfig/displayName": display_name
"/bigquerydatatransfer:v1/TransferConfig/emailPreferences": email_preferences
"/bigquerydatatransfer:v1/TransferConfig/encryptionConfiguration": encryption_configuration
"/bigquerydatatransfer:v1/TransferConfig/error": error
"/bigquerydatatransfer:v1/TransferConfig/name": name
"/bigquerydatatransfer:v1/TransferConfig/nextRunTime": next_run_time
"/bigquerydatatransfer:v1/TransferConfig/notificationPubsubTopic": notification_pubsub_topic
Expand All @@ -47412,6 +47424,7 @@
"/bigquerydatatransfer:v1/TransferConfig/params/param": param
"/bigquerydatatransfer:v1/TransferConfig/schedule": schedule
"/bigquerydatatransfer:v1/TransferConfig/scheduleOptions": schedule_options
"/bigquerydatatransfer:v1/TransferConfig/scheduleOptionsV2": schedule_options_v2
"/bigquerydatatransfer:v1/TransferConfig/state": state
"/bigquerydatatransfer:v1/TransferConfig/status": status
"/bigquerydatatransfer:v1/TransferConfig/updateTime": update_time
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-bigquerydatatransfer_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-bigquerydatatransfer_v1

### v0.43.0 (2024-09-22)

* Regenerated from discovery document revision 20240914

### v0.42.0 (2024-08-11)

* Regenerated from discovery document revision 20240806
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,27 @@ def update!(**args)
end
end

# Options customizing EventDriven transfers schedule.
class EventDrivenSchedule
include Google::Apis::Core::Hashable

# Pub/Sub subscription name used to receive events. Only Google Cloud Storage
# data source support this option. Format: projects/`project`/subscriptions/`
# subscription`
# Corresponds to the JSON property `pubsubSubscription`
# @return [String]
attr_accessor :pubsub_subscription

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

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

# Returns list of supported data sources and their metadata.
class ListDataSourcesResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -565,6 +586,19 @@ def update!(**args)
end
end

# Options customizing manual transfers schedule.
class ManualSchedule
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# Options customizing the data transfer schedule.
class ScheduleOptions
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -606,6 +640,41 @@ def update!(**args)
end
end

# V2 options customizing different types of data transfer schedule. This field
# supports existing time-based and manual transfer schedule. Also supports Event-
# Driven transfer schedule. ScheduleOptionsV2 cannot be used together with
# ScheduleOptions/Schedule.
class ScheduleOptionsV2
include Google::Apis::Core::Hashable

# Options customizing EventDriven transfers schedule.
# Corresponds to the JSON property `eventDrivenSchedule`
# @return [Google::Apis::BigquerydatatransferV1::EventDrivenSchedule]
attr_accessor :event_driven_schedule

# Options customizing manual transfers schedule.
# Corresponds to the JSON property `manualSchedule`
# @return [Google::Apis::BigquerydatatransferV1::ManualSchedule]
attr_accessor :manual_schedule

# Options customizing the time based transfer schedule. Options are migrated
# from the original ScheduleOptions message.
# Corresponds to the JSON property `timeBasedSchedule`
# @return [Google::Apis::BigquerydatatransferV1::TimeBasedSchedule]
attr_accessor :time_based_schedule

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

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

# A request to schedule transfer runs for a time range.
class ScheduleTransferRunsRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -738,6 +807,49 @@ def update!(**args)
end
end

# Options customizing the time based transfer schedule. Options are migrated
# from the original ScheduleOptions message.
class TimeBasedSchedule
include Google::Apis::Core::Hashable

# Defines time to stop scheduling transfer runs. A transfer run cannot be
# scheduled at or after the end time. The end time can be changed at any moment.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time

# Data transfer schedule. If the data source does not support a custom schedule,
# this should be empty. If it is empty, the default value for the data source
# will be used. The specified times are in UTC. Examples of valid format: `1st,
# 3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first
# sunday of quarter 00:00`. See more explanation about the format here: https://
# cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#
# the_schedule_format NOTE: The minimum interval time between recurring
# transfers depends on the data source; refer to the documentation for your data
# source.
# Corresponds to the JSON property `schedule`
# @return [String]
attr_accessor :schedule

# Specifies time to start scheduling transfer runs. The first run will be
# scheduled at or after the start time according to a recurrence pattern defined
# in the schedule string. The start time can be changed at any moment.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time

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

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

# A specification for a time range, this will request transfer runs with
# run_time between start_time (inclusive) and end_time (exclusive).
class TimeRange
Expand Down Expand Up @@ -828,6 +940,16 @@ class TransferConfig
# @return [Google::Apis::BigquerydatatransferV1::EncryptionConfiguration]
attr_accessor :encryption_configuration

# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::BigquerydatatransferV1::Status]
attr_accessor :error

# Identifier. The resource name of the transfer config. Transfer config names
# have the form either `projects/`project_id`/locations/`region`/transferConfigs/
# `config_id`` or `projects/`project_id`/transferConfigs/`config_id``, where `
Expand Down Expand Up @@ -880,6 +1002,14 @@ class TransferConfig
# @return [Google::Apis::BigquerydatatransferV1::ScheduleOptions]
attr_accessor :schedule_options

# V2 options customizing different types of data transfer schedule. This field
# supports existing time-based and manual transfer schedule. Also supports Event-
# Driven transfer schedule. ScheduleOptionsV2 cannot be used together with
# ScheduleOptions/Schedule.
# Corresponds to the JSON property `scheduleOptionsV2`
# @return [Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2]
attr_accessor :schedule_options_v2

# Output only. State of the most recently updated transfer run.
# Corresponds to the JSON property `state`
# @return [String]
Expand Down Expand Up @@ -909,13 +1039,15 @@ def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@email_preferences = args[:email_preferences] if args.key?(:email_preferences)
@encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
@error = args[:error] if args.key?(:error)
@name = args[:name] if args.key?(:name)
@next_run_time = args[:next_run_time] if args.key?(:next_run_time)
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
@owner_info = args[:owner_info] if args.key?(:owner_info)
@params = args[:params] if args.key?(:params)
@schedule = args[:schedule] if args.key?(:schedule)
@schedule_options = args[:schedule_options] if args.key?(:schedule_options)
@schedule_options_v2 = args[:schedule_options_v2] if args.key?(:schedule_options_v2)
@state = args[:state] if args.key?(:state)
@update_time = args[:update_time] if args.key?(:update_time)
@user_id = args[:user_id] if args.key?(:user_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module BigquerydatatransferV1
# Version of the google-apis-bigquerydatatransfer_v1 gem
GEM_VERSION = "0.42.0"
GEM_VERSION = "0.43.0"

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

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

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

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

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

Expand Down Expand Up @@ -106,12 +112,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

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

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

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

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

Expand Down Expand Up @@ -142,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

Expand Down Expand Up @@ -266,6 +290,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class EventDrivenSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pubsub_subscription, as: 'pubsubSubscription'
end
end

class ListDataSourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -322,6 +353,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ManualSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ScheduleOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -331,6 +368,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ScheduleOptionsV2
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_driven_schedule, as: 'eventDrivenSchedule', class: Google::Apis::BigquerydatatransferV1::EventDrivenSchedule, decorator: Google::Apis::BigquerydatatransferV1::EventDrivenSchedule::Representation

property :manual_schedule, as: 'manualSchedule', class: Google::Apis::BigquerydatatransferV1::ManualSchedule, decorator: Google::Apis::BigquerydatatransferV1::ManualSchedule::Representation

property :time_based_schedule, as: 'timeBasedSchedule', class: Google::Apis::BigquerydatatransferV1::TimeBasedSchedule, decorator: Google::Apis::BigquerydatatransferV1::TimeBasedSchedule::Representation

end
end

class ScheduleTransferRunsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -373,6 +422,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class TimeBasedSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :schedule, as: 'schedule'
property :start_time, as: 'startTime'
end
end

class TimeRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -394,6 +452,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

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

property :error, as: 'error', class: Google::Apis::BigquerydatatransferV1::Status, decorator: Google::Apis::BigquerydatatransferV1::Status::Representation

property :name, as: 'name'
property :next_run_time, as: 'nextRunTime'
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
Expand All @@ -403,6 +463,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :schedule, as: 'schedule'
property :schedule_options, as: 'scheduleOptions', class: Google::Apis::BigquerydatatransferV1::ScheduleOptions, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptions::Representation

property :schedule_options_v2, as: 'scheduleOptionsV2', class: Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2::Representation

property :state, as: 'state'
property :update_time, as: 'updateTime'
property :user_id, :numeric_string => true, as: 'userId'
Expand Down

0 comments on commit cde46be

Please sign in to comment.