Example #1
0
        protected override void ProcessRecord()
        {
            var body = new Google.Apis.admin.DataTransfer.datatransfer_v1.Data.DataTransfer
            {
                ApplicationDataTransfers = ApplicationDataTransfers,
                Id                        = Id,
                NewOwnerUserId            = NewOwnerUserId,
                OldOwnerUserId            = OldOwnerUserId,
                OverallTransferStatusCode = OverallTransferStatusCode,
                RequestTime               = RequestTime
            };

            if (ShouldProcess("DataTransfer"))
            {
                WriteObject(body);
            }
        }
            /// <summary>Inserts a data transfer request.</summary>
            /// <param name="DataTransferBody">The body of the request.</param>
            /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>
            public Google.Apis.admin.DataTransfer.datatransfer_v1.Data.DataTransfer Insert(Google.Apis.admin.DataTransfer.datatransfer_v1.Data.DataTransfer DataTransferBody, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
            {
                var request = GetService().Transfers.Insert(DataTransferBody);

                if (StandardQueryParams != null)
                {
                    request.Fields    = StandardQueryParams.fields;
                    request.QuotaUser = StandardQueryParams.quotaUser;
                    request.UserIp    = StandardQueryParams.userIp;
                }



                return(request.Execute());
            }
 /// <summary>Inserts a data transfer request.</summary>
 /// <param name="DataTransferBody">The body of the request.</param>
 public Google.Apis.admin.DataTransfer.datatransfer_v1.Data.DataTransfer Insert(Google.Apis.admin.DataTransfer.datatransfer_v1.Data.DataTransfer DataTransferBody, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
 {
     return(mainBase.transfers.Insert(DataTransferBody, StandardQueryParams));
 }