Class: Google::Apis::DatastreamV1::ServiceNowProfile

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 ServiceNow source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceNowProfile

Returns a new instance of ServiceNowProfile.



4367
4368
4369
# File 'lib/google/apis/datastream_v1/classes.rb', line 4367

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

Instance Attribute Details

#instanceString

Required. The instance of the ServiceNow account. This is the `part of the URLhttps://.service-now.com. Corresponds to the JSON propertyinstance`

Returns:

  • (String)


4355
4356
4357
# File 'lib/google/apis/datastream_v1/classes.rb', line 4355

def instance
  @instance
end

#oauth_client_credentialsGoogle::Apis::DatastreamV1::OauthClientCredentials

OAuth Client Credentials. Corresponds to the JSON property oauthClientCredentials



4360
4361
4362
# File 'lib/google/apis/datastream_v1/classes.rb', line 4360

def oauth_client_credentials
  @oauth_client_credentials
end

#user_password_credentialsGoogle::Apis::DatastreamV1::UserPasswordCredentials

User-password credentials. Corresponds to the JSON property userPasswordCredentials



4365
4366
4367
# File 'lib/google/apis/datastream_v1/classes.rb', line 4365

def user_password_credentials
  @user_password_credentials
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4372
4373
4374
4375
4376
# File 'lib/google/apis/datastream_v1/classes.rb', line 4372

def update!(**args)
  @instance = args[:instance] if args.key?(:instance)
  @oauth_client_credentials = args[:oauth_client_credentials] if args.key?(:oauth_client_credentials)
  @user_password_credentials = args[:user_password_credentials] if args.key?(:user_password_credentials)
end