diff --git a/api_names_out.yaml b/api_names_out.yaml index 11ef1d4cb65..0624227a2b0 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 @@ -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 diff --git a/generated/google-apis-assuredworkloads_v1beta1/CHANGELOG.md b/generated/google-apis-assuredworkloads_v1beta1/CHANGELOG.md index bc773004327..dc2991daec9 100644 --- a/generated/google-apis-assuredworkloads_v1beta1/CHANGELOG.md +++ b/generated/google-apis-assuredworkloads_v1beta1/CHANGELOG.md @@ -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 diff --git a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/classes.rb b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/classes.rb index 4382620657f..be77847a5cb 100644 --- a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/classes.rb +++ b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/classes.rb @@ -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 @@ -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 @@ -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) diff --git a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb index 5ba14848532..45d9118fd1f 100644 --- a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb +++ b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb @@ -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 diff --git a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/representations.rb b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/representations.rb index 220c6778e39..a7ef45a7f96 100644 --- a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/representations.rb +++ b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/representations.rb @@ -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 @@ -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 @@ -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' diff --git a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/service.rb b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/service.rb index f96287240b2..36e462cf289 100644 --- a/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/service.rb +++ b/generated/google-apis-assuredworkloads_v1beta1/lib/google/apis/assuredworkloads_v1beta1/service.rb @@ -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: