/// <summary>Snippet for GetRealmAsync</summary> public async Task GetRealmResourceNamesAsync() { // Snippet: GetRealmAsync(RealmName, CallSettings) // Additional: GetRealmAsync(RealmName, CancellationToken) // Create client RealmsServiceClient realmsServiceClient = await RealmsServiceClient.CreateAsync(); // Initialize request argument(s) RealmName name = RealmName.FromProjectLocationRealm("[PROJECT]", "[LOCATION]", "[REALM]"); // Make the request Realm response = await realmsServiceClient.GetRealmAsync(name); // End snippet }
/// <summary>Snippet for GetRealmAsync</summary> public async Task GetRealmAsync() { // Snippet: GetRealmAsync(string, CallSettings) // Additional: GetRealmAsync(string, CancellationToken) // Create client RealmsServiceClient realmsServiceClient = await RealmsServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/realms/[REALM]"; // Make the request Realm response = await realmsServiceClient.GetRealmAsync(name); // End snippet }