Class: Google::Apis::WorkloadmanagerV1::Evaluation

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

Overview

LINT.IfChange Message describing Evaluation object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Evaluation

Returns a new instance of Evaluation.



328
329
330
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 328

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

Instance Attribute Details

#big_query_destinationGoogle::Apis::WorkloadmanagerV1::BigQueryDestination

Message describing big query destination Corresponds to the JSON property bigQueryDestination



268
269
270
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 268

def big_query_destination
  @big_query_destination
end

#create_timeString

Output only. [Output only] Create time stamp Corresponds to the JSON property createTime

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 273

def create_time
  @create_time
end

#custom_rules_bucketString

The Cloud Storage bucket name for custom rules. Corresponds to the JSON property customRulesBucket

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 278

def custom_rules_bucket
  @custom_rules_bucket
end

#descriptionString

Description of the Evaluation Corresponds to the JSON property description

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 283

def description
  @description
end

#labelsHash<String,String>

Labels as key value pairs Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


288
289
290
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 288

def labels
  @labels
end

#nameString

name of resource names have the form 'projects/project_id/locations/ location_id/evaluations/evaluation_id' Corresponds to the JSON property name

Returns:

  • (String)


294
295
296
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 294

def name
  @name
end

#resource_filterGoogle::Apis::WorkloadmanagerV1::ResourceFilter

Message describing resource filters Corresponds to the JSON property resourceFilter



299
300
301
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 299

def resource_filter
  @resource_filter
end

#resource_statusGoogle::Apis::WorkloadmanagerV1::ResourceStatus

Message describing resource status Corresponds to the JSON property resourceStatus



304
305
306
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 304

def resource_status
  @resource_status
end

#rule_namesArray<String>

the name of the rule Corresponds to the JSON property ruleNames

Returns:

  • (Array<String>)


309
310
311
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 309

def rule_names
  @rule_names
end

#rule_versionsArray<String>

Output only. [Output only] The updated rule ids if exist. Corresponds to the JSON property ruleVersions

Returns:

  • (Array<String>)


314
315
316
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 314

def rule_versions
  @rule_versions
end

#scheduleString

crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *" , "0 0 */7 * *", Corresponds to the JSON property schedule

Returns:

  • (String)


321
322
323
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 321

def schedule
  @schedule
end

#update_timeString

Output only. [Output only] Update time stamp Corresponds to the JSON property updateTime

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 326

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 333

def update!(**args)
  @big_query_destination = args[:big_query_destination] if args.key?(:big_query_destination)
  @create_time = args[:create_time] if args.key?(:create_time)
  @custom_rules_bucket = args[:custom_rules_bucket] if args.key?(:custom_rules_bucket)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @resource_filter = args[:resource_filter] if args.key?(:resource_filter)
  @resource_status = args[:resource_status] if args.key?(:resource_status)
  @rule_names = args[:rule_names] if args.key?(:rule_names)
  @rule_versions = args[:rule_versions] if args.key?(:rule_versions)
  @schedule = args[:schedule] if args.key?(:schedule)
  @update_time = args[:update_time] if args.key?(:update_time)
end