Class: Google::Apis::DatastreamV1::SalesforceSourceConfig

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

Configuration for syncing data from a Salesforce source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SalesforceSourceConfig

Returns a new instance of SalesforceSourceConfig.



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

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

Instance Attribute Details

#exclude_objectsGoogle::Apis::DatastreamV1::SalesforceOrg

Salesforce organization structure. Corresponds to the JSON property excludeObjects



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

def exclude_objects
  @exclude_objects
end

#include_objectsGoogle::Apis::DatastreamV1::SalesforceOrg

Salesforce organization structure. Corresponds to the JSON property includeObjects



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

def include_objects
  @include_objects
end

#polling_intervalString

Required. Salesforce objects polling interval. The interval at which new changes will be polled for each object. The duration must be from 5 minutes to 24 hours, inclusive. Corresponds to the JSON property pollingInterval

Returns:

  • (String)


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

def polling_interval
  @polling_interval
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)
  @exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects)
  @include_objects = args[:include_objects] if args.key?(:include_objects)
  @polling_interval = args[:polling_interval] if args.key?(:polling_interval)
end