Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.migrationcenter/v1.ImportJob
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ImportJob resource accepts the following input properties:
- Asset
Source string - Reference to a source.
- Import
Job stringId - Required. ID of the import job.
- Display
Name string - Optional. User-friendly display name. Maximum length is 256 characters.
- Labels Dictionary<string, string>
- Labels as key value pairs.
- Location string
- Project string
- Request
Id 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 string - Reference to a source.
- Import
Job stringId - Required. ID of the import job.
- Display
Name string - Optional. User-friendly display name. Maximum length is 256 characters.
- Labels map[string]string
- Labels as key value pairs.
- Location string
- Project string
- Request
Id 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 String - Reference to a source.
- import
Job StringId - Required. ID of the import job.
- display
Name String - Optional. User-friendly display name. Maximum length is 256 characters.
- labels Map<String,String>
- Labels as key value pairs.
- location String
- project String
- request
Id 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 string - Reference to a source.
- import
Job stringId - Required. ID of the import job.
- display
Name string - Optional. User-friendly display name. Maximum length is 256 characters.
- labels {[key: string]: string}
- Labels as key value pairs.
- location string
- project string
- request
Id 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_ strid - 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).
- asset
Source String - Reference to a source.
- import
Job StringId - Required. ID of the import job.
- display
Name String - Optional. User-friendly display name. Maximum length is 256 characters.
- labels Map<String>
- Labels as key value pairs.
- location String
- project String
- request
Id 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:
- Complete
Time string - The timestamp when the import job was completed.
- Create
Time string - The timestamp when the import job was created.
- Execution
Report Pulumi.Google Native. Migration Center. V1. Outputs. Execution Report Response - 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.
- Update
Time string - The timestamp when the import job was last updated.
- Validation
Report Pulumi.Google Native. Migration Center. V1. Outputs. Validation Report Response - The report with the validation results of the import job.
- Complete
Time string - The timestamp when the import job was completed.
- Create
Time string - The timestamp when the import job was created.
- Execution
Report ExecutionReport Response - 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.
- Update
Time string - The timestamp when the import job was last updated.
- Validation
Report ValidationReport Response - The report with the validation results of the import job.
- complete
Time String - The timestamp when the import job was completed.
- create
Time String - The timestamp when the import job was created.
- execution
Report ExecutionReport Response - 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.
- update
Time String - The timestamp when the import job was last updated.
- validation
Report ValidationReport Response - The report with the validation results of the import job.
- complete
Time string - The timestamp when the import job was completed.
- create
Time string - The timestamp when the import job was created.
- execution
Report ExecutionReport Response - 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.
- update
Time string - The timestamp when the import job was last updated.
- validation
Report ValidationReport Response - 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 ExecutionReport Response - 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 ValidationReport Response - The report with the validation results of the import job.
- complete
Time String - The timestamp when the import job was completed.
- create
Time String - The timestamp when the import job was created.
- execution
Report 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.
- update
Time String - The timestamp when the import job was last updated.
- validation
Report Property Map - The report with the validation results of the import job.
Supporting Types
ExecutionReportResponse, ExecutionReportResponseArgs
- Execution
Errors Pulumi.Google Native. Migration Center. V1. Inputs. Validation Report Response - 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 intCount - Total number of rows in the import job.
- Execution
Errors ValidationReport Response - 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 intCount - Total number of rows in the import job.
- execution
Errors ValidationReport Response - Validation errors encountered during the execution of the import job.
- frames
Reported Integer - Total number of asset frames reported for the import job.
- total
Rows IntegerCount - Total number of rows in the import job.
- execution
Errors ValidationReport Response - Validation errors encountered during the execution of the import job.
- frames
Reported number - Total number of asset frames reported for the import job.
- total
Rows numberCount - Total number of rows in the import job.
- execution_
errors ValidationReport Response - 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_ intcount - Total number of rows in the import job.
- execution
Errors Property Map - Validation errors encountered during the execution of the import job.
- frames
Reported Number - Total number of asset frames reported for the import job.
- total
Rows NumberCount - Total number of rows in the import job.
FileValidationReportResponse, FileValidationReportResponseArgs
- File
Errors List<Pulumi.Google Native. Migration Center. V1. Inputs. Import Error Response> - List of file level errors.
- File
Name string - The name of the file.
- Partial
Report bool - Flag indicating that processing was aborted due to maximum number of errors.
- Row
Errors List<Pulumi.Google Native. Migration Center. V1. Inputs. Import Row Error Response> - Partial list of rows that encountered validation error.
- File
Errors []ImportError Response - List of file level errors.
- File
Name string - The name of the file.
- Partial
Report bool - Flag indicating that processing was aborted due to maximum number of errors.
- Row
Errors []ImportRow Error Response - Partial list of rows that encountered validation error.
- file
Errors List<ImportError Response> - List of file level errors.
- file
Name String - The name of the file.
- partial
Report Boolean - Flag indicating that processing was aborted due to maximum number of errors.
- row
Errors List<ImportRow Error Response> - Partial list of rows that encountered validation error.
- file
Errors ImportError Response[] - List of file level errors.
- file
Name string - The name of the file.
- partial
Report boolean - Flag indicating that processing was aborted due to maximum number of errors.
- row
Errors ImportRow Error Response[] - Partial list of rows that encountered validation error.
- file_
errors Sequence[ImportError Response] - 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[ImportRow Error Response] - Partial list of rows that encountered validation error.
- file
Errors List<Property Map> - List of file level errors.
- file
Name String - The name of the file.
- partial
Report Boolean - Flag indicating that processing was aborted due to maximum number of errors.
- row
Errors List<Property Map> - Partial list of rows that encountered validation error.
ImportErrorResponse, ImportErrorResponseArgs
- Error
Details string - The error information.
- Severity string
- The severity of the error.
- Error
Details string - The error information.
- Severity string
- The severity of the error.
- error
Details String - The error information.
- severity String
- The severity of the error.
- error
Details string - The error information.
- severity string
- The severity of the error.
- error_
details str - The error information.
- severity str
- The severity of the error.
- error
Details String - The error information.
- severity String
- The severity of the error.
ImportRowErrorResponse, ImportRowErrorResponseArgs
- Errors
List<Pulumi.
Google Native. Migration Center. V1. Inputs. Import Error Response> - The list of errors detected in the row.
- Row
Number int - The row number where the error was detected.
- Vm
Name string - The name of the VM in the row.
- Vm
Uuid string - The VM UUID.
- Errors
[]Import
Error Response - The list of errors detected in the row.
- Row
Number int - The row number where the error was detected.
- Vm
Name string - The name of the VM in the row.
- Vm
Uuid string - The VM UUID.
- errors
List<Import
Error Response> - The list of errors detected in the row.
- row
Number Integer - The row number where the error was detected.
- vm
Name String - The name of the VM in the row.
- vm
Uuid String - The VM UUID.
- errors
Import
Error Response[] - The list of errors detected in the row.
- row
Number number - The row number where the error was detected.
- vm
Name string - The name of the VM in the row.
- vm
Uuid string - The VM UUID.
- errors
Sequence[Import
Error Response] - 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.
- row
Number Number - The row number where the error was detected.
- vm
Name String - The name of the VM in the row.
- vm
Uuid String - The VM UUID.
ValidationReportResponse, ValidationReportResponseArgs
- File
Validations List<Pulumi.Google Native. Migration Center. V1. Inputs. File Validation Report Response> - List of errors found in files.
- Job
Errors List<Pulumi.Google Native. Migration Center. V1. Inputs. Import Error Response> - List of job level errors.
- File
Validations []FileValidation Report Response - List of errors found in files.
- Job
Errors []ImportError Response - List of job level errors.
- file
Validations List<FileValidation Report Response> - List of errors found in files.
- job
Errors List<ImportError Response> - List of job level errors.
- file
Validations FileValidation Report Response[] - List of errors found in files.
- job
Errors ImportError Response[] - List of job level errors.
- file_
validations Sequence[FileValidation Report Response] - List of errors found in files.
- job_
errors Sequence[ImportError Response] - List of job level errors.
- file
Validations List<Property Map> - List of errors found in files.
- job
Errors List<Property Map> - List of job level errors.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.