TrafficTargetResponse constructor

const TrafficTargetResponse({
  1. required Input<String> configurationName,
  2. required Input<bool> latestRevision,
  3. required Input<int> percent,
  4. required Input<String> revisionName,
  5. required Input<String> tag,
  6. required Input<String> url,
})

Creates a new TrafficTargetResponse. configurationName Deprecated Not supported in Cloud Run. It must be empty. latestRevision Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision. percent Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified. revisionName Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision. tag Tag is used to expose a dedicated url for referencing this target exclusively. url URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)

Implementation

const TrafficTargetResponse({
  required this.configurationName,
  required this.latestRevision,
  required this.percent,
  required this.revisionName,
  required this.tag,
  required this.url,
});