Enum Warning.WarningCode (0.76.0)

public enum Warning.WarningCode extends Enum<Warning.WarningCode> implements ProtocolMessageEnum

Different types of warnings that can be returned to the user. The display_message contains detailed information regarding the warning_code.

Protobuf enum google.cloud.kms.inventory.v1.Warning.WarningCode

Implements

ProtocolMessageEnum

Static Fields

Name Description
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA

Indicates that the caller or service agent lacks necessary permissions to view some of the requested data. The response may be partial. Example:

  • KMS organization service agent {service_agent_name} lacks the cloudasset.assets.searchAllResources permission on the scope.

INSUFFICIENT_PERMISSIONS_PARTIAL_DATA = 1;

INSUFFICIENT_PERMISSIONS_PARTIAL_DATA_VALUE

Indicates that the caller or service agent lacks necessary permissions to view some of the requested data. The response may be partial. Example:

  • KMS organization service agent {service_agent_name} lacks the cloudasset.assets.searchAllResources permission on the scope.

INSUFFICIENT_PERMISSIONS_PARTIAL_DATA = 1;

ORG_LESS_PROJECT_PARTIAL_DATA

Indicates that the project exists outside of an organization resource. Thus the analysis is only done for the project level data and results might be partial.

ORG_LESS_PROJECT_PARTIAL_DATA = 3;

ORG_LESS_PROJECT_PARTIAL_DATA_VALUE

Indicates that the project exists outside of an organization resource. Thus the analysis is only done for the project level data and results might be partial.

ORG_LESS_PROJECT_PARTIAL_DATA = 3;

RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA

Indicates that a resource limit has been exceeded, resulting in partial data. Example:

  • The project has more than 10,000 assets (resources, crypto keys, key handles, IAM policies, etc).

RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA = 2;

RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA_VALUE

Indicates that a resource limit has been exceeded, resulting in partial data. Example:

  • The project has more than 10,000 assets (resources, crypto keys, key handles, IAM policies, etc).

RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA = 2;

UNRECOGNIZED
WARNING_CODE_UNSPECIFIED

Default value. This value is unused.

WARNING_CODE_UNSPECIFIED = 0;

WARNING_CODE_UNSPECIFIED_VALUE

Default value. This value is unused.

WARNING_CODE_UNSPECIFIED = 0;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()