/// <param name="body">A valid CloudMachineLearning v1beta1 body.</param> /// <returns>GoogleCloudMlV1beta1__JobResponse</returns> public static GoogleCloudMlV1beta1__Job Create(CloudMachineLearningService service, string parent, GoogleCloudMlV1beta1__Job body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (parent == null) { throw new ArgumentNullException(parent); } // Make the request. return(service.Jobs.Create(body, parent).Execute()); } catch (Exception ex) { throw new Exception("Request Jobs.Create failed.", ex); } }
/// <param name="body">A valid CloudMachineLearning v1beta1 body.</param> /// <returns>GoogleProtobuf__EmptyResponse</returns> public static GoogleProtobuf__Empty Cancel(CloudMachineLearningService service, string name, GoogleCloudMlV1beta1__CancelJobRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (name == null) { throw new ArgumentNullException(name); } // Make the request. return(service.Jobs.Cancel(body, name).Execute()); } catch (Exception ex) { throw new Exception("Request Jobs.Cancel failed.", ex); } }
/// <param name="optional">Optional paramaters.</param> /// <returns>GoogleCloudMlV1beta1__ListJobsResponseResponse</returns> public static GoogleCloudMlV1beta1__ListJobsResponse List(CloudMachineLearningService service, string parent, JobsListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (parent == null) { throw new ArgumentNullException(parent); } // Building the initial request. var request = service.Jobs.List(parent); // Applying optional parameters to the request. request = (JobsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Jobs.List failed.", ex); } }
/// <returns>GoogleLongrunning__OperationResponse</returns> public static GoogleLongrunning__Operation Delete(CloudMachineLearningService service, string name) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (name == null) throw new ArgumentNullException(name); // Make the request. return service.Versions.Delete(name).Execute(); } catch (Exception ex) { throw new Exception("Request Versions.Delete failed.", ex); } }
/// <returns>GoogleCloudMlV1beta1__VersionResponse</returns> public static GoogleCloudMlV1beta1__Version Get(CloudMachineLearningService service, string name) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (name == null) throw new ArgumentNullException(name); // Make the request. return service.Versions.Get(name).Execute(); } catch (Exception ex) { throw new Exception("Request Versions.Get failed.", ex); } }
/// Documentation https://developers.google.com/cloudmachinelearning/v1beta1/reference/operations/cancel /// 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 CloudMachineLearning service.</param> /// <param name="name">The name of the operation resource to be cancelled.</param> /// <returns>GoogleProtobuf__EmptyResponse</returns> public static GoogleProtobuf__Empty Cancel(CloudMachineLearningService service, string name) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (name == null) throw new ArgumentNullException(name); // Make the request. return service.Operations.Cancel(name).Execute(); } catch (Exception ex) { throw new Exception("Request Operations.Cancel failed.", ex); } }
/// <param name="body">A valid CloudMachineLearning v1beta1 body.</param> /// <returns>GoogleLongrunning__OperationResponse</returns> public static GoogleLongrunning__Operation Create(CloudMachineLearningService service, string parent, GoogleCloudMlV1beta1__Version body) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (body == null) throw new ArgumentNullException("body"); if (parent == null) throw new ArgumentNullException(parent); // Make the request. return service.Versions.Create(body, parent).Execute(); } catch (Exception ex) { throw new Exception("Request Versions.Create failed.", ex); } }
/// Documentation https://developers.google.com/cloudmachinelearning/v1beta1/reference/operations/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 CloudMachineLearning service.</param> /// <param name="name">The name of the operation collection.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>GoogleLongrunning__ListOperationsResponseResponse</returns> public static GoogleLongrunning__ListOperationsResponse List(CloudMachineLearningService service, string name, OperationsListOptionalParms optional = null) { try { // Initial validation. if (service == null) throw new ArgumentNullException("service"); if (name == null) throw new ArgumentNullException(name); // Building the initial request. var request = service.Operations.List(name); // Applying optional parameters to the request. request = (OperationsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return request.Execute(); } catch (Exception ex) { throw new Exception("Request Operations.List failed.", ex); } }