blob: 3c90ff100124a010e85fe53de9ba5184954d1f20 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/osconfig/v1/osconfig_service.proto
package osconfig
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("google/cloud/osconfig/v1/osconfig_service.proto", fileDescriptor_23b8161c718b0c34)
}
var fileDescriptor_23b8161c718b0c34 = []byte{
// 748 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xc1, 0x4f, 0xd4, 0x4e,
0x14, 0x4e, 0x37, 0xbf, 0x70, 0xe8, 0x2f, 0x88, 0x99, 0x88, 0xe0, 0x42, 0x62, 0x5c, 0x2f, 0xb2,
0x42, 0x87, 0x65, 0x01, 0x63, 0x85, 0xc4, 0x65, 0x97, 0x10, 0xd1, 0x44, 0xa2, 0x09, 0x26, 0x86,
0x84, 0x74, 0xcb, 0xa3, 0x94, 0xb4, 0x33, 0xb5, 0x33, 0x05, 0x71, 0xb3, 0x17, 0xff, 0x03, 0xe3,
0xcd, 0x84, 0xc4, 0x83, 0x27, 0x13, 0xff, 0x05, 0xe3, 0x99, 0xa3, 0xde, 0x38, 0x79, 0xf0, 0x44,
0xfc, 0x23, 0x4c, 0xa7, 0x9d, 0x6e, 0xb7, 0x50, 0x76, 0x57, 0x4f, 0x0c, 0xfd, 0xde, 0xf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x80, 0xe1, 0x56, 0xf8, 0xa7, 0xb3, 0xa9, 0x0c, 0xb7, 0xe4, 0xb1, 0xad,
0x4e, 0x9a, 0xd4, 0xcd, 0xed, 0xda, 0xca, 0xb0, 0x7c, 0x38, 0x37, 0xc2, 0xc6, 0xbc, 0x7c, 0x18,
0x07, 0x5a, 0xd4, 0x31, 0x88, 0xa5, 0x51, 0xdf, 0xc2, 0x16, 0x10, 0xd1, 0x34, 0xdc, 0x91, 0x75,
0xfe, 0xc5, 0x7e, 0x20, 0xcf, 0x9f, 0x0b, 0xe3, 0x6b, 0x51, 0x8a, 0xba, 0xa8, 0x25, 0xd3, 0x6b,
0x9b, 0x95, 0x13, 0x09, 0x6d, 0x09, 0x68, 0x4b, 0x42, 0x5b, 0x9b, 0x95, 0xb3, 0xc2, 0x44, 0x04,
0xe9, 0xba, 0xc0, 0x74, 0x5d, 0x82, 0xba, 0xbe, 0x59, 0x69, 0x0e, 0x09, 0x01, 0xd5, 0x3f, 0x01,
0x00, 0x00, 0xff, 0xff, 0x31, 0x38, 0x0a, 0x02, 0x00, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// OsConfigServiceClient is the client API for OsConfigService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OsConfigServiceClient interface {
// Patch VM instances by creating and running a patch job.
ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
// Get the patch job. This can be used to track the progress of an
// ongoing patch job or review the details of completed jobs.
GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
// Cancel a patch job. The patch job must be active. Canceled patch jobs
// cannot be restarted.
CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
// Get a list of patch jobs.
ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error)
// Get a list of instance details for a given patch job.
ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error)
// Create an OS Config patch deployment.
CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
// Get an OS Config patch deployment.
GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
// Get a page of OS Config patch deployments.
ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error)
// Delete an OS Config patch deployment.
DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type osConfigServiceClient struct {
cc grpc.ClientConnInterface
}
func NewOsConfigServiceClient(cc grpc.ClientConnInterface) OsConfigServiceClient {
return &osConfigServiceClient{cc}
}
func (c *osConfigServiceClient) ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
out := new(PatchJob)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/ExecutePatchJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
out := new(PatchJob)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/GetPatchJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
out := new(PatchJob)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/CancelPatchJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error) {
out := new(ListPatchJobsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error) {
out := new(ListPatchJobInstanceDetailsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobInstanceDetails", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
out := new(PatchDeployment)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/CreatePatchDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
out := new(PatchDeployment)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/GetPatchDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error) {
out := new(ListPatchDeploymentsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/ListPatchDeployments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osConfigServiceClient) DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1.OsConfigService/DeletePatchDeployment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OsConfigServiceServer is the server API for OsConfigService service.
type OsConfigServiceServer interface {
// Patch VM instances by creating and running a patch job.
ExecutePatchJob(context.Context, *ExecutePatchJobRequest) (*PatchJob, error)
// Get the patch job. This can be used to track the progress of an
// ongoing patch job or review the details of completed jobs.
GetPatchJob(context.Context, *GetPatchJobRequest) (*PatchJob, error)
// Cancel a patch job. The patch job must be active. Canceled patch jobs
// cannot be restarted.
CancelPatchJob(context.Context, *CancelPatchJobRequest) (*PatchJob, error)
// Get a list of patch jobs.
ListPatchJobs(context.Context, *ListPatchJobsRequest) (*ListPatchJobsResponse, error)
// Get a list of instance details for a given patch job.
ListPatchJobInstanceDetails(context.Context, *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error)
// Create an OS Config patch deployment.
CreatePatchDeployment(context.Context, *CreatePatchDeploymentRequest) (*PatchDeployment, error)
// Get an OS Config patch deployment.
GetPatchDeployment(context.Context, *GetPatchDeploymentRequest) (*PatchDeployment, error)
// Get a page of OS Config patch deployments.
ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error)
// Delete an OS Config patch deployment.
DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*empty.Empty, error)
}
// UnimplementedOsConfigServiceServer can be embedded to have forward compatible implementations.
type UnimplementedOsConfigServiceServer struct {
}
func (*UnimplementedOsConfigServiceServer) ExecutePatchJob(ctx context.Context, req *ExecutePatchJobRequest) (*PatchJob, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExecutePatchJob not implemented")
}
func (*UnimplementedOsConfigServiceServer) GetPatchJob(ctx context.Context, req *GetPatchJobRequest) (*PatchJob, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPatchJob not implemented")
}
func (*UnimplementedOsConfigServiceServer) CancelPatchJob(ctx context.Context, req *CancelPatchJobRequest) (*PatchJob, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelPatchJob not implemented")
}
func (*UnimplementedOsConfigServiceServer) ListPatchJobs(ctx context.Context, req *ListPatchJobsRequest) (*ListPatchJobsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobs not implemented")
}
func (*UnimplementedOsConfigServiceServer) ListPatchJobInstanceDetails(ctx context.Context, req *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobInstanceDetails not implemented")
}
func (*UnimplementedOsConfigServiceServer) CreatePatchDeployment(ctx context.Context, req *CreatePatchDeploymentRequest) (*PatchDeployment, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreatePatchDeployment not implemented")
}
func (*UnimplementedOsConfigServiceServer) GetPatchDeployment(ctx context.Context, req *GetPatchDeploymentRequest) (*PatchDeployment, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPatchDeployment not implemented")
}
func (*UnimplementedOsConfigServiceServer) ListPatchDeployments(ctx context.Context, req *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPatchDeployments not implemented")
}
func (*UnimplementedOsConfigServiceServer) DeletePatchDeployment(ctx context.Context, req *DeletePatchDeploymentRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeletePatchDeployment not implemented")
}
func RegisterOsConfigServiceServer(s *grpc.Server, srv OsConfigServiceServer) {
s.RegisterService(&_OsConfigService_serviceDesc, srv)
}
func _OsConfigService_ExecutePatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ExecutePatchJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/ExecutePatchJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, req.(*ExecutePatchJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_GetPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPatchJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).GetPatchJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/GetPatchJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).GetPatchJob(ctx, req.(*GetPatchJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_CancelPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelPatchJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).CancelPatchJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/CancelPatchJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).CancelPatchJob(ctx, req.(*CancelPatchJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_ListPatchJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPatchJobsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).ListPatchJobs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).ListPatchJobs(ctx, req.(*ListPatchJobsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_ListPatchJobInstanceDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPatchJobInstanceDetailsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobInstanceDetails",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, req.(*ListPatchJobInstanceDetailsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_CreatePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreatePatchDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/CreatePatchDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, req.(*CreatePatchDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_GetPatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPatchDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/GetPatchDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, req.(*GetPatchDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_ListPatchDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPatchDeploymentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/ListPatchDeployments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, req.(*ListPatchDeploymentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OsConfigService_DeletePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeletePatchDeploymentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.osconfig.v1.OsConfigService/DeletePatchDeployment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, req.(*DeletePatchDeploymentRequest))
}
return interceptor(ctx, in, info, handler)
}
var _OsConfigService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.osconfig.v1.OsConfigService",
HandlerType: (*OsConfigServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ExecutePatchJob",
Handler: _OsConfigService_ExecutePatchJob_Handler,
},
{
MethodName: "GetPatchJob",
Handler: _OsConfigService_GetPatchJob_Handler,
},
{
MethodName: "CancelPatchJob",
Handler: _OsConfigService_CancelPatchJob_Handler,
},
{
MethodName: "ListPatchJobs",
Handler: _OsConfigService_ListPatchJobs_Handler,
},
{
MethodName: "ListPatchJobInstanceDetails",
Handler: _OsConfigService_ListPatchJobInstanceDetails_Handler,
},
{
MethodName: "CreatePatchDeployment",
Handler: _OsConfigService_CreatePatchDeployment_Handler,
},
{
MethodName: "GetPatchDeployment",
Handler: _OsConfigService_GetPatchDeployment_Handler,
},
{
MethodName: "ListPatchDeployments",
Handler: _OsConfigService_ListPatchDeployments_Handler,
},
{
MethodName: "DeletePatchDeployment",
Handler: _OsConfigService_DeletePatchDeployment_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/osconfig/v1/osconfig_service.proto",
}