Class: Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
A metric actively restricted in creating the report.
Instance Attribute Summary collapse
-
#metric_name ⇒ String
The name of the restricted metric.
-
#restricted_metric_types ⇒ Array<String>
The reason for this metric's restriction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActiveMetricRestriction
constructor
A new instance of ActiveMetricRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActiveMetricRestriction
Returns a new instance of ActiveMetricRestriction.
39 40 41 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_name ⇒ String
The name of the restricted metric.
Corresponds to the JSON property metricName
32 33 34 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 32 def metric_name @metric_name end |
#restricted_metric_types ⇒ Array<String>
The reason for this metric's restriction.
Corresponds to the JSON property restrictedMetricTypes
37 38 39 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 37 def restricted_metric_types @restricted_metric_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 44 def update!(**args) @metric_name = args[:metric_name] if args.key?(:metric_name) @restricted_metric_types = args[:restricted_metric_types] if args.key?(:restricted_metric_types) end |