Resource
ModelRollout
Resource name with pattern
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelRollouts/{model_rollout}Determine the type of rollout for this ModelRollout. One of:
Date interval in UTC format over which the rollout must be deployed.
end_date cannot precede start_date. This field is immutable after creation.In case of a rollout instantly deployed, instant_rollout_date must be specified instead.Date is expressed in UTC format. This field is immutable after creation.
Indicates the date the rollout must stop expanding its release percentage.It must be within
rollout_start_date and rollout_end_date. Once set, this value can no longer be changed.The previous model rollout this model rollout transitions from.The system will automatically set this field to the ModelRollout with the most recent rollout_start_time. Not set if rollout_start_time == rollout_end_time.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelRollouts/{model_rollout}The ModelRelease this model rollout refers to.Both the ModelRelease and the ModelRollout need to be parented by the same ModelSuite. This field is immutable after creation.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelReleases/{model_release}When the ModelRollout was created
When the ModelRollout was last updated
Methods
CreateModelRollout
Creates a newModelRollout. rollout_start_time must be sufficiently in the future to allow for EDPs to sync with the Kingdom.
Resource name of the parent ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The ModelRollout to create. The
name field will be ignored, and the system will assign an ID.Required fields:model_release: Reference to a ModelRelease- One of
gradual_rollout_periodorinstant_rollout_date
ModelRollout resource.
Example Request
ListModelRollouts
ListsModelRollout resources for a given ModelLine. Returns a sorted list by rollout_start_time ASC.
Resource name of the parent ModelLine.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}The wildcard ID (-) may be used in place of the ModelLine ID to list across every ModelLine in the ancestor ModelSuite.Structured filter criteria. Each field represents a term in a conjunction.
Only ModelRollouts having
rollout_deploy_period overlapping rollout_period_overlapping are returned.Set of ModelRelease resource names which ModelRollout.model_release must be in.These must belong to the same ModelSuite as specified in parent. Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelReleases/{model_release}The maximum number of ModelRollouts to return. The service may return fewer than this value.
- If unspecified, at most 50 ModelRollouts will be returned
- Maximum value is 1000; values above 1000 will be coerced to 1000
A page token received from a previous
ListModelRollouts call. Provide this to retrieve the subsequent page.When paginating, all other parameters must match the call that provided the page token.List of ModelRollout resources
A token that can be sent as
page_token to retrieve the next page. If omitted, there are no subsequent pages.ScheduleModelRolloutFreeze
Sets therollout_freeze_date of a ModelRollout. Any attempt to schedule the rollout_freeze_date for an instant rollout will result in an exception.
Resource name of the ModelRollout.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelRollouts/{model_rollout}The rollout_freeze_date value to be set.This must be sufficiently in the future to allow for EDPs to sync with the Kingdom.
ModelRollout resource.
Example Request
DeleteModelRollout
Deletes aModelRollout. Results in FAILED_PRECONDITION if the request is received after ModelRollout.rollout_period.start_time.
The name of the ModelRollout to delete.Format:
modelProviders/{model_provider}/modelSuites/{model_suite}/modelLines/{model_line}/modelRollouts/{model_rollout}