Best Python code snippet using tempest_python
client.pyi
Source:client.pyi
...85 Closes underlying endpoint connections.86 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.close)87 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#close)88 """89 def deregister_identity_provider(90 self, *, IdentityProvider: "IdentityProviderTypeDef", Product: str91 ) -> DeregisterIdentityProviderResponseTypeDef:92 """93 Deregisters the identity provider from providing user-based subscriptions.94 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.deregister_identity_provider)95 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#deregister_identity_provider)96 """97 def disassociate_user(98 self,99 *,100 IdentityProvider: "IdentityProviderTypeDef",101 InstanceId: str,102 Username: str,103 Domain: str = None104 ) -> DisassociateUserResponseTypeDef:105 """106 Disassociates the user from an EC2 instance providing user-based subscriptions.107 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.disassociate_user)108 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#disassociate_user)109 """110 def generate_presigned_url(111 self,112 ClientMethod: str,113 Params: Dict[str, Any] = None,114 ExpiresIn: int = 3600,115 HttpMethod: str = None,116 ) -> str:117 """118 Generate a presigned url given a client, its method, and arguments.119 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.generate_presigned_url)120 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#generate_presigned_url)121 """122 def list_identity_providers(123 self, *, MaxResults: int = None, NextToken: str = None124 ) -> ListIdentityProvidersResponseTypeDef:125 """126 Lists the identity providers for user-based subscriptions.127 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.list_identity_providers)128 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#list_identity_providers)129 """130 def list_instances(131 self,132 *,133 Filters: List["FilterTypeDef"] = None,134 MaxResults: int = None,135 NextToken: str = None136 ) -> ListInstancesResponseTypeDef:137 """138 Lists the EC2 instances providing user-based subscriptions.139 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.list_instances)140 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#list_instances)141 """142 def list_product_subscriptions(143 self,144 *,145 IdentityProvider: "IdentityProviderTypeDef",146 Product: str,147 Filters: List["FilterTypeDef"] = None,148 MaxResults: int = None,149 NextToken: str = None150 ) -> ListProductSubscriptionsResponseTypeDef:151 """152 Lists the user-based subscription products available from an identity provider.153 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.list_product_subscriptions)154 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#list_product_subscriptions)155 """156 def list_user_associations(157 self,158 *,159 IdentityProvider: "IdentityProviderTypeDef",160 InstanceId: str,161 Filters: List["FilterTypeDef"] = None,162 MaxResults: int = None,163 NextToken: str = None164 ) -> ListUserAssociationsResponseTypeDef:165 """166 Lists user associations for an identity provider.167 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.list_user_associations)168 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#list_user_associations)169 """170 def register_identity_provider(171 self, *, IdentityProvider: "IdentityProviderTypeDef", Product: str172 ) -> RegisterIdentityProviderResponseTypeDef:173 """174 Registers an identity provider for user-based subscriptions.175 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/license-manager-user-subscriptions.html#LicenseManagerUserSubscriptions.Client.register_identity_provider)176 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/client.html#register_identity_provider)177 """178 def start_product_subscription(179 self,180 *,181 IdentityProvider: "IdentityProviderTypeDef",182 Product: str,183 Username: str,184 Domain: str = None...
identity_providers_client.py
Source:identity_providers_client.py
...15from urllib import parse as urllib16from oslo_serialization import jsonutils as json17from tempest.lib.common import rest_client18class IdentityProvidersClient(rest_client.RestClient):19 def register_identity_provider(self, identity_provider_id, **kwargs):20 """Register an identity provider.21 For a full list of available parameters, please refer to the official22 API reference:23 https://docs.openstack.org/api-ref/identity/v3-ext/index.html#register-an-identity-provider24 """25 post_body = json.dumps({'identity_provider': kwargs})26 resp, body = self.put(27 'OS-FEDERATION/identity_providers/%s' % identity_provider_id,28 post_body)29 self.expected_success(201, resp.status)30 body = json.loads(body)31 return rest_client.ResponseBody(resp, body)32 def list_identity_providers(self, **params):33 """List identity providers....
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!