Class: Google::Apis::DfareportingV3_0::Site
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DfareportingV3_0::Site
 
- 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.
Instance Attribute Summary collapse
- 
  
    
      #account_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Account ID of this site. 
- 
  
    
      #approved  ⇒ Boolean 
    
    
      (also: #approved?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this site is approved. 
- 
  
    
      #directory_site_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Directory site associated with this site. 
- 
  
    
      #directory_site_id_dimension_value  ⇒ Google::Apis::DfareportingV3_0::DimensionValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a DimensionValue resource. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of this site. 
- 
  
    
      #id_dimension_value  ⇒ Google::Apis::DfareportingV3_0::DimensionValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a DimensionValue resource. 
- 
  
    
      #key_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Key name of this site. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of this site.This is a required field. 
- 
  
    
      #site_contacts  ⇒ Array<Google::Apis::DfareportingV3_0::SiteContact> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Site contacts. 
- 
  
    
      #site_settings  ⇒ Google::Apis::DfareportingV3_0::SiteSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Site Settings Corresponds to the JSON property siteSettings.
- 
  
    
      #subaccount_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Subaccount ID of this site. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Site 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Site. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Site
Returns a new instance of Site
| 10631 10632 10633 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10631 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#account_id ⇒ Fixnum
Account ID of this site. This is a read-only field that can be left blank.
Corresponds to the JSON property accountId
| 10568 10569 10570 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10568 def account_id @account_id end | 
#approved ⇒ Boolean Also known as: approved?
Whether this site is approved.
Corresponds to the JSON property approved
| 10573 10574 10575 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10573 def approved @approved end | 
#directory_site_id ⇒ Fixnum
Directory site associated with this site. This is a required field that is
read-only after insertion.
Corresponds to the JSON property directorySiteId
| 10580 10581 10582 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10580 def directory_site_id @directory_site_id end | 
#directory_site_id_dimension_value ⇒ Google::Apis::DfareportingV3_0::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property directorySiteIdDimensionValue
| 10585 10586 10587 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10585 def directory_site_id_dimension_value @directory_site_id_dimension_value end | 
#id ⇒ Fixnum
ID of this site. This is a read-only, auto-generated field.
Corresponds to the JSON property id
| 10590 10591 10592 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10590 def id @id end | 
#id_dimension_value ⇒ Google::Apis::DfareportingV3_0::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property idDimensionValue
| 10595 10596 10597 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10595 def id_dimension_value @id_dimension_value end | 
#key_name ⇒ String
Key name of this site. This is a read-only, auto-generated field.
Corresponds to the JSON property keyName
| 10600 10601 10602 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10600 def key_name @key_name end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#site".
Corresponds to the JSON property kind
| 10606 10607 10608 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10606 def kind @kind end | 
#name ⇒ String
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
| 10614 10615 10616 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10614 def name @name end | 
#site_contacts ⇒ Array<Google::Apis::DfareportingV3_0::SiteContact>
Site contacts.
Corresponds to the JSON property siteContacts
| 10619 10620 10621 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10619 def site_contacts @site_contacts end | 
#site_settings ⇒ Google::Apis::DfareportingV3_0::SiteSettings
Site Settings
Corresponds to the JSON property siteSettings
| 10624 10625 10626 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10624 def site_settings @site_settings end | 
#subaccount_id ⇒ Fixnum
Subaccount ID of this site. This is a read-only field that can be left blank.
Corresponds to the JSON property subaccountId
| 10629 10630 10631 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10629 def subaccount_id @subaccount_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10636 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 |