v1

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

Creates an auto labeling rule.

post/v1/{+parent}/autoLabelingRules

Path parameters

parentstring required

Required. The project and location to create the auto labeling rule in. Format: projects/{project}/locations/{location}

Query parameters

autoLabelingRuleIdstring

Required. The ID to use for the auto labeling rule, which will become the final component of the auto labeling rule's resource name.

Request body

labelKeyType'LABEL_KEY_TYPE_UNSPECIFIED' | 'LABEL_KEY_TYPE_CUSTOM'

The type of the label key.

updateTimestring google-datetime

Output only. The most recent time at which the rule was updated.

createTimestring google-datetime

Output only. The time at which this rule was created.

activeboolean

Whether the rule is active.

descriptionstring

The description of the rule.

labelKeystring

The label key. This is also the {auto_labeling_rule} in the resource name. Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.

namestring

Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}

displayNamestring

The user-provided display name of the rule.

Response

Successful response