Class: Google::Apis::AiplatformV1::LearningGenaiRootRegexTakedownResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootRegexTakedownResult
- 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
Instance Attribute Summary collapse
-
#allowed ⇒ Boolean
(also: #allowed?)
False when query or response should be taken down due to match with a blocked regex, true otherwise.
-
#takedown_regex ⇒ String
Regex used to decide that query or response should be taken down.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootRegexTakedownResult
constructor
A new instance of LearningGenaiRootRegexTakedownResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootRegexTakedownResult
Returns a new instance of LearningGenaiRootRegexTakedownResult.
29636 29637 29638 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29636 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean Also known as: allowed?
False when query or response should be taken down due to match with a blocked
regex, true otherwise.
Corresponds to the JSON property allowed
29627 29628 29629 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29627 def allowed @allowed end |
#takedown_regex ⇒ String
Regex used to decide that query or response should be taken down. Empty when
query or response is kept.
Corresponds to the JSON property takedownRegex
29634 29635 29636 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29634 def takedown_regex @takedown_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29641 29642 29643 29644 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29641 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @takedown_regex = args[:takedown_regex] if args.key?(:takedown_regex) end |