asRequest method
Implementation
@override
ResourceDeclareRequest asRequest() {
var resource = $p.ResourceIdentifier(
name: name,
type: $p.ResourceType.Secret,
);
return $p.ResourceDeclareRequest(id: resource, secret: $p.SecretResource());
}