pulumi/sdk/proto/go/resource.pb.go
joeduffy 7e48e8726b Add (back) component outputs
This change adds back component output properties.  Doing so
requires splitting the RPC interface for creating resources in
half, with an initial RegisterResource which contains all of the
input properties, and a final CompleteResource which optionally
contains any output properties synthesized by the component.
2017-11-20 17:38:09 -08:00

329 lines
12 KiB
Go

// Code generated by protoc-gen-go.
// source: resource.proto
// DO NOT EDIT!
package pulumirpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "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
// 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 *google_protobuf.Struct `protobuf:"bytes,5,opt,name=object" json:"object,omitempty"`
}
func (m *RegisterResourceRequest) Reset() { *m = RegisterResourceRequest{} }
func (m *RegisterResourceRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterResourceRequest) ProtoMessage() {}
func (*RegisterResourceRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
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() *google_protobuf.Struct {
if m != nil {
return m.Object
}
return nil
}
// RegisterResourceResponse reflects back the properties initialized during creation, if applicable.
type RegisterResourceResponse struct {
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
}
func (m *RegisterResourceResponse) Reset() { *m = RegisterResourceResponse{} }
func (m *RegisterResourceResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterResourceResponse) ProtoMessage() {}
func (*RegisterResourceResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *RegisterResourceResponse) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
// CompleteResourceRequest completes the registration of a resource, and optionally adds extra derived output
// properties to an existing resource that is in flight. It must be called once per registration.
type CompleteResourceRequest struct {
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
Extras *google_protobuf.Struct `protobuf:"bytes,2,opt,name=extras" json:"extras,omitempty"`
}
func (m *CompleteResourceRequest) Reset() { *m = CompleteResourceRequest{} }
func (m *CompleteResourceRequest) String() string { return proto.CompactTextString(m) }
func (*CompleteResourceRequest) ProtoMessage() {}
func (*CompleteResourceRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *CompleteResourceRequest) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
func (m *CompleteResourceRequest) GetExtras() *google_protobuf.Struct {
if m != nil {
return m.Extras
}
return nil
}
// CompleteResourceResponse is returned by the engine after a resource is completed. It includes any state
// that was populated by the resource provider so that the language engine can blit it into the resource objects.
type CompleteResourceResponse struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Object *google_protobuf.Struct `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
Stable bool `protobuf:"varint,3,opt,name=stable" json:"stable,omitempty"`
Stables []string `protobuf:"bytes,4,rep,name=stables" json:"stables,omitempty"`
}
func (m *CompleteResourceResponse) Reset() { *m = CompleteResourceResponse{} }
func (m *CompleteResourceResponse) String() string { return proto.CompactTextString(m) }
func (*CompleteResourceResponse) ProtoMessage() {}
func (*CompleteResourceResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *CompleteResourceResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *CompleteResourceResponse) GetObject() *google_protobuf.Struct {
if m != nil {
return m.Object
}
return nil
}
func (m *CompleteResourceResponse) GetStable() bool {
if m != nil {
return m.Stable
}
return false
}
func (m *CompleteResourceResponse) GetStables() []string {
if m != nil {
return m.Stables
}
return nil
}
func init() {
proto.RegisterType((*RegisterResourceRequest)(nil), "pulumirpc.RegisterResourceRequest")
proto.RegisterType((*RegisterResourceResponse)(nil), "pulumirpc.RegisterResourceResponse")
proto.RegisterType((*CompleteResourceRequest)(nil), "pulumirpc.CompleteResourceRequest")
proto.RegisterType((*CompleteResourceResponse)(nil), "pulumirpc.CompleteResourceResponse")
}
// 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)
RegisterResource(ctx context.Context, in *RegisterResourceRequest, opts ...grpc.CallOption) (*RegisterResourceResponse, error)
CompleteResource(ctx context.Context, in *CompleteResourceRequest, opts ...grpc.CallOption) (*CompleteResourceResponse, 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) 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) CompleteResource(ctx context.Context, in *CompleteResourceRequest, opts ...grpc.CallOption) (*CompleteResourceResponse, error) {
out := new(CompleteResourceResponse)
err := grpc.Invoke(ctx, "/pulumirpc.ResourceMonitor/CompleteResource", 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)
RegisterResource(context.Context, *RegisterResourceRequest) (*RegisterResourceResponse, error)
CompleteResource(context.Context, *CompleteResourceRequest) (*CompleteResourceResponse, 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_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_CompleteResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CompleteResourceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ResourceMonitorServer).CompleteResource(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pulumirpc.ResourceMonitor/CompleteResource",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ResourceMonitorServer).CompleteResource(ctx, req.(*CompleteResourceRequest))
}
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: "RegisterResource",
Handler: _ResourceMonitor_RegisterResource_Handler,
},
{
MethodName: "CompleteResource",
Handler: _ResourceMonitor_CompleteResource_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "resource.proto",
}
func init() { proto.RegisterFile("resource.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 368 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0xcb, 0x4e, 0xeb, 0x30,
0x14, 0x6c, 0xd2, 0xde, 0xdc, 0xf6, 0x5c, 0xa9, 0xb7, 0xf2, 0x82, 0x9a, 0x88, 0x45, 0x14, 0x36,
0x59, 0xa0, 0x54, 0x2a, 0x1f, 0xc0, 0x82, 0x15, 0x0b, 0x36, 0x66, 0x0b, 0x8b, 0x24, 0x3d, 0x54,
0x81, 0x24, 0x36, 0x7e, 0x54, 0xf0, 0x11, 0x48, 0x7c, 0x03, 0x5f, 0x8a, 0x12, 0xbb, 0xa8, 0x0f,
0x5a, 0xb1, 0x3b, 0x67, 0x3c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