/// <summary>Snippet for UpdateWorkloadAsync</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 UpdateWorkloadAsync() { // Create client AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = await AssuredWorkloadsServiceClient.CreateAsync(); // Initialize request argument(s) Workload workload = new Workload(); FieldMask updateMask = new FieldMask(); // Make the request Workload response = await assuredWorkloadsServiceClient.UpdateWorkloadAsync(workload, updateMask); }
/// <summary>Snippet for UpdateWorkloadAsync</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 UpdateWorkloadRequestObjectAsync() { // Create client AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = await AssuredWorkloadsServiceClient.CreateAsync(); // Initialize request argument(s) UpdateWorkloadRequest request = new UpdateWorkloadRequest { Workload = new Workload(), UpdateMask = new FieldMask(), }; // Make the request Workload response = await assuredWorkloadsServiceClient.UpdateWorkloadAsync(request); }
/// <summary>Snippet for UpdateWorkloadAsync</summary> public async Task UpdateWorkloadAsync() { // Snippet: UpdateWorkloadAsync(Workload, FieldMask, CallSettings) // Additional: UpdateWorkloadAsync(Workload, FieldMask, CancellationToken) // Create client AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = await AssuredWorkloadsServiceClient.CreateAsync(); // Initialize request argument(s) Workload workload = new Workload(); FieldMask updateMask = new FieldMask(); // Make the request Workload response = await assuredWorkloadsServiceClient.UpdateWorkloadAsync(workload, updateMask); // End snippet }
/// <summary>Snippet for UpdateWorkloadAsync</summary> public async Task UpdateWorkloadRequestObjectAsync() { // Snippet: UpdateWorkloadAsync(UpdateWorkloadRequest, CallSettings) // Additional: UpdateWorkloadAsync(UpdateWorkloadRequest, CancellationToken) // Create client AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = await AssuredWorkloadsServiceClient.CreateAsync(); // Initialize request argument(s) UpdateWorkloadRequest request = new UpdateWorkloadRequest { Workload = new Workload(), UpdateMask = new FieldMask(), }; // Make the request Workload response = await assuredWorkloadsServiceClient.UpdateWorkloadAsync(request); // End snippet }