Class: Google::Apis::BigqueryV2::RowAccessPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::RowAccessPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#creation_time ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#filter_predicate ⇒ String
Required.
-
#last_modified_time ⇒ String
Output only.
-
#row_access_policy_reference ⇒ Google::Apis::BigqueryV2::RowAccessPolicyReference
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RowAccessPolicy
constructor
A new instance of RowAccessPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RowAccessPolicy
Returns a new instance of RowAccessPolicy.
5428 5429 5430 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
Output only. The time when this row access policy was created, in milliseconds
since the epoch.
Corresponds to the JSON property creationTime
5401 5402 5403 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5401 def creation_time @creation_time end |
#etag ⇒ String
Output only. A hash of this resource.
Corresponds to the JSON property etag
5406 5407 5408 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5406 def etag @etag end |
#filter_predicate ⇒ String
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
5415 5416 5417 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5415 def filter_predicate @filter_predicate end |
#last_modified_time ⇒ String
Output only. The time when this row access policy was last modified, in
milliseconds since the epoch.
Corresponds to the JSON property lastModifiedTime
5421 5422 5423 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5421 def last_modified_time @last_modified_time end |
#row_access_policy_reference ⇒ Google::Apis::BigqueryV2::RowAccessPolicyReference
Required. Reference describing the ID of this row access policy.
Corresponds to the JSON property rowAccessPolicyReference
5426 5427 5428 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5426 def row_access_policy_reference @row_access_policy_reference end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5433 5434 5435 5436 5437 5438 5439 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5433 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 |