Class: Google::Apis::CloudbillingV1beta::GenerateInsightsRequest

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

Overview

Request for GenerateInsights.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateInsightsRequest

Returns a new instance of GenerateInsightsRequest.



374
375
376
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 374

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

Instance Attribute Details

#filterString

Optional. Filters cost data by service id. Follows https://google.aip.dev/160 for the filter syntax. eg. filter: "service = 'C7E2-9256-1C43'" Corresponds to the JSON property filter

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 352

def filter
  @filter
end

#overridden_max_iteration_countsFixnum

Optional. Overrides the maximum iterations for any selected strategy. Corresponds to the JSON property overriddenMaxIterationCounts

Returns:

  • (Fixnum)


357
358
359
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 357

def overridden_max_iteration_counts
  @overridden_max_iteration_counts
end

#parentsArray<Google::Apis::CloudbillingV1beta::BillingDataResource>

Optional. The billing account or projects to analyze. Corresponds to the JSON property parents



362
363
364
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 362

def parents
  @parents
end

#promptString

Required. The natural language prompt from the user. Corresponds to the JSON property prompt

Returns:

  • (String)


367
368
369
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 367

def prompt
  @prompt
end

#user_contextGoogle::Apis::CloudbillingV1beta::UserContext

Additional context for personalization (e.g., user persona, role). Corresponds to the JSON property userContext



372
373
374
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 372

def user_context
  @user_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



379
380
381
382
383
384
385
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 379

def update!(**args)
  @filter = args[:filter] if args.key?(:filter)
  @overridden_max_iteration_counts = args[:overridden_max_iteration_counts] if args.key?(:overridden_max_iteration_counts)
  @parents = args[:parents] if args.key?(:parents)
  @prompt = args[:prompt] if args.key?(:prompt)
  @user_context = args[:user_context] if args.key?(:user_context)
end