public void CreateSecuritySettingsRequestObject()
        {
            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.CreateSecuritySettings(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            SecuritySettingsServiceClient client = new SecuritySettingsServiceClientImpl(mockGrpcClient.Object, null);
            SecuritySettings response            = client.CreateSecuritySettings(request);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public void CreateSecuritySettingsResourceNames()
        {
            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,
                },
                InspectTemplate = "inspect_template78566a15",
            };

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

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