From 7173a392441ba2ee71b7aa0410ac734cf7fc7590 Mon Sep 17 00:00:00 2001 From: Andrew Burke Date: Tue, 10 Sep 2024 12:31:48 -0700 Subject: [PATCH] Update protos --- .../userprovisioning/v1/statichostuser.pb.go | 8 +++--- .../v1/statichostuser_service.pb.go | 18 ++++++------ .../v1/statichostuser_service_grpc.pb.go | 28 ++++++------------- 3 files changed, 22 insertions(+), 32 deletions(-) diff --git a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser.pb.go b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser.pb.go index c04959c336da5..006a3184f758a 100644 --- a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser.pb.go +++ b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.34.0 // protoc (unknown) // source: teleport/userprovisioning/v1/statichostuser.proto @@ -292,7 +292,7 @@ func file_teleport_userprovisioning_v1_statichostuser_proto_rawDescGZIP() []byte } var file_teleport_userprovisioning_v1_statichostuser_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_teleport_userprovisioning_v1_statichostuser_proto_goTypes = []any{ +var file_teleport_userprovisioning_v1_statichostuser_proto_goTypes = []interface{}{ (*StaticHostUser)(nil), // 0: teleport.userprovisioning.v1.StaticHostUser (*StaticHostUserSpec)(nil), // 1: teleport.userprovisioning.v1.StaticHostUserSpec (*v1.Metadata)(nil), // 2: teleport.header.v1.Metadata @@ -315,7 +315,7 @@ func file_teleport_userprovisioning_v1_statichostuser_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_teleport_userprovisioning_v1_statichostuser_proto_msgTypes[0].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StaticHostUser); i { case 0: return &v.state @@ -327,7 +327,7 @@ func file_teleport_userprovisioning_v1_statichostuser_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_proto_msgTypes[1].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StaticHostUserSpec); i { case 0: return &v.state diff --git a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service.pb.go b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service.pb.go index ccb801a403b20..2e1442b597688 100644 --- a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service.pb.go +++ b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.34.0 // protoc (unknown) // source: teleport/userprovisioning/v1/statichostuser_service.proto @@ -525,7 +525,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_rawDescGZIP( } var file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_teleport_userprovisioning_v1_statichostuser_service_proto_goTypes = []any{ +var file_teleport_userprovisioning_v1_statichostuser_service_proto_goTypes = []interface{}{ (*GetStaticHostUserRequest)(nil), // 0: teleport.userprovisioning.v1.GetStaticHostUserRequest (*ListStaticHostUsersRequest)(nil), // 1: teleport.userprovisioning.v1.ListStaticHostUsersRequest (*ListStaticHostUsersResponse)(nil), // 2: teleport.userprovisioning.v1.ListStaticHostUsersResponse @@ -567,7 +567,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { } file_teleport_userprovisioning_v1_statichostuser_proto_init() if !protoimpl.UnsafeEnabled { - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[0].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStaticHostUserRequest); i { case 0: return &v.state @@ -579,7 +579,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[1].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListStaticHostUsersRequest); i { case 0: return &v.state @@ -591,7 +591,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[2].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListStaticHostUsersResponse); i { case 0: return &v.state @@ -603,7 +603,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[3].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateStaticHostUserRequest); i { case 0: return &v.state @@ -615,7 +615,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[4].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateStaticHostUserRequest); i { case 0: return &v.state @@ -627,7 +627,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[5].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpsertStaticHostUserRequest); i { case 0: return &v.state @@ -639,7 +639,7 @@ func file_teleport_userprovisioning_v1_statichostuser_service_proto_init() { return nil } } - file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[6].Exporter = func(v any, i int) any { + file_teleport_userprovisioning_v1_statichostuser_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteStaticHostUserRequest); i { case 0: return &v.state diff --git a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service_grpc.pb.go b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service_grpc.pb.go index 6a50cce054096..505c5a309e2ba 100644 --- a/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service_grpc.pb.go +++ b/api/gen/proto/go/teleport/userprovisioning/v1/statichostuser_service_grpc.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.4.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: teleport/userprovisioning/v1/statichostuser_service.proto @@ -30,8 +30,8 @@ import ( // 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.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 const ( StaticHostUsersService_GetStaticHostUser_FullMethodName = "/teleport.userprovisioning.v1.StaticHostUsersService/GetStaticHostUser" @@ -45,8 +45,6 @@ const ( // StaticHostUsersServiceClient is the client API for StaticHostUsersService service. // // 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. -// -// StaticHostUsersService provides methods to manage static host users. type StaticHostUsersServiceClient interface { // GetStaticHostUser retrieves a static host user resource by name. GetStaticHostUser(ctx context.Context, in *GetStaticHostUserRequest, opts ...grpc.CallOption) (*StaticHostUser, error) @@ -71,9 +69,8 @@ func NewStaticHostUsersServiceClient(cc grpc.ClientConnInterface) StaticHostUser } func (c *staticHostUsersServiceClient) GetStaticHostUser(ctx context.Context, in *GetStaticHostUserRequest, opts ...grpc.CallOption) (*StaticHostUser, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StaticHostUser) - err := c.cc.Invoke(ctx, StaticHostUsersService_GetStaticHostUser_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_GetStaticHostUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -81,9 +78,8 @@ func (c *staticHostUsersServiceClient) GetStaticHostUser(ctx context.Context, in } func (c *staticHostUsersServiceClient) ListStaticHostUsers(ctx context.Context, in *ListStaticHostUsersRequest, opts ...grpc.CallOption) (*ListStaticHostUsersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListStaticHostUsersResponse) - err := c.cc.Invoke(ctx, StaticHostUsersService_ListStaticHostUsers_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_ListStaticHostUsers_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -91,9 +87,8 @@ func (c *staticHostUsersServiceClient) ListStaticHostUsers(ctx context.Context, } func (c *staticHostUsersServiceClient) CreateStaticHostUser(ctx context.Context, in *CreateStaticHostUserRequest, opts ...grpc.CallOption) (*StaticHostUser, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StaticHostUser) - err := c.cc.Invoke(ctx, StaticHostUsersService_CreateStaticHostUser_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_CreateStaticHostUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,9 +96,8 @@ func (c *staticHostUsersServiceClient) CreateStaticHostUser(ctx context.Context, } func (c *staticHostUsersServiceClient) UpdateStaticHostUser(ctx context.Context, in *UpdateStaticHostUserRequest, opts ...grpc.CallOption) (*StaticHostUser, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StaticHostUser) - err := c.cc.Invoke(ctx, StaticHostUsersService_UpdateStaticHostUser_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_UpdateStaticHostUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -111,9 +105,8 @@ func (c *staticHostUsersServiceClient) UpdateStaticHostUser(ctx context.Context, } func (c *staticHostUsersServiceClient) UpsertStaticHostUser(ctx context.Context, in *UpsertStaticHostUserRequest, opts ...grpc.CallOption) (*StaticHostUser, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StaticHostUser) - err := c.cc.Invoke(ctx, StaticHostUsersService_UpsertStaticHostUser_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_UpsertStaticHostUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -121,9 +114,8 @@ func (c *staticHostUsersServiceClient) UpsertStaticHostUser(ctx context.Context, } func (c *staticHostUsersServiceClient) DeleteStaticHostUser(ctx context.Context, in *DeleteStaticHostUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, StaticHostUsersService_DeleteStaticHostUser_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, StaticHostUsersService_DeleteStaticHostUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -133,8 +125,6 @@ func (c *staticHostUsersServiceClient) DeleteStaticHostUser(ctx context.Context, // StaticHostUsersServiceServer is the server API for StaticHostUsersService service. // All implementations must embed UnimplementedStaticHostUsersServiceServer // for forward compatibility -// -// StaticHostUsersService provides methods to manage static host users. type StaticHostUsersServiceServer interface { // GetStaticHostUser retrieves a static host user resource by name. GetStaticHostUser(context.Context, *GetStaticHostUserRequest) (*StaticHostUser, error)