Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaUsernameAndPassword

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

Overview

Username and password pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaUsernameAndPassword

Returns a new instance of GoogleCloudIntegrationsV1alphaUsernameAndPassword.



9177
9178
9179
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9177

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

Instance Attribute Details

#passwordString

Password to be used Corresponds to the JSON property password

Returns:

  • (String)


9170
9171
9172
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9170

def password
  @password
end

#usernameString

Username to be used Corresponds to the JSON property username

Returns:

  • (String)


9175
9176
9177
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9175

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9182
9183
9184
9185
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 9182

def update!(**args)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end