/// <summary>Snippet for UpdateExclusion</summary> public void UpdateExclusion() { // Snippet: UpdateExclusion(ExclusionNameOneof,LogExclusion,FieldMask,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) ExclusionNameOneof name = ExclusionNameOneof.From(new ExclusionName("[PROJECT]", "[EXCLUSION]")); LogExclusion exclusion = new LogExclusion(); FieldMask updateMask = new FieldMask(); // Make the request LogExclusion response = configServiceV2Client.UpdateExclusion(name, exclusion, updateMask); // End snippet }
/// <summary>Snippet for UpdateExclusion</summary> public void UpdateExclusion_RequestObject() { // Snippet: UpdateExclusion(UpdateExclusionRequest,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) UpdateExclusionRequest request = new UpdateExclusionRequest { ExclusionNameOneof = ExclusionNameOneof.From(new ExclusionName("[PROJECT]", "[EXCLUSION]")), Exclusion = new LogExclusion(), UpdateMask = new FieldMask(), }; // Make the request LogExclusion response = configServiceV2Client.UpdateExclusion(request); // End snippet }