/// <summary> /// Lists transfer jobs. /// Documentation https://developers.google.com/storagetransfer/v1/reference/transferJobs/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated storagetransfer service.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>ListTransferJobsResponseResponse</returns> public static ListTransferJobsResponse List(storagetransferService service, TransferJobsListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } // Building the initial request. var request = service.TransferJobs.List(); // Applying optional parameters to the request. request = (TransferJobsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request TransferJobs.List failed.", ex); } }