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.



2139
2140
2141
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2139

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



2137
2138
2139
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2137

def active_metric_restrictions
  @active_metric_restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2144
2145
2146
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2144

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