Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaProperty

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

Overview

A resource message representing a Google Analytics GA4 property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaProperty

Returns a new instance of GoogleAnalyticsAdminV1betaProperty.



1810
1811
1812
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1810

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

Instance Attribute Details

#accountString

Immutable. The resource name of the parent account Format: accounts/ account_id Example: "accounts/123" Corresponds to the JSON property account

Returns:

  • (String)


1733
1734
1735
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1733

def 
  @account
end

#create_timeString

Output only. Time when the entity was originally created. Corresponds to the JSON property createTime

Returns:

  • (String)


1738
1739
1740
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1738

def create_time
  @create_time
end

#currency_codeString

The currency type used in reports involving monetary values. Format: https:// en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY" Corresponds to the JSON property currencyCode

Returns:

  • (String)


1744
1745
1746
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1744

def currency_code
  @currency_code
end

#delete_timeString

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can. Corresponds to the JSON property deleteTime

Returns:

  • (String)


1750
1751
1752
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1750

def delete_time
  @delete_time
end

#display_nameString

Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units. Corresponds to the JSON property displayName

Returns:

  • (String)


1756
1757
1758
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1756

def display_name
  @display_name
end

#expire_timeString

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted. Corresponds to the JSON property expireTime

Returns:

  • (String)


1763
1764
1765
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1763

def expire_time
  @expire_time
end

#industry_categoryString

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK Corresponds to the JSON property industryCategory

Returns:

  • (String)


1768
1769
1770
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1768

def industry_category
  @industry_category
end

#nameString

Output only. Resource name of this property. Format: properties/property_id Example: "properties/1000" Corresponds to the JSON property name

Returns:

  • (String)


1774
1775
1776
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1774

def name
  @name
end

#parentString

Immutable. Resource name of this property's logical parent. Note: The Property- Moving UI can be used to change the parent. Format: accounts/account, properties/property Example: "accounts/100", "properties/101" Corresponds to the JSON property parent

Returns:

  • (String)


1781
1782
1783
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1781

def parent
  @parent
end

#property_typeString

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API. Corresponds to the JSON property propertyType

Returns:

  • (String)


1789
1790
1791
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1789

def property_type
  @property_type
end

#service_levelString

Output only. The Google Analytics service level that applies to this property. Corresponds to the JSON property serviceLevel

Returns:

  • (String)


1794
1795
1796
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1794

def service_level
  @service_level
end

#time_zoneString

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles" Corresponds to the JSON property timeZone

Returns:

  • (String)


1803
1804
1805
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1803

def time_zone
  @time_zone
end

#update_timeString

Output only. Time when entity payload fields were last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1808

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1815

def update!(**args)
  @account = args[:account] if args.key?(:account)
  @create_time = args[:create_time] if args.key?(:create_time)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @industry_category = args[:industry_category] if args.key?(:industry_category)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @property_type = args[:property_type] if args.key?(:property_type)
  @service_level = args[:service_level] if args.key?(:service_level)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @update_time = args[:update_time] if args.key?(:update_time)
end