asRequest method

  1. @override
ResourceDeclareRequest asRequest()
override

Implementation

@override
ResourceDeclareRequest asRequest() {
  var resource = $p.ResourceIdentifier(
    type: $p.ResourceType.Job,
    name: name,
  );

  return $p.ResourceDeclareRequest(id: resource, job: $p.JobResource());
}