Class: Google::Apis::AnalyticsV3::Account

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

Overview

JSON template for Analytics account entry.

Defined Under Namespace

Classes: ChildLink, Permissions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Account

Returns a new instance of Account.



76
77
78
# File 'generated/google/apis/analytics_v3/classes.rb', line 76

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

Instance Attribute Details

Child link for an account entry. Points to the list of web properties for this account. Corresponds to the JSON property childLink



33
34
35
# File 'generated/google/apis/analytics_v3/classes.rb', line 33

def child_link
  @child_link
end

#createdDateTime

Time the account was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


38
39
40
# File 'generated/google/apis/analytics_v3/classes.rb', line 38

def created
  @created
end

#idString

Account ID. Corresponds to the JSON property id

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/analytics_v3/classes.rb', line 43

def id
  @id
end

#kindString

Resource type for Analytics account. Corresponds to the JSON property kind

Returns:

  • (String)


48
49
50
# File 'generated/google/apis/analytics_v3/classes.rb', line 48

def kind
  @kind
end

#nameString

Account name. Corresponds to the JSON property name

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/analytics_v3/classes.rb', line 53

def name
  @name
end

#permissionsGoogle::Apis::AnalyticsV3::Account::Permissions

Permissions the user has for this account. Corresponds to the JSON property permissions



58
59
60
# File 'generated/google/apis/analytics_v3/classes.rb', line 58

def permissions
  @permissions
end

Link for this account. Corresponds to the JSON property selfLink

Returns:

  • (String)


63
64
65
# File 'generated/google/apis/analytics_v3/classes.rb', line 63

def self_link
  @self_link
end

#starredBoolean Also known as: starred?

Indicates whether this account is starred or not. Corresponds to the JSON property starred

Returns:

  • (Boolean)


68
69
70
# File 'generated/google/apis/analytics_v3/classes.rb', line 68

def starred
  @starred
end

#updatedDateTime

Time the account was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


74
75
76
# File 'generated/google/apis/analytics_v3/classes.rb', line 74

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81
82
83
84
85
86
87
88
89
90
91
# File 'generated/google/apis/analytics_v3/classes.rb', line 81

def update!(**args)
  @child_link = args[:child_link] if args.key?(:child_link)
  @created = args[:created] if args.key?(:created)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @permissions = args[:permissions] if args.key?(:permissions)
  @self_link = args[:self_link] if args.key?(:self_link)
  @starred = args[:starred] if args.key?(:starred)
  @updated = args[:updated] if args.key?(:updated)
end