/// <summary>Snippet for GetCustomerUserAccess</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCustomerUserAccess()
 {
     // Create client
     CustomerUserAccessServiceClient customerUserAccessServiceClient = CustomerUserAccessServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/customerUserAccesses/[USER_ID]";
     // Make the request
     CustomerUserAccess response = customerUserAccessServiceClient.GetCustomerUserAccess(resourceName);
 }
 /// <summary>Snippet for GetCustomerUserAccess</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCustomerUserAccessResourceNames()
 {
     // Create client
     CustomerUserAccessServiceClient customerUserAccessServiceClient = CustomerUserAccessServiceClient.Create();
     // Initialize request argument(s)
     CustomerUserAccessName resourceName = CustomerUserAccessName.FromCustomerUser("[CUSTOMER_ID]", "[USER_ID]");
     // Make the request
     CustomerUserAccess response = customerUserAccessServiceClient.GetCustomerUserAccess(resourceName);
 }
Example #3
0
 /// <summary>Snippet for MutateCustomerUserAccess</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateCustomerUserAccess()
 {
     // Create client
     CustomerUserAccessServiceClient customerUserAccessServiceClient = CustomerUserAccessServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     CustomerUserAccessOperation operation = new CustomerUserAccessOperation();
     // Make the request
     MutateCustomerUserAccessResponse response = customerUserAccessServiceClient.MutateCustomerUserAccess(customerId, operation);
 }
 /// <summary>Snippet for MutateCustomerUserAccess</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateCustomerUserAccessRequestObject()
 {
     // Create client
     CustomerUserAccessServiceClient customerUserAccessServiceClient = CustomerUserAccessServiceClient.Create();
     // Initialize request argument(s)
     MutateCustomerUserAccessRequest request = new MutateCustomerUserAccessRequest
     {
         CustomerId = "",
         Operation  = new CustomerUserAccessOperation(),
     };
     // Make the request
     MutateCustomerUserAccessResponse response = customerUserAccessServiceClient.MutateCustomerUserAccess(request);
 }
 /// <summary>Snippet for GetCustomerUserAccess</summary>
 public void GetCustomerUserAccessRequestObject()
 {
     // Snippet: GetCustomerUserAccess(GetCustomerUserAccessRequest, CallSettings)
     // Create client
     CustomerUserAccessServiceClient customerUserAccessServiceClient = CustomerUserAccessServiceClient.Create();
     // Initialize request argument(s)
     GetCustomerUserAccessRequest request = new GetCustomerUserAccessRequest
     {
         ResourceNameAsCustomerUserAccessName = CustomerUserAccessName.FromCustomerUser("[CUSTOMER_ID]", "[USER_ID]"),
     };
     // Make the request
     CustomerUserAccess response = customerUserAccessServiceClient.GetCustomerUserAccess(request);
     // End snippet
 }