Class: Google::Apis::FtpV1::UserCredential

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Required. Name of the user credential. Corresponds to the JSON property credentialName

Returns:

  • (String)


792
793
794
# File 'lib/google/apis/ftp_v1/classes.rb', line 792

def credential_name
  @credential_name
end

#credential_typeString

Required. Type of credential. Corresponds to the JSON property credentialType

Returns:

  • (String)


797
798
799
# File 'lib/google/apis/ftp_v1/classes.rb', line 797

def credential_type
  @credential_type
end

#ssh_public_key_bodyString

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." Corresponds to the JSON property sshPublicKeyBody

Returns:

  • (String)


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