/// <summary>Snippet for GetMembershipAsync</summary> public async Task GetMembershipAsync() { // Snippet: GetMembershipAsync(string, CallSettings) // Additional: GetMembershipAsync(string, CancellationToken) // Create client GkeHubMembershipServiceClient gkeHubMembershipServiceClient = await GkeHubMembershipServiceClient.CreateAsync(); // Initialize request argument(s) string name = ""; // Make the request Membership response = await gkeHubMembershipServiceClient.GetMembershipAsync(name); // End snippet }
/// <summary>Snippet for GetMembershipAsync</summary> public async Task GetMembershipRequestObjectAsync() { // Snippet: GetMembershipAsync(GetMembershipRequest, CallSettings) // Additional: GetMembershipAsync(GetMembershipRequest, CancellationToken) // Create client GkeHubMembershipServiceClient gkeHubMembershipServiceClient = await GkeHubMembershipServiceClient.CreateAsync(); // Initialize request argument(s) GetMembershipRequest request = new GetMembershipRequest { Name = "", }; // Make the request Membership response = await gkeHubMembershipServiceClient.GetMembershipAsync(request); // End snippet }