All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.websecurityscanner.v1.kotlin.outputs.GetScanConfigResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.websecurityscanner.v1.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property authentication The authentication configuration. If specified, service will use the authentication configuration during scanning.
 * @property blacklistPatterns The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
 * @property displayName The user provided display name of the ScanConfig.
 * @property exportToSecurityCommandCenter Controls export of scan configurations and results to Security Command Center.
 * @property ignoreHttpStatusErrors Whether to keep scanning even if most requests return HTTP error codes.
 * @property managedScan Whether the scan config is managed by Web Security Scanner, output only.
 * @property maxQps The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
 * @property name The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
 * @property riskLevel The risk level selected for the scan
 * @property schedule The schedule of the ScanConfig.
 * @property startingUrls The starting URLs from which the scanner finds site pages.
 * @property staticIpScan Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
 * @property userAgent The user agent used during scanning.
 */
public data class GetScanConfigResult(
    public val authentication: AuthenticationResponse,
    public val blacklistPatterns: List,
    public val displayName: String,
    public val exportToSecurityCommandCenter: String,
    public val ignoreHttpStatusErrors: Boolean,
    public val managedScan: Boolean,
    public val maxQps: Int,
    public val name: String,
    public val riskLevel: String,
    public val schedule: ScheduleResponse,
    public val startingUrls: List,
    public val staticIpScan: Boolean,
    public val userAgent: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.websecurityscanner.v1.outputs.GetScanConfigResult): GetScanConfigResult = GetScanConfigResult(
            authentication = javaType.authentication().let({ args0 ->
                com.pulumi.googlenative.websecurityscanner.v1.kotlin.outputs.AuthenticationResponse.Companion.toKotlin(args0)
            }),
            blacklistPatterns = javaType.blacklistPatterns().map({ args0 -> args0 }),
            displayName = javaType.displayName(),
            exportToSecurityCommandCenter = javaType.exportToSecurityCommandCenter(),
            ignoreHttpStatusErrors = javaType.ignoreHttpStatusErrors(),
            managedScan = javaType.managedScan(),
            maxQps = javaType.maxQps(),
            name = javaType.name(),
            riskLevel = javaType.riskLevel(),
            schedule = javaType.schedule().let({ args0 ->
                com.pulumi.googlenative.websecurityscanner.v1.kotlin.outputs.ScheduleResponse.Companion.toKotlin(args0)
            }),
            startingUrls = javaType.startingUrls().map({ args0 -> args0 }),
            staticIpScan = javaType.staticIpScan(),
            userAgent = javaType.userAgent(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy