/// <summary> /// Updates a call set. For the definitions of call sets and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) This method supports patch semantics. /// Documentation https://developers.google.com/genomics/v1/reference/callsets/patch /// 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 genomics service.</param> /// <param name="callSetId">The ID of the call set to be updated.</param> /// <param name="body">A valid genomics v1 body.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>CallSetResponse</returns> public static CallSet Patch(genomicsService service, string callSetId, CallSet body, CallsetsPatchOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (callSetId == null) { throw new ArgumentNullException(callSetId); } // Building the initial request. var request = service.Callsets.Patch(body, callSetId); // Applying optional parameters to the request. request = (CallsetsResource.PatchRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Callsets.Patch failed.", ex); } }
/// <summary> /// create an instance of the field meta /// </summary> /// <param name="fieldInfo">the fieldinfo to analyse</param> public FieldMeta(FieldInfo fieldInfo) { FieldInfo = fieldInfo; _getter = fieldInfo.CreateFieldGet(); Name = fieldInfo.Name; Type = fieldInfo.FieldType; IsReadOnly = fieldInfo.IsInitOnly; if (Name.StartsWith("<", StringComparison.CurrentCultureIgnoreCase)) { int index = Name.IndexOf(">", StringComparison.CurrentCultureIgnoreCase); FriendlyName = Name.Substring(1, index - 1); } if (Name.StartsWith("_", StringComparison.CurrentCultureIgnoreCase)) { FriendlyName = Name.Substring(1, Name.Length - 1); } //if (!fieldInfo.IsInitOnly) //{ _setter = fieldInfo.CreateFieldSet(); //} }
/// <summary> /// Creates a new call set. For the definitions of call sets and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) /// Documentation https://developers.google.com/genomics/v1/reference/callsets/create /// 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 genomics service.</param> /// <param name="body">A valid genomics v1 body.</param> /// <returns>CallSetResponse</returns> public static CallSet Create(genomicsService service, CallSet body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } // Make the request. return(service.Callsets.Create(body).Execute()); } catch (Exception ex) { throw new Exception("Request Callsets.Create failed.", ex); } }