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

src.run.v2.ServiceIamPolicyArgs.scala Maven / Gradle / Ivy

package besom.api.googlenative.run.v2

final case class ServiceIamPolicyArgs private(
  auditConfigs: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.run.v2.inputs.GoogleIamV1AuditConfigArgs]]],
  bindings: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.run.v2.inputs.GoogleIamV1BindingArgs]]],
  etag: besom.types.Output[scala.Option[String]],
  location: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  serviceId: besom.types.Output[String],
  updateMask: besom.types.Output[scala.Option[String]],
  version: besom.types.Output[scala.Option[Int]]
)

object ServiceIamPolicyArgs:
  def apply(
    auditConfigs: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.run.v2.inputs.GoogleIamV1AuditConfigArgs]]] = scala.None,
    bindings: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.run.v2.inputs.GoogleIamV1BindingArgs]]] = scala.None,
    etag: besom.types.Input.Optional[String] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    serviceId: besom.types.Input[String],
    updateMask: besom.types.Input.Optional[String] = scala.None,
    version: besom.types.Input.Optional[Int] = scala.None
  )(using besom.types.Context): ServiceIamPolicyArgs =
    new ServiceIamPolicyArgs(
      auditConfigs = auditConfigs.asOptionOutput(isSecret = false),
      bindings = bindings.asOptionOutput(isSecret = false),
      etag = etag.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      serviceId = serviceId.asOutput(isSecret = false),
      updateMask = updateMask.asOptionOutput(isSecret = false),
      version = version.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy