Reference documentation and code samples for the Google Cloud Ftp V1 Client class UserCredential.
Message describing UserCredential object
Generated from protobuf message google.cloud.ftp.v1.UserCredential
Namespace
Google \ Cloud \ Ftp \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ credential_name |
string
Required. Name of the user credential. |
↳ credential_type |
int
Required. Type of credential. |
↳ ssh_public_key_body |
string
Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." |
getCredentialName
Required. Name of the user credential.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCredentialName
Required. Name of the user credential.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCredentialType
Required. Type of credential.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setCredentialType
Required. Type of credential.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSshPublicKeyBody
Optional. SSH public key body in OpenSSH format.
Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
| Returns | |
|---|---|
| Type | Description |
string |
|
setSshPublicKeyBody
Optional. SSH public key body in OpenSSH format.
Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|