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

Overview

Parameters to support Ssh public key Authentication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SshPublicKey

Returns a new instance of SshPublicKey.



2196
2197
2198
# File 'lib/google/apis/connectors_v1/classes.rb', line 2196

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

Instance Attribute Details

#cert_typeString

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

Returns:

  • (String)


2174
2175
2176
# File 'lib/google/apis/connectors_v1/classes.rb', line 2174

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



2179
2180
2181
# File 'lib/google/apis/connectors_v1/classes.rb', line 2179

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



2184
2185
2186
# File 'lib/google/apis/connectors_v1/classes.rb', line 2184

def ssh_client_cert
  @ssh_client_cert
end

#ssh_client_cert_passGoogle::Apis::ConnectorsV1::Secret

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



2189
2190
2191
# File 'lib/google/apis/connectors_v1/classes.rb', line 2189

def ssh_client_cert_pass
  @ssh_client_cert_pass
end

#usernameString

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

Returns:

  • (String)


2194
2195
2196
# File 'lib/google/apis/connectors_v1/classes.rb', line 2194

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2201
2202
2203
2204
2205
2206
2207
# File 'lib/google/apis/connectors_v1/classes.rb', line 2201

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)
  @ssh_client_cert_pass = args[:ssh_client_cert_pass] if args.key?(:ssh_client_cert_pass)
  @username = args[:username] if args.key?(:username)
end