mirror of https://github.com/hashicorp/boundary
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
711 lines
28 KiB
711 lines
28 KiB
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc (unknown)
|
|
// source: controller/api/services/v1/credential_service.proto
|
|
|
|
package services
|
|
|
|
import (
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
|
|
credentials "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/credentials"
|
|
_ "github.com/hashicorp/boundary/sdk/pbs/controller/protooptions"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 GetCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetCredentialRequest) Reset() {
|
|
*x = GetCredentialRequest{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *GetCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *GetCredentialRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Item *credentials.Credential `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetCredentialResponse) Reset() {
|
|
*x = GetCredentialResponse{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *GetCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetCredentialResponse) GetItem() *credentials.Credential {
|
|
if x != nil {
|
|
return x.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListCredentialsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CredentialStoreId string `protobuf:"bytes,1,opt,name=credential_store_id,json=scope_id,proto3" json:"credential_store_id,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// You can specify that the filter should only return items that match.
|
|
// Refer to [filter expressions](https://developer.hashicorp.com/boundary/docs/concepts/filtering) for more information.
|
|
Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// An opaque token that Boundary uses to continue an existing iteration or
|
|
// request updated items. If you do not specify a token, pagination
|
|
// starts from the beginning. To learn more about list pagination
|
|
// in Boundary, refer to [list pagination](https://developer.hashicorp.com/boundary/docs/api-clients/api/pagination).
|
|
ListToken string `protobuf:"bytes,40,opt,name=list_token,proto3" json:"list_token,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// The maximum size of a page in this iteration.
|
|
// If you do not set a page size, Boundary uses the configured default page size.
|
|
// If the page_size is greater than the default page size configured,
|
|
// Boundary truncates the page size to this number.
|
|
PageSize uint32 `protobuf:"varint,50,opt,name=page_size,proto3" json:"page_size,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) Reset() {
|
|
*x = ListCredentialsRequest{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListCredentialsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListCredentialsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListCredentialsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListCredentialsRequest) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) GetCredentialStoreId() string {
|
|
if x != nil {
|
|
return x.CredentialStoreId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) GetFilter() string {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) GetListToken() string {
|
|
if x != nil {
|
|
return x.ListToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) GetPageSize() uint32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListCredentialsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The items returned in this page.
|
|
Items []*credentials.Credential `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
// The type of response, either "delta" or "complete".
|
|
// Delta signifies that this is part of a paginated result
|
|
// or an update to a previously completed pagination.
|
|
// Complete signifies that it is the last page.
|
|
ResponseType string `protobuf:"bytes,2,opt,name=response_type,proto3" json:"response_type,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// An opaque token used to continue an existing pagination or
|
|
// request updated items. Use this token in the next list request
|
|
// to request the next page.
|
|
ListToken string `protobuf:"bytes,3,opt,name=list_token,proto3" json:"list_token,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// The name of the field which the items are sorted by.
|
|
SortBy string `protobuf:"bytes,4,opt,name=sort_by,proto3" json:"sort_by,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// The direction of the sort, either "asc" or "desc".
|
|
SortDir string `protobuf:"bytes,5,opt,name=sort_dir,proto3" json:"sort_dir,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// A list of item IDs that have been removed since they were returned
|
|
// as part of a pagination. They should be dropped from any client cache.
|
|
// This may contain items that are not known to the cache, if they were
|
|
// created and deleted between listings.
|
|
RemovedIds []string `protobuf:"bytes,6,rep,name=removed_ids,proto3" json:"removed_ids,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
// An estimate at the total items available. This may change during pagination.
|
|
EstItemCount uint32 `protobuf:"varint,7,opt,name=est_item_count,proto3" json:"est_item_count,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) Reset() {
|
|
*x = ListCredentialsResponse{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListCredentialsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListCredentialsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListCredentialsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListCredentialsResponse) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetItems() []*credentials.Credential {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetResponseType() string {
|
|
if x != nil {
|
|
return x.ResponseType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetListToken() string {
|
|
if x != nil {
|
|
return x.ListToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetSortBy() string {
|
|
if x != nil {
|
|
return x.SortBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetSortDir() string {
|
|
if x != nil {
|
|
return x.SortDir
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetRemovedIds() []string {
|
|
if x != nil {
|
|
return x.RemovedIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetEstItemCount() uint32 {
|
|
if x != nil {
|
|
return x.EstItemCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Item *credentials.Credential `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateCredentialRequest) Reset() {
|
|
*x = CreateCredentialRequest{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CreateCredentialRequest) GetItem() *credentials.Credential {
|
|
if x != nil {
|
|
return x.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
Item *credentials.Credential `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateCredentialResponse) Reset() {
|
|
*x = CreateCredentialResponse{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreateCredentialResponse) GetUri() string {
|
|
if x != nil {
|
|
return x.Uri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCredentialResponse) GetItem() *credentials.Credential {
|
|
if x != nil {
|
|
return x.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
Item *credentials.Credential `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,proto3" json:"update_mask,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateCredentialRequest) Reset() {
|
|
*x = UpdateCredentialRequest{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UpdateCredentialRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateCredentialRequest) GetItem() *credentials.Credential {
|
|
if x != nil {
|
|
return x.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateCredentialRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|
if x != nil {
|
|
return x.UpdateMask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Item *credentials.Credential `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateCredentialResponse) Reset() {
|
|
*x = UpdateCredentialResponse{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdateCredentialResponse) GetItem() *credentials.Credential {
|
|
if x != nil {
|
|
return x.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteCredentialRequest) Reset() {
|
|
*x = DeleteCredentialRequest{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *DeleteCredentialRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteCredentialResponse) Reset() {
|
|
*x = DeleteCredentialResponse{}
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_services_v1_credential_service_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
var File_controller_api_services_v1_credential_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_controller_api_services_v1_credential_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"3controller/api/services/v1/credential_service.proto\x12\x1acontroller.api.services.v1\x1a8controller/api/resources/credentials/v1/credential.proto\x1a*controller/custom_options/v1/options.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"&\n" +
|
|
"\x14GetCredentialRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"`\n" +
|
|
"\x15GetCredentialResponse\x12G\n" +
|
|
"\x04item\x18\x01 \x01(\v23.controller.api.resources.credentials.v1.CredentialR\x04item\"\x95\x01\n" +
|
|
"\x16ListCredentialsRequest\x12%\n" +
|
|
"\x13credential_store_id\x18\x01 \x01(\tR\bscope_id\x12\x16\n" +
|
|
"\x06filter\x18\x1e \x01(\tR\x06filter\x12\x1e\n" +
|
|
"\n" +
|
|
"list_token\x18( \x01(\tR\n" +
|
|
"list_token\x12\x1c\n" +
|
|
"\tpage_size\x182 \x01(\rR\tpage_size\"\xaa\x02\n" +
|
|
"\x17ListCredentialsResponse\x12I\n" +
|
|
"\x05items\x18\x01 \x03(\v23.controller.api.resources.credentials.v1.CredentialR\x05items\x12$\n" +
|
|
"\rresponse_type\x18\x02 \x01(\tR\rresponse_type\x12\x1e\n" +
|
|
"\n" +
|
|
"list_token\x18\x03 \x01(\tR\n" +
|
|
"list_token\x12\x18\n" +
|
|
"\asort_by\x18\x04 \x01(\tR\asort_by\x12\x1a\n" +
|
|
"\bsort_dir\x18\x05 \x01(\tR\bsort_dir\x12 \n" +
|
|
"\vremoved_ids\x18\x06 \x03(\tR\vremoved_ids\x12&\n" +
|
|
"\x0eest_item_count\x18\a \x01(\rR\x0eest_item_count\"b\n" +
|
|
"\x17CreateCredentialRequest\x12G\n" +
|
|
"\x04item\x18\x01 \x01(\v23.controller.api.resources.credentials.v1.CredentialR\x04item\"u\n" +
|
|
"\x18CreateCredentialResponse\x12\x10\n" +
|
|
"\x03uri\x18\x01 \x01(\tR\x03uri\x12G\n" +
|
|
"\x04item\x18\x02 \x01(\v23.controller.api.resources.credentials.v1.CredentialR\x04item\"\xb0\x01\n" +
|
|
"\x17UpdateCredentialRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12G\n" +
|
|
"\x04item\x18\x02 \x01(\v23.controller.api.resources.credentials.v1.CredentialR\x04item\x12<\n" +
|
|
"\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskR\vupdate_mask\"c\n" +
|
|
"\x18UpdateCredentialResponse\x12G\n" +
|
|
"\x04item\x18\x01 \x01(\v23.controller.api.resources.credentials.v1.CredentialR\x04item\")\n" +
|
|
"\x17DeleteCredentialRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x1a\n" +
|
|
"\x18DeleteCredentialResponse2\xcf\n" +
|
|
"\n" +
|
|
"\x11CredentialService\x12\xb6\x01\n" +
|
|
"\rGetCredential\x120.controller.api.services.v1.GetCredentialRequest\x1a1.controller.api.services.v1.GetCredentialResponse\"@\x92A\x1b\x12\x19Gets a single Credential.\x82\xd3\xe4\x93\x02\x1cb\x04item\x12\x14/v1/credentials/{id}\x12\xae\x01\n" +
|
|
"\x0fListCredentials\x122.controller.api.services.v1.ListCredentialsRequest\x1a3.controller.api.services.v1.ListCredentialsResponse\"2\x92A\x18\x12\x16Lists all Credentials.\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/credentials\x12\xc3\x01\n" +
|
|
"\x10CreateCredential\x123.controller.api.services.v1.CreateCredentialRequest\x1a4.controller.api.services.v1.CreateCredentialResponse\"D\x92A\x1e\x12\x1cCreates a single Credential.\x82\xd3\xe4\x93\x02\x1d:\x04itemb\x04item\"\x0f/v1/credentials\x12\xc1\x01\n" +
|
|
"\x10UpdateCredential\x123.controller.api.services.v1.UpdateCredentialRequest\x1a4.controller.api.services.v1.UpdateCredentialResponse\"B\x92A\x17\x12\x15Updates a Credential.\x82\xd3\xe4\x93\x02\":\x04itemb\x04item2\x14/v1/credentials/{id}\x12\xb4\x01\n" +
|
|
"\x10DeleteCredential\x123.controller.api.services.v1.DeleteCredentialRequest\x1a4.controller.api.services.v1.DeleteCredentialResponse\"5\x92A\x16\x12\x14Deletes a Credential\x82\xd3\xe4\x93\x02\x16*\x14/v1/credentials/{id}\x1a\x8e\x03\x92A\x8a\x03\n" +
|
|
"\x12Credential service\x12\xea\x01A credential is a data structure that contains one or more secrets that bind an identity to a set of permissions or capabilities on a host for a session. The credential service provides endpoints for managing credentials in Boundary. \x1a\x86\x01\n" +
|
|
"3Read about credentials in the Boundary domain model\x12Ohttps://developer.hashicorp.com/boundary/docs/concepts/domain-model/credentialsB[\xa2\xe3)\n" +
|
|
"credentialZKgithub.com/hashicorp/boundary/internal/gen/controller/api/services;servicesb\x06proto3"
|
|
|
|
var (
|
|
file_controller_api_services_v1_credential_service_proto_rawDescOnce sync.Once
|
|
file_controller_api_services_v1_credential_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_controller_api_services_v1_credential_service_proto_rawDescGZIP() []byte {
|
|
file_controller_api_services_v1_credential_service_proto_rawDescOnce.Do(func() {
|
|
file_controller_api_services_v1_credential_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_api_services_v1_credential_service_proto_rawDesc), len(file_controller_api_services_v1_credential_service_proto_rawDesc)))
|
|
})
|
|
return file_controller_api_services_v1_credential_service_proto_rawDescData
|
|
}
|
|
|
|
var file_controller_api_services_v1_credential_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
var file_controller_api_services_v1_credential_service_proto_goTypes = []any{
|
|
(*GetCredentialRequest)(nil), // 0: controller.api.services.v1.GetCredentialRequest
|
|
(*GetCredentialResponse)(nil), // 1: controller.api.services.v1.GetCredentialResponse
|
|
(*ListCredentialsRequest)(nil), // 2: controller.api.services.v1.ListCredentialsRequest
|
|
(*ListCredentialsResponse)(nil), // 3: controller.api.services.v1.ListCredentialsResponse
|
|
(*CreateCredentialRequest)(nil), // 4: controller.api.services.v1.CreateCredentialRequest
|
|
(*CreateCredentialResponse)(nil), // 5: controller.api.services.v1.CreateCredentialResponse
|
|
(*UpdateCredentialRequest)(nil), // 6: controller.api.services.v1.UpdateCredentialRequest
|
|
(*UpdateCredentialResponse)(nil), // 7: controller.api.services.v1.UpdateCredentialResponse
|
|
(*DeleteCredentialRequest)(nil), // 8: controller.api.services.v1.DeleteCredentialRequest
|
|
(*DeleteCredentialResponse)(nil), // 9: controller.api.services.v1.DeleteCredentialResponse
|
|
(*credentials.Credential)(nil), // 10: controller.api.resources.credentials.v1.Credential
|
|
(*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask
|
|
}
|
|
var file_controller_api_services_v1_credential_service_proto_depIdxs = []int32{
|
|
10, // 0: controller.api.services.v1.GetCredentialResponse.item:type_name -> controller.api.resources.credentials.v1.Credential
|
|
10, // 1: controller.api.services.v1.ListCredentialsResponse.items:type_name -> controller.api.resources.credentials.v1.Credential
|
|
10, // 2: controller.api.services.v1.CreateCredentialRequest.item:type_name -> controller.api.resources.credentials.v1.Credential
|
|
10, // 3: controller.api.services.v1.CreateCredentialResponse.item:type_name -> controller.api.resources.credentials.v1.Credential
|
|
10, // 4: controller.api.services.v1.UpdateCredentialRequest.item:type_name -> controller.api.resources.credentials.v1.Credential
|
|
11, // 5: controller.api.services.v1.UpdateCredentialRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
10, // 6: controller.api.services.v1.UpdateCredentialResponse.item:type_name -> controller.api.resources.credentials.v1.Credential
|
|
0, // 7: controller.api.services.v1.CredentialService.GetCredential:input_type -> controller.api.services.v1.GetCredentialRequest
|
|
2, // 8: controller.api.services.v1.CredentialService.ListCredentials:input_type -> controller.api.services.v1.ListCredentialsRequest
|
|
4, // 9: controller.api.services.v1.CredentialService.CreateCredential:input_type -> controller.api.services.v1.CreateCredentialRequest
|
|
6, // 10: controller.api.services.v1.CredentialService.UpdateCredential:input_type -> controller.api.services.v1.UpdateCredentialRequest
|
|
8, // 11: controller.api.services.v1.CredentialService.DeleteCredential:input_type -> controller.api.services.v1.DeleteCredentialRequest
|
|
1, // 12: controller.api.services.v1.CredentialService.GetCredential:output_type -> controller.api.services.v1.GetCredentialResponse
|
|
3, // 13: controller.api.services.v1.CredentialService.ListCredentials:output_type -> controller.api.services.v1.ListCredentialsResponse
|
|
5, // 14: controller.api.services.v1.CredentialService.CreateCredential:output_type -> controller.api.services.v1.CreateCredentialResponse
|
|
7, // 15: controller.api.services.v1.CredentialService.UpdateCredential:output_type -> controller.api.services.v1.UpdateCredentialResponse
|
|
9, // 16: controller.api.services.v1.CredentialService.DeleteCredential:output_type -> controller.api.services.v1.DeleteCredentialResponse
|
|
12, // [12:17] is the sub-list for method output_type
|
|
7, // [7:12] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_controller_api_services_v1_credential_service_proto_init() }
|
|
func file_controller_api_services_v1_credential_service_proto_init() {
|
|
if File_controller_api_services_v1_credential_service_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_api_services_v1_credential_service_proto_rawDesc), len(file_controller_api_services_v1_credential_service_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 10,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_controller_api_services_v1_credential_service_proto_goTypes,
|
|
DependencyIndexes: file_controller_api_services_v1_credential_service_proto_depIdxs,
|
|
MessageInfos: file_controller_api_services_v1_credential_service_proto_msgTypes,
|
|
}.Build()
|
|
File_controller_api_services_v1_credential_service_proto = out.File
|
|
file_controller_api_services_v1_credential_service_proto_goTypes = nil
|
|
file_controller_api_services_v1_credential_service_proto_depIdxs = nil
|
|
}
|