v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1341173209.0 KB
projects

Creates a new mapping rule for a given conversion workspace.

post/v1/{+parent}/mappingRules

Path parameters

parentstring required

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

Query parameters

mappingRuleIdstring

Required. The ID of the rule to create.

requestIdstring

Optional. 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.

Request body

revisionCreateTimestring google-datetime

Output only. The timestamp that the revision was created.

ruleScope'DATABASE_ENTITY_TYPE_UNSPECIFIED' | 'DATABASE_ENTITY_TYPE_SCHEMA' | 'DATABASE_ENTITY_TYPE_TABLE' | 'DATABASE_ENTITY_TYPE_COLUMN' | 'DATABASE_ENTITY_TYPE_CONSTRAINT' | 'DATABASE_ENTITY_TYPE_INDEX' | 'DATABASE_ENTITY_TYPE_TRIGGER' | 'DATABASE_ENTITY_TYPE_VIEW' | 'DATABASE_ENTITY_TYPE_SEQUENCE' | 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE' | 'DATABASE_ENTITY_TYPE_FUNCTION' | 'DATABASE_ENTITY_TYPE_SYNONYM' | 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE' | 'DATABASE_ENTITY_TYPE_UDT' | 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW' | 'DATABASE_ENTITY_TYPE_DATABASE'

Required. The rule scope

state'STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED' | 'DELETED'

Optional. The mapping rule state

ruleOrderstring int64

Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.

displayNamestring

Optional. A human readable name

revisionIdstring

Output only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.

namestring

Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.

Response

Successful response