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.



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

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



2583
2584
2585
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2583

def active_metric_restrictions
  @active_metric_restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2590
2591
2592
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2590

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