Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
A data requirement.
Instance Attribute Summary collapse
-
#condition ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr
Represents a textual expression in the Common Expression Language (CEL) syntax.
-
#description ⇒ String
The description of the requirement.
-
#display_name ⇒ String
The name of the requirement.
-
#metric_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding>
A list of the metric bindings to be used in
condition
. -
#threshold_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding>
A list of threshold bindings to be used in
condition
. -
#type ⇒ String
The requirement type, used as an identifier.
-
#violation_samples_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding>
A list of the metric bindings to be used in
condition
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirement
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRequirement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirement
Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirement.
10187 10188 10189 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr
Represents a textual expression in the Common Expression Language (CEL) syntax.
CEL is a C-like expression language. The syntax and semantics of CEL are
documented at https://github.com/google/cel-spec. Example (Comparison): title:
"Summary size limit" description: "Determines if a summary is less than 100
chars" expression: "document.summary.size() < 100" Example (Equality): title: "
Requestor is owner" description: "Determines if requestor is the document
owner" expression: "document.owner == request.auth.claims.email" Example (
Logic): title: "Public documents" description: "Determine whether the document
should be publicly visible" expression: "document.type != 'private' &&
document.type != 'internal'" Example (Data Manipulation): title: "Notification
string" description: "Create a notification string with a timestamp."
expression: "'New message received at ' + string(document.create_time)" The
exact variables and functions that may be referenced within an expression are
determined by the service that evaluates it. See the service documentation for
additional information.
Corresponds to the JSON property condition
10151 10152 10153 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10151 def condition @condition end |
#description ⇒ String
The description of the requirement.
Corresponds to the JSON property description
10156 10157 10158 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10156 def description @description end |
#display_name ⇒ String
The name of the requirement.
Corresponds to the JSON property displayName
10161 10162 10163 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10161 def display_name @display_name end |
#metric_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding>
A list of the metric bindings to be used in condition
.
Corresponds to the JSON property metricBindings
10166 10167 10168 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10166 def metric_bindings @metric_bindings end |
#threshold_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding>
A list of threshold bindings to be used in condition
.
Corresponds to the JSON property thresholdBindings
10171 10172 10173 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10171 def threshold_bindings @threshold_bindings end |
#type ⇒ String
The requirement type, used as an identifier. Must be unique. The type should
prefix with service name to avoid possible collision. It's encouraged to use
natural hierarchical grouping for similar requirements. Examples: * library.
googleapis.com/books/min_available_books
* discoveryengine.googleapis.com/
media_rec/recommended_for_you/conversion_rate
Corresponds to the JSON property type
10180 10181 10182 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10180 def type @type end |
#violation_samples_bindings ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding>
A list of the metric bindings to be used in condition
.
Corresponds to the JSON property violationSamplesBindings
10185 10186 10187 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10185 def violation_samples_bindings @violation_samples_bindings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10192 10193 10194 10195 10196 10197 10198 10199 10200 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10192 def update!(**args) @condition = args[:condition] if args.key?(:condition) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @metric_bindings = args[:metric_bindings] if args.key?(:metric_bindings) @threshold_bindings = args[:threshold_bindings] if args.key?(:threshold_bindings) @type = args[:type] if args.key?(:type) @violation_samples_bindings = args[:violation_samples_bindings] if args.key?(:violation_samples_bindings) end |