Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ContactInfo

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

Overview

Contact information for a customer account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1ContactInfo

Returns a new instance of GoogleCloudChannelV1ContactInfo.



539
540
541
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 539

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

Instance Attribute Details

#display_nameString

Output only. Display name of the contact in the customer account. Populated by combining customer first name and last name. Corresponds to the JSON property displayName

Returns:

  • (String)


510
511
512
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 510

def display_name
  @display_name
end

#emailString

Email of the contact in the customer account. Email is required for entitlements that need creation of admin.google.com accounts. The email will be the username used in credentials to access the admin.google.com account. Corresponds to the JSON property email

Returns:

  • (String)


517
518
519
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 517

def email
  @email
end

#first_nameString

First name of the contact in the customer account. Corresponds to the JSON property firstName

Returns:

  • (String)


522
523
524
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 522

def first_name
  @first_name
end

#last_nameString

Last name of the contact in the customer account. Corresponds to the JSON property lastName

Returns:

  • (String)


527
528
529
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 527

def last_name
  @last_name
end

#phoneString

Phone number of the contact in the customer account. Corresponds to the JSON property phone

Returns:

  • (String)


532
533
534
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 532

def phone
  @phone
end

#titleString

Optional. Job title of the contact in the customer account. Corresponds to the JSON property title

Returns:

  • (String)


537
538
539
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 537

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
547
548
549
550
551
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 544

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @first_name = args[:first_name] if args.key?(:first_name)
  @last_name = args[:last_name] if args.key?(:last_name)
  @phone = args[:phone] if args.key?(:phone)
  @title = args[:title] if args.key?(:title)
end