Class: Fog::AWS::IAM::Real
- Inherits:
-
Object
- Object
- Fog::AWS::IAM::Real
- Defined in:
- lib/fog/aws/requests/iam/list_ssh_public_keys.rb,
lib/fog/aws/requests/iam/delete_ssh_public_key.rb,
lib/fog/aws/requests/iam/upload_ssh_public_key.rb
Instance Method Summary collapse
- #delete_ssh_public_key(ssh_public_key_id, username) ⇒ Object
- #list_ssh_public_keys(options = {}) ⇒ Object
- #upload_ssh_public_key(public_key, username) ⇒ Object
Instance Method Details
#delete_ssh_public_key(ssh_public_key_id, username) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fog/aws/requests/iam/delete_ssh_public_key.rb', line 9 def delete_ssh_public_key(ssh_public_key_id, username) request({ 'SSHPublicKeyId' => ssh_public_key_id, 'UserName' => username, 'Action' => 'DeleteSSHPublicKey', :parser => Fog::Parsers::AWS::IAM::Basic.new }) end |
#list_ssh_public_keys(options = {}) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/fog/aws/requests/iam/list_ssh_public_keys.rb', line 26 def list_ssh_public_keys( = {}) request({ 'Action' => 'ListSSHPublicKeys', :parser => Fog::Parsers::AWS::IAM::ListSshPublicKeys.new }.merge!()) end |
#upload_ssh_public_key(public_key, username) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/fog/aws/requests/iam/upload_ssh_public_key.rb', line 26 def upload_ssh_public_key(public_key, username) request({ 'Action' => 'UploadSSHPublicKey', 'SSHPublicKeyBody' => public_key, 'UserName' => username, :parser => Fog::Parsers::AWS::IAM::UploadSshPublicKey.new }) end |