@@ -3870,46 +3870,6 @@ def retrieve_user_by_verification_id(self, verification_id):
38703870 .get () \
38713871 .go ()
38723872
3873- def retrieve_user_code (self , client_id , client_secret , user_code ):
3874- """
3875- Retrieve a user_code that is part of an in-progress Device Authorization Grant.
3876-
3877- This API is useful if you want to build your own login workflow to complete a device grant.
3878-
3879- Attributes:
3880- client_id: The client Id.
3881- client_secret: The client Id.
3882- user_code: The end-user verification code.
3883- """
3884- body = {
3885- "client_id" : client_id ,
3886- "client_secret" : client_secret ,
3887- "user_code" : user_code ,
3888- }
3889- return self .start_anonymous ().uri ('/oauth2/device/user-code' ) \
3890- .body_handler (FormDataBodyHandler (body )) \
3891- .get () \
3892- .go ()
3893-
3894- def retrieve_user_code_using_api_key (self , user_code ):
3895- """
3896- Retrieve a user_code that is part of an in-progress Device Authorization Grant.
3897-
3898- This API is useful if you want to build your own login workflow to complete a device grant.
3899-
3900- This request will require an API key.
3901-
3902- Attributes:
3903- user_code: The end-user verification code.
3904- """
3905- body = {
3906- "user_code" : user_code ,
3907- }
3908- return self .start_anonymous ().uri ('/oauth2/device/user-code' ) \
3909- .body_handler (FormDataBodyHandler (body )) \
3910- .get () \
3911- .go ()
3912-
39133873 def retrieve_user_code_using_api_key_with_request (self , request ):
39143874 """
39153875 Retrieve a user_code that is part of an in-progress Device Authorization Grant.
@@ -4345,6 +4305,24 @@ def search_consents(self, request):
43454305 .post () \
43464306 .go ()
43474307
4308+ def search_consents_by_parameters (self , name = None , number_of_results = None , order_by = None , start_row = None ):
4309+ """
4310+ Searches consents with the specified criteria and pagination.
4311+
4312+ Attributes:
4313+ name: (Optional) The name of the consent to search for. Supports wildcard search using *.
4314+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4315+ order_by: (Optional) The field to order the results by. Supported values: id, insertInstant, name.
4316+ start_row: (Optional) The offset into the total results. Defaults to 0.
4317+ """
4318+ return self .start ().uri ('/api/consent/search' ) \
4319+ .url_parameter ('name' , self .convert_true_false (name )) \
4320+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4321+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4322+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4323+ .get () \
4324+ .go ()
4325+
43484326 def search_email_templates (self , request ):
43494327 """
43504328 Searches email templates with the specified criteria and pagination.
@@ -4393,6 +4371,28 @@ def search_entity_grants(self, request):
43934371 .post () \
43944372 .go ()
43954373
4374+ def search_entity_grants_by_parameters (self , entity_id = None , name = None , user_id = None , number_of_results = None , order_by = None , start_row = None ):
4375+ """
4376+ Searches entity grants with the specified criteria and pagination.
4377+
4378+ Attributes:
4379+ entity_id: (Optional) The entity Id to search for grants on.
4380+ name: (Optional) The name of the entity grant to search for. Supports wildcard search using *.
4381+ user_id: (Optional) The user Id to search for grants on.
4382+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4383+ order_by: (Optional) The field to order the results by.
4384+ start_row: (Optional) The offset into the total results. Defaults to 0.
4385+ """
4386+ return self .start ().uri ('/api/entity/grant/search' ) \
4387+ .url_parameter ('entityId' , self .convert_true_false (entity_id )) \
4388+ .url_parameter ('name' , self .convert_true_false (name )) \
4389+ .url_parameter ('userId' , self .convert_true_false (user_id )) \
4390+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4391+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4392+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4393+ .get () \
4394+ .go ()
4395+
43964396 def search_entity_types (self , request ):
43974397 """
43984398 Searches the entity types with the specified criteria and pagination.
@@ -4405,6 +4405,24 @@ def search_entity_types(self, request):
44054405 .post () \
44064406 .go ()
44074407
4408+ def search_entity_types_by_parameters (self , name , number_of_results = None , order_by = None , start_row = None ):
4409+ """
4410+ Searches entity types with the specified criteria and pagination.
4411+
4412+ Attributes:
4413+ name: The name of the entity type to search for. Use * to return all entity types.
4414+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4415+ order_by: (Optional) The field to order the results by. Supported values: insertInstant, lastUpdateInstant, name.
4416+ start_row: (Optional) The offset into the total results. Defaults to 0.
4417+ """
4418+ return self .start ().uri ('/api/entity/type/search' ) \
4419+ .url_parameter ('name' , self .convert_true_false (name )) \
4420+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4421+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4422+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4423+ .get () \
4424+ .go ()
4425+
44084426 def search_event_logs (self , request ):
44094427 """
44104428 Searches the event logs with the specified criteria and pagination.
@@ -4453,6 +4471,24 @@ def search_ip_access_control_lists(self, request):
44534471 .post () \
44544472 .go ()
44554473
4474+ def search_ip_access_control_lists_by_parameters (self , name = None , number_of_results = None , order_by = None , start_row = None ):
4475+ """
4476+ Searches IP access control lists with the specified criteria and pagination.
4477+
4478+ Attributes:
4479+ name: (Optional) The name of the IP access control list to search for. Supports wildcard search using *.
4480+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4481+ order_by: (Optional) The field to order the results by. Supported values: id, insertInstant, lastUpdateInstant, name.
4482+ start_row: (Optional) The offset into the total results. Defaults to 0.
4483+ """
4484+ return self .start ().uri ('/api/ip-acl/search' ) \
4485+ .url_parameter ('name' , self .convert_true_false (name )) \
4486+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4487+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4488+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4489+ .get () \
4490+ .go ()
4491+
44564492 def search_identity_providers (self , request ):
44574493 """
44584494 Searches identity providers with the specified criteria and pagination.
@@ -4465,6 +4501,30 @@ def search_identity_providers(self, request):
44654501 .post () \
44664502 .go ()
44674503
4504+ def search_identity_providers_by_parameters (self , application_id = None , name = None , number_of_results = None , order_by = None , start_row = None , tenant_id = None , _type = None ):
4505+ """
4506+ Searches identity providers with the specified criteria and pagination.
4507+
4508+ Attributes:
4509+ application_id: (Optional) The application Id to search for identity providers.
4510+ name: (Optional) The name of the identity provider to search for. Supports wildcard search using *.
4511+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4512+ order_by: (Optional) The field to order the results by. Supported values: enabled, id, insertInstant, name, type.
4513+ start_row: (Optional) The offset into the total results. Defaults to 0.
4514+ tenant_id: (Optional) The tenant Id to restrict the results to.
4515+ _type: (Optional) The type of identity provider to search for.
4516+ """
4517+ return self .start ().uri ('/api/identity-provider/search' ) \
4518+ .url_parameter ('applicationId' , self .convert_true_false (application_id )) \
4519+ .url_parameter ('name' , self .convert_true_false (name )) \
4520+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4521+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4522+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4523+ .url_parameter ('tenantId' , self .convert_true_false (tenant_id )) \
4524+ .url_parameter ('type' , self .convert_true_false (_type )) \
4525+ .get () \
4526+ .go ()
4527+
44684528 def search_keys (self , request ):
44694529 """
44704530 Searches keys with the specified criteria and pagination.
@@ -4477,6 +4537,28 @@ def search_keys(self, request):
44774537 .post () \
44784538 .go ()
44794539
4540+ def search_keys_by_parameters (self , algorithm = None , name = None , number_of_results = None , order_by = None , start_row = None , _type = None ):
4541+ """
4542+ Searches keys with the specified criteria and pagination.
4543+
4544+ Attributes:
4545+ algorithm: (Optional) The algorithm of the key to search for.
4546+ name: (Optional) The name of the key to search for. Supports wildcard search using *.
4547+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4548+ order_by: (Optional) The field to order the results by. Supported values: algorithm, expiration, id, insertInstant, name, type.
4549+ start_row: (Optional) The offset into the total results. Defaults to 0.
4550+ _type: (Optional) The type of key to search for. Supported values: EC, HMAC, OKP, RSA.
4551+ """
4552+ return self .start ().uri ('/api/key/search' ) \
4553+ .url_parameter ('algorithm' , self .convert_true_false (algorithm )) \
4554+ .url_parameter ('name' , self .convert_true_false (name )) \
4555+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4556+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4557+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4558+ .url_parameter ('type' , self .convert_true_false (_type )) \
4559+ .get () \
4560+ .go ()
4561+
44804562 def search_lambdas (self , request ):
44814563 """
44824564 Searches lambdas with the specified criteria and pagination.
@@ -4613,6 +4695,28 @@ def search_webhooks(self, request):
46134695 .post () \
46144696 .go ()
46154697
4698+ def search_webhooks_by_parameters (self , description = None , number_of_results = None , order_by = None , start_row = None , tenant_id = None , url = None ):
4699+ """
4700+ Searches webhooks with the specified criteria and pagination.
4701+
4702+ Attributes:
4703+ description: (Optional) The description of the webhook to search for. Supports wildcard search using *.
4704+ number_of_results: (Optional) The number of results to return. Defaults to 25.
4705+ order_by: (Optional) The field to order the results by. Supported values: description, id, insertInstant, url.
4706+ start_row: (Optional) The offset into the total results. Defaults to 0.
4707+ tenant_id: (Optional) The tenant Id to restrict the results to.
4708+ url: (Optional) The URL of the webhook to search for. Supports wildcard search using *.
4709+ """
4710+ return self .start ().uri ('/api/webhook/search' ) \
4711+ .url_parameter ('description' , self .convert_true_false (description )) \
4712+ .url_parameter ('numberOfResults' , self .convert_true_false (number_of_results )) \
4713+ .url_parameter ('orderBy' , self .convert_true_false (order_by )) \
4714+ .url_parameter ('startRow' , self .convert_true_false (start_row )) \
4715+ .url_parameter ('tenantId' , self .convert_true_false (tenant_id )) \
4716+ .url_parameter ('url' , self .convert_true_false (url )) \
4717+ .get () \
4718+ .go ()
4719+
46164720 def send_email (self , email_template_id , request ):
46174721 """
46184722 Send an email using an email template Id. You can optionally provide <code>requestData</code> to access key value
0 commit comments