Class: Google::Apis::FirebaseV1beta1::AddGoogleAnalyticsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddGoogleAnalyticsRequest

Returns a new instance of AddGoogleAnalyticsRequest.

[View source]

86
87
88
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 86

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

Instance Attribute Details

#analytics_account_idString

The ID for the existing Google Analytics account that you want to link with the FirebaseProject. Specifying this field will provision a new Google Analytics property in your Google Analytics account and associate the new property with the FirebaseProject. Corresponds to the JSON property analyticsAccountId

Returns:

  • (String)

78
79
80
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 78

def 
  @analytics_account_id
end

#analytics_property_idString

The ID for the existing Google Analytics property that you want to associate with the FirebaseProject. Corresponds to the JSON property analyticsPropertyId

Returns:

  • (String)

84
85
86
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 84

def analytics_property_id
  @analytics_property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

91
92
93
94
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 91

def update!(**args)
  @analytics_account_id = args[:analytics_account_id] if args.key?(:analytics_account_id)
  @analytics_property_id = args[:analytics_property_id] if args.key?(:analytics_property_id)
end