diff --git a/src/falconpy/_payload/_d4c_registration.py b/src/falconpy/_payload/_d4c_registration.py index 075becba1..c1e5df082 100644 --- a/src/falconpy/_payload/_d4c_registration.py +++ b/src/falconpy/_payload/_d4c_registration.py @@ -87,14 +87,14 @@ def azure_registration_payload(passed_keywords: dict) -> dict: returned_payload = {} returned_payload["resources"] = [] keys = ["account_type", "client_id", "subscription_id", "tenant_id"] - item = {} + item = {} for key in keys: if passed_keywords.get(key, None): item[key] = passed_keywords.get(key, None) - - if passed_keywords.get("default_subscription", None) is not None: + + if passed_keywords.get("default_subscription", None) is not None: item["default_subscription"] = passed_keywords.get("default_subscription", None) - + if passed_keywords.get("years_valid", -1) >= 0: item["years_valid"] = passed_keywords.get("years_valid", -1) @@ -102,6 +102,7 @@ def azure_registration_payload(passed_keywords: dict) -> dict: return returned_payload + def gcp_registration_payload(passed_keywords: dict) -> dict: """Create a properly formatted Azure registration payload. @@ -117,11 +118,11 @@ def gcp_registration_payload(passed_keywords: dict) -> dict: returned_payload = {} returned_payload["resources"] = [] keys = ["parent_id", "parent_type"] - item = {} + item = {} for key in keys: if passed_keywords.get(key, None): item[key] = passed_keywords.get(key, None) - + returned_payload["resources"].append(item) return returned_payload diff --git a/src/falconpy/cspm_registration.py b/src/falconpy/cspm_registration.py index 37fcca939..f680dafbc 100644 --- a/src/falconpy/cspm_registration.py +++ b/src/falconpy/cspm_registration.py @@ -341,7 +341,7 @@ def create_azure_account(self: object, body: dict = None, **kwargs) -> dict: default_subscription -- Indicate if this is the default subscription. Boolean. subscription_id -- Azure Subscription ID. String. tenant_id -- Azure Tenant ID. String. - years_valid -- Number of years this account is valid. Integer. + years_valid -- Number of years this account is valid. Integer. This method only supports keywords for providing arguments. diff --git a/src/falconpy/user_management.py b/src/falconpy/user_management.py index 7161212d8..19a9d9cc6 100644 --- a/src/falconpy/user_management.py +++ b/src/falconpy/user_management.py @@ -796,7 +796,7 @@ def create_user(self: object, body: dict = None, **kwargs) -> dict: After creating a user, assign one or more roles with `grant_user_role_ids`. DEPRECATED: Please use createUserV1 instead. - + HTTP Method: POST Swagger URL @@ -1007,7 +1007,7 @@ def retrieve_user_uuid(self: object, *args, parameters: dict = None, **kwargs) - """Get a user's ID by providing a username (usually an email address). DEPRECATED: Please use queryUserV1 instead. - + HTTP Method: GET Swagger URL