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
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53967,6 +53967,12 @@
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis/analysisGroups/analysis_group": analysis_group
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis/asset": asset
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis/assetType": asset_type
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest": google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest/acknowledgeType": acknowledge_type
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest/comment": comment
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest/names": names
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest/names/name": name
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse": google_cloud_assuredworkloads_v1_batch_acknowledge_violations_response
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": google_cloud_assuredworkloads_v1_create_workload_operation_metadata
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata/complianceRegime": compliance_regime
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata/createTime": create_time
Expand Down Expand Up @@ -54330,6 +54336,8 @@
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.updates.list/parent": parent
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.acknowledge": acknowledge_organization_location_workload_violation
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.acknowledge/name": name
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.batchAcknowledgeViolations": batch_organization_location_workload_violation_acknowledge_violations
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.batchAcknowledgeViolations/parent": parent
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.get": get_organization_location_workload_violation
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.get/name": name
"/assuredworkloads:v1/assuredworkloads.organizations.locations.workloads.violations.list": list_organization_location_workload_violations
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-assuredworkloads_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-assuredworkloads_v1

### v0.66.0 (2026-06-14)

* Regenerated from discovery document revision 20260601
* Regenerated using generator version 0.19.0

### v0.65.0 (2026-05-10)

* Regenerated from discovery document revision 20260504
Expand Down
2 changes: 1 addition & 1 deletion generated/google-apis-assuredworkloads_v1/OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/learnmoreurl) may provide g

## Supported Ruby versions

This library is supported on Ruby 3.1+.
This library is supported on Ruby 3.2+.

Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 3.1'
gem.required_ruby_version = '>= 3.2'
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
end
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,53 @@ def update!(**args)
end
end

# Request for acknowledging the violations in a batch
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
include Google::Apis::Core::Hashable

# Optional. Acknowledge type of specified violations.
# Corresponds to the JSON property `acknowledgeType`
# @return [String]
attr_accessor :acknowledge_type

# Required. Business justification explaining the need for violations
# acknowledgement
# Corresponds to the JSON property `comment`
# @return [String]
attr_accessor :comment

# Required. The resource names of the Violations to acknowledge. Format for each
# name: organizations/`organization`/locations/`location`/workloads/`workload`/
# violations/`violation`
# Corresponds to the JSON property `names`
# @return [Array<String>]
attr_accessor :names

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

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

# Response for batch violation acknowledgement
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# Operation metadata to give request details of CreateWorkload.
class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AssuredworkloadsV1
# Version of the google-apis-assuredworkloads_v1 gem
GEM_VERSION = "0.65.0"
GEM_VERSION = "0.66.0"

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

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

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

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

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

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

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

Expand Down Expand Up @@ -387,6 +399,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acknowledge_type, as: 'acknowledgeType'
property :comment, as: 'comment'
collection :names, as: 'names'
end
end

class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,44 @@ def acknowledge_organization_location_workload_violation(name, google_cloud_assu
execute_or_queue_command(command, &block)
end

# Acknowledges multiple existing violations. By acknowledging violations, users
# acknowledge the existence of compliance violations in their workload and
# decide to ignore them due to a valid business justification. Acknowledgement
# is a permanent operation and it cannot be reverted. This is a batch version of
# AcknowledgeViolation.
# @param [String] parent
# Optional. The parent resource shared by all violations being acknowledged.
# Format: organizations/`organization`/locations/`location`/workloads/`workload`
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest] google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_organization_location_workload_violation_acknowledge_violations(parent, google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/violations:batchAcknowledgeViolations', options)
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest::Representation
command.request_object = google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse::Representation
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Retrieves Assured Workload Violation based on ID.
# @param [String] name
# Required. The resource name of the Violation to fetch (ie. Violation.name).
Expand Down
Loading