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

src.apigateway.v1.ConfigArgs.scala Maven / Gradle / Ivy

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

final case class ConfigArgs private(
  apiConfigId: besom.types.Output[String],
  apiId: besom.types.Output[String],
  displayName: besom.types.Output[scala.Option[String]],
  gatewayServiceAccount: besom.types.Output[scala.Option[String]],
  grpcServices: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigGrpcServiceDefinitionArgs]]],
  labels: besom.types.Output[scala.Option[scala.Predef.Map[String, String]]],
  location: besom.types.Output[scala.Option[String]],
  managedServiceConfigs: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigFileArgs]]],
  openapiDocuments: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigOpenApiDocumentArgs]]],
  project: besom.types.Output[scala.Option[String]]
)

object ConfigArgs:
  def apply(
    apiConfigId: besom.types.Input[String],
    apiId: besom.types.Input[String],
    displayName: besom.types.Input.Optional[String] = scala.None,
    gatewayServiceAccount: besom.types.Input.Optional[String] = scala.None,
    grpcServices: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigGrpcServiceDefinitionArgs]]] = 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,
    managedServiceConfigs: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigFileArgs]]] = scala.None,
    openapiDocuments: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.apigateway.v1.inputs.ApigatewayApiConfigOpenApiDocumentArgs]]] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): ConfigArgs =
    new ConfigArgs(
      apiConfigId = apiConfigId.asOutput(isSecret = false),
      apiId = apiId.asOutput(isSecret = false),
      displayName = displayName.asOptionOutput(isSecret = false),
      gatewayServiceAccount = gatewayServiceAccount.asOptionOutput(isSecret = false),
      grpcServices = grpcServices.asOptionOutput(isSecret = false),
      labels = labels.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      managedServiceConfigs = managedServiceConfigs.asOptionOutput(isSecret = false),
      openapiDocuments = openapiDocuments.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy