Class: Google::Apis::DfareportingV3_0::DirectorySiteContact

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



5204
5205
5206
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5204

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


5156
5157
5158
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5156

def address
  @address
end

#emailString

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

Returns:

  • (String)


5161
5162
5163
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5161

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


5166
5167
5168
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5166

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)


5171
5172
5173
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5171

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)


5177
5178
5179
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5177

def kind
  @kind
end

#last_nameString

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

Returns:

  • (String)


5182
5183
5184
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5182

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


5187
5188
5189
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5187

def phone
  @phone
end

#roleString

Directory site contact role. Corresponds to the JSON property role

Returns:

  • (String)


5192
5193
5194
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5192

def role
  @role
end

#titleString

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

Returns:

  • (String)


5197
5198
5199
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5197

def title
  @title
end

#typeString

Directory site contact type. Corresponds to the JSON property type

Returns:

  • (String)


5202
5203
5204
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5202

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 5209

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