Class UndeployModelRequest (1.48.0)

UndeployModelRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for EndpointService.UndeployModel.

Attributes

NameDescription
endpoint str
Required. The name of the Endpoint resource from which to undeploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}
deployed_model_id str
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
traffic_split MutableMapping[str, int]
If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

Classes

TrafficSplitEntry

TrafficSplitEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Methods

UndeployModelRequest

UndeployModelRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for EndpointService.UndeployModel.