Class: Google::Apis::DfareportingV2_1::Site

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

Overview

Contains properties of a site.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Site

Returns a new instance of Site.



9703
9704
9705
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9703

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)


9640
9641
9642
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9640

def 
  @account_id
end

#approvedBoolean Also known as: approved?

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

Returns:

  • (Boolean)


9645
9646
9647
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9645

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)


9652
9653
9654
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9652

def directory_site_id
  @directory_site_id
end

#directory_site_id_dimension_valueGoogle::Apis::DfareportingV2_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property directorySiteIdDimensionValue



9657
9658
9659
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9657

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)


9662
9663
9664
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9662

def id
  @id
end

#id_dimension_valueGoogle::Apis::DfareportingV2_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property idDimensionValue



9667
9668
9669
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9667

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)


9672
9673
9674
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9672

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)


9678
9679
9680
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9678

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)


9686
9687
9688
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9686

def name
  @name
end

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

Site contacts. Corresponds to the JSON property siteContacts



9691
9692
9693
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9691

def site_contacts
  @site_contacts
end

#site_settingsGoogle::Apis::DfareportingV2_1::SiteSettings

Site Settings Corresponds to the JSON property siteSettings



9696
9697
9698
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9696

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)


9701
9702
9703
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9701

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9708

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