Class: Google::Apis::AdminDatatransferV1::DataTransfer
- Inherits:
-
Object
- Object
- Google::Apis::AdminDatatransferV1::DataTransfer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_datatransfer_v1/classes.rb,
lib/google/apis/admin_datatransfer_v1/representations.rb,
lib/google/apis/admin_datatransfer_v1/representations.rb
Overview
A Transfer resource represents the transfer of the ownership of user data between users.
Instance Attribute Summary collapse
-
#application_data_transfers ⇒ Array<Google::Apis::AdminDatatransferV1::ApplicationDataTransfer>
The list of per-application data transfer resources.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
Read-only.
-
#kind ⇒ String
Identifies the resource as a DataTransfer request.
-
#new_owner_user_id ⇒ String
ID of the user to whom the data is being transferred.
-
#old_owner_user_id ⇒ String
ID of the user whose data is being transferred.
-
#overall_transfer_status_code ⇒ String
Read-only.
-
#request_time ⇒ DateTime
Read-only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataTransfer
constructor
A new instance of DataTransfer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataTransfer
Returns a new instance of DataTransfer.
218 219 220 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application_data_transfers ⇒ Array<Google::Apis::AdminDatatransferV1::ApplicationDataTransfer>
The list of per-application data transfer resources. It contains details of
the applications associated with this transfer resource, and also specifies
the applications for which data transfer has to be done at the time of the
transfer resource creation.
Corresponds to the JSON property applicationDataTransfers
181 182 183 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 181 def application_data_transfers @application_data_transfers end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
186 187 188 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 186 def etag @etag end |
#id ⇒ String
Read-only. The transfer's ID.
Corresponds to the JSON property id
191 192 193 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 191 def id @id end |
#kind ⇒ String
Identifies the resource as a DataTransfer request.
Corresponds to the JSON property kind
196 197 198 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 196 def kind @kind end |
#new_owner_user_id ⇒ String
ID of the user to whom the data is being transferred.
Corresponds to the JSON property newOwnerUserId
201 202 203 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 201 def new_owner_user_id @new_owner_user_id end |
#old_owner_user_id ⇒ String
ID of the user whose data is being transferred.
Corresponds to the JSON property oldOwnerUserId
206 207 208 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 206 def old_owner_user_id @old_owner_user_id end |
#overall_transfer_status_code ⇒ String
Read-only. Overall transfer status.
Corresponds to the JSON property overallTransferStatusCode
211 212 213 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 211 def overall_transfer_status_code @overall_transfer_status_code end |
#request_time ⇒ DateTime
Read-only. The time at which the data transfer was requested.
Corresponds to the JSON property requestTime
216 217 218 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 216 def request_time @request_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 226 227 228 229 230 231 232 |
# File 'lib/google/apis/admin_datatransfer_v1/classes.rb', line 223 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 |