Class: Google::Cloud::Bigquery::DataTransfer::V1::DataSource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb

Overview

Defines the properties and custom parameters for a data source.

Defined Under Namespace

Modules: AuthorizationType, DataRefreshType

Instance Attribute Summary collapse

Instance Attribute Details

#authorization_type::Google::Cloud::Bigquery::DataTransfer::V1::DataSource::AuthorizationType

Returns Indicates the type of authorization.

Returns:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_id::String

Returns Data source client id which should be used to receive refresh token.

Returns:

  • (::String)

    Data source client id which should be used to receive refresh token.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_type::Google::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:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_id::String

Returns Data source id.

Returns:

  • (::String)

    Data source id.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_days::Integer

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.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_schedule::String

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.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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

#description::String

Returns User friendly data source description string.

Returns:

  • (::String)

    User friendly data source description string.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_name::String

Returns User friendly data source name.

Returns:

  • (::String)

    User friendly data source name.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_url::String

Returns Url for the help document for this data source.

Returns:

  • (::String)

    Url for the help document for this data source.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_disabled::Boolean

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

Returns:

  • (::Boolean)

    Disables backfilling and manual run scheduling for the data source.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_interval::Google::Protobuf::Duration

Returns The minimum interval for scheduler to schedule runs.

Returns:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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

#name::String (readonly)

Returns Output only. Data source resource name.

Returns:

  • (::String)

    Output only. Data source resource name.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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

#parameters::Array<::Google::Cloud::Bigquery::DataTransfer::V1::DataSourceParameter>

Returns Data source parameters.

Returns:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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

#scopes::Array<::String>

Returns 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., https://www.googleapis.com/auth/bigquery.

Returns:

  • (::Array<::String>)

    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., https://www.googleapis.com/auth/bigquery



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_schedule::Boolean

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:

  • (::Boolean)

    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.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_transfers::Boolean

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated. This field has no effect.

Returns:

  • (::Boolean)

    Deprecated. This field has no effect.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_type::Google::Cloud::Bigquery::DataTransfer::V1::TransferType

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated. This field has no effect.

Returns:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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_seconds::Integer

Returns The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.

Returns:

  • (::Integer)

    The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/cloud/bigquery/datatransfer/v1/datatransfer.rb', line 180

class DataSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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

    # Use First Party OAuth.
    FIRST_PARTY_OAUTH = 3
  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