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.



644
645
646
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 644

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

Instance Attribute Details

#display_nameString

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name. Corresponds to the JSON property displayName

Returns:

  • (String)


615
616
617
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 615

def display_name
  @display_name
end

#emailString

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers. Corresponds to the JSON property email

Returns:

  • (String)


622
623
624
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 622

def email
  @email
end

#first_nameString

The customer account contact's first name. Optional for Team customers. Corresponds to the JSON property firstName

Returns:

  • (String)


627
628
629
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 627

def first_name
  @first_name
end

#last_nameString

The customer account contact's last name. Optional for Team customers. Corresponds to the JSON property lastName

Returns:

  • (String)


632
633
634
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 632

def last_name
  @last_name
end

#phoneString

The customer account's contact phone number. Corresponds to the JSON property phone

Returns:

  • (String)


637
638
639
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 637

def phone
  @phone
end

#titleString

Optional. The customer account contact's job title. Corresponds to the JSON property title

Returns:

  • (String)


642
643
644
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 642

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



649
650
651
652
653
654
655
656
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 649

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