Class: Google::Apis::DatastreamV1::SalesforceProfile

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

Overview

Profile for connecting to a Salesforce source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SalesforceProfile

Returns a new instance of SalesforceProfile.



4228
4229
4230
# File 'lib/google/apis/datastream_v1/classes.rb', line 4228

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

Instance Attribute Details

#domainString

Required. Domain endpoint for the Salesforce connection. Corresponds to the JSON property domain

Returns:

  • (String)


4215
4216
4217
# File 'lib/google/apis/datastream_v1/classes.rb', line 4215

def domain
  @domain
end

#oauth2_client_credentialsGoogle::Apis::DatastreamV1::Oauth2ClientCredentials

OAuth2 Client Credentials. Corresponds to the JSON property oauth2ClientCredentials



4220
4221
4222
# File 'lib/google/apis/datastream_v1/classes.rb', line 4220

def oauth2_client_credentials
  @oauth2_client_credentials
end

#user_credentialsGoogle::Apis::DatastreamV1::UserCredentials

Deprecated: Salesforce is retiring Username-Password authentication. Use Oauth2ClientCredentials instead. Corresponds to the JSON property userCredentials



4226
4227
4228
# File 'lib/google/apis/datastream_v1/classes.rb', line 4226

def user_credentials
  @user_credentials
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4233
4234
4235
4236
4237
# File 'lib/google/apis/datastream_v1/classes.rb', line 4233

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @oauth2_client_credentials = args[:oauth2_client_credentials] if args.key?(:oauth2_client_credentials)
  @user_credentials = args[:user_credentials] if args.key?(:user_credentials)
end