Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of assuredworkloads v1beta1 client #19769

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
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38920,6 +38920,7 @@
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/parent": parent
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/resourceSettings": resource_settings
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata/resourceSettings/resource_setting": resource_setting
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse": google_cloud_assuredworkloads_v1beta1_enable_compliance_updates_response
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse": google_cloud_assuredworkloads_v1beta1_enable_resource_monitoring_response
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse": google_cloud_assuredworkloads_v1beta1_list_violations_response
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse/nextPageToken": next_page_token
Expand Down Expand Up @@ -38999,6 +39000,7 @@
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/cjisSettings": cjis_settings
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/complianceRegime": compliance_regime
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/complianceStatus": compliance_status
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/complianceUpdatesEnabled": compliance_updates_enabled
"/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/compliantButDisallowedServices": compliant_but_disallowed_services
? "/assuredworkloads:v1beta1/GoogleCloudAssuredworkloadsV1beta1Workload/compliantButDisallowedServices/compliant_but_disallowed_service"
: compliant_but_disallowed_service
Expand Down Expand Up @@ -39108,6 +39110,8 @@
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete": delete_organization_location_workload
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete/etag": etag
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.delete/name": name
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.enableComplianceUpdates": enable_organization_location_workload_compliance_updates
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.enableComplianceUpdates/name": name
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.enableResourceMonitoring": enable_organization_location_workload_resource_monitoring
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.enableResourceMonitoring/name": name
"/assuredworkloads:v1beta1/assuredworkloads.organizations.locations.workloads.get": get_organization_location_workload
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-assuredworkloads_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-assuredworkloads_v1beta1

### v0.26.0 (2024-06-26)

* Regenerated from discovery document revision 20240621

### v0.25.0 (2024-05-19)

* Regenerated from discovery document revision 20240510
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,19 @@ def update!(**args)
end
end

# Response for EnableComplianceUpdates endpoint.
class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
include Google::Apis::Core::Hashable

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

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

# Response for EnableResourceMonitoring endpoint.
class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -691,6 +704,14 @@ class GoogleCloudAssuredworkloadsV1beta1Workload
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus]
attr_accessor :compliance_status

# Output only. Indicates whether the compliance updates feature is enabled for a
# workload. The compliance updates feature can be enabled via the
# EnableComplianceUpdates endpoint.
# Corresponds to the JSON property `complianceUpdatesEnabled`
# @return [Boolean]
attr_accessor :compliance_updates_enabled
alias_method :compliance_updates_enabled?, :compliance_updates_enabled

# Output only. Urls for services which are compliant for this Assured Workload,
# but which are currently disallowed by the ResourceUsageRestriction org policy.
# Invoke RestrictAllowedResources endpoint to allow your project developers to
Expand Down Expand Up @@ -830,6 +851,7 @@ def update!(**args)
@cjis_settings = args[:cjis_settings] if args.key?(:cjis_settings)
@compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
@compliance_status = args[:compliance_status] if args.key?(:compliance_status)
@compliance_updates_enabled = args[:compliance_updates_enabled] if args.key?(:compliance_updates_enabled)
@compliant_but_disallowed_services = args[:compliant_but_disallowed_services] if args.key?(:compliant_but_disallowed_services)
@create_time = args[:create_time] if args.key?(:create_time)
@display_name = args[:display_name] if args.key?(:display_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AssuredworkloadsV1beta1
# Version of the google-apis-assuredworkloads_v1beta1 gem
GEM_VERSION = "0.25.0"
GEM_VERSION = "0.26.0"

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

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

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

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

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

Expand Down Expand Up @@ -278,6 +284,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

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

class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -427,6 +439,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :compliance_regime, as: 'complianceRegime'
property :compliance_status, as: 'complianceStatus', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus::Representation

property :compliance_updates_enabled, as: 'complianceUpdatesEnabled'
collection :compliant_but_disallowed_services, as: 'compliantButDisallowedServices'
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,42 @@ def delete_organization_location_workload(name, etag: nil, fields: nil, quota_us
execute_or_queue_command(command, &block)
end

# This endpoint enables Assured Workloads service to offer compliance updates
# for the folder based assured workload. It sets up an Assured Workloads Service
# Agent, having permissions to read compliance controls (for example: Org
# Policies) applied on the workload. The caller must have `resourcemanager.
# folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions
# on the assured workload folder.
# @param [String] name
# Required. The `name` field is used to identify the workload. Format:
# organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
# @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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse]
#
# @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 enable_organization_location_workload_compliance_updates(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}:enableComplianceUpdates', options)
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse::Representation
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Enable resource violation monitoring for a workload.
# @param [String] name
# Required. The `name` field is used to identify the workload. Format:
Expand Down
Loading