Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary

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 metadata for a GA4 property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaPropertySummary

Returns a new instance of GoogleAnalyticsAdminV1alphaPropertySummary.



4926
4927
4928
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4926

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


4906
4907
4908
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4906

def display_name
  @display_name
end

#parentString

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/200" Corresponds to the JSON property parent

Returns:

  • (String)


4913
4914
4915
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4913

def parent
  @parent
end

#propertyString

Resource name of property referred to by this property summary Format: properties/property_id Example: "properties/1000" Corresponds to the JSON property property

Returns:

  • (String)


4919
4920
4921
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4919

def property
  @property
end

#property_typeString

The property's property type. Corresponds to the JSON property propertyType

Returns:

  • (String)


4924
4925
4926
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4924

def property_type
  @property_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4931
4932
4933
4934
4935
4936
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4931

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @parent = args[:parent] if args.key?(:parent)
  @property = args[:property] if args.key?(:property)
  @property_type = args[:property_type] if args.key?(:property_type)
end