/// <param name="optional">Optional paramaters.</param> /// <returns>ListClientUsersResponseResponse</returns> public static ListClientUsersResponse List(AdExchangeBuyerIIService service, string accountId, string clientAccountId, UsersListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (accountId == null) { throw new ArgumentNullException(accountId); } if (clientAccountId == null) { throw new ArgumentNullException(clientAccountId); } // Building the initial request. var request = service.Users.List(accountId, clientAccountId); // Applying optional parameters to the request. request = (UsersResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Users.List failed.", ex); } }
/// <summary> /// Retrieves a list of users contained within the specified project. /// Documentation https://developers.google.com/clouduseraccounts/vm_beta/reference/users/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 Clouduseraccounts service.</param> /// <param name="project">Project ID for this request.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>UserListResponse</returns> public static UserList List(ClouduseraccountsService service, string project, UsersListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } // Building the initial request. var request = service.Users.List(project); // Applying optional parameters to the request. request = (UsersResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Users.List failed.", ex); } }