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

src.alloydb.v1.ClusterArgs.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 ClusterArgs private(
  annotations: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  automatedBackupPolicy: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.AutomatedBackupPolicyArgs]],
  clusterId: besom.types.Output[String],
  continuousBackupConfig: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.ContinuousBackupConfigArgs]],
  databaseVersion: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.enums.ClusterDatabaseVersion]],
  displayName: besom.types.Output[scala.Option[String]],
  encryptionConfig: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.EncryptionConfigArgs]],
  etag: besom.types.Output[scala.Option[String]],
  initialUser: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.UserPasswordArgs]],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  location: besom.types.Output[scala.Option[String]],
  network: besom.types.Output[String],
  networkConfig: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.NetworkConfigArgs]],
  project: besom.types.Output[scala.Option[String]],
  requestId: besom.types.Output[scala.Option[String]],
  secondaryConfig: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.SecondaryConfigArgs]],
  sslConfig: besom.types.Output[scala.Option[besom.api.googlenative.alloydb.v1.inputs.SslConfigArgs]]
)

object ClusterArgs:
  def apply(
    annotations: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    automatedBackupPolicy: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.AutomatedBackupPolicyArgs] = scala.None,
    clusterId: besom.types.Input[String],
    continuousBackupConfig: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.ContinuousBackupConfigArgs] = scala.None,
    databaseVersion: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.enums.ClusterDatabaseVersion] = scala.None,
    displayName: besom.types.Input.Optional[String] = scala.None,
    encryptionConfig: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.EncryptionConfigArgs] = scala.None,
    etag: besom.types.Input.Optional[String] = scala.None,
    initialUser: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.UserPasswordArgs] = 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,
    network: besom.types.Input[String],
    networkConfig: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.NetworkConfigArgs] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    secondaryConfig: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.SecondaryConfigArgs] = scala.None,
    sslConfig: besom.types.Input.Optional[besom.api.googlenative.alloydb.v1.inputs.SslConfigArgs] = scala.None
  )(using besom.types.Context): ClusterArgs =
    new ClusterArgs(
      annotations = annotations.asOptionOutput(isSecret = false),
      automatedBackupPolicy = automatedBackupPolicy.asOptionOutput(isSecret = false),
      clusterId = clusterId.asOutput(isSecret = false),
      continuousBackupConfig = continuousBackupConfig.asOptionOutput(isSecret = false),
      databaseVersion = databaseVersion.asOptionOutput(isSecret = false),
      displayName = displayName.asOptionOutput(isSecret = false),
      encryptionConfig = encryptionConfig.asOptionOutput(isSecret = false),
      etag = etag.asOptionOutput(isSecret = false),
      initialUser = initialUser.asOptionOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      network = network.asOutput(isSecret = false),
      networkConfig = networkConfig.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      secondaryConfig = secondaryConfig.asOptionOutput(isSecret = false),
      sslConfig = sslConfig.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy