Skip to content

Commit f180d6a

Browse files
feat: Automated regeneration of workloadmanager v1 client
1 parent 95662ab commit f180d6a

File tree

5 files changed

+64
-6
lines changed

5 files changed

+64
-6
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402651,6 +402651,10 @@
402651402651
"/workloadmanager:v1/RuleExecutionResult/rule": rule
402652402652
"/workloadmanager:v1/RuleExecutionResult/scannedResourceCount": scanned_resource_count
402653402653
"/workloadmanager:v1/RuleExecutionResult/state": state
402654+
"/workloadmanager:v1/RuleOutput": rule_output
402655+
"/workloadmanager:v1/RuleOutput/details": details
402656+
"/workloadmanager:v1/RuleOutput/details/detail": detail
402657+
"/workloadmanager:v1/RuleOutput/message": message
402654402658
"/workloadmanager:v1/RunEvaluationRequest": run_evaluation_request
402655402659
"/workloadmanager:v1/RunEvaluationRequest/execution": execution
402656402660
"/workloadmanager:v1/RunEvaluationRequest/executionId": execution_id
@@ -402871,6 +402875,8 @@
402871402875
"/workloadmanager:v1/ViolationDetails/asset": asset
402872402876
"/workloadmanager:v1/ViolationDetails/observed": observed
402873402877
"/workloadmanager:v1/ViolationDetails/observed/observed": observed
402878+
"/workloadmanager:v1/ViolationDetails/ruleOutput": rule_output
402879+
"/workloadmanager:v1/ViolationDetails/ruleOutput/rule_output": rule_output
402874402880
"/workloadmanager:v1/ViolationDetails/serviceAccount": service_account
402875402881
"/workloadmanager:v1/WorkloadProfile": workload_profile
402876402882
"/workloadmanager:v1/WorkloadProfile/application": application

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.47.0 (2026-01-25)
4+
5+
* Regenerated from discovery document revision 20260107
6+
37
### v0.46.0 (2025-12-14)
48

59
* Regenerated from discovery document revision 20251112

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

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,10 @@ def update!(**args)
750750
class ExternalDataSources
751751
include Google::Apis::Core::Hashable
752752

753-
# Required. The asset type of the external data source this can be one of go/cai-
754-
# asset-types to override the default asset type or it can be a custom type
755-
# defined by the user custom type must match the asset type in the rule
753+
# Required. The asset type of the external data source. This can be a supported
754+
# Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/
755+
# docs/supported-asset-types) to override the default asset type, or it can be a
756+
# custom type defined by the user.
756757
# Corresponds to the JSON property `assetType`
757758
# @return [String]
758759
attr_accessor :asset_type
@@ -1696,6 +1697,31 @@ def update!(**args)
16961697
end
16971698
end
16981699

1700+
# The rule output of the violation.
1701+
class RuleOutput
1702+
include Google::Apis::Core::Hashable
1703+
1704+
# Output only. Violation details generated by rule.
1705+
# Corresponds to the JSON property `details`
1706+
# @return [Hash<String,String>]
1707+
attr_accessor :details
1708+
1709+
# Output only. The message generated by rule.
1710+
# Corresponds to the JSON property `message`
1711+
# @return [String]
1712+
attr_accessor :message
1713+
1714+
def initialize(**args)
1715+
update!(**args)
1716+
end
1717+
1718+
# Update properties of this object
1719+
def update!(**args)
1720+
@details = args[:details] if args.key?(:details)
1721+
@message = args[:message] if args.key?(:message)
1722+
end
1723+
end
1724+
16991725
# Message for creating a Execution
17001726
class RunEvaluationRequest
17011727
include Google::Apis::Core::Hashable
@@ -2894,11 +2920,16 @@ class ViolationDetails
28942920
# @return [String]
28952921
attr_accessor :asset
28962922

2897-
# Details of the violation. TODO(b/452163887)
2923+
# Details of the violation.
28982924
# Corresponds to the JSON property `observed`
28992925
# @return [Hash<String,String>]
29002926
attr_accessor :observed
29012927

2928+
# Output only. The rule output of the violation.
2929+
# Corresponds to the JSON property `ruleOutput`
2930+
# @return [Array<Google::Apis::WorkloadmanagerV1::RuleOutput>]
2931+
attr_accessor :rule_output
2932+
29022933
# The service account associated with the resource.
29032934
# Corresponds to the JSON property `serviceAccount`
29042935
# @return [String]
@@ -2912,6 +2943,7 @@ def initialize(**args)
29122943
def update!(**args)
29132944
@asset = args[:asset] if args.key?(:asset)
29142945
@observed = args[:observed] if args.key?(:observed)
2946+
@rule_output = args[:rule_output] if args.key?(:rule_output)
29152947
@service_account = args[:service_account] if args.key?(:service_account)
29162948
end
29172949
end

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.46.0"
19+
GEM_VERSION = "0.47.0"
2020

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

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
280280
include Google::Apis::Core::JsonObjectSupport
281281
end
282282

283+
class RuleOutput
284+
class Representation < Google::Apis::Core::JsonRepresentation; end
285+
286+
include Google::Apis::Core::JsonObjectSupport
287+
end
288+
283289
class RunEvaluationRequest
284290
class Representation < Google::Apis::Core::JsonRepresentation; end
285291

@@ -966,6 +972,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
966972
end
967973
end
968974

975+
class RuleOutput
976+
# @private
977+
class Representation < Google::Apis::Core::JsonRepresentation
978+
hash :details, as: 'details'
979+
property :message, as: 'message'
980+
end
981+
end
982+
969983
class RunEvaluationRequest
970984
# @private
971985
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1309,6 +1323,8 @@ class ViolationDetails
13091323
class Representation < Google::Apis::Core::JsonRepresentation
13101324
property :asset, as: 'asset'
13111325
hash :observed, as: 'observed'
1326+
collection :rule_output, as: 'ruleOutput', class: Google::Apis::WorkloadmanagerV1::RuleOutput, decorator: Google::Apis::WorkloadmanagerV1::RuleOutput::Representation
1327+
13121328
property :service_account, as: 'serviceAccount'
13131329
end
13141330
end

0 commit comments

Comments
 (0)