The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.models.security
flytekit.models.security
class Identity (
iam_role : typing . Optional [ str ],
k8s_service_account : typing . Optional [ str ],
oauth2_client : typing . Optional [ flytekit . models . security . OAuth2Client ],
execution_identity : typing . Optional [ str ],
)
Parameter
Type
Description
iam_role
typing.Optional[str]
k8s_service_account
typing.Optional[str]
oauth2_client
typing.Optional[flytekit.models.security.OAuth2Client]
execution_identity
typing.Optional[str]
Property
Type
Description
is_empty
None
def from_flyte_idl (
pb2_object : flyteidl . core . security_pb2 . Identity ,
) -> Identity
Parameter
Type
Description
pb2_object
flyteidl.core.security_pb2.Identity
def serialize_to_string ()
:rtype: Text
class OAuth2Client (
client_id : str ,
client_secret : str ,
)
Parameter
Type
Description
client_id
str
client_secret
str
Property
Type
Description
is_empty
None
def from_flyte_idl (
pb2_object : flyteidl . core . security_pb2 . OAuth2Client ,
) -> OAuth2Client
Parameter
Type
Description
pb2_object
flyteidl.core.security_pb2.OAuth2Client
def serialize_to_string ()
:rtype: Text
class OAuth2TokenRequest (
name : str ,
client : flytekit . models . security . OAuth2Client ,
idp_discovery_endpoint : typing . Optional [ str ],
token_endpoint : typing . Optional [ str ],
type_ : < enum 'Type' > ,
)
Parameter
Type
Description
name
str
client
flytekit.models.security.OAuth2Client
idp_discovery_endpoint
typing.Optional[str]
token_endpoint
typing.Optional[str]
type_
<enum 'Type'>
Property
Type
Description
is_empty
None
def from_flyte_idl (
pb2_object : flyteidl . core . security_pb2 . OAuth2TokenRequest ,
) -> OAuth2TokenRequest
Parameter
Type
Description
pb2_object
flyteidl.core.security_pb2.OAuth2TokenRequest
def serialize_to_string ()
:rtype: Text
See :std:ref:cookbook:secrets for usage examples.
class Secret (
group : typing . Optional [ str ],
key : typing . Optional [ str ],
group_version : typing . Optional [ str ],
mount_requirement : < enum 'MountType' > ,
env_var : typing . Optional [ str ],
)
Parameter
Type
Description
group
typing.Optional[str]
key
typing.Optional[str]
group_version
typing.Optional[str]
mount_requirement
<enum 'MountType'>
env_var
typing.Optional[str]
Property
Type
Description
is_empty
None
def from_flyte_idl (
pb2_object : flyteidl . core . security_pb2 . Secret ,
) -> Secret
Parameter
Type
Description
pb2_object
flyteidl.core.security_pb2.Secret
def serialize_to_string ()
:rtype: Text
This is a higher level wrapper object that for the most part users shouldn’t have to worry about. You should
be able to just use {{< py_class_ref flytekit.Secret >}} instead.
class SecurityContext (
run_as : typing . Optional [ flytekit . models . security . Identity ],
secrets : typing . Optional [ typing . List [ flytekit . models . security . Secret ]],
tokens : typing . Optional [ typing . List [ flytekit . models . security . OAuth2TokenRequest ]],
)
Parameter
Type
Description
run_as
typing.Optional[flytekit.models.security.Identity]
secrets
typing.Optional[typing.List[flytekit.models.security.Secret]]
tokens
typing.Optional[typing.List[flytekit.models.security.OAuth2TokenRequest]]
Property
Type
Description
is_empty
None
def from_flyte_idl (
pb2_object : flyteidl . core . security_pb2 . SecurityContext ,
) -> SecurityContext
Parameter
Type
Description
pb2_object
flyteidl.core.security_pb2.SecurityContext
def serialize_to_string ()
:rtype: Text