Update generated proto files

This commit is contained in:
Chris Roberts 2021-05-25 15:24:26 -07:00 committed by Paul Hinze
parent af409b3f4d
commit 37d42bc8ef
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
10 changed files with 2718 additions and 2672 deletions

View File

@ -1,17 +1,17 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// protoc-gen-go v1.25.0
// protoc v3.15.6
// source: proto/ruby_vagrant/ruby-server.proto
package ruby_vagrant
import (
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
empty "github.com/golang/protobuf/ptypes/empty"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
@ -297,8 +297,8 @@ type Provisioner struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Config *any.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Config *anypb.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
}
func (x *Provisioner) Reset() {
@ -340,7 +340,7 @@ func (x *Provisioner) GetName() string {
return ""
}
func (x *Provisioner) GetConfig() *any.Any {
func (x *Provisioner) GetConfig() *anypb.Any {
if x != nil {
return x.Config
}
@ -421,7 +421,7 @@ type Communicator struct {
// This is the config that belongs to the communicator.
// Should be a message type from the core plugin or defined
// by a plugin author
Config *any.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
Config *anypb.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
}
func (x *Communicator) Reset() {
@ -463,7 +463,7 @@ func (x *Communicator) GetName() string {
return ""
}
func (x *Communicator) GetConfig() *any.Any {
func (x *Communicator) GetConfig() *anypb.Any {
if x != nil {
return x.Config
}
@ -662,8 +662,8 @@ var file_proto_ruby_vagrant_ruby_server_proto_goTypes = []interface{}{
(*MachineConfig)(nil), // 6: hashicorp.vagrant.MachineConfig
(*Communicator)(nil), // 7: hashicorp.vagrant.Communicator
(*Vagrantfile)(nil), // 8: hashicorp.vagrant.Vagrantfile
(*any.Any)(nil), // 9: google.protobuf.Any
(*empty.Empty)(nil), // 10: google.protobuf.Empty
(*anypb.Any)(nil), // 9: google.protobuf.Any
(*emptypb.Empty)(nil), // 10: google.protobuf.Empty
}
var file_proto_ruby_vagrant_ruby_server_proto_depIdxs = []int32{
2, // 0: hashicorp.vagrant.GetPluginsResponse.plugins:type_name -> hashicorp.vagrant.Plugin

View File

@ -4,14 +4,15 @@ package ruby_vagrant
import (
context "context"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// RubyVagrantClient is the client API for RubyVagrant service.
@ -19,7 +20,7 @@ const _ = grpc.SupportPackageIsVersion7
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RubyVagrantClient interface {
// Gets available ruby plugins
GetPlugins(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetPluginsResponse, error)
GetPlugins(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetPluginsResponse, error)
ParseVagrantfile(ctx context.Context, in *ParseVagrantfileRequest, opts ...grpc.CallOption) (*ParseVagrantfileResponse, error)
}
@ -31,7 +32,7 @@ func NewRubyVagrantClient(cc grpc.ClientConnInterface) RubyVagrantClient {
return &rubyVagrantClient{cc}
}
func (c *rubyVagrantClient) GetPlugins(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetPluginsResponse, error) {
func (c *rubyVagrantClient) GetPlugins(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetPluginsResponse, error) {
out := new(GetPluginsResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.RubyVagrant/GetPlugins", in, out, opts...)
if err != nil {
@ -54,7 +55,7 @@ func (c *rubyVagrantClient) ParseVagrantfile(ctx context.Context, in *ParseVagra
// for forward compatibility
type RubyVagrantServer interface {
// Gets available ruby plugins
GetPlugins(context.Context, *empty.Empty) (*GetPluginsResponse, error)
GetPlugins(context.Context, *emptypb.Empty) (*GetPluginsResponse, error)
ParseVagrantfile(context.Context, *ParseVagrantfileRequest) (*ParseVagrantfileResponse, error)
mustEmbedUnimplementedRubyVagrantServer()
}
@ -63,7 +64,7 @@ type RubyVagrantServer interface {
type UnimplementedRubyVagrantServer struct {
}
func (UnimplementedRubyVagrantServer) GetPlugins(context.Context, *empty.Empty) (*GetPluginsResponse, error) {
func (UnimplementedRubyVagrantServer) GetPlugins(context.Context, *emptypb.Empty) (*GetPluginsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPlugins not implemented")
}
func (UnimplementedRubyVagrantServer) ParseVagrantfile(context.Context, *ParseVagrantfileRequest) (*ParseVagrantfileResponse, error) {
@ -79,11 +80,11 @@ type UnsafeRubyVagrantServer interface {
}
func RegisterRubyVagrantServer(s grpc.ServiceRegistrar, srv RubyVagrantServer) {
s.RegisterService(&_RubyVagrant_serviceDesc, srv)
s.RegisterService(&RubyVagrant_ServiceDesc, srv)
}
func _RubyVagrant_GetPlugins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -95,7 +96,7 @@ func _RubyVagrant_GetPlugins_Handler(srv interface{}, ctx context.Context, dec f
FullMethod: "/hashicorp.vagrant.RubyVagrant/GetPlugins",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RubyVagrantServer).GetPlugins(ctx, req.(*empty.Empty))
return srv.(RubyVagrantServer).GetPlugins(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -118,7 +119,10 @@ func _RubyVagrant_ParseVagrantfile_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
var _RubyVagrant_serviceDesc = grpc.ServiceDesc{
// RubyVagrant_ServiceDesc is the grpc.ServiceDesc for RubyVagrant service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RubyVagrant_ServiceDesc = grpc.ServiceDesc{
ServiceName: "hashicorp.vagrant.RubyVagrant",
HandlerType: (*RubyVagrantServer)(nil),
Methods: []grpc.MethodDesc{

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,15 @@ package vagrant_server
import (
context "context"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// VagrantClient is the client API for Vagrant service.
@ -21,11 +22,11 @@ type VagrantClient interface {
// GetVersionInfo returns information about the server. This RPC call does
// NOT require authentication. It can be used by clients to determine if they
// are capable of talking to this server.
GetVersionInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetVersionInfoResponse, error)
GetVersionInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionInfoResponse, error)
UpsertBasis(ctx context.Context, in *UpsertBasisRequest, opts ...grpc.CallOption) (*UpsertBasisResponse, error)
GetBasis(ctx context.Context, in *GetBasisRequest, opts ...grpc.CallOption) (*GetBasisResponse, error)
FindBasis(ctx context.Context, in *FindBasisRequest, opts ...grpc.CallOption) (*FindBasisResponse, error)
ListBasis(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListBasisResponse, error)
ListBasis(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListBasisResponse, error)
// ListTasks returns the tasks.
ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error)
// GetTask returns a task
@ -43,13 +44,13 @@ type VagrantClient interface {
// ListProjects returns a list of all the projects. There is no equivalent
// ListApplications because applications are a part of projects and you
// can use GetProject to get more information about the project.
ListProjects(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListProjectsResponse, error)
// UpsertMachine upserts a machine with a project. If the machine
ListProjects(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListProjectsResponse, error)
// UpsertTarget upserts a target with a project. If the target
// is already registered this does nothing.
UpsertMachine(ctx context.Context, in *UpsertMachineRequest, opts ...grpc.CallOption) (*UpsertMachineResponse, error)
GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*GetMachineResponse, error)
FindMachine(ctx context.Context, in *FindMachineRequest, opts ...grpc.CallOption) (*FindMachineResponse, error)
ListMachines(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListMachinesResponse, error)
UpsertTarget(ctx context.Context, in *UpsertTargetRequest, opts ...grpc.CallOption) (*UpsertTargetResponse, error)
GetTarget(ctx context.Context, in *GetTargetRequest, opts ...grpc.CallOption) (*GetTargetResponse, error)
FindTarget(ctx context.Context, in *FindTargetRequest, opts ...grpc.CallOption) (*FindTargetResponse, error)
ListTargets(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListTargetsResponse, error)
// GetLogStream reads the log stream for a deployment. This will immediately
// send a single LogEntry with the lines we have so far. If there are no
// available lines this will NOT block and instead will return an error.
@ -71,7 +72,7 @@ type VagrantClient interface {
//
// This RPC always returns immediately. You must use GetJob or GetJobStream
// to wait on the status of the cancellation.
CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*empty.Empty, error)
CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// GetJob queries a job by ID.
GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error)
// INTERNAL: ListJobs lists all the jobs the server has processed. This
@ -88,11 +89,11 @@ type VagrantClient interface {
// GetRunner gets information about a single runner.
GetRunner(ctx context.Context, in *GetRunnerRequest, opts ...grpc.CallOption) (*Runner, error)
// GetServerConfig sets configuration for the Vagrant server.
GetServerConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetServerConfigResponse, error)
GetServerConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetServerConfigResponse, error)
// SetServerConfig sets configuration for the Vagrant server.
SetServerConfig(ctx context.Context, in *SetServerConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)
SetServerConfig(ctx context.Context, in *SetServerConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateSnapshot creates a new database snapshot.
CreateSnapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Vagrant_CreateSnapshotClient, error)
CreateSnapshot(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Vagrant_CreateSnapshotClient, error)
// RestoreSnapshot performs a database restore with the given snapshot.
// This API doesn't do a full online restore, it only stages the restore
// for the next server start to finalize the restore. See the arguments for
@ -101,11 +102,11 @@ type VagrantClient interface {
// BootstrapToken returns the initial token for the server. This can only
// be requested once on first startup. After initial request this will
// always return a PermissionDenied error.
BootstrapToken(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error)
BootstrapToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error)
// Generate a new invite token that users can exchange for a login token.
GenerateInviteToken(ctx context.Context, in *InviteTokenRequest, opts ...grpc.CallOption) (*NewTokenResponse, error)
// Generate a new login token that users can use to login directly.
GenerateLoginToken(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error)
GenerateLoginToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error)
// Exchange a invite token for a login token.
ConvertInviteToken(ctx context.Context, in *ConvertInviteTokenRequest, opts ...grpc.CallOption) (*NewTokenResponse, error)
// RunnerConfig is called to register a runner and receive the configuration
@ -125,7 +126,7 @@ func NewVagrantClient(cc grpc.ClientConnInterface) VagrantClient {
return &vagrantClient{cc}
}
func (c *vagrantClient) GetVersionInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetVersionInfoResponse, error) {
func (c *vagrantClient) GetVersionInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetVersionInfoResponse, error) {
out := new(GetVersionInfoResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/GetVersionInfo", in, out, opts...)
if err != nil {
@ -161,7 +162,7 @@ func (c *vagrantClient) FindBasis(ctx context.Context, in *FindBasisRequest, opt
return out, nil
}
func (c *vagrantClient) ListBasis(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListBasisResponse, error) {
func (c *vagrantClient) ListBasis(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListBasisResponse, error) {
out := new(ListBasisResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/ListBasis", in, out, opts...)
if err != nil {
@ -233,7 +234,7 @@ func (c *vagrantClient) FindProject(ctx context.Context, in *FindProjectRequest,
return out, nil
}
func (c *vagrantClient) ListProjects(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListProjectsResponse, error) {
func (c *vagrantClient) ListProjects(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListProjectsResponse, error) {
out := new(ListProjectsResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/ListProjects", in, out, opts...)
if err != nil {
@ -242,36 +243,36 @@ func (c *vagrantClient) ListProjects(ctx context.Context, in *empty.Empty, opts
return out, nil
}
func (c *vagrantClient) UpsertMachine(ctx context.Context, in *UpsertMachineRequest, opts ...grpc.CallOption) (*UpsertMachineResponse, error) {
out := new(UpsertMachineResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/UpsertMachine", in, out, opts...)
func (c *vagrantClient) UpsertTarget(ctx context.Context, in *UpsertTargetRequest, opts ...grpc.CallOption) (*UpsertTargetResponse, error) {
out := new(UpsertTargetResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/UpsertTarget", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vagrantClient) GetMachine(ctx context.Context, in *GetMachineRequest, opts ...grpc.CallOption) (*GetMachineResponse, error) {
out := new(GetMachineResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/GetMachine", in, out, opts...)
func (c *vagrantClient) GetTarget(ctx context.Context, in *GetTargetRequest, opts ...grpc.CallOption) (*GetTargetResponse, error) {
out := new(GetTargetResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/GetTarget", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vagrantClient) FindMachine(ctx context.Context, in *FindMachineRequest, opts ...grpc.CallOption) (*FindMachineResponse, error) {
out := new(FindMachineResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/FindMachine", in, out, opts...)
func (c *vagrantClient) FindTarget(ctx context.Context, in *FindTargetRequest, opts ...grpc.CallOption) (*FindTargetResponse, error) {
out := new(FindTargetResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/FindTarget", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vagrantClient) ListMachines(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListMachinesResponse, error) {
out := new(ListMachinesResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/ListMachines", in, out, opts...)
func (c *vagrantClient) ListTargets(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListTargetsResponse, error) {
out := new(ListTargetsResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/ListTargets", in, out, opts...)
if err != nil {
return nil, err
}
@ -279,7 +280,7 @@ func (c *vagrantClient) ListMachines(ctx context.Context, in *empty.Empty, opts
}
func (c *vagrantClient) GetLogStream(ctx context.Context, in *GetLogStreamRequest, opts ...grpc.CallOption) (Vagrant_GetLogStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[0], "/hashicorp.vagrant.Vagrant/GetLogStream", opts...)
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[0], "/hashicorp.vagrant.Vagrant/GetLogStream", opts...)
if err != nil {
return nil, err
}
@ -337,8 +338,8 @@ func (c *vagrantClient) QueueJob(ctx context.Context, in *QueueJobRequest, opts
return out, nil
}
func (c *vagrantClient) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
func (c *vagrantClient) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/CancelJob", in, out, opts...)
if err != nil {
return nil, err
@ -374,7 +375,7 @@ func (c *vagrantClient) ValidateJob(ctx context.Context, in *ValidateJobRequest,
}
func (c *vagrantClient) GetJobStream(ctx context.Context, in *GetJobStreamRequest, opts ...grpc.CallOption) (Vagrant_GetJobStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[1], "/hashicorp.vagrant.Vagrant/GetJobStream", opts...)
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[1], "/hashicorp.vagrant.Vagrant/GetJobStream", opts...)
if err != nil {
return nil, err
}
@ -414,7 +415,7 @@ func (c *vagrantClient) GetRunner(ctx context.Context, in *GetRunnerRequest, opt
return out, nil
}
func (c *vagrantClient) GetServerConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetServerConfigResponse, error) {
func (c *vagrantClient) GetServerConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetServerConfigResponse, error) {
out := new(GetServerConfigResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/GetServerConfig", in, out, opts...)
if err != nil {
@ -423,8 +424,8 @@ func (c *vagrantClient) GetServerConfig(ctx context.Context, in *empty.Empty, op
return out, nil
}
func (c *vagrantClient) SetServerConfig(ctx context.Context, in *SetServerConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
func (c *vagrantClient) SetServerConfig(ctx context.Context, in *SetServerConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/SetServerConfig", in, out, opts...)
if err != nil {
return nil, err
@ -432,8 +433,8 @@ func (c *vagrantClient) SetServerConfig(ctx context.Context, in *SetServerConfig
return out, nil
}
func (c *vagrantClient) CreateSnapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Vagrant_CreateSnapshotClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[2], "/hashicorp.vagrant.Vagrant/CreateSnapshot", opts...)
func (c *vagrantClient) CreateSnapshot(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Vagrant_CreateSnapshotClient, error) {
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[2], "/hashicorp.vagrant.Vagrant/CreateSnapshot", opts...)
if err != nil {
return nil, err
}
@ -465,7 +466,7 @@ func (x *vagrantCreateSnapshotClient) Recv() (*CreateSnapshotResponse, error) {
}
func (c *vagrantClient) RestoreSnapshot(ctx context.Context, opts ...grpc.CallOption) (Vagrant_RestoreSnapshotClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[3], "/hashicorp.vagrant.Vagrant/RestoreSnapshot", opts...)
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[3], "/hashicorp.vagrant.Vagrant/RestoreSnapshot", opts...)
if err != nil {
return nil, err
}
@ -475,7 +476,7 @@ func (c *vagrantClient) RestoreSnapshot(ctx context.Context, opts ...grpc.CallOp
type Vagrant_RestoreSnapshotClient interface {
Send(*RestoreSnapshotRequest) error
CloseAndRecv() (*empty.Empty, error)
CloseAndRecv() (*emptypb.Empty, error)
grpc.ClientStream
}
@ -487,18 +488,18 @@ func (x *vagrantRestoreSnapshotClient) Send(m *RestoreSnapshotRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *vagrantRestoreSnapshotClient) CloseAndRecv() (*empty.Empty, error) {
func (x *vagrantRestoreSnapshotClient) CloseAndRecv() (*emptypb.Empty, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(empty.Empty)
m := new(emptypb.Empty)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *vagrantClient) BootstrapToken(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error) {
func (c *vagrantClient) BootstrapToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error) {
out := new(NewTokenResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/BootstrapToken", in, out, opts...)
if err != nil {
@ -516,7 +517,7 @@ func (c *vagrantClient) GenerateInviteToken(ctx context.Context, in *InviteToken
return out, nil
}
func (c *vagrantClient) GenerateLoginToken(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error) {
func (c *vagrantClient) GenerateLoginToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewTokenResponse, error) {
out := new(NewTokenResponse)
err := c.cc.Invoke(ctx, "/hashicorp.vagrant.Vagrant/GenerateLoginToken", in, out, opts...)
if err != nil {
@ -535,7 +536,7 @@ func (c *vagrantClient) ConvertInviteToken(ctx context.Context, in *ConvertInvit
}
func (c *vagrantClient) RunnerConfig(ctx context.Context, opts ...grpc.CallOption) (Vagrant_RunnerConfigClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[4], "/hashicorp.vagrant.Vagrant/RunnerConfig", opts...)
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[4], "/hashicorp.vagrant.Vagrant/RunnerConfig", opts...)
if err != nil {
return nil, err
}
@ -566,7 +567,7 @@ func (x *vagrantRunnerConfigClient) Recv() (*RunnerConfigResponse, error) {
}
func (c *vagrantClient) RunnerJobStream(ctx context.Context, opts ...grpc.CallOption) (Vagrant_RunnerJobStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_Vagrant_serviceDesc.Streams[5], "/hashicorp.vagrant.Vagrant/RunnerJobStream", opts...)
stream, err := c.cc.NewStream(ctx, &Vagrant_ServiceDesc.Streams[5], "/hashicorp.vagrant.Vagrant/RunnerJobStream", opts...)
if err != nil {
return nil, err
}
@ -597,17 +598,17 @@ func (x *vagrantRunnerJobStreamClient) Recv() (*RunnerJobStreamResponse, error)
}
// VagrantServer is the server API for Vagrant service.
// All implementations must embed UnimplementedVagrantServer
// All implementations should embed UnimplementedVagrantServer
// for forward compatibility
type VagrantServer interface {
// GetVersionInfo returns information about the server. This RPC call does
// NOT require authentication. It can be used by clients to determine if they
// are capable of talking to this server.
GetVersionInfo(context.Context, *empty.Empty) (*GetVersionInfoResponse, error)
GetVersionInfo(context.Context, *emptypb.Empty) (*GetVersionInfoResponse, error)
UpsertBasis(context.Context, *UpsertBasisRequest) (*UpsertBasisResponse, error)
GetBasis(context.Context, *GetBasisRequest) (*GetBasisResponse, error)
FindBasis(context.Context, *FindBasisRequest) (*FindBasisResponse, error)
ListBasis(context.Context, *empty.Empty) (*ListBasisResponse, error)
ListBasis(context.Context, *emptypb.Empty) (*ListBasisResponse, error)
// ListTasks returns the tasks.
ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
// GetTask returns a task
@ -625,13 +626,13 @@ type VagrantServer interface {
// ListProjects returns a list of all the projects. There is no equivalent
// ListApplications because applications are a part of projects and you
// can use GetProject to get more information about the project.
ListProjects(context.Context, *empty.Empty) (*ListProjectsResponse, error)
// UpsertMachine upserts a machine with a project. If the machine
ListProjects(context.Context, *emptypb.Empty) (*ListProjectsResponse, error)
// UpsertTarget upserts a target with a project. If the target
// is already registered this does nothing.
UpsertMachine(context.Context, *UpsertMachineRequest) (*UpsertMachineResponse, error)
GetMachine(context.Context, *GetMachineRequest) (*GetMachineResponse, error)
FindMachine(context.Context, *FindMachineRequest) (*FindMachineResponse, error)
ListMachines(context.Context, *empty.Empty) (*ListMachinesResponse, error)
UpsertTarget(context.Context, *UpsertTargetRequest) (*UpsertTargetResponse, error)
GetTarget(context.Context, *GetTargetRequest) (*GetTargetResponse, error)
FindTarget(context.Context, *FindTargetRequest) (*FindTargetResponse, error)
ListTargets(context.Context, *emptypb.Empty) (*ListTargetsResponse, error)
// GetLogStream reads the log stream for a deployment. This will immediately
// send a single LogEntry with the lines we have so far. If there are no
// available lines this will NOT block and instead will return an error.
@ -653,7 +654,7 @@ type VagrantServer interface {
//
// This RPC always returns immediately. You must use GetJob or GetJobStream
// to wait on the status of the cancellation.
CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error)
CancelJob(context.Context, *CancelJobRequest) (*emptypb.Empty, error)
// GetJob queries a job by ID.
GetJob(context.Context, *GetJobRequest) (*Job, error)
// INTERNAL: ListJobs lists all the jobs the server has processed. This
@ -670,11 +671,11 @@ type VagrantServer interface {
// GetRunner gets information about a single runner.
GetRunner(context.Context, *GetRunnerRequest) (*Runner, error)
// GetServerConfig sets configuration for the Vagrant server.
GetServerConfig(context.Context, *empty.Empty) (*GetServerConfigResponse, error)
GetServerConfig(context.Context, *emptypb.Empty) (*GetServerConfigResponse, error)
// SetServerConfig sets configuration for the Vagrant server.
SetServerConfig(context.Context, *SetServerConfigRequest) (*empty.Empty, error)
SetServerConfig(context.Context, *SetServerConfigRequest) (*emptypb.Empty, error)
// CreateSnapshot creates a new database snapshot.
CreateSnapshot(*empty.Empty, Vagrant_CreateSnapshotServer) error
CreateSnapshot(*emptypb.Empty, Vagrant_CreateSnapshotServer) error
// RestoreSnapshot performs a database restore with the given snapshot.
// This API doesn't do a full online restore, it only stages the restore
// for the next server start to finalize the restore. See the arguments for
@ -683,11 +684,11 @@ type VagrantServer interface {
// BootstrapToken returns the initial token for the server. This can only
// be requested once on first startup. After initial request this will
// always return a PermissionDenied error.
BootstrapToken(context.Context, *empty.Empty) (*NewTokenResponse, error)
BootstrapToken(context.Context, *emptypb.Empty) (*NewTokenResponse, error)
// Generate a new invite token that users can exchange for a login token.
GenerateInviteToken(context.Context, *InviteTokenRequest) (*NewTokenResponse, error)
// Generate a new login token that users can use to login directly.
GenerateLoginToken(context.Context, *empty.Empty) (*NewTokenResponse, error)
GenerateLoginToken(context.Context, *emptypb.Empty) (*NewTokenResponse, error)
// Exchange a invite token for a login token.
ConvertInviteToken(context.Context, *ConvertInviteTokenRequest) (*NewTokenResponse, error)
// RunnerConfig is called to register a runner and receive the configuration
@ -697,14 +698,13 @@ type VagrantServer interface {
// RunnerJobStream is called by a runner to request a single job for
// execution and update the status of that job.
RunnerJobStream(Vagrant_RunnerJobStreamServer) error
mustEmbedUnimplementedVagrantServer()
}
// UnimplementedVagrantServer must be embedded to have forward compatible implementations.
// UnimplementedVagrantServer should be embedded to have forward compatible implementations.
type UnimplementedVagrantServer struct {
}
func (UnimplementedVagrantServer) GetVersionInfo(context.Context, *empty.Empty) (*GetVersionInfoResponse, error) {
func (UnimplementedVagrantServer) GetVersionInfo(context.Context, *emptypb.Empty) (*GetVersionInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetVersionInfo not implemented")
}
func (UnimplementedVagrantServer) UpsertBasis(context.Context, *UpsertBasisRequest) (*UpsertBasisResponse, error) {
@ -716,7 +716,7 @@ func (UnimplementedVagrantServer) GetBasis(context.Context, *GetBasisRequest) (*
func (UnimplementedVagrantServer) FindBasis(context.Context, *FindBasisRequest) (*FindBasisResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindBasis not implemented")
}
func (UnimplementedVagrantServer) ListBasis(context.Context, *empty.Empty) (*ListBasisResponse, error) {
func (UnimplementedVagrantServer) ListBasis(context.Context, *emptypb.Empty) (*ListBasisResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListBasis not implemented")
}
func (UnimplementedVagrantServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error) {
@ -740,20 +740,20 @@ func (UnimplementedVagrantServer) GetProject(context.Context, *GetProjectRequest
func (UnimplementedVagrantServer) FindProject(context.Context, *FindProjectRequest) (*FindProjectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindProject not implemented")
}
func (UnimplementedVagrantServer) ListProjects(context.Context, *empty.Empty) (*ListProjectsResponse, error) {
func (UnimplementedVagrantServer) ListProjects(context.Context, *emptypb.Empty) (*ListProjectsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented")
}
func (UnimplementedVagrantServer) UpsertMachine(context.Context, *UpsertMachineRequest) (*UpsertMachineResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpsertMachine not implemented")
func (UnimplementedVagrantServer) UpsertTarget(context.Context, *UpsertTargetRequest) (*UpsertTargetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpsertTarget not implemented")
}
func (UnimplementedVagrantServer) GetMachine(context.Context, *GetMachineRequest) (*GetMachineResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMachine not implemented")
func (UnimplementedVagrantServer) GetTarget(context.Context, *GetTargetRequest) (*GetTargetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTarget not implemented")
}
func (UnimplementedVagrantServer) FindMachine(context.Context, *FindMachineRequest) (*FindMachineResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindMachine not implemented")
func (UnimplementedVagrantServer) FindTarget(context.Context, *FindTargetRequest) (*FindTargetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindTarget not implemented")
}
func (UnimplementedVagrantServer) ListMachines(context.Context, *empty.Empty) (*ListMachinesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListMachines not implemented")
func (UnimplementedVagrantServer) ListTargets(context.Context, *emptypb.Empty) (*ListTargetsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTargets not implemented")
}
func (UnimplementedVagrantServer) GetLogStream(*GetLogStreamRequest, Vagrant_GetLogStreamServer) error {
return status.Errorf(codes.Unimplemented, "method GetLogStream not implemented")
@ -767,7 +767,7 @@ func (UnimplementedVagrantServer) GetConfig(context.Context, *ConfigGetRequest)
func (UnimplementedVagrantServer) QueueJob(context.Context, *QueueJobRequest) (*QueueJobResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueueJob not implemented")
}
func (UnimplementedVagrantServer) CancelJob(context.Context, *CancelJobRequest) (*empty.Empty, error) {
func (UnimplementedVagrantServer) CancelJob(context.Context, *CancelJobRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelJob not implemented")
}
func (UnimplementedVagrantServer) GetJob(context.Context, *GetJobRequest) (*Job, error) {
@ -785,25 +785,25 @@ func (UnimplementedVagrantServer) GetJobStream(*GetJobStreamRequest, Vagrant_Get
func (UnimplementedVagrantServer) GetRunner(context.Context, *GetRunnerRequest) (*Runner, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRunner not implemented")
}
func (UnimplementedVagrantServer) GetServerConfig(context.Context, *empty.Empty) (*GetServerConfigResponse, error) {
func (UnimplementedVagrantServer) GetServerConfig(context.Context, *emptypb.Empty) (*GetServerConfigResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetServerConfig not implemented")
}
func (UnimplementedVagrantServer) SetServerConfig(context.Context, *SetServerConfigRequest) (*empty.Empty, error) {
func (UnimplementedVagrantServer) SetServerConfig(context.Context, *SetServerConfigRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetServerConfig not implemented")
}
func (UnimplementedVagrantServer) CreateSnapshot(*empty.Empty, Vagrant_CreateSnapshotServer) error {
func (UnimplementedVagrantServer) CreateSnapshot(*emptypb.Empty, Vagrant_CreateSnapshotServer) error {
return status.Errorf(codes.Unimplemented, "method CreateSnapshot not implemented")
}
func (UnimplementedVagrantServer) RestoreSnapshot(Vagrant_RestoreSnapshotServer) error {
return status.Errorf(codes.Unimplemented, "method RestoreSnapshot not implemented")
}
func (UnimplementedVagrantServer) BootstrapToken(context.Context, *empty.Empty) (*NewTokenResponse, error) {
func (UnimplementedVagrantServer) BootstrapToken(context.Context, *emptypb.Empty) (*NewTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BootstrapToken not implemented")
}
func (UnimplementedVagrantServer) GenerateInviteToken(context.Context, *InviteTokenRequest) (*NewTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented")
}
func (UnimplementedVagrantServer) GenerateLoginToken(context.Context, *empty.Empty) (*NewTokenResponse, error) {
func (UnimplementedVagrantServer) GenerateLoginToken(context.Context, *emptypb.Empty) (*NewTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GenerateLoginToken not implemented")
}
func (UnimplementedVagrantServer) ConvertInviteToken(context.Context, *ConvertInviteTokenRequest) (*NewTokenResponse, error) {
@ -815,7 +815,6 @@ func (UnimplementedVagrantServer) RunnerConfig(Vagrant_RunnerConfigServer) error
func (UnimplementedVagrantServer) RunnerJobStream(Vagrant_RunnerJobStreamServer) error {
return status.Errorf(codes.Unimplemented, "method RunnerJobStream not implemented")
}
func (UnimplementedVagrantServer) mustEmbedUnimplementedVagrantServer() {}
// UnsafeVagrantServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VagrantServer will
@ -825,11 +824,11 @@ type UnsafeVagrantServer interface {
}
func RegisterVagrantServer(s grpc.ServiceRegistrar, srv VagrantServer) {
s.RegisterService(&_Vagrant_serviceDesc, srv)
s.RegisterService(&Vagrant_ServiceDesc, srv)
}
func _Vagrant_GetVersionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -841,7 +840,7 @@ func _Vagrant_GetVersionInfo_Handler(srv interface{}, ctx context.Context, dec f
FullMethod: "/hashicorp.vagrant.Vagrant/GetVersionInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).GetVersionInfo(ctx, req.(*empty.Empty))
return srv.(VagrantServer).GetVersionInfo(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -901,7 +900,7 @@ func _Vagrant_FindBasis_Handler(srv interface{}, ctx context.Context, dec func(i
}
func _Vagrant_ListBasis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -913,7 +912,7 @@ func _Vagrant_ListBasis_Handler(srv interface{}, ctx context.Context, dec func(i
FullMethod: "/hashicorp.vagrant.Vagrant/ListBasis",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).ListBasis(ctx, req.(*empty.Empty))
return srv.(VagrantServer).ListBasis(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -1045,7 +1044,7 @@ func _Vagrant_FindProject_Handler(srv interface{}, ctx context.Context, dec func
}
func _Vagrant_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -1057,79 +1056,79 @@ func _Vagrant_ListProjects_Handler(srv interface{}, ctx context.Context, dec fun
FullMethod: "/hashicorp.vagrant.Vagrant/ListProjects",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).ListProjects(ctx, req.(*empty.Empty))
return srv.(VagrantServer).ListProjects(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Vagrant_UpsertMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpsertMachineRequest)
func _Vagrant_UpsertTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpsertTargetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VagrantServer).UpsertMachine(ctx, in)
return srv.(VagrantServer).UpsertTarget(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.vagrant.Vagrant/UpsertMachine",
FullMethod: "/hashicorp.vagrant.Vagrant/UpsertTarget",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).UpsertMachine(ctx, req.(*UpsertMachineRequest))
return srv.(VagrantServer).UpsertTarget(ctx, req.(*UpsertTargetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Vagrant_GetMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMachineRequest)
func _Vagrant_GetTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTargetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VagrantServer).GetMachine(ctx, in)
return srv.(VagrantServer).GetTarget(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.vagrant.Vagrant/GetMachine",
FullMethod: "/hashicorp.vagrant.Vagrant/GetTarget",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).GetMachine(ctx, req.(*GetMachineRequest))
return srv.(VagrantServer).GetTarget(ctx, req.(*GetTargetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Vagrant_FindMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindMachineRequest)
func _Vagrant_FindTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindTargetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VagrantServer).FindMachine(ctx, in)
return srv.(VagrantServer).FindTarget(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.vagrant.Vagrant/FindMachine",
FullMethod: "/hashicorp.vagrant.Vagrant/FindTarget",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).FindMachine(ctx, req.(*FindMachineRequest))
return srv.(VagrantServer).FindTarget(ctx, req.(*FindTargetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Vagrant_ListMachines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
func _Vagrant_ListTargets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VagrantServer).ListMachines(ctx, in)
return srv.(VagrantServer).ListTargets(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.vagrant.Vagrant/ListMachines",
FullMethod: "/hashicorp.vagrant.Vagrant/ListTargets",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).ListMachines(ctx, req.(*empty.Empty))
return srv.(VagrantServer).ListTargets(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -1321,7 +1320,7 @@ func _Vagrant_GetRunner_Handler(srv interface{}, ctx context.Context, dec func(i
}
func _Vagrant_GetServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -1333,7 +1332,7 @@ func _Vagrant_GetServerConfig_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/hashicorp.vagrant.Vagrant/GetServerConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).GetServerConfig(ctx, req.(*empty.Empty))
return srv.(VagrantServer).GetServerConfig(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -1357,7 +1356,7 @@ func _Vagrant_SetServerConfig_Handler(srv interface{}, ctx context.Context, dec
}
func _Vagrant_CreateSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(empty.Empty)
m := new(emptypb.Empty)
if err := stream.RecvMsg(m); err != nil {
return err
}
@ -1382,7 +1381,7 @@ func _Vagrant_RestoreSnapshot_Handler(srv interface{}, stream grpc.ServerStream)
}
type Vagrant_RestoreSnapshotServer interface {
SendAndClose(*empty.Empty) error
SendAndClose(*emptypb.Empty) error
Recv() (*RestoreSnapshotRequest, error)
grpc.ServerStream
}
@ -1391,7 +1390,7 @@ type vagrantRestoreSnapshotServer struct {
grpc.ServerStream
}
func (x *vagrantRestoreSnapshotServer) SendAndClose(m *empty.Empty) error {
func (x *vagrantRestoreSnapshotServer) SendAndClose(m *emptypb.Empty) error {
return x.ServerStream.SendMsg(m)
}
@ -1404,7 +1403,7 @@ func (x *vagrantRestoreSnapshotServer) Recv() (*RestoreSnapshotRequest, error) {
}
func _Vagrant_BootstrapToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -1416,7 +1415,7 @@ func _Vagrant_BootstrapToken_Handler(srv interface{}, ctx context.Context, dec f
FullMethod: "/hashicorp.vagrant.Vagrant/BootstrapToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).BootstrapToken(ctx, req.(*empty.Empty))
return srv.(VagrantServer).BootstrapToken(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -1440,7 +1439,7 @@ func _Vagrant_GenerateInviteToken_Handler(srv interface{}, ctx context.Context,
}
func _Vagrant_GenerateLoginToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
@ -1452,7 +1451,7 @@ func _Vagrant_GenerateLoginToken_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/hashicorp.vagrant.Vagrant/GenerateLoginToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VagrantServer).GenerateLoginToken(ctx, req.(*empty.Empty))
return srv.(VagrantServer).GenerateLoginToken(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
@ -1527,7 +1526,10 @@ func (x *vagrantRunnerJobStreamServer) Recv() (*RunnerJobStreamRequest, error) {
return m, nil
}
var _Vagrant_serviceDesc = grpc.ServiceDesc{
// Vagrant_ServiceDesc is the grpc.ServiceDesc for Vagrant service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Vagrant_ServiceDesc = grpc.ServiceDesc{
ServiceName: "hashicorp.vagrant.Vagrant",
HandlerType: (*VagrantServer)(nil),
Methods: []grpc.MethodDesc{
@ -1584,20 +1586,20 @@ var _Vagrant_serviceDesc = grpc.ServiceDesc{
Handler: _Vagrant_ListProjects_Handler,
},
{
MethodName: "UpsertMachine",
Handler: _Vagrant_UpsertMachine_Handler,
MethodName: "UpsertTarget",
Handler: _Vagrant_UpsertTarget_Handler,
},
{
MethodName: "GetMachine",
Handler: _Vagrant_GetMachine_Handler,
MethodName: "GetTarget",
Handler: _Vagrant_GetTarget_Handler,
},
{
MethodName: "FindMachine",
Handler: _Vagrant_FindMachine_Handler,
MethodName: "FindTarget",
Handler: _Vagrant_FindTarget_Handler,
},
{
MethodName: "ListMachines",
Handler: _Vagrant_ListMachines_Handler,
MethodName: "ListTargets",
Handler: _Vagrant_ListTargets_Handler,
},
{
MethodName: "SetConfig",

View File

@ -8,7 +8,7 @@ module Plugin
module GRPCBroker
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode

View File

@ -10,7 +10,7 @@ module Hashicorp
# The service that is implemented for the server backend.
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode

View File

@ -16,32 +16,95 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Args.DataDir" do
end
add_message "hashicorp.vagrant.sdk.Args.DataDir.Basis" do
optional :cache_dir, :string, 1
optional :data_dir, :string, 2
optional :root_dir, :string, 3
optional :root_dir, :string, 1
optional :cache_dir, :string, 2
optional :data_dir, :string, 3
optional :temp_dir, :string, 4
end
add_message "hashicorp.vagrant.sdk.Args.DataDir.Project" do
optional :cache_dir, :string, 1
optional :data_dir, :string, 2
optional :root_dir, :string, 3
optional :root_dir, :string, 1
optional :cache_dir, :string, 2
optional :data_dir, :string, 3
optional :temp_dir, :string, 4
end
add_message "hashicorp.vagrant.sdk.Args.DataDir.Machine" do
optional :cache_dir, :string, 1
optional :data_dir, :string, 2
optional :root_dir, :string, 3
add_message "hashicorp.vagrant.sdk.Args.DataDir.Target" do
optional :root_dir, :string, 1
optional :cache_dir, :string, 2
optional :data_dir, :string, 3
optional :temp_dir, :string, 4
end
add_message "hashicorp.vagrant.sdk.Args.DataDir.Component" do
optional :cache_dir, :string, 1
optional :data_dir, :string, 2
optional :root_dir, :string, 3
optional :root_dir, :string, 1
optional :cache_dir, :string, 2
optional :data_dir, :string, 3
optional :temp_dir, :string, 4
end
add_message "hashicorp.vagrant.sdk.Args.MachineIndex" do
add_message "hashicorp.vagrant.sdk.Args.MetadataSet" do
map :metadata, :string, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.MachineIndex.Entry" do
add_message "hashicorp.vagrant.sdk.Args.TerminalUI" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Logger" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.JobInfo" do
optional :local, :bool, 1
optional :resource_id, :string, 2
optional :resource_type, :enum, 3, "hashicorp.vagrant.sdk.Args.JobInfo.ResourceType"
optional :id, :string, 4
end
add_enum "hashicorp.vagrant.sdk.Args.JobInfo.ResourceType" do
value :BASIS, 0
value :PROJECT, 1
value :TARGET, 2
end
add_message "hashicorp.vagrant.sdk.Args.Basis" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Project" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Provider" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Target" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Target.State" do
optional :state, :enum, 1, "hashicorp.vagrant.sdk.Args.Target.State.State"
end
add_enum "hashicorp.vagrant.sdk.Args.Target.State.State" do
value :UNKNOWN, 0
value :PENDING, 1
value :CREATED, 2
value :DESTROYED, 3
end
add_message "hashicorp.vagrant.sdk.Args.Target.Machine" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Target.Machine.Box" do
optional :name, :string, 1
optional :provider, :string, 2
optional :version, :string, 3
optional :directory, :string, 4
map :metadata, :string, :string, 5
optional :metadata_url, :string, 6
end
add_message "hashicorp.vagrant.sdk.Args.Target.Machine.State" do
optional :id, :string, 1
optional :short_description, :string, 2
optional :long_description, :string, 3
end
add_message "hashicorp.vagrant.sdk.Args.StateBag" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.Host" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.TargetIndex" do
end
add_message "hashicorp.vagrant.sdk.TargetIndex.Entry" do
optional :id, :string, 1
optional :local_data_path, :string, 2
optional :name, :string, 3
@ -50,79 +113,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :vagrantfile_name, :string, 6
optional :vagrantfile_path, :string, 7
optional :updated_at, :string, 8
optional :extra_data, :message, 9, "hashicorp.vagrant.sdk.Args.Options"
map :extra_data, :string, :string, 9
end
add_message "hashicorp.vagrant.sdk.Args.BoxCollection" do
add_message "hashicorp.vagrant.sdk.BoxCollection" do
optional :directory, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.Box" do
optional :name, :string, 1
optional :provider, :string, 2
optional :version, :string, 3
optional :directory, :string, 4
map :metadata, :string, :string, 5
optional :metadata_url, :string, 6
end
add_message "hashicorp.vagrant.sdk.Args.Project" do
optional :cwd, :string, 1
optional :data_dir, :string, 2
optional :vagrantfile_name, :string, 3
optional :ui, :message, 4, "hashicorp.vagrant.sdk.Args.TerminalUI"
optional :home_path, :string, 5
optional :local_data_path, :string, 6
optional :tmp_path, :string, 7
optional :aliases_path, :string, 8
optional :boxes_path, :string, 9
optional :gems_path, :string, 10
optional :default_private_key_path, :string, 11
optional :server_addr, :string, 12
end
add_message "hashicorp.vagrant.sdk.Args.Machine" do
optional :resource_id, :string, 1
optional :server_addr, :string, 2
end
add_message "hashicorp.vagrant.sdk.Args.Configuration" do
end
add_message "hashicorp.vagrant.sdk.Args.Configuration.Vagrant" do
end
add_message "hashicorp.vagrant.sdk.Args.Configuration.VM" do
end
add_message "hashicorp.vagrant.sdk.Args.Configuration.Provider" do
end
add_message "hashicorp.vagrant.sdk.Args.LabelSet" do
map :labels, :string, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.Options" do
optional :opt, :message, 1, "hashicorp.vagrant.sdk.Args.LabelSet"
end
add_message "hashicorp.vagrant.sdk.Args.Vagrantfile" do
end
add_message "hashicorp.vagrant.sdk.Args.JobInfo" do
optional :local, :bool, 1
optional :workspace, :string, 2
optional :id, :string, 3
end
add_message "hashicorp.vagrant.sdk.Args.Logger" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.TerminalUI" do
optional :stream_id, :uint32, 1
end
add_message "hashicorp.vagrant.sdk.Args.StateBag" do
map :data, :string, :message, 1, "hashicorp.vagrant.sdk.Args.StateBag.Value"
end
add_message "hashicorp.vagrant.sdk.Args.StateBag.Value" do
oneof :value do
optional :text, :string, 1
optional :map, :message, 2, "google.protobuf.Any"
end
end
add_message "hashicorp.vagrant.sdk.Args.MachineState" do
optional :id, :string, 1
optional :short_description, :string, 2
optional :long_description, :string, 3
end
add_message "hashicorp.vagrant.sdk.Args.SSHInfo" do
add_message "hashicorp.vagrant.sdk.SSHInfo" do
optional :host, :string, 1
optional :port, :string, 2
optional :private_key_path, :string, 3
@ -141,7 +137,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :ssh_command, :string, 16
optional :proxy_command, :string, 17
end
add_message "hashicorp.vagrant.sdk.Args.WinrmInfo" do
add_message "hashicorp.vagrant.sdk.WinrmInfo" do
optional :username, :string, 1
optional :password, :string, 2
optional :host, :string, 3
@ -150,13 +146,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :max_tries, :int64, 6
optional :retry_delay, :int64, 7
optional :timeout, :int64, 8
optional :transport, :enum, 9, "hashicorp.vagrant.sdk.Args.WinrmInfo.Transport"
optional :transport, :enum, 9, "hashicorp.vagrant.sdk.WinrmInfo.Transport"
optional :ssl_peer_verification, :bool, 10
optional :execution_time_limit, :string, 11
optional :basic_auth_only, :bool, 12
optional :codepage, :string, 13
end
add_enum "hashicorp.vagrant.sdk.Args.WinrmInfo.Transport" do
add_enum "hashicorp.vagrant.sdk.WinrmInfo.Transport" do
value :NEGOTIATE, 0
value :SSL, 1
value :PLAINTEXT, 2
@ -299,6 +295,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Map.ListResponse" do
repeated :funcs, :message, 1, "hashicorp.vagrant.sdk.FuncSpec"
end
add_message "hashicorp.vagrant.sdk.StateBag" do
end
add_message "hashicorp.vagrant.sdk.StateBag.GetRequest" do
optional :key, :string, 1
end
add_message "hashicorp.vagrant.sdk.StateBag.GetResponse" do
optional :value, :string, 1
end
add_message "hashicorp.vagrant.sdk.StateBag.GetOkResponse" do
optional :ok, :bool, 1
optional :value, :string, 2
end
add_message "hashicorp.vagrant.sdk.StateBag.PutRequest" do
optional :key, :string, 1
optional :value, :string, 2
end
add_message "hashicorp.vagrant.sdk.StateBag.PutResponse" do
end
add_message "hashicorp.vagrant.sdk.StateBag.RemoveRequest" do
optional :key, :string, 1
end
add_message "hashicorp.vagrant.sdk.StateBag.RemoveResponse" do
end
add_message "hashicorp.vagrant.sdk.Provider" do
end
add_message "hashicorp.vagrant.sdk.Provider.UsableResp" do
@ -375,9 +394,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Communicator.FileTransferResp" do
end
add_message "hashicorp.vagrant.sdk.Communicator.ExecutionRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Args.Machine"
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Args.Target.Machine"
optional :command, :string, 2
optional :options, :message, 3, "hashicorp.vagrant.sdk.Args.LabelSet"
optional :options, :message, 3, "hashicorp.vagrant.sdk.Args.MetadataSet"
end
add_message "hashicorp.vagrant.sdk.Communicator.ExecuteResp" do
optional :exit_code, :int32, 1
@ -411,6 +430,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
add_message "hashicorp.vagrant.sdk.Host.Capability" do
end
add_message "hashicorp.vagrant.sdk.Host.Capability.NamedRequest" do
optional :name, :string, 1
optional :func_args, :message, 2, "hashicorp.vagrant.sdk.FuncSpec.Args"
end
add_message "hashicorp.vagrant.sdk.Host.Capability.CheckResp" do
optional :has_capability, :bool, 1
end
@ -422,112 +445,79 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Ref.Box" do
optional :resource_id, :string, 1
end
add_message "hashicorp.vagrant.sdk.Ref.Project" do
optional :project_id, :string, 1
add_message "hashicorp.vagrant.sdk.Ref.Basis" do
optional :resource_id, :string, 1
optional :path, :string, 2
optional :name, :string, 3
end
add_message "hashicorp.vagrant.sdk.Ref.Machine" do
add_message "hashicorp.vagrant.sdk.Ref.Project" do
optional :resource_id, :string, 1
optional :path, :string, 2
optional :basis, :message, 3, "hashicorp.vagrant.sdk.Ref.Basis"
optional :name, :string, 4
end
add_message "hashicorp.vagrant.sdk.Ref.Target" do
optional :resource_id, :string, 1
optional :project, :message, 2, "hashicorp.vagrant.sdk.Ref.Project"
optional :name, :string, 3
end
add_message "hashicorp.vagrant.sdk.Target" do
end
add_message "hashicorp.vagrant.sdk.Target.ResourceIdResponse" do
optional :resource_id, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine" do
add_message "hashicorp.vagrant.sdk.Target.RecordResponse" do
optional :record, :message, 1, "google.protobuf.Any"
end
add_message "hashicorp.vagrant.sdk.Machine.SetNameRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
optional :name, :string, 2
end
add_message "hashicorp.vagrant.sdk.Machine.SetNameResponse" do
end
add_message "hashicorp.vagrant.sdk.Machine.GetNameRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.GetNameResponse" do
add_message "hashicorp.vagrant.sdk.Target.NameResponse" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.SetIDRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
optional :id, :string, 2
add_message "hashicorp.vagrant.sdk.Target.ProjectResponse" do
optional :project, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
end
add_message "hashicorp.vagrant.sdk.Machine.SetIDResponse" do
end
add_message "hashicorp.vagrant.sdk.Machine.GetIDRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.GetIDResponse" do
optional :id, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.SetStateRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
optional :state, :message, 2, "hashicorp.vagrant.sdk.Args.MachineState"
end
add_message "hashicorp.vagrant.sdk.Machine.SetStateResponse" do
end
add_message "hashicorp.vagrant.sdk.Machine.GetStateRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.GetStateResponse" do
optional :state, :message, 1, "hashicorp.vagrant.sdk.Args.MachineState"
end
add_message "hashicorp.vagrant.sdk.Machine.GetUUIDRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.GetUUIDResponse" do
optional :uuid, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.SetUUIDRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
optional :uuid, :string, 2
end
add_message "hashicorp.vagrant.sdk.Machine.SetUUIDResponse" do
end
add_message "hashicorp.vagrant.sdk.Machine.BoxRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.BoxResponse" do
optional :box, :message, 1, "hashicorp.vagrant.sdk.Args.Box"
end
add_message "hashicorp.vagrant.sdk.Machine.DatadirRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.DatadirResponse" do
optional :datadir, :message, 1, "hashicorp.vagrant.sdk.Args.DataDir.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.LocalDataPathRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.LocalDataPathResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.ProviderRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.ProviderResponse" do
optional :provider, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.VagrantfileNameRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.VagrantfileNameResponse" do
add_message "hashicorp.vagrant.sdk.Target.SetNameRequest" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.VagrantfilePathRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
add_message "hashicorp.vagrant.sdk.Target.VagrantfileNameResponse" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.VagrantfilePathResponse" do
add_message "hashicorp.vagrant.sdk.Target.VagrantfilePathResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Machine.UpdatedAtRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
end
add_message "hashicorp.vagrant.sdk.Machine.UpdatedAtResponse" do
add_message "hashicorp.vagrant.sdk.Target.UpdatedAtResponse" do
optional :updated_at, :message, 1, "google.protobuf.Timestamp"
end
add_message "hashicorp.vagrant.sdk.Machine.UIRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine"
add_message "hashicorp.vagrant.sdk.Target.Machine" do
end
add_message "hashicorp.vagrant.sdk.Machine.UIResponse" do
optional :ui, :message, 1, "hashicorp.vagrant.sdk.Args.TerminalUI"
add_message "hashicorp.vagrant.sdk.Target.Machine.SetIDRequest" do
optional :id, :string, 1
end
add_message "hashicorp.vagrant.sdk.Target.Machine.GetIDResponse" do
optional :id, :string, 1
end
add_message "hashicorp.vagrant.sdk.Target.Machine.SetStateRequest" do
optional :state, :message, 1, "hashicorp.vagrant.sdk.Args.Target.Machine.State"
end
add_message "hashicorp.vagrant.sdk.Target.Machine.GetStateResponse" do
optional :state, :message, 1, "hashicorp.vagrant.sdk.Args.Target.Machine.State"
end
add_message "hashicorp.vagrant.sdk.Target.Machine.GetUUIDResponse" do
optional :uuid, :string, 1
end
add_message "hashicorp.vagrant.sdk.Target.Machine.SetUUIDRequest" do
optional :uuid, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project" do
end
add_message "hashicorp.vagrant.sdk.Project.TargetRequest" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.TargetNamesResponse" do
repeated :names, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.TargetIdsResponse" do
repeated :ids, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.MachineAndProvider" do
optional :name, :string, 1
optional :provider, :string, 2
@ -535,12 +525,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Project.MachineNamesResponse" do
repeated :names, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.ActiveMachinesRequest" do
optional :env, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
end
add_message "hashicorp.vagrant.sdk.Project.ActiveMachinesResponse" do
repeated :machines, :message, 1, "hashicorp.vagrant.sdk.Project.MachineAndProvider"
end
add_message "hashicorp.vagrant.sdk.Project.CwdResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.VagrantfileNameResponse" do
optional :name, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.HomeResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.LocalDataResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.TmpResponse" do
optional :path, :string, 1
end
add_message "hashicorp.vagrant.sdk.Project.DefaultPrivateKeyResponse" do
optional :key, :string, 1
end
end
end
@ -551,30 +556,30 @@ module Hashicorp
Args::DataDir = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir").msgclass
Args::DataDir::Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Basis").msgclass
Args::DataDir::Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Project").msgclass
Args::DataDir::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Machine").msgclass
Args::DataDir::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Target").msgclass
Args::DataDir::Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Component").msgclass
Args::MachineIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.MachineIndex").msgclass
Args::MachineIndex::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.MachineIndex.Entry").msgclass
Args::BoxCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.BoxCollection").msgclass
Args::Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Box").msgclass
Args::Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Project").msgclass
Args::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Machine").msgclass
Args::Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration").msgclass
Args::Configuration::Vagrant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.Vagrant").msgclass
Args::Configuration::VM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.VM").msgclass
Args::Configuration::Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.Provider").msgclass
Args::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.LabelSet").msgclass
Args::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Options").msgclass
Args::Vagrantfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Vagrantfile").msgclass
Args::JobInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.JobInfo").msgclass
Args::Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Logger").msgclass
Args::MetadataSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.MetadataSet").msgclass
Args::TerminalUI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.TerminalUI").msgclass
Args::Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Logger").msgclass
Args::JobInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.JobInfo").msgclass
Args::JobInfo::ResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.JobInfo.ResourceType").enummodule
Args::Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Basis").msgclass
Args::Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Project").msgclass
Args::Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Provider").msgclass
Args::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target").msgclass
Args::Target::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target.State").msgclass
Args::Target::State::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target.State.State").enummodule
Args::Target::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target.Machine").msgclass
Args::Target::Machine::Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target.Machine.Box").msgclass
Args::Target::Machine::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Target.Machine.State").msgclass
Args::StateBag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.StateBag").msgclass
Args::StateBag::Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.StateBag.Value").msgclass
Args::MachineState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.MachineState").msgclass
Args::SSHInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.SSHInfo").msgclass
Args::WinrmInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.WinrmInfo").msgclass
Args::WinrmInfo::Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.WinrmInfo.Transport").enummodule
Args::Host = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Host").msgclass
TargetIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TargetIndex").msgclass
TargetIndex::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TargetIndex.Entry").msgclass
BoxCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.BoxCollection").msgclass
SSHInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.SSHInfo").msgclass
WinrmInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.WinrmInfo").msgclass
WinrmInfo::Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.WinrmInfo.Transport").enummodule
FuncSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec").msgclass
FuncSpec::Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec.Value").msgclass
FuncSpec::Args = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec.Args").msgclass
@ -608,6 +613,14 @@ module Hashicorp
Map::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.Request").msgclass
Map::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.Response").msgclass
Map::ListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.ListResponse").msgclass
StateBag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag").msgclass
StateBag::GetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.GetRequest").msgclass
StateBag::GetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.GetResponse").msgclass
StateBag::GetOkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.GetOkResponse").msgclass
StateBag::PutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.PutRequest").msgclass
StateBag::PutResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.PutResponse").msgclass
StateBag::RemoveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.RemoveRequest").msgclass
StateBag::RemoveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.RemoveResponse").msgclass
Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider").msgclass
Provider::UsableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider.UsableResp").msgclass
Provider::InstalledResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider.InstalledResp").msgclass
@ -641,50 +654,43 @@ module Hashicorp
Host = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host").msgclass
Host::DetectResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.DetectResp").msgclass
Host::Capability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability").msgclass
Host::Capability::NamedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability.NamedRequest").msgclass
Host::Capability::CheckResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability.CheckResp").msgclass
Host::Capability::Resp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability.Resp").msgclass
Ref = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref").msgclass
Ref::Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Box").msgclass
Ref::Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Basis").msgclass
Ref::Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Project").msgclass
Ref::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Machine").msgclass
Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine").msgclass
Machine::SetNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetNameRequest").msgclass
Machine::SetNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetNameResponse").msgclass
Machine::GetNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetNameRequest").msgclass
Machine::GetNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetNameResponse").msgclass
Machine::SetIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetIDRequest").msgclass
Machine::SetIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetIDResponse").msgclass
Machine::GetIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetIDRequest").msgclass
Machine::GetIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetIDResponse").msgclass
Machine::SetStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetStateRequest").msgclass
Machine::SetStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetStateResponse").msgclass
Machine::GetStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetStateRequest").msgclass
Machine::GetStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetStateResponse").msgclass
Machine::GetUUIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetUUIDRequest").msgclass
Machine::GetUUIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.GetUUIDResponse").msgclass
Machine::SetUUIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetUUIDRequest").msgclass
Machine::SetUUIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.SetUUIDResponse").msgclass
Machine::BoxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.BoxRequest").msgclass
Machine::BoxResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.BoxResponse").msgclass
Machine::DatadirRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.DatadirRequest").msgclass
Machine::DatadirResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.DatadirResponse").msgclass
Machine::LocalDataPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.LocalDataPathRequest").msgclass
Machine::LocalDataPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.LocalDataPathResponse").msgclass
Machine::ProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.ProviderRequest").msgclass
Machine::ProviderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.ProviderResponse").msgclass
Machine::VagrantfileNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.VagrantfileNameRequest").msgclass
Machine::VagrantfileNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.VagrantfileNameResponse").msgclass
Machine::VagrantfilePathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.VagrantfilePathRequest").msgclass
Machine::VagrantfilePathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.VagrantfilePathResponse").msgclass
Machine::UpdatedAtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.UpdatedAtRequest").msgclass
Machine::UpdatedAtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.UpdatedAtResponse").msgclass
Machine::UIRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.UIRequest").msgclass
Machine::UIResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine.UIResponse").msgclass
Ref::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Target").msgclass
Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target").msgclass
Target::ResourceIdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.ResourceIdResponse").msgclass
Target::RecordResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.RecordResponse").msgclass
Target::NameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.NameResponse").msgclass
Target::ProjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.ProjectResponse").msgclass
Target::SetNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.SetNameRequest").msgclass
Target::VagrantfileNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.VagrantfileNameResponse").msgclass
Target::VagrantfilePathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.VagrantfilePathResponse").msgclass
Target::UpdatedAtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.UpdatedAtResponse").msgclass
Target::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine").msgclass
Target::Machine::SetIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.SetIDRequest").msgclass
Target::Machine::GetIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.GetIDResponse").msgclass
Target::Machine::SetStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.SetStateRequest").msgclass
Target::Machine::GetStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.GetStateResponse").msgclass
Target::Machine::GetUUIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.GetUUIDResponse").msgclass
Target::Machine::SetUUIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Target.Machine.SetUUIDRequest").msgclass
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project").msgclass
Project::TargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.TargetRequest").msgclass
Project::TargetNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.TargetNamesResponse").msgclass
Project::TargetIdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.TargetIdsResponse").msgclass
Project::MachineAndProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.MachineAndProvider").msgclass
Project::MachineNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.MachineNamesResponse").msgclass
Project::ActiveMachinesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.ActiveMachinesRequest").msgclass
Project::ActiveMachinesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.ActiveMachinesResponse").msgclass
Project::CwdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.CwdResponse").msgclass
Project::VagrantfileNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.VagrantfileNameResponse").msgclass
Project::HomeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.HomeResponse").msgclass
Project::LocalDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.LocalDataResponse").msgclass
Project::TmpResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.TmpResponse").msgclass
Project::DefaultPrivateKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Project.DefaultPrivateKeyResponse").msgclass
end
end
end

View File

@ -17,7 +17,7 @@ module Hashicorp
# interact with it indirectly via a terminal.UI implementation.
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -35,7 +35,7 @@ module Hashicorp
# to convert to/from various types.
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -49,6 +49,28 @@ module Hashicorp
Stub = Service.rpc_stub_class
end
module StateBagService
# *
# Core plugin services
#
# Core State Bag //
#
class Service
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hashicorp.vagrant.sdk.StateBagService'
rpc :Get, ::Hashicorp::Vagrant::Sdk::StateBag::GetRequest, ::Hashicorp::Vagrant::Sdk::StateBag::GetResponse
rpc :GetOk, ::Hashicorp::Vagrant::Sdk::StateBag::GetRequest, ::Hashicorp::Vagrant::Sdk::StateBag::GetOkResponse
rpc :Put, ::Hashicorp::Vagrant::Sdk::StateBag::PutRequest, ::Hashicorp::Vagrant::Sdk::StateBag::PutResponse
rpc :Remove, ::Hashicorp::Vagrant::Sdk::StateBag::RemoveRequest, ::Hashicorp::Vagrant::Sdk::StateBag::RemoveResponse
end
Stub = Service.rpc_stub_class
end
module ProviderService
# service CommunicatorService {
# rpc Match(Communicator.MatchRequest) returns (Communicator);
@ -62,7 +84,7 @@ module Hashicorp
# the state of a machine
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -116,7 +138,7 @@ module Hashicorp
# A Provisioner runs actions against a VM
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -132,7 +154,7 @@ module Hashicorp
module CommandService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -152,7 +174,7 @@ module Hashicorp
module CommunicatorService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -188,7 +210,7 @@ module Hashicorp
module ConfigService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -204,7 +226,7 @@ module Hashicorp
module GuestService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -226,7 +248,7 @@ module Hashicorp
module HostService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -237,6 +259,10 @@ module Hashicorp
rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation
rpc :Detect, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Host::DetectResp
rpc :DetectSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :HasCapability, ::Hashicorp::Vagrant::Sdk::Host::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::Host::Capability::CheckResp
rpc :HasCapabilitySpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Capability, ::Hashicorp::Vagrant::Sdk::Host::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::Host::Capability::Resp
rpc :CapabilitySpec, ::Hashicorp::Vagrant::Sdk::Host::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::FuncSpec
end
Stub = Service.rpc_stub_class
@ -244,7 +270,7 @@ module Hashicorp
module SyncedFolderService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -257,35 +283,83 @@ module Hashicorp
Stub = Service.rpc_stub_class
end
module MachineService
# *******************************************************************
# Machine services
# ******************************************************************
module BasisService
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hashicorp.vagrant.sdk.MachineService'
self.service_name = 'hashicorp.vagrant.sdk.BasisService'
# Getters and Setters
rpc :SetName, ::Hashicorp::Vagrant::Sdk::Machine::SetNameRequest, ::Hashicorp::Vagrant::Sdk::Machine::SetNameResponse
rpc :GetName, ::Hashicorp::Vagrant::Sdk::Machine::GetNameRequest, ::Hashicorp::Vagrant::Sdk::Machine::GetNameResponse
rpc :SetID, ::Hashicorp::Vagrant::Sdk::Machine::SetIDRequest, ::Hashicorp::Vagrant::Sdk::Machine::SetIDResponse
rpc :GetID, ::Hashicorp::Vagrant::Sdk::Machine::GetIDRequest, ::Hashicorp::Vagrant::Sdk::Machine::GetIDResponse
rpc :SetState, ::Hashicorp::Vagrant::Sdk::Machine::SetStateRequest, ::Hashicorp::Vagrant::Sdk::Machine::SetStateResponse
rpc :GetState, ::Hashicorp::Vagrant::Sdk::Machine::GetStateRequest, ::Hashicorp::Vagrant::Sdk::Machine::GetStateResponse
rpc :SetUUID, ::Hashicorp::Vagrant::Sdk::Machine::SetUUIDRequest, ::Hashicorp::Vagrant::Sdk::Machine::SetUUIDResponse
rpc :GetUUID, ::Hashicorp::Vagrant::Sdk::Machine::GetUUIDRequest, ::Hashicorp::Vagrant::Sdk::Machine::GetUUIDResponse
rpc :Box, ::Hashicorp::Vagrant::Sdk::Machine::BoxRequest, ::Hashicorp::Vagrant::Sdk::Machine::BoxResponse
rpc :Datadir, ::Hashicorp::Vagrant::Sdk::Machine::DatadirRequest, ::Hashicorp::Vagrant::Sdk::Machine::DatadirResponse
rpc :LocalDataPath, ::Hashicorp::Vagrant::Sdk::Machine::LocalDataPathRequest, ::Hashicorp::Vagrant::Sdk::Machine::LocalDataPathResponse
rpc :Provider, ::Hashicorp::Vagrant::Sdk::Machine::ProviderRequest, ::Hashicorp::Vagrant::Sdk::Machine::ProviderResponse
rpc :VagrantfileName, ::Hashicorp::Vagrant::Sdk::Machine::VagrantfileNameRequest, ::Hashicorp::Vagrant::Sdk::Machine::VagrantfileNameResponse
rpc :VagrantfilePath, ::Hashicorp::Vagrant::Sdk::Machine::VagrantfilePathRequest, ::Hashicorp::Vagrant::Sdk::Machine::VagrantfilePathResponse
rpc :UpdatedAt, ::Hashicorp::Vagrant::Sdk::Machine::UpdatedAtRequest, ::Hashicorp::Vagrant::Sdk::Machine::UpdatedAtResponse
rpc :UI, ::Hashicorp::Vagrant::Sdk::Machine::UIRequest, ::Hashicorp::Vagrant::Sdk::Machine::UIResponse
rpc :DataDir, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::DataDir::Basis
rpc :UI, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::TerminalUI
end
Stub = Service.rpc_stub_class
end
module TargetService
# *******************************************************************
# Target services
# ******************************************************************
class Service
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hashicorp.vagrant.sdk.TargetService'
rpc :ResourceId, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::ResourceIdResponse
rpc :Record, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::RecordResponse
rpc :Name, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::NameResponse
rpc :SetName, ::Hashicorp::Vagrant::Sdk::Target::SetNameRequest, ::Google::Protobuf::Empty
rpc :Project, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Project
rpc :Metadata, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::MetadataSet
rpc :DataDir, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::DataDir::Target
rpc :State, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Target::State
rpc :UI, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::TerminalUI
rpc :Specialize, ::Google::Protobuf::Any, ::Google::Protobuf::Any
rpc :Provider, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Provider
rpc :VagrantfileName, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::VagrantfileNameResponse
rpc :VagrantfilePath, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::VagrantfilePathResponse
rpc :UpdatedAt, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::UpdatedAtResponse
end
Stub = Service.rpc_stub_class
end
module TargetMachineService
class Service
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hashicorp.vagrant.sdk.TargetMachineService'
# Required so a machine can properly act as a target
rpc :ResourceId, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::ResourceIdResponse
rpc :Record, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::RecordResponse
rpc :Name, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::NameResponse
rpc :SetName, ::Hashicorp::Vagrant::Sdk::Target::SetNameRequest, ::Google::Protobuf::Empty
rpc :Project, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Project
rpc :Metadata, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::MetadataSet
rpc :DataDir, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::DataDir::Target
rpc :State, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Target::State
rpc :UI, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::TerminalUI
rpc :Specialize, ::Google::Protobuf::Any, ::Google::Protobuf::Any
rpc :Provider, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Provider
rpc :VagrantfileName, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::VagrantfileNameResponse
rpc :VagrantfilePath, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::VagrantfilePathResponse
rpc :UpdatedAt, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::UpdatedAtResponse
# Machine specific
rpc :SetID, ::Hashicorp::Vagrant::Sdk::Target::Machine::SetIDRequest, ::Google::Protobuf::Empty
rpc :GetID, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::Machine::GetIDResponse
rpc :SetState, ::Hashicorp::Vagrant::Sdk::Target::Machine::SetStateRequest, ::Google::Protobuf::Empty
rpc :GetState, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Target::Machine::State
rpc :SetUUID, ::Hashicorp::Vagrant::Sdk::Target::Machine::SetUUIDRequest, ::Google::Protobuf::Empty
rpc :GetUUID, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::Machine::GetUUIDResponse
rpc :Box, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Target::Machine::Box
end
Stub = Service.rpc_stub_class
@ -296,14 +370,26 @@ module Hashicorp
# ******************************************************************
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hashicorp.vagrant.sdk.ProjectService'
rpc :MachineNames, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::MachineNamesResponse
rpc :ActiveMachines, ::Hashicorp::Vagrant::Sdk::Project::ActiveMachinesRequest, ::Hashicorp::Vagrant::Sdk::Project::ActiveMachinesResponse
# rpc ActiveMachines(google.protobuf.Empty) returns (Project.ActiveMachinesResponse);
rpc :CWD, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::CwdResponse
rpc :DataDir, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::DataDir::Project
rpc :VagrantfileName, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::VagrantfileNameResponse
rpc :UI, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::TerminalUI
rpc :Home, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::HomeResponse
rpc :LocalData, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::LocalDataResponse
rpc :Tmp, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::TmpResponse
rpc :DefaultPrivateKey, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::DefaultPrivateKeyResponse
rpc :Host, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Host
rpc :Target, ::Hashicorp::Vagrant::Sdk::Project::TargetRequest, ::Hashicorp::Vagrant::Sdk::Args::Target
rpc :TargetNames, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::TargetNamesResponse
rpc :TargetIds, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Project::TargetIdsResponse
end
Stub = Service.rpc_stub_class

View File

@ -3,6 +3,7 @@
require 'google/protobuf'
require 'google/protobuf/any_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/timestamp_pb'
require 'google/rpc/status_pb'
@ -26,51 +27,48 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :resource_id, :string, 1
optional :name, :string, 2
optional :path, :string, 3
repeated :projects, :message, 4, "hashicorp.vagrant.Ref.Project"
optional :remote_enabled, :bool, 5
optional :data_source, :message, 6, "hashicorp.vagrant.Job.DataSource"
repeated :projects, :message, 4, "hashicorp.vagrant.sdk.Ref.Project"
optional :metadata, :message, 5, "hashicorp.vagrant.sdk.Args.MetadataSet"
optional :configuration, :message, 6, "google.protobuf.Any"
optional :remote_enabled, :bool, 100
optional :data_source, :message, 101, "hashicorp.vagrant.Job.DataSource"
end
add_message "hashicorp.vagrant.Project" do
optional :resource_id, :string, 1
optional :name, :string, 2
optional :path, :string, 3
repeated :machines, :message, 4, "hashicorp.vagrant.Ref.Machine"
optional :basis, :message, 5, "hashicorp.vagrant.Ref.Basis"
optional :remote_enabled, :bool, 6
optional :data_source, :message, 7, "hashicorp.vagrant.Job.DataSource"
repeated :targets, :message, 4, "hashicorp.vagrant.sdk.Ref.Target"
optional :basis, :message, 5, "hashicorp.vagrant.sdk.Ref.Basis"
optional :metadata, :message, 6, "hashicorp.vagrant.sdk.Args.MetadataSet"
optional :configuration, :message, 7, "google.protobuf.Any"
optional :remote_enabled, :bool, 100
optional :data_source, :message, 101, "hashicorp.vagrant.Job.DataSource"
end
add_message "hashicorp.vagrant.Machine" do
optional :datadir, :message, 1, "hashicorp.vagrant.sdk.Args.DataDir.Machine"
optional :resource_id, :string, 2
optional :id, :string, 3
optional :name, :string, 4
optional :project, :message, 5, "hashicorp.vagrant.Ref.Project"
optional :status, :message, 6, "hashicorp.vagrant.Status"
optional :box, :message, 7, "hashicorp.vagrant.sdk.Args.Box"
add_message "hashicorp.vagrant.Target" do
optional :resource_id, :string, 1
optional :datadir, :message, 2, "hashicorp.vagrant.sdk.Args.DataDir.Target"
optional :name, :string, 3
optional :project, :message, 4, "hashicorp.vagrant.sdk.Ref.Project"
optional :state, :enum, 5, "hashicorp.vagrant.Operation.PhysicalState"
repeated :subtargets, :message, 6, "hashicorp.vagrant.Target"
optional :parent, :message, 7, "hashicorp.vagrant.Target"
optional :uuid, :string, 8
optional :metadata, :message, 9, "hashicorp.vagrant.sdk.Args.MetadataSet"
optional :configuration, :message, 10, "google.protobuf.Any"
optional :record, :message, 11, "google.protobuf.Any"
optional :remote_enabled, :bool, 100
optional :data_source, :message, 101, "hashicorp.vagrant.Job.DataSource"
end
add_message "hashicorp.vagrant.Target.Machine" do
optional :id, :string, 1
optional :box, :message, 7, "hashicorp.vagrant.sdk.Args.Target.Machine.Box"
optional :uid, :string, 9
optional :state, :message, 10, "hashicorp.vagrant.sdk.Args.MachineState"
optional :state, :message, 10, "hashicorp.vagrant.sdk.Args.Target.Machine.State"
optional :provider, :string, 11
optional :physical_state, :enum, 50, "hashicorp.vagrant.Operation.PhysicalState"
optional :remote_enabled, :bool, 51
optional :data_source, :message, 52, "hashicorp.vagrant.Job.DataSource"
optional :provider, :string, 53
end
add_message "hashicorp.vagrant.Ref" do
end
add_message "hashicorp.vagrant.Ref.Machine" do
optional :resource_id, :string, 1
optional :name, :string, 2
optional :project, :message, 3, "hashicorp.vagrant.Ref.Project"
end
add_message "hashicorp.vagrant.Ref.Project" do
optional :resource_id, :string, 1
optional :name, :string, 2
optional :basis, :message, 3, "hashicorp.vagrant.Ref.Basis"
end
add_message "hashicorp.vagrant.Ref.Basis" do
optional :resource_id, :string, 1
optional :name, :string, 2
end
add_message "hashicorp.vagrant.Ref.Component" do
optional :type, :enum, 1, "hashicorp.vagrant.Component.Type"
optional :name, :string, 2
@ -78,21 +76,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.Ref.Operation" do
oneof :target do
optional :id, :string, 1
optional :machine_sequence, :message, 2, "hashicorp.vagrant.Ref.MachineOperationSeq"
optional :target_sequence, :message, 2, "hashicorp.vagrant.Ref.TargetOperationSeq"
optional :project_sequence, :message, 3, "hashicorp.vagrant.Ref.ProjectOperationSeq"
optional :basis_sequence, :message, 4, "hashicorp.vagrant.Ref.BasisOperationSeq"
end
end
add_message "hashicorp.vagrant.Ref.MachineOperationSeq" do
optional :machine, :message, 1, "hashicorp.vagrant.Ref.Machine"
add_message "hashicorp.vagrant.Ref.TargetOperationSeq" do
optional :target, :message, 1, "hashicorp.vagrant.sdk.Ref.Target"
optional :number, :uint64, 2
end
add_message "hashicorp.vagrant.Ref.ProjectOperationSeq" do
optional :project, :message, 1, "hashicorp.vagrant.Ref.Project"
optional :project, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
optional :number, :uint64, 2
end
add_message "hashicorp.vagrant.Ref.BasisOperationSeq" do
optional :basis, :message, 1, "hashicorp.vagrant.Ref.Basis"
optional :basis, :message, 1, "hashicorp.vagrant.sdk.Ref.Basis"
optional :number, :uint64, 2
end
add_message "hashicorp.vagrant.Ref.Runner" do
@ -146,8 +144,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_enum "hashicorp.vagrant.Operation.PhysicalState" do
value :UNKNOWN, 0
value :PENDING, 1
value :CREATED, 3
value :DESTROYED, 4
value :CREATED, 2
value :DESTROYED, 3
end
add_message "hashicorp.vagrant.OperationOrder" do
optional :order, :enum, 2, "hashicorp.vagrant.OperationOrder.Order"
@ -180,9 +178,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
add_message "hashicorp.vagrant.Job" do
optional :id, :string, 1
optional :basis, :message, 2, "hashicorp.vagrant.Ref.Basis"
optional :project, :message, 3, "hashicorp.vagrant.Ref.Project"
optional :machine, :message, 4, "hashicorp.vagrant.Ref.Machine"
optional :basis, :message, 2, "hashicorp.vagrant.sdk.Ref.Basis"
optional :project, :message, 3, "hashicorp.vagrant.sdk.Ref.Project"
optional :target, :message, 4, "hashicorp.vagrant.sdk.Ref.Target"
optional :target_runner, :message, 5, "hashicorp.vagrant.Ref.Runner"
map :labels, :string, :string, 6
optional :data_source, :message, 7, "hashicorp.vagrant.Job.DataSource"
@ -510,7 +508,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :basis, :message, 1, "hashicorp.vagrant.Basis"
end
add_message "hashicorp.vagrant.GetBasisRequest" do
optional :basis, :message, 1, "hashicorp.vagrant.Ref.Basis"
optional :basis, :message, 1, "hashicorp.vagrant.sdk.Ref.Basis"
end
add_message "hashicorp.vagrant.GetBasisResponse" do
optional :basis, :message, 1, "hashicorp.vagrant.Basis"
@ -523,7 +521,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :basis, :message, 2, "hashicorp.vagrant.Basis"
end
add_message "hashicorp.vagrant.ListBasisResponse" do
repeated :basis, :message, 1, "hashicorp.vagrant.Ref.Basis"
repeated :basis, :message, 1, "hashicorp.vagrant.sdk.Ref.Basis"
end
add_message "hashicorp.vagrant.UpsertProjectRequest" do
optional :project, :message, 1, "hashicorp.vagrant.Project"
@ -532,7 +530,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :project, :message, 1, "hashicorp.vagrant.Project"
end
add_message "hashicorp.vagrant.GetProjectRequest" do
optional :project, :message, 1, "hashicorp.vagrant.Ref.Project"
optional :project, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
end
add_message "hashicorp.vagrant.GetProjectResponse" do
optional :project, :message, 1, "hashicorp.vagrant.Project"
@ -545,38 +543,38 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :project, :message, 2, "hashicorp.vagrant.Project"
end
add_message "hashicorp.vagrant.ListProjectsResponse" do
repeated :projects, :message, 1, "hashicorp.vagrant.Ref.Project"
repeated :projects, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
end
add_message "hashicorp.vagrant.UpsertMachineRequest" do
optional :project, :message, 1, "hashicorp.vagrant.Ref.Project"
optional :machine, :message, 2, "hashicorp.vagrant.Machine"
add_message "hashicorp.vagrant.UpsertTargetRequest" do
optional :project, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
optional :target, :message, 2, "hashicorp.vagrant.Target"
end
add_message "hashicorp.vagrant.UpsertMachineResponse" do
optional :machine, :message, 1, "hashicorp.vagrant.Machine"
add_message "hashicorp.vagrant.UpsertTargetResponse" do
optional :target, :message, 1, "hashicorp.vagrant.Target"
end
add_message "hashicorp.vagrant.GetMachineRequest" do
optional :project, :message, 1, "hashicorp.vagrant.Ref.Project"
optional :machine, :message, 2, "hashicorp.vagrant.Ref.Machine"
add_message "hashicorp.vagrant.GetTargetRequest" do
optional :project, :message, 1, "hashicorp.vagrant.sdk.Ref.Project"
optional :target, :message, 2, "hashicorp.vagrant.sdk.Ref.Target"
end
add_message "hashicorp.vagrant.GetMachineResponse" do
optional :machine, :message, 1, "hashicorp.vagrant.Machine"
add_message "hashicorp.vagrant.GetTargetResponse" do
optional :target, :message, 1, "hashicorp.vagrant.Target"
end
add_message "hashicorp.vagrant.FindMachineRequest" do
optional :machine, :message, 1, "hashicorp.vagrant.Machine"
add_message "hashicorp.vagrant.FindTargetRequest" do
optional :target, :message, 1, "hashicorp.vagrant.Target"
end
add_message "hashicorp.vagrant.FindMachineResponse" do
add_message "hashicorp.vagrant.FindTargetResponse" do
optional :found, :bool, 1
optional :machine, :message, 2, "hashicorp.vagrant.Machine"
optional :target, :message, 2, "hashicorp.vagrant.Target"
end
add_message "hashicorp.vagrant.ListMachinesResponse" do
repeated :machines, :message, 1, "hashicorp.vagrant.Ref.Machine"
add_message "hashicorp.vagrant.ListTargetsResponse" do
repeated :targets, :message, 1, "hashicorp.vagrant.sdk.Ref.Target"
end
add_message "hashicorp.vagrant.GetLogStreamRequest" do
optional :limit_backlog, :int32, 4
oneof :scope do
optional :basis, :message, 1, "hashicorp.vagrant.Ref.Basis"
optional :project, :message, 2, "hashicorp.vagrant.Ref.Project"
optional :machine, :message, 3, "hashicorp.vagrant.Ref.Machine"
optional :basis, :message, 1, "hashicorp.vagrant.sdk.Ref.Basis"
optional :project, :message, 2, "hashicorp.vagrant.sdk.Ref.Project"
optional :target, :message, 3, "hashicorp.vagrant.sdk.Ref.Target"
end
end
add_message "hashicorp.vagrant.LogBatch" do
@ -592,8 +590,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :name, :string, 1
optional :value, :string, 2
oneof :scope do
optional :machine, :message, 3, "hashicorp.vagrant.Ref.Machine"
optional :project, :message, 4, "hashicorp.vagrant.Ref.Project"
optional :target, :message, 3, "hashicorp.vagrant.sdk.Ref.Target"
optional :project, :message, 4, "hashicorp.vagrant.sdk.Ref.Project"
optional :runner, :message, 5, "hashicorp.vagrant.Ref.Runner"
end
end
@ -605,8 +603,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.ConfigGetRequest" do
optional :prefix, :string, 1
oneof :scope do
optional :machine, :message, 2, "hashicorp.vagrant.Ref.Machine"
optional :project, :message, 3, "hashicorp.vagrant.Ref.Project"
optional :target, :message, 2, "hashicorp.vagrant.sdk.Ref.Target"
optional :project, :message, 3, "hashicorp.vagrant.sdk.Ref.Project"
optional :runner, :message, 4, "hashicorp.vagrant.Ref.RunnerId"
end
end
@ -796,9 +794,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
add_message "hashicorp.vagrant.GetLatestTaskRequest" do
oneof :scope do
optional :machine, :message, 1, "hashicorp.vagrant.Ref.Machine"
optional :project, :message, 2, "hashicorp.vagrant.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.Ref.Basis"
optional :target, :message, 1, "hashicorp.vagrant.sdk.Ref.Target"
optional :project, :message, 2, "hashicorp.vagrant.sdk.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.sdk.Ref.Basis"
end
end
add_message "hashicorp.vagrant.ListTasksRequest" do
@ -806,9 +804,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :physical_state, :enum, 5, "hashicorp.vagrant.Operation.PhysicalState"
optional :order, :message, 6, "hashicorp.vagrant.OperationOrder"
oneof :scope do
optional :machine, :message, 1, "hashicorp.vagrant.Ref.Machine"
optional :project, :message, 2, "hashicorp.vagrant.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.Ref.Basis"
optional :target, :message, 1, "hashicorp.vagrant.sdk.Ref.Target"
optional :project, :message, 2, "hashicorp.vagrant.sdk.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.sdk.Ref.Basis"
end
end
add_message "hashicorp.vagrant.ListTasksResponse" do
@ -829,9 +827,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :cli_args, :message, 12, "hashicorp.vagrant.sdk.Command.Arguments"
optional :command_name, :string, 13
oneof :scope do
optional :machine, :message, 1, "hashicorp.vagrant.Ref.Machine"
optional :project, :message, 2, "hashicorp.vagrant.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.Ref.Basis"
optional :target, :message, 1, "hashicorp.vagrant.sdk.Ref.Target"
optional :project, :message, 2, "hashicorp.vagrant.sdk.Ref.Project"
optional :basis, :message, 3, "hashicorp.vagrant.sdk.Ref.Basis"
end
end
end
@ -844,14 +842,12 @@ module Hashicorp
VersionInfo::ProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.VersionInfo.ProtocolVersion").msgclass
Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Basis").msgclass
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Project").msgclass
Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Machine").msgclass
Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Target").msgclass
Target::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Target.Machine").msgclass
Ref = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref").msgclass
Ref::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Machine").msgclass
Ref::Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Project").msgclass
Ref::Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Basis").msgclass
Ref::Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Component").msgclass
Ref::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Operation").msgclass
Ref::MachineOperationSeq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.MachineOperationSeq").msgclass
Ref::TargetOperationSeq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.TargetOperationSeq").msgclass
Ref::ProjectOperationSeq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.ProjectOperationSeq").msgclass
Ref::BasisOperationSeq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.BasisOperationSeq").msgclass
Ref::Runner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Ref.Runner").msgclass
@ -956,13 +952,13 @@ module Hashicorp
FindProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindProjectRequest").msgclass
FindProjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindProjectResponse").msgclass
ListProjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ListProjectsResponse").msgclass
UpsertMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.UpsertMachineRequest").msgclass
UpsertMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.UpsertMachineResponse").msgclass
GetMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetMachineRequest").msgclass
GetMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetMachineResponse").msgclass
FindMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindMachineRequest").msgclass
FindMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindMachineResponse").msgclass
ListMachinesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ListMachinesResponse").msgclass
UpsertTargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.UpsertTargetRequest").msgclass
UpsertTargetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.UpsertTargetResponse").msgclass
GetTargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetTargetRequest").msgclass
GetTargetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetTargetResponse").msgclass
FindTargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindTargetRequest").msgclass
FindTargetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.FindTargetResponse").msgclass
ListTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ListTargetsResponse").msgclass
GetLogStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetLogStreamRequest").msgclass
LogBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.LogBatch").msgclass
LogBatch::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.LogBatch.Entry").msgclass

View File

@ -10,7 +10,7 @@ module Hashicorp
# The service that is implemented for the server backend.
class Service
include GRPC::GenericService
include ::GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
@ -42,12 +42,12 @@ module Hashicorp
# ListApplications because applications are a part of projects and you
# can use GetProject to get more information about the project.
rpc :ListProjects, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::ListProjectsResponse
# UpsertMachine upserts a machine with a project. If the machine
# UpsertTarget upserts a target with a project. If the target
# is already registered this does nothing.
rpc :UpsertMachine, ::Hashicorp::Vagrant::UpsertMachineRequest, ::Hashicorp::Vagrant::UpsertMachineResponse
rpc :GetMachine, ::Hashicorp::Vagrant::GetMachineRequest, ::Hashicorp::Vagrant::GetMachineResponse
rpc :FindMachine, ::Hashicorp::Vagrant::FindMachineRequest, ::Hashicorp::Vagrant::FindMachineResponse
rpc :ListMachines, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::ListMachinesResponse
rpc :UpsertTarget, ::Hashicorp::Vagrant::UpsertTargetRequest, ::Hashicorp::Vagrant::UpsertTargetResponse
rpc :GetTarget, ::Hashicorp::Vagrant::GetTargetRequest, ::Hashicorp::Vagrant::GetTargetResponse
rpc :FindTarget, ::Hashicorp::Vagrant::FindTargetRequest, ::Hashicorp::Vagrant::FindTargetResponse
rpc :ListTargets, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::ListTargetsResponse
# GetLogStream reads the log stream for a deployment. This will immediately
# send a single LogEntry with the lines we have so far. If there are no
# available lines this will NOT block and instead will return an error.