class Google::Apis::BigquerydatatransferV1::DataSource

Represents data source metadata. Metadata is sufficient to render UI and request proper OAuth tokens.

Attributes

authorization_type[RW]

Indicates the type of authorization. Corresponds to the JSON property `authorizationType` @return [String]

client_id[RW]

Data source client id which should be used to receive refresh token. Corresponds to the JSON property `clientId` @return [String]

data_refresh_type[RW]

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically. Corresponds to the JSON property `dataRefreshType` @return [String]

data_source_id[RW]

Data source id. Corresponds to the JSON property `dataSourceId` @return [String]

default_data_refresh_window_days[RW]

Default data refresh window on days. Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`. Corresponds to the JSON property `defaultDataRefreshWindowDays` @return [Fixnum]

default_schedule[RW]

Default data transfer schedule. Examples of valid schedules include: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. Corresponds to the JSON property `defaultSchedule` @return [String]

description[RW]

User friendly data source description string. Corresponds to the JSON property `description` @return [String]

display_name[RW]

User friendly data source name. Corresponds to the JSON property `displayName` @return [String]

help_url[RW]

Url for the help document for this data source. Corresponds to the JSON property `helpUrl` @return [String]

manual_runs_disabled[RW]

Disables backfilling and manual run scheduling for the data source. Corresponds to the JSON property `manualRunsDisabled` @return [Boolean]

manual_runs_disabled?[RW]

Disables backfilling and manual run scheduling for the data source. Corresponds to the JSON property `manualRunsDisabled` @return [Boolean]

minimum_schedule_interval[RW]

The minimum interval for scheduler to schedule runs. Corresponds to the JSON property `minimumScheduleInterval` @return [String]

name[RW]

Output only. Data source resource name. Corresponds to the JSON property `name` @return [String]

parameters[RW]

Data source parameters. Corresponds to the JSON property `parameters` @return [Array<Google::Apis::BigquerydatatransferV1::DataSourceParameter>]

scopes[RW]

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., www.googleapis.com/auth/bigquery Corresponds to the JSON property `scopes` @return [Array<String>]

supports_custom_schedule[RW]

Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to `true`, user can override default schedule. Corresponds to the JSON property `supportsCustomSchedule` @return [Boolean]

supports_custom_schedule?[RW]

Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to `true`, user can override default schedule. Corresponds to the JSON property `supportsCustomSchedule` @return [Boolean]

supports_multiple_transfers[RW]

Deprecated. This field has no effect. Corresponds to the JSON property `supportsMultipleTransfers` @return [Boolean]

supports_multiple_transfers?[RW]

Deprecated. This field has no effect. Corresponds to the JSON property `supportsMultipleTransfers` @return [Boolean]

transfer_type[RW]

Deprecated. This field has no effect. Corresponds to the JSON property `transferType` @return [String]

update_deadline_seconds[RW]

The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED. Corresponds to the JSON property `updateDeadlineSeconds` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquerydatatransfer_v1/classes.rb, line 170
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquerydatatransfer_v1/classes.rb, line 175
def update!(**args)
  @authorization_type = args[:authorization_type] if args.key?(:authorization_type)
  @client_id = args[:client_id] if args.key?(:client_id)
  @data_refresh_type = args[:data_refresh_type] if args.key?(:data_refresh_type)
  @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
  @default_data_refresh_window_days = args[:default_data_refresh_window_days] if args.key?(:default_data_refresh_window_days)
  @default_schedule = args[:default_schedule] if args.key?(:default_schedule)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @help_url = args[:help_url] if args.key?(:help_url)
  @manual_runs_disabled = args[:manual_runs_disabled] if args.key?(:manual_runs_disabled)
  @minimum_schedule_interval = args[:minimum_schedule_interval] if args.key?(:minimum_schedule_interval)
  @name = args[:name] if args.key?(:name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @scopes = args[:scopes] if args.key?(:scopes)
  @supports_custom_schedule = args[:supports_custom_schedule] if args.key?(:supports_custom_schedule)
  @supports_multiple_transfers = args[:supports_multiple_transfers] if args.key?(:supports_multiple_transfers)
  @transfer_type = args[:transfer_type] if args.key?(:transfer_type)
  @update_deadline_seconds = args[:update_deadline_seconds] if args.key?(:update_deadline_seconds)
end