/// <summary>Snippet for GetSharedCriterionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetSharedCriterionResourceNamesAsync() { // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) SharedCriterionName resourceName = SharedCriterionName.FromCustomerSharedSetCriterion("[CUSTOMER_ID]", "[SHARED_SET_ID]", "[CRITERION_ID]"); // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(resourceName); }
/// <summary>Snippet for GetSharedCriterionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetSharedCriterionAsync() { // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/sharedCriteria/[SHARED_SET_ID]~[CRITERION_ID]"; // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(resourceName); }
/// <summary>Snippet for GetSharedCriterionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetSharedCriterionRequestObjectAsync() { // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) GetSharedCriterionRequest request = new GetSharedCriterionRequest { ResourceNameAsSharedCriterionName = SharedCriterionName.FromCustomerSharedCriterion("[CUSTOMER]", "[SHARED_CRITERION]"), }; // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(request); }
/// <summary>Snippet for GetSharedCriterionAsync</summary> public async Task GetSharedCriterionAsync() { // Snippet: GetSharedCriterionAsync(string, CallSettings) // Additional: GetSharedCriterionAsync(string, CancellationToken) // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/sharedCriteria/[SHARED_CRITERION]"; // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(resourceName); // End snippet }
/// <summary>Snippet for GetSharedCriterionAsync</summary> public async Task GetSharedCriterionResourceNamesAsync() { // Snippet: GetSharedCriterionAsync(SharedCriterionName, CallSettings) // Additional: GetSharedCriterionAsync(SharedCriterionName, CancellationToken) // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) SharedCriterionName resourceName = SharedCriterionName.FromCustomerSharedCriterion("[CUSTOMER]", "[SHARED_CRITERION]"); // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(resourceName); // End snippet }
/// <summary>Snippet for GetSharedCriterionAsync</summary> public async Task GetSharedCriterionRequestObjectAsync() { // Snippet: GetSharedCriterionAsync(GetSharedCriterionRequest, CallSettings) // Additional: GetSharedCriterionAsync(GetSharedCriterionRequest, CancellationToken) // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) GetSharedCriterionRequest request = new GetSharedCriterionRequest { ResourceNameAsSharedCriterionName = SharedCriterionName.FromCustomerSharedSetCriterion("[CUSTOMER_ID]", "[SHARED_SET_ID]", "[CRITERION_ID]"), }; // Make the request SharedCriterion response = await sharedCriterionServiceClient.GetSharedCriterionAsync(request); // End snippet }