Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootRequestResponseTakedownResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::LearningGenaiRootRequestResponseTakedownResult
- 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
-
#allowed ⇒ Boolean
(also: #allowed?)
False when response has to be taken down per above config.
-
#request_takedown_regex ⇒ String
Regex used to match the request.
-
#response_takedown_regex ⇒ String
Regex used to decide that response should be taken down.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootRequestResponseTakedownResult
constructor
A new instance of LearningGenaiRootRequestResponseTakedownResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootRequestResponseTakedownResult
Returns a new instance of LearningGenaiRootRequestResponseTakedownResult.
36561 36562 36563 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36561 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean Also known as: allowed?
False when response has to be taken down per above config.
Corresponds to the JSON property allowed
36547 36548 36549 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36547 def allowed @allowed end |
#request_takedown_regex ⇒ String
Regex used to match the request.
Corresponds to the JSON property requestTakedownRegex
36553 36554 36555 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36553 def request_takedown_regex @request_takedown_regex end |
#response_takedown_regex ⇒ String
Regex used to decide that response should be taken down. Empty when response
is kept.
Corresponds to the JSON property responseTakedownRegex
36559 36560 36561 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36559 def response_takedown_regex @response_takedown_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36566 36567 36568 36569 36570 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36566 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 |