/// <summary>Snippet for GetRealm</summary> public void GetRealmResourceNames() { // Snippet: GetRealm(RealmName, CallSettings) // Create client RealmsServiceClient realmsServiceClient = RealmsServiceClient.Create(); // Initialize request argument(s) RealmName name = RealmName.FromProjectLocationRealm("[PROJECT]", "[LOCATION]", "[REALM]"); // Make the request Realm response = realmsServiceClient.GetRealm(name); // End snippet }
/// <summary>Snippet for GetRealm</summary> public void GetRealm() { // Snippet: GetRealm(string, CallSettings) // Create client RealmsServiceClient realmsServiceClient = RealmsServiceClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/realms/[REALM]"; // Make the request Realm response = realmsServiceClient.GetRealm(name); // End snippet }
/// <summary>Snippet for GetRealm</summary> public void GetRealmRequestObject() { // Snippet: GetRealm(GetRealmRequest, CallSettings) // Create client RealmsServiceClient realmsServiceClient = RealmsServiceClient.Create(); // Initialize request argument(s) GetRealmRequest request = new GetRealmRequest { RealmName = RealmName.FromProjectLocationRealm("[PROJECT]", "[LOCATION]", "[REALM]"), }; // Make the request Realm response = realmsServiceClient.GetRealm(request); // End snippet }
public Realm GetRealm( string projectId, string regionId, string realmId) { // Create the client. RealmsServiceClient client = RealmsServiceClient.Create(); GetRealmRequest request = new GetRealmRequest { RealmName = RealmName.FromProjectLocationRealm(projectId, regionId, realmId) }; // Make the request. Realm response = client.GetRealm(request); return(response); }