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

src.cloudbuild.v2.ConnectionArgs.scala Maven / Gradle / Ivy

package besom.api.googlenative.cloudbuild.v2

final case class ConnectionArgs private(
  annotations: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  connectionId: besom.types.Output[String],
  disabled: besom.types.Output[scala.Option[Boolean]],
  etag: besom.types.Output[scala.Option[String]],
  githubConfig: besom.types.Output[scala.Option[besom.api.googlenative.cloudbuild.v2.inputs.GitHubConfigArgs]],
  githubEnterpriseConfig: besom.types.Output[scala.Option[besom.api.googlenative.cloudbuild.v2.inputs.GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfigArgs]],
  gitlabConfig: besom.types.Output[scala.Option[besom.api.googlenative.cloudbuild.v2.inputs.GoogleDevtoolsCloudbuildV2GitLabConfigArgs]],
  location: besom.types.Output[scala.Option[String]],
  name: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]]
)

object ConnectionArgs:
  def apply(
    annotations: besom.types.Input.Optional[scala.Predef.Map[String, besom.types.Input[String]]] = scala.None,
    connectionId: besom.types.Input[String],
    disabled: besom.types.Input.Optional[Boolean] = scala.None,
    etag: besom.types.Input.Optional[String] = scala.None,
    githubConfig: besom.types.Input.Optional[besom.api.googlenative.cloudbuild.v2.inputs.GitHubConfigArgs] = scala.None,
    githubEnterpriseConfig: besom.types.Input.Optional[besom.api.googlenative.cloudbuild.v2.inputs.GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfigArgs] = scala.None,
    gitlabConfig: besom.types.Input.Optional[besom.api.googlenative.cloudbuild.v2.inputs.GoogleDevtoolsCloudbuildV2GitLabConfigArgs] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): ConnectionArgs =
    new ConnectionArgs(
      annotations = annotations.asOptionOutput(isSecret = false),
      connectionId = connectionId.asOutput(isSecret = false),
      disabled = disabled.asOptionOutput(isSecret = false),
      etag = etag.asOptionOutput(isSecret = false),
      githubConfig = githubConfig.asOptionOutput(isSecret = false),
      githubEnterpriseConfig = githubEnterpriseConfig.asOptionOutput(isSecret = false),
      gitlabConfig = gitlabConfig.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy