resourcemapping

package
v0.2.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause-Clear Imports: 19 Imported by: 4

Documentation

Overview

Package resourcemapping is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ResourceMappingService_ListResourceMappingGroups_FullMethodName       = "/policy.resourcemapping.ResourceMappingService/ListResourceMappingGroups"
	ResourceMappingService_GetResourceMappingGroup_FullMethodName         = "/policy.resourcemapping.ResourceMappingService/GetResourceMappingGroup"
	ResourceMappingService_CreateResourceMappingGroup_FullMethodName      = "/policy.resourcemapping.ResourceMappingService/CreateResourceMappingGroup"
	ResourceMappingService_UpdateResourceMappingGroup_FullMethodName      = "/policy.resourcemapping.ResourceMappingService/UpdateResourceMappingGroup"
	ResourceMappingService_DeleteResourceMappingGroup_FullMethodName      = "/policy.resourcemapping.ResourceMappingService/DeleteResourceMappingGroup"
	ResourceMappingService_ListResourceMappings_FullMethodName            = "/policy.resourcemapping.ResourceMappingService/ListResourceMappings"
	ResourceMappingService_ListResourceMappingsByGroupFqns_FullMethodName = "/policy.resourcemapping.ResourceMappingService/ListResourceMappingsByGroupFqns"
	ResourceMappingService_GetResourceMapping_FullMethodName              = "/policy.resourcemapping.ResourceMappingService/GetResourceMapping"
	ResourceMappingService_CreateResourceMapping_FullMethodName           = "/policy.resourcemapping.ResourceMappingService/CreateResourceMapping"
	ResourceMappingService_UpdateResourceMapping_FullMethodName           = "/policy.resourcemapping.ResourceMappingService/UpdateResourceMapping"
	ResourceMappingService_DeleteResourceMapping_FullMethodName           = "/policy.resourcemapping.ResourceMappingService/DeleteResourceMapping"
)

Variables

View Source
var File_policy_resourcemapping_resource_mapping_proto protoreflect.FileDescriptor
View Source
var ResourceMappingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "policy.resourcemapping.ResourceMappingService",
	HandlerType: (*ResourceMappingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListResourceMappingGroups",
			Handler:    _ResourceMappingService_ListResourceMappingGroups_Handler,
		},
		{
			MethodName: "GetResourceMappingGroup",
			Handler:    _ResourceMappingService_GetResourceMappingGroup_Handler,
		},
		{
			MethodName: "CreateResourceMappingGroup",
			Handler:    _ResourceMappingService_CreateResourceMappingGroup_Handler,
		},
		{
			MethodName: "UpdateResourceMappingGroup",
			Handler:    _ResourceMappingService_UpdateResourceMappingGroup_Handler,
		},
		{
			MethodName: "DeleteResourceMappingGroup",
			Handler:    _ResourceMappingService_DeleteResourceMappingGroup_Handler,
		},
		{
			MethodName: "ListResourceMappings",
			Handler:    _ResourceMappingService_ListResourceMappings_Handler,
		},
		{
			MethodName: "ListResourceMappingsByGroupFqns",
			Handler:    _ResourceMappingService_ListResourceMappingsByGroupFqns_Handler,
		},
		{
			MethodName: "GetResourceMapping",
			Handler:    _ResourceMappingService_GetResourceMapping_Handler,
		},
		{
			MethodName: "CreateResourceMapping",
			Handler:    _ResourceMappingService_CreateResourceMapping_Handler,
		},
		{
			MethodName: "UpdateResourceMapping",
			Handler:    _ResourceMappingService_UpdateResourceMapping_Handler,
		},
		{
			MethodName: "DeleteResourceMapping",
			Handler:    _ResourceMappingService_DeleteResourceMapping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policy/resourcemapping/resource_mapping.proto",
}

ResourceMappingService_ServiceDesc is the grpc.ServiceDesc for ResourceMappingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResourceMappingServiceHandler

func RegisterResourceMappingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterResourceMappingServiceHandler registers the http handlers for service ResourceMappingService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterResourceMappingServiceHandlerClient

func RegisterResourceMappingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceMappingServiceClient) error

RegisterResourceMappingServiceHandlerClient registers the http handlers for service ResourceMappingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceMappingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceMappingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceMappingServiceClient" to call the correct interceptors.

func RegisterResourceMappingServiceHandlerFromEndpoint

func RegisterResourceMappingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterResourceMappingServiceHandlerFromEndpoint is same as RegisterResourceMappingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterResourceMappingServiceHandlerServer

func RegisterResourceMappingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceMappingServiceServer) error

RegisterResourceMappingServiceHandlerServer registers the http handlers for service ResourceMappingService to "mux". UnaryRPC :call ResourceMappingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterResourceMappingServiceHandlerFromEndpoint instead.

func RegisterResourceMappingServiceServer

func RegisterResourceMappingServiceServer(s grpc.ServiceRegistrar, srv ResourceMappingServiceServer)

Types

type CreateResourceMappingGroupRequest added in v0.2.14

type CreateResourceMappingGroupRequest struct {

	// Required
	NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// Required
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Common metadata
	Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceMappingGroupRequest) Descriptor deprecated added in v0.2.14

func (*CreateResourceMappingGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourceMappingGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateResourceMappingGroupRequest) GetMetadata added in v0.2.15

func (*CreateResourceMappingGroupRequest) GetName added in v0.2.14

func (*CreateResourceMappingGroupRequest) GetNamespaceId added in v0.2.14

func (x *CreateResourceMappingGroupRequest) GetNamespaceId() string

func (*CreateResourceMappingGroupRequest) ProtoMessage added in v0.2.14

func (*CreateResourceMappingGroupRequest) ProtoMessage()

func (*CreateResourceMappingGroupRequest) ProtoReflect added in v0.2.14

func (*CreateResourceMappingGroupRequest) Reset added in v0.2.14

func (*CreateResourceMappingGroupRequest) String added in v0.2.14

type CreateResourceMappingGroupResponse added in v0.2.14

type CreateResourceMappingGroupResponse struct {
	ResourceMappingGroup *policy.ResourceMappingGroup `protobuf:"bytes,1,opt,name=resource_mapping_group,json=resourceMappingGroup,proto3" json:"resource_mapping_group,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceMappingGroupResponse) Descriptor deprecated added in v0.2.14

func (*CreateResourceMappingGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourceMappingGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateResourceMappingGroupResponse) GetResourceMappingGroup added in v0.2.14

func (x *CreateResourceMappingGroupResponse) GetResourceMappingGroup() *policy.ResourceMappingGroup

func (*CreateResourceMappingGroupResponse) ProtoMessage added in v0.2.14

func (*CreateResourceMappingGroupResponse) ProtoMessage()

func (*CreateResourceMappingGroupResponse) ProtoReflect added in v0.2.14

func (*CreateResourceMappingGroupResponse) Reset added in v0.2.14

func (*CreateResourceMappingGroupResponse) String added in v0.2.14

type CreateResourceMappingRequest

type CreateResourceMappingRequest struct {

	// Required
	AttributeValueId string `protobuf:"bytes,1,opt,name=attribute_value_id,json=attributeValueId,proto3" json:"attribute_value_id,omitempty"`
	// Required
	Terms []string `protobuf:"bytes,2,rep,name=terms,proto3" json:"terms,omitempty"`
	// Optional
	GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Optional
	Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceMappingRequest) Descriptor deprecated

func (*CreateResourceMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourceMappingRequest.ProtoReflect.Descriptor instead.

func (*CreateResourceMappingRequest) GetAttributeValueId

func (x *CreateResourceMappingRequest) GetAttributeValueId() string

func (*CreateResourceMappingRequest) GetGroupId added in v0.2.14

func (x *CreateResourceMappingRequest) GetGroupId() string

func (*CreateResourceMappingRequest) GetMetadata

func (*CreateResourceMappingRequest) GetTerms

func (x *CreateResourceMappingRequest) GetTerms() []string

func (*CreateResourceMappingRequest) ProtoMessage

func (*CreateResourceMappingRequest) ProtoMessage()

func (*CreateResourceMappingRequest) ProtoReflect

func (*CreateResourceMappingRequest) Reset

func (x *CreateResourceMappingRequest) Reset()

func (*CreateResourceMappingRequest) String

type CreateResourceMappingResponse

type CreateResourceMappingResponse struct {
	ResourceMapping *policy.ResourceMapping `protobuf:"bytes,1,opt,name=resource_mapping,json=resourceMapping,proto3" json:"resource_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceMappingResponse) Descriptor deprecated

func (*CreateResourceMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourceMappingResponse.ProtoReflect.Descriptor instead.

func (*CreateResourceMappingResponse) GetResourceMapping

func (x *CreateResourceMappingResponse) GetResourceMapping() *policy.ResourceMapping

func (*CreateResourceMappingResponse) ProtoMessage

func (*CreateResourceMappingResponse) ProtoMessage()

func (*CreateResourceMappingResponse) ProtoReflect

func (*CreateResourceMappingResponse) Reset

func (x *CreateResourceMappingResponse) Reset()

func (*CreateResourceMappingResponse) String

type DeleteResourceMappingGroupRequest added in v0.2.14

type DeleteResourceMappingGroupRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceMappingGroupRequest) Descriptor deprecated added in v0.2.14

func (*DeleteResourceMappingGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourceMappingGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourceMappingGroupRequest) GetId added in v0.2.14

func (*DeleteResourceMappingGroupRequest) ProtoMessage added in v0.2.14

func (*DeleteResourceMappingGroupRequest) ProtoMessage()

func (*DeleteResourceMappingGroupRequest) ProtoReflect added in v0.2.14

func (*DeleteResourceMappingGroupRequest) Reset added in v0.2.14

func (*DeleteResourceMappingGroupRequest) String added in v0.2.14

type DeleteResourceMappingGroupResponse added in v0.2.14

type DeleteResourceMappingGroupResponse struct {
	ResourceMappingGroup *policy.ResourceMappingGroup `protobuf:"bytes,1,opt,name=resource_mapping_group,json=resourceMappingGroup,proto3" json:"resource_mapping_group,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceMappingGroupResponse) Descriptor deprecated added in v0.2.14

func (*DeleteResourceMappingGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourceMappingGroupResponse.ProtoReflect.Descriptor instead.

func (*DeleteResourceMappingGroupResponse) GetResourceMappingGroup added in v0.2.14

func (x *DeleteResourceMappingGroupResponse) GetResourceMappingGroup() *policy.ResourceMappingGroup

func (*DeleteResourceMappingGroupResponse) ProtoMessage added in v0.2.14

func (*DeleteResourceMappingGroupResponse) ProtoMessage()

func (*DeleteResourceMappingGroupResponse) ProtoReflect added in v0.2.14

func (*DeleteResourceMappingGroupResponse) Reset added in v0.2.14

func (*DeleteResourceMappingGroupResponse) String added in v0.2.14

type DeleteResourceMappingRequest

type DeleteResourceMappingRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceMappingRequest) Descriptor deprecated

func (*DeleteResourceMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourceMappingRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourceMappingRequest) GetId

func (*DeleteResourceMappingRequest) ProtoMessage

func (*DeleteResourceMappingRequest) ProtoMessage()

func (*DeleteResourceMappingRequest) ProtoReflect

func (*DeleteResourceMappingRequest) Reset

func (x *DeleteResourceMappingRequest) Reset()

func (*DeleteResourceMappingRequest) String

type DeleteResourceMappingResponse

type DeleteResourceMappingResponse struct {
	ResourceMapping *policy.ResourceMapping `protobuf:"bytes,1,opt,name=resource_mapping,json=resourceMapping,proto3" json:"resource_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceMappingResponse) Descriptor deprecated

func (*DeleteResourceMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourceMappingResponse.ProtoReflect.Descriptor instead.

func (*DeleteResourceMappingResponse) GetResourceMapping

func (x *DeleteResourceMappingResponse) GetResourceMapping() *policy.ResourceMapping

func (*DeleteResourceMappingResponse) ProtoMessage

func (*DeleteResourceMappingResponse) ProtoMessage()

func (*DeleteResourceMappingResponse) ProtoReflect

func (*DeleteResourceMappingResponse) Reset

func (x *DeleteResourceMappingResponse) Reset()

func (*DeleteResourceMappingResponse) String

type GetResourceMappingGroupRequest added in v0.2.14

type GetResourceMappingGroupRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceMappingGroupRequest) Descriptor deprecated added in v0.2.14

func (*GetResourceMappingGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceMappingGroupRequest.ProtoReflect.Descriptor instead.

func (*GetResourceMappingGroupRequest) GetId added in v0.2.14

func (*GetResourceMappingGroupRequest) ProtoMessage added in v0.2.14

func (*GetResourceMappingGroupRequest) ProtoMessage()

func (*GetResourceMappingGroupRequest) ProtoReflect added in v0.2.14

func (*GetResourceMappingGroupRequest) Reset added in v0.2.14

func (x *GetResourceMappingGroupRequest) Reset()

func (*GetResourceMappingGroupRequest) String added in v0.2.14

type GetResourceMappingGroupResponse added in v0.2.14

type GetResourceMappingGroupResponse struct {
	ResourceMappingGroup *policy.ResourceMappingGroup `protobuf:"bytes,1,opt,name=resource_mapping_group,json=resourceMappingGroup,proto3" json:"resource_mapping_group,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceMappingGroupResponse) Descriptor deprecated added in v0.2.14

func (*GetResourceMappingGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceMappingGroupResponse.ProtoReflect.Descriptor instead.

func (*GetResourceMappingGroupResponse) GetResourceMappingGroup added in v0.2.14

func (x *GetResourceMappingGroupResponse) GetResourceMappingGroup() *policy.ResourceMappingGroup

func (*GetResourceMappingGroupResponse) ProtoMessage added in v0.2.14

func (*GetResourceMappingGroupResponse) ProtoMessage()

func (*GetResourceMappingGroupResponse) ProtoReflect added in v0.2.14

func (*GetResourceMappingGroupResponse) Reset added in v0.2.14

func (*GetResourceMappingGroupResponse) String added in v0.2.14

type GetResourceMappingRequest

type GetResourceMappingRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceMappingRequest) Descriptor deprecated

func (*GetResourceMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceMappingRequest.ProtoReflect.Descriptor instead.

func (*GetResourceMappingRequest) GetId

func (x *GetResourceMappingRequest) GetId() string

func (*GetResourceMappingRequest) ProtoMessage

func (*GetResourceMappingRequest) ProtoMessage()

func (*GetResourceMappingRequest) ProtoReflect

func (*GetResourceMappingRequest) Reset

func (x *GetResourceMappingRequest) Reset()

func (*GetResourceMappingRequest) String

func (x *GetResourceMappingRequest) String() string

type GetResourceMappingResponse

type GetResourceMappingResponse struct {
	ResourceMapping *policy.ResourceMapping `protobuf:"bytes,1,opt,name=resource_mapping,json=resourceMapping,proto3" json:"resource_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceMappingResponse) Descriptor deprecated

func (*GetResourceMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceMappingResponse.ProtoReflect.Descriptor instead.

func (*GetResourceMappingResponse) GetResourceMapping

func (x *GetResourceMappingResponse) GetResourceMapping() *policy.ResourceMapping

func (*GetResourceMappingResponse) ProtoMessage

func (*GetResourceMappingResponse) ProtoMessage()

func (*GetResourceMappingResponse) ProtoReflect

func (*GetResourceMappingResponse) Reset

func (x *GetResourceMappingResponse) Reset()

func (*GetResourceMappingResponse) String

func (x *GetResourceMappingResponse) String() string

type ListResourceMappingGroupsRequest added in v0.2.14

type ListResourceMappingGroupsRequest struct {

	// Optional
	NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// Optional
	Pagination *policy.PageRequest `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceMappingGroupsRequest) Descriptor deprecated added in v0.2.14

func (*ListResourceMappingGroupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListResourceMappingGroupsRequest) GetNamespaceId added in v0.2.14

func (x *ListResourceMappingGroupsRequest) GetNamespaceId() string

func (*ListResourceMappingGroupsRequest) GetPagination added in v0.2.19

func (*ListResourceMappingGroupsRequest) ProtoMessage added in v0.2.14

func (*ListResourceMappingGroupsRequest) ProtoMessage()

func (*ListResourceMappingGroupsRequest) ProtoReflect added in v0.2.14

func (*ListResourceMappingGroupsRequest) Reset added in v0.2.14

func (*ListResourceMappingGroupsRequest) String added in v0.2.14

type ListResourceMappingGroupsResponse added in v0.2.14

type ListResourceMappingGroupsResponse struct {
	ResourceMappingGroups []*policy.ResourceMappingGroup `` /* 126-byte string literal not displayed */
	Pagination            *policy.PageResponse           `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceMappingGroupsResponse) Descriptor deprecated added in v0.2.14

func (*ListResourceMappingGroupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListResourceMappingGroupsResponse) GetPagination added in v0.2.19

func (*ListResourceMappingGroupsResponse) GetResourceMappingGroups added in v0.2.14

func (x *ListResourceMappingGroupsResponse) GetResourceMappingGroups() []*policy.ResourceMappingGroup

func (*ListResourceMappingGroupsResponse) ProtoMessage added in v0.2.14

func (*ListResourceMappingGroupsResponse) ProtoMessage()

func (*ListResourceMappingGroupsResponse) ProtoReflect added in v0.2.14

func (*ListResourceMappingGroupsResponse) Reset added in v0.2.14

func (*ListResourceMappingGroupsResponse) String added in v0.2.14

type ListResourceMappingsByGroupFqnsRequest added in v0.2.14

type ListResourceMappingsByGroupFqnsRequest struct {

	// Required
	// Structure of the RM Group FQN is 'https://<namespace>/resm/<group name>'
	Fqns []string `protobuf:"bytes,1,rep,name=fqns,proto3" json:"fqns,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceMappingsByGroupFqnsRequest) Descriptor deprecated added in v0.2.14

func (*ListResourceMappingsByGroupFqnsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingsByGroupFqnsRequest.ProtoReflect.Descriptor instead.

func (*ListResourceMappingsByGroupFqnsRequest) GetFqns added in v0.2.14

func (*ListResourceMappingsByGroupFqnsRequest) ProtoMessage added in v0.2.14

func (*ListResourceMappingsByGroupFqnsRequest) ProtoReflect added in v0.2.14

func (*ListResourceMappingsByGroupFqnsRequest) Reset added in v0.2.14

func (*ListResourceMappingsByGroupFqnsRequest) String added in v0.2.14

type ListResourceMappingsByGroupFqnsResponse added in v0.2.14

type ListResourceMappingsByGroupFqnsResponse struct {
	FqnResourceMappingGroups map[string]*ResourceMappingsByGroup `` /* 225-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListResourceMappingsByGroupFqnsResponse) Descriptor deprecated added in v0.2.14

func (*ListResourceMappingsByGroupFqnsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingsByGroupFqnsResponse.ProtoReflect.Descriptor instead.

func (*ListResourceMappingsByGroupFqnsResponse) GetFqnResourceMappingGroups added in v0.2.14

func (x *ListResourceMappingsByGroupFqnsResponse) GetFqnResourceMappingGroups() map[string]*ResourceMappingsByGroup

func (*ListResourceMappingsByGroupFqnsResponse) ProtoMessage added in v0.2.14

func (*ListResourceMappingsByGroupFqnsResponse) ProtoReflect added in v0.2.14

func (*ListResourceMappingsByGroupFqnsResponse) Reset added in v0.2.14

func (*ListResourceMappingsByGroupFqnsResponse) String added in v0.2.14

type ListResourceMappingsRequest

type ListResourceMappingsRequest struct {

	// Optional
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Optional
	Pagination *policy.PageRequest `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceMappingsRequest) Descriptor deprecated

func (*ListResourceMappingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingsRequest.ProtoReflect.Descriptor instead.

func (*ListResourceMappingsRequest) GetGroupId added in v0.2.14

func (x *ListResourceMappingsRequest) GetGroupId() string

func (*ListResourceMappingsRequest) GetPagination added in v0.2.19

func (x *ListResourceMappingsRequest) GetPagination() *policy.PageRequest

func (*ListResourceMappingsRequest) ProtoMessage

func (*ListResourceMappingsRequest) ProtoMessage()

func (*ListResourceMappingsRequest) ProtoReflect

func (*ListResourceMappingsRequest) Reset

func (x *ListResourceMappingsRequest) Reset()

func (*ListResourceMappingsRequest) String

func (x *ListResourceMappingsRequest) String() string

type ListResourceMappingsResponse

type ListResourceMappingsResponse struct {
	ResourceMappings []*policy.ResourceMapping `protobuf:"bytes,1,rep,name=resource_mappings,json=resourceMappings,proto3" json:"resource_mappings,omitempty"`
	Pagination       *policy.PageResponse      `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceMappingsResponse) Descriptor deprecated

func (*ListResourceMappingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceMappingsResponse.ProtoReflect.Descriptor instead.

func (*ListResourceMappingsResponse) GetPagination added in v0.2.19

func (x *ListResourceMappingsResponse) GetPagination() *policy.PageResponse

func (*ListResourceMappingsResponse) GetResourceMappings

func (x *ListResourceMappingsResponse) GetResourceMappings() []*policy.ResourceMapping

func (*ListResourceMappingsResponse) ProtoMessage

func (*ListResourceMappingsResponse) ProtoMessage()

func (*ListResourceMappingsResponse) ProtoReflect

func (*ListResourceMappingsResponse) Reset

func (x *ListResourceMappingsResponse) Reset()

func (*ListResourceMappingsResponse) String

type ResourceMappingServiceClient

type ResourceMappingServiceClient interface {
	ListResourceMappingGroups(ctx context.Context, in *ListResourceMappingGroupsRequest, opts ...grpc.CallOption) (*ListResourceMappingGroupsResponse, error)
	GetResourceMappingGroup(ctx context.Context, in *GetResourceMappingGroupRequest, opts ...grpc.CallOption) (*GetResourceMappingGroupResponse, error)
	CreateResourceMappingGroup(ctx context.Context, in *CreateResourceMappingGroupRequest, opts ...grpc.CallOption) (*CreateResourceMappingGroupResponse, error)
	UpdateResourceMappingGroup(ctx context.Context, in *UpdateResourceMappingGroupRequest, opts ...grpc.CallOption) (*UpdateResourceMappingGroupResponse, error)
	DeleteResourceMappingGroup(ctx context.Context, in *DeleteResourceMappingGroupRequest, opts ...grpc.CallOption) (*DeleteResourceMappingGroupResponse, error)
	ListResourceMappings(ctx context.Context, in *ListResourceMappingsRequest, opts ...grpc.CallOption) (*ListResourceMappingsResponse, error)
	ListResourceMappingsByGroupFqns(ctx context.Context, in *ListResourceMappingsByGroupFqnsRequest, opts ...grpc.CallOption) (*ListResourceMappingsByGroupFqnsResponse, error)
	GetResourceMapping(ctx context.Context, in *GetResourceMappingRequest, opts ...grpc.CallOption) (*GetResourceMappingResponse, error)
	CreateResourceMapping(ctx context.Context, in *CreateResourceMappingRequest, opts ...grpc.CallOption) (*CreateResourceMappingResponse, error)
	UpdateResourceMapping(ctx context.Context, in *UpdateResourceMappingRequest, opts ...grpc.CallOption) (*UpdateResourceMappingResponse, error)
	DeleteResourceMapping(ctx context.Context, in *DeleteResourceMappingRequest, opts ...grpc.CallOption) (*DeleteResourceMappingResponse, error)
}

ResourceMappingServiceClient is the client API for ResourceMappingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ResourceMappingServiceServer

ResourceMappingServiceServer is the server API for ResourceMappingService service. All implementations must embed UnimplementedResourceMappingServiceServer for forward compatibility

type ResourceMappingsByGroup added in v0.2.14

type ResourceMappingsByGroup struct {
	Group    *policy.ResourceMappingGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Mappings []*policy.ResourceMapping    `protobuf:"bytes,2,rep,name=mappings,proto3" json:"mappings,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceMappingsByGroup) Descriptor deprecated added in v0.2.14

func (*ResourceMappingsByGroup) Descriptor() ([]byte, []int)

Deprecated: Use ResourceMappingsByGroup.ProtoReflect.Descriptor instead.

func (*ResourceMappingsByGroup) GetGroup added in v0.2.14

func (*ResourceMappingsByGroup) GetMappings added in v0.2.14

func (x *ResourceMappingsByGroup) GetMappings() []*policy.ResourceMapping

func (*ResourceMappingsByGroup) ProtoMessage added in v0.2.14

func (*ResourceMappingsByGroup) ProtoMessage()

func (*ResourceMappingsByGroup) ProtoReflect added in v0.2.14

func (x *ResourceMappingsByGroup) ProtoReflect() protoreflect.Message

func (*ResourceMappingsByGroup) Reset added in v0.2.14

func (x *ResourceMappingsByGroup) Reset()

func (*ResourceMappingsByGroup) String added in v0.2.14

func (x *ResourceMappingsByGroup) String() string

type UnimplementedResourceMappingServiceServer

type UnimplementedResourceMappingServiceServer struct {
}

UnimplementedResourceMappingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedResourceMappingServiceServer) CreateResourceMapping

func (UnimplementedResourceMappingServiceServer) CreateResourceMappingGroup added in v0.2.14

func (UnimplementedResourceMappingServiceServer) DeleteResourceMapping

func (UnimplementedResourceMappingServiceServer) DeleteResourceMappingGroup added in v0.2.14

func (UnimplementedResourceMappingServiceServer) GetResourceMapping

func (UnimplementedResourceMappingServiceServer) GetResourceMappingGroup added in v0.2.14

func (UnimplementedResourceMappingServiceServer) ListResourceMappingGroups added in v0.2.14

func (UnimplementedResourceMappingServiceServer) ListResourceMappings

func (UnimplementedResourceMappingServiceServer) ListResourceMappingsByGroupFqns added in v0.2.14

func (UnimplementedResourceMappingServiceServer) UpdateResourceMapping

func (UnimplementedResourceMappingServiceServer) UpdateResourceMappingGroup added in v0.2.14

type UnsafeResourceMappingServiceServer

type UnsafeResourceMappingServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeResourceMappingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceMappingServiceServer will result in compilation errors.

type UpdateResourceMappingGroupRequest added in v0.2.14

type UpdateResourceMappingGroupRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// Optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Common metadata
	Metadata               *common.MetadataMutable   `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateResourceMappingGroupRequest) Descriptor deprecated added in v0.2.14

func (*UpdateResourceMappingGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourceMappingGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceMappingGroupRequest) GetId added in v0.2.14

func (*UpdateResourceMappingGroupRequest) GetMetadata added in v0.2.15

func (*UpdateResourceMappingGroupRequest) GetMetadataUpdateBehavior added in v0.2.15

func (x *UpdateResourceMappingGroupRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum

func (*UpdateResourceMappingGroupRequest) GetName added in v0.2.14

func (*UpdateResourceMappingGroupRequest) GetNamespaceId added in v0.2.14

func (x *UpdateResourceMappingGroupRequest) GetNamespaceId() string

func (*UpdateResourceMappingGroupRequest) ProtoMessage added in v0.2.14

func (*UpdateResourceMappingGroupRequest) ProtoMessage()

func (*UpdateResourceMappingGroupRequest) ProtoReflect added in v0.2.14

func (*UpdateResourceMappingGroupRequest) Reset added in v0.2.14

func (*UpdateResourceMappingGroupRequest) String added in v0.2.14

type UpdateResourceMappingGroupResponse added in v0.2.14

type UpdateResourceMappingGroupResponse struct {
	ResourceMappingGroup *policy.ResourceMappingGroup `protobuf:"bytes,1,opt,name=resource_mapping_group,json=resourceMappingGroup,proto3" json:"resource_mapping_group,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceMappingGroupResponse) Descriptor deprecated added in v0.2.14

func (*UpdateResourceMappingGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourceMappingGroupResponse.ProtoReflect.Descriptor instead.

func (*UpdateResourceMappingGroupResponse) GetResourceMappingGroup added in v0.2.14

func (x *UpdateResourceMappingGroupResponse) GetResourceMappingGroup() *policy.ResourceMappingGroup

func (*UpdateResourceMappingGroupResponse) ProtoMessage added in v0.2.14

func (*UpdateResourceMappingGroupResponse) ProtoMessage()

func (*UpdateResourceMappingGroupResponse) ProtoReflect added in v0.2.14

func (*UpdateResourceMappingGroupResponse) Reset added in v0.2.14

func (*UpdateResourceMappingGroupResponse) String added in v0.2.14

type UpdateResourceMappingRequest

type UpdateResourceMappingRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	AttributeValueId string `protobuf:"bytes,4,opt,name=attribute_value_id,json=attributeValueId,proto3" json:"attribute_value_id,omitempty"`
	// Optional
	Terms []string `protobuf:"bytes,5,rep,name=terms,proto3" json:"terms,omitempty"`
	// Optional
	GroupId string `protobuf:"bytes,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Optional
	// Common Metadata
	Metadata               *common.MetadataMutable   `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateResourceMappingRequest) Descriptor deprecated

func (*UpdateResourceMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourceMappingRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceMappingRequest) GetAttributeValueId

func (x *UpdateResourceMappingRequest) GetAttributeValueId() string

func (*UpdateResourceMappingRequest) GetGroupId added in v0.2.14

func (x *UpdateResourceMappingRequest) GetGroupId() string

func (*UpdateResourceMappingRequest) GetId

func (*UpdateResourceMappingRequest) GetMetadata

func (*UpdateResourceMappingRequest) GetMetadataUpdateBehavior

func (x *UpdateResourceMappingRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum

func (*UpdateResourceMappingRequest) GetTerms

func (x *UpdateResourceMappingRequest) GetTerms() []string

func (*UpdateResourceMappingRequest) ProtoMessage

func (*UpdateResourceMappingRequest) ProtoMessage()

func (*UpdateResourceMappingRequest) ProtoReflect

func (*UpdateResourceMappingRequest) Reset

func (x *UpdateResourceMappingRequest) Reset()

func (*UpdateResourceMappingRequest) String

type UpdateResourceMappingResponse

type UpdateResourceMappingResponse struct {
	ResourceMapping *policy.ResourceMapping `protobuf:"bytes,1,opt,name=resource_mapping,json=resourceMapping,proto3" json:"resource_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceMappingResponse) Descriptor deprecated

func (*UpdateResourceMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourceMappingResponse.ProtoReflect.Descriptor instead.

func (*UpdateResourceMappingResponse) GetResourceMapping

func (x *UpdateResourceMappingResponse) GetResourceMapping() *policy.ResourceMapping

func (*UpdateResourceMappingResponse) ProtoMessage

func (*UpdateResourceMappingResponse) ProtoMessage()

func (*UpdateResourceMappingResponse) ProtoReflect

func (*UpdateResourceMappingResponse) Reset

func (x *UpdateResourceMappingResponse) Reset()

func (*UpdateResourceMappingResponse) String

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL