/// <summary>Snippet for GetProfile</summary>
 public void GetProfile()
 {
     // Snippet: GetProfile(string, CallSettings)
     // Create client
     ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
     // Make the request
     Profile response = profileServiceClient.GetProfile(name);
     // End snippet
 }
Example #2
0
 /// <summary>Snippet for GetProfile</summary>
 public void GetProfileResourceNames()
 {
     // Snippet: GetProfile(ProfileName, CallSettings)
     // Create client
     ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
     // Initialize request argument(s)
     ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
     // Make the request
     Profile response = profileServiceClient.GetProfile(name);
     // End snippet
 }
 /// <summary>Snippet for GetProfile</summary>
 public void GetProfile()
 {
     // Snippet: GetProfile(ProfileName,CallSettings)
     // Create client
     ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
     // Initialize request argument(s)
     ProfileName name = new ProfileName("[PROJECT]", "[COMPANY]", "[PROFILE]");
     // Make the request
     Profile response = profileServiceClient.GetProfile(name);
     // End snippet
 }
 /// <summary>Snippet for GetProfile</summary>
 public void GetProfileRequestObject()
 {
     // Snippet: GetProfile(GetProfileRequest, CallSettings)
     // Create client
     ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
     // Initialize request argument(s)
     GetProfileRequest request = new GetProfileRequest
     {
         ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
     };
     // Make the request
     Profile response = profileServiceClient.GetProfile(request);
     // End snippet
 }
 /// <summary>Snippet for GetProfile</summary>
 public void GetProfile_RequestObject()
 {
     // Snippet: GetProfile(GetProfileRequest,CallSettings)
     // Create client
     ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
     // Initialize request argument(s)
     GetProfileRequest request = new GetProfileRequest
     {
         Name = new ProfileName("[PROJECT]", "[COMPANY]", "[PROFILE]").ToString(),
     };
     // Make the request
     Profile response = profileServiceClient.GetProfile(request);
     // End snippet
 }