/// <summary>Snippet for ListXpnHosts</summary> public void ListXpnHosts() { // Snippet: ListXpnHosts(string, ProjectsListXpnHostsRequest, CallSettings) // Create client ProjectsClient projectsClient = ProjectsClient.Create(); // Initialize request argument(s) string project = ""; ProjectsListXpnHostsRequest projectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(); // Make the request XpnHostList response = projectsClient.ListXpnHosts(project, projectsListXpnHostsRequestResource); // End snippet }
/// <summary>Snippet for ListXpnHostsAsync</summary> public async Task ListXpnHostsAsync() { // Snippet: ListXpnHostsAsync(string, ProjectsListXpnHostsRequest, CallSettings) // Additional: ListXpnHostsAsync(string, ProjectsListXpnHostsRequest, CancellationToken) // Create client ProjectsClient projectsClient = await ProjectsClient.CreateAsync(); // Initialize request argument(s) string project = ""; ProjectsListXpnHostsRequest projectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(); // Make the request XpnHostList response = await projectsClient.ListXpnHostsAsync(project, projectsListXpnHostsRequestResource); // End snippet }
/// <summary>Snippet for ListXpnHosts</summary> public void ListXpnHostsRequestObject() { // Snippet: ListXpnHosts(ListXpnHostsProjectsRequest, CallSettings) // Create client ProjectsClient projectsClient = ProjectsClient.Create(); // Initialize request argument(s) ListXpnHostsProjectsRequest request = new ListXpnHostsProjectsRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", ProjectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(), Filter = "", ReturnPartialSuccess = false, }; // Make the request XpnHostList response = projectsClient.ListXpnHosts(request); // End snippet }
/// <summary>Snippet for ListXpnHostsAsync</summary> public async Task ListXpnHostsRequestObjectAsync() { // Snippet: ListXpnHostsAsync(ListXpnHostsProjectsRequest, CallSettings) // Additional: ListXpnHostsAsync(ListXpnHostsProjectsRequest, CancellationToken) // Create client ProjectsClient projectsClient = await ProjectsClient.CreateAsync(); // Initialize request argument(s) ListXpnHostsProjectsRequest request = new ListXpnHostsProjectsRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", ProjectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(), Filter = "", ReturnPartialSuccess = false, }; // Make the request XpnHostList response = await projectsClient.ListXpnHostsAsync(request); // End snippet }