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 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.
4267 4268 4269 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult>
Metric results.
Corresponds to the JSON property metricResults
4229 4230 4231 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4229 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
4236 4237 4238 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4236 def @oldest_metric_timestamp end |
#requirement ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement
A data requirement.
Corresponds to the JSON property requirement
4241 4242 4243 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4241 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
4260 4261 4262 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4260 def requirement_condition @requirement_condition end |
#requirement_result ⇒ String
Requirement result, e.g. pass or fail.
Corresponds to the JSON property requirementResult
4265 4266 4267 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4265 def requirement_result @requirement_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4272 4273 4274 4275 4276 4277 4278 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4272 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 |