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

src.apikeys.v2.KeyArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.apikeys.v2

final case class KeyArgs private(
  annotations: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  displayName: besom.types.Output[scala.Option[String]],
  keyId: besom.types.Output[scala.Option[String]],
  location: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  restrictions: besom.types.Output[scala.Option[besom.api.googlenative.apikeys.v2.inputs.V2RestrictionsArgs]]
)

object KeyArgs:
  def apply(
    annotations: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    displayName: besom.types.Input.Optional[String] = scala.None,
    keyId: besom.types.Input.Optional[String] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    restrictions: besom.types.Input.Optional[besom.api.googlenative.apikeys.v2.inputs.V2RestrictionsArgs] = scala.None
  )(using besom.types.Context): KeyArgs =
    new KeyArgs(
      annotations = annotations.asOptionOutput(isSecret = false),
      displayName = displayName.asOptionOutput(isSecret = false),
      keyId = keyId.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      restrictions = restrictions.asOptionOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[KeyArgs] =
    besom.internal.Encoder.derived[KeyArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[KeyArgs] =
    besom.internal.ArgsEncoder.derived[KeyArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy