Class: Google::Apis::DfareportingV3_2::DirectorySiteContact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_2/classes.rb,
generated/google/apis/dfareporting_v3_2/representations.rb,
generated/google/apis/dfareporting_v3_2/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



5295
5296
5297
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5295

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


5247
5248
5249
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5247

def address
  @address
end

#emailString

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

Returns:

  • (String)


5252
5253
5254
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5252

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


5257
5258
5259
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5257

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)


5262
5263
5264
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5262

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)


5268
5269
5270
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5268

def kind
  @kind
end

#last_nameString

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

Returns:

  • (String)


5273
5274
5275
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5273

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


5278
5279
5280
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5278

def phone
  @phone
end

#roleString

Directory site contact role. Corresponds to the JSON property role

Returns:

  • (String)


5283
5284
5285
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5283

def role
  @role
end

#titleString

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

Returns:

  • (String)


5288
5289
5290
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5288

def title
  @title
end

#typeString

Directory site contact type. Corresponds to the JSON property type

Returns:

  • (String)


5293
5294
5295
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5293

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5300

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