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

src.apigateway.v1beta.ApiArgs.scala Maven / Gradle / Ivy

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

final case class ApiArgs private(
  apiId: besom.types.Output[String],
  displayName: besom.types.Output[scala.Option[String]],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  location: besom.types.Output[scala.Option[String]],
  managedService: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]]
)

object ApiArgs:
  def apply(
    apiId: besom.types.Input[String],
    displayName: besom.types.Input.Optional[String] = scala.None,
    labels: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    managedService: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): ApiArgs =
    new ApiArgs(
      apiId = apiId.asOutput(isSecret = false),
      displayName = displayName.asOptionOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      managedService = managedService.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy