Google Cloud Datastream V1 Client - Class UserCredentials (2.3.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class UserCredentials.

Username-password credentials.

Generated from protobuf message google.cloud.datastream.v1.SalesforceProfile.UserCredentials

Namespace

Google \ Cloud \ Datastream \ V1 \ SalesforceProfile

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ username string

Required. Username for the Salesforce connection.

↳ password string

Optional. Password for the Salesforce connection. Mutually exclusive with the secret_manager_stored_password field.

↳ security_token string

Optional. Security token for the Salesforce connection. Mutually exclusive with the secret_manager_stored_security_token field.

↳ secret_manager_stored_password string

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's password. Mutually exclusive with the password field.

↳ secret_manager_stored_security_token string

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's security token. Mutually exclusive with the security_token field.

getUsername

Required. Username for the Salesforce connection.

Returns
Type Description
string

setUsername

Required. Username for the Salesforce connection.

Parameter
Name Description
var string
Returns
Type Description
$this

getPassword

Optional. Password for the Salesforce connection.

Mutually exclusive with the secret_manager_stored_password field.

Returns
Type Description
string

setPassword

Optional. Password for the Salesforce connection.

Mutually exclusive with the secret_manager_stored_password field.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecurityToken

Optional. Security token for the Salesforce connection.

Mutually exclusive with the secret_manager_stored_security_token field.

Returns
Type Description
string

setSecurityToken

Optional. Security token for the Salesforce connection.

Mutually exclusive with the secret_manager_stored_security_token field.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's password. Mutually exclusive with the password field.

Returns
Type Description
string

setSecretManagerStoredPassword

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's password. Mutually exclusive with the password field.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretManagerStoredSecurityToken

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's security token. Mutually exclusive with the security_token field.

Returns
Type Description
string

setSecretManagerStoredSecurityToken

Optional. A reference to a Secret Manager resource name storing the Salesforce connection's security token. Mutually exclusive with the security_token field.

Parameter
Name Description
var string
Returns
Type Description
$this