Package flyteidl.core

Class 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 type flyteidl.core.SecurityContext
    See Also:
    Serialized Form
    • Constructor Detail

      • SecurityContext

        private SecurityContext​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • SecurityContext

        private SecurityContext()
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        hasRunAs in interface Security.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:
        getRunAs in interface Security.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:
        getRunAsOrBuilder in interface Security.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:
        getSecretsList in interface Security.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:
        getSecretsOrBuilderList in interface Security.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:
        getSecretsCount in interface Security.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:
        getSecrets in interface Security.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:
        getSecretsOrBuilder in interface Security.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:
        getTokensList in interface Security.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:
        getTokensOrBuilderList in interface Security.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:
        getTokensCount in interface Security.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:
        getTokens in interface Security.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:
        getTokensOrBuilder in interface Security.SecurityContextOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public Security.SecurityContext.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Security.SecurityContext.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Security.SecurityContext.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Security.SecurityContext> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Security.SecurityContext getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder