Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary

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

Overview

A virtual resource representing an overview of an account and all its child GA4 properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAccountSummary

Returns a new instance of GoogleAnalyticsAdminV1alphaAccountSummary.



696
697
698
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 696

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

Instance Attribute Details

#accountString

Resource name of account referred to by this account summary Format: accounts/ account_id Example: "accounts/1000" Corresponds to the JSON property account

Returns:

  • (String)


678
679
680
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 678

def 
  @account
end

#display_nameString

Display name for the account referred to in this account summary. Corresponds to the JSON property displayName

Returns:

  • (String)


683
684
685
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 683

def display_name
  @display_name
end

#nameString

Resource name for this account summary. Format: accountSummaries/account_id Example: "accountSummaries/1000" Corresponds to the JSON property name

Returns:

  • (String)


689
690
691
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 689

def name
  @name
end

#property_summariesArray<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary>

List of summaries for child accounts of this account. Corresponds to the JSON property propertySummaries



694
695
696
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 694

def property_summaries
  @property_summaries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



701
702
703
704
705
706
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 701

def update!(**args)
  @account = args[:account] if args.key?(:account)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @property_summaries = args[:property_summaries] if args.key?(:property_summaries)
end