Class: Google::Apis::BigquerydatapolicyV2::CreateDataPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatapolicyV2::CreateDataPolicyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquerydatapolicy_v2/classes.rb,
lib/google/apis/bigquerydatapolicy_v2/representations.rb,
lib/google/apis/bigquerydatapolicy_v2/representations.rb
Overview
Request message for the CreateDataPolicy method.
Instance Attribute Summary collapse
-
#data_policy ⇒ Google::Apis::BigquerydatapolicyV2::DataPolicy
Represents the label-policy binding.
-
#data_policy_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateDataPolicyRequest
constructor
A new instance of CreateDataPolicyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateDataPolicyRequest
Returns a new instance of CreateDataPolicyRequest.
236 237 238 |
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_policy ⇒ Google::Apis::BigquerydatapolicyV2::DataPolicy
Represents the label-policy binding.
Corresponds to the JSON property dataPolicy
227 228 229 |
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 227 def data_policy @data_policy end |
#data_policy_id ⇒ String
Required. User-assigned (human readable) ID of the data policy that needs to
be unique within a project. Used as data_policy_id in part of the resource
name.
Corresponds to the JSON property dataPolicyId
234 235 236 |
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 234 def data_policy_id @data_policy_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
241 242 243 244 |
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 241 def update!(**args) @data_policy = args[:data_policy] if args.key?(:data_policy) @data_policy_id = args[:data_policy_id] if args.key?(:data_policy_id) end |