Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointRestriction
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).
Instance Attribute Summary collapse
-
#allow_list ⇒ Array<String>
The attributes to allow in this namespace.
-
#deny_list ⇒ Array<String>
The attributes to deny in this namespace.
-
#namespace ⇒ String
The namespace of this restriction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointRestriction
constructor
A new instance of GoogleCloudAiplatformV1IndexDatapointRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointRestriction
Returns a new instance of GoogleCloudAiplatformV1IndexDatapointRestriction.
14355 14356 14357 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14355 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_list ⇒ Array<String>
The attributes to allow in this namespace. e.g.: 'red'
Corresponds to the JSON property allowList
14343 14344 14345 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14343 def allow_list @allow_list end |
#deny_list ⇒ Array<String>
The attributes to deny in this namespace. e.g.: 'blue'
Corresponds to the JSON property denyList
14348 14349 14350 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14348 def deny_list @deny_list end |
#namespace ⇒ String
The namespace of this restriction. e.g.: color.
Corresponds to the JSON property namespace
14353 14354 14355 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14353 def namespace @namespace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14360 14361 14362 14363 14364 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14360 def update!(**args) @allow_list = args[:allow_list] if args.key?(:allow_list) @deny_list = args[:deny_list] if args.key?(:deny_list) @namespace = args[:namespace] if args.key?(:namespace) end |