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.



2178
2179
2180
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2178

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



2176
2177
2178
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2176

def active_metric_restrictions
  @active_metric_restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2183
2184
2185
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2183

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