Add proto defs for Vagrantfile parser service

This commit is contained in:
sophia 2021-01-12 16:28:21 -06:00 committed by Paul Hinze
parent 9071e39782
commit eb165d43d1
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
value :PROVISIONER, 5
value :SYNCED_FOLDER, 6
end
add_message "hashicorp.vagrant.ParseVagrantfileRequest" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.ParseVagrantfileResponse" do
optional :vagrantfile, :message, 1, "hashicorp.vagrant.Vagrantfile"
end
add_message "hashicorp.vagrant.Vagrantfile" do
optional :raw, :string, 1
end
end
end
@ -30,5 +39,8 @@ module Hashicorp
GetPluginsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetPluginsResponse").msgclass
Plugin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Plugin").msgclass
Plugin::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Plugin.Type").enummodule
ParseVagrantfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ParseVagrantfileRequest").msgclass
ParseVagrantfileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ParseVagrantfileResponse").msgclass
Vagrantfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Vagrantfile").msgclass
end
end

View File

@ -18,6 +18,7 @@ module Hashicorp
# Gets available ruby plugins
rpc :GetPlugins, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::GetPluginsResponse
rpc :ParseVagrantfile, ::Hashicorp::Vagrant::ParseVagrantfileRequest, ::Hashicorp::Vagrant::ParseVagrantfileResponse
end
Stub = Service.rpc_stub_class