Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointRestriction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointRestriction

Returns a new instance of GoogleCloudAiplatformV1IndexDatapointRestriction.



10347
10348
10349
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10347

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_listArray<String>

The attributes to allow in this namespace. e.g.: 'red' Corresponds to the JSON property allowList

Returns:

  • (Array<String>)


10335
10336
10337
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10335

def allow_list
  @allow_list
end

#deny_listArray<String>

The attributes to deny in this namespace. e.g.: 'blue' Corresponds to the JSON property denyList

Returns:

  • (Array<String>)


10340
10341
10342
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10340

def deny_list
  @deny_list
end

#namespaceString

The namespace of this restriction. e.g.: color. Corresponds to the JSON property namespace

Returns:

  • (String)


10345
10346
10347
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10345

def namespace
  @namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10352
10353
10354
10355
10356
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10352

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