From 68e6ea991c4583afcef62e9b55196f505032e686 Mon Sep 17 00:00:00 2001 From: Niranjan Mahabaleshwar <109181518+nmahabaleshwar@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:57:45 -0800 Subject: [PATCH] Update authorization and authentication entity names --- acctz/acctz.pb.go | 830 +++++++++++++++++++++++++++++++----------- acctz/acctz.proto | 59 +-- version/version.pb.go | 2 +- version/version.proto | 2 +- 4 files changed, 653 insertions(+), 240 deletions(-) diff --git a/acctz/acctz.pb.go b/acctz/acctz.pb.go index 716aa03..2185f95 100755 --- a/acctz/acctz.pb.go +++ b/acctz/acctz.pb.go @@ -23,53 +23,230 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type AuthDetail_AuthenStatus int32 +type SessionInfo_SessionStatus int32 const ( - AuthDetail_AUTHEN_STATUS_UNSPECIFIED AuthDetail_AuthenStatus = 0 - AuthDetail_AUTHEN_STATUS_PERMIT AuthDetail_AuthenStatus = 1 - AuthDetail_AUTHEN_STATUS_DENY AuthDetail_AuthenStatus = 2 + SessionInfo_SESSION_STATUS_UNSPECIFIED SessionInfo_SessionStatus = 0 + SessionInfo_SESSION_STATUS_LOGIN SessionInfo_SessionStatus = 1 + SessionInfo_SESSION_STATUS_LOGOUT SessionInfo_SessionStatus = 2 + SessionInfo_SESSION_STATUS_ONCE SessionInfo_SessionStatus = 3 + SessionInfo_SESSION_STATUS_ENABLE SessionInfo_SessionStatus = 4 + SessionInfo_SESSION_STATUS_IDLE SessionInfo_SessionStatus = 5 ) -// Enum value maps for AuthDetail_AuthenStatus. +// Enum value maps for SessionInfo_SessionStatus. var ( - AuthDetail_AuthenStatus_name = map[int32]string{ - 0: "AUTHEN_STATUS_UNSPECIFIED", - 1: "AUTHEN_STATUS_PERMIT", - 2: "AUTHEN_STATUS_DENY", + SessionInfo_SessionStatus_name = map[int32]string{ + 0: "SESSION_STATUS_UNSPECIFIED", + 1: "SESSION_STATUS_LOGIN", + 2: "SESSION_STATUS_LOGOUT", + 3: "SESSION_STATUS_ONCE", + 4: "SESSION_STATUS_ENABLE", + 5: "SESSION_STATUS_IDLE", } - AuthDetail_AuthenStatus_value = map[string]int32{ - "AUTHEN_STATUS_UNSPECIFIED": 0, - "AUTHEN_STATUS_PERMIT": 1, - "AUTHEN_STATUS_DENY": 2, + SessionInfo_SessionStatus_value = map[string]int32{ + "SESSION_STATUS_UNSPECIFIED": 0, + "SESSION_STATUS_LOGIN": 1, + "SESSION_STATUS_LOGOUT": 2, + "SESSION_STATUS_ONCE": 3, + "SESSION_STATUS_ENABLE": 4, + "SESSION_STATUS_IDLE": 5, } ) -func (x AuthDetail_AuthenStatus) Enum() *AuthDetail_AuthenStatus { - p := new(AuthDetail_AuthenStatus) +func (x SessionInfo_SessionStatus) Enum() *SessionInfo_SessionStatus { + p := new(SessionInfo_SessionStatus) *p = x return p } -func (x AuthDetail_AuthenStatus) String() string { +func (x SessionInfo_SessionStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (AuthDetail_AuthenStatus) Descriptor() protoreflect.EnumDescriptor { +func (SessionInfo_SessionStatus) Descriptor() protoreflect.EnumDescriptor { return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[0].Descriptor() } -func (AuthDetail_AuthenStatus) Type() protoreflect.EnumType { +func (SessionInfo_SessionStatus) Type() protoreflect.EnumType { return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[0] } -func (x AuthDetail_AuthenStatus) Number() protoreflect.EnumNumber { +func (x SessionInfo_SessionStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use AuthDetail_AuthenStatus.Descriptor instead. -func (AuthDetail_AuthenStatus) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{1, 0} +// Deprecated: Use SessionInfo_SessionStatus.Descriptor instead. +func (SessionInfo_SessionStatus) EnumDescriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{0, 0} +} + +type AuthnDetail_AuthnType int32 + +const ( + AuthnDetail_AUTHN_TYPE_UNSPECIFIED AuthnDetail_AuthnType = 0 + AuthnDetail_AUTHN_TYPE_NONE AuthnDetail_AuthnType = 1 + AuthnDetail_AUTHN_TYPE_PASSWORD AuthnDetail_AuthnType = 2 + AuthnDetail_AUTHN_TYPE_SSHKEY AuthnDetail_AuthnType = 3 + AuthnDetail_AUTHN_TYPE_SSHCERT AuthnDetail_AuthnType = 4 + AuthnDetail_AUTHN_TYPE_TLSCERT AuthnDetail_AuthnType = 5 + AuthnDetail_AUTHN_TYPE_PAP AuthnDetail_AuthnType = 6 + AuthnDetail_AUTHN_TYPE_CHAP AuthnDetail_AuthnType = 7 +) + +// Enum value maps for AuthnDetail_AuthnType. +var ( + AuthnDetail_AuthnType_name = map[int32]string{ + 0: "AUTHN_TYPE_UNSPECIFIED", + 1: "AUTHN_TYPE_NONE", + 2: "AUTHN_TYPE_PASSWORD", + 3: "AUTHN_TYPE_SSHKEY", + 4: "AUTHN_TYPE_SSHCERT", + 5: "AUTHN_TYPE_TLSCERT", + 6: "AUTHN_TYPE_PAP", + 7: "AUTHN_TYPE_CHAP", + } + AuthnDetail_AuthnType_value = map[string]int32{ + "AUTHN_TYPE_UNSPECIFIED": 0, + "AUTHN_TYPE_NONE": 1, + "AUTHN_TYPE_PASSWORD": 2, + "AUTHN_TYPE_SSHKEY": 3, + "AUTHN_TYPE_SSHCERT": 4, + "AUTHN_TYPE_TLSCERT": 5, + "AUTHN_TYPE_PAP": 6, + "AUTHN_TYPE_CHAP": 7, + } +) + +func (x AuthnDetail_AuthnType) Enum() *AuthnDetail_AuthnType { + p := new(AuthnDetail_AuthnType) + *p = x + return p +} + +func (x AuthnDetail_AuthnType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AuthnDetail_AuthnType) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[1].Descriptor() +} + +func (AuthnDetail_AuthnType) Type() protoreflect.EnumType { + return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[1] +} + +func (x AuthnDetail_AuthnType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AuthnDetail_AuthnType.Descriptor instead. +func (AuthnDetail_AuthnType) EnumDescriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{2, 0} +} + +type AuthnDetail_AuthnStatus int32 + +const ( + AuthnDetail_AUTHN_STATUS_UNSPECIFIED AuthnDetail_AuthnStatus = 0 + AuthnDetail_AUTHN_STATUS_SUCCESS AuthnDetail_AuthnStatus = 1 + AuthnDetail_AUTHN_STATUS_FAIL AuthnDetail_AuthnStatus = 2 + AuthnDetail_AUTHN_STATUS_ERROR AuthnDetail_AuthnStatus = 3 +) + +// Enum value maps for AuthnDetail_AuthnStatus. +var ( + AuthnDetail_AuthnStatus_name = map[int32]string{ + 0: "AUTHN_STATUS_UNSPECIFIED", + 1: "AUTHN_STATUS_SUCCESS", + 2: "AUTHN_STATUS_FAIL", + 3: "AUTHN_STATUS_ERROR", + } + AuthnDetail_AuthnStatus_value = map[string]int32{ + "AUTHN_STATUS_UNSPECIFIED": 0, + "AUTHN_STATUS_SUCCESS": 1, + "AUTHN_STATUS_FAIL": 2, + "AUTHN_STATUS_ERROR": 3, + } +) + +func (x AuthnDetail_AuthnStatus) Enum() *AuthnDetail_AuthnStatus { + p := new(AuthnDetail_AuthnStatus) + *p = x + return p +} + +func (x AuthnDetail_AuthnStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AuthnDetail_AuthnStatus) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[2].Descriptor() +} + +func (AuthnDetail_AuthnStatus) Type() protoreflect.EnumType { + return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[2] +} + +func (x AuthnDetail_AuthnStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AuthnDetail_AuthnStatus.Descriptor instead. +func (AuthnDetail_AuthnStatus) EnumDescriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{2, 1} +} + +type AuthzDetail_AuthzStatus int32 + +const ( + AuthzDetail_AUTHZ_STATUS_UNSPECIFIED AuthzDetail_AuthzStatus = 0 + AuthzDetail_AUTHZ_STATUS_PERMIT AuthzDetail_AuthzStatus = 1 + AuthzDetail_AUTHZ_STATUS_DENY AuthzDetail_AuthzStatus = 2 + AuthzDetail_AUTHZ_STATUS_ERROR AuthzDetail_AuthzStatus = 3 +) + +// Enum value maps for AuthzDetail_AuthzStatus. +var ( + AuthzDetail_AuthzStatus_name = map[int32]string{ + 0: "AUTHZ_STATUS_UNSPECIFIED", + 1: "AUTHZ_STATUS_PERMIT", + 2: "AUTHZ_STATUS_DENY", + 3: "AUTHZ_STATUS_ERROR", + } + AuthzDetail_AuthzStatus_value = map[string]int32{ + "AUTHZ_STATUS_UNSPECIFIED": 0, + "AUTHZ_STATUS_PERMIT": 1, + "AUTHZ_STATUS_DENY": 2, + "AUTHZ_STATUS_ERROR": 3, + } +) + +func (x AuthzDetail_AuthzStatus) Enum() *AuthzDetail_AuthzStatus { + p := new(AuthzDetail_AuthzStatus) + *p = x + return p +} + +func (x AuthzDetail_AuthzStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AuthzDetail_AuthzStatus) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[3].Descriptor() +} + +func (AuthzDetail_AuthzStatus) Type() protoreflect.EnumType { + return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[3] +} + +func (x AuthzDetail_AuthzStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AuthzDetail_AuthzStatus.Descriptor instead. +func (AuthzDetail_AuthzStatus) EnumDescriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{3, 0} } type CommandService_CmdServiceType int32 @@ -78,7 +255,7 @@ const ( CommandService_CMD_SERVICE_TYPE_UNSPECIFIED CommandService_CmdServiceType = 0 CommandService_CMD_SERVICE_TYPE_SHELL CommandService_CmdServiceType = 1 CommandService_CMD_SERVICE_TYPE_CLI CommandService_CmdServiceType = 2 - CommandService_CMD_SERVICE_TYPE_HTTP CommandService_CmdServiceType = 3 + CommandService_CMD_SERVICE_TYPE_WEBUI CommandService_CmdServiceType = 3 CommandService_CMD_SERVICE_TYPE_RESTCONF CommandService_CmdServiceType = 4 CommandService_CMD_SERVICE_TYPE_NETCONF CommandService_CmdServiceType = 5 ) @@ -89,7 +266,7 @@ var ( 0: "CMD_SERVICE_TYPE_UNSPECIFIED", 1: "CMD_SERVICE_TYPE_SHELL", 2: "CMD_SERVICE_TYPE_CLI", - 3: "CMD_SERVICE_TYPE_HTTP", + 3: "CMD_SERVICE_TYPE_WEBUI", 4: "CMD_SERVICE_TYPE_RESTCONF", 5: "CMD_SERVICE_TYPE_NETCONF", } @@ -97,7 +274,7 @@ var ( "CMD_SERVICE_TYPE_UNSPECIFIED": 0, "CMD_SERVICE_TYPE_SHELL": 1, "CMD_SERVICE_TYPE_CLI": 2, - "CMD_SERVICE_TYPE_HTTP": 3, + "CMD_SERVICE_TYPE_WEBUI": 3, "CMD_SERVICE_TYPE_RESTCONF": 4, "CMD_SERVICE_TYPE_NETCONF": 5, } @@ -114,11 +291,11 @@ func (x CommandService_CmdServiceType) String() string { } func (CommandService_CmdServiceType) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[1].Descriptor() + return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[4].Descriptor() } func (CommandService_CmdServiceType) Type() protoreflect.EnumType { - return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[1] + return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[4] } func (x CommandService_CmdServiceType) Number() protoreflect.EnumNumber { @@ -127,7 +304,7 @@ func (x CommandService_CmdServiceType) Number() protoreflect.EnumNumber { // Deprecated: Use CommandService_CmdServiceType.Descriptor instead. func (CommandService_CmdServiceType) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{2, 0} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{4, 0} } type GrpcService_GrpcServiceType int32 @@ -172,11 +349,11 @@ func (x GrpcService_GrpcServiceType) String() string { } func (GrpcService_GrpcServiceType) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[2].Descriptor() + return file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[5].Descriptor() } func (GrpcService_GrpcServiceType) Type() protoreflect.EnumType { - return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[2] + return &file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes[5] } func (x GrpcService_GrpcServiceType) Number() protoreflect.EnumNumber { @@ -185,7 +362,7 @@ func (x GrpcService_GrpcServiceType) Number() protoreflect.EnumNumber { // Deprecated: Use GrpcService_GrpcServiceType.Descriptor instead. func (GrpcService_GrpcServiceType) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{3, 0} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{5, 0} } type SessionInfo struct { @@ -193,12 +370,16 @@ type SessionInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - LocalAddress string `protobuf:"bytes,1,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` - LocalPort uint32 `protobuf:"varint,2,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"` - RemoteAddress string `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` - RemotePort uint32 `protobuf:"varint,4,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"` - IpProto uint32 `protobuf:"varint,5,opt,name=ip_proto,json=ipProto,proto3" json:"ip_proto,omitempty"` - ChannelId string `protobuf:"bytes,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + LocalAddress string `protobuf:"bytes,1,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` + LocalPort uint32 `protobuf:"varint,2,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"` + RemoteAddress string `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + RemotePort uint32 `protobuf:"varint,4,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"` + IpProto uint32 `protobuf:"varint,5,opt,name=ip_proto,json=ipProto,proto3" json:"ip_proto,omitempty"` + ChannelId string `protobuf:"bytes,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Tty string `protobuf:"bytes,7,opt,name=tty,proto3" json:"tty,omitempty"` + Status SessionInfo_SessionStatus `protobuf:"varint,8,opt,name=status,proto3,enum=gnsi.acctz.v1.SessionInfo_SessionStatus" json:"status,omitempty"` + User *UserDetail `protobuf:"bytes,9,opt,name=user,proto3" json:"user,omitempty"` + Authn *AuthnDetail `protobuf:"bytes,10,opt,name=authn,proto3" json:"authn,omitempty"` } func (x *SessionInfo) Reset() { @@ -275,19 +456,45 @@ func (x *SessionInfo) GetChannelId() string { return "" } -type AuthDetail struct { +func (x *SessionInfo) GetTty() string { + if x != nil { + return x.Tty + } + return "" +} + +func (x *SessionInfo) GetStatus() SessionInfo_SessionStatus { + if x != nil { + return x.Status + } + return SessionInfo_SESSION_STATUS_UNSPECIFIED +} + +func (x *SessionInfo) GetUser() *UserDetail { + if x != nil { + return x.User + } + return nil +} + +func (x *SessionInfo) GetAuthn() *AuthnDetail { + if x != nil { + return x.Authn + } + return nil +} + +type UserDetail struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - PrivilegeLevel uint32 `protobuf:"varint,2,opt,name=privilege_level,json=privilegeLevel,proto3" json:"privilege_level,omitempty"` - Status AuthDetail_AuthenStatus `protobuf:"varint,3,opt,name=status,proto3,enum=gnsi.acctz.v1.AuthDetail_AuthenStatus" json:"status,omitempty"` - DenyCause string `protobuf:"bytes,4,opt,name=deny_cause,json=denyCause,proto3" json:"deny_cause,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` } -func (x *AuthDetail) Reset() { - *x = AuthDetail{} +func (x *UserDetail) Reset() { + *x = UserDetail{} if protoimpl.UnsafeEnabled { mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -295,13 +502,13 @@ func (x *AuthDetail) Reset() { } } -func (x *AuthDetail) String() string { +func (x *UserDetail) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AuthDetail) ProtoMessage() {} +func (*UserDetail) ProtoMessage() {} -func (x *AuthDetail) ProtoReflect() protoreflect.Message { +func (x *UserDetail) ProtoReflect() protoreflect.Message { mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -313,35 +520,139 @@ func (x *AuthDetail) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AuthDetail.ProtoReflect.Descriptor instead. -func (*AuthDetail) Descriptor() ([]byte, []int) { +// Deprecated: Use UserDetail.ProtoReflect.Descriptor instead. +func (*UserDetail) Descriptor() ([]byte, []int) { return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{1} } -func (x *AuthDetail) GetIdentity() string { +func (x *UserDetail) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *AuthDetail) GetPrivilegeLevel() uint32 { +func (x *UserDetail) GetGroup() string { if x != nil { - return x.PrivilegeLevel + return x.Group } - return 0 + return "" +} + +type AuthnDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type AuthnDetail_AuthnType `protobuf:"varint,1,opt,name=type,proto3,enum=gnsi.acctz.v1.AuthnDetail_AuthnType" json:"type,omitempty"` + Status AuthnDetail_AuthnStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnsi.acctz.v1.AuthnDetail_AuthnStatus" json:"status,omitempty"` + Cause string `protobuf:"bytes,3,opt,name=cause,proto3" json:"cause,omitempty"` } -func (x *AuthDetail) GetStatus() AuthDetail_AuthenStatus { +func (x *AuthnDetail) Reset() { + *x = AuthnDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthnDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthnDetail) ProtoMessage() {} + +func (x *AuthnDetail) ProtoReflect() protoreflect.Message { + mi := &file_github_com_openconfig_gnsi_acctz_acctz_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 AuthnDetail.ProtoReflect.Descriptor instead. +func (*AuthnDetail) Descriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{2} +} + +func (x *AuthnDetail) GetType() AuthnDetail_AuthnType { + if x != nil { + return x.Type + } + return AuthnDetail_AUTHN_TYPE_UNSPECIFIED +} + +func (x *AuthnDetail) GetStatus() AuthnDetail_AuthnStatus { + if x != nil { + return x.Status + } + return AuthnDetail_AUTHN_STATUS_UNSPECIFIED +} + +func (x *AuthnDetail) GetCause() string { + if x != nil { + return x.Cause + } + return "" +} + +type AuthzDetail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status AuthzDetail_AuthzStatus `protobuf:"varint,1,opt,name=status,proto3,enum=gnsi.acctz.v1.AuthzDetail_AuthzStatus" json:"status,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` +} + +func (x *AuthzDetail) Reset() { + *x = AuthzDetail{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthzDetail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthzDetail) ProtoMessage() {} + +func (x *AuthzDetail) ProtoReflect() protoreflect.Message { + mi := &file_github_com_openconfig_gnsi_acctz_acctz_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 AuthzDetail.ProtoReflect.Descriptor instead. +func (*AuthzDetail) Descriptor() ([]byte, []int) { + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{3} +} + +func (x *AuthzDetail) GetStatus() AuthzDetail_AuthzStatus { if x != nil { return x.Status } - return AuthDetail_AUTHEN_STATUS_UNSPECIFIED + return AuthzDetail_AUTHZ_STATUS_UNSPECIFIED } -func (x *AuthDetail) GetDenyCause() string { +func (x *AuthzDetail) GetDetail() string { if x != nil { - return x.DenyCause + return x.Detail } return "" } @@ -356,12 +667,13 @@ type CommandService struct { CmdIstruncated bool `protobuf:"varint,4,opt,name=cmd_istruncated,json=cmdIstruncated,proto3" json:"cmd_istruncated,omitempty"` CmdArgs []string `protobuf:"bytes,3,rep,name=cmd_args,json=cmdArgs,proto3" json:"cmd_args,omitempty"` CmdArgsIstruncated bool `protobuf:"varint,5,opt,name=cmd_args_istruncated,json=cmdArgsIstruncated,proto3" json:"cmd_args_istruncated,omitempty"` + Authz *AuthzDetail `protobuf:"bytes,6,opt,name=authz,proto3" json:"authz,omitempty"` } func (x *CommandService) Reset() { *x = CommandService{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[2] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -374,7 +686,7 @@ func (x *CommandService) String() string { func (*CommandService) ProtoMessage() {} func (x *CommandService) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[2] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -387,7 +699,7 @@ func (x *CommandService) ProtoReflect() protoreflect.Message { // Deprecated: Use CommandService.ProtoReflect.Descriptor instead. func (*CommandService) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{2} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{4} } func (x *CommandService) GetServiceType() CommandService_CmdServiceType { @@ -425,6 +737,13 @@ func (x *CommandService) GetCmdArgsIstruncated() bool { return false } +func (x *CommandService) GetAuthz() *AuthzDetail { + if x != nil { + return x.Authz + } + return nil +} + type GrpcService struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -434,12 +753,13 @@ type GrpcService struct { RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"` Payloads []*anypb.Any `protobuf:"bytes,3,rep,name=payloads,proto3" json:"payloads,omitempty"` PayloadIstruncated bool `protobuf:"varint,5,opt,name=payload_istruncated,json=payloadIstruncated,proto3" json:"payload_istruncated,omitempty"` + Authz *AuthzDetail `protobuf:"bytes,6,opt,name=authz,proto3" json:"authz,omitempty"` } func (x *GrpcService) Reset() { *x = GrpcService{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[3] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -452,7 +772,7 @@ func (x *GrpcService) String() string { func (*GrpcService) ProtoMessage() {} func (x *GrpcService) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[3] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -465,7 +785,7 @@ func (x *GrpcService) ProtoReflect() protoreflect.Message { // Deprecated: Use GrpcService.ProtoReflect.Descriptor instead. func (*GrpcService) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{3} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{5} } func (x *GrpcService) GetServiceType() GrpcService_GrpcServiceType { @@ -496,6 +816,13 @@ func (x *GrpcService) GetPayloadIstruncated() bool { return false } +func (x *GrpcService) GetAuthz() *AuthzDetail { + if x != nil { + return x.Authz + } + return nil +} + type RecordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -508,14 +835,13 @@ type RecordResponse struct { // *RecordResponse_CmdService // *RecordResponse_GrpcService ServiceRequest isRecordResponse_ServiceRequest `protobuf_oneof:"service_request"` - Authen *AuthDetail `protobuf:"bytes,7,opt,name=authen,proto3" json:"authen,omitempty"` - TaskIds []string `protobuf:"bytes,32,rep,name=task_ids,json=taskIds,proto3" json:"task_ids,omitempty"` + TaskIds []string `protobuf:"bytes,7,rep,name=task_ids,json=taskIds,proto3" json:"task_ids,omitempty"` } func (x *RecordResponse) Reset() { *x = RecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -528,7 +854,7 @@ func (x *RecordResponse) String() string { func (*RecordResponse) ProtoMessage() {} func (x *RecordResponse) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -541,7 +867,7 @@ func (x *RecordResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordResponse.ProtoReflect.Descriptor instead. func (*RecordResponse) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{4} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{6} } func (x *RecordResponse) GetSessionInfo() *SessionInfo { @@ -586,13 +912,6 @@ func (x *RecordResponse) GetGrpcService() *GrpcService { return nil } -func (x *RecordResponse) GetAuthen() *AuthDetail { - if x != nil { - return x.Authen - } - return nil -} - func (x *RecordResponse) GetTaskIds() []string { if x != nil { return x.TaskIds @@ -627,7 +946,7 @@ type RecordRequest struct { func (x *RecordRequest) Reset() { *x = RecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[5] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -640,7 +959,7 @@ func (x *RecordRequest) String() string { func (*RecordRequest) ProtoMessage() {} func (x *RecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[5] + mi := &file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,7 +972,7 @@ func (x *RecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordRequest.ProtoReflect.Descriptor instead. func (*RecordRequest) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{5} + return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP(), []int{7} } func (x *RecordRequest) GetTimestamp() *timestamppb.Timestamp { @@ -676,7 +995,7 @@ var file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDesc = []byte{ 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x01, 0x0a, 0x0b, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x04, 0x0a, 0x0b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, @@ -690,24 +1009,77 @@ var file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x69, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, - 0x64, 0x22, 0x91, 0x02, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x0f, - 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, - 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6e, 0x79, 0x5f, 0x63, 0x61, - 0x75, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6e, 0x79, 0x43, - 0x61, 0x75, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x5f, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x16, 0x0a, - 0x12, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, - 0x45, 0x4e, 0x59, 0x10, 0x02, 0x22, 0xac, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x74, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x05, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x05, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x53, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x53, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, + 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4c, 0x4f, 0x47, 0x4f, 0x55, 0x54, 0x10, 0x02, 0x12, 0x17, 0x0a, + 0x13, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x4f, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, + 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x10, + 0x04, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x49, 0x44, 0x4c, 0x45, 0x10, 0x05, 0x22, 0x3e, 0x0a, 0x0a, 0x55, 0x73, + 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0xdb, 0x03, 0x0a, 0x0b, 0x41, + 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x38, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, + 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, + 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x09, 0x41, + 0x75, 0x74, 0x68, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x55, 0x54, 0x48, + 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x55, 0x54, + 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, + 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x53, 0x53, 0x48, 0x4b, 0x45, 0x59, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x55, 0x54, + 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x53, 0x48, 0x43, 0x45, 0x52, 0x54, 0x10, + 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x54, 0x4c, 0x53, 0x43, 0x45, 0x52, 0x54, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x55, 0x54, + 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x50, 0x10, 0x06, 0x12, 0x13, 0x0a, + 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x50, + 0x10, 0x07, 0x22, 0x74, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, 0x54, + 0x48, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x02, + 0x12, 0x16, 0x0a, 0x12, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0xda, 0x01, 0x0a, 0x0b, 0x41, 0x75, 0x74, + 0x68, 0x7a, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, + 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x22, 0x73, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1c, 0x0a, 0x18, 0x41, 0x55, 0x54, 0x48, 0x5a, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, + 0x13, 0x41, 0x55, 0x54, 0x48, 0x5a, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, + 0x52, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, 0x54, 0x48, 0x5a, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x4e, 0x59, 0x10, 0x02, 0x12, 0x16, 0x0a, + 0x12, 0x41, 0x55, 0x54, 0x48, 0x5a, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0xdf, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x43, @@ -722,84 +1094,87 @@ var file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDesc = []byte{ 0x30, 0x0a, 0x14, 0x63, 0x6d, 0x64, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x69, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x63, 0x6d, 0x64, 0x41, 0x72, 0x67, 0x73, 0x49, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x0e, 0x43, 0x6d, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, - 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, - 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x45, 0x4c, 0x4c, - 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, - 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, - 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x48, 0x54, 0x54, 0x50, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4d, 0x44, 0x5f, 0x53, - 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, - 0x43, 0x4f, 0x4e, 0x46, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, - 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, 0x54, 0x43, 0x4f, - 0x4e, 0x46, 0x10, 0x05, 0x22, 0x9e, 0x03, 0x0a, 0x0b, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x73, - 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x70, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x70, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, - 0x0a, 0x08, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, - 0x12, 0x2f, 0x0a, 0x13, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x73, 0x74, 0x72, - 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, + 0x64, 0x12, 0x30, 0x0a, 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x05, 0x61, 0x75, + 0x74, 0x68, 0x7a, 0x22, 0xc1, 0x01, 0x0a, 0x0e, 0x43, 0x6d, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, 0x43, - 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4e, - 0x4d, 0x49, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, - 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4e, 0x4f, 0x49, 0x10, 0x02, - 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4e, 0x53, 0x49, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, - 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x47, 0x52, 0x49, 0x42, 0x49, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, - 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, - 0x34, 0x52, 0x54, 0x10, 0x05, 0x22, 0x9e, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x73, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x2f, 0x0a, 0x13, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x73, 0x74, - 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, - 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x6d, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, - 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6d, 0x64, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x73, - 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, - 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, - 0x49, 0x64, 0x73, 0x42, 0x11, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x32, 0x5b, 0x0a, 0x05, 0x41, 0x63, 0x63, 0x74, 0x7a, 0x12, 0x52, 0x0a, 0x0f, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1c, 0x2e, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4d, 0x44, 0x5f, + 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x45, + 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, + 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x10, 0x02, 0x12, 0x1a, + 0x0a, 0x16, 0x43, 0x4d, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x55, 0x49, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4d, + 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, + 0x45, 0x53, 0x54, 0x43, 0x4f, 0x4e, 0x46, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4d, 0x44, + 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x45, + 0x54, 0x43, 0x4f, 0x4e, 0x46, 0x10, 0x05, 0x22, 0xd0, 0x03, 0x0a, 0x0b, 0x47, 0x72, 0x70, 0x63, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, + 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x70, 0x63, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x70, 0x63, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, + 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x12, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x70, 0x63, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x47, 0x52, + 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, + 0x16, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x47, 0x4e, 0x4d, 0x49, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, + 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, + 0x4e, 0x4f, 0x49, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, + 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4e, 0x53, 0x49, 0x10, + 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, + 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x49, 0x42, 0x49, 0x10, 0x04, 0x12, 0x1a, + 0x0a, 0x16, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x50, 0x34, 0x52, 0x54, 0x10, 0x05, 0x22, 0xeb, 0x02, 0x0a, 0x0e, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, + 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0b, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2f, 0x0a, 0x13, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x69, 0x73, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x73, 0x74, 0x72, + 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x6d, 0x64, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, + 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, + 0x6d, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x67, 0x72, 0x70, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x67, + 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, + 0x73, 0x6b, 0x49, 0x64, 0x73, 0x42, 0x11, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x32, 0x5b, 0x0a, 0x05, 0x41, 0x63, 0x63, 0x74, 0x7a, 0x12, 0x52, 0x0a, 0x0f, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, + 0x1c, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6e, - 0x73, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x22, - 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x61, 0x63, 0x63, - 0x74, 0x7a, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, + 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x61, + 0x63, 0x63, 0x74, 0x7a, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -814,39 +1189,50 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescGZIP() []byte { return file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDescData } -var file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_github_com_openconfig_gnsi_acctz_acctz_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_github_com_openconfig_gnsi_acctz_acctz_proto_goTypes = []interface{}{ - (AuthDetail_AuthenStatus)(0), // 0: gnsi.acctz.v1.AuthDetail.AuthenStatus - (CommandService_CmdServiceType)(0), // 1: gnsi.acctz.v1.CommandService.CmdServiceType - (GrpcService_GrpcServiceType)(0), // 2: gnsi.acctz.v1.GrpcService.GrpcServiceType - (*SessionInfo)(nil), // 3: gnsi.acctz.v1.SessionInfo - (*AuthDetail)(nil), // 4: gnsi.acctz.v1.AuthDetail - (*CommandService)(nil), // 5: gnsi.acctz.v1.CommandService - (*GrpcService)(nil), // 6: gnsi.acctz.v1.GrpcService - (*RecordResponse)(nil), // 7: gnsi.acctz.v1.RecordResponse - (*RecordRequest)(nil), // 8: gnsi.acctz.v1.RecordRequest - (*anypb.Any)(nil), // 9: google.protobuf.Any - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (SessionInfo_SessionStatus)(0), // 0: gnsi.acctz.v1.SessionInfo.SessionStatus + (AuthnDetail_AuthnType)(0), // 1: gnsi.acctz.v1.AuthnDetail.AuthnType + (AuthnDetail_AuthnStatus)(0), // 2: gnsi.acctz.v1.AuthnDetail.AuthnStatus + (AuthzDetail_AuthzStatus)(0), // 3: gnsi.acctz.v1.AuthzDetail.AuthzStatus + (CommandService_CmdServiceType)(0), // 4: gnsi.acctz.v1.CommandService.CmdServiceType + (GrpcService_GrpcServiceType)(0), // 5: gnsi.acctz.v1.GrpcService.GrpcServiceType + (*SessionInfo)(nil), // 6: gnsi.acctz.v1.SessionInfo + (*UserDetail)(nil), // 7: gnsi.acctz.v1.UserDetail + (*AuthnDetail)(nil), // 8: gnsi.acctz.v1.AuthnDetail + (*AuthzDetail)(nil), // 9: gnsi.acctz.v1.AuthzDetail + (*CommandService)(nil), // 10: gnsi.acctz.v1.CommandService + (*GrpcService)(nil), // 11: gnsi.acctz.v1.GrpcService + (*RecordResponse)(nil), // 12: gnsi.acctz.v1.RecordResponse + (*RecordRequest)(nil), // 13: gnsi.acctz.v1.RecordRequest + (*anypb.Any)(nil), // 14: google.protobuf.Any + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp } var file_github_com_openconfig_gnsi_acctz_acctz_proto_depIdxs = []int32{ - 0, // 0: gnsi.acctz.v1.AuthDetail.status:type_name -> gnsi.acctz.v1.AuthDetail.AuthenStatus - 1, // 1: gnsi.acctz.v1.CommandService.service_type:type_name -> gnsi.acctz.v1.CommandService.CmdServiceType - 2, // 2: gnsi.acctz.v1.GrpcService.service_type:type_name -> gnsi.acctz.v1.GrpcService.GrpcServiceType - 9, // 3: gnsi.acctz.v1.GrpcService.payloads:type_name -> google.protobuf.Any - 3, // 4: gnsi.acctz.v1.RecordResponse.session_info:type_name -> gnsi.acctz.v1.SessionInfo - 10, // 5: gnsi.acctz.v1.RecordResponse.timestamp:type_name -> google.protobuf.Timestamp - 5, // 6: gnsi.acctz.v1.RecordResponse.cmd_service:type_name -> gnsi.acctz.v1.CommandService - 6, // 7: gnsi.acctz.v1.RecordResponse.grpc_service:type_name -> gnsi.acctz.v1.GrpcService - 4, // 8: gnsi.acctz.v1.RecordResponse.authen:type_name -> gnsi.acctz.v1.AuthDetail - 10, // 9: gnsi.acctz.v1.RecordRequest.timestamp:type_name -> google.protobuf.Timestamp - 8, // 10: gnsi.acctz.v1.Acctz.RecordSubscribe:input_type -> gnsi.acctz.v1.RecordRequest - 7, // 11: gnsi.acctz.v1.Acctz.RecordSubscribe:output_type -> gnsi.acctz.v1.RecordResponse - 11, // [11:12] is the sub-list for method output_type - 10, // [10:11] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 0, // 0: gnsi.acctz.v1.SessionInfo.status:type_name -> gnsi.acctz.v1.SessionInfo.SessionStatus + 7, // 1: gnsi.acctz.v1.SessionInfo.user:type_name -> gnsi.acctz.v1.UserDetail + 8, // 2: gnsi.acctz.v1.SessionInfo.authn:type_name -> gnsi.acctz.v1.AuthnDetail + 1, // 3: gnsi.acctz.v1.AuthnDetail.type:type_name -> gnsi.acctz.v1.AuthnDetail.AuthnType + 2, // 4: gnsi.acctz.v1.AuthnDetail.status:type_name -> gnsi.acctz.v1.AuthnDetail.AuthnStatus + 3, // 5: gnsi.acctz.v1.AuthzDetail.status:type_name -> gnsi.acctz.v1.AuthzDetail.AuthzStatus + 4, // 6: gnsi.acctz.v1.CommandService.service_type:type_name -> gnsi.acctz.v1.CommandService.CmdServiceType + 9, // 7: gnsi.acctz.v1.CommandService.authz:type_name -> gnsi.acctz.v1.AuthzDetail + 5, // 8: gnsi.acctz.v1.GrpcService.service_type:type_name -> gnsi.acctz.v1.GrpcService.GrpcServiceType + 14, // 9: gnsi.acctz.v1.GrpcService.payloads:type_name -> google.protobuf.Any + 9, // 10: gnsi.acctz.v1.GrpcService.authz:type_name -> gnsi.acctz.v1.AuthzDetail + 6, // 11: gnsi.acctz.v1.RecordResponse.session_info:type_name -> gnsi.acctz.v1.SessionInfo + 15, // 12: gnsi.acctz.v1.RecordResponse.timestamp:type_name -> google.protobuf.Timestamp + 10, // 13: gnsi.acctz.v1.RecordResponse.cmd_service:type_name -> gnsi.acctz.v1.CommandService + 11, // 14: gnsi.acctz.v1.RecordResponse.grpc_service:type_name -> gnsi.acctz.v1.GrpcService + 15, // 15: gnsi.acctz.v1.RecordRequest.timestamp:type_name -> google.protobuf.Timestamp + 13, // 16: gnsi.acctz.v1.Acctz.RecordSubscribe:input_type -> gnsi.acctz.v1.RecordRequest + 12, // 17: gnsi.acctz.v1.Acctz.RecordSubscribe:output_type -> gnsi.acctz.v1.RecordResponse + 17, // [17:18] is the sub-list for method output_type + 16, // [16:17] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_github_com_openconfig_gnsi_acctz_acctz_proto_init() } @@ -868,7 +1254,7 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthDetail); i { + switch v := v.(*UserDetail); i { case 0: return &v.state case 1: @@ -880,7 +1266,7 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommandService); i { + switch v := v.(*AuthnDetail); i { case 0: return &v.state case 1: @@ -892,7 +1278,7 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GrpcService); i { + switch v := v.(*AuthzDetail); i { case 0: return &v.state case 1: @@ -904,7 +1290,7 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecordResponse); i { + switch v := v.(*CommandService); i { case 0: return &v.state case 1: @@ -916,6 +1302,30 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GrpcService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RecordRequest); i { case 0: return &v.state @@ -928,7 +1338,7 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { } } } - file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_github_com_openconfig_gnsi_acctz_acctz_proto_msgTypes[6].OneofWrappers = []interface{}{ (*RecordResponse_CmdService)(nil), (*RecordResponse_GrpcService)(nil), } @@ -937,8 +1347,8 @@ func file_github_com_openconfig_gnsi_acctz_acctz_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_github_com_openconfig_gnsi_acctz_acctz_proto_rawDesc, - NumEnums: 3, - NumMessages: 6, + NumEnums: 6, + NumMessages: 8, NumExtensions: 0, NumServices: 1, }, diff --git a/acctz/acctz.proto b/acctz/acctz.proto index eeb6e2f..ecaf812 100644 --- a/acctz/acctz.proto +++ b/acctz/acctz.proto @@ -115,7 +115,7 @@ message SessionInfo { UserDetail user = 9; // Authentication details - AuthenDetail authen = 10; + AuthnDetail authn = 10; } // Details of a user @@ -137,43 +137,43 @@ message UserDetail { // While some authentication mechanisms authenticate the client only // once, at connection time, such as mTLS and shell, others authenticate // the client for each service_request, such as gRPC w/o mTLS or HTTP. -message AuthenDetail { +message AuthnDetail { // authentication type - enum AuthenType { - AUTHEN_TYPE_UNSPECIFIED = 0; - AUTHEN_TYPE_NONE = 1; - AUTHEN_TYPE_PASSWORD = 2; - AUTHEN_TYPE_SSHKEY = 3; - AUTHEN_TYPE_SSHCERT = 4; - AUTHEN_TYPE_TLSCERT = 5; - AUTHEN_TYPE_PAP = 6; - AUTHEN_TYPE_CHAP = 7; + enum AuthnType { + AUTHN_TYPE_UNSPECIFIED = 0; + AUTHN_TYPE_NONE = 1; + AUTHN_TYPE_PASSWORD = 2; + AUTHN_TYPE_SSHKEY = 3; + AUTHN_TYPE_SSHCERT = 4; + AUTHN_TYPE_TLSCERT = 5; + AUTHN_TYPE_PAP = 6; + AUTHN_TYPE_CHAP = 7; } - AuthenType type = 1; + AuthnType type = 1; // authentication status - enum AuthenStatus { - AUTHEN_STATUS_UNSPECIFIED = 0; - AUTHEN_STATUS_SUCCESS = 1; - AUTHEN_STATUS_FAIL = 2; - AUTHEN_STATUS_ERROR = 3; + enum AuthnStatus { + AUTHN_STATUS_UNSPECIFIED = 0; + AUTHN_STATUS_SUCCESS = 1; + AUTHN_STATUS_FAIL = 2; + AUTHN_STATUS_ERROR = 3; } - AuthenStatus status = 2; + AuthnStatus status = 2; // In case of STATUS_FAIL/_ERROR, detail of the cause string cause = 3; } // Details of authorization - all service_requests -message AuthorDetail { +message AuthzDetail { // authorization status - enum AuthorStatus { - AUTHOR_STATUS_UNSPECIFIED = 0; - AUTHOR_STATUS_PERMIT = 1; - AUTHOR_STATUS_DENY = 2; - AUTHOR_STATUS_ERROR = 3; + enum AuthzStatus { + AUTHZ_STATUS_UNSPECIFIED = 0; + AUTHZ_STATUS_PERMIT = 1; + AUTHZ_STATUS_DENY = 2; + AUTHZ_STATUS_ERROR = 3; } - AuthorStatus status = 1; + AuthzStatus status = 1; // Detail of the status, which might include the policy that caused // a PERMIT or DENY. @@ -212,6 +212,9 @@ message CommandService { // True, if truncation of cmd_args occurs due to an implementation // limitation in the originating service, any middleware, or the receiver. bool cmd_args_istruncated = 5; + + // Authorization details + AuthzDetail authz = 6; } // Command details for openconfig gNxI commands. @@ -242,6 +245,9 @@ message GrpcService { // True, if truncation of payloads occurs due to an implementation // limitation in the originating service, any middleware, or the receiver. bool payload_istruncated = 5; + + // Authorization details + AuthzDetail authz = 6; } // An accounting record message is generated everytime the user types a @@ -270,9 +276,6 @@ message RecordResponse { GrpcService grpc_service = 5; } - // Authorization details - AuthorDetail author = 6; - // Optional repeated task_id that represent tasks that were used to // accomplish the request on the system. repeated string task_ids = 7; diff --git a/version/version.pb.go b/version/version.pb.go index 63d2c97..810a8c8 100644 --- a/version/version.pb.go +++ b/version/version.pb.go @@ -32,7 +32,7 @@ var file_github_com_openconfig_gnsi_version_version_proto_rawDesc = []byte{ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x2c, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xd2, 0x3e, 0x05, 0x31, - 0x2e, 0x34, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x35, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_github_com_openconfig_gnsi_version_version_proto_goTypes = []interface{}{} diff --git a/version/version.proto b/version/version.proto index 3637b3c..0a5c5b6 100644 --- a/version/version.proto +++ b/version/version.proto @@ -20,5 +20,5 @@ package gnsi; import "github.com/openconfig/gnoi/types/types.proto"; -option (gnoi.types.gnoi_version) = "1.4.0"; +option (gnoi.types.gnoi_version) = "1.5.0"; option go_package = "github.com/openconfig/gnsi/version";