Class: Google::Apis::AdminDatatransferV1::DataTransfer

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

Overview

The JSON template for a DataTransfer resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DataTransfer

Returns a new instance of DataTransfer.



212
213
214
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 212

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

Instance Attribute Details

#application_data_transfersArray<Google::Apis::AdminDatatransferV1::ApplicationDataTransfer>

List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation. Corresponds to the JSON property applicationDataTransfers



175
176
177
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 175

def application_data_transfers
  @application_data_transfers
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 180

def etag
  @etag
end

#idString

The transfer's ID (Read-only). Corresponds to the JSON property id

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 185

def id
  @id
end

#kindString

Identifies the resource as a DataTransfer request. Corresponds to the JSON property kind

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 190

def kind
  @kind
end

#new_owner_user_idString

ID of the user to whom the data is being transferred. Corresponds to the JSON property newOwnerUserId

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 195

def new_owner_user_id
  @new_owner_user_id
end

#old_owner_user_idString

ID of the user whose data is being transferred. Corresponds to the JSON property oldOwnerUserId

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 200

def old_owner_user_id
  @old_owner_user_id
end

#overall_transfer_status_codeString

Overall transfer status (Read-only). Corresponds to the JSON property overallTransferStatusCode

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 205

def overall_transfer_status_code
  @overall_transfer_status_code
end

#request_timeDateTime

The time at which the data transfer was requested (Read-only). Corresponds to the JSON property requestTime

Returns:

  • (DateTime)


210
211
212
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 210

def request_time
  @request_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



217
218
219
220
221
222
223
224
225
226
# File 'generated/google/apis/admin_datatransfer_v1/classes.rb', line 217

def update!(**args)
  @application_data_transfers = args[:application_data_transfers] if args.key?(:application_data_transfers)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @new_owner_user_id = args[:new_owner_user_id] if args.key?(:new_owner_user_id)
  @old_owner_user_id = args[:old_owner_user_id] if args.key?(:old_owner_user_id)
  @overall_transfer_status_code = args[:overall_transfer_status_code] if args.key?(:overall_transfer_status_code)
  @request_time = args[:request_time] if args.key?(:request_time)
end