Skip to content

Commit d8ee543

Browse files
feat: Automated regeneration of workloadmanager v1 client (googleapis#20406)
Auto-created at 2024-10-20 09:18:55 +0000 using the toys pull request generator.
1 parent 4ab20ab commit d8ee543

File tree

5 files changed

+82
-2
lines changed

5 files changed

+82
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338486,6 +338486,8 @@
338486338486
"/workloadmanager:v1/Execution/labels": labels
338487338487
"/workloadmanager:v1/Execution/labels/label": label
338488338488
"/workloadmanager:v1/Execution/name": name
338489+
"/workloadmanager:v1/Execution/ruleResults": rule_results
338490+
"/workloadmanager:v1/Execution/ruleResults/rule_result": rule_result
338489338491
"/workloadmanager:v1/Execution/runType": run_type
338490338492
"/workloadmanager:v1/Execution/startTime": start_time
338491338493
"/workloadmanager:v1/Execution/state": state
@@ -338652,6 +338654,12 @@
338652338654
"/workloadmanager:v1/Rule/tags": tags
338653338655
"/workloadmanager:v1/Rule/tags/tag": tag
338654338656
"/workloadmanager:v1/Rule/uri": uri
338657+
"/workloadmanager:v1/RuleExecutionResult": rule_execution_result
338658+
"/workloadmanager:v1/RuleExecutionResult/message": message
338659+
"/workloadmanager:v1/RuleExecutionResult/resultCount": result_count
338660+
"/workloadmanager:v1/RuleExecutionResult/rule": rule
338661+
"/workloadmanager:v1/RuleExecutionResult/scannedResourceCount": scanned_resource_count
338662+
"/workloadmanager:v1/RuleExecutionResult/state": state
338655338663
"/workloadmanager:v1/RunEvaluationRequest": run_evaluation_request
338656338664
"/workloadmanager:v1/RunEvaluationRequest/execution": execution
338657338665
"/workloadmanager:v1/RunEvaluationRequest/executionId": execution_id

generated/google-apis-workloadmanager_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-workloadmanager_v1
22

3+
### v0.26.0 (2024-10-20)
4+
5+
* Regenerated from discovery document revision 20241009
6+
37
### v0.25.0 (2024-10-13)
48

59
* Regenerated from discovery document revision 20241002

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ class Execution
381381
# @return [String]
382382
attr_accessor :name
383383

384+
# Output only. execution result summary per rule
385+
# Corresponds to the JSON property `ruleResults`
386+
# @return [Array<Google::Apis::WorkloadmanagerV1::RuleExecutionResult>]
387+
attr_accessor :rule_results
388+
384389
# type represent whether the execution executed directly by user or scheduled
385390
# according evaluation.schedule field.
386391
# Corresponds to the JSON property `runType`
@@ -409,6 +414,7 @@ def update!(**args)
409414
@inventory_time = args[:inventory_time] if args.key?(:inventory_time)
410415
@labels = args[:labels] if args.key?(:labels)
411416
@name = args[:name] if args.key?(:name)
417+
@rule_results = args[:rule_results] if args.key?(:rule_results)
412418
@run_type = args[:run_type] if args.key?(:run_type)
413419
@start_time = args[:start_time] if args.key?(:start_time)
414420
@state = args[:state] if args.key?(:state)
@@ -1343,6 +1349,49 @@ def update!(**args)
13431349
end
13441350
end
13451351

1352+
# Message for execution result summary per rule
1353+
class RuleExecutionResult
1354+
include Google::Apis::Core::Hashable
1355+
1356+
# Execution message, if any
1357+
# Corresponds to the JSON property `message`
1358+
# @return [String]
1359+
attr_accessor :message
1360+
1361+
# Number of violations
1362+
# Corresponds to the JSON property `resultCount`
1363+
# @return [Fixnum]
1364+
attr_accessor :result_count
1365+
1366+
# rule name
1367+
# Corresponds to the JSON property `rule`
1368+
# @return [String]
1369+
attr_accessor :rule
1370+
1371+
# Number of total scanned resources
1372+
# Corresponds to the JSON property `scannedResourceCount`
1373+
# @return [Fixnum]
1374+
attr_accessor :scanned_resource_count
1375+
1376+
# Output only. The execution status
1377+
# Corresponds to the JSON property `state`
1378+
# @return [String]
1379+
attr_accessor :state
1380+
1381+
def initialize(**args)
1382+
update!(**args)
1383+
end
1384+
1385+
# Update properties of this object
1386+
def update!(**args)
1387+
@message = args[:message] if args.key?(:message)
1388+
@result_count = args[:result_count] if args.key?(:result_count)
1389+
@rule = args[:rule] if args.key?(:rule)
1390+
@scanned_resource_count = args[:scanned_resource_count] if args.key?(:scanned_resource_count)
1391+
@state = args[:state] if args.key?(:state)
1392+
end
1393+
end
1394+
13461395
# Message for creating a Execution
13471396
class RunEvaluationRequest
13481397
include Google::Apis::Core::Hashable

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WorkloadmanagerV1
1818
# Version of the google-apis-workloadmanager_v1 gem
19-
GEM_VERSION = "0.25.0"
19+
GEM_VERSION = "0.26.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241002"
25+
REVISION = "20241009"
2626
end
2727
end
2828
end

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
244244
include Google::Apis::Core::JsonObjectSupport
245245
end
246246

247+
class RuleExecutionResult
248+
class Representation < Google::Apis::Core::JsonRepresentation; end
249+
250+
include Google::Apis::Core::JsonObjectSupport
251+
end
252+
247253
class RunEvaluationRequest
248254
class Representation < Google::Apis::Core::JsonRepresentation; end
249255

@@ -515,6 +521,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
515521
property :inventory_time, as: 'inventoryTime'
516522
hash :labels, as: 'labels'
517523
property :name, as: 'name'
524+
collection :rule_results, as: 'ruleResults', class: Google::Apis::WorkloadmanagerV1::RuleExecutionResult, decorator: Google::Apis::WorkloadmanagerV1::RuleExecutionResult::Representation
525+
518526
property :run_type, as: 'runType'
519527
property :start_time, as: 'startTime'
520528
property :state, as: 'state'
@@ -788,6 +796,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
788796
end
789797
end
790798

799+
class RuleExecutionResult
800+
# @private
801+
class Representation < Google::Apis::Core::JsonRepresentation
802+
property :message, as: 'message'
803+
property :result_count, :numeric_string => true, as: 'resultCount'
804+
property :rule, as: 'rule'
805+
property :scanned_resource_count, :numeric_string => true, as: 'scannedResourceCount'
806+
property :state, as: 'state'
807+
end
808+
end
809+
791810
class RunEvaluationRequest
792811
# @private
793812
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)