public async stt::Task CreateSecuritySettingsRequestObjectAsync()
        {
            moq::Mock <SecuritySettingsService.SecuritySettingsServiceClient> mockGrpcClient = new moq::Mock <SecuritySettingsService.SecuritySettingsServiceClient>(moq::MockBehavior.Strict);
            CreateSecuritySettingsRequest request = new CreateSecuritySettingsRequest
            {
                ParentAsLocationName = gagr::LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
                SecuritySettings     = new SecuritySettings(),
            };
            SecuritySettings expectedResponse = new SecuritySettings
            {
                SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
                DisplayName          = "display_name137f65c2",
                RedactionStrategy    = SecuritySettings.Types.RedactionStrategy.Unspecified,
                RedactionScope       = SecuritySettings.Types.RedactionScope.RedactDiskStorage,
                RetentionWindowDays  = 677846917,
                PurgeDataTypes       =
                {
                    SecuritySettings.Types.PurgeDataType.Unspecified,
                },
                InspectTemplateAsInspectTemplateName = InspectTemplateName.FromOrganizationLocationInspectTemplate("[ORGANIZATION]", "[LOCATION]", "[INSPECT_TEMPLATE]"),
                InsightsExportSettings = new SecuritySettings.Types.InsightsExportSettings(),
                DeidentifyTemplateAsDeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationLocationDeidentifyTemplate("[ORGANIZATION]", "[LOCATION]", "[DEIDENTIFY_TEMPLATE]"),
            };

            mockGrpcClient.Setup(x => x.CreateSecuritySettingsAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <SecuritySettings>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            SecuritySettingsServiceClient client  = new SecuritySettingsServiceClientImpl(mockGrpcClient.Object, null);
            SecuritySettings responseCallSettings = await client.CreateSecuritySettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            SecuritySettings responseCancellationToken = await client.CreateSecuritySettingsAsync(request, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }
        public void UpdateSecuritySettings()
        {
            moq::Mock <SecuritySettingsService.SecuritySettingsServiceClient> mockGrpcClient = new moq::Mock <SecuritySettingsService.SecuritySettingsServiceClient>(moq::MockBehavior.Strict);
            UpdateSecuritySettingsRequest request = new UpdateSecuritySettingsRequest
            {
                SecuritySettings = new SecuritySettings(),
                UpdateMask       = new wkt::FieldMask(),
            };
            SecuritySettings expectedResponse = new SecuritySettings
            {
                SecuritySettingsName = SecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
                DisplayName          = "display_name137f65c2",
                RedactionStrategy    = SecuritySettings.Types.RedactionStrategy.Unspecified,
                RedactionScope       = SecuritySettings.Types.RedactionScope.RedactDiskStorage,
                RetentionWindowDays  = 677846917,
                PurgeDataTypes       =
                {
                    SecuritySettings.Types.PurgeDataType.Unspecified,
                },
                InspectTemplateAsInspectTemplateName = InspectTemplateName.FromOrganizationLocationInspectTemplate("[ORGANIZATION]", "[LOCATION]", "[INSPECT_TEMPLATE]"),
                InsightsExportSettings = new SecuritySettings.Types.InsightsExportSettings(),
                DeidentifyTemplateAsDeidentifyTemplateName = DeidentifyTemplateName.FromOrganizationLocationDeidentifyTemplate("[ORGANIZATION]", "[LOCATION]", "[DEIDENTIFY_TEMPLATE]"),
            };

            mockGrpcClient.Setup(x => x.UpdateSecuritySettings(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            SecuritySettingsServiceClient client = new SecuritySettingsServiceClientImpl(mockGrpcClient.Object, null);
            SecuritySettings response            = client.UpdateSecuritySettings(request.SecuritySettings, request.UpdateMask);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }