generated from ansible-community/project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1706c9
commit 8028841
Showing
9 changed files
with
541 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,36 @@ | ||
from typing import Callable | ||
|
||
from awx_plugins.interfaces._temporary_private_api import ( # noqa: WPS436 | ||
EnvVarsType, | ||
InjectorDefinitionType, | ||
InputDefinitionType, | ||
) | ||
from awx_plugins.interfaces._temporary_private_credential_api import ( # noqa: WPS436 | ||
Credential, | ||
GenericOptionalPrimitiveType, | ||
) | ||
|
||
|
||
class ManagedCredentialType: | ||
namespace: str | ||
name: str | ||
kind: str | ||
inputs: InputDefinitionType | ||
injectors: InjectorDefinitionType = None | ||
managed: bool = False | ||
custom_injectors: Callable[ | ||
[ | ||
Credential, | ||
EnvVarsType, str, | ||
], str | None, | ||
] | None = None | ||
|
||
def __init__( | ||
self, | ||
namespace: str, | ||
name: str, | ||
kind: str, | ||
inputs: dict[str, list[dict[str, bool | str] | str]], | ||
injectors: dict[str, dict[str, str]] | None = None, | ||
inputs: InputDefinitionType, | ||
injectors: InjectorDefinitionType = None, | ||
managed: bool = False, | ||
custom_injector: Callable[[Credential, dict[str, GenericOptionalPrimitiveType], str], str | None] | None = None, | ||
custom_injectors: Callable[['Credential', EnvVarsType, str], str | None] | None = None, | ||
): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.