com.pulumi.gcp.projects.kotlin.outputs.ApiKeyRestrictionsApiTarget.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.projects.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property methods Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*`
* @property service The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use `gcloud services list` to get a list of services that are enabled in the project.
*/
public data class ApiKeyRestrictionsApiTarget(
public val methods: List? = null,
public val service: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.projects.outputs.ApiKeyRestrictionsApiTarget): ApiKeyRestrictionsApiTarget = ApiKeyRestrictionsApiTarget(
methods = javaType.methods().map({ args0 -> args0 }),
service = javaType.service(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy