Enum polaris_specification::v1::Code
source · #[repr(i32)]
pub enum Code {
Show 164 variants
Unknown,
ExecuteSuccess,
DataNoChange,
NoNeedUpdate,
BadRequest,
ParseException,
EmptyRequest,
BatchSizeOverLimit,
InvalidDiscoverResource,
InvalidRequestId,
InvalidUserName,
InvalidUserToken,
InvalidParameter,
EmptyQueryParameter,
InvalidQueryInsParameter,
InvalidNamespaceName,
InvalidNamespaceOwners,
InvalidNamespaceToken,
InvalidServiceName,
InvalidServiceOwners,
InvalidServiceToken,
InvalidServiceMetadata,
InvalidServicePorts,
InvalidServiceBusiness,
InvalidServiceDepartment,
InvalidServiceCmdb,
InvalidServiceComment,
InvalidServiceAliasComment,
InvalidInstanceId,
InvalidInstanceHost,
InvalidInstancePort,
InvalidServiceAlias,
InvalidNamespaceWithAlias,
InvalidServiceAliasOwners,
InvalidInstanceProtocol,
InvalidInstanceVersion,
InvalidInstanceLogicSet,
InvalidInstanceIsolate,
HealthCheckNotOpen,
HeartbeatOnDisabledIns,
HeartbeatExceedLimit,
HeartbeatTypeNotFound,
InvalidMetadata,
InvalidRateLimitId,
InvalidRateLimitLabels,
InvalidRateLimitAmounts,
InvalidRateLimitName,
InvalidCircuitBreakerId,
InvalidCircuitBreakerVersion,
InvalidCircuitBreakerName,
InvalidCircuitBreakerNamespace,
InvalidCircuitBreakerOwners,
InvalidCircuitBreakerToken,
InvalidCircuitBreakerBusiness,
InvalidCircuitBreakerDepartment,
InvalidCircuitBreakerComment,
CircuitBreakerRuleExisted,
InvalidRoutingId,
InvalidRoutingPolicy,
InvalidRoutingName,
InvalidRoutingPriority,
InvalidFaultDetectId,
InvalidFaultDetectName,
InvalidFaultDetectNamespace,
FaultDetectRuleExisted,
ServicesExistedMesh,
ResourcesExistedMesh,
InvalidMeshParameter,
InvalidPlatformId,
InvalidPlatformName,
InvalidPlatformDomain,
InvalidPlatformQps,
InvalidPlatformToken,
InvalidPlatformOwner,
InvalidPlatformDepartment,
InvalidPlatformComment,
NotFoundPlatform,
InvalidFluxRateLimitId,
InvalidFluxRateLimitQps,
InvalidFluxRateLimitSetKey,
ExistedResource,
NotFoundResource,
NamespaceExistedServices,
ServiceExistedInstances,
ServiceExistedRoutings,
ServiceExistedRateLimits,
ExistReleasedConfig,
SameInstanceRequest,
ServiceExistedCircuitBreakers,
ServiceExistedAlias,
NamespaceExistedMeshResources,
NamespaceExistedCircuitBreakers,
ServiceSubscribedByMeshes,
ServiceExistedFluxRateLimits,
NamespaceExistedConfigGroups,
NotFoundService,
NotFoundRouting,
NotFoundInstance,
NotFoundServiceAlias,
NotFoundNamespace,
NotFoundSourceService,
NotFoundRateLimit,
NotFoundCircuitBreaker,
NotFoundMasterConfig,
NotFoundTagConfig,
NotFoundTagConfigOrService,
ClientApiNotOpen,
NotAllowBusinessService,
NotAllowAliasUpdate,
NotAllowAliasCreateInstance,
NotAllowAliasCreateRouting,
NotAllowCreateAliasForAlias,
NotAllowAliasCreateRateLimit,
NotAllowAliasBindRule,
NotAllowDifferentNamespaceBindRule,
Unauthorized,
NotAllowedAccess,
CmdbNotFindHost,
DataConflict,
InstanceTooManyRequests,
IpRateLimit,
ApiRateLimit,
ExecuteException,
StoreLayerException,
CmdbPluginException,
ParseRoutingException,
ParseRateLimitException,
ParseCircuitBreakerException,
HeartbeatException,
InstanceRegisTimeout,
InvalidConfigFileGroupName,
InvalidConfigFileName,
InvalidConfigFileContentLength,
InvalidConfigFileFormat,
InvalidConfigFileTags,
InvalidWatchConfigFileFormat,
NotFoundResourceConfigFile,
InvalidConfigFileTemplateName,
InvalidUserOwners,
InvalidUserId,
InvalidUserPassword,
InvalidUserMobile,
InvalidUserEmail,
InvalidUserGroupOwners,
InvalidUserGroupId,
InvalidAuthStrategyOwners,
InvalidAuthStrategyName,
InvalidAuthStrategyId,
InvalidPrincipalType,
UserExisted,
UserGroupExisted,
AuthStrategyRuleExisted,
SubAccountExisted,
NotFoundUser,
NotFoundOwnerUser,
NotFoundUserGroup,
NotFoundAuthStrategyRule,
NotAllowModifyDefaultStrategyPrincipal,
NotAllowModifyOwnerDefaultStrategy,
EmptyAutToken,
TokenDisabled,
TokenNotExisted,
AuthTokenForbidden,
OperationRoleForbidden,
}
Variants§
Unknown
base module status codes
ExecuteSuccess
DataNoChange
NoNeedUpdate
BadRequest
ParseException
EmptyRequest
BatchSizeOverLimit
InvalidDiscoverResource
InvalidRequestId
InvalidUserName
InvalidUserToken
InvalidParameter
EmptyQueryParameter
InvalidQueryInsParameter
InvalidNamespaceName
InvalidNamespaceOwners
InvalidNamespaceToken
InvalidServiceName
InvalidServiceOwners
InvalidServiceToken
InvalidServiceMetadata
InvalidServicePorts
InvalidServiceBusiness
InvalidServiceDepartment
InvalidServiceCmdb
InvalidServiceComment
InvalidServiceAliasComment
InvalidInstanceId
InvalidInstanceHost
InvalidInstancePort
InvalidServiceAlias
InvalidNamespaceWithAlias
InvalidServiceAliasOwners
InvalidInstanceProtocol
InvalidInstanceVersion
InvalidInstanceLogicSet
InvalidInstanceIsolate
HealthCheckNotOpen
HeartbeatOnDisabledIns
HeartbeatExceedLimit
HeartbeatTypeNotFound
InvalidMetadata
InvalidRateLimitId
InvalidRateLimitLabels
InvalidRateLimitAmounts
InvalidRateLimitName
InvalidCircuitBreakerId
InvalidCircuitBreakerVersion
InvalidCircuitBreakerName
InvalidCircuitBreakerNamespace
InvalidCircuitBreakerOwners
InvalidCircuitBreakerToken
InvalidCircuitBreakerBusiness
InvalidCircuitBreakerDepartment
InvalidCircuitBreakerComment
CircuitBreakerRuleExisted
InvalidRoutingId
InvalidRoutingPolicy
InvalidRoutingName
InvalidRoutingPriority
InvalidFaultDetectId
InvalidFaultDetectName
InvalidFaultDetectNamespace
FaultDetectRuleExisted
ServicesExistedMesh
network relative codes
ResourcesExistedMesh
InvalidMeshParameter
InvalidPlatformId
platform relative codes
InvalidPlatformName
InvalidPlatformDomain
InvalidPlatformQps
InvalidPlatformToken
InvalidPlatformOwner
InvalidPlatformDepartment
InvalidPlatformComment
NotFoundPlatform
InvalidFluxRateLimitId
flux relative codes
InvalidFluxRateLimitQps
InvalidFluxRateLimitSetKey
ExistedResource
NotFoundResource
NamespaceExistedServices
ServiceExistedInstances
ServiceExistedRoutings
ServiceExistedRateLimits
ExistReleasedConfig
SameInstanceRequest
ServiceExistedCircuitBreakers
ServiceExistedAlias
NamespaceExistedMeshResources
NamespaceExistedCircuitBreakers
ServiceSubscribedByMeshes
ServiceExistedFluxRateLimits
NamespaceExistedConfigGroups
NotFoundService
NotFoundRouting
NotFoundInstance
NotFoundServiceAlias
NotFoundNamespace
NotFoundSourceService
NotFoundRateLimit
NotFoundCircuitBreaker
NotFoundMasterConfig
NotFoundTagConfig
NotFoundTagConfigOrService
ClientApiNotOpen
NotAllowBusinessService
NotAllowAliasUpdate
NotAllowAliasCreateInstance
NotAllowAliasCreateRouting
NotAllowCreateAliasForAlias
NotAllowAliasCreateRateLimit
NotAllowAliasBindRule
NotAllowDifferentNamespaceBindRule
NotAllowedAccess
CmdbNotFindHost
DataConflict
InstanceTooManyRequests
IpRateLimit
ApiRateLimit
ExecuteException
StoreLayerException
CmdbPluginException
ParseRoutingException
ParseRateLimitException
ParseCircuitBreakerException
HeartbeatException
InstanceRegisTimeout
InvalidConfigFileGroupName
config center status codes
InvalidConfigFileName
InvalidConfigFileContentLength
InvalidConfigFileFormat
InvalidConfigFileTags
InvalidWatchConfigFileFormat
NotFoundResourceConfigFile
InvalidConfigFileTemplateName
InvalidUserOwners
auth codes
InvalidUserId
InvalidUserPassword
InvalidUserMobile
InvalidUserEmail
InvalidUserGroupOwners
InvalidUserGroupId
InvalidAuthStrategyOwners
InvalidAuthStrategyName
InvalidAuthStrategyId
InvalidPrincipalType
UserExisted
UserGroupExisted
AuthStrategyRuleExisted
SubAccountExisted
NotFoundUser
NotFoundOwnerUser
NotFoundUserGroup
NotFoundAuthStrategyRule
NotAllowModifyDefaultStrategyPrincipal
NotAllowModifyOwnerDefaultStrategy
EmptyAutToken
TokenDisabled
TokenNotExisted
AuthTokenForbidden
OperationRoleForbidden
Implementations§
source§impl Code
impl Code
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Code
impl Ord for Code
source§impl PartialEq<Code> for Code
impl PartialEq<Code> for Code
source§impl PartialOrd<Code> for Code
impl PartialOrd<Code> for Code
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more