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

src.migrationcenter.v1.SourceArgs.scala Maven / Gradle / Ivy

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

final case class SourceArgs private(
  description: besom.types.Output[scala.Option[String]],
  displayName: besom.types.Output[scala.Option[String]],
  location: besom.types.Output[scala.Option[String]],
  managed: besom.types.Output[scala.Option[Boolean]],
  priority: besom.types.Output[scala.Option[Int]],
  project: besom.types.Output[scala.Option[String]],
  requestId: besom.types.Output[scala.Option[String]],
  sourceId: besom.types.Output[String],
  `type`: besom.types.Output[scala.Option[besom.api.googlenative.migrationcenter.v1.enums.SourceType]]
)

object SourceArgs:
  def apply(
    description: besom.types.Input.Optional[String] = scala.None,
    displayName: besom.types.Input.Optional[String] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    managed: besom.types.Input.Optional[Boolean] = scala.None,
    priority: besom.types.Input.Optional[Int] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    sourceId: besom.types.Input[String],
    `type`: besom.types.Input.Optional[besom.api.googlenative.migrationcenter.v1.enums.SourceType] = scala.None
  )(using besom.types.Context): SourceArgs =
    new SourceArgs(
      description = description.asOptionOutput(isSecret = false),
      displayName = displayName.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      managed = managed.asOptionOutput(isSecret = false),
      priority = priority.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      sourceId = sourceId.asOutput(isSecret = false),
      `type` = `type`.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy