Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Condition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Defines circumstances to be checked before allowing a behavior

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Condition

Returns a new instance of GoogleCloudDiscoveryengineV1Condition.



2561
2562
2563
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2561

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#active_time_rangeArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionTimeRange>

Range of time(s) specifying when condition is active. Maximum of 10 time ranges. Corresponds to the JSON property activeTimeRange



2554
2555
2556
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2554

def active_time_range
  @active_time_range
end

#query_termsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionQueryTerm>

Search only A list of terms to match the query on. Maximum of 10 query terms. Corresponds to the JSON property queryTerms



2559
2560
2561
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2559

def query_terms
  @query_terms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2566
2567
2568
2569
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2566

def update!(**args)
  @active_time_range = args[:active_time_range] if args.key?(:active_time_range)
  @query_terms = args[:query_terms] if args.key?(:query_terms)
end