Class: Google::Apis::BigquerydatatransferV1::TransferResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquerydatatransfer_v1/classes.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb

Overview

Resource (table/partition) that is being transferred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransferResource

Returns a new instance of TransferResource.



1279
1280
1281
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1279

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

Instance Attribute Details

#destinationString

Optional. Resource destination. Corresponds to the JSON property destination

Returns:

  • (String)


1242
1243
1244
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1242

def destination
  @destination
end

#hierarchy_detailGoogle::Apis::BigquerydatatransferV1::HierarchyDetail

Details about the hierarchy. Corresponds to the JSON property hierarchyDetail



1247
1248
1249
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1247

def hierarchy_detail
  @hierarchy_detail
end

#last_successful_runGoogle::Apis::BigquerydatatransferV1::TransferRunBrief

Basic information about a transfer run. Corresponds to the JSON property lastSuccessfulRun



1252
1253
1254
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1252

def last_successful_run
  @last_successful_run
end

#latest_runGoogle::Apis::BigquerydatatransferV1::TransferRunBrief

Basic information about a transfer run. Corresponds to the JSON property latestRun



1257
1258
1259
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1257

def latest_run
  @latest_run
end

#latest_status_detailGoogle::Apis::BigquerydatatransferV1::TransferResourceStatusDetail

Status details of the resource being transferred. Corresponds to the JSON property latestStatusDetail



1262
1263
1264
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1262

def latest_status_detail
  @latest_status_detail
end

#nameString

Identifier. Resource name. Corresponds to the JSON property name

Returns:

  • (String)


1267
1268
1269
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1267

def name
  @name
end

#typeString

Optional. Resource type. Corresponds to the JSON property type

Returns:

  • (String)


1272
1273
1274
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1272

def type
  @type
end

#update_timeString

Output only. Time when the resource was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1277
1278
1279
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1277

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1284

def update!(**args)
  @destination = args[:destination] if args.key?(:destination)
  @hierarchy_detail = args[:hierarchy_detail] if args.key?(:hierarchy_detail)
  @last_successful_run = args[:last_successful_run] if args.key?(:last_successful_run)
  @latest_run = args[:latest_run] if args.key?(:latest_run)
  @latest_status_detail = args[:latest_status_detail] if args.key?(:latest_status_detail)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end