diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index ddfdb4a..013221e 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.42.0" + "@pulumi/pulumi": "^3.136.0" }, "devDependencies": { "@types/mime": "^2.0.0", diff --git a/sdk/python/pulumi_onelogin/_inputs.py b/sdk/python/pulumi_onelogin/_inputs.py index 8314c5f..6c9d5f7 100644 --- a/sdk/python/pulumi_onelogin/_inputs.py +++ b/sdk/python/pulumi_onelogin/_inputs.py @@ -4,56 +4,148 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ 'AppConfigurationArgs', + 'AppConfigurationArgsDict', 'AppEnforcementPointArgs', + 'AppEnforcementPointArgsDict', 'AppEnforcementPointResourceArgs', + 'AppEnforcementPointResourceArgsDict', 'AppEnforcementPointSessionExpiryFixedArgs', + 'AppEnforcementPointSessionExpiryFixedArgsDict', 'AppEnforcementPointSessionExpiryInactivityArgs', + 'AppEnforcementPointSessionExpiryInactivityArgsDict', 'AppParametersArgs', + 'AppParametersArgsDict', 'AppParametersGroupsArgs', + 'AppParametersGroupsArgsDict', 'AppProvisioningArgs', + 'AppProvisioningArgsDict', 'AppSsoArgs', + 'AppSsoArgsDict', 'AppSsoCertificateArgs', + 'AppSsoCertificateArgsDict', 'AuthServersConfigurationArgs', + 'AuthServersConfigurationArgsDict', 'PrivilegesPrivilegeArgs', + 'PrivilegesPrivilegeArgsDict', 'PrivilegesPrivilegeStatementArgs', + 'PrivilegesPrivilegeStatementArgsDict', 'ProviderEndpointArgs', + 'ProviderEndpointArgsDict', 'RiskRulesSourceArgs', + 'RiskRulesSourceArgsDict', 'GetAppsConfigurationArgs', + 'GetAppsConfigurationArgsDict', 'GetAppsEnforcementPointArgs', + 'GetAppsEnforcementPointArgsDict', 'GetAppsEnforcementPointResourceArgs', + 'GetAppsEnforcementPointResourceArgsDict', 'GetAppsEnforcementPointSessionExpiryFixedArgs', + 'GetAppsEnforcementPointSessionExpiryFixedArgsDict', 'GetAppsEnforcementPointSessionExpiryInactivityArgs', + 'GetAppsEnforcementPointSessionExpiryInactivityArgsDict', 'GetAppsFilterArgs', + 'GetAppsFilterArgsDict', 'GetAppsParametersArgs', + 'GetAppsParametersArgsDict', 'GetAppsParametersGroupsArgs', + 'GetAppsParametersGroupsArgsDict', 'GetAppsProvisioningArgs', + 'GetAppsProvisioningArgsDict', 'GetAppsSsoArgs', + 'GetAppsSsoArgsDict', 'GetAppsSsoCertificateArgs', + 'GetAppsSsoCertificateArgsDict', 'GetAuthServersClaimsFilterArgs', + 'GetAuthServersClaimsFilterArgsDict', 'GetAuthServersConfigurationArgs', + 'GetAuthServersConfigurationArgsDict', 'GetAuthServersFilterArgs', + 'GetAuthServersFilterArgsDict', 'GetAuthServersInstanceConfigurationArgs', + 'GetAuthServersInstanceConfigurationArgsDict', 'GetAuthServersScopesFilterArgs', + 'GetAuthServersScopesFilterArgsDict', 'GetMappingsActionArgs', + 'GetMappingsActionArgsDict', 'GetMappingsConditionArgs', + 'GetMappingsConditionArgsDict', 'GetMappingsFilterArgs', + 'GetMappingsFilterArgsDict', 'GetPrivilegesFilterArgs', + 'GetPrivilegesFilterArgsDict', 'GetPrivilegesInstancePrivilegeArgs', + 'GetPrivilegesInstancePrivilegeArgsDict', 'GetPrivilegesInstancePrivilegeStatementArgs', + 'GetPrivilegesInstancePrivilegeStatementArgsDict', 'GetPrivilegesPrivilegeArgs', + 'GetPrivilegesPrivilegeArgsDict', 'GetPrivilegesPrivilegeStatementArgs', + 'GetPrivilegesPrivilegeStatementArgsDict', 'GetRiskRulesFilterArgs', + 'GetRiskRulesFilterArgsDict', 'GetRiskRulesInstanceSourceArgs', + 'GetRiskRulesInstanceSourceArgsDict', 'GetRiskRulesSourceArgs', + 'GetRiskRulesSourceArgsDict', ] +MYPY = False + +if not MYPY: + class AppConfigurationArgsDict(TypedDict): + access_token_expiration_minutes: NotRequired[pulumi.Input[int]] + """ + OIDC Apps only Number of minutes the refresh token will be valid for. + """ + login_url: NotRequired[pulumi.Input[str]] + """ + OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App. + """ + oidc_api_version: NotRequired[pulumi.Input[str]] + oidc_application_type: NotRequired[pulumi.Input[int]] + """ + OIDC Apps Only + - 0: Web + - 1: Native/Mobile + """ + oidc_encryption_key: NotRequired[pulumi.Input[str]] + """ + OIDC Apps only + """ + post_logout_redirect_uri: NotRequired[pulumi.Input[str]] + """ + OIDC Apps only + """ + redirect_uri: NotRequired[pulumi.Input[str]] + """ + OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow. + """ + refresh_token_expiration_minutes: NotRequired[pulumi.Input[int]] + """ + Number of minutes the refresh token will be valid for. + """ + token_endpoint_auth_method: NotRequired[pulumi.Input[int]] + """ + OIDC Apps only + - 0: Basic + - 1: POST + - 2: None / PKCE + """ +elif False: + AppConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppConfigurationArgs: def __init__(__self__, *, @@ -211,6 +303,63 @@ def token_endpoint_auth_method(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "token_endpoint_auth_method", value) +if not MYPY: + class AppEnforcementPointArgsDict(TypedDict): + case_sensitive: NotRequired[pulumi.Input[bool]] + """ + The URL path evaluation is case insensitive by default. Resources hosted on web servers such as Apache, NGINX and Java EE are case sensitive paths. Web servers such as Microsoft IIS are not case-sensitive. + """ + conditions: NotRequired[pulumi.Input[str]] + """ + If access is conditional, the conditions that must evaluate to true to allow access to a resource. For example, to require the user must be authenticated and have either the role Admin or User + """ + context_root: NotRequired[pulumi.Input[str]] + """ + The root path to the application, often the name of the application. Can be any name, path or just a slash (“/”). The context root uniquely identifies the application within the enforcement point. + """ + landing_page: NotRequired[pulumi.Input[str]] + """ + The location within the context root to which the browser will be redirected for IdP-initiated single sign-on. For example, the landing page might be an index page in the context root such as index.html or default.aspx. The landing page cannot begin with a slash and must use valid URL characters. + """ + permissions: NotRequired[pulumi.Input[str]] + """ + Specify to always `allow`, `deny` access to resources, of if access is `conditional`. + """ + require_sitewide_authentication: NotRequired[pulumi.Input[bool]] + """ + Require user authentication to access any resource protected by this enforcement point. + """ + resources: NotRequired[pulumi.Input[Sequence[pulumi.Input['AppEnforcementPointResourceArgsDict']]]] + """ + Array of resource objects + """ + session_expiry_fixed: NotRequired[pulumi.Input['AppEnforcementPointSessionExpiryFixedArgsDict']] + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + session_expiry_inactivity: NotRequired[pulumi.Input['AppEnforcementPointSessionExpiryInactivityArgsDict']] + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + target: NotRequired[pulumi.Input[str]] + """ + A fully-qualified URL to the internal application including scheme, authority and path. The target host authority must be an IP address, not a hostname. + """ + token: NotRequired[pulumi.Input[str]] + """ + Can only be set on create. Access Gateway Token. + """ + use_target_host_header: NotRequired[pulumi.Input[bool]] + """ + Use the target host header as opposed to the original gateway or upstream host header. + """ + vhost: NotRequired[pulumi.Input[str]] + """ + A comma-delimited list of one or more virtual hosts that map to applications assigned to the enforcement point. A VHOST may be a host name or an IP address. VHOST distinguish between applications that are at the same context root. + """ +elif False: + AppEnforcementPointArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppEnforcementPointArgs: def __init__(__self__, *, @@ -426,6 +575,19 @@ def vhost(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vhost", value) +if not MYPY: + class AppEnforcementPointResourceArgsDict(TypedDict): + conditions: NotRequired[pulumi.Input[str]] + """ + required if permission == "conditions" + """ + is_path_regex: NotRequired[pulumi.Input[bool]] + path: NotRequired[pulumi.Input[str]] + permission: NotRequired[pulumi.Input[str]] + require_auth: NotRequired[pulumi.Input[bool]] +elif False: + AppEnforcementPointResourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppEnforcementPointResourceArgs: def __init__(__self__, *, @@ -497,6 +659,13 @@ def require_auth(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "require_auth", value) +if not MYPY: + class AppEnforcementPointSessionExpiryFixedArgsDict(TypedDict): + unit: NotRequired[pulumi.Input[int]] + value: NotRequired[pulumi.Input[int]] +elif False: + AppEnforcementPointSessionExpiryFixedArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppEnforcementPointSessionExpiryFixedArgs: def __init__(__self__, *, @@ -526,6 +695,13 @@ def value(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "value", value) +if not MYPY: + class AppEnforcementPointSessionExpiryInactivityArgsDict(TypedDict): + unit: NotRequired[pulumi.Input[int]] + value: NotRequired[pulumi.Input[int]] +elif False: + AppEnforcementPointSessionExpiryInactivityArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppEnforcementPointSessionExpiryInactivityArgs: def __init__(__self__, *, @@ -555,6 +731,12 @@ def value(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "value", value) +if not MYPY: + class AppParametersArgsDict(TypedDict): + groups: NotRequired[pulumi.Input['AppParametersGroupsArgsDict']] +elif False: + AppParametersArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppParametersArgs: def __init__(__self__, *, @@ -572,6 +754,20 @@ def groups(self, value: Optional[pulumi.Input['AppParametersGroupsArgs']]): pulumi.set(self, "groups", value) +if not MYPY: + class AppParametersGroupsArgsDict(TypedDict): + attributes_transformations: NotRequired[pulumi.Input[str]] + default_values: NotRequired[pulumi.Input[str]] + id: NotRequired[pulumi.Input[int]] + label: NotRequired[pulumi.Input[str]] + provisioned_entitlements: NotRequired[pulumi.Input[bool]] + skip_if_blank: NotRequired[pulumi.Input[bool]] + user_attribute_macros: NotRequired[pulumi.Input[str]] + user_attribute_mappings: NotRequired[pulumi.Input[str]] + values: NotRequired[pulumi.Input[str]] +elif False: + AppParametersGroupsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppParametersGroupsArgs: def __init__(__self__, *, @@ -685,6 +881,13 @@ def values(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "values", value) +if not MYPY: + class AppProvisioningArgsDict(TypedDict): + enabled: NotRequired[pulumi.Input[bool]] + status: NotRequired[pulumi.Input[str]] +elif False: + AppProvisioningArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppProvisioningArgs: def __init__(__self__, *, @@ -714,6 +917,35 @@ def status(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "status", value) +if not MYPY: + class AppSsoArgsDict(TypedDict): + acs_url: NotRequired[pulumi.Input[str]] + """ + App Name. This is only returned after Creating a SAML App. + """ + certificate: NotRequired[pulumi.Input['AppSsoCertificateArgsDict']] + """ + The certificate used for signing. This is only returned after Creating a SAML App. + """ + client_id: NotRequired[pulumi.Input[str]] + """ + The OpenId Connect Client Id. Note that client_secret is only returned after Creating an OIDC App. + """ + client_secret: NotRequired[pulumi.Input[str]] + """ + OpenId Connet Client Secret + """ + issuer: NotRequired[pulumi.Input[str]] + """ + Issuer of app. This is only returned after Creating a SAML App. + """ + metadata_url: NotRequired[pulumi.Input[str]] + """ + ID of the apps underlying connector. This is only returned after Creating a SAML App. + """ +elif False: + AppSsoArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppSsoArgs: def __init__(__self__, *, @@ -817,6 +1049,14 @@ def metadata_url(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "metadata_url", value) +if not MYPY: + class AppSsoCertificateArgsDict(TypedDict): + id: NotRequired[pulumi.Input[int]] + name: NotRequired[pulumi.Input[str]] + value: NotRequired[pulumi.Input[str]] +elif False: + AppSsoCertificateArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AppSsoCertificateArgs: def __init__(__self__, *, @@ -858,6 +1098,27 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class AuthServersConfigurationArgsDict(TypedDict): + audiences: pulumi.Input[Sequence[pulumi.Input[str]]] + """ + List of API endpoints that will be returned in Access Tokens. + """ + resource_identifier: pulumi.Input[str] + """ + Unique identifier for the API that the Authorization Server will issue Access Tokens for. + """ + access_token_expiration_minutes: NotRequired[pulumi.Input[int]] + """ + The number of minutes until access token expires. There is no maximum expiry limit. + """ + refresh_token_expiration_minutes: NotRequired[pulumi.Input[int]] + """ + The number of minutes until refresh token expires. There is no maximum expiry limit. + """ +elif False: + AuthServersConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class AuthServersConfigurationArgs: def __init__(__self__, *, @@ -927,6 +1188,13 @@ def refresh_token_expiration_minutes(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "refresh_token_expiration_minutes", value) +if not MYPY: + class PrivilegesPrivilegeArgsDict(TypedDict): + statements: NotRequired[pulumi.Input[Sequence[pulumi.Input['PrivilegesPrivilegeStatementArgsDict']]]] + version: NotRequired[pulumi.Input[str]] +elif False: + PrivilegesPrivilegeArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class PrivilegesPrivilegeArgs: def __init__(__self__, *, @@ -956,6 +1224,28 @@ def version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "version", value) +if not MYPY: + class PrivilegesPrivilegeStatementArgsDict(TypedDict): + actions: pulumi.Input[Sequence[pulumi.Input[str]]] + """ + An array of strings that represent actions within OneLogin. Actions are prefixed with the class of object they are related to and followed by a specific action for the given class. + e.g. users:List, where the class is users and the specific action is List. Don’t mix classes within an Action array. To create a privilege that includes multiple different classes, create multiple statements. A wildcard * that includes all actions is supported. Use wildcards to create a Super User privilege. + """ + effect: pulumi.Input[str] + """ + Set to “Allow.” By default, all actions are denied, this Statement allows the listed actions to be executed. + """ + scopes: pulumi.Input[Sequence[pulumi.Input[str]]] + """ + Target the privileged action against specific resources with the scope. + The scope pattern is the class of object used by the Action, followed by an ID that represents a resource in OneLogin. + e.g. apps/1234, where apps is the class and 1234 is the ID of an app. + The wildcard * is supported and indicates that all resources of the class type declared, in the Action, are in scope. + The Action and Scope classes must match. However, there is an exception, a scope of roles/{role_id} can be combined with Actions on the user or app class. The exception allows you to target groups of users or apps with specific actions. + """ +elif False: + PrivilegesPrivilegeStatementArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class PrivilegesPrivilegeStatementArgs: def __init__(__self__, *, @@ -1018,6 +1308,43 @@ def scopes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "scopes", value) +if not MYPY: + class ProviderEndpointArgsDict(TypedDict): + apps: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + apps_rules: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + auth_servers: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + privileges: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + risk_rules: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + roles: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + users: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ + users_v1: NotRequired[pulumi.Input[str]] + """ + Use this to override the resource endpoint URL (the default one or the one constructed from the `region`). + """ +elif False: + ProviderEndpointArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class ProviderEndpointArgs: def __init__(__self__, *, @@ -1153,6 +1480,19 @@ def users_v1(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "users_v1", value) +if not MYPY: + class RiskRulesSourceArgsDict(TypedDict): + id: NotRequired[pulumi.Input[str]] + """ + A unique id that represents the source of the event. + """ + name: NotRequired[pulumi.Input[str]] + """ + The name of the source + """ +elif False: + RiskRulesSourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class RiskRulesSourceArgs: def __init__(__self__, *, @@ -1192,6 +1532,49 @@ def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) +if not MYPY: + class GetAppsConfigurationArgsDict(TypedDict): + access_token_expiration_minutes: int + """ + OIDC Apps only Number of minutes the refresh token will be valid for. + """ + login_url: str + """ + OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App. + """ + oidc_api_version: str + oidc_application_type: int + """ + OIDC Apps Only + - 0: Web + - 1: Native/Mobile + """ + oidc_encryption_key: str + """ + OIDC Apps only + """ + post_logout_redirect_uri: str + """ + OIDC Apps only + """ + redirect_uri: str + """ + OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow. + """ + refresh_token_expiration_minutes: int + """ + Number of minutes the refresh token will be valid for. + """ + token_endpoint_auth_method: int + """ + OIDC Apps only + - 0: Basic + - 1: POST + - 2: None / PKCE + """ +elif False: + GetAppsConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsConfigurationArgs: def __init__(__self__, *, @@ -1340,6 +1723,63 @@ def token_endpoint_auth_method(self, value: int): pulumi.set(self, "token_endpoint_auth_method", value) +if not MYPY: + class GetAppsEnforcementPointArgsDict(TypedDict): + case_sensitive: bool + """ + The URL path evaluation is case insensitive by default. Resources hosted on web servers such as Apache, NGINX and Java EE are case sensitive paths. Web servers such as Microsoft IIS are not case-sensitive. + """ + conditions: str + """ + If access is conditional, the conditions that must evaluate to true to allow access to a resource. For example, to require the user must be authenticated and have either the role Admin or User + """ + context_root: str + """ + The root path to the application, often the name of the application. Can be any name, path or just a slash (“/”). The context root uniquely identifies the application within the enforcement point. + """ + landing_page: str + """ + The location within the context root to which the browser will be redirected for IdP-initiated single sign-on. For example, the landing page might be an index page in the context root such as index.html or default.aspx. The landing page cannot begin with a slash and must use valid URL characters. + """ + permissions: str + """ + Specify to always `allow`, `deny` access to resources, of if access is `conditional`. + """ + require_sitewide_authentication: bool + """ + Require user authentication to access any resource protected by this enforcement point. + """ + resources: Sequence['GetAppsEnforcementPointResourceArgsDict'] + """ + Array of resource objects + """ + session_expiry_fixed: 'GetAppsEnforcementPointSessionExpiryFixedArgsDict' + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + session_expiry_inactivity: 'GetAppsEnforcementPointSessionExpiryInactivityArgsDict' + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + target: str + """ + A fully-qualified URL to the internal application including scheme, authority and path. The target host authority must be an IP address, not a hostname. + """ + token: str + """ + Can only be set on create. Access Gateway Token. + """ + use_target_host_header: bool + """ + Use the target host header as opposed to the original gateway or upstream host header. + """ + vhost: str + """ + A comma-delimited list of one or more virtual hosts that map to applications assigned to the enforcement point. A VHOST may be a host name or an IP address. VHOST distinguish between applications that are at the same context root. + """ +elif False: + GetAppsEnforcementPointArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsEnforcementPointArgs: def __init__(__self__, *, @@ -1542,6 +1982,19 @@ def vhost(self, value: str): pulumi.set(self, "vhost", value) +if not MYPY: + class GetAppsEnforcementPointResourceArgsDict(TypedDict): + conditions: str + """ + required if permission == "conditions" + """ + is_path_regex: bool + path: str + permission: str + require_auth: bool +elif False: + GetAppsEnforcementPointResourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsEnforcementPointResourceArgs: def __init__(__self__, *, @@ -1608,6 +2061,13 @@ def require_auth(self, value: bool): pulumi.set(self, "require_auth", value) +if not MYPY: + class GetAppsEnforcementPointSessionExpiryFixedArgsDict(TypedDict): + unit: int + value: int +elif False: + GetAppsEnforcementPointSessionExpiryFixedArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsEnforcementPointSessionExpiryFixedArgs: def __init__(__self__, *, @@ -1635,6 +2095,13 @@ def value(self, value: int): pulumi.set(self, "value", value) +if not MYPY: + class GetAppsEnforcementPointSessionExpiryInactivityArgsDict(TypedDict): + unit: int + value: int +elif False: + GetAppsEnforcementPointSessionExpiryInactivityArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsEnforcementPointSessionExpiryInactivityArgs: def __init__(__self__, *, @@ -1662,6 +2129,13 @@ def value(self, value: int): pulumi.set(self, "value", value) +if not MYPY: + class GetAppsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAppsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsFilterArgs: def __init__(__self__, *, @@ -1689,6 +2163,12 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetAppsParametersArgsDict(TypedDict): + groups: 'GetAppsParametersGroupsArgsDict' +elif False: + GetAppsParametersArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsParametersArgs: def __init__(__self__, *, @@ -1705,6 +2185,20 @@ def groups(self, value: 'GetAppsParametersGroupsArgs'): pulumi.set(self, "groups", value) +if not MYPY: + class GetAppsParametersGroupsArgsDict(TypedDict): + attributes_transformations: str + default_values: str + id: int + label: str + provisioned_entitlements: bool + skip_if_blank: bool + user_attribute_macros: str + user_attribute_mappings: str + values: str +elif False: + GetAppsParametersGroupsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsParametersGroupsArgs: def __init__(__self__, *, @@ -1809,6 +2303,13 @@ def values(self, value: str): pulumi.set(self, "values", value) +if not MYPY: + class GetAppsProvisioningArgsDict(TypedDict): + enabled: bool + status: str +elif False: + GetAppsProvisioningArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsProvisioningArgs: def __init__(__self__, *, @@ -1836,6 +2337,35 @@ def status(self, value: str): pulumi.set(self, "status", value) +if not MYPY: + class GetAppsSsoArgsDict(TypedDict): + acs_url: str + """ + App Name. This is only returned after Creating a SAML App. + """ + certificate: 'GetAppsSsoCertificateArgsDict' + """ + The certificate used for signing. This is only returned after Creating a SAML App. + """ + client_id: str + """ + The OpenId Connect Client Id. Note that client_secret is only returned after Creating an OIDC App. + """ + client_secret: str + """ + OpenId Connet Client Secret + """ + issuer: str + """ + Issuer of app. This is only returned after Creating a SAML App. + """ + metadata_url: str + """ + ID of the apps underlying connector. This is only returned after Creating a SAML App. + """ +elif False: + GetAppsSsoArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsSsoArgs: def __init__(__self__, *, @@ -1933,6 +2463,14 @@ def metadata_url(self, value: str): pulumi.set(self, "metadata_url", value) +if not MYPY: + class GetAppsSsoCertificateArgsDict(TypedDict): + id: int + name: str + value: str +elif False: + GetAppsSsoCertificateArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsSsoCertificateArgs: def __init__(__self__, *, @@ -1971,6 +2509,13 @@ def value(self, value: str): pulumi.set(self, "value", value) +if not MYPY: + class GetAuthServersClaimsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAuthServersClaimsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAuthServersClaimsFilterArgs: def __init__(__self__, *, @@ -1998,6 +2543,27 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetAuthServersConfigurationArgsDict(TypedDict): + access_token_expiration_minutes: int + """ + The number of minutes until access token expires. There is no maximum expiry limit. + """ + audiences: Sequence[str] + """ + List of API endpoints that will be returned in Access Tokens. + """ + refresh_token_expiration_minutes: int + """ + The number of minutes until refresh token expires. There is no maximum expiry limit. + """ + resource_identifier: str + """ + Unique identifier for the API that the Authorization Server will issue Access Tokens for. + """ +elif False: + GetAuthServersConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAuthServersConfigurationArgs: def __init__(__self__, *, @@ -2065,6 +2631,13 @@ def resource_identifier(self, value: str): pulumi.set(self, "resource_identifier", value) +if not MYPY: + class GetAuthServersFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAuthServersFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAuthServersFilterArgs: def __init__(__self__, *, @@ -2092,6 +2665,27 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetAuthServersInstanceConfigurationArgsDict(TypedDict): + access_token_expiration_minutes: int + """ + The number of minutes until access token expires. There is no maximum expiry limit. + """ + audiences: Sequence[str] + """ + List of API endpoints that will be returned in Access Tokens. + """ + refresh_token_expiration_minutes: int + """ + The number of minutes until refresh token expires. There is no maximum expiry limit. + """ + resource_identifier: str + """ + Unique identifier for the API that the Authorization Server will issue Access Tokens for. + """ +elif False: + GetAuthServersInstanceConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAuthServersInstanceConfigurationArgs: def __init__(__self__, *, @@ -2159,6 +2753,13 @@ def resource_identifier(self, value: str): pulumi.set(self, "resource_identifier", value) +if not MYPY: + class GetAuthServersScopesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAuthServersScopesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAuthServersScopesFilterArgs: def __init__(__self__, *, @@ -2186,6 +2787,19 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetMappingsActionArgsDict(TypedDict): + action: str + """ + The action to apply + """ + values: Sequence[str] + """ + Only applicable to provisioned and set_* actions. Items in the array will be a plain text string or valid value for the selected action. + """ +elif False: + GetMappingsActionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetMappingsActionArgs: def __init__(__self__, *, @@ -2223,6 +2837,23 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetMappingsConditionArgsDict(TypedDict): + operator: str + """ + A valid operator for the selected condition source + """ + source: str + """ + source field to check. + """ + value: str + """ + A plain text string or valid value for the selected condition source + """ +elif False: + GetMappingsConditionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetMappingsConditionArgs: def __init__(__self__, *, @@ -2275,6 +2906,13 @@ def value(self, value: str): pulumi.set(self, "value", value) +if not MYPY: + class GetMappingsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetMappingsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetMappingsFilterArgs: def __init__(__self__, *, @@ -2302,6 +2940,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetPrivilegesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetPrivilegesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetPrivilegesFilterArgs: def __init__(__self__, *, @@ -2329,6 +2974,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetPrivilegesInstancePrivilegeArgsDict(TypedDict): + statements: Sequence['GetPrivilegesInstancePrivilegeStatementArgsDict'] + version: str +elif False: + GetPrivilegesInstancePrivilegeArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetPrivilegesInstancePrivilegeArgs: def __init__(__self__, *, @@ -2356,6 +3008,28 @@ def version(self, value: str): pulumi.set(self, "version", value) +if not MYPY: + class GetPrivilegesInstancePrivilegeStatementArgsDict(TypedDict): + actions: Sequence[str] + """ + An array of strings that represent actions within OneLogin. Actions are prefixed with the class of object they are related to and followed by a specific action for the given class. + e.g. users:List, where the class is users and the specific action is List. Don’t mix classes within an Action array. To create a privilege that includes multiple different classes, create multiple statements. A wildcard * that includes all actions is supported. Use wildcards to create a Super User privilege. + """ + effect: str + """ + Set to “Allow.” By default, all actions are denied, this Statement allows the listed actions to be executed. + """ + scopes: Sequence[str] + """ + Target the privileged action against specific resources with the scope. + The scope pattern is the class of object used by the Action, followed by an ID that represents a resource in OneLogin. + e.g. apps/1234, where apps is the class and 1234 is the ID of an app. + The wildcard * is supported and indicates that all resources of the class type declared, in the Action, are in scope. + The Action and Scope classes must match. However, there is an exception, a scope of roles/{role_id} can be combined with Actions on the user or app class. The exception allows you to target groups of users or apps with specific actions. + """ +elif False: + GetPrivilegesInstancePrivilegeStatementArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetPrivilegesInstancePrivilegeStatementArgs: def __init__(__self__, *, @@ -2418,6 +3092,13 @@ def scopes(self, value: Sequence[str]): pulumi.set(self, "scopes", value) +if not MYPY: + class GetPrivilegesPrivilegeArgsDict(TypedDict): + statements: Sequence['GetPrivilegesPrivilegeStatementArgsDict'] + version: str +elif False: + GetPrivilegesPrivilegeArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetPrivilegesPrivilegeArgs: def __init__(__self__, *, @@ -2445,6 +3126,28 @@ def version(self, value: str): pulumi.set(self, "version", value) +if not MYPY: + class GetPrivilegesPrivilegeStatementArgsDict(TypedDict): + actions: Sequence[str] + """ + An array of strings that represent actions within OneLogin. Actions are prefixed with the class of object they are related to and followed by a specific action for the given class. + e.g. users:List, where the class is users and the specific action is List. Don’t mix classes within an Action array. To create a privilege that includes multiple different classes, create multiple statements. A wildcard * that includes all actions is supported. Use wildcards to create a Super User privilege. + """ + effect: str + """ + Set to “Allow.” By default, all actions are denied, this Statement allows the listed actions to be executed. + """ + scopes: Sequence[str] + """ + Target the privileged action against specific resources with the scope. + The scope pattern is the class of object used by the Action, followed by an ID that represents a resource in OneLogin. + e.g. apps/1234, where apps is the class and 1234 is the ID of an app. + The wildcard * is supported and indicates that all resources of the class type declared, in the Action, are in scope. + The Action and Scope classes must match. However, there is an exception, a scope of roles/{role_id} can be combined with Actions on the user or app class. The exception allows you to target groups of users or apps with specific actions. + """ +elif False: + GetPrivilegesPrivilegeStatementArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetPrivilegesPrivilegeStatementArgs: def __init__(__self__, *, @@ -2507,6 +3210,13 @@ def scopes(self, value: Sequence[str]): pulumi.set(self, "scopes", value) +if not MYPY: + class GetRiskRulesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetRiskRulesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRiskRulesFilterArgs: def __init__(__self__, *, @@ -2534,6 +3244,19 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetRiskRulesInstanceSourceArgsDict(TypedDict): + id: str + """ + A unique id that represents the source of the event. + """ + name: str + """ + The name of the source + """ +elif False: + GetRiskRulesInstanceSourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRiskRulesInstanceSourceArgs: def __init__(__self__, *, @@ -2571,6 +3294,19 @@ def name(self, value: str): pulumi.set(self, "name", value) +if not MYPY: + class GetRiskRulesSourceArgsDict(TypedDict): + id: str + """ + A unique id that represents the source of the event. + """ + name: str + """ + The name of the source + """ +elif False: + GetRiskRulesSourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRiskRulesSourceArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_onelogin/_utilities.py b/sdk/python/pulumi_onelogin/_utilities.py index d14b49a..3ce408d 100644 --- a/sdk/python/pulumi_onelogin/_utilities.py +++ b/sdk/python/pulumi_onelogin/_utilities.py @@ -264,7 +264,7 @@ def call_plain( output = pulumi.runtime.call(tok, props, res, typ) # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency. - result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output))) + result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output))) problem = None if not known: diff --git a/sdk/python/pulumi_onelogin/app.py b/sdk/python/pulumi_onelogin/app.py index 9a95f34..1e57ad0 100644 --- a/sdk/python/pulumi_onelogin/app.py +++ b/sdk/python/pulumi_onelogin/app.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/apps/_inputs.py b/sdk/python/pulumi_onelogin/apps/_inputs.py index 67de47a..99703f1 100644 --- a/sdk/python/pulumi_onelogin/apps/_inputs.py +++ b/sdk/python/pulumi_onelogin/apps/_inputs.py @@ -4,36 +4,78 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ 'RulesActionArgs', + 'RulesActionArgsDict', 'RulesConditionArgs', + 'RulesConditionArgsDict', 'GetActionsFilterArgs', + 'GetActionsFilterArgsDict', 'GetActionsValuesFilterArgs', + 'GetActionsValuesFilterArgsDict', 'GetConditionsFilterArgs', + 'GetConditionsFilterArgsDict', 'GetConditionsOperatorsFilterArgs', + 'GetConditionsOperatorsFilterArgsDict', 'GetInstanceConfigurationArgs', + 'GetInstanceConfigurationArgsDict', 'GetInstanceEnforcementPointArgs', + 'GetInstanceEnforcementPointArgsDict', 'GetInstanceEnforcementPointResourceArgs', + 'GetInstanceEnforcementPointResourceArgsDict', 'GetInstanceEnforcementPointSessionExpiryFixedArgs', + 'GetInstanceEnforcementPointSessionExpiryFixedArgsDict', 'GetInstanceEnforcementPointSessionExpiryInactivityArgs', + 'GetInstanceEnforcementPointSessionExpiryInactivityArgsDict', 'GetInstanceParametersArgs', + 'GetInstanceParametersArgsDict', 'GetInstanceParametersGroupsArgs', + 'GetInstanceParametersGroupsArgsDict', 'GetInstanceProvisioningArgs', + 'GetInstanceProvisioningArgsDict', 'GetInstanceSsoArgs', + 'GetInstanceSsoArgsDict', 'GetInstanceSsoCertificateArgs', + 'GetInstanceSsoCertificateArgsDict', 'GetRulesActionArgs', + 'GetRulesActionArgsDict', 'GetRulesConditionArgs', + 'GetRulesConditionArgsDict', 'GetRulesFilterArgs', + 'GetRulesFilterArgsDict', 'GetRulesInstanceActionArgs', + 'GetRulesInstanceActionArgsDict', 'GetRulesInstanceConditionArgs', + 'GetRulesInstanceConditionArgsDict', 'GetUsersFilterArgs', + 'GetUsersFilterArgsDict', ] +MYPY = False + +if not MYPY: + class RulesActionArgsDict(TypedDict): + action: NotRequired[pulumi.Input[str]] + """ + The action to apply + """ + values: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + Only applicable to provisioned and set_* actions. Items in the array will be a plain text string or valid value for the selected action. + """ +elif False: + RulesActionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class RulesActionArgs: def __init__(__self__, *, @@ -73,6 +115,23 @@ def values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "values", value) +if not MYPY: + class RulesConditionArgsDict(TypedDict): + operator: NotRequired[pulumi.Input[str]] + """ + A valid operator for the selected condition source + """ + source: NotRequired[pulumi.Input[str]] + """ + source field to check. + """ + value: NotRequired[pulumi.Input[str]] + """ + A plain text string or valid value for the selected condition source + """ +elif False: + RulesConditionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class RulesConditionArgs: def __init__(__self__, *, @@ -128,6 +187,13 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class GetActionsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetActionsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetActionsFilterArgs: def __init__(__self__, *, @@ -155,6 +221,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetActionsValuesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetActionsValuesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetActionsValuesFilterArgs: def __init__(__self__, *, @@ -182,6 +255,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetConditionsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetConditionsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetConditionsFilterArgs: def __init__(__self__, *, @@ -209,6 +289,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetConditionsOperatorsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetConditionsOperatorsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetConditionsOperatorsFilterArgs: def __init__(__self__, *, @@ -236,6 +323,49 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetInstanceConfigurationArgsDict(TypedDict): + access_token_expiration_minutes: int + """ + OIDC Apps only Number of minutes the refresh token will be valid for. + """ + login_url: str + """ + OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App. + """ + oidc_api_version: str + oidc_application_type: int + """ + OIDC Apps Only + - 0: Web + - 1: Native/Mobile + """ + oidc_encryption_key: str + """ + OIDC Apps only + """ + post_logout_redirect_uri: str + """ + OIDC Apps only + """ + redirect_uri: str + """ + OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow. + """ + refresh_token_expiration_minutes: int + """ + Number of minutes the refresh token will be valid for. + """ + token_endpoint_auth_method: int + """ + OIDC Apps only + - 0: Basic + - 1: POST + - 2: None / PKCE + """ +elif False: + GetInstanceConfigurationArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceConfigurationArgs: def __init__(__self__, *, @@ -384,6 +514,63 @@ def token_endpoint_auth_method(self, value: int): pulumi.set(self, "token_endpoint_auth_method", value) +if not MYPY: + class GetInstanceEnforcementPointArgsDict(TypedDict): + case_sensitive: bool + """ + The URL path evaluation is case insensitive by default. Resources hosted on web servers such as Apache, NGINX and Java EE are case sensitive paths. Web servers such as Microsoft IIS are not case-sensitive. + """ + conditions: str + """ + If access is conditional, the conditions that must evaluate to true to allow access to a resource. For example, to require the user must be authenticated and have either the role Admin or User + """ + context_root: str + """ + The root path to the application, often the name of the application. Can be any name, path or just a slash (“/”). The context root uniquely identifies the application within the enforcement point. + """ + landing_page: str + """ + The location within the context root to which the browser will be redirected for IdP-initiated single sign-on. For example, the landing page might be an index page in the context root such as index.html or default.aspx. The landing page cannot begin with a slash and must use valid URL characters. + """ + permissions: str + """ + Specify to always `allow`, `deny` access to resources, of if access is `conditional`. + """ + require_sitewide_authentication: bool + """ + Require user authentication to access any resource protected by this enforcement point. + """ + resources: Sequence['GetInstanceEnforcementPointResourceArgsDict'] + """ + Array of resource objects + """ + session_expiry_fixed: 'GetInstanceEnforcementPointSessionExpiryFixedArgsDict' + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + session_expiry_inactivity: 'GetInstanceEnforcementPointSessionExpiryInactivityArgsDict' + """ + unit: - 0 = Seconds - 1 = Minutes - 2 = Hours value: - When Unit = 0 or 1 value must be 0-60 - When Unit = 2 value must be 0-24 + """ + target: str + """ + A fully-qualified URL to the internal application including scheme, authority and path. The target host authority must be an IP address, not a hostname. + """ + token: str + """ + Can only be set on create. Access Gateway Token. + """ + use_target_host_header: bool + """ + Use the target host header as opposed to the original gateway or upstream host header. + """ + vhost: str + """ + A comma-delimited list of one or more virtual hosts that map to applications assigned to the enforcement point. A VHOST may be a host name or an IP address. VHOST distinguish between applications that are at the same context root. + """ +elif False: + GetInstanceEnforcementPointArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceEnforcementPointArgs: def __init__(__self__, *, @@ -586,6 +773,19 @@ def vhost(self, value: str): pulumi.set(self, "vhost", value) +if not MYPY: + class GetInstanceEnforcementPointResourceArgsDict(TypedDict): + conditions: str + """ + required if permission == "conditions" + """ + is_path_regex: bool + path: str + permission: str + require_auth: bool +elif False: + GetInstanceEnforcementPointResourceArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceEnforcementPointResourceArgs: def __init__(__self__, *, @@ -652,6 +852,13 @@ def require_auth(self, value: bool): pulumi.set(self, "require_auth", value) +if not MYPY: + class GetInstanceEnforcementPointSessionExpiryFixedArgsDict(TypedDict): + unit: int + value: int +elif False: + GetInstanceEnforcementPointSessionExpiryFixedArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceEnforcementPointSessionExpiryFixedArgs: def __init__(__self__, *, @@ -679,6 +886,13 @@ def value(self, value: int): pulumi.set(self, "value", value) +if not MYPY: + class GetInstanceEnforcementPointSessionExpiryInactivityArgsDict(TypedDict): + unit: int + value: int +elif False: + GetInstanceEnforcementPointSessionExpiryInactivityArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceEnforcementPointSessionExpiryInactivityArgs: def __init__(__self__, *, @@ -706,6 +920,12 @@ def value(self, value: int): pulumi.set(self, "value", value) +if not MYPY: + class GetInstanceParametersArgsDict(TypedDict): + groups: 'GetInstanceParametersGroupsArgsDict' +elif False: + GetInstanceParametersArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceParametersArgs: def __init__(__self__, *, @@ -722,6 +942,20 @@ def groups(self, value: 'GetInstanceParametersGroupsArgs'): pulumi.set(self, "groups", value) +if not MYPY: + class GetInstanceParametersGroupsArgsDict(TypedDict): + attributes_transformations: str + default_values: str + id: int + label: str + provisioned_entitlements: bool + skip_if_blank: bool + user_attribute_macros: str + user_attribute_mappings: str + values: str +elif False: + GetInstanceParametersGroupsArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceParametersGroupsArgs: def __init__(__self__, *, @@ -826,6 +1060,13 @@ def values(self, value: str): pulumi.set(self, "values", value) +if not MYPY: + class GetInstanceProvisioningArgsDict(TypedDict): + enabled: bool + status: str +elif False: + GetInstanceProvisioningArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceProvisioningArgs: def __init__(__self__, *, @@ -853,6 +1094,35 @@ def status(self, value: str): pulumi.set(self, "status", value) +if not MYPY: + class GetInstanceSsoArgsDict(TypedDict): + acs_url: str + """ + App Name. This is only returned after Creating a SAML App. + """ + certificate: 'GetInstanceSsoCertificateArgsDict' + """ + The certificate used for signing. This is only returned after Creating a SAML App. + """ + client_id: str + """ + The OpenId Connect Client Id. Note that client_secret is only returned after Creating an OIDC App. + """ + client_secret: str + """ + OpenId Connet Client Secret + """ + issuer: str + """ + Issuer of app. This is only returned after Creating a SAML App. + """ + metadata_url: str + """ + ID of the apps underlying connector. This is only returned after Creating a SAML App. + """ +elif False: + GetInstanceSsoArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceSsoArgs: def __init__(__self__, *, @@ -950,6 +1220,14 @@ def metadata_url(self, value: str): pulumi.set(self, "metadata_url", value) +if not MYPY: + class GetInstanceSsoCertificateArgsDict(TypedDict): + id: int + name: str + value: str +elif False: + GetInstanceSsoCertificateArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetInstanceSsoCertificateArgs: def __init__(__self__, *, @@ -988,6 +1266,19 @@ def value(self, value: str): pulumi.set(self, "value", value) +if not MYPY: + class GetRulesActionArgsDict(TypedDict): + action: str + """ + The action to apply + """ + values: Sequence[str] + """ + Only applicable to provisioned and set_* actions. Items in the array will be a plain text string or valid value for the selected action. + """ +elif False: + GetRulesActionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRulesActionArgs: def __init__(__self__, *, @@ -1025,6 +1316,23 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetRulesConditionArgsDict(TypedDict): + operator: str + """ + A valid operator for the selected condition source + """ + source: str + """ + source field to check. + """ + value: str + """ + A plain text string or valid value for the selected condition source + """ +elif False: + GetRulesConditionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRulesConditionArgs: def __init__(__self__, *, @@ -1077,6 +1385,13 @@ def value(self, value: str): pulumi.set(self, "value", value) +if not MYPY: + class GetRulesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetRulesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRulesFilterArgs: def __init__(__self__, *, @@ -1104,6 +1419,19 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetRulesInstanceActionArgsDict(TypedDict): + action: str + """ + The action to apply + """ + values: Sequence[str] + """ + Only applicable to provisioned and set_* actions. Items in the array will be a plain text string or valid value for the selected action. + """ +elif False: + GetRulesInstanceActionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRulesInstanceActionArgs: def __init__(__self__, *, @@ -1141,6 +1469,23 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetRulesInstanceConditionArgsDict(TypedDict): + operator: str + """ + A valid operator for the selected condition source + """ + source: str + """ + source field to check. + """ + value: str + """ + A plain text string or valid value for the selected condition source + """ +elif False: + GetRulesInstanceConditionArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRulesInstanceConditionArgs: def __init__(__self__, *, @@ -1193,6 +1538,13 @@ def value(self, value: str): pulumi.set(self, "value", value) +if not MYPY: + class GetUsersFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetUsersFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetUsersFilterArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_onelogin/apps/get_actions.py b/sdk/python/pulumi_onelogin/apps/get_actions.py index 28f1952..14d92e3 100644 --- a/sdk/python/pulumi_onelogin/apps/get_actions.py +++ b/sdk/python/pulumi_onelogin/apps/get_actions.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_actions(apps_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), value=pulumi.get(__ret__, 'value')) - - -@_utilities.lift_output_func(get_actions) def get_actions_output(apps_id: Optional[pulumi.Input[str]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetActionsFilterArgs', 'GetActionsFilterArgsDict']]]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -115,4 +117,16 @@ def get_actions_output(apps_id: Optional[pulumi.Input[str]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['appsId'] = apps_id + __args__['filters'] = filters + __args__['name'] = name + __args__['value'] = value + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getActions:getActions', __args__, opts=opts, typ=GetActionsResult) + return __ret__.apply(lambda __response__: GetActionsResult( + apps_id=pulumi.get(__response__, 'apps_id'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + value=pulumi.get(__response__, 'value'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_actions_values.py b/sdk/python/pulumi_onelogin/apps/get_actions_values.py index f8539de..6f58364 100644 --- a/sdk/python/pulumi_onelogin/apps/get_actions_values.py +++ b/sdk/python/pulumi_onelogin/apps/get_actions_values.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -116,9 +121,6 @@ def get_actions_values(actions_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), value=pulumi.get(__ret__, 'value')) - - -@_utilities.lift_output_func(get_actions_values) def get_actions_values_output(actions_id: Optional[pulumi.Input[str]] = None, apps_id: Optional[pulumi.Input[str]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetActionsValuesFilterArgs', 'GetActionsValuesFilterArgsDict']]]]] = None, @@ -128,4 +130,18 @@ def get_actions_values_output(actions_id: Optional[pulumi.Input[str]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['actionsId'] = actions_id + __args__['appsId'] = apps_id + __args__['filters'] = filters + __args__['name'] = name + __args__['value'] = value + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getActionsValues:getActionsValues', __args__, opts=opts, typ=GetActionsValuesResult) + return __ret__.apply(lambda __response__: GetActionsValuesResult( + actions_id=pulumi.get(__response__, 'actions_id'), + apps_id=pulumi.get(__response__, 'apps_id'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + value=pulumi.get(__response__, 'value'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_conditions.py b/sdk/python/pulumi_onelogin/apps/get_conditions.py index a53f9d3..89749e2 100644 --- a/sdk/python/pulumi_onelogin/apps/get_conditions.py +++ b/sdk/python/pulumi_onelogin/apps/get_conditions.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_conditions(apps_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), value=pulumi.get(__ret__, 'value')) - - -@_utilities.lift_output_func(get_conditions) def get_conditions_output(apps_id: Optional[pulumi.Input[str]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetConditionsFilterArgs', 'GetConditionsFilterArgsDict']]]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -115,4 +117,16 @@ def get_conditions_output(apps_id: Optional[pulumi.Input[str]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['appsId'] = apps_id + __args__['filters'] = filters + __args__['name'] = name + __args__['value'] = value + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getConditions:getConditions', __args__, opts=opts, typ=GetConditionsResult) + return __ret__.apply(lambda __response__: GetConditionsResult( + apps_id=pulumi.get(__response__, 'apps_id'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + value=pulumi.get(__response__, 'value'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_conditions_operators.py b/sdk/python/pulumi_onelogin/apps/get_conditions_operators.py index d82451a..a7605f8 100644 --- a/sdk/python/pulumi_onelogin/apps/get_conditions_operators.py +++ b/sdk/python/pulumi_onelogin/apps/get_conditions_operators.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -116,9 +121,6 @@ def get_conditions_operators(apps_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), value=pulumi.get(__ret__, 'value')) - - -@_utilities.lift_output_func(get_conditions_operators) def get_conditions_operators_output(apps_id: Optional[pulumi.Input[str]] = None, conditions_id: Optional[pulumi.Input[str]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetConditionsOperatorsFilterArgs', 'GetConditionsOperatorsFilterArgsDict']]]]] = None, @@ -128,4 +130,18 @@ def get_conditions_operators_output(apps_id: Optional[pulumi.Input[str]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['appsId'] = apps_id + __args__['conditionsId'] = conditions_id + __args__['filters'] = filters + __args__['name'] = name + __args__['value'] = value + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getConditionsOperators:getConditionsOperators', __args__, opts=opts, typ=GetConditionsOperatorsResult) + return __ret__.apply(lambda __response__: GetConditionsOperatorsResult( + apps_id=pulumi.get(__response__, 'apps_id'), + conditions_id=pulumi.get(__response__, 'conditions_id'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + value=pulumi.get(__response__, 'value'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_instance.py b/sdk/python/pulumi_onelogin/apps/get_instance.py index 848d598..22e954e 100644 --- a/sdk/python/pulumi_onelogin/apps/get_instance.py +++ b/sdk/python/pulumi_onelogin/apps/get_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -307,9 +312,6 @@ def get_instance(allow_assumed_signin: Optional[bool] = None, tab_id=pulumi.get(__ret__, 'tab_id'), updated_at=pulumi.get(__ret__, 'updated_at'), visible=pulumi.get(__ret__, 'visible')) - - -@_utilities.lift_output_func(get_instance) def get_instance_output(allow_assumed_signin: Optional[pulumi.Input[Optional[bool]]] = None, auth_method: Optional[pulumi.Input[Optional[int]]] = None, auth_method_description: Optional[pulumi.Input[Optional[str]]] = None, @@ -336,4 +338,51 @@ def get_instance_output(allow_assumed_signin: Optional[pulumi.Input[Optional[boo """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['allowAssumedSignin'] = allow_assumed_signin + __args__['authMethod'] = auth_method + __args__['authMethodDescription'] = auth_method_description + __args__['brandId'] = brand_id + __args__['configuration'] = configuration + __args__['connectorId'] = connector_id + __args__['createdAt'] = created_at + __args__['description'] = description + __args__['enforcementPoint'] = enforcement_point + __args__['iconUrl'] = icon_url + __args__['id'] = id + __args__['loginConfig'] = login_config + __args__['name'] = name + __args__['notes'] = notes + __args__['parameters'] = parameters + __args__['policyId'] = policy_id + __args__['provisioning'] = provisioning + __args__['roleIds'] = role_ids + __args__['sso'] = sso + __args__['tabId'] = tab_id + __args__['updatedAt'] = updated_at + __args__['visible'] = visible + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult) + return __ret__.apply(lambda __response__: GetInstanceResult( + allow_assumed_signin=pulumi.get(__response__, 'allow_assumed_signin'), + auth_method=pulumi.get(__response__, 'auth_method'), + auth_method_description=pulumi.get(__response__, 'auth_method_description'), + brand_id=pulumi.get(__response__, 'brand_id'), + configuration=pulumi.get(__response__, 'configuration'), + connector_id=pulumi.get(__response__, 'connector_id'), + created_at=pulumi.get(__response__, 'created_at'), + description=pulumi.get(__response__, 'description'), + enforcement_point=pulumi.get(__response__, 'enforcement_point'), + icon_url=pulumi.get(__response__, 'icon_url'), + id=pulumi.get(__response__, 'id'), + login_config=pulumi.get(__response__, 'login_config'), + name=pulumi.get(__response__, 'name'), + notes=pulumi.get(__response__, 'notes'), + parameters=pulumi.get(__response__, 'parameters'), + policy_id=pulumi.get(__response__, 'policy_id'), + provisioning=pulumi.get(__response__, 'provisioning'), + role_ids=pulumi.get(__response__, 'role_ids'), + sso=pulumi.get(__response__, 'sso'), + tab_id=pulumi.get(__response__, 'tab_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + visible=pulumi.get(__response__, 'visible'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_rules.py b/sdk/python/pulumi_onelogin/apps/get_rules.py index 92a7746..598c52d 100644 --- a/sdk/python/pulumi_onelogin/apps/get_rules.py +++ b/sdk/python/pulumi_onelogin/apps/get_rules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -152,9 +157,6 @@ def get_rules(actions: Optional[Sequence[Union['GetRulesActionArgs', 'GetRulesAc match=pulumi.get(__ret__, 'match'), name=pulumi.get(__ret__, 'name'), position=pulumi.get(__ret__, 'position')) - - -@_utilities.lift_output_func(get_rules) def get_rules_output(actions: Optional[pulumi.Input[Optional[Sequence[Union['GetRulesActionArgs', 'GetRulesActionArgsDict']]]]] = None, apps_id: Optional[pulumi.Input[str]] = None, conditions: Optional[pulumi.Input[Optional[Sequence[Union['GetRulesConditionArgs', 'GetRulesConditionArgsDict']]]]] = None, @@ -167,4 +169,24 @@ def get_rules_output(actions: Optional[pulumi.Input[Optional[Sequence[Union['Get """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['actions'] = actions + __args__['appsId'] = apps_id + __args__['conditions'] = conditions + __args__['enabled'] = enabled + __args__['filters'] = filters + __args__['match'] = match + __args__['name'] = name + __args__['position'] = position + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getRules:getRules', __args__, opts=opts, typ=GetRulesResult) + return __ret__.apply(lambda __response__: GetRulesResult( + actions=pulumi.get(__response__, 'actions'), + apps_id=pulumi.get(__response__, 'apps_id'), + conditions=pulumi.get(__response__, 'conditions'), + enabled=pulumi.get(__response__, 'enabled'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + match=pulumi.get(__response__, 'match'), + name=pulumi.get(__response__, 'name'), + position=pulumi.get(__response__, 'position'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_rules_instance.py b/sdk/python/pulumi_onelogin/apps/get_rules_instance.py index 0d4372f..84f1170 100644 --- a/sdk/python/pulumi_onelogin/apps/get_rules_instance.py +++ b/sdk/python/pulumi_onelogin/apps/get_rules_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -139,9 +144,6 @@ def get_rules_instance(actions: Optional[Sequence[Union['GetRulesInstanceActionA match=pulumi.get(__ret__, 'match'), name=pulumi.get(__ret__, 'name'), position=pulumi.get(__ret__, 'position')) - - -@_utilities.lift_output_func(get_rules_instance) def get_rules_instance_output(actions: Optional[pulumi.Input[Optional[Sequence[Union['GetRulesInstanceActionArgs', 'GetRulesInstanceActionArgsDict']]]]] = None, apps_id: Optional[pulumi.Input[str]] = None, conditions: Optional[pulumi.Input[Optional[Sequence[Union['GetRulesInstanceConditionArgs', 'GetRulesInstanceConditionArgsDict']]]]] = None, @@ -154,4 +156,23 @@ def get_rules_instance_output(actions: Optional[pulumi.Input[Optional[Sequence[U """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['actions'] = actions + __args__['appsId'] = apps_id + __args__['conditions'] = conditions + __args__['enabled'] = enabled + __args__['id'] = id + __args__['match'] = match + __args__['name'] = name + __args__['position'] = position + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getRulesInstance:getRulesInstance', __args__, opts=opts, typ=GetRulesInstanceResult) + return __ret__.apply(lambda __response__: GetRulesInstanceResult( + actions=pulumi.get(__response__, 'actions'), + apps_id=pulumi.get(__response__, 'apps_id'), + conditions=pulumi.get(__response__, 'conditions'), + enabled=pulumi.get(__response__, 'enabled'), + id=pulumi.get(__response__, 'id'), + match=pulumi.get(__response__, 'match'), + name=pulumi.get(__response__, 'name'), + position=pulumi.get(__response__, 'position'))) diff --git a/sdk/python/pulumi_onelogin/apps/get_users.py b/sdk/python/pulumi_onelogin/apps/get_users.py index ddd5782..2b30512 100644 --- a/sdk/python/pulumi_onelogin/apps/get_users.py +++ b/sdk/python/pulumi_onelogin/apps/get_users.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -500,9 +505,6 @@ def get_users(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_users) def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, apps_id: Optional[pulumi.Input[str]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, @@ -544,4 +546,82 @@ def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['appsId'] = apps_id + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['filters'] = filters + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:apps/getUsers:getUsers', __args__, opts=opts, typ=GetUsersResult) + return __ret__.apply(lambda __response__: GetUsersResult( + activated_at=pulumi.get(__response__, 'activated_at'), + apps_id=pulumi.get(__response__, 'apps_id'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + filters=pulumi.get(__response__, 'filters'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/apps/outputs.py b/sdk/python/pulumi_onelogin/apps/outputs.py index 9284938..9853e32 100644 --- a/sdk/python/pulumi_onelogin/apps/outputs.py +++ b/sdk/python/pulumi_onelogin/apps/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs diff --git a/sdk/python/pulumi_onelogin/apps/rules.py b/sdk/python/pulumi_onelogin/apps/rules.py index 07d3bc8..ba4337b 100644 --- a/sdk/python/pulumi_onelogin/apps/rules.py +++ b/sdk/python/pulumi_onelogin/apps/rules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/auth_servers.py b/sdk/python/pulumi_onelogin/auth_servers.py index 0caf454..a0d0809 100644 --- a/sdk/python/pulumi_onelogin/auth_servers.py +++ b/sdk/python/pulumi_onelogin/auth_servers.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/config/__init__.pyi b/sdk/python/pulumi_onelogin/config/__init__.pyi index c1f6915..dbe38ca 100644 --- a/sdk/python/pulumi_onelogin/config/__init__.pyi +++ b/sdk/python/pulumi_onelogin/config/__init__.pyi @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs diff --git a/sdk/python/pulumi_onelogin/config/outputs.py b/sdk/python/pulumi_onelogin/config/outputs.py index 56992a8..09988d1 100644 --- a/sdk/python/pulumi_onelogin/config/outputs.py +++ b/sdk/python/pulumi_onelogin/config/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ diff --git a/sdk/python/pulumi_onelogin/config/vars.py b/sdk/python/pulumi_onelogin/config/vars.py index 20ccb75..a6a69bc 100644 --- a/sdk/python/pulumi_onelogin/config/vars.py +++ b/sdk/python/pulumi_onelogin/config/vars.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs diff --git a/sdk/python/pulumi_onelogin/get_apps.py b/sdk/python/pulumi_onelogin/get_apps.py index 2b78668..fb8a13d 100644 --- a/sdk/python/pulumi_onelogin/get_apps.py +++ b/sdk/python/pulumi_onelogin/get_apps.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -320,9 +325,6 @@ def get_apps(allow_assumed_signin: Optional[bool] = None, tab_id=pulumi.get(__ret__, 'tab_id'), updated_at=pulumi.get(__ret__, 'updated_at'), visible=pulumi.get(__ret__, 'visible')) - - -@_utilities.lift_output_func(get_apps) def get_apps_output(allow_assumed_signin: Optional[pulumi.Input[Optional[bool]]] = None, auth_method: Optional[pulumi.Input[Optional[int]]] = None, auth_method_description: Optional[pulumi.Input[Optional[str]]] = None, @@ -349,4 +351,52 @@ def get_apps_output(allow_assumed_signin: Optional[pulumi.Input[Optional[bool]]] """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['allowAssumedSignin'] = allow_assumed_signin + __args__['authMethod'] = auth_method + __args__['authMethodDescription'] = auth_method_description + __args__['brandId'] = brand_id + __args__['configuration'] = configuration + __args__['connectorId'] = connector_id + __args__['createdAt'] = created_at + __args__['description'] = description + __args__['enforcementPoint'] = enforcement_point + __args__['filters'] = filters + __args__['iconUrl'] = icon_url + __args__['loginConfig'] = login_config + __args__['name'] = name + __args__['notes'] = notes + __args__['parameters'] = parameters + __args__['policyId'] = policy_id + __args__['provisioning'] = provisioning + __args__['roleIds'] = role_ids + __args__['sso'] = sso + __args__['tabId'] = tab_id + __args__['updatedAt'] = updated_at + __args__['visible'] = visible + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getApps:getApps', __args__, opts=opts, typ=GetAppsResult) + return __ret__.apply(lambda __response__: GetAppsResult( + allow_assumed_signin=pulumi.get(__response__, 'allow_assumed_signin'), + auth_method=pulumi.get(__response__, 'auth_method'), + auth_method_description=pulumi.get(__response__, 'auth_method_description'), + brand_id=pulumi.get(__response__, 'brand_id'), + configuration=pulumi.get(__response__, 'configuration'), + connector_id=pulumi.get(__response__, 'connector_id'), + created_at=pulumi.get(__response__, 'created_at'), + description=pulumi.get(__response__, 'description'), + enforcement_point=pulumi.get(__response__, 'enforcement_point'), + filters=pulumi.get(__response__, 'filters'), + icon_url=pulumi.get(__response__, 'icon_url'), + id=pulumi.get(__response__, 'id'), + login_config=pulumi.get(__response__, 'login_config'), + name=pulumi.get(__response__, 'name'), + notes=pulumi.get(__response__, 'notes'), + parameters=pulumi.get(__response__, 'parameters'), + policy_id=pulumi.get(__response__, 'policy_id'), + provisioning=pulumi.get(__response__, 'provisioning'), + role_ids=pulumi.get(__response__, 'role_ids'), + sso=pulumi.get(__response__, 'sso'), + tab_id=pulumi.get(__response__, 'tab_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + visible=pulumi.get(__response__, 'visible'))) diff --git a/sdk/python/pulumi_onelogin/get_auth_servers.py b/sdk/python/pulumi_onelogin/get_auth_servers.py index b22d4cf..8e3691e 100644 --- a/sdk/python/pulumi_onelogin/get_auth_servers.py +++ b/sdk/python/pulumi_onelogin/get_auth_servers.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_auth_servers(configuration: Optional[Union['GetAuthServersConfigurationA filters=pulumi.get(__ret__, 'filters'), id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name')) - - -@_utilities.lift_output_func(get_auth_servers) def get_auth_servers_output(configuration: Optional[pulumi.Input[Optional[Union['GetAuthServersConfigurationArgs', 'GetAuthServersConfigurationArgsDict']]]] = None, description: Optional[pulumi.Input[Optional[str]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAuthServersFilterArgs', 'GetAuthServersFilterArgsDict']]]]] = None, @@ -115,4 +117,16 @@ def get_auth_servers_output(configuration: Optional[pulumi.Input[Optional[Union[ """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['configuration'] = configuration + __args__['description'] = description + __args__['filters'] = filters + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getAuthServers:getAuthServers', __args__, opts=opts, typ=GetAuthServersResult) + return __ret__.apply(lambda __response__: GetAuthServersResult( + configuration=pulumi.get(__response__, 'configuration'), + description=pulumi.get(__response__, 'description'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'))) diff --git a/sdk/python/pulumi_onelogin/get_auth_servers_claims.py b/sdk/python/pulumi_onelogin/get_auth_servers_claims.py index 2bb70c5..853acc1 100644 --- a/sdk/python/pulumi_onelogin/get_auth_servers_claims.py +++ b/sdk/python/pulumi_onelogin/get_auth_servers_claims.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -176,9 +181,6 @@ def get_auth_servers_claims(attribute_transformations: Optional[str] = None, user_attribute_macros=pulumi.get(__ret__, 'user_attribute_macros'), user_attribute_mappings=pulumi.get(__ret__, 'user_attribute_mappings'), values=pulumi.get(__ret__, 'values')) - - -@_utilities.lift_output_func(get_auth_servers_claims) def get_auth_servers_claims_output(attribute_transformations: Optional[pulumi.Input[Optional[str]]] = None, auth_servers_id: Optional[pulumi.Input[str]] = None, default_values: Optional[pulumi.Input[Optional[str]]] = None, @@ -193,4 +195,28 @@ def get_auth_servers_claims_output(attribute_transformations: Optional[pulumi.In """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['attributeTransformations'] = attribute_transformations + __args__['authServersId'] = auth_servers_id + __args__['defaultValues'] = default_values + __args__['filters'] = filters + __args__['label'] = label + __args__['provisionedEntitlements'] = provisioned_entitlements + __args__['skipIfBlank'] = skip_if_blank + __args__['userAttributeMacros'] = user_attribute_macros + __args__['userAttributeMappings'] = user_attribute_mappings + __args__['values'] = values + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getAuthServersClaims:getAuthServersClaims', __args__, opts=opts, typ=GetAuthServersClaimsResult) + return __ret__.apply(lambda __response__: GetAuthServersClaimsResult( + attribute_transformations=pulumi.get(__response__, 'attribute_transformations'), + auth_servers_id=pulumi.get(__response__, 'auth_servers_id'), + default_values=pulumi.get(__response__, 'default_values'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + label=pulumi.get(__response__, 'label'), + provisioned_entitlements=pulumi.get(__response__, 'provisioned_entitlements'), + skip_if_blank=pulumi.get(__response__, 'skip_if_blank'), + user_attribute_macros=pulumi.get(__response__, 'user_attribute_macros'), + user_attribute_mappings=pulumi.get(__response__, 'user_attribute_mappings'), + values=pulumi.get(__response__, 'values'))) diff --git a/sdk/python/pulumi_onelogin/get_auth_servers_instance.py b/sdk/python/pulumi_onelogin/get_auth_servers_instance.py index 651cbca..4fac9a2 100644 --- a/sdk/python/pulumi_onelogin/get_auth_servers_instance.py +++ b/sdk/python/pulumi_onelogin/get_auth_servers_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -91,9 +96,6 @@ def get_auth_servers_instance(configuration: Optional[Union['GetAuthServersInsta description=pulumi.get(__ret__, 'description'), id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name')) - - -@_utilities.lift_output_func(get_auth_servers_instance) def get_auth_servers_instance_output(configuration: Optional[pulumi.Input[Optional[Union['GetAuthServersInstanceConfigurationArgs', 'GetAuthServersInstanceConfigurationArgsDict']]]] = None, description: Optional[pulumi.Input[Optional[str]]] = None, id: Optional[pulumi.Input[str]] = None, @@ -102,4 +104,15 @@ def get_auth_servers_instance_output(configuration: Optional[pulumi.Input[Option """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['configuration'] = configuration + __args__['description'] = description + __args__['id'] = id + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getAuthServersInstance:getAuthServersInstance', __args__, opts=opts, typ=GetAuthServersInstanceResult) + return __ret__.apply(lambda __response__: GetAuthServersInstanceResult( + configuration=pulumi.get(__response__, 'configuration'), + description=pulumi.get(__response__, 'description'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'))) diff --git a/sdk/python/pulumi_onelogin/get_auth_servers_scopes.py b/sdk/python/pulumi_onelogin/get_auth_servers_scopes.py index 53edf81..8252cb6 100644 --- a/sdk/python/pulumi_onelogin/get_auth_servers_scopes.py +++ b/sdk/python/pulumi_onelogin/get_auth_servers_scopes.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_auth_servers_scopes(auth_servers_id: Optional[str] = None, filters=pulumi.get(__ret__, 'filters'), id=pulumi.get(__ret__, 'id'), value=pulumi.get(__ret__, 'value')) - - -@_utilities.lift_output_func(get_auth_servers_scopes) def get_auth_servers_scopes_output(auth_servers_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[Optional[str]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAuthServersScopesFilterArgs', 'GetAuthServersScopesFilterArgsDict']]]]] = None, @@ -115,4 +117,16 @@ def get_auth_servers_scopes_output(auth_servers_id: Optional[pulumi.Input[str]] """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['authServersId'] = auth_servers_id + __args__['description'] = description + __args__['filters'] = filters + __args__['value'] = value + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getAuthServersScopes:getAuthServersScopes', __args__, opts=opts, typ=GetAuthServersScopesResult) + return __ret__.apply(lambda __response__: GetAuthServersScopesResult( + auth_servers_id=pulumi.get(__response__, 'auth_servers_id'), + description=pulumi.get(__response__, 'description'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + value=pulumi.get(__response__, 'value'))) diff --git a/sdk/python/pulumi_onelogin/get_mappings.py b/sdk/python/pulumi_onelogin/get_mappings.py index 5761a9a..e869fcc 100644 --- a/sdk/python/pulumi_onelogin/get_mappings.py +++ b/sdk/python/pulumi_onelogin/get_mappings.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -140,9 +145,6 @@ def get_mappings(actions: Optional[Sequence[Union['GetMappingsActionArgs', 'GetM match=pulumi.get(__ret__, 'match'), name=pulumi.get(__ret__, 'name'), position=pulumi.get(__ret__, 'position')) - - -@_utilities.lift_output_func(get_mappings) def get_mappings_output(actions: Optional[pulumi.Input[Optional[Sequence[Union['GetMappingsActionArgs', 'GetMappingsActionArgsDict']]]]] = None, conditions: Optional[pulumi.Input[Optional[Sequence[Union['GetMappingsConditionArgs', 'GetMappingsConditionArgsDict']]]]] = None, enabled: Optional[pulumi.Input[Optional[bool]]] = None, @@ -154,4 +156,22 @@ def get_mappings_output(actions: Optional[pulumi.Input[Optional[Sequence[Union[' """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['actions'] = actions + __args__['conditions'] = conditions + __args__['enabled'] = enabled + __args__['filters'] = filters + __args__['match'] = match + __args__['name'] = name + __args__['position'] = position + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getMappings:getMappings', __args__, opts=opts, typ=GetMappingsResult) + return __ret__.apply(lambda __response__: GetMappingsResult( + actions=pulumi.get(__response__, 'actions'), + conditions=pulumi.get(__response__, 'conditions'), + enabled=pulumi.get(__response__, 'enabled'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + match=pulumi.get(__response__, 'match'), + name=pulumi.get(__response__, 'name'), + position=pulumi.get(__response__, 'position'))) diff --git a/sdk/python/pulumi_onelogin/get_privileges.py b/sdk/python/pulumi_onelogin/get_privileges.py index beacf2f..3e9f460 100644 --- a/sdk/python/pulumi_onelogin/get_privileges.py +++ b/sdk/python/pulumi_onelogin/get_privileges.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_privileges(description: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), privilege=pulumi.get(__ret__, 'privilege')) - - -@_utilities.lift_output_func(get_privileges) def get_privileges_output(description: Optional[pulumi.Input[Optional[str]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetPrivilegesFilterArgs', 'GetPrivilegesFilterArgsDict']]]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -115,4 +117,16 @@ def get_privileges_output(description: Optional[pulumi.Input[Optional[str]]] = N """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['description'] = description + __args__['filters'] = filters + __args__['name'] = name + __args__['privilege'] = privilege + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getPrivileges:getPrivileges', __args__, opts=opts, typ=GetPrivilegesResult) + return __ret__.apply(lambda __response__: GetPrivilegesResult( + description=pulumi.get(__response__, 'description'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + privilege=pulumi.get(__response__, 'privilege'))) diff --git a/sdk/python/pulumi_onelogin/get_privileges_instance.py b/sdk/python/pulumi_onelogin/get_privileges_instance.py index 33db511..8762972 100644 --- a/sdk/python/pulumi_onelogin/get_privileges_instance.py +++ b/sdk/python/pulumi_onelogin/get_privileges_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -91,9 +96,6 @@ def get_privileges_instance(description: Optional[str] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), privilege=pulumi.get(__ret__, 'privilege')) - - -@_utilities.lift_output_func(get_privileges_instance) def get_privileges_instance_output(description: Optional[pulumi.Input[Optional[str]]] = None, id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -102,4 +104,15 @@ def get_privileges_instance_output(description: Optional[pulumi.Input[Optional[s """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['description'] = description + __args__['id'] = id + __args__['name'] = name + __args__['privilege'] = privilege + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getPrivilegesInstance:getPrivilegesInstance', __args__, opts=opts, typ=GetPrivilegesInstanceResult) + return __ret__.apply(lambda __response__: GetPrivilegesInstanceResult( + description=pulumi.get(__response__, 'description'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + privilege=pulumi.get(__response__, 'privilege'))) diff --git a/sdk/python/pulumi_onelogin/get_risk_rules.py b/sdk/python/pulumi_onelogin/get_risk_rules.py index 53eb245..8ff0614 100644 --- a/sdk/python/pulumi_onelogin/get_risk_rules.py +++ b/sdk/python/pulumi_onelogin/get_risk_rules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -140,9 +145,6 @@ def get_risk_rules(description: Optional[str] = None, source=pulumi.get(__ret__, 'source'), target=pulumi.get(__ret__, 'target'), type=pulumi.get(__ret__, 'type')) - - -@_utilities.lift_output_func(get_risk_rules) def get_risk_rules_output(description: Optional[pulumi.Input[Optional[str]]] = None, filter: Optional[pulumi.Input[Optional[Sequence[Union['GetRiskRulesFilterArgs', 'GetRiskRulesFilterArgsDict']]]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, @@ -154,4 +156,22 @@ def get_risk_rules_output(description: Optional[pulumi.Input[Optional[str]]] = N """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['description'] = description + __args__['filter'] = filter + __args__['filters'] = filters + __args__['name'] = name + __args__['source'] = source + __args__['target'] = target + __args__['type'] = type + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getRiskRules:getRiskRules', __args__, opts=opts, typ=GetRiskRulesResult) + return __ret__.apply(lambda __response__: GetRiskRulesResult( + description=pulumi.get(__response__, 'description'), + filter=pulumi.get(__response__, 'filter'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + source=pulumi.get(__response__, 'source'), + target=pulumi.get(__response__, 'target'), + type=pulumi.get(__response__, 'type'))) diff --git a/sdk/python/pulumi_onelogin/get_risk_rules_instance.py b/sdk/python/pulumi_onelogin/get_risk_rules_instance.py index b72e93e..1f2b77b 100644 --- a/sdk/python/pulumi_onelogin/get_risk_rules_instance.py +++ b/sdk/python/pulumi_onelogin/get_risk_rules_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * @@ -127,9 +132,6 @@ def get_risk_rules_instance(description: Optional[str] = None, source=pulumi.get(__ret__, 'source'), target=pulumi.get(__ret__, 'target'), type=pulumi.get(__ret__, 'type')) - - -@_utilities.lift_output_func(get_risk_rules_instance) def get_risk_rules_instance_output(description: Optional[pulumi.Input[Optional[str]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, id: Optional[pulumi.Input[str]] = None, @@ -141,4 +143,21 @@ def get_risk_rules_instance_output(description: Optional[pulumi.Input[Optional[s """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['description'] = description + __args__['filters'] = filters + __args__['id'] = id + __args__['name'] = name + __args__['source'] = source + __args__['target'] = target + __args__['type'] = type + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:index/getRiskRulesInstance:getRiskRulesInstance', __args__, opts=opts, typ=GetRiskRulesInstanceResult) + return __ret__.apply(lambda __response__: GetRiskRulesInstanceResult( + description=pulumi.get(__response__, 'description'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + source=pulumi.get(__response__, 'source'), + target=pulumi.get(__response__, 'target'), + type=pulumi.get(__response__, 'type'))) diff --git a/sdk/python/pulumi_onelogin/outputs.py b/sdk/python/pulumi_onelogin/outputs.py index c154074..e7a1e95 100644 --- a/sdk/python/pulumi_onelogin/outputs.py +++ b/sdk/python/pulumi_onelogin/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_onelogin/privileges.py b/sdk/python/pulumi_onelogin/privileges.py index 0e75f06..1cff625 100644 --- a/sdk/python/pulumi_onelogin/privileges.py +++ b/sdk/python/pulumi_onelogin/privileges.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/provider.py b/sdk/python/pulumi_onelogin/provider.py index fd186db..33f6e48 100644 --- a/sdk/python/pulumi_onelogin/provider.py +++ b/sdk/python/pulumi_onelogin/provider.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/risk_rules.py b/sdk/python/pulumi_onelogin/risk_rules.py index 8513e76..382a4c1 100644 --- a/sdk/python/pulumi_onelogin/risk_rules.py +++ b/sdk/python/pulumi_onelogin/risk_rules.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_onelogin/role.py b/sdk/python/pulumi_onelogin/role.py index b1b3c1a..51416dc 100644 --- a/sdk/python/pulumi_onelogin/role.py +++ b/sdk/python/pulumi_onelogin/role.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['RoleArgs', 'Role'] diff --git a/sdk/python/pulumi_onelogin/roles/_inputs.py b/sdk/python/pulumi_onelogin/roles/_inputs.py index 4de020e..0b40202 100644 --- a/sdk/python/pulumi_onelogin/roles/_inputs.py +++ b/sdk/python/pulumi_onelogin/roles/_inputs.py @@ -4,18 +4,36 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ 'GetAdminsFilterArgs', + 'GetAdminsFilterArgsDict', 'GetAppsFilterArgs', + 'GetAppsFilterArgsDict', 'GetRolesFilterArgs', + 'GetRolesFilterArgsDict', 'GetUsersFilterArgs', + 'GetUsersFilterArgsDict', ] +MYPY = False + +if not MYPY: + class GetAdminsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAdminsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAdminsFilterArgs: def __init__(__self__, *, @@ -43,6 +61,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetAppsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAppsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsFilterArgs: def __init__(__self__, *, @@ -70,6 +95,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetRolesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetRolesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetRolesFilterArgs: def __init__(__self__, *, @@ -97,6 +129,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetUsersFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetUsersFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetUsersFilterArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_onelogin/roles/get_admins.py b/sdk/python/pulumi_onelogin/roles/get_admins.py index 723feeb..117d887 100644 --- a/sdk/python/pulumi_onelogin/roles/get_admins.py +++ b/sdk/python/pulumi_onelogin/roles/get_admins.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -500,9 +505,6 @@ def get_admins(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_admins) def get_admins_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -544,4 +546,82 @@ def get_admins_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['filters'] = filters + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['rolesId'] = roles_id + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:roles/getAdmins:getAdmins', __args__, opts=opts, typ=GetAdminsResult) + return __ret__.apply(lambda __response__: GetAdminsResult( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + filters=pulumi.get(__response__, 'filters'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + roles_id=pulumi.get(__response__, 'roles_id'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/roles/get_apps.py b/sdk/python/pulumi_onelogin/roles/get_apps.py index 8d04dcf..2f44919 100644 --- a/sdk/python/pulumi_onelogin/roles/get_apps.py +++ b/sdk/python/pulumi_onelogin/roles/get_apps.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -104,9 +109,6 @@ def get_apps(filters: Optional[Sequence[Union['GetAppsFilterArgs', 'GetAppsFilte id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), roles_id=pulumi.get(__ret__, 'roles_id')) - - -@_utilities.lift_output_func(get_apps) def get_apps_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAppsFilterArgs', 'GetAppsFilterArgsDict']]]]] = None, icon_url: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, @@ -115,4 +117,16 @@ def get_apps_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetA """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['filters'] = filters + __args__['iconUrl'] = icon_url + __args__['name'] = name + __args__['rolesId'] = roles_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:roles/getApps:getApps', __args__, opts=opts, typ=GetAppsResult) + return __ret__.apply(lambda __response__: GetAppsResult( + filters=pulumi.get(__response__, 'filters'), + icon_url=pulumi.get(__response__, 'icon_url'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + roles_id=pulumi.get(__response__, 'roles_id'))) diff --git a/sdk/python/pulumi_onelogin/roles/get_instance.py b/sdk/python/pulumi_onelogin/roles/get_instance.py index 97711b9..91ebda9 100644 --- a/sdk/python/pulumi_onelogin/roles/get_instance.py +++ b/sdk/python/pulumi_onelogin/roles/get_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ @@ -101,9 +106,6 @@ def get_instance(admins: Optional[Sequence[int]] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), users=pulumi.get(__ret__, 'users')) - - -@_utilities.lift_output_func(get_instance) def get_instance_output(admins: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, apps: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, id: Optional[pulumi.Input[str]] = None, @@ -113,4 +115,17 @@ def get_instance_output(admins: Optional[pulumi.Input[Optional[Sequence[int]]]] """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['admins'] = admins + __args__['apps'] = apps + __args__['id'] = id + __args__['name'] = name + __args__['users'] = users + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:roles/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult) + return __ret__.apply(lambda __response__: GetInstanceResult( + admins=pulumi.get(__response__, 'admins'), + apps=pulumi.get(__response__, 'apps'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + users=pulumi.get(__response__, 'users'))) diff --git a/sdk/python/pulumi_onelogin/roles/get_roles.py b/sdk/python/pulumi_onelogin/roles/get_roles.py index 5127971..a56d9bf 100644 --- a/sdk/python/pulumi_onelogin/roles/get_roles.py +++ b/sdk/python/pulumi_onelogin/roles/get_roles.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -116,9 +121,6 @@ def get_roles(admins: Optional[Sequence[int]] = None, id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), users=pulumi.get(__ret__, 'users')) - - -@_utilities.lift_output_func(get_roles) def get_roles_output(admins: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, apps: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetRolesFilterArgs', 'GetRolesFilterArgsDict']]]]] = None, @@ -128,4 +130,18 @@ def get_roles_output(admins: Optional[pulumi.Input[Optional[Sequence[int]]]] = N """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['admins'] = admins + __args__['apps'] = apps + __args__['filters'] = filters + __args__['name'] = name + __args__['users'] = users + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:roles/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult) + return __ret__.apply(lambda __response__: GetRolesResult( + admins=pulumi.get(__response__, 'admins'), + apps=pulumi.get(__response__, 'apps'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + users=pulumi.get(__response__, 'users'))) diff --git a/sdk/python/pulumi_onelogin/roles/get_users.py b/sdk/python/pulumi_onelogin/roles/get_users.py index 956ed1d..be6f1c4 100644 --- a/sdk/python/pulumi_onelogin/roles/get_users.py +++ b/sdk/python/pulumi_onelogin/roles/get_users.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -500,9 +505,6 @@ def get_users(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_users) def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -544,4 +546,82 @@ def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['filters'] = filters + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['rolesId'] = roles_id + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:roles/getUsers:getUsers', __args__, opts=opts, typ=GetUsersResult) + return __ret__.apply(lambda __response__: GetUsersResult( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + filters=pulumi.get(__response__, 'filters'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + roles_id=pulumi.get(__response__, 'roles_id'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/roles/outputs.py b/sdk/python/pulumi_onelogin/roles/outputs.py index 12da51a..8b0cde4 100644 --- a/sdk/python/pulumi_onelogin/roles/outputs.py +++ b/sdk/python/pulumi_onelogin/roles/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ diff --git a/sdk/python/pulumi_onelogin/user.py b/sdk/python/pulumi_onelogin/user.py index 58b353c..ac790f7 100644 --- a/sdk/python/pulumi_onelogin/user.py +++ b/sdk/python/pulumi_onelogin/user.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['UserArgs', 'User'] diff --git a/sdk/python/pulumi_onelogin/users/_inputs.py b/sdk/python/pulumi_onelogin/users/_inputs.py index c001786..ed8a2b6 100644 --- a/sdk/python/pulumi_onelogin/users/_inputs.py +++ b/sdk/python/pulumi_onelogin/users/_inputs.py @@ -4,19 +4,38 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ 'GetAppsFilterArgs', + 'GetAppsFilterArgsDict', 'GetDevicesFilterArgs', + 'GetDevicesFilterArgsDict', 'GetUsersFilterArgs', + 'GetUsersFilterArgsDict', 'GetV1AppsFilterArgs', + 'GetV1AppsFilterArgsDict', 'GetV1FilterArgs', + 'GetV1FilterArgsDict', ] +MYPY = False + +if not MYPY: + class GetAppsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetAppsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetAppsFilterArgs: def __init__(__self__, *, @@ -44,6 +63,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetDevicesFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetDevicesFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetDevicesFilterArgs: def __init__(__self__, *, @@ -71,6 +97,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetUsersFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetUsersFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetUsersFilterArgs: def __init__(__self__, *, @@ -98,6 +131,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetV1AppsFilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetV1AppsFilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetV1AppsFilterArgs: def __init__(__self__, *, @@ -125,6 +165,13 @@ def values(self, value: Sequence[str]): pulumi.set(self, "values", value) +if not MYPY: + class GetV1FilterArgsDict(TypedDict): + name: str + values: Sequence[str] +elif False: + GetV1FilterArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class GetV1FilterArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_onelogin/users/get_apps.py b/sdk/python/pulumi_onelogin/users/get_apps.py index 5bd728d..a806f9e 100644 --- a/sdk/python/pulumi_onelogin/users/get_apps.py +++ b/sdk/python/pulumi_onelogin/users/get_apps.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -164,9 +169,6 @@ def get_apps(extension: Optional[bool] = None, provisioning_state=pulumi.get(__ret__, 'provisioning_state'), provisioning_status=pulumi.get(__ret__, 'provisioning_status'), users_id=pulumi.get(__ret__, 'users_id')) - - -@_utilities.lift_output_func(get_apps) def get_apps_output(extension: Optional[pulumi.Input[Optional[bool]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAppsFilterArgs', 'GetAppsFilterArgsDict']]]]] = None, icon_url: Optional[pulumi.Input[Optional[str]]] = None, @@ -180,4 +182,26 @@ def get_apps_output(extension: Optional[pulumi.Input[Optional[bool]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['extension'] = extension + __args__['filters'] = filters + __args__['iconUrl'] = icon_url + __args__['loginId'] = login_id + __args__['name'] = name + __args__['provisioningEnabled'] = provisioning_enabled + __args__['provisioningState'] = provisioning_state + __args__['provisioningStatus'] = provisioning_status + __args__['usersId'] = users_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getApps:getApps', __args__, opts=opts, typ=GetAppsResult) + return __ret__.apply(lambda __response__: GetAppsResult( + extension=pulumi.get(__response__, 'extension'), + filters=pulumi.get(__response__, 'filters'), + icon_url=pulumi.get(__response__, 'icon_url'), + id=pulumi.get(__response__, 'id'), + login_id=pulumi.get(__response__, 'login_id'), + name=pulumi.get(__response__, 'name'), + provisioning_enabled=pulumi.get(__response__, 'provisioning_enabled'), + provisioning_state=pulumi.get(__response__, 'provisioning_state'), + provisioning_status=pulumi.get(__response__, 'provisioning_status'), + users_id=pulumi.get(__response__, 'users_id'))) diff --git a/sdk/python/pulumi_onelogin/users/get_devices.py b/sdk/python/pulumi_onelogin/users/get_devices.py index f8b98ec..a182a1c 100644 --- a/sdk/python/pulumi_onelogin/users/get_devices.py +++ b/sdk/python/pulumi_onelogin/users/get_devices.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -140,9 +145,6 @@ def get_devices(auth_factor_name: Optional[str] = None, type_display_name=pulumi.get(__ret__, 'type_display_name'), user_display_name=pulumi.get(__ret__, 'user_display_name'), users_id=pulumi.get(__ret__, 'users_id')) - - -@_utilities.lift_output_func(get_devices) def get_devices_output(auth_factor_name: Optional[pulumi.Input[Optional[str]]] = None, default: Optional[pulumi.Input[Optional[bool]]] = None, device_id: Optional[pulumi.Input[Optional[str]]] = None, @@ -154,4 +156,22 @@ def get_devices_output(auth_factor_name: Optional[pulumi.Input[Optional[str]]] = """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['authFactorName'] = auth_factor_name + __args__['default'] = default + __args__['deviceId'] = device_id + __args__['filters'] = filters + __args__['typeDisplayName'] = type_display_name + __args__['userDisplayName'] = user_display_name + __args__['usersId'] = users_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getDevices:getDevices', __args__, opts=opts, typ=GetDevicesResult) + return __ret__.apply(lambda __response__: GetDevicesResult( + auth_factor_name=pulumi.get(__response__, 'auth_factor_name'), + default=pulumi.get(__response__, 'default'), + device_id=pulumi.get(__response__, 'device_id'), + filters=pulumi.get(__response__, 'filters'), + id=pulumi.get(__response__, 'id'), + type_display_name=pulumi.get(__response__, 'type_display_name'), + user_display_name=pulumi.get(__response__, 'user_display_name'), + users_id=pulumi.get(__response__, 'users_id'))) diff --git a/sdk/python/pulumi_onelogin/users/get_instance.py b/sdk/python/pulumi_onelogin/users/get_instance.py index 62a6ed3..531425e 100644 --- a/sdk/python/pulumi_onelogin/users/get_instance.py +++ b/sdk/python/pulumi_onelogin/users/get_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ @@ -473,9 +478,6 @@ def get_instance(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_instance) def get_instance_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -516,4 +518,79 @@ def get_instance_output(activated_at: Optional[pulumi.Input[Optional[str]]] = No """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['id'] = id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult) + return __ret__.apply(lambda __response__: GetInstanceResult( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/users/get_users.py b/sdk/python/pulumi_onelogin/users/get_users.py index 0786bbf..69b8575 100644 --- a/sdk/python/pulumi_onelogin/users/get_users.py +++ b/sdk/python/pulumi_onelogin/users/get_users.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -488,9 +493,6 @@ def get_users(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_users) def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -531,4 +533,80 @@ def get_users_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['filters'] = filters + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getUsers:getUsers', __args__, opts=opts, typ=GetUsersResult) + return __ret__.apply(lambda __response__: GetUsersResult( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + filters=pulumi.get(__response__, 'filters'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/users/get_v1.py b/sdk/python/pulumi_onelogin/users/get_v1.py index c8666b8..d386379 100644 --- a/sdk/python/pulumi_onelogin/users/get_v1.py +++ b/sdk/python/pulumi_onelogin/users/get_v1.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -488,9 +493,6 @@ def get_v1(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_v1) def get_v1_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -531,4 +533,80 @@ def get_v1_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['filters'] = filters + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getV1:getV1', __args__, opts=opts, typ=GetV1Result) + return __ret__.apply(lambda __response__: GetV1Result( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + filters=pulumi.get(__response__, 'filters'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/users/get_v1_apps.py b/sdk/python/pulumi_onelogin/users/get_v1_apps.py index 69f4b39..1302a8b 100644 --- a/sdk/python/pulumi_onelogin/users/get_v1_apps.py +++ b/sdk/python/pulumi_onelogin/users/get_v1_apps.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities from . import outputs from ._inputs import * @@ -164,9 +169,6 @@ def get_v1_apps(extension: Optional[bool] = None, provisioning_state=pulumi.get(__ret__, 'provisioning_state'), provisioning_status=pulumi.get(__ret__, 'provisioning_status'), users_v1_id=pulumi.get(__ret__, 'users_v1_id')) - - -@_utilities.lift_output_func(get_v1_apps) def get_v1_apps_output(extension: Optional[pulumi.Input[Optional[bool]]] = None, filters: Optional[pulumi.Input[Optional[Sequence[Union['GetV1AppsFilterArgs', 'GetV1AppsFilterArgsDict']]]]] = None, icon_url: Optional[pulumi.Input[Optional[str]]] = None, @@ -180,4 +182,26 @@ def get_v1_apps_output(extension: Optional[pulumi.Input[Optional[bool]]] = None, """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['extension'] = extension + __args__['filters'] = filters + __args__['iconUrl'] = icon_url + __args__['loginId'] = login_id + __args__['name'] = name + __args__['provisioningEnabled'] = provisioning_enabled + __args__['provisioningState'] = provisioning_state + __args__['provisioningStatus'] = provisioning_status + __args__['usersV1Id'] = users_v1_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getV1Apps:getV1Apps', __args__, opts=opts, typ=GetV1AppsResult) + return __ret__.apply(lambda __response__: GetV1AppsResult( + extension=pulumi.get(__response__, 'extension'), + filters=pulumi.get(__response__, 'filters'), + icon_url=pulumi.get(__response__, 'icon_url'), + id=pulumi.get(__response__, 'id'), + login_id=pulumi.get(__response__, 'login_id'), + name=pulumi.get(__response__, 'name'), + provisioning_enabled=pulumi.get(__response__, 'provisioning_enabled'), + provisioning_state=pulumi.get(__response__, 'provisioning_state'), + provisioning_status=pulumi.get(__response__, 'provisioning_status'), + users_v1_id=pulumi.get(__response__, 'users_v1_id'))) diff --git a/sdk/python/pulumi_onelogin/users/get_v1_instance.py b/sdk/python/pulumi_onelogin/users/get_v1_instance.py index 977eb68..8f0af49 100644 --- a/sdk/python/pulumi_onelogin/users/get_v1_instance.py +++ b/sdk/python/pulumi_onelogin/users/get_v1_instance.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ @@ -473,9 +478,6 @@ def get_v1_instance(activated_at: Optional[str] = None, updated_at=pulumi.get(__ret__, 'updated_at'), username=pulumi.get(__ret__, 'username'), userprincipalname=pulumi.get(__ret__, 'userprincipalname')) - - -@_utilities.lift_output_func(get_v1_instance) def get_v1_instance_output(activated_at: Optional[pulumi.Input[Optional[str]]] = None, comment: Optional[pulumi.Input[Optional[str]]] = None, company: Optional[pulumi.Input[Optional[str]]] = None, @@ -516,4 +518,79 @@ def get_v1_instance_output(activated_at: Optional[pulumi.Input[Optional[str]]] = """ Use this data source to access information about an existing resource. """ - ... + __args__ = dict() + __args__['activatedAt'] = activated_at + __args__['comment'] = comment + __args__['company'] = company + __args__['createdAt'] = created_at + __args__['department'] = department + __args__['directoryId'] = directory_id + __args__['distinguishedName'] = distinguished_name + __args__['email'] = email + __args__['externalId'] = external_id + __args__['firstname'] = firstname + __args__['groupId'] = group_id + __args__['id'] = id + __args__['invalidLoginAttempts'] = invalid_login_attempts + __args__['invitationSentAt'] = invitation_sent_at + __args__['lastLogin'] = last_login + __args__['lastname'] = lastname + __args__['lockedUntil'] = locked_until + __args__['managerAdId'] = manager_ad_id + __args__['managerUserId'] = manager_user_id + __args__['memberOf'] = member_of + __args__['password'] = password + __args__['passwordAlgorithm'] = password_algorithm + __args__['passwordChangedAt'] = password_changed_at + __args__['passwordConfirmation'] = password_confirmation + __args__['phone'] = phone + __args__['preferredLocaleCode'] = preferred_locale_code + __args__['roleIds'] = role_ids + __args__['salt'] = salt + __args__['samaccountname'] = samaccountname + __args__['state'] = state + __args__['status'] = status + __args__['title'] = title + __args__['trustedIdpId'] = trusted_idp_id + __args__['updatedAt'] = updated_at + __args__['username'] = username + __args__['userprincipalname'] = userprincipalname + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('onelogin:users/getV1Instance:getV1Instance', __args__, opts=opts, typ=GetV1InstanceResult) + return __ret__.apply(lambda __response__: GetV1InstanceResult( + activated_at=pulumi.get(__response__, 'activated_at'), + comment=pulumi.get(__response__, 'comment'), + company=pulumi.get(__response__, 'company'), + created_at=pulumi.get(__response__, 'created_at'), + department=pulumi.get(__response__, 'department'), + directory_id=pulumi.get(__response__, 'directory_id'), + distinguished_name=pulumi.get(__response__, 'distinguished_name'), + email=pulumi.get(__response__, 'email'), + external_id=pulumi.get(__response__, 'external_id'), + firstname=pulumi.get(__response__, 'firstname'), + group_id=pulumi.get(__response__, 'group_id'), + id=pulumi.get(__response__, 'id'), + invalid_login_attempts=pulumi.get(__response__, 'invalid_login_attempts'), + invitation_sent_at=pulumi.get(__response__, 'invitation_sent_at'), + last_login=pulumi.get(__response__, 'last_login'), + lastname=pulumi.get(__response__, 'lastname'), + locked_until=pulumi.get(__response__, 'locked_until'), + manager_ad_id=pulumi.get(__response__, 'manager_ad_id'), + manager_user_id=pulumi.get(__response__, 'manager_user_id'), + member_of=pulumi.get(__response__, 'member_of'), + password=pulumi.get(__response__, 'password'), + password_algorithm=pulumi.get(__response__, 'password_algorithm'), + password_changed_at=pulumi.get(__response__, 'password_changed_at'), + password_confirmation=pulumi.get(__response__, 'password_confirmation'), + phone=pulumi.get(__response__, 'phone'), + preferred_locale_code=pulumi.get(__response__, 'preferred_locale_code'), + role_ids=pulumi.get(__response__, 'role_ids'), + salt=pulumi.get(__response__, 'salt'), + samaccountname=pulumi.get(__response__, 'samaccountname'), + state=pulumi.get(__response__, 'state'), + status=pulumi.get(__response__, 'status'), + title=pulumi.get(__response__, 'title'), + trusted_idp_id=pulumi.get(__response__, 'trusted_idp_id'), + updated_at=pulumi.get(__response__, 'updated_at'), + username=pulumi.get(__response__, 'username'), + userprincipalname=pulumi.get(__response__, 'userprincipalname'))) diff --git a/sdk/python/pulumi_onelogin/users/outputs.py b/sdk/python/pulumi_onelogin/users/outputs.py index e2284d3..ef47f9d 100644 --- a/sdk/python/pulumi_onelogin/users/outputs.py +++ b/sdk/python/pulumi_onelogin/users/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = [ diff --git a/sdk/python/pulumi_onelogin/users/v1.py b/sdk/python/pulumi_onelogin/users/v1.py index 4033e18..3f6fd3f 100644 --- a/sdk/python/pulumi_onelogin/users/v1.py +++ b/sdk/python/pulumi_onelogin/users/v1.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['V1Args', 'V1'] diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 82622f3..9178721 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "pulumi_onelogin" description = "A Pulumi package for creating and managing OneLogin cloud resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"] + dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "onelogin"] readme = "README.md" requires-python = ">=3.8"