class Google::Apis::BigqueryV2::RowAccessPolicy

Represents access on a subset of rows on the specified table, defined by its filter predicate. Access to the subset of rows is controlled by its IAM policy.

Attributes

creation_time[RW]

Output only. The time when this row access policy was created, in milliseconds since the epoch. Corresponds to the JSON property `creationTime` @return [String]

etag[RW]

Output only. A hash of this resource. Corresponds to the JSON property `etag` @return [String]

filter_predicate[RW]

Required. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region=“EU” date_field = CAST('2019-9- 27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0 Corresponds to the JSON property `filterPredicate` @return [String]

last_modified_time[RW]

Output only. The time when this row access policy was last modified, in milliseconds since the epoch. Corresponds to the JSON property `lastModifiedTime` @return [String]

row_access_policy_reference[RW]

Required. Reference describing the ID of this row access policy. Corresponds to the JSON property `rowAccessPolicyReference` @return [Google::Apis::BigqueryV2::RowAccessPolicyReference]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 5781
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 5786
def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @etag = args[:etag] if args.key?(:etag)
  @filter_predicate = args[:filter_predicate] if args.key?(:filter_predicate)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @row_access_policy_reference = args[:row_access_policy_reference] if args.key?(:row_access_policy_reference)
end