Class: Google::Apis::DatastreamV1::ServiceNowProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::ServiceNowProfile
- 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 ⇒ String
Required.
-
#oauth_client_credentials ⇒ Google::Apis::DatastreamV1::OauthClientCredentials
OAuth Client Credentials.
-
#user_password_credentials ⇒ Google::Apis::DatastreamV1::UserPasswordCredentials
User-password credentials.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceNowProfile
constructor
A new instance of ServiceNowProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceNowProfile
Returns a new instance of ServiceNowProfile.
4368 4369 4370 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4368 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance ⇒ String
Required. The instance of the ServiceNow account. This is the `part of the
URLhttps://.service-now.com.
Corresponds to the JSON propertyinstance`
4356 4357 4358 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4356 def instance @instance end |
#oauth_client_credentials ⇒ Google::Apis::DatastreamV1::OauthClientCredentials
OAuth Client Credentials.
Corresponds to the JSON property oauthClientCredentials
4361 4362 4363 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4361 def oauth_client_credentials @oauth_client_credentials end |
#user_password_credentials ⇒ Google::Apis::DatastreamV1::UserPasswordCredentials
User-password credentials.
Corresponds to the JSON property userPasswordCredentials
4366 4367 4368 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4366 def user_password_credentials @user_password_credentials end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4373 4374 4375 4376 4377 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4373 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 |