class ProjectsLocationsConversionWorkspacesMappingRules extends Resource (View source)

The "mappingRules" collection of methods.

Typical usage is:

 $datamigrationService = new Google\Service\DatabaseMigrationService(...);
 $mappingRules = $datamigrationService->projects_locations_conversionWorkspaces_mappingRules;

Methods

create(string $parent, MappingRule $postBody, array $optParams = [])

Creates a new mapping rule for a given conversion workspace.

delete(string $name, array $optParams = [])

Deletes a single mapping rule. (mappingRules.delete)

get(string $name, array $optParams = [])

Gets the details of a mapping rule. (mappingRules.get)

import(string $parent, ImportMappingRulesRequest $postBody, array $optParams = [])

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files. (mappingRules.import)

listProjectsLocationsConversionWorkspacesMappingRules(string $parent, array $optParams = [])

Lists the mapping rules for a specific conversion workspace.

Details

MappingRule create(string $parent, MappingRule $postBody, array $optParams = [])

Creates a new mapping rule for a given conversion workspace.

(mappingRules.create)

Parameters

string $parent

Required. The parent which owns this collection of mapping rules.

MappingRule $postBody
array $optParams

Optional parameters.

Return Value

MappingRule

Exceptions

Exception

DatamigrationEmpty delete(string $name, array $optParams = [])

Deletes a single mapping rule. (mappingRules.delete)

Parameters

string $name

Required. Name of the mapping rule resource to delete.

array $optParams

Optional parameters.

Return Value

DatamigrationEmpty

Exceptions

Exception

MappingRule get(string $name, array $optParams = [])

Gets the details of a mapping rule. (mappingRules.get)

Parameters

string $name

Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8

array $optParams

Optional parameters.

Return Value

MappingRule

Exceptions

Exception

Operation import(string $parent, ImportMappingRulesRequest $postBody, array $optParams = [])

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files. (mappingRules.import)

Parameters

string $parent

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/c onversionWorkspaces/{conversion_workspace}.

ImportMappingRulesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListMappingRulesResponse listProjectsLocationsConversionWorkspacesMappingRules(string $parent, array $optParams = [])

Lists the mapping rules for a specific conversion workspace.

(mappingRules.listProjectsLocationsConversionWorkspacesMappingRules)

Parameters

string $parent

Required. Name of the conversion workspace resource whose mapping rules are listed in the form of: projects/{project}/locations/{ location}/conversionWorkspaces/{conversion_workspace}.

array $optParams

Optional parameters.

Return Value

ListMappingRulesResponse

Exceptions

Exception