Class: Google::Cloud::Bigquery::Datatransfer::V1::DataSource

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb

Overview

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

Defined Under Namespace

Modules: AuthorizationType, DataRefreshType

Instance Attribute Summary collapse

Instance Attribute Details

#authorization_typeGoogle::Cloud::Bigquery::Datatransfer::V1::DataSource::AuthorizationType

Returns Indicates the type of authorization.

Returns:



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#client_idString

Returns Data source client id which should be used to receive refresh token. When not supplied, no offline credentials are populated for data transfer.

Returns:

  • (String)

    Data source client id which should be used to receive refresh token. When not supplied, no offline credentials are populated for data transfer.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#data_refresh_typeGoogle::Cloud::Bigquery::Datatransfer::V1::DataSource::DataRefreshType

Returns 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.

Returns:



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#data_source_idString

Returns Data source id.

Returns:

  • (String)

    Data source id.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#default_data_refresh_window_daysInteger

Returns Default data refresh window on days. Only meaningful when +data_refresh_type+ = +SLIDING_WINDOW+.

Returns:

  • (Integer)

    Default data refresh window on days. Only meaningful when +data_refresh_type+ = +SLIDING_WINDOW+.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#default_scheduleString

Returns 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+.

Returns:

  • (String)

    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+.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#descriptionString

Returns User friendly data source description string.

Returns:

  • (String)

    User friendly data source description string.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#display_nameString

Returns User friendly data source name.

Returns:

  • (String)

    User friendly data source name.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#help_urlString

Returns Url for the help document for this data source.

Returns:

  • (String)

    Url for the help document for this data source.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#manual_runs_disabledtrue, false

Returns Disables backfilling and manual run scheduling for the data source.

Returns:

  • (true, false)

    Disables backfilling and manual run scheduling for the data source.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#minimum_schedule_intervalGoogle::Protobuf::Duration

Returns The minimum interval for scheduler to schedule runs.

Returns:



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#nameString

Returns Output only. Data source resource name.

Returns:

  • (String)

    Output only. Data source resource name.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#parametersArray<Google::Cloud::Bigquery::Datatransfer::V1::DataSourceParameter>

Returns Data source parameters.

Returns:



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#scopesArray<String>

Returns Api auth scopes for which refresh token needs to be obtained. Only valid when +client_id+ is specified. Ignored otherwise. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

Returns:

  • (Array<String>)

    Api auth scopes for which refresh token needs to be obtained. Only valid when +client_id+ is specified. Ignored otherwise. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#supports_custom_scheduletrue, false

Returns 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.

Returns:

  • (true, false)

    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.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#supports_multiple_transferstrue, false

Returns Indicates whether the data source supports multiple transfers to different BigQuery targets.

Returns:

  • (true, false)

    Indicates whether the data source supports multiple transfers to different BigQuery targets.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#transfer_typeGoogle::Cloud::Bigquery::Datatransfer::V1::TransferType

Returns Deprecated. This field has no effect.

Returns:



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end

#update_deadline_secondsInteger

Returns The number of seconds to wait for an update from the data source before BigQuery marks the transfer as failed.

Returns:

  • (Integer)

    The number of seconds to wait for an update from the data source before BigQuery marks the transfer as failed.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 173

class DataSource
  # The type of authorization needed for this data source.
  module AuthorizationType
    # Type unspecified.
    AUTHORIZATION_TYPE_UNSPECIFIED = 0

    # Use OAuth 2 authorization codes that can be exchanged
    # for a refresh token on the backend.
    AUTHORIZATION_CODE = 1

    # Return an authorization code for a given Google+ page that can then be
    # exchanged for a refresh token on the backend.
    GOOGLE_PLUS_AUTHORIZATION_CODE = 2
  end

  # Represents how the data source supports data auto refresh.
  module DataRefreshType
    # The data source won't support data auto refresh, which is default value.
    DATA_REFRESH_TYPE_UNSPECIFIED = 0

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Does not allow custom values to be set for each
    # transfer config.
    SLIDING_WINDOW = 1

    # The data source supports data auto refresh, and runs will be scheduled
    # for the past few days. Allows custom values to be set for each transfer
    # config.
    CUSTOM_SLIDING_WINDOW = 2
  end
end