# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse.

The schema restrictions actively enforced in creating this report. To learn
more, see [Access and data-restriction
management](https://support.google.com/analytics/answer/10851388).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #active_metric_restrictions

    def active_metric_restrictions() -> ::Array<::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse-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`.

### #active_metric_restrictions=

    def active_metric_restrictions=(value) -> ::Array<::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse-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`.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse-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`.