Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySpec
- 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
Spec for safety metric.
Instance Attribute Summary collapse
-
#version ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SafetySpec
constructor
A new instance of GoogleCloudAiplatformV1SafetySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SafetySpec
Returns a new instance of GoogleCloudAiplatformV1SafetySpec.
22172 22173 22174 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#version ⇒ Fixnum
Optional. Which version to use for evaluation.
Corresponds to the JSON property version
22170 22171 22172 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22170 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22177 22178 22179 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22177 def update!(**args) @version = args[:version] if args.key?(:version) end |