Class: Google::Apis::DfareportingV2_6::DirectorySiteContact

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

Overview

Contains properties of a Site Directory contact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DirectorySiteContact

Returns a new instance of DirectorySiteContact



4929
4930
4931
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4929

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


4881
4882
4883
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4881

def address
  @address
end

#emailString

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

Returns:

  • (String)


4886
4887
4888
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4886

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


4891
4892
4893
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4891

def first_name
  @first_name
end

#idFixnum

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

Returns:

  • (Fixnum)


4896
4897
4898
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4896

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)


4902
4903
4904
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4902

def kind
  @kind
end

#last_nameString

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

Returns:

  • (String)


4907
4908
4909
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4907

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


4912
4913
4914
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4912

def phone
  @phone
end

#roleString

Directory site contact role. Corresponds to the JSON property role

Returns:

  • (String)


4917
4918
4919
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4917

def role
  @role
end

#titleString

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

Returns:

  • (String)


4922
4923
4924
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4922

def title
  @title
end

#typeString

Directory site contact type. Corresponds to the JSON property type

Returns:

  • (String)


4927
4928
4929
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4927

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4934

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