diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/metadata.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/metadata.pb.go new file mode 100644 index 0000000..6cb9946 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/metadata.pb.go @@ -0,0 +1,259 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: kessel/inventory/v1beta2/resources/metadata.proto + +package resources + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kessel Asset Inventory generated identifier. + Id string `protobuf:"bytes,3355,opt,name=id,proto3" json:"id,omitempty"` + // The type of the Resource + ResourceType string `protobuf:"bytes,442752204,opt,name=resource_type,proto3" json:"resource_type,omitempty"` + // Date and time when the inventory item was first reported. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3400,opt,name=created_at,proto3" json:"created_at,omitempty"` + // Date and time when the inventory item was last updated. + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3401,opt,name=updated_at,proto3" json:"updated_at,omitempty"` + // Date and time when the inventory item was deleted. + DeletedAt *timestamppb.Timestamp `protobuf:"bytes,3402,opt,name=deleted_at,proto3" json:"deleted_at,omitempty"` + // The org id in which this resource is a member for access control. A + // resource can only be a member of one org. + OrgId string `protobuf:"bytes,3500,opt,name=org_id,proto3" json:"org_id,omitempty"` + // The workspace id in which this resource is a member for access control. A + // resource can only be a member of one workspace. + WorkspaceId string `protobuf:"bytes,3501,opt,name=workspace_id,proto3" json:"workspace_id,omitempty"` + Labels []*ResourceLabel `protobuf:"bytes,3552281,rep,name=labels,proto3" json:"labels,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_metadata_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescGZIP(), []int{0} +} + +func (x *Metadata) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Metadata) GetResourceType() string { + if x != nil { + return x.ResourceType + } + return "" +} + +func (x *Metadata) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Metadata) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *Metadata) GetDeletedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeletedAt + } + return nil +} + +func (x *Metadata) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *Metadata) GetWorkspaceId() string { + if x != nil { + return x.WorkspaceId + } + return "" +} + +func (x *Metadata) GetLabels() []*ResourceLabel { + if x != nil { + return x.Labels + } + return nil +} + +var File_kessel_inventory_v1beta2_resources_metadata_proto protoreflect.FileDescriptor + +var file_kessel_inventory_v1beta2_resources_metadata_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x37, 0x6b, 0x65, 0x73, 0x73, 0x65, + 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xa1, 0x03, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x14, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x9b, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0xcc, 0xb9, 0x8f, 0xd3, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0xc8, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0xc9, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0xca, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x17, 0x0a, 0x06, 0x6f, 0x72, + 0x67, 0x5f, 0x69, 0x64, 0x18, 0xac, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x67, + 0x5f, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0xad, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x12, 0x4c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x99, 0xe8, 0xd8, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6b, 0x65, + 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x86, 0x01, 0x0a, 0x32, 0x6f, 0x72, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x01, 0x5a, + 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2d, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6b, 0x65, 0x73, + 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescOnce sync.Once + file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescData = file_kessel_inventory_v1beta2_resources_metadata_proto_rawDesc +) + +func file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescGZIP() []byte { + file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescOnce.Do(func() { + file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescData) + }) + return file_kessel_inventory_v1beta2_resources_metadata_proto_rawDescData +} + +var file_kessel_inventory_v1beta2_resources_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_kessel_inventory_v1beta2_resources_metadata_proto_goTypes = []any{ + (*Metadata)(nil), // 0: kessel.inventory.v1beta2.resources.Metadata + (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*ResourceLabel)(nil), // 2: kessel.inventory.v1beta2.resources.ResourceLabel +} +var file_kessel_inventory_v1beta2_resources_metadata_proto_depIdxs = []int32{ + 1, // 0: kessel.inventory.v1beta2.resources.Metadata.created_at:type_name -> google.protobuf.Timestamp + 1, // 1: kessel.inventory.v1beta2.resources.Metadata.updated_at:type_name -> google.protobuf.Timestamp + 1, // 2: kessel.inventory.v1beta2.resources.Metadata.deleted_at:type_name -> google.protobuf.Timestamp + 2, // 3: kessel.inventory.v1beta2.resources.Metadata.labels:type_name -> kessel.inventory.v1beta2.resources.ResourceLabel + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_kessel_inventory_v1beta2_resources_metadata_proto_init() } +func file_kessel_inventory_v1beta2_resources_metadata_proto_init() { + if File_kessel_inventory_v1beta2_resources_metadata_proto != nil { + return + } + file_kessel_inventory_v1beta2_resources_resource_label_proto_init() + if !protoimpl.UnsafeEnabled { + file_kessel_inventory_v1beta2_resources_metadata_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_kessel_inventory_v1beta2_resources_metadata_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_kessel_inventory_v1beta2_resources_metadata_proto_goTypes, + DependencyIndexes: file_kessel_inventory_v1beta2_resources_metadata_proto_depIdxs, + MessageInfos: file_kessel_inventory_v1beta2_resources_metadata_proto_msgTypes, + }.Build() + File_kessel_inventory_v1beta2_resources_metadata_proto = out.File + file_kessel_inventory_v1beta2_resources_metadata_proto_rawDesc = nil + file_kessel_inventory_v1beta2_resources_metadata_proto_goTypes = nil + file_kessel_inventory_v1beta2_resources_metadata_proto_depIdxs = nil +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/metadata.proto b/src/main/proto/kessel/inventory/v1beta2/resources/metadata.proto index 0005a4b..a0aab2c 100644 --- a/src/main/proto/kessel/inventory/v1beta2/resources/metadata.proto +++ b/src/main/proto/kessel/inventory/v1beta2/resources/metadata.proto @@ -13,23 +13,23 @@ option java_package = "org.project_kessel.api.inventory.v1beta2.resources"; message Metadata { // Kessel Asset Inventory generated identifier. - int64 id = 3355 [ (google.api.field_behavior) = OUTPUT_ONLY ]; + string id = 3355 [ (google.api.field_behavior) = OUTPUT_ONLY ]; // The type of the Resource string resource_type = 442752204 - [ json_name = "resource_type", (google.api.field_behavior) = OUTPUT_ONLY ]; + [ json_name = "resource_type", (google.api.field_behavior) = OUTPUT_ONLY ]; // Date and time when the inventory item was first reported. google.protobuf.Timestamp created_at = 3400 - [ json_name = "created_at", (google.api.field_behavior) = OUTPUT_ONLY ]; + [ json_name = "created_at", (google.api.field_behavior) = OUTPUT_ONLY ]; // Date and time when the inventory item was last updated. google.protobuf.Timestamp updated_at = 3401 - [ json_name = "updated_at", (google.api.field_behavior) = OUTPUT_ONLY ]; + [ json_name = "updated_at", (google.api.field_behavior) = OUTPUT_ONLY ]; // Date and time when the inventory item was deleted. google.protobuf.Timestamp deleted_at = 3402 - [ json_name = "deleted_at", (google.api.field_behavior) = OUTPUT_ONLY ]; + [ json_name = "deleted_at", (google.api.field_behavior) = OUTPUT_ONLY ]; // The org id in which this resource is a member for access control. A // resource can only be a member of one org. diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.pb.go new file mode 100644 index 0000000..0d58019 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.pb.go @@ -0,0 +1,167 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: kessel/inventory/v1beta2/resources/resource_label.proto + +package resources + +import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ResourceLabel struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,106079,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,111972721,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ResourceLabel) Reset() { + *x = ResourceLabel{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resource_label_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceLabel) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceLabel) ProtoMessage() {} + +func (x *ResourceLabel) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resource_label_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceLabel.ProtoReflect.Descriptor instead. +func (*ResourceLabel) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescGZIP(), []int{0} +} + +func (x *ResourceLabel) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *ResourceLabel) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +var File_kessel_inventory_v1beta2_resources_resource_label_proto protoreflect.FileDescriptor + +var file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDesc = []byte{ + 0x0a, 0x37, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6b, 0x65, 0x73, 0x73, 0x65, + 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x1b, 0x62, + 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x0d, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x1b, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0xdf, 0xbc, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xba, 0x48, 0x04, 0x72, + 0x02, 0x10, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0xf1, 0xa2, 0xb2, 0x35, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xba, 0x48, 0x04, 0x72, + 0x02, 0x10, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x86, 0x01, 0x0a, 0x32, 0x6f, + 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x73, 0x73, 0x65, + 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescOnce sync.Once + file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescData = file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDesc +) + +func file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescGZIP() []byte { + file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescOnce.Do(func() { + file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescData) + }) + return file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDescData +} + +var file_kessel_inventory_v1beta2_resources_resource_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_kessel_inventory_v1beta2_resources_resource_label_proto_goTypes = []any{ + (*ResourceLabel)(nil), // 0: kessel.inventory.v1beta2.resources.ResourceLabel +} +var file_kessel_inventory_v1beta2_resources_resource_label_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_kessel_inventory_v1beta2_resources_resource_label_proto_init() } +func file_kessel_inventory_v1beta2_resources_resource_label_proto_init() { + if File_kessel_inventory_v1beta2_resources_resource_label_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_kessel_inventory_v1beta2_resources_resource_label_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*ResourceLabel); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_kessel_inventory_v1beta2_resources_resource_label_proto_goTypes, + DependencyIndexes: file_kessel_inventory_v1beta2_resources_resource_label_proto_depIdxs, + MessageInfos: file_kessel_inventory_v1beta2_resources_resource_label_proto_msgTypes, + }.Build() + File_kessel_inventory_v1beta2_resources_resource_label_proto = out.File + file_kessel_inventory_v1beta2_resources_resource_label_proto_rawDesc = nil + file_kessel_inventory_v1beta2_resources_resource_label_proto_goTypes = nil + file_kessel_inventory_v1beta2_resources_resource_label_proto_depIdxs = nil +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.proto b/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.proto new file mode 100644 index 0000000..85f8cf6 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resource_label.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package kessel.inventory.v1beta2.resources; + +import "buf/validate/validate.proto"; + +option go_package = "github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta2/resources"; +option java_multiple_files = true; +option java_package = "org.project_kessel.api.inventory.v1beta2.resources"; + +message ResourceLabel { + + string key = 106079 [ (buf.validate.field).string.min_len = 1 ]; + + string value = 111972721 [ (buf.validate.field).string.min_len = 1 ]; +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.pb.go new file mode 100644 index 0000000..5711771 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.pb.go @@ -0,0 +1,196 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: kessel/inventory/v1beta2/resources/resource_types.proto + +package resources + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Resource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + ReporterData *structpb.Struct `protobuf:"bytes,324342,opt,name=reporter_data,proto3" json:"reporter_data,omitempty"` + ResourceData *structpb.Struct `protobuf:"bytes,395858490,opt,name=resource_data,proto3,oneof" json:"resource_data,omitempty"` +} + +func (x *Resource) Reset() { + *x = Resource{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Resource.ProtoReflect.Descriptor instead. +func (*Resource) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescGZIP(), []int{0} +} + +func (x *Resource) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Resource) GetReporterData() *structpb.Struct { + if x != nil { + return x.ReporterData + } + return nil +} + +func (x *Resource) GetResourceData() *structpb.Struct { + if x != nil { + return x.ResourceData + } + return nil +} + +var File_kessel_inventory_v1beta2_resources_resource_types_proto protoreflect.FileDescriptor + +var file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDesc = []byte{ + 0x0a, 0x37, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6b, 0x65, 0x73, 0x73, 0x65, + 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x31, 0x6b, + 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, + 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0xf6, 0xe5, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0xba, 0xa4, 0xe1, 0xbc, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x42, 0x10, + 0x0a, 0x0e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x42, 0x86, 0x01, 0x0a, 0x32, 0x6f, 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x6b, 0x65, + 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescOnce sync.Once + file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescData = file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDesc +) + +func file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescGZIP() []byte { + file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescOnce.Do(func() { + file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescData) + }) + return file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDescData +} + +var file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_kessel_inventory_v1beta2_resources_resource_types_proto_goTypes = []any{ + (*Resource)(nil), // 0: kessel.inventory.v1beta2.resources.Resource + (*Metadata)(nil), // 1: kessel.inventory.v1beta2.resources.Metadata + (*structpb.Struct)(nil), // 2: google.protobuf.Struct +} +var file_kessel_inventory_v1beta2_resources_resource_types_proto_depIdxs = []int32{ + 1, // 0: kessel.inventory.v1beta2.resources.Resource.metadata:type_name -> kessel.inventory.v1beta2.resources.Metadata + 2, // 1: kessel.inventory.v1beta2.resources.Resource.reporter_data:type_name -> google.protobuf.Struct + 2, // 2: kessel.inventory.v1beta2.resources.Resource.resource_data:type_name -> google.protobuf.Struct + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_kessel_inventory_v1beta2_resources_resource_types_proto_init() } +func file_kessel_inventory_v1beta2_resources_resource_types_proto_init() { + if File_kessel_inventory_v1beta2_resources_resource_types_proto != nil { + return + } + file_kessel_inventory_v1beta2_resources_metadata_proto_init() + if !protoimpl.UnsafeEnabled { + file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*Resource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_kessel_inventory_v1beta2_resources_resource_types_proto_goTypes, + DependencyIndexes: file_kessel_inventory_v1beta2_resources_resource_types_proto_depIdxs, + MessageInfos: file_kessel_inventory_v1beta2_resources_resource_types_proto_msgTypes, + }.Build() + File_kessel_inventory_v1beta2_resources_resource_types_proto = out.File + file_kessel_inventory_v1beta2_resources_resource_types_proto_rawDesc = nil + file_kessel_inventory_v1beta2_resources_resource_types_proto_goTypes = nil + file_kessel_inventory_v1beta2_resources_resource_types_proto_depIdxs = nil +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.proto b/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.proto new file mode 100644 index 0000000..991981c --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resource_types.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package kessel.inventory.v1beta2.resources; + +import "kessel/inventory/v1beta2/resources/metadata.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta2/resources"; +option java_multiple_files = true; +option java_package = "org.project_kessel.api.inventory.v1beta2.resources"; + +message Resource { + Metadata metadata = 1; + google.protobuf.Struct reporter_data = 324342 [ json_name = "reporter_data"]; + optional google.protobuf.Struct resource_data = 395858490 [ json_name = "resource_data"]; + +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.pb.go new file mode 100644 index 0000000..30c88b6 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.pb.go @@ -0,0 +1,501 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: kessel/inventory/v1beta2/resources/resources_service.proto + +package resources + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CreateResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *CreateResourceRequest) Reset() { + *x = CreateResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceRequest) ProtoMessage() {} + +func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead. +func (*CreateResourceRequest) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateResourceRequest) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type CreateResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CreateResourceResponse) Reset() { + *x = CreateResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceResponse) ProtoMessage() {} + +func (x *CreateResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceResponse.ProtoReflect.Descriptor instead. +func (*CreateResourceResponse) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{1} +} + +type UpdateResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *UpdateResourceRequest) Reset() { + *x = UpdateResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceRequest) ProtoMessage() {} + +func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead. +func (*UpdateResourceRequest) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateResourceRequest) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type UpdateResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UpdateResourceResponse) Reset() { + *x = UpdateResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceResponse) ProtoMessage() {} + +func (x *UpdateResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceResponse.ProtoReflect.Descriptor instead. +func (*UpdateResourceResponse) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{3} +} + +type DeleteResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *DeleteResourceRequest) Reset() { + *x = DeleteResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceRequest) ProtoMessage() {} + +func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead. +func (*DeleteResourceRequest) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{4} +} + +func (x *DeleteResourceRequest) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type DeleteResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DeleteResourceResponse) Reset() { + *x = DeleteResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceResponse) ProtoMessage() {} + +func (x *DeleteResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteResourceResponse.ProtoReflect.Descriptor instead. +func (*DeleteResourceResponse) Descriptor() ([]byte, []int) { + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP(), []int{5} +} + +var File_kessel_inventory_v1beta2_resources_resources_service_proto protoreflect.FileDescriptor + +var file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDesc = []byte{ + 0x0a, 0x3a, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6b, 0x65, + 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x37, + 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x48, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x61, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x08, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6b, + 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb9, + 0x04, 0x0a, 0x15, 0x4b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, 0x2e, 0x6b, 0x65, + 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, + 0xb4, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x39, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, + 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x25, 0x3a, 0x01, 0x2a, 0x1a, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0xb1, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, 0x2e, 0x6b, 0x65, 0x73, 0x73, + 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x86, 0x01, 0x0a, 0x32, 0x6f, + 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x73, 0x73, 0x65, + 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescOnce sync.Once + file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescData = file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDesc +) + +func file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescGZIP() []byte { + file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescOnce.Do(func() { + file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescData) + }) + return file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDescData +} + +var file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_kessel_inventory_v1beta2_resources_resources_service_proto_goTypes = []any{ + (*CreateResourceRequest)(nil), // 0: kessel.inventory.v1beta2.resources.CreateResourceRequest + (*CreateResourceResponse)(nil), // 1: kessel.inventory.v1beta2.resources.CreateResourceResponse + (*UpdateResourceRequest)(nil), // 2: kessel.inventory.v1beta2.resources.UpdateResourceRequest + (*UpdateResourceResponse)(nil), // 3: kessel.inventory.v1beta2.resources.UpdateResourceResponse + (*DeleteResourceRequest)(nil), // 4: kessel.inventory.v1beta2.resources.DeleteResourceRequest + (*DeleteResourceResponse)(nil), // 5: kessel.inventory.v1beta2.resources.DeleteResourceResponse + (*Resource)(nil), // 6: kessel.inventory.v1beta2.resources.Resource +} +var file_kessel_inventory_v1beta2_resources_resources_service_proto_depIdxs = []int32{ + 6, // 0: kessel.inventory.v1beta2.resources.CreateResourceRequest.resource:type_name -> kessel.inventory.v1beta2.resources.Resource + 6, // 1: kessel.inventory.v1beta2.resources.UpdateResourceRequest.resource:type_name -> kessel.inventory.v1beta2.resources.Resource + 6, // 2: kessel.inventory.v1beta2.resources.DeleteResourceRequest.resource:type_name -> kessel.inventory.v1beta2.resources.Resource + 0, // 3: kessel.inventory.v1beta2.resources.KesselResourceService.CreateResource:input_type -> kessel.inventory.v1beta2.resources.CreateResourceRequest + 2, // 4: kessel.inventory.v1beta2.resources.KesselResourceService.UpdateResource:input_type -> kessel.inventory.v1beta2.resources.UpdateResourceRequest + 4, // 5: kessel.inventory.v1beta2.resources.KesselResourceService.DeleteResource:input_type -> kessel.inventory.v1beta2.resources.DeleteResourceRequest + 1, // 6: kessel.inventory.v1beta2.resources.KesselResourceService.CreateResource:output_type -> kessel.inventory.v1beta2.resources.CreateResourceResponse + 3, // 7: kessel.inventory.v1beta2.resources.KesselResourceService.UpdateResource:output_type -> kessel.inventory.v1beta2.resources.UpdateResourceResponse + 5, // 8: kessel.inventory.v1beta2.resources.KesselResourceService.DeleteResource:output_type -> kessel.inventory.v1beta2.resources.DeleteResourceResponse + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_kessel_inventory_v1beta2_resources_resources_service_proto_init() } +func file_kessel_inventory_v1beta2_resources_resources_service_proto_init() { + if File_kessel_inventory_v1beta2_resources_resources_service_proto != nil { + return + } + file_kessel_inventory_v1beta2_resources_resource_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*CreateResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*CreateResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*UpdateResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*UpdateResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*DeleteResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*DeleteResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_kessel_inventory_v1beta2_resources_resources_service_proto_goTypes, + DependencyIndexes: file_kessel_inventory_v1beta2_resources_resources_service_proto_depIdxs, + MessageInfos: file_kessel_inventory_v1beta2_resources_resources_service_proto_msgTypes, + }.Build() + File_kessel_inventory_v1beta2_resources_resources_service_proto = out.File + file_kessel_inventory_v1beta2_resources_resources_service_proto_rawDesc = nil + file_kessel_inventory_v1beta2_resources_resources_service_proto_goTypes = nil + file_kessel_inventory_v1beta2_resources_resources_service_proto_depIdxs = nil +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.proto b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.proto new file mode 100644 index 0000000..1256280 --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service.proto @@ -0,0 +1,50 @@ +syntax = "proto3"; + +package kessel.inventory.v1beta2.resources; + +import "google/api/annotations.proto"; +import "kessel/inventory/v1beta2/resources/resource_types.proto"; + +option go_package = "github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta2/resources"; +option java_multiple_files = true; +option java_package = "org.project_kessel.api.inventory.v1beta2.resources"; + +message CreateResourceRequest { + Resource resource = 1 [json_name = "resource"]; +} + +message CreateResourceResponse {} + +message UpdateResourceRequest { + Resource resource = 1 [json_name = "resource"]; +} + +message UpdateResourceResponse {} + +message DeleteResourceRequest { + Resource resource = 1 [json_name = "resource"]; +} + +message DeleteResourceResponse {} + +service KesselResourceService { + rpc CreateResource(CreateResourceRequest) returns (CreateResourceResponse) { + option (google.api.http) = { + post: "/api/inventory/v1beta2/resources" + body: "*" + }; + } + + rpc UpdateResource(UpdateResourceRequest) returns (UpdateResourceResponse) { + option (google.api.http) = { + put: "/api/inventory/v1beta2/resources" + body: "*" + }; + } + + rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) { + option (google.api.http) = { + delete: "/api/inventory/v1beta2/resources" + }; + } +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_grpc.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_grpc.pb.go new file mode 100644 index 0000000..7e0b2ea --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_grpc.pb.go @@ -0,0 +1,197 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: kessel/inventory/v1beta2/resources/resources_service.proto + +package resources + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + KesselResourceService_CreateResource_FullMethodName = "/kessel.inventory.v1beta2.resources.KesselResourceService/CreateResource" + KesselResourceService_UpdateResource_FullMethodName = "/kessel.inventory.v1beta2.resources.KesselResourceService/UpdateResource" + KesselResourceService_DeleteResource_FullMethodName = "/kessel.inventory.v1beta2.resources.KesselResourceService/DeleteResource" +) + +// KesselResourceServiceClient is the client API for KesselResourceService 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 KesselResourceServiceClient interface { + CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*CreateResourceResponse, error) + UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*UpdateResourceResponse, error) + DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*DeleteResourceResponse, error) +} + +type kesselResourceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewKesselResourceServiceClient(cc grpc.ClientConnInterface) KesselResourceServiceClient { + return &kesselResourceServiceClient{cc} +} + +func (c *kesselResourceServiceClient) CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*CreateResourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateResourceResponse) + err := c.cc.Invoke(ctx, KesselResourceService_CreateResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kesselResourceServiceClient) UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*UpdateResourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateResourceResponse) + err := c.cc.Invoke(ctx, KesselResourceService_UpdateResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kesselResourceServiceClient) DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*DeleteResourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteResourceResponse) + err := c.cc.Invoke(ctx, KesselResourceService_DeleteResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// KesselResourceServiceServer is the server API for KesselResourceService service. +// All implementations must embed UnimplementedKesselResourceServiceServer +// for forward compatibility. +type KesselResourceServiceServer interface { + CreateResource(context.Context, *CreateResourceRequest) (*CreateResourceResponse, error) + UpdateResource(context.Context, *UpdateResourceRequest) (*UpdateResourceResponse, error) + DeleteResource(context.Context, *DeleteResourceRequest) (*DeleteResourceResponse, error) + mustEmbedUnimplementedKesselResourceServiceServer() +} + +// UnimplementedKesselResourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKesselResourceServiceServer struct{} + +func (UnimplementedKesselResourceServiceServer) CreateResource(context.Context, *CreateResourceRequest) (*CreateResourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateResource not implemented") +} +func (UnimplementedKesselResourceServiceServer) UpdateResource(context.Context, *UpdateResourceRequest) (*UpdateResourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateResource not implemented") +} +func (UnimplementedKesselResourceServiceServer) DeleteResource(context.Context, *DeleteResourceRequest) (*DeleteResourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteResource not implemented") +} +func (UnimplementedKesselResourceServiceServer) mustEmbedUnimplementedKesselResourceServiceServer() {} +func (UnimplementedKesselResourceServiceServer) testEmbeddedByValue() {} + +// UnsafeKesselResourceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to KesselResourceServiceServer will +// result in compilation errors. +type UnsafeKesselResourceServiceServer interface { + mustEmbedUnimplementedKesselResourceServiceServer() +} + +func RegisterKesselResourceServiceServer(s grpc.ServiceRegistrar, srv KesselResourceServiceServer) { + // If the following call pancis, it indicates UnimplementedKesselResourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&KesselResourceService_ServiceDesc, srv) +} + +func _KesselResourceService_CreateResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KesselResourceServiceServer).CreateResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KesselResourceService_CreateResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KesselResourceServiceServer).CreateResource(ctx, req.(*CreateResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KesselResourceService_UpdateResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KesselResourceServiceServer).UpdateResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KesselResourceService_UpdateResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KesselResourceServiceServer).UpdateResource(ctx, req.(*UpdateResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KesselResourceService_DeleteResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KesselResourceServiceServer).DeleteResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KesselResourceService_DeleteResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KesselResourceServiceServer).DeleteResource(ctx, req.(*DeleteResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// KesselResourceService_ServiceDesc is the grpc.ServiceDesc for KesselResourceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var KesselResourceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "kessel.inventory.v1beta2.resources.KesselResourceService", + HandlerType: (*KesselResourceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateResource", + Handler: _KesselResourceService_CreateResource_Handler, + }, + { + MethodName: "UpdateResource", + Handler: _KesselResourceService_UpdateResource_Handler, + }, + { + MethodName: "DeleteResource", + Handler: _KesselResourceService_DeleteResource_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "kessel/inventory/v1beta2/resources/resources_service.proto", +} diff --git a/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_http.pb.go b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_http.pb.go new file mode 100644 index 0000000..a169c8f --- /dev/null +++ b/src/main/proto/kessel/inventory/v1beta2/resources/resources_service_http.pb.go @@ -0,0 +1,153 @@ +// Code generated by protoc-gen-go-http. DO NOT EDIT. +// versions: +// - protoc-gen-go-http v2.8.0 +// - protoc (unknown) +// source: kessel/inventory/v1beta2/resources/resources_service.proto + +package resources + +import ( + context "context" + http "github.com/go-kratos/kratos/v2/transport/http" + binding "github.com/go-kratos/kratos/v2/transport/http/binding" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the kratos package it is being compiled against. +var _ = new(context.Context) +var _ = binding.EncodeURL + +const _ = http.SupportPackageIsVersion1 + +const OperationKesselResourceServiceCreateResource = "/kessel.inventory.v1beta2.resources.KesselResourceService/CreateResource" +const OperationKesselResourceServiceDeleteResource = "/kessel.inventory.v1beta2.resources.KesselResourceService/DeleteResource" +const OperationKesselResourceServiceUpdateResource = "/kessel.inventory.v1beta2.resources.KesselResourceService/UpdateResource" + +type KesselResourceServiceHTTPServer interface { + CreateResource(context.Context, *CreateResourceRequest) (*CreateResourceResponse, error) + DeleteResource(context.Context, *DeleteResourceRequest) (*DeleteResourceResponse, error) + UpdateResource(context.Context, *UpdateResourceRequest) (*UpdateResourceResponse, error) +} + +func RegisterKesselResourceServiceHTTPServer(s *http.Server, srv KesselResourceServiceHTTPServer) { + r := s.Route("/") + r.POST("/api/inventory/v1beta2/resources", _KesselResourceService_CreateResource0_HTTP_Handler(srv)) + r.PUT("/api/inventory/v1beta2/resources", _KesselResourceService_UpdateResource0_HTTP_Handler(srv)) + r.DELETE("/api/inventory/v1beta2/resources", _KesselResourceService_DeleteResource0_HTTP_Handler(srv)) +} + +func _KesselResourceService_CreateResource0_HTTP_Handler(srv KesselResourceServiceHTTPServer) func(ctx http.Context) error { + return func(ctx http.Context) error { + var in CreateResourceRequest + if err := ctx.Bind(&in); err != nil { + return err + } + if err := ctx.BindQuery(&in); err != nil { + return err + } + http.SetOperation(ctx, OperationKesselResourceServiceCreateResource) + h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.CreateResource(ctx, req.(*CreateResourceRequest)) + }) + out, err := h(ctx, &in) + if err != nil { + return err + } + reply := out.(*CreateResourceResponse) + return ctx.Result(200, reply) + } +} + +func _KesselResourceService_UpdateResource0_HTTP_Handler(srv KesselResourceServiceHTTPServer) func(ctx http.Context) error { + return func(ctx http.Context) error { + var in UpdateResourceRequest + if err := ctx.Bind(&in); err != nil { + return err + } + if err := ctx.BindQuery(&in); err != nil { + return err + } + http.SetOperation(ctx, OperationKesselResourceServiceUpdateResource) + h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.UpdateResource(ctx, req.(*UpdateResourceRequest)) + }) + out, err := h(ctx, &in) + if err != nil { + return err + } + reply := out.(*UpdateResourceResponse) + return ctx.Result(200, reply) + } +} + +func _KesselResourceService_DeleteResource0_HTTP_Handler(srv KesselResourceServiceHTTPServer) func(ctx http.Context) error { + return func(ctx http.Context) error { + var in DeleteResourceRequest + if err := ctx.BindQuery(&in); err != nil { + return err + } + http.SetOperation(ctx, OperationKesselResourceServiceDeleteResource) + h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.DeleteResource(ctx, req.(*DeleteResourceRequest)) + }) + out, err := h(ctx, &in) + if err != nil { + return err + } + reply := out.(*DeleteResourceResponse) + return ctx.Result(200, reply) + } +} + +type KesselResourceServiceHTTPClient interface { + CreateResource(ctx context.Context, req *CreateResourceRequest, opts ...http.CallOption) (rsp *CreateResourceResponse, err error) + DeleteResource(ctx context.Context, req *DeleteResourceRequest, opts ...http.CallOption) (rsp *DeleteResourceResponse, err error) + UpdateResource(ctx context.Context, req *UpdateResourceRequest, opts ...http.CallOption) (rsp *UpdateResourceResponse, err error) +} + +type KesselResourceServiceHTTPClientImpl struct { + cc *http.Client +} + +func NewKesselResourceServiceHTTPClient(client *http.Client) KesselResourceServiceHTTPClient { + return &KesselResourceServiceHTTPClientImpl{client} +} + +func (c *KesselResourceServiceHTTPClientImpl) CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...http.CallOption) (*CreateResourceResponse, error) { + var out CreateResourceResponse + pattern := "/api/inventory/v1beta2/resources" + path := binding.EncodeURL(pattern, in, false) + opts = append(opts, http.Operation(OperationKesselResourceServiceCreateResource)) + opts = append(opts, http.PathTemplate(pattern)) + err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) + if err != nil { + return nil, err + } + return &out, nil +} + +func (c *KesselResourceServiceHTTPClientImpl) DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...http.CallOption) (*DeleteResourceResponse, error) { + var out DeleteResourceResponse + pattern := "/api/inventory/v1beta2/resources" + path := binding.EncodeURL(pattern, in, true) + opts = append(opts, http.Operation(OperationKesselResourceServiceDeleteResource)) + opts = append(opts, http.PathTemplate(pattern)) + err := c.cc.Invoke(ctx, "DELETE", path, nil, &out, opts...) + if err != nil { + return nil, err + } + return &out, nil +} + +func (c *KesselResourceServiceHTTPClientImpl) UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...http.CallOption) (*UpdateResourceResponse, error) { + var out UpdateResourceResponse + pattern := "/api/inventory/v1beta2/resources" + path := binding.EncodeURL(pattern, in, false) + opts = append(opts, http.Operation(OperationKesselResourceServiceUpdateResource)) + opts = append(opts, http.PathTemplate(pattern)) + err := c.cc.Invoke(ctx, "PUT", path, in, &out, opts...) + if err != nil { + return nil, err + } + return &out, nil +}