Class: Google::Apis::AreainsightsV1::ComputeInsightsRequest

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

Overview

Request for the ComputeInsights RPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeInsightsRequest

Returns a new instance of ComputeInsightsRequest.



75
76
77
# File 'lib/google/apis/areainsights_v1/classes.rb', line 75

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

Instance Attribute Details

#filterGoogle::Apis::AreainsightsV1::Filter

Filters for the ComputeInsights RPC. Corresponds to the JSON property filter



67
68
69
# File 'lib/google/apis/areainsights_v1/classes.rb', line 67

def filter
  @filter
end

#insightsArray<String>

Required. Insights to compute. Currently only INSIGHT_COUNT and INSIGHT_PLACES are supported. Corresponds to the JSON property insights

Returns:

  • (Array<String>)


73
74
75
# File 'lib/google/apis/areainsights_v1/classes.rb', line 73

def insights
  @insights
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80
81
82
83
# File 'lib/google/apis/areainsights_v1/classes.rb', line 80

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