1. Packages
  2. Google Cloud Native
  3. API Docs
  4. migrationcenter
  5. migrationcenter/v1
  6. ImportJob

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.migrationcenter/v1.ImportJob

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates an import job. Auto-naming is currently not supported for this resource.

    Create ImportJob Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ImportJob(name: string, args: ImportJobArgs, opts?: CustomResourceOptions);
    @overload
    def ImportJob(resource_name: str,
                  args: ImportJobArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImportJob(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  asset_source: Optional[str] = None,
                  import_job_id: Optional[str] = None,
                  display_name: Optional[str] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  location: Optional[str] = None,
                  project: Optional[str] = None,
                  request_id: Optional[str] = None)
    func NewImportJob(ctx *Context, name string, args ImportJobArgs, opts ...ResourceOption) (*ImportJob, error)
    public ImportJob(string name, ImportJobArgs args, CustomResourceOptions? opts = null)
    public ImportJob(String name, ImportJobArgs args)
    public ImportJob(String name, ImportJobArgs args, CustomResourceOptions options)
    
    type: google-native:migrationcenter/v1:ImportJob
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImportJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImportJobArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImportJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImportJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImportJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var google_nativeImportJobResource = new GoogleNative.MigrationCenter.V1.ImportJob("google-nativeImportJobResource", new()
    {
        AssetSource = "string",
        ImportJobId = "string",
        DisplayName = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        Project = "string",
        RequestId = "string",
    });
    
    example, err := migrationcenter.NewImportJob(ctx, "google-nativeImportJobResource", &migrationcenter.ImportJobArgs{
    	AssetSource: pulumi.String("string"),
    	ImportJobId: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Location:  pulumi.String("string"),
    	Project:   pulumi.String("string"),
    	RequestId: pulumi.String("string"),
    })
    
    var google_nativeImportJobResource = new ImportJob("google-nativeImportJobResource", ImportJobArgs.builder()
        .assetSource("string")
        .importJobId("string")
        .displayName("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .project("string")
        .requestId("string")
        .build());
    
    google_native_import_job_resource = google_native.migrationcenter.v1.ImportJob("google-nativeImportJobResource",
        asset_source="string",
        import_job_id="string",
        display_name="string",
        labels={
            "string": "string",
        },
        location="string",
        project="string",
        request_id="string")
    
    const google_nativeImportJobResource = new google_native.migrationcenter.v1.ImportJob("google-nativeImportJobResource", {
        assetSource: "string",
        importJobId: "string",
        displayName: "string",
        labels: {
            string: "string",
        },
        location: "string",
        project: "string",
        requestId: "string",
    });
    
    type: google-native:migrationcenter/v1:ImportJob
    properties:
        assetSource: string
        displayName: string
        importJobId: string
        labels:
            string: string
        location: string
        project: string
        requestId: string
    

    ImportJob Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ImportJob resource accepts the following input properties:

    AssetSource string
    Reference to a source.
    ImportJobId string
    Required. ID of the import job.
    DisplayName string
    Optional. User-friendly display name. Maximum length is 256 characters.
    Labels Dictionary<string, string>
    Labels as key value pairs.
    Location string
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    AssetSource string
    Reference to a source.
    ImportJobId string
    Required. ID of the import job.
    DisplayName string
    Optional. User-friendly display name. Maximum length is 256 characters.
    Labels map[string]string
    Labels as key value pairs.
    Location string
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    assetSource String
    Reference to a source.
    importJobId String
    Required. ID of the import job.
    displayName String
    Optional. User-friendly display name. Maximum length is 256 characters.
    labels Map<String,String>
    Labels as key value pairs.
    location String
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    assetSource string
    Reference to a source.
    importJobId string
    Required. ID of the import job.
    displayName string
    Optional. User-friendly display name. Maximum length is 256 characters.
    labels {[key: string]: string}
    Labels as key value pairs.
    location string
    project string
    requestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    asset_source str
    Reference to a source.
    import_job_id str
    Required. ID of the import job.
    display_name str
    Optional. User-friendly display name. Maximum length is 256 characters.
    labels Mapping[str, str]
    Labels as key value pairs.
    location str
    project str
    request_id str
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    assetSource String
    Reference to a source.
    importJobId String
    Required. ID of the import job.
    displayName String
    Optional. User-friendly display name. Maximum length is 256 characters.
    labels Map<String>
    Labels as key value pairs.
    location String
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ImportJob resource produces the following output properties:

    CompleteTime string
    The timestamp when the import job was completed.
    CreateTime string
    The timestamp when the import job was created.
    ExecutionReport Pulumi.GoogleNative.MigrationCenter.V1.Outputs.ExecutionReportResponse
    The report with the results of running the import job.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the import job.
    State string
    The state of the import job.
    UpdateTime string
    The timestamp when the import job was last updated.
    ValidationReport Pulumi.GoogleNative.MigrationCenter.V1.Outputs.ValidationReportResponse
    The report with the validation results of the import job.
    CompleteTime string
    The timestamp when the import job was completed.
    CreateTime string
    The timestamp when the import job was created.
    ExecutionReport ExecutionReportResponse
    The report with the results of running the import job.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the import job.
    State string
    The state of the import job.
    UpdateTime string
    The timestamp when the import job was last updated.
    ValidationReport ValidationReportResponse
    The report with the validation results of the import job.
    completeTime String
    The timestamp when the import job was completed.
    createTime String
    The timestamp when the import job was created.
    executionReport ExecutionReportResponse
    The report with the results of running the import job.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the import job.
    state String
    The state of the import job.
    updateTime String
    The timestamp when the import job was last updated.
    validationReport ValidationReportResponse
    The report with the validation results of the import job.
    completeTime string
    The timestamp when the import job was completed.
    createTime string
    The timestamp when the import job was created.
    executionReport ExecutionReportResponse
    The report with the results of running the import job.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The full name of the import job.
    state string
    The state of the import job.
    updateTime string
    The timestamp when the import job was last updated.
    validationReport ValidationReportResponse
    The report with the validation results of the import job.
    complete_time str
    The timestamp when the import job was completed.
    create_time str
    The timestamp when the import job was created.
    execution_report ExecutionReportResponse
    The report with the results of running the import job.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The full name of the import job.
    state str
    The state of the import job.
    update_time str
    The timestamp when the import job was last updated.
    validation_report ValidationReportResponse
    The report with the validation results of the import job.
    completeTime String
    The timestamp when the import job was completed.
    createTime String
    The timestamp when the import job was created.
    executionReport Property Map
    The report with the results of running the import job.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the import job.
    state String
    The state of the import job.
    updateTime String
    The timestamp when the import job was last updated.
    validationReport Property Map
    The report with the validation results of the import job.

    Supporting Types

    ExecutionReportResponse, ExecutionReportResponseArgs

    ExecutionErrors Pulumi.GoogleNative.MigrationCenter.V1.Inputs.ValidationReportResponse
    Validation errors encountered during the execution of the import job.
    FramesReported int
    Total number of asset frames reported for the import job.
    TotalRowsCount int
    Total number of rows in the import job.
    ExecutionErrors ValidationReportResponse
    Validation errors encountered during the execution of the import job.
    FramesReported int
    Total number of asset frames reported for the import job.
    TotalRowsCount int
    Total number of rows in the import job.
    executionErrors ValidationReportResponse
    Validation errors encountered during the execution of the import job.
    framesReported Integer
    Total number of asset frames reported for the import job.
    totalRowsCount Integer
    Total number of rows in the import job.
    executionErrors ValidationReportResponse
    Validation errors encountered during the execution of the import job.
    framesReported number
    Total number of asset frames reported for the import job.
    totalRowsCount number
    Total number of rows in the import job.
    execution_errors ValidationReportResponse
    Validation errors encountered during the execution of the import job.
    frames_reported int
    Total number of asset frames reported for the import job.
    total_rows_count int
    Total number of rows in the import job.
    executionErrors Property Map
    Validation errors encountered during the execution of the import job.
    framesReported Number
    Total number of asset frames reported for the import job.
    totalRowsCount Number
    Total number of rows in the import job.

    FileValidationReportResponse, FileValidationReportResponseArgs

    FileErrors List<Pulumi.GoogleNative.MigrationCenter.V1.Inputs.ImportErrorResponse>
    List of file level errors.
    FileName string
    The name of the file.
    PartialReport bool
    Flag indicating that processing was aborted due to maximum number of errors.
    RowErrors List<Pulumi.GoogleNative.MigrationCenter.V1.Inputs.ImportRowErrorResponse>
    Partial list of rows that encountered validation error.
    FileErrors []ImportErrorResponse
    List of file level errors.
    FileName string
    The name of the file.
    PartialReport bool
    Flag indicating that processing was aborted due to maximum number of errors.
    RowErrors []ImportRowErrorResponse
    Partial list of rows that encountered validation error.
    fileErrors List<ImportErrorResponse>
    List of file level errors.
    fileName String
    The name of the file.
    partialReport Boolean
    Flag indicating that processing was aborted due to maximum number of errors.
    rowErrors List<ImportRowErrorResponse>
    Partial list of rows that encountered validation error.
    fileErrors ImportErrorResponse[]
    List of file level errors.
    fileName string
    The name of the file.
    partialReport boolean
    Flag indicating that processing was aborted due to maximum number of errors.
    rowErrors ImportRowErrorResponse[]
    Partial list of rows that encountered validation error.
    file_errors Sequence[ImportErrorResponse]
    List of file level errors.
    file_name str
    The name of the file.
    partial_report bool
    Flag indicating that processing was aborted due to maximum number of errors.
    row_errors Sequence[ImportRowErrorResponse]
    Partial list of rows that encountered validation error.
    fileErrors List<Property Map>
    List of file level errors.
    fileName String
    The name of the file.
    partialReport Boolean
    Flag indicating that processing was aborted due to maximum number of errors.
    rowErrors List<Property Map>
    Partial list of rows that encountered validation error.

    ImportErrorResponse, ImportErrorResponseArgs

    ErrorDetails string
    The error information.
    Severity string
    The severity of the error.
    ErrorDetails string
    The error information.
    Severity string
    The severity of the error.
    errorDetails String
    The error information.
    severity String
    The severity of the error.
    errorDetails string
    The error information.
    severity string
    The severity of the error.
    error_details str
    The error information.
    severity str
    The severity of the error.
    errorDetails String
    The error information.
    severity String
    The severity of the error.

    ImportRowErrorResponse, ImportRowErrorResponseArgs

    Errors List<Pulumi.GoogleNative.MigrationCenter.V1.Inputs.ImportErrorResponse>
    The list of errors detected in the row.
    RowNumber int
    The row number where the error was detected.
    VmName string
    The name of the VM in the row.
    VmUuid string
    The VM UUID.
    Errors []ImportErrorResponse
    The list of errors detected in the row.
    RowNumber int
    The row number where the error was detected.
    VmName string
    The name of the VM in the row.
    VmUuid string
    The VM UUID.
    errors List<ImportErrorResponse>
    The list of errors detected in the row.
    rowNumber Integer
    The row number where the error was detected.
    vmName String
    The name of the VM in the row.
    vmUuid String
    The VM UUID.
    errors ImportErrorResponse[]
    The list of errors detected in the row.
    rowNumber number
    The row number where the error was detected.
    vmName string
    The name of the VM in the row.
    vmUuid string
    The VM UUID.
    errors Sequence[ImportErrorResponse]
    The list of errors detected in the row.
    row_number int
    The row number where the error was detected.
    vm_name str
    The name of the VM in the row.
    vm_uuid str
    The VM UUID.
    errors List<Property Map>
    The list of errors detected in the row.
    rowNumber Number
    The row number where the error was detected.
    vmName String
    The name of the VM in the row.
    vmUuid String
    The VM UUID.

    ValidationReportResponse, ValidationReportResponseArgs

    FileValidations []FileValidationReportResponse
    List of errors found in files.
    JobErrors []ImportErrorResponse
    List of job level errors.
    fileValidations List<FileValidationReportResponse>
    List of errors found in files.
    jobErrors List<ImportErrorResponse>
    List of job level errors.
    fileValidations FileValidationReportResponse[]
    List of errors found in files.
    jobErrors ImportErrorResponse[]
    List of job level errors.
    fileValidations List<Property Map>
    List of errors found in files.
    jobErrors List<Property Map>
    List of job level errors.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi