/// <param name="optional">Optional paramaters.</param> /// <returns>GoogleCloudMlV1beta1__ListVersionsResponseResponse</returns> public static GoogleCloudMlV1beta1__ListVersionsResponse List(CloudMachineLearningService service, string parent, VersionsListOptionalParms 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.Versions.List(parent); // Applying optional parameters to the request. request = (VersionsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return request.Execute(); } catch (Exception ex) { throw new Exception("Request Versions.List failed.", ex); } }
/// <summary> /// Lists all Container Versions of a GTM Container. /// Documentation https://developers.google.com/tagmanager/v1/reference/versions/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 TagManager service.</param> /// <param name="accountId">The GTM Account ID.</param> /// <param name="containerId">The GTM Container ID.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>ListContainerVersionsResponseResponse</returns> public static ListContainerVersionsResponse List(TagManagerService service, string accountId, string containerId, VersionsListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (accountId == null) { throw new ArgumentNullException(accountId); } if (containerId == null) { throw new ArgumentNullException(containerId); } // Building the initial request. var request = service.Versions.List(accountId, containerId); // Applying optional parameters to the request. request = (VersionsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Versions.List failed.", ex); } }