Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexDatapointRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/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) ⇒ GoogleCloudAiplatformV1beta1IndexDatapointRestriction

Returns a new instance of GoogleCloudAiplatformV1beta1IndexDatapointRestriction.



7938
7939
7940
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7938

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

Instance Attribute Details

#allow_listArray<String>

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

Returns:

  • (Array<String>)


7926
7927
7928
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7926

def allow_list
  @allow_list
end

#deny_listArray<String>

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

Returns:

  • (Array<String>)


7931
7932
7933
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7931

def deny_list
  @deny_list
end

#namespaceString

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

Returns:

  • (String)


7936
7937
7938
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7936

def namespace
  @namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7943
7944
7945
7946
7947
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7943

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