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

src.redis.v1beta1.ClusterArgs.scala Maven / Gradle / Ivy

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

final case class ClusterArgs private(
  authorizationMode: besom.types.Output[scala.Option[besom.api.googlenative.redis.v1beta1.enums.ClusterAuthorizationMode]],
  clusterId: besom.types.Output[String],
  location: besom.types.Output[scala.Option[String]],
  name: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  pscConfigs: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.redis.v1beta1.inputs.PscConfigArgs]],
  replicaCount: besom.types.Output[scala.Option[Int]],
  requestId: besom.types.Output[scala.Option[String]],
  shardCount: besom.types.Output[Int],
  transitEncryptionMode: besom.types.Output[scala.Option[besom.api.googlenative.redis.v1beta1.enums.ClusterTransitEncryptionMode]]
)

object ClusterArgs:
  def apply(
    authorizationMode: besom.types.Input.Optional[besom.api.googlenative.redis.v1beta1.enums.ClusterAuthorizationMode] = scala.None,
    clusterId: besom.types.Input[String],
    location: besom.types.Input.Optional[String] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    pscConfigs: besom.types.Input[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.redis.v1beta1.inputs.PscConfigArgs]]],
    replicaCount: besom.types.Input.Optional[Int] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    shardCount: besom.types.Input[Int],
    transitEncryptionMode: besom.types.Input.Optional[besom.api.googlenative.redis.v1beta1.enums.ClusterTransitEncryptionMode] = scala.None
  )(using besom.types.Context): ClusterArgs =
    new ClusterArgs(
      authorizationMode = authorizationMode.asOptionOutput(isSecret = false),
      clusterId = clusterId.asOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      pscConfigs = pscConfigs.asOutput(isSecret = false),
      replicaCount = replicaCount.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      shardCount = shardCount.asOutput(isSecret = false),
      transitEncryptionMode = transitEncryptionMode.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