Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootRequestResponseTakedownResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootRequestResponseTakedownResult

Returns a new instance of LearningGenaiRootRequestResponseTakedownResult.



31596
31597
31598
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31596

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

False when response has to be taken down per above config. Corresponds to the JSON property allowed

Returns:

  • (Boolean)


31582
31583
31584
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31582

def allowed
  @allowed
end

#request_takedown_regexString

Regex used to match the request. Corresponds to the JSON property requestTakedownRegex

Returns:

  • (String)


31588
31589
31590
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31588

def request_takedown_regex
  @request_takedown_regex
end

#response_takedown_regexString

Regex used to decide that response should be taken down. Empty when response is kept. Corresponds to the JSON property responseTakedownRegex

Returns:

  • (String)


31594
31595
31596
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31594

def response_takedown_regex
  @response_takedown_regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31601
31602
31603
31604
31605
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31601

def update!(**args)
  @allowed = args[:allowed] if args.key?(:allowed)
  @request_takedown_regex = args[:request_takedown_regex] if args.key?(:request_takedown_regex)
  @response_takedown_regex = args[:response_takedown_regex] if args.key?(:response_takedown_regex)
end