Google Cloud Datastream V1 Client - Class ServiceNowProfile (2.7.0)

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

Profile for connecting to a ServiceNow source.

Generated from protobuf message google.cloud.datastream.v1.ServiceNowProfile

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance string

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

↳ user_password_credentials UserPasswordCredentials

User-password authentication.

↳ oauth_client_credentials OauthClientCredentials

Credentials for authenticating with the ServiceNow API.

getInstance

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

Returns
Type Description
string

setInstance

Required. The instance of the ServiceNow account. This is the <instance> part of the URL https://<instance>.service-now.com.

Parameter
Name Description
var string
Returns
Type Description
$this

getUserPasswordCredentials

User-password authentication.

Returns
Type Description
UserPasswordCredentials|null

hasUserPasswordCredentials

setUserPasswordCredentials

User-password authentication.

Parameter
Name Description
var UserPasswordCredentials
Returns
Type Description
$this

getOauthClientCredentials

Credentials for authenticating with the ServiceNow API.

Returns
Type Description
OauthClientCredentials|null

hasOauthClientCredentials

setOauthClientCredentials

Credentials for authenticating with the ServiceNow API.

Parameter
Name Description
var OauthClientCredentials
Returns
Type Description
$this

getCredentials

Returns
Type Description
string