ServiceSpecResponse constructor

const ServiceSpecResponse({
  1. required Input<RevisionTemplateResponse> template,
  2. required Input<List<TrafficTargetResponse>> traffic,
})

Creates a new ServiceSpecResponse. template Holds the latest specification for the Revision to be stamped out. traffic Specifies how to distribute traffic over a collection of Knative Revisions and Configurations to the Service's main URL.

Implementation

const ServiceSpecResponse({
  required this.template,
  required this.traffic,
});