Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaAccount

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 account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaAccount

Returns a new instance of GoogleAnalyticsAdminV1betaAccount.



615
616
617
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 615

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


578
579
580
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 578

def create_time
  @create_time
end

#deletedBoolean Also known as: deleted?

Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested. Corresponds to the JSON property deleted

Returns:

  • (Boolean)


584
585
586
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 584

def deleted
  @deleted
end

#display_nameString

Required. Human-readable display name for this account. Corresponds to the JSON property displayName

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 590

def display_name
  @display_name
end

#gmp_organizationString

Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/org_id Corresponds to the JSON property gmpOrganization

Returns:

  • (String)


597
598
599
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 597

def gmp_organization
  @gmp_organization
end

#nameString

Output only. Resource name of this account. Format: accounts/account Example: "accounts/100" Corresponds to the JSON property name

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 603

def name
  @name
end

#region_codeString

Country of business. Must be a Unicode CLDR region code. Corresponds to the JSON property regionCode

Returns:

  • (String)


608
609
610
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 608

def region_code
  @region_code
end

#update_timeString

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

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 613

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



620
621
622
623
624
625
626
627
628
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 620

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deleted = args[:deleted] if args.key?(:deleted)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gmp_organization = args[:gmp_organization] if args.key?(:gmp_organization)
  @name = args[:name] if args.key?(:name)
  @region_code = args[:region_code] if args.key?(:region_code)
  @update_time = args[:update_time] if args.key?(:update_time)
end