mirror of https://github.com/pulumi/pulumi.git
659 lines
26 KiB
Go
659 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: resource.proto
|
|
|
|
package pulumirpc
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import empty "github.com/golang/protobuf/ptypes/empty"
|
|
import _struct "github.com/golang/protobuf/ptypes/struct"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// ReadResourceRequest contains enough information to uniquely qualify and read a resource's state.
|
|
type ReadResourceRequest struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
|
|
Parent string `protobuf:"bytes,4,opt,name=parent" json:"parent,omitempty"`
|
|
Properties *_struct.Struct `protobuf:"bytes,5,opt,name=properties" json:"properties,omitempty"`
|
|
Dependencies []string `protobuf:"bytes,6,rep,name=dependencies" json:"dependencies,omitempty"`
|
|
Provider string `protobuf:"bytes,7,opt,name=provider" json:"provider,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadResourceRequest) Reset() { *m = ReadResourceRequest{} }
|
|
func (m *ReadResourceRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadResourceRequest) ProtoMessage() {}
|
|
func (*ReadResourceRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{0}
|
|
}
|
|
func (m *ReadResourceRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadResourceRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadResourceRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ReadResourceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadResourceRequest.Merge(dst, src)
|
|
}
|
|
func (m *ReadResourceRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ReadResourceRequest.Size(m)
|
|
}
|
|
func (m *ReadResourceRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadResourceRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadResourceRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReadResourceRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetParent() string {
|
|
if m != nil {
|
|
return m.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetProperties() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Properties
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetDependencies() []string {
|
|
if m != nil {
|
|
return m.Dependencies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetProvider() string {
|
|
if m != nil {
|
|
return m.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ReadResourceResponse contains the result of reading a resource's state.
|
|
type ReadResourceResponse struct {
|
|
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
|
|
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadResourceResponse) Reset() { *m = ReadResourceResponse{} }
|
|
func (m *ReadResourceResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadResourceResponse) ProtoMessage() {}
|
|
func (*ReadResourceResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{1}
|
|
}
|
|
func (m *ReadResourceResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadResourceResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadResourceResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ReadResourceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadResourceResponse.Merge(dst, src)
|
|
}
|
|
func (m *ReadResourceResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ReadResourceResponse.Size(m)
|
|
}
|
|
func (m *ReadResourceResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadResourceResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadResourceResponse proto.InternalMessageInfo
|
|
|
|
func (m *ReadResourceResponse) GetUrn() string {
|
|
if m != nil {
|
|
return m.Urn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceResponse) GetProperties() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Properties
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// RegisterResourceRequest contains information about a resource object that was newly allocated.
|
|
type RegisterResourceRequest struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
|
Parent string `protobuf:"bytes,3,opt,name=parent" json:"parent,omitempty"`
|
|
Custom bool `protobuf:"varint,4,opt,name=custom" json:"custom,omitempty"`
|
|
Object *_struct.Struct `protobuf:"bytes,5,opt,name=object" json:"object,omitempty"`
|
|
Protect bool `protobuf:"varint,6,opt,name=protect" json:"protect,omitempty"`
|
|
Dependencies []string `protobuf:"bytes,7,rep,name=dependencies" json:"dependencies,omitempty"`
|
|
Provider string `protobuf:"bytes,8,opt,name=provider" json:"provider,omitempty"`
|
|
PropertyDependencies map[string]*RegisterResourceRequest_PropertyDependencies `protobuf:"bytes,9,rep,name=propertyDependencies" json:"propertyDependencies,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
DeleteBeforeReplace bool `protobuf:"varint,10,opt,name=deleteBeforeReplace" json:"deleteBeforeReplace,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) Reset() { *m = RegisterResourceRequest{} }
|
|
func (m *RegisterResourceRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterResourceRequest) ProtoMessage() {}
|
|
func (*RegisterResourceRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{2}
|
|
}
|
|
func (m *RegisterResourceRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RegisterResourceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceRequest.Merge(dst, src)
|
|
}
|
|
func (m *RegisterResourceRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceRequest.Size(m)
|
|
}
|
|
func (m *RegisterResourceRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceRequest proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceRequest) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetParent() string {
|
|
if m != nil {
|
|
return m.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetCustom() bool {
|
|
if m != nil {
|
|
return m.Custom
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetObject() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Object
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetProtect() bool {
|
|
if m != nil {
|
|
return m.Protect
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetDependencies() []string {
|
|
if m != nil {
|
|
return m.Dependencies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetProvider() string {
|
|
if m != nil {
|
|
return m.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetPropertyDependencies() map[string]*RegisterResourceRequest_PropertyDependencies {
|
|
if m != nil {
|
|
return m.PropertyDependencies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetDeleteBeforeReplace() bool {
|
|
if m != nil {
|
|
return m.DeleteBeforeReplace
|
|
}
|
|
return false
|
|
}
|
|
|
|
// PropertyDependencies describes the resources that a particular property depends on.
|
|
type RegisterResourceRequest_PropertyDependencies struct {
|
|
Urns []string `protobuf:"bytes,1,rep,name=urns" json:"urns,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceRequest_PropertyDependencies) Reset() {
|
|
*m = RegisterResourceRequest_PropertyDependencies{}
|
|
}
|
|
func (m *RegisterResourceRequest_PropertyDependencies) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*RegisterResourceRequest_PropertyDependencies) ProtoMessage() {}
|
|
func (*RegisterResourceRequest_PropertyDependencies) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{2, 0}
|
|
}
|
|
func (m *RegisterResourceRequest_PropertyDependencies) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceRequest_PropertyDependencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RegisterResourceRequest_PropertyDependencies) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.Merge(dst, src)
|
|
}
|
|
func (m *RegisterResourceRequest_PropertyDependencies) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.Size(m)
|
|
}
|
|
func (m *RegisterResourceRequest_PropertyDependencies) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceRequest_PropertyDependencies proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceRequest_PropertyDependencies) GetUrns() []string {
|
|
if m != nil {
|
|
return m.Urns
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// RegisterResourceResponse is returned by the engine after a resource has finished being initialized. It includes the
|
|
// auto-assigned URN, the provider-assigned ID, and any other properties initialized by the engine.
|
|
type RegisterResourceResponse struct {
|
|
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
|
|
Object *_struct.Struct `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`
|
|
Stable bool `protobuf:"varint,4,opt,name=stable" json:"stable,omitempty"`
|
|
Stables []string `protobuf:"bytes,5,rep,name=stables" json:"stables,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) Reset() { *m = RegisterResourceResponse{} }
|
|
func (m *RegisterResourceResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterResourceResponse) ProtoMessage() {}
|
|
func (*RegisterResourceResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{3}
|
|
}
|
|
func (m *RegisterResourceResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RegisterResourceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceResponse.Merge(dst, src)
|
|
}
|
|
func (m *RegisterResourceResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceResponse.Size(m)
|
|
}
|
|
func (m *RegisterResourceResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceResponse proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceResponse) GetUrn() string {
|
|
if m != nil {
|
|
return m.Urn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) GetObject() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Object
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) GetStable() bool {
|
|
if m != nil {
|
|
return m.Stable
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) GetStables() []string {
|
|
if m != nil {
|
|
return m.Stables
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// RegisterResourceOutputsRequest adds extra resource outputs created by the program after registration has occurred.
|
|
type RegisterResourceOutputsRequest struct {
|
|
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
|
|
Outputs *_struct.Struct `protobuf:"bytes,2,opt,name=outputs" json:"outputs,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceOutputsRequest) Reset() { *m = RegisterResourceOutputsRequest{} }
|
|
func (m *RegisterResourceOutputsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterResourceOutputsRequest) ProtoMessage() {}
|
|
func (*RegisterResourceOutputsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_resource_03e51d5764cd9ae8, []int{4}
|
|
}
|
|
func (m *RegisterResourceOutputsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceOutputsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceOutputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceOutputsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *RegisterResourceOutputsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceOutputsRequest.Merge(dst, src)
|
|
}
|
|
func (m *RegisterResourceOutputsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceOutputsRequest.Size(m)
|
|
}
|
|
func (m *RegisterResourceOutputsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceOutputsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceOutputsRequest proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceOutputsRequest) GetUrn() string {
|
|
if m != nil {
|
|
return m.Urn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceOutputsRequest) GetOutputs() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Outputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ReadResourceRequest)(nil), "pulumirpc.ReadResourceRequest")
|
|
proto.RegisterType((*ReadResourceResponse)(nil), "pulumirpc.ReadResourceResponse")
|
|
proto.RegisterType((*RegisterResourceRequest)(nil), "pulumirpc.RegisterResourceRequest")
|
|
proto.RegisterMapType((map[string]*RegisterResourceRequest_PropertyDependencies)(nil), "pulumirpc.RegisterResourceRequest.PropertyDependenciesEntry")
|
|
proto.RegisterType((*RegisterResourceRequest_PropertyDependencies)(nil), "pulumirpc.RegisterResourceRequest.PropertyDependencies")
|
|
proto.RegisterType((*RegisterResourceResponse)(nil), "pulumirpc.RegisterResourceResponse")
|
|
proto.RegisterType((*RegisterResourceOutputsRequest)(nil), "pulumirpc.RegisterResourceOutputsRequest")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// 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.SupportPackageIsVersion4
|
|
|
|
// Client API for ResourceMonitor service
|
|
|
|
type ResourceMonitorClient interface {
|
|
Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
|
|
ReadResource(ctx context.Context, in *ReadResourceRequest, opts ...grpc.CallOption) (*ReadResourceResponse, error)
|
|
RegisterResource(ctx context.Context, in *RegisterResourceRequest, opts ...grpc.CallOption) (*RegisterResourceResponse, error)
|
|
RegisterResourceOutputs(ctx context.Context, in *RegisterResourceOutputsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
}
|
|
|
|
type resourceMonitorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewResourceMonitorClient(cc *grpc.ClientConn) ResourceMonitorClient {
|
|
return &resourceMonitorClient{cc}
|
|
}
|
|
|
|
func (c *resourceMonitorClient) Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) {
|
|
out := new(InvokeResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.ResourceMonitor/Invoke", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) ReadResource(ctx context.Context, in *ReadResourceRequest, opts ...grpc.CallOption) (*ReadResourceResponse, error) {
|
|
out := new(ReadResourceResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.ResourceMonitor/ReadResource", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) RegisterResource(ctx context.Context, in *RegisterResourceRequest, opts ...grpc.CallOption) (*RegisterResourceResponse, error) {
|
|
out := new(RegisterResourceResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.ResourceMonitor/RegisterResource", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) RegisterResourceOutputs(ctx context.Context, in *RegisterResourceOutputsRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.ResourceMonitor/RegisterResourceOutputs", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for ResourceMonitor service
|
|
|
|
type ResourceMonitorServer interface {
|
|
Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
|
|
ReadResource(context.Context, *ReadResourceRequest) (*ReadResourceResponse, error)
|
|
RegisterResource(context.Context, *RegisterResourceRequest) (*RegisterResourceResponse, error)
|
|
RegisterResourceOutputs(context.Context, *RegisterResourceOutputsRequest) (*empty.Empty, error)
|
|
}
|
|
|
|
func RegisterResourceMonitorServer(s *grpc.Server, srv ResourceMonitorServer) {
|
|
s.RegisterService(&_ResourceMonitor_serviceDesc, srv)
|
|
}
|
|
|
|
func _ResourceMonitor_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InvokeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).Invoke(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/Invoke",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).Invoke(ctx, req.(*InvokeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ResourceMonitor_ReadResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReadResourceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).ReadResource(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/ReadResource",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).ReadResource(ctx, req.(*ReadResourceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ResourceMonitor_RegisterResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterResourceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).RegisterResource(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/RegisterResource",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).RegisterResource(ctx, req.(*RegisterResourceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ResourceMonitor_RegisterResourceOutputs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterResourceOutputsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).RegisterResourceOutputs(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/RegisterResourceOutputs",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).RegisterResourceOutputs(ctx, req.(*RegisterResourceOutputsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ResourceMonitor_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pulumirpc.ResourceMonitor",
|
|
HandlerType: (*ResourceMonitorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Invoke",
|
|
Handler: _ResourceMonitor_Invoke_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReadResource",
|
|
Handler: _ResourceMonitor_ReadResource_Handler,
|
|
},
|
|
{
|
|
MethodName: "RegisterResource",
|
|
Handler: _ResourceMonitor_RegisterResource_Handler,
|
|
},
|
|
{
|
|
MethodName: "RegisterResourceOutputs",
|
|
Handler: _ResourceMonitor_RegisterResourceOutputs_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "resource.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("resource.proto", fileDescriptor_resource_03e51d5764cd9ae8) }
|
|
|
|
var fileDescriptor_resource_03e51d5764cd9ae8 = []byte{
|
|
// 601 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
|
|
0x10, 0xae, 0x9d, 0xd6, 0x49, 0xa6, 0x55, 0xa8, 0xb6, 0x51, 0xeb, 0x1a, 0x54, 0x2a, 0x73, 0x01,
|
|
0x0e, 0x0e, 0x84, 0x43, 0x11, 0x42, 0x42, 0x42, 0xf4, 0xc0, 0xa1, 0x02, 0xcc, 0x19, 0x24, 0xc7,
|
|
0x9e, 0x46, 0xa6, 0x8e, 0x77, 0x59, 0xaf, 0x23, 0xe5, 0xc6, 0x9b, 0xf0, 0x48, 0xbc, 0x01, 0x27,
|
|
0x1e, 0x84, 0x5d, 0xaf, 0x1d, 0xe2, 0xd8, 0x69, 0x2a, 0x4e, 0x99, 0xbf, 0xfd, 0x76, 0xe6, 0x9b,
|
|
0x6f, 0x1d,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