1. Packages
  2. Google Cloud Native
  3. API Docs
  4. datamigration
  5. datamigration/v1
  6. ConversionWorkspace

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.datamigration/v1.ConversionWorkspace

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 a new conversion workspace in a given project and location.

    Create ConversionWorkspace Resource

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

    Constructor syntax

    new ConversionWorkspace(name: string, args: ConversionWorkspaceArgs, opts?: CustomResourceOptions);
    @overload
    def ConversionWorkspace(resource_name: str,
                            args: ConversionWorkspaceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConversionWorkspace(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            conversion_workspace_id: Optional[str] = None,
                            destination: Optional[DatabaseEngineInfoArgs] = None,
                            source: Optional[DatabaseEngineInfoArgs] = None,
                            display_name: Optional[str] = None,
                            global_settings: Optional[Mapping[str, str]] = None,
                            location: Optional[str] = None,
                            name: Optional[str] = None,
                            project: Optional[str] = None,
                            request_id: Optional[str] = None)
    func NewConversionWorkspace(ctx *Context, name string, args ConversionWorkspaceArgs, opts ...ResourceOption) (*ConversionWorkspace, error)
    public ConversionWorkspace(string name, ConversionWorkspaceArgs args, CustomResourceOptions? opts = null)
    public ConversionWorkspace(String name, ConversionWorkspaceArgs args)
    public ConversionWorkspace(String name, ConversionWorkspaceArgs args, CustomResourceOptions options)
    
    type: google-native:datamigration/v1:ConversionWorkspace
    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 ConversionWorkspaceArgs
    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 ConversionWorkspaceArgs
    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 ConversionWorkspaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConversionWorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConversionWorkspaceArgs
    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 conversionWorkspaceResource = new GoogleNative.Datamigration.V1.ConversionWorkspace("conversionWorkspaceResource", new()
    {
        ConversionWorkspaceId = "string",
        Destination = new GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfoArgs
        {
            Engine = GoogleNative.Datamigration.V1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
            Version = "string",
        },
        Source = new GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfoArgs
        {
            Engine = GoogleNative.Datamigration.V1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
            Version = "string",
        },
        DisplayName = "string",
        GlobalSettings = 
        {
            { "string", "string" },
        },
        Location = "string",
        Name = "string",
        Project = "string",
        RequestId = "string",
    });
    
    example, err := datamigration.NewConversionWorkspace(ctx, "conversionWorkspaceResource", &datamigration.ConversionWorkspaceArgs{
    	ConversionWorkspaceId: pulumi.String("string"),
    	Destination: &datamigration.DatabaseEngineInfoArgs{
    		Engine:  datamigration.DatabaseEngineInfoEngineDatabaseEngineUnspecified,
    		Version: pulumi.String("string"),
    	},
    	Source: &datamigration.DatabaseEngineInfoArgs{
    		Engine:  datamigration.DatabaseEngineInfoEngineDatabaseEngineUnspecified,
    		Version: pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	GlobalSettings: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Location:  pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Project:   pulumi.String("string"),
    	RequestId: pulumi.String("string"),
    })
    
    var conversionWorkspaceResource = new ConversionWorkspace("conversionWorkspaceResource", ConversionWorkspaceArgs.builder()
        .conversionWorkspaceId("string")
        .destination(DatabaseEngineInfoArgs.builder()
            .engine("DATABASE_ENGINE_UNSPECIFIED")
            .version("string")
            .build())
        .source(DatabaseEngineInfoArgs.builder()
            .engine("DATABASE_ENGINE_UNSPECIFIED")
            .version("string")
            .build())
        .displayName("string")
        .globalSettings(Map.of("string", "string"))
        .location("string")
        .name("string")
        .project("string")
        .requestId("string")
        .build());
    
    conversion_workspace_resource = google_native.datamigration.v1.ConversionWorkspace("conversionWorkspaceResource",
        conversion_workspace_id="string",
        destination={
            "engine": google_native.datamigration.v1.DatabaseEngineInfoEngine.DATABASE_ENGINE_UNSPECIFIED,
            "version": "string",
        },
        source={
            "engine": google_native.datamigration.v1.DatabaseEngineInfoEngine.DATABASE_ENGINE_UNSPECIFIED,
            "version": "string",
        },
        display_name="string",
        global_settings={
            "string": "string",
        },
        location="string",
        name="string",
        project="string",
        request_id="string")
    
    const conversionWorkspaceResource = new google_native.datamigration.v1.ConversionWorkspace("conversionWorkspaceResource", {
        conversionWorkspaceId: "string",
        destination: {
            engine: google_native.datamigration.v1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
            version: "string",
        },
        source: {
            engine: google_native.datamigration.v1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
            version: "string",
        },
        displayName: "string",
        globalSettings: {
            string: "string",
        },
        location: "string",
        name: "string",
        project: "string",
        requestId: "string",
    });
    
    type: google-native:datamigration/v1:ConversionWorkspace
    properties:
        conversionWorkspaceId: string
        destination:
            engine: DATABASE_ENGINE_UNSPECIFIED
            version: string
        displayName: string
        globalSettings:
            string: string
        location: string
        name: string
        project: string
        requestId: string
        source:
            engine: DATABASE_ENGINE_UNSPECIFIED
            version: string
    

    ConversionWorkspace 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 ConversionWorkspace resource accepts the following input properties:

    ConversionWorkspaceId string
    Required. The ID of the conversion workspace to create.
    Destination Pulumi.GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfo
    The destination engine details.
    Source Pulumi.GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfo
    The source engine details.
    DisplayName string
    Optional. The display name for the workspace.
    GlobalSettings Dictionary<string, string>
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    Location string
    Name string
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    Project string
    RequestId string
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
    ConversionWorkspaceId string
    Required. The ID of the conversion workspace to create.
    Destination DatabaseEngineInfoArgs
    The destination engine details.
    Source DatabaseEngineInfoArgs
    The source engine details.
    DisplayName string
    Optional. The display name for the workspace.
    GlobalSettings map[string]string
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    Location string
    Name string
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    Project string
    RequestId string
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
    conversionWorkspaceId String
    Required. The ID of the conversion workspace to create.
    destination DatabaseEngineInfo
    The destination engine details.
    source DatabaseEngineInfo
    The source engine details.
    displayName String
    Optional. The display name for the workspace.
    globalSettings Map<String,String>
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    location String
    name String
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    project String
    requestId String
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
    conversionWorkspaceId string
    Required. The ID of the conversion workspace to create.
    destination DatabaseEngineInfo
    The destination engine details.
    source DatabaseEngineInfo
    The source engine details.
    displayName string
    Optional. The display name for the workspace.
    globalSettings {[key: string]: string}
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    location string
    name string
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    project string
    requestId string
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
    conversion_workspace_id str
    Required. The ID of the conversion workspace to create.
    destination DatabaseEngineInfoArgs
    The destination engine details.
    source DatabaseEngineInfoArgs
    The source engine details.
    display_name str
    Optional. The display name for the workspace.
    global_settings Mapping[str, str]
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    location str
    name str
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    project str
    request_id str
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
    conversionWorkspaceId String
    Required. The ID of the conversion workspace to create.
    destination Property Map
    The destination engine details.
    source Property Map
    The source engine details.
    displayName String
    Optional. The display name for the workspace.
    globalSettings Map<String>
    Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
    location String
    name String
    Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
    project String
    requestId String
    A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

    Outputs

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

    CreateTime string
    The timestamp when the workspace resource was created.
    HasUncommittedChanges bool
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestCommitId string
    The latest commit ID.
    LatestCommitTime string
    The timestamp when the workspace was committed.
    UpdateTime string
    The timestamp when the workspace resource was last updated.
    CreateTime string
    The timestamp when the workspace resource was created.
    HasUncommittedChanges bool
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestCommitId string
    The latest commit ID.
    LatestCommitTime string
    The timestamp when the workspace was committed.
    UpdateTime string
    The timestamp when the workspace resource was last updated.
    createTime String
    The timestamp when the workspace resource was created.
    hasUncommittedChanges Boolean
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    id String
    The provider-assigned unique ID for this managed resource.
    latestCommitId String
    The latest commit ID.
    latestCommitTime String
    The timestamp when the workspace was committed.
    updateTime String
    The timestamp when the workspace resource was last updated.
    createTime string
    The timestamp when the workspace resource was created.
    hasUncommittedChanges boolean
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    id string
    The provider-assigned unique ID for this managed resource.
    latestCommitId string
    The latest commit ID.
    latestCommitTime string
    The timestamp when the workspace was committed.
    updateTime string
    The timestamp when the workspace resource was last updated.
    create_time str
    The timestamp when the workspace resource was created.
    has_uncommitted_changes bool
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    id str
    The provider-assigned unique ID for this managed resource.
    latest_commit_id str
    The latest commit ID.
    latest_commit_time str
    The timestamp when the workspace was committed.
    update_time str
    The timestamp when the workspace resource was last updated.
    createTime String
    The timestamp when the workspace resource was created.
    hasUncommittedChanges Boolean
    Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
    id String
    The provider-assigned unique ID for this managed resource.
    latestCommitId String
    The latest commit ID.
    latestCommitTime String
    The timestamp when the workspace was committed.
    updateTime String
    The timestamp when the workspace resource was last updated.

    Supporting Types

    DatabaseEngineInfo, DatabaseEngineInfoArgs

    Engine Pulumi.GoogleNative.Datamigration.V1.DatabaseEngineInfoEngine
    Engine type.
    Version string
    Engine version, for example "12.c.1".
    Engine DatabaseEngineInfoEngine
    Engine type.
    Version string
    Engine version, for example "12.c.1".
    engine DatabaseEngineInfoEngine
    Engine type.
    version String
    Engine version, for example "12.c.1".
    engine DatabaseEngineInfoEngine
    Engine type.
    version string
    Engine version, for example "12.c.1".
    engine DatabaseEngineInfoEngine
    Engine type.
    version str
    Engine version, for example "12.c.1".
    engine "DATABASE_ENGINE_UNSPECIFIED" | "MYSQL" | "POSTGRESQL" | "ORACLE"
    Engine type.
    version String
    Engine version, for example "12.c.1".

    DatabaseEngineInfoEngine, DatabaseEngineInfoEngineArgs

    DatabaseEngineUnspecified
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    Mysql
    MYSQLThe source engine is MySQL.
    Postgresql
    POSTGRESQLThe source engine is PostgreSQL.
    Oracle
    ORACLEThe source engine is Oracle.
    DatabaseEngineInfoEngineDatabaseEngineUnspecified
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    DatabaseEngineInfoEngineMysql
    MYSQLThe source engine is MySQL.
    DatabaseEngineInfoEnginePostgresql
    POSTGRESQLThe source engine is PostgreSQL.
    DatabaseEngineInfoEngineOracle
    ORACLEThe source engine is Oracle.
    DatabaseEngineUnspecified
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    Mysql
    MYSQLThe source engine is MySQL.
    Postgresql
    POSTGRESQLThe source engine is PostgreSQL.
    Oracle
    ORACLEThe source engine is Oracle.
    DatabaseEngineUnspecified
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    Mysql
    MYSQLThe source engine is MySQL.
    Postgresql
    POSTGRESQLThe source engine is PostgreSQL.
    Oracle
    ORACLEThe source engine is Oracle.
    DATABASE_ENGINE_UNSPECIFIED
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    MYSQL
    MYSQLThe source engine is MySQL.
    POSTGRESQL
    POSTGRESQLThe source engine is PostgreSQL.
    ORACLE
    ORACLEThe source engine is Oracle.
    "DATABASE_ENGINE_UNSPECIFIED"
    DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
    "MYSQL"
    MYSQLThe source engine is MySQL.
    "POSTGRESQL"
    POSTGRESQLThe source engine is PostgreSQL.
    "ORACLE"
    ORACLEThe source engine is Oracle.

    DatabaseEngineInfoResponse, DatabaseEngineInfoResponseArgs

    Engine string
    Engine type.
    Version string
    Engine version, for example "12.c.1".
    Engine string
    Engine type.
    Version string
    Engine version, for example "12.c.1".
    engine String
    Engine type.
    version String
    Engine version, for example "12.c.1".
    engine string
    Engine type.
    version string
    Engine version, for example "12.c.1".
    engine str
    Engine type.
    version str
    Engine version, for example "12.c.1".
    engine String
    Engine type.
    version String
    Engine version, for example "12.c.1".

    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