Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402651,6 +402651,10 @@
"/workloadmanager:v1/RuleExecutionResult/rule": rule
"/workloadmanager:v1/RuleExecutionResult/scannedResourceCount": scanned_resource_count
"/workloadmanager:v1/RuleExecutionResult/state": state
"/workloadmanager:v1/RuleOutput": rule_output
"/workloadmanager:v1/RuleOutput/details": details
"/workloadmanager:v1/RuleOutput/details/detail": detail
"/workloadmanager:v1/RuleOutput/message": message
"/workloadmanager:v1/RunEvaluationRequest": run_evaluation_request
"/workloadmanager:v1/RunEvaluationRequest/execution": execution
"/workloadmanager:v1/RunEvaluationRequest/executionId": execution_id
Expand Down Expand Up @@ -402871,6 +402875,8 @@
"/workloadmanager:v1/ViolationDetails/asset": asset
"/workloadmanager:v1/ViolationDetails/observed": observed
"/workloadmanager:v1/ViolationDetails/observed/observed": observed
"/workloadmanager:v1/ViolationDetails/ruleOutput": rule_output
"/workloadmanager:v1/ViolationDetails/ruleOutput/rule_output": rule_output
"/workloadmanager:v1/ViolationDetails/serviceAccount": service_account
"/workloadmanager:v1/WorkloadProfile": workload_profile
"/workloadmanager:v1/WorkloadProfile/application": application
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-workloadmanager_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-workloadmanager_v1

### v0.47.0 (2026-01-25)

* Regenerated from discovery document revision 20260107

### v0.46.0 (2025-12-14)

* Regenerated from discovery document revision 20251112
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,10 @@ def update!(**args)
class ExternalDataSources
include Google::Apis::Core::Hashable

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

# The rule output of the violation.
class RuleOutput
include Google::Apis::Core::Hashable

# Output only. Violation details generated by rule.
# Corresponds to the JSON property `details`
# @return [Hash<String,String>]
attr_accessor :details

# Output only. The message generated by rule.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message

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

# Update properties of this object
def update!(**args)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end

# Message for creating a Execution
class RunEvaluationRequest
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2894,11 +2920,16 @@ class ViolationDetails
# @return [String]
attr_accessor :asset

# Details of the violation. TODO(b/452163887)
# Details of the violation.
# Corresponds to the JSON property `observed`
# @return [Hash<String,String>]
attr_accessor :observed

# Output only. The rule output of the violation.
# Corresponds to the JSON property `ruleOutput`
# @return [Array<Google::Apis::WorkloadmanagerV1::RuleOutput>]
attr_accessor :rule_output

# The service account associated with the resource.
# Corresponds to the JSON property `serviceAccount`
# @return [String]
Expand All @@ -2912,6 +2943,7 @@ def initialize(**args)
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@observed = args[:observed] if args.key?(:observed)
@rule_output = args[:rule_output] if args.key?(:rule_output)
@service_account = args[:service_account] if args.key?(:service_account)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module WorkloadmanagerV1
# Version of the google-apis-workloadmanager_v1 gem
GEM_VERSION = "0.46.0"
GEM_VERSION = "0.47.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20251112"
REVISION = "20260107"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class RuleOutput
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class RunEvaluationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -966,6 +972,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class RuleOutput
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :details, as: 'details'
property :message, as: 'message'
end
end

class RunEvaluationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1309,6 +1323,8 @@ class ViolationDetails
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset'
hash :observed, as: 'observed'
collection :rule_output, as: 'ruleOutput', class: Google::Apis::WorkloadmanagerV1::RuleOutput, decorator: Google::Apis::WorkloadmanagerV1::RuleOutput::Representation

property :service_account, as: 'serviceAccount'
end
end
Expand Down