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

src.alloydb.v1.UserArgs.scala Maven / Gradle / Ivy

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

final case class UserArgs private(
  clusterId: besom.types.Output[String],
  databaseRoles: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
  location: besom.types.Output[scala.Option[String]],
  password: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  requestId: besom.types.Output[scala.Option[String]],
  userId: besom.types.Output[String],
  userType: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.enums.UserUserType]]
)

object UserArgs:
  def apply(
    clusterId: besom.types.Input[String],
    databaseRoles: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    password: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    userId: besom.types.Input[String],
    userType: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.enums.UserUserType] = scala.None
  )(using besom.types.Context): UserArgs =
    new UserArgs(
      clusterId = clusterId.asOutput(isSecret = false),
      databaseRoles = databaseRoles.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      password = password.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      userId = userId.asOutput(isSecret = false),
      userType = userType.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy