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.



1233
1234
1235
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1233

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

Instance Attribute Details

#destinationString

Optional. Resource destination. Corresponds to the JSON property destination

Returns:

  • (String)


1196
1197
1198
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1196

def destination
  @destination
end

#hierarchy_detailGoogle::Apis::BigquerydatatransferV1::HierarchyDetail

Details about the hierarchy. Corresponds to the JSON property hierarchyDetail



1201
1202
1203
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1201

def hierarchy_detail
  @hierarchy_detail
end

#last_successful_runGoogle::Apis::BigquerydatatransferV1::TransferRunBrief

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



1206
1207
1208
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1206

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



1211
1212
1213
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1211

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



1216
1217
1218
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1216

def latest_status_detail
  @latest_status_detail
end

#nameString

Identifier. Resource name. Corresponds to the JSON property name

Returns:

  • (String)


1221
1222
1223
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1221

def name
  @name
end

#typeString

Optional. Resource type. Corresponds to the JSON property type

Returns:

  • (String)


1226
1227
1228
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1226

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


1231
1232
1233
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1231

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1238

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