Class: Google::Apis::ConnectorsV1::SshPublicKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SshPublicKey

Returns a new instance of SshPublicKey.



2036
2037
2038
# File 'lib/google/apis/connectors_v1/classes.rb', line 2036

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cert_typeString

Format of SSH Client cert. Corresponds to the JSON property certType

Returns:

  • (String)


2019
2020
2021
# File 'lib/google/apis/connectors_v1/classes.rb', line 2019

def cert_type
  @cert_type
end

#passwordGoogle::Apis::ConnectorsV1::Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property password



2024
2025
2026
# File 'lib/google/apis/connectors_v1/classes.rb', line 2024

def password
  @password
end

#ssh_client_certGoogle::Apis::ConnectorsV1::Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property sshClientCert



2029
2030
2031
# File 'lib/google/apis/connectors_v1/classes.rb', line 2029

def ssh_client_cert
  @ssh_client_cert
end

#usernameString

The user account used to authenticate. Corresponds to the JSON property username

Returns:

  • (String)


2034
2035
2036
# File 'lib/google/apis/connectors_v1/classes.rb', line 2034

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2041
2042
2043
2044
2045
2046
# File 'lib/google/apis/connectors_v1/classes.rb', line 2041

def update!(**args)
  @cert_type = args[:cert_type] if args.key?(:cert_type)
  @password = args[:password] if args.key?(:password)
  @ssh_client_cert = args[:ssh_client_cert] if args.key?(:ssh_client_cert)
  @username = args[:username] if args.key?(:username)
end