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

src.retail.v2beta.ControlArgs.scala Maven / Gradle / Ivy

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

final case class ControlArgs private(
  catalogId: besom.types.Output[String],
  controlId: besom.types.Output[String],
  displayName: besom.types.Output[String],
  facetSpec: besom.types.Output[scala.Option[besom.api.googlenative.retail.v2beta.inputs.GoogleCloudRetailV2betaSearchRequestFacetSpecArgs]],
  location: besom.types.Output[scala.Option[String]],
  name: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  rule: besom.types.Output[scala.Option[besom.api.googlenative.retail.v2beta.inputs.GoogleCloudRetailV2betaRuleArgs]],
  searchSolutionUseCase: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.retail.v2beta.enums.ControlSearchSolutionUseCaseItem]]],
  solutionTypes: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.retail.v2beta.enums.ControlSolutionTypesItem]]
)

object ControlArgs:
  def apply(
    catalogId: besom.types.Input[String],
    controlId: besom.types.Input[String],
    displayName: besom.types.Input[String],
    facetSpec: besom.types.Input.Optional[besom.api.googlenative.retail.v2beta.inputs.GoogleCloudRetailV2betaSearchRequestFacetSpecArgs] = 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,
    rule: besom.types.Input.Optional[besom.api.googlenative.retail.v2beta.inputs.GoogleCloudRetailV2betaRuleArgs] = scala.None,
    searchSolutionUseCase: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.retail.v2beta.enums.ControlSearchSolutionUseCaseItem]]] = scala.None,
    solutionTypes: besom.types.Input[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.retail.v2beta.enums.ControlSolutionTypesItem]]]
  )(using besom.types.Context): ControlArgs =
    new ControlArgs(
      catalogId = catalogId.asOutput(isSecret = false),
      controlId = controlId.asOutput(isSecret = false),
      displayName = displayName.asOutput(isSecret = false),
      facetSpec = facetSpec.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      rule = rule.asOptionOutput(isSecret = false),
      searchSolutionUseCase = searchSolutionUseCase.asOptionOutput(isSecret = false),
      solutionTypes = solutionTypes.asOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy