public static final class V1Rbac.PolicyRule extends com.google.protobuf.GeneratedMessageV3 implements V1Rbac.PolicyRuleOrBuilder
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.Protobuf type
k8s.io.api.rbac.v1.PolicyRule
Modifier and Type | Class and Description |
---|---|
static class |
V1Rbac.PolicyRule.Builder
PolicyRule holds information that describes a policy rule, but does not contain information
about who the rule applies to or which namespace the rule applies to.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
APIGROUPS_FIELD_NUMBER |
static int |
NONRESOURCEURLS_FIELD_NUMBER |
static com.google.protobuf.Parser<V1Rbac.PolicyRule> |
PARSER
Deprecated.
|
static int |
RESOURCENAMES_FIELD_NUMBER |
static int |
RESOURCES_FIELD_NUMBER |
static int |
VERBS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getApiGroups(int index)
APIGroups is the name of the APIGroup that contains the resources.
|
com.google.protobuf.ByteString |
getApiGroupsBytes(int index)
APIGroups is the name of the APIGroup that contains the resources.
|
int |
getApiGroupsCount()
APIGroups is the name of the APIGroup that contains the resources.
|
com.google.protobuf.ProtocolStringList |
getApiGroupsList()
APIGroups is the name of the APIGroup that contains the resources.
|
static V1Rbac.PolicyRule |
getDefaultInstance() |
V1Rbac.PolicyRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getNonResourceURLs(int index)
NonResourceURLs is a set of partial urls that a user should have access to.
|
com.google.protobuf.ByteString |
getNonResourceURLsBytes(int index)
NonResourceURLs is a set of partial urls that a user should have access to.
|
int |
getNonResourceURLsCount()
NonResourceURLs is a set of partial urls that a user should have access to.
|
com.google.protobuf.ProtocolStringList |
getNonResourceURLsList()
NonResourceURLs is a set of partial urls that a user should have access to.
|
com.google.protobuf.Parser<V1Rbac.PolicyRule> |
getParserForType() |
String |
getResourceNames(int index)
ResourceNames is an optional white list of names that the rule applies to.
|
com.google.protobuf.ByteString |
getResourceNamesBytes(int index)
ResourceNames is an optional white list of names that the rule applies to.
|
int |
getResourceNamesCount()
ResourceNames is an optional white list of names that the rule applies to.
|
com.google.protobuf.ProtocolStringList |
getResourceNamesList()
ResourceNames is an optional white list of names that the rule applies to.
|
String |
getResources(int index)
Resources is a list of resources this rule applies to.
|
com.google.protobuf.ByteString |
getResourcesBytes(int index)
Resources is a list of resources this rule applies to.
|
int |
getResourcesCount()
Resources is a list of resources this rule applies to.
|
com.google.protobuf.ProtocolStringList |
getResourcesList()
Resources is a list of resources this rule applies to.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVerbs(int index)
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.
|
com.google.protobuf.ByteString |
getVerbsBytes(int index)
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.
|
int |
getVerbsCount()
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.
|
com.google.protobuf.ProtocolStringList |
getVerbsList()
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1Rbac.PolicyRule.Builder |
newBuilder() |
static V1Rbac.PolicyRule.Builder |
newBuilder(V1Rbac.PolicyRule prototype) |
V1Rbac.PolicyRule.Builder |
newBuilderForType() |
protected V1Rbac.PolicyRule.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1Rbac.PolicyRule |
parseDelimitedFrom(InputStream input) |
static V1Rbac.PolicyRule |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Rbac.PolicyRule |
parseFrom(byte[] data) |
static V1Rbac.PolicyRule |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Rbac.PolicyRule |
parseFrom(ByteBuffer data) |
static V1Rbac.PolicyRule |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Rbac.PolicyRule |
parseFrom(com.google.protobuf.ByteString data) |
static V1Rbac.PolicyRule |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Rbac.PolicyRule |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1Rbac.PolicyRule |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Rbac.PolicyRule |
parseFrom(InputStream input) |
static V1Rbac.PolicyRule |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1Rbac.PolicyRule> |
parser() |
V1Rbac.PolicyRule.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int VERBS_FIELD_NUMBER
public static final int APIGROUPS_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
public static final int RESOURCENAMES_FIELD_NUMBER
public static final int NONRESOURCEURLS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1Rbac.PolicyRule> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public com.google.protobuf.ProtocolStringList getVerbsList()
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
repeated string verbs = 1;
getVerbsList
in interface V1Rbac.PolicyRuleOrBuilder
public int getVerbsCount()
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
repeated string verbs = 1;
getVerbsCount
in interface V1Rbac.PolicyRuleOrBuilder
public String getVerbs(int index)
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
repeated string verbs = 1;
getVerbs
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ByteString getVerbsBytes(int index)
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
repeated string verbs = 1;
getVerbsBytes
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ProtocolStringList getApiGroupsList()
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. +optional
repeated string apiGroups = 2;
getApiGroupsList
in interface V1Rbac.PolicyRuleOrBuilder
public int getApiGroupsCount()
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. +optional
repeated string apiGroups = 2;
getApiGroupsCount
in interface V1Rbac.PolicyRuleOrBuilder
public String getApiGroups(int index)
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. +optional
repeated string apiGroups = 2;
getApiGroups
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ByteString getApiGroupsBytes(int index)
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. +optional
repeated string apiGroups = 2;
getApiGroupsBytes
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ProtocolStringList getResourcesList()
Resources is a list of resources this rule applies to. ResourceAll represents all resources. +optional
repeated string resources = 3;
getResourcesList
in interface V1Rbac.PolicyRuleOrBuilder
public int getResourcesCount()
Resources is a list of resources this rule applies to. ResourceAll represents all resources. +optional
repeated string resources = 3;
getResourcesCount
in interface V1Rbac.PolicyRuleOrBuilder
public String getResources(int index)
Resources is a list of resources this rule applies to. ResourceAll represents all resources. +optional
repeated string resources = 3;
getResources
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ByteString getResourcesBytes(int index)
Resources is a list of resources this rule applies to. ResourceAll represents all resources. +optional
repeated string resources = 3;
getResourcesBytes
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ProtocolStringList getResourceNamesList()
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. +optional
repeated string resourceNames = 4;
getResourceNamesList
in interface V1Rbac.PolicyRuleOrBuilder
public int getResourceNamesCount()
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. +optional
repeated string resourceNames = 4;
getResourceNamesCount
in interface V1Rbac.PolicyRuleOrBuilder
public String getResourceNames(int index)
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. +optional
repeated string resourceNames = 4;
getResourceNames
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ByteString getResourceNamesBytes(int index)
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. +optional
repeated string resourceNames = 4;
getResourceNamesBytes
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ProtocolStringList getNonResourceURLsList()
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. +optional
repeated string nonResourceURLs = 5;
getNonResourceURLsList
in interface V1Rbac.PolicyRuleOrBuilder
public int getNonResourceURLsCount()
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. +optional
repeated string nonResourceURLs = 5;
getNonResourceURLsCount
in interface V1Rbac.PolicyRuleOrBuilder
public String getNonResourceURLs(int index)
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. +optional
repeated string nonResourceURLs = 5;
getNonResourceURLs
in interface V1Rbac.PolicyRuleOrBuilder
public com.google.protobuf.ByteString getNonResourceURLsBytes(int index)
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. +optional
repeated string nonResourceURLs = 5;
getNonResourceURLsBytes
in interface V1Rbac.PolicyRuleOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static V1Rbac.PolicyRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static V1Rbac.PolicyRule parseFrom(InputStream input) throws IOException
IOException
public static V1Rbac.PolicyRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V1Rbac.PolicyRule parseDelimitedFrom(InputStream input) throws IOException
IOException
public static V1Rbac.PolicyRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static V1Rbac.PolicyRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static V1Rbac.PolicyRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public V1Rbac.PolicyRule.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static V1Rbac.PolicyRule.Builder newBuilder()
public static V1Rbac.PolicyRule.Builder newBuilder(V1Rbac.PolicyRule prototype)
public V1Rbac.PolicyRule.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected V1Rbac.PolicyRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static V1Rbac.PolicyRule getDefaultInstance()
public static com.google.protobuf.Parser<V1Rbac.PolicyRule> parser()
public com.google.protobuf.Parser<V1Rbac.PolicyRule> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public V1Rbac.PolicyRule getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2021. All rights reserved.