mirror of https://github.com/pulumi/pulumi.git
1295 lines
52 KiB
Go
1295 lines
52 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: resource.proto
|
|
|
|
package pulumirpc
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
_struct "github.com/golang/protobuf/ptypes/struct"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// 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
|
|
|
|
// SupportsFeatureRequest allows a client to test if the resource monitor supports a certain feature, which it may use
|
|
// to control the format or types of messages it sends.
|
|
type SupportsFeatureRequest struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SupportsFeatureRequest) Reset() { *m = SupportsFeatureRequest{} }
|
|
func (m *SupportsFeatureRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SupportsFeatureRequest) ProtoMessage() {}
|
|
func (*SupportsFeatureRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_d1b72f771c35e3b8, []int{0}
|
|
}
|
|
|
|
func (m *SupportsFeatureRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SupportsFeatureRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SupportsFeatureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SupportsFeatureRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SupportsFeatureRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SupportsFeatureRequest.Merge(m, src)
|
|
}
|
|
func (m *SupportsFeatureRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SupportsFeatureRequest.Size(m)
|
|
}
|
|
func (m *SupportsFeatureRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SupportsFeatureRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SupportsFeatureRequest proto.InternalMessageInfo
|
|
|
|
func (m *SupportsFeatureRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SupportsFeatureResponse struct {
|
|
HasSupport bool `protobuf:"varint,1,opt,name=hasSupport,proto3" json:"hasSupport,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SupportsFeatureResponse) Reset() { *m = SupportsFeatureResponse{} }
|
|
func (m *SupportsFeatureResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SupportsFeatureResponse) ProtoMessage() {}
|
|
func (*SupportsFeatureResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_d1b72f771c35e3b8, []int{1}
|
|
}
|
|
|
|
func (m *SupportsFeatureResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SupportsFeatureResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SupportsFeatureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SupportsFeatureResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SupportsFeatureResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SupportsFeatureResponse.Merge(m, src)
|
|
}
|
|
func (m *SupportsFeatureResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SupportsFeatureResponse.Size(m)
|
|
}
|
|
func (m *SupportsFeatureResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SupportsFeatureResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SupportsFeatureResponse proto.InternalMessageInfo
|
|
|
|
func (m *SupportsFeatureResponse) GetHasSupport() bool {
|
|
if m != nil {
|
|
return m.HasSupport
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ReadResourceRequest contains enough information to uniquely qualify and read a resource's state.
|
|
type ReadResourceRequest struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
Properties *_struct.Struct `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"`
|
|
Dependencies []string `protobuf:"bytes,6,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
|
|
Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
|
|
AcceptSecrets bool `protobuf:"varint,9,opt,name=acceptSecrets,proto3" json:"acceptSecrets,omitempty"`
|
|
AdditionalSecretOutputs []string `protobuf:"bytes,10,rep,name=additionalSecretOutputs,proto3" json:"additionalSecretOutputs,omitempty"`
|
|
Aliases []string `protobuf:"bytes,11,rep,name=aliases,proto3" json:"aliases,omitempty"`
|
|
AcceptResources bool `protobuf:"varint,12,opt,name=acceptResources,proto3" json:"acceptResources,omitempty"`
|
|
PluginDownloadURL string `protobuf:"bytes,13,opt,name=pluginDownloadURL,proto3" json:"pluginDownloadURL,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_d1b72f771c35e3b8, []int{2}
|
|
}
|
|
|
|
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 (m *ReadResourceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadResourceRequest.Merge(m, 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 ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetAcceptSecrets() bool {
|
|
if m != nil {
|
|
return m.AcceptSecrets
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetAdditionalSecretOutputs() []string {
|
|
if m != nil {
|
|
return m.AdditionalSecretOutputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetAliases() []string {
|
|
if m != nil {
|
|
return m.Aliases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetAcceptResources() bool {
|
|
if m != nil {
|
|
return m.AcceptResources
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ReadResourceRequest) GetPluginDownloadURL() string {
|
|
if m != nil {
|
|
return m.PluginDownloadURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ReadResourceResponse contains the result of reading a resource's state.
|
|
type ReadResourceResponse struct {
|
|
Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"`
|
|
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" 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_d1b72f771c35e3b8, []int{3}
|
|
}
|
|
|
|
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 (m *ReadResourceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadResourceResponse.Merge(m, 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,proto3" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
Custom bool `protobuf:"varint,4,opt,name=custom,proto3" json:"custom,omitempty"`
|
|
Object *_struct.Struct `protobuf:"bytes,5,opt,name=object,proto3" json:"object,omitempty"`
|
|
Protect bool `protobuf:"varint,6,opt,name=protect,proto3" json:"protect,omitempty"`
|
|
Dependencies []string `protobuf:"bytes,7,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
|
|
Provider string `protobuf:"bytes,8,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
PropertyDependencies map[string]*RegisterResourceRequest_PropertyDependencies `protobuf:"bytes,9,rep,name=propertyDependencies,proto3" json:"propertyDependencies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
DeleteBeforeReplace bool `protobuf:"varint,10,opt,name=deleteBeforeReplace,proto3" json:"deleteBeforeReplace,omitempty"`
|
|
Version string `protobuf:"bytes,11,opt,name=version,proto3" json:"version,omitempty"`
|
|
IgnoreChanges []string `protobuf:"bytes,12,rep,name=ignoreChanges,proto3" json:"ignoreChanges,omitempty"`
|
|
AcceptSecrets bool `protobuf:"varint,13,opt,name=acceptSecrets,proto3" json:"acceptSecrets,omitempty"`
|
|
AdditionalSecretOutputs []string `protobuf:"bytes,14,rep,name=additionalSecretOutputs,proto3" json:"additionalSecretOutputs,omitempty"`
|
|
Aliases []string `protobuf:"bytes,15,rep,name=aliases,proto3" json:"aliases,omitempty"`
|
|
ImportId string `protobuf:"bytes,16,opt,name=importId,proto3" json:"importId,omitempty"`
|
|
CustomTimeouts *RegisterResourceRequest_CustomTimeouts `protobuf:"bytes,17,opt,name=customTimeouts,proto3" json:"customTimeouts,omitempty"`
|
|
DeleteBeforeReplaceDefined bool `protobuf:"varint,18,opt,name=deleteBeforeReplaceDefined,proto3" json:"deleteBeforeReplaceDefined,omitempty"`
|
|
SupportsPartialValues bool `protobuf:"varint,19,opt,name=supportsPartialValues,proto3" json:"supportsPartialValues,omitempty"`
|
|
Remote bool `protobuf:"varint,20,opt,name=remote,proto3" json:"remote,omitempty"`
|
|
AcceptResources bool `protobuf:"varint,21,opt,name=acceptResources,proto3" json:"acceptResources,omitempty"`
|
|
Providers map[string]string `protobuf:"bytes,22,rep,name=providers,proto3" json:"providers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
ReplaceOnChanges []string `protobuf:"bytes,23,rep,name=replaceOnChanges,proto3" json:"replaceOnChanges,omitempty"`
|
|
PluginDownloadURL string `protobuf:"bytes,24,opt,name=pluginDownloadURL,proto3" json:"pluginDownloadURL,omitempty"`
|
|
RetainOnDelete bool `protobuf:"varint,25,opt,name=retainOnDelete,proto3" json:"retainOnDelete,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_d1b72f771c35e3b8, []int{4}
|
|
}
|
|
|
|
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 (m *RegisterResourceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceRequest.Merge(m, 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
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetIgnoreChanges() []string {
|
|
if m != nil {
|
|
return m.IgnoreChanges
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetAcceptSecrets() bool {
|
|
if m != nil {
|
|
return m.AcceptSecrets
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetAdditionalSecretOutputs() []string {
|
|
if m != nil {
|
|
return m.AdditionalSecretOutputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetAliases() []string {
|
|
if m != nil {
|
|
return m.Aliases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetImportId() string {
|
|
if m != nil {
|
|
return m.ImportId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetCustomTimeouts() *RegisterResourceRequest_CustomTimeouts {
|
|
if m != nil {
|
|
return m.CustomTimeouts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetDeleteBeforeReplaceDefined() bool {
|
|
if m != nil {
|
|
return m.DeleteBeforeReplaceDefined
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetSupportsPartialValues() bool {
|
|
if m != nil {
|
|
return m.SupportsPartialValues
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetRemote() bool {
|
|
if m != nil {
|
|
return m.Remote
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetAcceptResources() bool {
|
|
if m != nil {
|
|
return m.AcceptResources
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetProviders() map[string]string {
|
|
if m != nil {
|
|
return m.Providers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetReplaceOnChanges() []string {
|
|
if m != nil {
|
|
return m.ReplaceOnChanges
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetPluginDownloadURL() string {
|
|
if m != nil {
|
|
return m.PluginDownloadURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest) GetRetainOnDelete() bool {
|
|
if m != nil {
|
|
return m.RetainOnDelete
|
|
}
|
|
return false
|
|
}
|
|
|
|
// PropertyDependencies describes the resources that a particular property depends on.
|
|
type RegisterResourceRequest_PropertyDependencies struct {
|
|
Urns []string `protobuf:"bytes,1,rep,name=urns,proto3" 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_d1b72f771c35e3b8, []int{4, 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 (m *RegisterResourceRequest_PropertyDependencies) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceRequest_PropertyDependencies.Merge(m, 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
|
|
}
|
|
|
|
// CustomTimeouts allows a user to be able to create a set of custom timeout parameters.
|
|
type RegisterResourceRequest_CustomTimeouts struct {
|
|
Create string `protobuf:"bytes,1,opt,name=create,proto3" json:"create,omitempty"`
|
|
Update string `protobuf:"bytes,2,opt,name=update,proto3" json:"update,omitempty"`
|
|
Delete string `protobuf:"bytes,3,opt,name=delete,proto3" json:"delete,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceRequest_CustomTimeouts) Reset() {
|
|
*m = RegisterResourceRequest_CustomTimeouts{}
|
|
}
|
|
func (m *RegisterResourceRequest_CustomTimeouts) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterResourceRequest_CustomTimeouts) ProtoMessage() {}
|
|
func (*RegisterResourceRequest_CustomTimeouts) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_d1b72f771c35e3b8, []int{4, 1}
|
|
}
|
|
|
|
func (m *RegisterResourceRequest_CustomTimeouts) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceRequest_CustomTimeouts.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceRequest_CustomTimeouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceRequest_CustomTimeouts.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterResourceRequest_CustomTimeouts) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceRequest_CustomTimeouts.Merge(m, src)
|
|
}
|
|
func (m *RegisterResourceRequest_CustomTimeouts) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceRequest_CustomTimeouts.Size(m)
|
|
}
|
|
func (m *RegisterResourceRequest_CustomTimeouts) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceRequest_CustomTimeouts.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceRequest_CustomTimeouts proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceRequest_CustomTimeouts) GetCreate() string {
|
|
if m != nil {
|
|
return m.Create
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest_CustomTimeouts) GetUpdate() string {
|
|
if m != nil {
|
|
return m.Update
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RegisterResourceRequest_CustomTimeouts) GetDelete() string {
|
|
if m != nil {
|
|
return m.Delete
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 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,proto3" json:"urn,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
Object *_struct.Struct `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
|
|
Stable bool `protobuf:"varint,4,opt,name=stable,proto3" json:"stable,omitempty"`
|
|
Stables []string `protobuf:"bytes,5,rep,name=stables,proto3" json:"stables,omitempty"`
|
|
PropertyDependencies map[string]*RegisterResourceResponse_PropertyDependencies `protobuf:"bytes,6,rep,name=propertyDependencies,proto3" json:"propertyDependencies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
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_d1b72f771c35e3b8, []int{5}
|
|
}
|
|
|
|
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 (m *RegisterResourceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceResponse.Merge(m, 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
|
|
}
|
|
|
|
func (m *RegisterResourceResponse) GetPropertyDependencies() map[string]*RegisterResourceResponse_PropertyDependencies {
|
|
if m != nil {
|
|
return m.PropertyDependencies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PropertyDependencies describes the resources that a particular property depends on.
|
|
type RegisterResourceResponse_PropertyDependencies struct {
|
|
Urns []string `protobuf:"bytes,1,rep,name=urns,proto3" json:"urns,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResourceResponse_PropertyDependencies) Reset() {
|
|
*m = RegisterResourceResponse_PropertyDependencies{}
|
|
}
|
|
func (m *RegisterResourceResponse_PropertyDependencies) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*RegisterResourceResponse_PropertyDependencies) ProtoMessage() {}
|
|
func (*RegisterResourceResponse_PropertyDependencies) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_d1b72f771c35e3b8, []int{5, 0}
|
|
}
|
|
|
|
func (m *RegisterResourceResponse_PropertyDependencies) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResourceResponse_PropertyDependencies.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResourceResponse_PropertyDependencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResourceResponse_PropertyDependencies.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterResourceResponse_PropertyDependencies) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceResponse_PropertyDependencies.Merge(m, src)
|
|
}
|
|
func (m *RegisterResourceResponse_PropertyDependencies) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResourceResponse_PropertyDependencies.Size(m)
|
|
}
|
|
func (m *RegisterResourceResponse_PropertyDependencies) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResourceResponse_PropertyDependencies.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResourceResponse_PropertyDependencies proto.InternalMessageInfo
|
|
|
|
func (m *RegisterResourceResponse_PropertyDependencies) GetUrns() []string {
|
|
if m != nil {
|
|
return m.Urns
|
|
}
|
|
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,proto3" json:"urn,omitempty"`
|
|
Outputs *_struct.Struct `protobuf:"bytes,2,opt,name=outputs,proto3" 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_d1b72f771c35e3b8, []int{6}
|
|
}
|
|
|
|
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 (m *RegisterResourceOutputsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResourceOutputsRequest.Merge(m, 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
|
|
}
|
|
|
|
type ResourceInvokeRequest struct {
|
|
Tok string `protobuf:"bytes,1,opt,name=tok,proto3" json:"tok,omitempty"`
|
|
Args *_struct.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
|
|
Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
AcceptResources bool `protobuf:"varint,5,opt,name=acceptResources,proto3" json:"acceptResources,omitempty"`
|
|
PluginDownloadURL string `protobuf:"bytes,6,opt,name=pluginDownloadURL,proto3" json:"pluginDownloadURL,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) Reset() { *m = ResourceInvokeRequest{} }
|
|
func (m *ResourceInvokeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ResourceInvokeRequest) ProtoMessage() {}
|
|
func (*ResourceInvokeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_d1b72f771c35e3b8, []int{7}
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ResourceInvokeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ResourceInvokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ResourceInvokeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ResourceInvokeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ResourceInvokeRequest.Merge(m, src)
|
|
}
|
|
func (m *ResourceInvokeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ResourceInvokeRequest.Size(m)
|
|
}
|
|
func (m *ResourceInvokeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ResourceInvokeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ResourceInvokeRequest proto.InternalMessageInfo
|
|
|
|
func (m *ResourceInvokeRequest) GetTok() string {
|
|
if m != nil {
|
|
return m.Tok
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) GetArgs() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Args
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) GetProvider() string {
|
|
if m != nil {
|
|
return m.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) GetAcceptResources() bool {
|
|
if m != nil {
|
|
return m.AcceptResources
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ResourceInvokeRequest) GetPluginDownloadURL() string {
|
|
if m != nil {
|
|
return m.PluginDownloadURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*SupportsFeatureRequest)(nil), "pulumirpc.SupportsFeatureRequest")
|
|
proto.RegisterType((*SupportsFeatureResponse)(nil), "pulumirpc.SupportsFeatureResponse")
|
|
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.RegisterMapType((map[string]string)(nil), "pulumirpc.RegisterResourceRequest.ProvidersEntry")
|
|
proto.RegisterType((*RegisterResourceRequest_PropertyDependencies)(nil), "pulumirpc.RegisterResourceRequest.PropertyDependencies")
|
|
proto.RegisterType((*RegisterResourceRequest_CustomTimeouts)(nil), "pulumirpc.RegisterResourceRequest.CustomTimeouts")
|
|
proto.RegisterType((*RegisterResourceResponse)(nil), "pulumirpc.RegisterResourceResponse")
|
|
proto.RegisterMapType((map[string]*RegisterResourceResponse_PropertyDependencies)(nil), "pulumirpc.RegisterResourceResponse.PropertyDependenciesEntry")
|
|
proto.RegisterType((*RegisterResourceResponse_PropertyDependencies)(nil), "pulumirpc.RegisterResourceResponse.PropertyDependencies")
|
|
proto.RegisterType((*RegisterResourceOutputsRequest)(nil), "pulumirpc.RegisterResourceOutputsRequest")
|
|
proto.RegisterType((*ResourceInvokeRequest)(nil), "pulumirpc.ResourceInvokeRequest")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("resource.proto", fileDescriptor_d1b72f771c35e3b8) }
|
|
|
|
var fileDescriptor_d1b72f771c35e3b8 = []byte{
|
|
// 1110 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0x1b, 0x45,
|
|
0x14, 0xae, 0x7f, 0xea, 0xd8, 0x27, 0xa9, 0x93, 0x4e, 0x13, 0x7b, 0xb2, 0xa0, 0x10, 0x16, 0x84,
|
|
0x4c, 0x41, 0x4e, 0x13, 0x90, 0x9a, 0xa2, 0xc2, 0x05, 0x49, 0x41, 0x95, 0x28, 0x29, 0x1b, 0x40,
|
|
0x80, 0x04, 0xd2, 0xc4, 0x7b, 0xe2, 0x2e, 0x59, 0xef, 0x6c, 0x67, 0x67, 0x83, 0x7c, 0x07, 0xcf,
|
|
0xc2, 0x9b, 0x70, 0xc9, 0x35, 0x8f, 0xc0, 0x83, 0xa0, 0x99, 0xd9, 0x71, 0x77, 0xbd, 0xeb, 0xc4,
|
|
0xa9, 0xb8, 0xdb, 0xf3, 0x3b, 0x33, 0xe7, 0x7c, 0xe7, 0x9b, 0x59, 0xe8, 0x0a, 0x4c, 0x78, 0x2a,
|
|
0x46, 0x38, 0x8c, 0x05, 0x97, 0x9c, 0x74, 0xe2, 0x34, 0x4c, 0x27, 0x81, 0x88, 0x47, 0xce, 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 0x49,
|
|
0x76, 0x0b, 0x60, 0xa8, 0x28, 0xb4, 0xb3, 0x9d, 0xf3, 0xb0, 0x96, 0x59, 0xa2, 0x13, 0x58, 0x3b,
|
|
0x95, 0x02, 0xd9, 0xe4, 0x7f, 0x49, 0xf7, 0xa0, 0x46, 0x1e, 0x41, 0xf3, 0x88, 0x85, 0x21, 0xe9,
|
|
0xe5, 0xdc, 0x94, 0xc2, 0x86, 0xf7, 0x4b, 0xfa, 0xd9, 0x5e, 0xbe, 0x81, 0xb5, 0xfc, 0x03, 0x93,
|
|
0xec, 0x14, 0xf6, 0x52, 0xfa, 0x8b, 0x70, 0xde, 0x5a, 0x68, 0x9f, 0xa5, 0xfc, 0x19, 0x36, 0xe6,
|
|
0x51, 0x4e, 0xdc, 0xeb, 0x09, 0xd4, 0x79, 0x67, 0x89, 0x11, 0x73, 0x6f, 0x91, 0x5f, 0xca, 0xcf,
|
|
0x55, 0xfb, 0x0e, 0x79, 0xff, 0x8a, 0x0c, 0xc5, 0x41, 0x73, 0x7a, 0x25, 0xa4, 0x3f, 0x51, 0xbf,
|
|
0x75, 0xee, 0xad, 0xb3, 0x96, 0xd6, 0x7c, 0xf4, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x7a,
|
|
0xa7, 0xbf, 0x13, 0x0e, 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
|
|
|
|
// ResourceMonitorClient is the client API for ResourceMonitor service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ResourceMonitorClient interface {
|
|
SupportsFeature(ctx context.Context, in *SupportsFeatureRequest, opts ...grpc.CallOption) (*SupportsFeatureResponse, error)
|
|
Invoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
|
|
StreamInvoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error)
|
|
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, 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.ClientConnInterface
|
|
}
|
|
|
|
func NewResourceMonitorClient(cc grpc.ClientConnInterface) ResourceMonitorClient {
|
|
return &resourceMonitorClient{cc}
|
|
}
|
|
|
|
func (c *resourceMonitorClient) SupportsFeature(ctx context.Context, in *SupportsFeatureRequest, opts ...grpc.CallOption) (*SupportsFeatureResponse, error) {
|
|
out := new(SupportsFeatureResponse)
|
|
err := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/SupportsFeature", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) Invoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) {
|
|
out := new(InvokeResponse)
|
|
err := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/Invoke", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) StreamInvoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_ResourceMonitor_serviceDesc.Streams[0], "/pulumirpc.ResourceMonitor/StreamInvoke", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &resourceMonitorStreamInvokeClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type ResourceMonitor_StreamInvokeClient interface {
|
|
Recv() (*InvokeResponse, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type resourceMonitorStreamInvokeClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *resourceMonitorStreamInvokeClient) Recv() (*InvokeResponse, error) {
|
|
m := new(InvokeResponse)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *resourceMonitorClient) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) {
|
|
out := new(CallResponse)
|
|
err := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/Call", in, out, 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 := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/ReadResource", in, out, 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 := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/RegisterResource", in, out, 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 := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/RegisterResourceOutputs", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ResourceMonitorServer is the server API for ResourceMonitor service.
|
|
type ResourceMonitorServer interface {
|
|
SupportsFeature(context.Context, *SupportsFeatureRequest) (*SupportsFeatureResponse, error)
|
|
Invoke(context.Context, *ResourceInvokeRequest) (*InvokeResponse, error)
|
|
StreamInvoke(*ResourceInvokeRequest, ResourceMonitor_StreamInvokeServer) error
|
|
Call(context.Context, *CallRequest) (*CallResponse, error)
|
|
ReadResource(context.Context, *ReadResourceRequest) (*ReadResourceResponse, error)
|
|
RegisterResource(context.Context, *RegisterResourceRequest) (*RegisterResourceResponse, error)
|
|
RegisterResourceOutputs(context.Context, *RegisterResourceOutputsRequest) (*empty.Empty, error)
|
|
}
|
|
|
|
// UnimplementedResourceMonitorServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedResourceMonitorServer struct {
|
|
}
|
|
|
|
func (*UnimplementedResourceMonitorServer) SupportsFeature(ctx context.Context, req *SupportsFeatureRequest) (*SupportsFeatureResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SupportsFeature not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) Invoke(ctx context.Context, req *ResourceInvokeRequest) (*InvokeResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) StreamInvoke(req *ResourceInvokeRequest, srv ResourceMonitor_StreamInvokeServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method StreamInvoke not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) ReadResource(ctx context.Context, req *ReadResourceRequest) (*ReadResourceResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReadResource not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) RegisterResource(ctx context.Context, req *RegisterResourceRequest) (*RegisterResourceResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterResource not implemented")
|
|
}
|
|
func (*UnimplementedResourceMonitorServer) RegisterResourceOutputs(ctx context.Context, req *RegisterResourceOutputsRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterResourceOutputs not implemented")
|
|
}
|
|
|
|
func RegisterResourceMonitorServer(s *grpc.Server, srv ResourceMonitorServer) {
|
|
s.RegisterService(&_ResourceMonitor_serviceDesc, srv)
|
|
}
|
|
|
|
func _ResourceMonitor_SupportsFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SupportsFeatureRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).SupportsFeature(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/SupportsFeature",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).SupportsFeature(ctx, req.(*SupportsFeatureRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ResourceMonitor_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ResourceInvokeRequest)
|
|
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.(*ResourceInvokeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ResourceMonitor_StreamInvoke_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(ResourceInvokeRequest)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(ResourceMonitorServer).StreamInvoke(m, &resourceMonitorStreamInvokeServer{stream})
|
|
}
|
|
|
|
type ResourceMonitor_StreamInvokeServer interface {
|
|
Send(*InvokeResponse) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type resourceMonitorStreamInvokeServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *resourceMonitorStreamInvokeServer) Send(m *InvokeResponse) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _ResourceMonitor_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CallRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ResourceMonitorServer).Call(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.ResourceMonitor/Call",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ResourceMonitorServer).Call(ctx, req.(*CallRequest))
|
|
}
|
|
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: "SupportsFeature",
|
|
Handler: _ResourceMonitor_SupportsFeature_Handler,
|
|
},
|
|
{
|
|
MethodName: "Invoke",
|
|
Handler: _ResourceMonitor_Invoke_Handler,
|
|
},
|
|
{
|
|
MethodName: "Call",
|
|
Handler: _ResourceMonitor_Call_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReadResource",
|
|
Handler: _ResourceMonitor_ReadResource_Handler,
|
|
},
|
|
{
|
|
MethodName: "RegisterResource",
|
|
Handler: _ResourceMonitor_RegisterResource_Handler,
|
|
},
|
|
{
|
|
MethodName: "RegisterResourceOutputs",
|
|
Handler: _ResourceMonitor_RegisterResourceOutputs_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "StreamInvoke",
|
|
Handler: _ResourceMonitor_StreamInvoke_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "resource.proto",
|
|
}
|