Class: Google::Apis::DfareportingV3_2::DirectorySiteContactAssignment

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

Directory Site Contact Assignment

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) ⇒ DirectorySiteContactAssignment

Returns a new instance of DirectorySiteContactAssignment



5330
5331
5332
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5330

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

Instance Attribute Details

#contact_idFixnum

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

Returns:

  • (Fixnum)


5321
5322
5323
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5321

def contact_id
  @contact_id
end

#visibilityString

Visibility of this directory site contact assignment. When set to PUBLIC this contact assignment is visible to all account and agency users; when set to PRIVATE it is visible only to the site. Corresponds to the JSON property visibility

Returns:

  • (String)


5328
5329
5330
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5328

def visibility
  @visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5335
5336
5337
5338
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5335

def update!(**args)
  @contact_id = args[:contact_id] if args.key?(:contact_id)
  @visibility = args[:visibility] if args.key?(:visibility)
end