diff --git a/api_names_out.yaml b/api_names_out.yaml index 8649edff29a..f7ebf875a70 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -387400,6 +387400,14 @@ "/workloadmanager:v1/InstanceProperties/sapInstanceProperties": sap_instance_properties "/workloadmanager:v1/InstanceProperties/status": status "/workloadmanager:v1/InstanceProperties/upcomingMaintenanceEvent": upcoming_maintenance_event +"/workloadmanager:v1/InvalidRule": invalid_rule +"/workloadmanager:v1/InvalidRule/displayName": display_name +"/workloadmanager:v1/InvalidRule/gcsUri": gcs_uri +"/workloadmanager:v1/InvalidRule/name": name +"/workloadmanager:v1/InvalidRule/valiadtionError": valiadtion_error +"/workloadmanager:v1/InvalidRulesWrapper": invalid_rules_wrapper +"/workloadmanager:v1/InvalidRulesWrapper/invalidRules": invalid_rules +"/workloadmanager:v1/InvalidRulesWrapper/invalidRules/invalid_rule": invalid_rule "/workloadmanager:v1/IsolationExpectations": isolation_expectations "/workloadmanager:v1/IsolationExpectations/requirementOverride": requirement_override "/workloadmanager:v1/IsolationExpectations/ziOrgPolicy": zi_org_policy @@ -387446,6 +387454,7 @@ "/workloadmanager:v1/ListOperationsResponse/operations": operations "/workloadmanager:v1/ListOperationsResponse/operations/operation": operation "/workloadmanager:v1/ListRulesResponse": list_rules_response +"/workloadmanager:v1/ListRulesResponse/invalidRulesWrapper": invalid_rules_wrapper "/workloadmanager:v1/ListRulesResponse/nextPageToken": next_page_token "/workloadmanager:v1/ListRulesResponse/rules": rules "/workloadmanager:v1/ListRulesResponse/rules/rule": rule @@ -387853,6 +387862,10 @@ "/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/pageSize": page_size "/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/pageToken": page_token "/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/parent": parent +"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch": patch_project_location_evaluation +"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/name": name +"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/requestId": request_id +"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/updateMask": update_mask "/workloadmanager:v1/workloadmanager.projects.locations.get": get_project_location "/workloadmanager:v1/workloadmanager.projects.locations.get/name": name "/workloadmanager:v1/workloadmanager.projects.locations.insights.delete": delete_project_location_insight diff --git a/generated/google-apis-workloadmanager_v1/CHANGELOG.md b/generated/google-apis-workloadmanager_v1/CHANGELOG.md index 13ec4015529..4dbaaecacb7 100644 --- a/generated/google-apis-workloadmanager_v1/CHANGELOG.md +++ b/generated/google-apis-workloadmanager_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-workloadmanager_v1 +### v0.44.0 (2025-10-05) + +* Regenerated from discovery document revision 20250922 + ### v0.43.0 (2025-09-21) * Regenerated from discovery document revision 20250910 diff --git a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb index 7135660858b..33a562d0d53 100644 --- a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb +++ b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb @@ -945,6 +945,62 @@ def update!(**args) end end + # Message represent an rule that failed to be validated. + class InvalidRule + include Google::Apis::Core::Hashable + + # display name of the invalid rule + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # cloud storage destination of the invalid rule + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + # name of the invalid rule + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The error message of valdating rule formats. + # Corresponds to the JSON property `valiadtionError` + # @return [String] + attr_accessor :valiadtion_error + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + @name = args[:name] if args.key?(:name) + @valiadtion_error = args[:valiadtion_error] if args.key?(:valiadtion_error) + end + end + + # Message wrappes a list of invalid rules. + class InvalidRulesWrapper + include Google::Apis::Core::Hashable + + # The invalid rules that failed to be validated. + # Corresponds to the JSON property `invalidRules` + # @return [Array] + attr_accessor :invalid_rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) + end + end + # List discovered profile Response returns discovered profiles from agents class ListDiscoveredProfilesResponse include Google::Apis::Core::Hashable @@ -1118,10 +1174,10 @@ def update!(**args) class ListRulesResponse include Google::Apis::Core::Hashable - # A token identifying a page of results the server should return. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token + # Message wrappes a list of invalid rules. + # Corresponds to the JSON property `invalidRulesWrapper` + # @return [Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper] + attr_accessor :invalid_rules_wrapper # all rules in response # Corresponds to the JSON property `rules` @@ -1134,7 +1190,7 @@ def initialize(**args) # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @invalid_rules_wrapper = args[:invalid_rules_wrapper] if args.key?(:invalid_rules_wrapper) @rules = args[:rules] if args.key?(:rules) end end diff --git a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb index 4f916bc3b54..6cc53b5c5c8 100644 --- a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb +++ b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module WorkloadmanagerV1 # Version of the google-apis-workloadmanager_v1 gem - GEM_VERSION = "0.43.0" + GEM_VERSION = "0.44.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 = "20250910" + REVISION = "20250922" end end end diff --git a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb index 09480cce106..c0a3a232bb1 100644 --- a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb +++ b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb @@ -154,6 +154,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class InvalidRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InvalidRulesWrapper + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListDiscoveredProfilesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -742,6 +754,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class InvalidRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :gcs_uri, as: 'gcsUri' + property :name, as: 'name' + property :valiadtion_error, as: 'valiadtionError' + end + end + + class InvalidRulesWrapper + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :invalid_rules, as: 'invalidRules', class: Google::Apis::WorkloadmanagerV1::InvalidRule, decorator: Google::Apis::WorkloadmanagerV1::InvalidRule::Representation + + end + end + class ListDiscoveredProfilesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -802,7 +832,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class ListRulesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' + property :invalid_rules_wrapper, as: 'invalidRulesWrapper', class: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper, decorator: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper::Representation + collection :rules, as: 'rules', class: Google::Apis::WorkloadmanagerV1::Rule, decorator: Google::Apis::WorkloadmanagerV1::Rule::Representation end diff --git a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/service.rb b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/service.rb index 634c9812761..45c861a46e7 100644 --- a/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/service.rb +++ b/generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/service.rb @@ -337,6 +337,58 @@ def list_project_location_evaluations(parent, filter: nil, order_by: nil, page_s execute_or_queue_command(command, &block) end + # Updates the parameters of a single Evaluation. + # @param [String] name + # name of resource names have the form 'projects/`project_id`/locations/` + # location_id`/evaluations/`evaluation_id`' + # @param [Google::Apis::WorkloadmanagerV1::Evaluation] evaluation_object + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes since the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Evaluation resource by the update. The fields specified in the update_mask are + # relative to the resource, not the full request. A field will be overwritten if + # it is in the mask. + # @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::WorkloadmanagerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::WorkloadmanagerV1::Operation] + # + # @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 patch_project_location_evaluation(name, evaluation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::WorkloadmanagerV1::Evaluation::Representation + command.request_object = evaluation_object + command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation + command.response_class = Google::Apis::WorkloadmanagerV1::Operation + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a single Execution. # @param [String] name # Required. Name of the resource