/// <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 MutateSharedCriteriaAsync</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 MutateSharedCriteriaAsync() { // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <SharedCriterionOperation> operations = new SharedCriterionOperation[] { new SharedCriterionOperation(), }; // Make the request MutateSharedCriteriaResponse response = await sharedCriterionServiceClient.MutateSharedCriteriaAsync(customerId, operations); }
/// <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 }
/// <summary>Snippet for MutateSharedCriteriaAsync</summary> public async Task MutateSharedCriteriaAsync() { // Snippet: MutateSharedCriteriaAsync(string, IEnumerable<SharedCriterionOperation>, CallSettings) // Additional: MutateSharedCriteriaAsync(string, IEnumerable<SharedCriterionOperation>, CancellationToken) // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <SharedCriterionOperation> operations = new SharedCriterionOperation[] { new SharedCriterionOperation(), }; // Make the request MutateSharedCriteriaResponse response = await sharedCriterionServiceClient.MutateSharedCriteriaAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateSharedCriteriaAsync</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 MutateSharedCriteriaRequestObjectAsync() { // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest { CustomerId = "", Operations = { new SharedCriterionOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateSharedCriteriaResponse response = await sharedCriterionServiceClient.MutateSharedCriteriaAsync(request); }
/// <summary>Snippet for MutateSharedCriteriaAsync</summary> public async Task MutateSharedCriteriaRequestObjectAsync() { // Snippet: MutateSharedCriteriaAsync(MutateSharedCriteriaRequest, CallSettings) // Additional: MutateSharedCriteriaAsync(MutateSharedCriteriaRequest, CancellationToken) // Create client SharedCriterionServiceClient sharedCriterionServiceClient = await SharedCriterionServiceClient.CreateAsync(); // Initialize request argument(s) MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest { CustomerId = "", Operations = { new SharedCriterionOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateSharedCriteriaResponse response = await sharedCriterionServiceClient.MutateSharedCriteriaAsync(request); // End snippet }