| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/osconfig/v1beta/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/v1beta/osconfig_service.proto", fileDescriptor_9608bfa361081d69) |
| } |
| |
| var fileDescriptor_9608bfa361081d69 = []byte{ |
| // 894 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xcf, 0x6f, 0xe3, 0x44, |
| 0x14, 0xd6, 0x20, 0xd4, 0xc3, 0x40, 0x5b, 0x32, 0x6a, 0x29, 0x4a, 0x39, 0x54, 0x96, 0x00, 0x35, |
| 0x34, 0x36, 0x4d, 0xaa, 0xa6, 0x35, 0x42, 0x34, 0x6d, 0xda, 0x40, 0xa9, 0x44, 0x01, 0x01, 0x12, |
| 0x97, 0xc8, 0x71, 0x27, 0xae, 0x5b, 0xc7, 0x63, 0x32, 0x93, 0x86, 0x80, 0x7a, 0x80, 0x7f, 0x01, |
| 0x89, 0x1b, 0x87, 0xbd, 0xec, 0x6a, 0xf7, 0xb8, 0x7f, 0xc1, 0x4a, 0x7b, 0xeb, 0x61, 0x0f, 0xbb, |
| 0xb7, 0x5c, 0xf6, 0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 0xdd, 0x4d, 0x75, 0x25, 0x62, |
| 0x10, 0xf0, 0x32, 0x3c, 0x9b, 0xaa, 0x26, 0x69, 0x3f, 0xaf, 0xaa, 0xe7, 0x8c, 0x79, 0x54, 0xd7, |
| 0xb4, 0x5e, 0xaf, 0x37, 0x16, 0xd4, 0x8c, 0x2e, 0x3b, 0x0f, 0x3e, 0xdc, 0x8b, 0x9e, 0x63, 0xb0, |
| 0x16, 0xe9, 0xb4, 0xf7, 0x7b, 0x70, 0xcd, 0x24, 0xed, 0x58, 0x79, 0xfb, 0xf3, 0xe2, 0x23, 0xfd, |
| 0xd4, 0x9f, 0xd7, 0x6f, 0xb5, 0x30, 0xd9, 0x22, 0x8e, 0xe1, 0x5a, 0x2a, 0xe9, 0x58, 0x9a, 0x85, |
| 0x5d, 0x3e, 0x4b, 0x6d, 0x78, 0xe2, 0xf4, 0x3f, 0x84, 0x2f, 0xc5, 0x73, 0x73, 0x8e, 0x03, 0xca, |
| 0x6f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xab, 0x99, 0x84, 0x44, 0x0d, 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) |
| // Create an OS Config guest policy. |
| CreateGuestPolicy(ctx context.Context, in *CreateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) |
| // Get an OS Config guest policy. |
| GetGuestPolicy(ctx context.Context, in *GetGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) |
| // Get a page of OS Config guest policies. |
| ListGuestPolicies(ctx context.Context, in *ListGuestPoliciesRequest, opts ...grpc.CallOption) (*ListGuestPoliciesResponse, error) |
| // Update an OS Config guest policy. |
| UpdateGuestPolicy(ctx context.Context, in *UpdateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) |
| // Delete an OS Config guest policy. |
| DeleteGuestPolicy(ctx context.Context, in *DeleteGuestPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Lookup the effective guest policy that applies to a VM instance. This |
| // lookup merges all policies that are assigned to the instance ancestry. |
| LookupEffectiveGuestPolicy(ctx context.Context, in *LookupEffectiveGuestPolicyRequest, opts ...grpc.CallOption) (*EffectiveGuestPolicy, 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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.OsConfigService/DeletePatchDeployment", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) CreateGuestPolicy(ctx context.Context, in *CreateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) { |
| out := new(GuestPolicy) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/CreateGuestPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) GetGuestPolicy(ctx context.Context, in *GetGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) { |
| out := new(GuestPolicy) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/GetGuestPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) ListGuestPolicies(ctx context.Context, in *ListGuestPoliciesRequest, opts ...grpc.CallOption) (*ListGuestPoliciesResponse, error) { |
| out := new(ListGuestPoliciesResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/ListGuestPolicies", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) UpdateGuestPolicy(ctx context.Context, in *UpdateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) { |
| out := new(GuestPolicy) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/UpdateGuestPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) DeleteGuestPolicy(ctx context.Context, in *DeleteGuestPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/DeleteGuestPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *osConfigServiceClient) LookupEffectiveGuestPolicy(ctx context.Context, in *LookupEffectiveGuestPolicyRequest, opts ...grpc.CallOption) (*EffectiveGuestPolicy, error) { |
| out := new(EffectiveGuestPolicy) |
| err := c.cc.Invoke(ctx, "/google.cloud.osconfig.v1beta.OsConfigService/LookupEffectiveGuestPolicy", 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) |
| // Create an OS Config guest policy. |
| CreateGuestPolicy(context.Context, *CreateGuestPolicyRequest) (*GuestPolicy, error) |
| // Get an OS Config guest policy. |
| GetGuestPolicy(context.Context, *GetGuestPolicyRequest) (*GuestPolicy, error) |
| // Get a page of OS Config guest policies. |
| ListGuestPolicies(context.Context, *ListGuestPoliciesRequest) (*ListGuestPoliciesResponse, error) |
| // Update an OS Config guest policy. |
| UpdateGuestPolicy(context.Context, *UpdateGuestPolicyRequest) (*GuestPolicy, error) |
| // Delete an OS Config guest policy. |
| DeleteGuestPolicy(context.Context, *DeleteGuestPolicyRequest) (*empty.Empty, error) |
| // Lookup the effective guest policy that applies to a VM instance. This |
| // lookup merges all policies that are assigned to the instance ancestry. |
| LookupEffectiveGuestPolicy(context.Context, *LookupEffectiveGuestPolicyRequest) (*EffectiveGuestPolicy, 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 (*UnimplementedOsConfigServiceServer) CreateGuestPolicy(ctx context.Context, req *CreateGuestPolicyRequest) (*GuestPolicy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreateGuestPolicy not implemented") |
| } |
| func (*UnimplementedOsConfigServiceServer) GetGuestPolicy(ctx context.Context, req *GetGuestPolicyRequest) (*GuestPolicy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetGuestPolicy not implemented") |
| } |
| func (*UnimplementedOsConfigServiceServer) ListGuestPolicies(ctx context.Context, req *ListGuestPoliciesRequest) (*ListGuestPoliciesResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListGuestPolicies not implemented") |
| } |
| func (*UnimplementedOsConfigServiceServer) UpdateGuestPolicy(ctx context.Context, req *UpdateGuestPolicyRequest) (*GuestPolicy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateGuestPolicy not implemented") |
| } |
| func (*UnimplementedOsConfigServiceServer) DeleteGuestPolicy(ctx context.Context, req *DeleteGuestPolicyRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteGuestPolicy not implemented") |
| } |
| func (*UnimplementedOsConfigServiceServer) LookupEffectiveGuestPolicy(ctx context.Context, req *LookupEffectiveGuestPolicyRequest) (*EffectiveGuestPolicy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method LookupEffectiveGuestPolicy 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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.OsConfigService/DeletePatchDeployment", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, req.(*DeletePatchDeploymentRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_CreateGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateGuestPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).CreateGuestPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/CreateGuestPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).CreateGuestPolicy(ctx, req.(*CreateGuestPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_GetGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetGuestPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).GetGuestPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/GetGuestPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).GetGuestPolicy(ctx, req.(*GetGuestPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_ListGuestPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListGuestPoliciesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).ListGuestPolicies(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/ListGuestPolicies", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).ListGuestPolicies(ctx, req.(*ListGuestPoliciesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_UpdateGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateGuestPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).UpdateGuestPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/UpdateGuestPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).UpdateGuestPolicy(ctx, req.(*UpdateGuestPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_DeleteGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(DeleteGuestPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).DeleteGuestPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/DeleteGuestPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).DeleteGuestPolicy(ctx, req.(*DeleteGuestPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OsConfigService_LookupEffectiveGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(LookupEffectiveGuestPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OsConfigServiceServer).LookupEffectiveGuestPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.osconfig.v1beta.OsConfigService/LookupEffectiveGuestPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OsConfigServiceServer).LookupEffectiveGuestPolicy(ctx, req.(*LookupEffectiveGuestPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OsConfigService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.osconfig.v1beta.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, |
| }, |
| { |
| MethodName: "CreateGuestPolicy", |
| Handler: _OsConfigService_CreateGuestPolicy_Handler, |
| }, |
| { |
| MethodName: "GetGuestPolicy", |
| Handler: _OsConfigService_GetGuestPolicy_Handler, |
| }, |
| { |
| MethodName: "ListGuestPolicies", |
| Handler: _OsConfigService_ListGuestPolicies_Handler, |
| }, |
| { |
| MethodName: "UpdateGuestPolicy", |
| Handler: _OsConfigService_UpdateGuestPolicy_Handler, |
| }, |
| { |
| MethodName: "DeleteGuestPolicy", |
| Handler: _OsConfigService_DeleteGuestPolicy_Handler, |
| }, |
| { |
| MethodName: "LookupEffectiveGuestPolicy", |
| Handler: _OsConfigService_LookupEffectiveGuestPolicy_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/osconfig/v1beta/osconfig_service.proto", |
| } |