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.
-
#requirement_result ⇒ String
Requirement result, e.g.
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.
4404 4405 4406 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult>
Metric results.
Corresponds to the JSON property metricResults
4366 4367 4368 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4366 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 requirement_result
may not accurately reflect any Event
and Product Catalog updates performed after this time.
Corresponds to the JSON property oldestMetricTimestamp
4373 4374 4375 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4373 def @oldest_metric_timestamp end |
#requirement ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
A data requirement.
Corresponds to the JSON property requirement
4378 4379 4380 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4378 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
4397 4398 4399 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4397 def requirement_condition @requirement_condition end |
#requirement_result ⇒ String
Requirement result, e.g. pass or fail.
Corresponds to the JSON property requirementResult
4402 4403 4404 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4402 def requirement_result @requirement_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4409 4410 4411 4412 4413 4414 4415 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4409 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) @requirement_result = args[:requirement_result] if args.key?(:requirement_result) end |