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.



2126
2127
2128
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2126

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



2124
2125
2126
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2124

def active_metric_restrictions
  @active_metric_restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2131
2132
2133
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2131

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