* $datamigrationService = new Google\Service\DatabaseMigrationService(...); * $mappingRules = $datamigrationService->projects_locations_conversionWorkspaces_mappingRules; * */ class ProjectsLocationsConversionWorkspacesMappingRules extends \Google\Service\Resource { /** * Imports the mapping rules for a given conversion workspace. Supports various * formats of external rules files. (mappingRules.import) * * @param 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}. * @param ImportMappingRulesRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function import($parent, ImportMappingRulesRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('import', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsConversionWorkspacesMappingRules::class, 'Google_Service_DatabaseMigrationService_Resource_ProjectsLocationsConversionWorkspacesMappingRules');