Class: Google::Apis::FtpV1::UserCredential
- Inherits:
-
Object
- Object
- Google::Apis::FtpV1::UserCredential
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ftp_v1/classes.rb,
lib/google/apis/ftp_v1/representations.rb,
lib/google/apis/ftp_v1/representations.rb
Overview
Message describing UserCredential object
Instance Attribute Summary collapse
-
#credential_name ⇒ String
Required.
-
#credential_type ⇒ String
Required.
-
#ssh_public_key_body ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserCredential
constructor
A new instance of UserCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserCredential
Returns a new instance of UserCredential.
805 806 807 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#credential_name ⇒ String
Required. Name of the user credential.
Corresponds to the JSON property credentialName
792 793 794 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 792 def credential_name @credential_name end |
#credential_type ⇒ String
Required. Type of credential.
Corresponds to the JSON property credentialType
797 798 799 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 797 def credential_type @credential_type end |
#ssh_public_key_body ⇒ String
Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
Corresponds to the JSON property sshPublicKeyBody
803 804 805 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 803 def ssh_public_key_body @ssh_public_key_body end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
810 811 812 813 814 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 810 def update!(**args) @credential_name = args[:credential_name] if args.key?(:credential_name) @credential_type = args[:credential_type] if args.key?(:credential_type) @ssh_public_key_body = args[:ssh_public_key_body] if args.key?(:ssh_public_key_body) end |