
com.pulumi.googlenative.apigee.v1.kotlin.outputs.GetKeyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.apigee.v1.kotlin.outputs
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property apiProducts List of API products for which the credential can be used. **Note**: Do not specify the list of API products when creating a consumer key and secret for a developer app. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created.
* @property attributes List of attributes associated with the credential.
* @property consumerKey Consumer key.
* @property consumerSecret Secret key.
* @property expiresAt Time the developer app expires in milliseconds since epoch.
* @property expiresInSeconds Input only. Expiration time, in seconds, for the consumer key. If not set or left to the default value of `-1`, the API key never expires. The expiration time can't be updated after it is set.
* @property issuedAt Time the developer app was created in milliseconds since epoch.
* @property scopes Scopes to apply to the app. The specified scope names must already be defined for the API product that you associate with the app.
* @property status Status of the credential. Valid values include `approved` or `revoked`.
*/
public data class GetKeyResult(
public val apiProducts: List,
public val attributes: List,
public val consumerKey: String,
public val consumerSecret: String,
public val expiresAt: String,
public val expiresInSeconds: String,
public val issuedAt: String,
public val scopes: List,
public val status: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.apigee.v1.outputs.GetKeyResult): GetKeyResult = GetKeyResult(
apiProducts = javaType.apiProducts().map({ args0 -> args0 }),
attributes = javaType.attributes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.apigee.v1.kotlin.outputs.GoogleCloudApigeeV1AttributeResponse.Companion.toKotlin(args0)
})
}),
consumerKey = javaType.consumerKey(),
consumerSecret = javaType.consumerSecret(),
expiresAt = javaType.expiresAt(),
expiresInSeconds = javaType.expiresInSeconds(),
issuedAt = javaType.issuedAt(),
scopes = javaType.scopes().map({ args0 -> args0 }),
status = javaType.status(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy