How to use delete_ssh_public_key method in localstack

Best Python code snippet using localstack_python

os_login_service_client.py

Source:os_login_service_client.py Github

copy

Full Screen

...230 metadata.append(routing_metadata)231 self._inner_api_calls["delete_posix_account"](232 request, retry=retry, timeout=timeout, metadata=metadata233 )234 def delete_ssh_public_key(235 self,236 name,237 retry=google.api_core.gapic_v1.method.DEFAULT,238 timeout=google.api_core.gapic_v1.method.DEFAULT,239 metadata=None,240 ):241 """242 Deletes an SSH public key.243 Example:244 >>> from google.cloud import oslogin_v1245 >>>246 >>> client = oslogin_v1.OsLoginServiceClient()247 >>>248 >>> name = client.fingerprint_path('[USER]', '[FINGERPRINT]')249 >>>250 >>> client.delete_ssh_public_key(name)251 Args:252 name (str): The fingerprint of the public key to update. Public keys are identified253 by their SHA-256 fingerprint. The fingerprint of the public key is in254 format ``users/{user}/sshPublicKeys/{fingerprint}``.255 retry (Optional[google.api_core.retry.Retry]): A retry object used256 to retry requests. If ``None`` is specified, requests will not257 be retried.258 timeout (Optional[float]): The amount of time, in seconds, to wait259 for the request to complete. Note that if ``retry`` is260 specified, the timeout applies to each individual attempt.261 metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata262 that is provided to the method.263 Raises:264 google.api_core.exceptions.GoogleAPICallError: If the request...

Full Screen

Full Screen

aws-delete-users.py

Source:aws-delete-users.py Github

copy

Full Screen

...48 delete_signing_certificate = [client.delete_signing_certificate(49 UserName=row[1], CertificateId=Id['CertificateId']) for Id in list_signing_certificates['Certificates'] ]50 list_ssh_public_keys = client.list_ssh_public_keys(UserName=row[1]) # Listing public keys51 if list_ssh_public_keys['SSHPublicKeys']:52 delete_ssh_public_key = [client.delete_ssh_public_key(53 UserName=row[1], SSHPublicKeyId= Id['SSHPublicKeyId']) for Id in list_ssh_public_keys['SSHPublicKeys'] ] # Deleting if any54 list_service_specific_credentials = client.list_service_specific_credentials(55 UserName=row[1]) # Listing service specific credentials 56 if list_service_specific_credentials['ServiceSpecificCredentials']: # Deleting if any57 delete_service_specific_credential = [client.delete_service_specific_credential(58 UserName=row[1], ServiceSpecificCredentialId= Id['ServiceSpecificCredentialId']) for Id in list_service_specific_credentials['ServiceSpecificCredentials'] ]59 list_mfa_devices = client.list_mfa_devices(60 UserName=row[1]61 ) # Listing MFA devices62 if list_mfa_devices['MFADevices']: # Deleting if any63 deactivate_mfa_device = [client.deactivate_mfa_device( UserName=row[1],64 SerialNumber= Id['SerialNumber']65 ) for Id in list_mfa_devices['MFADevices'] ]66 delete_virtual_mfa_device = [client.delete_virtual_mfa_device(...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful