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

src.vmmigration.v1.MigratingVm.scala Maven / Gradle / Ivy

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

final case class MigratingVm private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  awsSourceVmDetails: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.AwsSourceVmDetailsResponse],
  azureSourceVmDetails: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.AzureSourceVmDetailsResponse],
  computeEngineDisksTargetDefaults: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ComputeEngineDisksTargetDefaultsResponse],
  computeEngineTargetDefaults: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ComputeEngineTargetDefaultsResponse],
  createTime: besom.types.Output[String],
  currentSyncInfo: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationCycleResponse],
  cutoverForecast: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.CutoverForecastResponse],
  description: besom.types.Output[String],
  displayName: besom.types.Output[String],
  error: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.StatusResponse],
  group: besom.types.Output[String],
  labels: besom.types.Output[scala.Predef.Map[String, String]],
  lastReplicationCycle: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationCycleResponse],
  lastSync: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationSyncResponse],
  location: besom.types.Output[String],
  migratingVmId: besom.types.Output[String],
  name: besom.types.Output[String],
  policy: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.SchedulePolicyResponse],
  project: besom.types.Output[String],
  recentCloneJobs: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.vmmigration.v1.outputs.CloneJobResponse]],
  recentCutoverJobs: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.vmmigration.v1.outputs.CutoverJobResponse]],
  requestId: besom.types.Output[scala.Option[String]],
  sourceId: besom.types.Output[String],
  sourceVmId: besom.types.Output[String],
  state: besom.types.Output[String],
  stateTime: besom.types.Output[String],
  updateTime: besom.types.Output[String],
  vmwareSourceVmDetails: besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.VmwareSourceVmDetailsResponse]
) extends besom.CustomResource

object MigratingVm extends besom.ResourceCompanion[MigratingVm]:
  /** Resource constructor for MigratingVm. 
    * 
    * @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
    *        NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
    *        issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
    *        string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
    *
    * @param args [[MigratingVmArgs]] The configuration to use to create this resource. 
    *
    * @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource. 
    *        Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
    *  
    *        {{{
    *        val res = MigratingVm(
    *          "my-resource",
    *          MigratingVmArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: MigratingVmArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[MigratingVm] =
    ctx.readOrRegisterResource[MigratingVm, MigratingVmArgs]("google-native:vmmigration/v1:MigratingVm", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:vmmigration/v1:MigratingVm"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[MigratingVm] =
    besom.internal.ResourceDecoder.derived[MigratingVm]

  given decoder(using besom.types.Context): besom.types.Decoder[MigratingVm] =
    besom.internal.Decoder.customResourceDecoder[MigratingVm]


  given outputOps: {} with
    extension(output: besom.types.Output[MigratingVm])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def awsSourceVmDetails : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.AwsSourceVmDetailsResponse] = output.flatMap(_.awsSourceVmDetails)
      def azureSourceVmDetails : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.AzureSourceVmDetailsResponse] = output.flatMap(_.azureSourceVmDetails)
      def computeEngineDisksTargetDefaults : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ComputeEngineDisksTargetDefaultsResponse] = output.flatMap(_.computeEngineDisksTargetDefaults)
      def computeEngineTargetDefaults : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ComputeEngineTargetDefaultsResponse] = output.flatMap(_.computeEngineTargetDefaults)
      def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
      def currentSyncInfo : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationCycleResponse] = output.flatMap(_.currentSyncInfo)
      def cutoverForecast : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.CutoverForecastResponse] = output.flatMap(_.cutoverForecast)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def displayName : besom.types.Output[String] = output.flatMap(_.displayName)
      def error : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.StatusResponse] = output.flatMap(_.error)
      def group : besom.types.Output[String] = output.flatMap(_.group)
      def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
      def lastReplicationCycle : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationCycleResponse] = output.flatMap(_.lastReplicationCycle)
      def lastSync : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.ReplicationSyncResponse] = output.flatMap(_.lastSync)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def migratingVmId : besom.types.Output[String] = output.flatMap(_.migratingVmId)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def policy : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.SchedulePolicyResponse] = output.flatMap(_.policy)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def recentCloneJobs : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.vmmigration.v1.outputs.CloneJobResponse]] = output.flatMap(_.recentCloneJobs)
      def recentCutoverJobs : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.vmmigration.v1.outputs.CutoverJobResponse]] = output.flatMap(_.recentCutoverJobs)
      def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
      def sourceId : besom.types.Output[String] = output.flatMap(_.sourceId)
      def sourceVmId : besom.types.Output[String] = output.flatMap(_.sourceVmId)
      def state : besom.types.Output[String] = output.flatMap(_.state)
      def stateTime : besom.types.Output[String] = output.flatMap(_.stateTime)
      def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
      def vmwareSourceVmDetails : besom.types.Output[besom.api.googlenative.vmmigration.v1.outputs.VmwareSourceVmDetailsResponse] = output.flatMap(_.vmwareSourceVmDetails)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy