class Google::Apis::DfareportingV2_1::Site

Contains properties of a site.

Attributes

account_id[RW]

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

approved[RW]

Whether this site is approved. Corresponds to the JSON property `approved` @return [Boolean]

approved?[RW]

Whether this site is approved. Corresponds to the JSON property `approved` @return [Boolean]

directory_site_id[RW]

Directory site associated with this site. This is a required field that is read-only after insertion. Corresponds to the JSON property `directorySiteId` @return [String]

directory_site_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `directorySiteIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]

id[RW]

ID of this site. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [String]

id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `idDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]

key_name[RW]

Key name of this site. This is a read-only, auto-generated field. Corresponds to the JSON property `keyName` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#site”. Corresponds to the JSON property `kind` @return [String]

name[RW]

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` @return [String]

site_contacts[RW]

Site contacts. Corresponds to the JSON property `siteContacts` @return [Array<Google::Apis::DfareportingV2_1::SiteContact>]

site_settings[RW]

Site Settings Corresponds to the JSON property `siteSettings` @return [Google::Apis::DfareportingV2_1::SiteSettings]

subaccount_id[RW]

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

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 9703
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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