Class: Google::Apis::DfareportingV2_3::Site

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

Overview

Contains properties of a site.

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

Returns a new instance of Site.



9733
9734
9735
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9733

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

Instance Attribute Details

#account_idString

Account ID of this site. This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (String)


9670
9671
9672
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9670

def 
  @account_id
end

#approvedBoolean Also known as: approved?

Whether this site is approved. Corresponds to the JSON property approved

Returns:

  • (Boolean)


9675
9676
9677
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9675

def approved
  @approved
end

#directory_site_idString

Directory site associated with this site. This is a required field that is read-only after insertion. Corresponds to the JSON property directorySiteId

Returns:

  • (String)


9682
9683
9684
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9682

def directory_site_id
  @directory_site_id
end

#directory_site_id_dimension_valueGoogle::Apis::DfareportingV2_3::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property directorySiteIdDimensionValue



9687
9688
9689
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9687

def directory_site_id_dimension_value
  @directory_site_id_dimension_value
end

#idString

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

Returns:

  • (String)


9692
9693
9694
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9692

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV2_3::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



9697
9698
9699
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9697

def id_dimension_value
  @id_dimension_value
end

#key_nameString

Key name of this site. This is a read-only, auto-generated field. Corresponds to the JSON property keyName

Returns:

  • (String)


9702
9703
9704
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9702

def key_name
  @key_name
end

#kindString

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

Returns:

  • (String)


9708
9709
9710
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9708

def kind
  @kind
end

#nameString

Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account. Corresponds to the JSON property name

Returns:

  • (String)


9716
9717
9718
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9716

def name
  @name
end

#site_contactsArray<Google::Apis::DfareportingV2_3::SiteContact>

Site contacts. Corresponds to the JSON property siteContacts



9721
9722
9723
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9721

def site_contacts
  @site_contacts
end

#site_settingsGoogle::Apis::DfareportingV2_3::SiteSettings

Site Settings Corresponds to the JSON property siteSettings



9726
9727
9728
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9726

def site_settings
  @site_settings
end

#subaccount_idString

Subaccount ID of this site. This is a read-only field that can be left blank. Corresponds to the JSON property subaccountId

Returns:

  • (String)


9731
9732
9733
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9731

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9738

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @approved = args[:approved] if args.key?(:approved)
  @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id)
  @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @key_name = args[:key_name] if args.key?(:key_name)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @site_contacts = args[:site_contacts] if args.key?(:site_contacts)
  @site_settings = args[:site_settings] if args.key?(:site_settings)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
end