Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
- 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
Response for the CheckRequirement method.
Instance Attribute Summary collapse
-
#metric_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult>
Metric results.
-
#oldest_metric_timestamp ⇒ String
Timestamp of the oldest calculated metric (i.e. the most stale metric).
-
#requirement ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
A data requirement.
-
#requirement_condition ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr
Represents a textual expression in the Common Expression Language (CEL) syntax.
-
#result ⇒ String
The result of the requirement.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse.
6337 6338 6339 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult>
Metric results.
Corresponds to the JSON property metricResults
6297 6298 6299 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6297 def metric_results @metric_results end |
#oldest_metric_timestamp ⇒ String
Timestamp of the oldest calculated metric (i.e. the most stale metric).
Indicates that the result
may not accurately reflect any Event and Product
Catalog updates performed after this time.
Corresponds to the JSON property oldestMetricTimestamp
6304 6305 6306 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6304 def @oldest_metric_timestamp end |
#requirement ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
A data requirement.
Corresponds to the JSON property requirement
6309 6310 6311 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6309 def requirement @requirement end |
#requirement_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 requirementCondition
6328 6329 6330 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6328 def requirement_condition @requirement_condition end |
#result ⇒ String
The result of the requirement. It should be one of the severity
fields in
the requirement definition. If any error happens during the evaluation, it
will be UNKNOWN
.
Corresponds to the JSON property result
6335 6336 6337 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6335 def result @result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6342 6343 6344 6345 6346 6347 6348 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6342 def update!(**args) @metric_results = args[:metric_results] if args.key?(:metric_results) @oldest_metric_timestamp = args[:oldest_metric_timestamp] if args.key?(:oldest_metric_timestamp) @requirement = args[:requirement] if args.key?(:requirement) @requirement_condition = args[:requirement_condition] if args.key?(:requirement_condition) @result = args[:result] if args.key?(:result) end |