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.
4400 4401 4402 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4400 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`
4388 4389 4390 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4388 def instance @instance end |
#oauth_client_credentials ⇒ Google::Apis::DatastreamV1::OauthClientCredentials
OAuth Client Credentials.
Corresponds to the JSON property oauthClientCredentials
4393 4394 4395 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4393 def oauth_client_credentials @oauth_client_credentials end |
#user_password_credentials ⇒ Google::Apis::DatastreamV1::UserPasswordCredentials
User-password credentials.
Corresponds to the JSON property userPasswordCredentials
4398 4399 4400 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4398 def user_password_credentials @user_password_credentials end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4405 4406 4407 4408 4409 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4405 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 |