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

src.clouddeploy.v1.AutomationArgs.scala Maven / Gradle / Ivy

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

final case class AutomationArgs private(
  annotations: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  automationId: besom.types.Output[String],
  deliveryPipelineId: besom.types.Output[String],
  description: besom.types.Output[scala.Option[String]],
  etag: besom.types.Output[scala.Option[String]],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  location: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  requestId: besom.types.Output[scala.Option[String]],
  rules: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.clouddeploy.v1.inputs.AutomationRuleArgs]],
  selector: besom.types.Output[besom.api.googlenative.clouddeploy.v1.inputs.AutomationResourceSelectorArgs],
  serviceAccount: besom.types.Output[String],
  suspended: besom.types.Output[scala.Option[Boolean]]
)

object AutomationArgs:
  def apply(
    annotations: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    automationId: besom.types.Input[String],
    deliveryPipelineId: besom.types.Input[String],
    description: besom.types.Input.Optional[String] = scala.None,
    etag: besom.types.Input.Optional[String] = 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,
    project: besom.types.Input.Optional[String] = scala.None,
    requestId: besom.types.Input.Optional[String] = scala.None,
    rules: besom.types.Input[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.clouddeploy.v1.inputs.AutomationRuleArgs]]],
    selector: besom.types.Input[besom.api.googlenative.clouddeploy.v1.inputs.AutomationResourceSelectorArgs],
    serviceAccount: besom.types.Input[String],
    suspended: besom.types.Input.Optional[Boolean] = scala.None
  )(using besom.types.Context): AutomationArgs =
    new AutomationArgs(
      annotations = annotations.asOptionOutput(isSecret = false),
      automationId = automationId.asOutput(isSecret = false),
      deliveryPipelineId = deliveryPipelineId.asOutput(isSecret = false),
      description = description.asOptionOutput(isSecret = false),
      etag = etag.asOptionOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      requestId = requestId.asOptionOutput(isSecret = false),
      rules = rules.asOutput(isSecret = false),
      selector = selector.asOutput(isSecret = false),
      serviceAccount = serviceAccount.asOutput(isSecret = false),
      suspended = suspended.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy