Class: Google::Apis::AnalyticsdataV1beta::SchemaRestrictionResponse

Inherits:
Object
  • Object
show all
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

The schema restrictions actively enforced in creating this report. To learn more, see Access and data-restriction management.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchemaRestrictionResponse

Returns a new instance of SchemaRestrictionResponse.



2581
2582
2583
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2581

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

Instance Attribute Details

#active_metric_restrictionsArray<Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction>

All restrictions actively enforced in creating the report. For example, purchaseRevenue always has the restriction type REVENUE_DATA. However, this active response restriction is only populated if the user's custom role disallows access to REVENUE_DATA. Corresponds to the JSON property activeMetricRestrictions



2579
2580
2581
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2579

def active_metric_restrictions
  @active_metric_restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2586
2587
2588
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2586

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