Class: Google::Apis::DfareportingV2_1::DirectorySiteContact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb

Overview

Contains properties of a Site Directory contact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DirectorySiteContact

Returns a new instance of DirectorySiteContact.



4494
4495
4496
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4494

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

Instance Attribute Details

#addressString

Address of this directory site contact. Corresponds to the JSON property address

Returns:

  • (String)


4446
4447
4448
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4446

def address
  @address
end

#emailString

Email address of this directory site contact. Corresponds to the JSON property email

Returns:

  • (String)


4451
4452
4453
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4451

def email
  @email
end

#first_nameString

First name of this directory site contact. Corresponds to the JSON property firstName

Returns:

  • (String)


4456
4457
4458
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4456

def first_name
  @first_name
end

#idString

ID of this directory site contact. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (String)


4461
4462
4463
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4461

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#directorySiteContact". Corresponds to the JSON property kind

Returns:

  • (String)


4467
4468
4469
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4467

def kind
  @kind
end

#last_nameString

Last name of this directory site contact. Corresponds to the JSON property lastName

Returns:

  • (String)


4472
4473
4474
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4472

def last_name
  @last_name
end

#phoneString

Phone number of this directory site contact. Corresponds to the JSON property phone

Returns:

  • (String)


4477
4478
4479
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4477

def phone
  @phone
end

#roleString

Directory site contact role. Corresponds to the JSON property role

Returns:

  • (String)


4482
4483
4484
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4482

def role
  @role
end

#titleString

Title or designation of this directory site contact. Corresponds to the JSON property title

Returns:

  • (String)


4487
4488
4489
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4487

def title
  @title
end

#typeString

Directory site contact type. Corresponds to the JSON property type

Returns:

  • (String)


4492
4493
4494
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4492

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4499

def update!(**args)
  @address = args[:address] unless args[:address].nil?
  @email = args[:email] unless args[:email].nil?
  @first_name = args[:first_name] unless args[:first_name].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @last_name = args[:last_name] unless args[:last_name].nil?
  @phone = args[:phone] unless args[:phone].nil?
  @role = args[:role] unless args[:role].nil?
  @title = args[:title] unless args[:title].nil?
  @type = args[:type] unless args[:type].nil?
end