Package flyteidl.core
Class Security.SecurityContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Security.SecurityContext
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Security.SecurityContextOrBuilder,Serializable
- Enclosing class:
- Security
public static final class Security.SecurityContext extends com.google.protobuf.GeneratedMessageV3 implements Security.SecurityContextOrBuilder
SecurityContext holds security attributes that apply to tasks.
Protobuf typeflyteidl.core.SecurityContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurity.SecurityContext.BuilderSecurityContext holds security attributes that apply to tasks.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description private static Security.SecurityContextDEFAULT_INSTANCEprivate bytememoizedIsInitializedprivate static com.google.protobuf.Parser<Security.SecurityContext>PARSERstatic intRUN_AS_FIELD_NUMBERprivate Security.IdentityrunAs_private List<Security.Secret>secrets_static intSECRETS_FIELD_NUMBERprivate static longserialVersionUIDprivate List<Security.OAuth2TokenRequest>tokens_static intTOKENS_FIELD_NUMBER
-
Constructor Summary
Constructors Modifier Constructor Description privateSecurityContext()privateSecurityContext(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Security.SecurityContextgetDefaultInstance()Security.SecurityContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<Security.SecurityContext>getParserForType()Security.IdentitygetRunAs()run_as encapsulates the identity a pod should run as.Security.IdentityOrBuildergetRunAsOrBuilder()run_as encapsulates the identity a pod should run as.Security.SecretgetSecrets(int index)secrets indicate the list of secrets the task needs in order to proceed.intgetSecretsCount()secrets indicate the list of secrets the task needs in order to proceed.List<Security.Secret>getSecretsList()secrets indicate the list of secrets the task needs in order to proceed.Security.SecretOrBuildergetSecretsOrBuilder(int index)secrets indicate the list of secrets the task needs in order to proceed.List<? extends Security.SecretOrBuilder>getSecretsOrBuilderList()secrets indicate the list of secrets the task needs in order to proceed.intgetSerializedSize()Security.OAuth2TokenRequestgetTokens(int index)tokens indicate the list of token requests the task needs in order to proceed.intgetTokensCount()tokens indicate the list of token requests the task needs in order to proceed.List<Security.OAuth2TokenRequest>getTokensList()tokens indicate the list of token requests the task needs in order to proceed.Security.OAuth2TokenRequestOrBuildergetTokensOrBuilder(int index)tokens indicate the list of token requests the task needs in order to proceed.List<? extends Security.OAuth2TokenRequestOrBuilder>getTokensOrBuilderList()tokens indicate the list of token requests the task needs in order to proceed.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasRunAs()run_as encapsulates the identity a pod should run as.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Security.SecurityContext.BuildernewBuilder()static Security.SecurityContext.BuildernewBuilder(Security.SecurityContext prototype)Security.SecurityContext.BuildernewBuilderForType()protected Security.SecurityContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Security.SecurityContextparseDelimitedFrom(InputStream input)static Security.SecurityContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecurityContextparseFrom(byte[] data)static Security.SecurityContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecurityContextparseFrom(com.google.protobuf.ByteString data)static Security.SecurityContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecurityContextparseFrom(com.google.protobuf.CodedInputStream input)static Security.SecurityContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecurityContextparseFrom(InputStream input)static Security.SecurityContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecurityContextparseFrom(ByteBuffer data)static Security.SecurityContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Security.SecurityContext>parser()Security.SecurityContext.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
RUN_AS_FIELD_NUMBER
public static final int RUN_AS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
runAs_
private Security.Identity runAs_
-
SECRETS_FIELD_NUMBER
public static final int SECRETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
secrets_
private List<Security.Secret> secrets_
-
TOKENS_FIELD_NUMBER
public static final int TOKENS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tokens_
private List<Security.OAuth2TokenRequest> tokens_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Security.SecurityContext DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Security.SecurityContext> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasRunAs
public boolean hasRunAs()
run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on.
.flyteidl.core.Identity run_as = 1;- Specified by:
hasRunAsin interfaceSecurity.SecurityContextOrBuilder- Returns:
- Whether the runAs field is set.
-
getRunAs
public Security.Identity getRunAs()
run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on.
.flyteidl.core.Identity run_as = 1;- Specified by:
getRunAsin interfaceSecurity.SecurityContextOrBuilder- Returns:
- The runAs.
-
getRunAsOrBuilder
public Security.IdentityOrBuilder getRunAsOrBuilder()
run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on.
.flyteidl.core.Identity run_as = 1;- Specified by:
getRunAsOrBuilderin interfaceSecurity.SecurityContextOrBuilder
-
getSecretsList
public List<Security.Secret> getSecretsList()
secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.Secret secrets = 2;- Specified by:
getSecretsListin interfaceSecurity.SecurityContextOrBuilder
-
getSecretsOrBuilderList
public List<? extends Security.SecretOrBuilder> getSecretsOrBuilderList()
secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.Secret secrets = 2;- Specified by:
getSecretsOrBuilderListin interfaceSecurity.SecurityContextOrBuilder
-
getSecretsCount
public int getSecretsCount()
secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.Secret secrets = 2;- Specified by:
getSecretsCountin interfaceSecurity.SecurityContextOrBuilder
-
getSecrets
public Security.Secret getSecrets(int index)
secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.Secret secrets = 2;- Specified by:
getSecretsin interfaceSecurity.SecurityContextOrBuilder
-
getSecretsOrBuilder
public Security.SecretOrBuilder getSecretsOrBuilder(int index)
secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.Secret secrets = 2;- Specified by:
getSecretsOrBuilderin interfaceSecurity.SecurityContextOrBuilder
-
getTokensList
public List<Security.OAuth2TokenRequest> getTokensList()
tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.OAuth2TokenRequest tokens = 3;- Specified by:
getTokensListin interfaceSecurity.SecurityContextOrBuilder
-
getTokensOrBuilderList
public List<? extends Security.OAuth2TokenRequestOrBuilder> getTokensOrBuilderList()
tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.OAuth2TokenRequest tokens = 3;- Specified by:
getTokensOrBuilderListin interfaceSecurity.SecurityContextOrBuilder
-
getTokensCount
public int getTokensCount()
tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.OAuth2TokenRequest tokens = 3;- Specified by:
getTokensCountin interfaceSecurity.SecurityContextOrBuilder
-
getTokens
public Security.OAuth2TokenRequest getTokens(int index)
tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.OAuth2TokenRequest tokens = 3;- Specified by:
getTokensin interfaceSecurity.SecurityContextOrBuilder
-
getTokensOrBuilder
public Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder(int index)
tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine.
repeated .flyteidl.core.OAuth2TokenRequest tokens = 3;- Specified by:
getTokensOrBuilderin interfaceSecurity.SecurityContextOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Security.SecurityContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.SecurityContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.SecurityContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.SecurityContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.SecurityContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.SecurityContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.SecurityContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Security.SecurityContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Security.SecurityContext.Builder newBuilder()
-
newBuilder
public static Security.SecurityContext.Builder newBuilder(Security.SecurityContext prototype)
-
toBuilder
public Security.SecurityContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Security.SecurityContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Security.SecurityContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Security.SecurityContext> parser()
-
getParserForType
public com.google.protobuf.Parser<Security.SecurityContext> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Security.SecurityContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-