Skip to content

Commit 9d72924

Browse files
feat: Automated regeneration of workloadmanager v1 client (#24544)
Auto-created at 2025-10-05 10:51:51 +0000 using the toys pull request generator.
1 parent d8dbd7e commit 9d72924

File tree

6 files changed

+164
-8
lines changed

6 files changed

+164
-8
lines changed

api_names_out.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388716,6 +388716,14 @@
388716388716
"/workloadmanager:v1/InstanceProperties/sapInstanceProperties": sap_instance_properties
388717388717
"/workloadmanager:v1/InstanceProperties/status": status
388718388718
"/workloadmanager:v1/InstanceProperties/upcomingMaintenanceEvent": upcoming_maintenance_event
388719+
"/workloadmanager:v1/InvalidRule": invalid_rule
388720+
"/workloadmanager:v1/InvalidRule/displayName": display_name
388721+
"/workloadmanager:v1/InvalidRule/gcsUri": gcs_uri
388722+
"/workloadmanager:v1/InvalidRule/name": name
388723+
"/workloadmanager:v1/InvalidRule/valiadtionError": valiadtion_error
388724+
"/workloadmanager:v1/InvalidRulesWrapper": invalid_rules_wrapper
388725+
"/workloadmanager:v1/InvalidRulesWrapper/invalidRules": invalid_rules
388726+
"/workloadmanager:v1/InvalidRulesWrapper/invalidRules/invalid_rule": invalid_rule
388719388727
"/workloadmanager:v1/IsolationExpectations": isolation_expectations
388720388728
"/workloadmanager:v1/IsolationExpectations/requirementOverride": requirement_override
388721388729
"/workloadmanager:v1/IsolationExpectations/ziOrgPolicy": zi_org_policy
@@ -388762,6 +388770,7 @@
388762388770
"/workloadmanager:v1/ListOperationsResponse/operations": operations
388763388771
"/workloadmanager:v1/ListOperationsResponse/operations/operation": operation
388764388772
"/workloadmanager:v1/ListRulesResponse": list_rules_response
388773+
"/workloadmanager:v1/ListRulesResponse/invalidRulesWrapper": invalid_rules_wrapper
388765388774
"/workloadmanager:v1/ListRulesResponse/nextPageToken": next_page_token
388766388775
"/workloadmanager:v1/ListRulesResponse/rules": rules
388767388776
"/workloadmanager:v1/ListRulesResponse/rules/rule": rule
@@ -389169,6 +389178,10 @@
389169389178
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/pageSize": page_size
389170389179
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/pageToken": page_token
389171389180
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.list/parent": parent
389181+
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch": patch_project_location_evaluation
389182+
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/name": name
389183+
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/requestId": request_id
389184+
"/workloadmanager:v1/workloadmanager.projects.locations.evaluations.patch/updateMask": update_mask
389172389185
"/workloadmanager:v1/workloadmanager.projects.locations.get": get_project_location
389173389186
"/workloadmanager:v1/workloadmanager.projects.locations.get/name": name
389174389187
"/workloadmanager:v1/workloadmanager.projects.locations.insights.delete": delete_project_location_insight

generated/google-apis-workloadmanager_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-workloadmanager_v1
22

3+
### v0.44.0 (2025-10-05)
4+
5+
* Regenerated from discovery document revision 20250922
6+
37
### v0.43.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250910

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/classes.rb

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,62 @@ def update!(**args)
945945
end
946946
end
947947

948+
# Message represent an rule that failed to be validated.
949+
class InvalidRule
950+
include Google::Apis::Core::Hashable
951+
952+
# display name of the invalid rule
953+
# Corresponds to the JSON property `displayName`
954+
# @return [String]
955+
attr_accessor :display_name
956+
957+
# cloud storage destination of the invalid rule
958+
# Corresponds to the JSON property `gcsUri`
959+
# @return [String]
960+
attr_accessor :gcs_uri
961+
962+
# name of the invalid rule
963+
# Corresponds to the JSON property `name`
964+
# @return [String]
965+
attr_accessor :name
966+
967+
# The error message of valdating rule formats.
968+
# Corresponds to the JSON property `valiadtionError`
969+
# @return [String]
970+
attr_accessor :valiadtion_error
971+
972+
def initialize(**args)
973+
update!(**args)
974+
end
975+
976+
# Update properties of this object
977+
def update!(**args)
978+
@display_name = args[:display_name] if args.key?(:display_name)
979+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
980+
@name = args[:name] if args.key?(:name)
981+
@valiadtion_error = args[:valiadtion_error] if args.key?(:valiadtion_error)
982+
end
983+
end
984+
985+
# Message wrappes a list of invalid rules.
986+
class InvalidRulesWrapper
987+
include Google::Apis::Core::Hashable
988+
989+
# The invalid rules that failed to be validated.
990+
# Corresponds to the JSON property `invalidRules`
991+
# @return [Array<Google::Apis::WorkloadmanagerV1::InvalidRule>]
992+
attr_accessor :invalid_rules
993+
994+
def initialize(**args)
995+
update!(**args)
996+
end
997+
998+
# Update properties of this object
999+
def update!(**args)
1000+
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
1001+
end
1002+
end
1003+
9481004
# List discovered profile Response returns discovered profiles from agents
9491005
class ListDiscoveredProfilesResponse
9501006
include Google::Apis::Core::Hashable
@@ -1118,10 +1174,10 @@ def update!(**args)
11181174
class ListRulesResponse
11191175
include Google::Apis::Core::Hashable
11201176

1121-
# A token identifying a page of results the server should return.
1122-
# Corresponds to the JSON property `nextPageToken`
1123-
# @return [String]
1124-
attr_accessor :next_page_token
1177+
# Message wrappes a list of invalid rules.
1178+
# Corresponds to the JSON property `invalidRulesWrapper`
1179+
# @return [Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper]
1180+
attr_accessor :invalid_rules_wrapper
11251181

11261182
# all rules in response
11271183
# Corresponds to the JSON property `rules`
@@ -1134,7 +1190,7 @@ def initialize(**args)
11341190

11351191
# Update properties of this object
11361192
def update!(**args)
1137-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1193+
@invalid_rules_wrapper = args[:invalid_rules_wrapper] if args.key?(:invalid_rules_wrapper)
11381194
@rules = args[:rules] if args.key?(:rules)
11391195
end
11401196
end

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WorkloadmanagerV1
1818
# Version of the google-apis-workloadmanager_v1 gem
19-
GEM_VERSION = "0.43.0"
19+
GEM_VERSION = "0.44.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250910"
25+
REVISION = "20250922"
2626
end
2727
end
2828
end

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/representations.rb

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
154154
include Google::Apis::Core::JsonObjectSupport
155155
end
156156

157+
class InvalidRule
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
163+
class InvalidRulesWrapper
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
157169
class ListDiscoveredProfilesResponse
158170
class Representation < Google::Apis::Core::JsonRepresentation; end
159171

@@ -742,6 +754,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
742754
end
743755
end
744756

757+
class InvalidRule
758+
# @private
759+
class Representation < Google::Apis::Core::JsonRepresentation
760+
property :display_name, as: 'displayName'
761+
property :gcs_uri, as: 'gcsUri'
762+
property :name, as: 'name'
763+
property :valiadtion_error, as: 'valiadtionError'
764+
end
765+
end
766+
767+
class InvalidRulesWrapper
768+
# @private
769+
class Representation < Google::Apis::Core::JsonRepresentation
770+
collection :invalid_rules, as: 'invalidRules', class: Google::Apis::WorkloadmanagerV1::InvalidRule, decorator: Google::Apis::WorkloadmanagerV1::InvalidRule::Representation
771+
772+
end
773+
end
774+
745775
class ListDiscoveredProfilesResponse
746776
# @private
747777
class Representation < Google::Apis::Core::JsonRepresentation
@@ -802,7 +832,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
802832
class ListRulesResponse
803833
# @private
804834
class Representation < Google::Apis::Core::JsonRepresentation
805-
property :next_page_token, as: 'nextPageToken'
835+
property :invalid_rules_wrapper, as: 'invalidRulesWrapper', class: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper, decorator: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper::Representation
836+
806837
collection :rules, as: 'rules', class: Google::Apis::WorkloadmanagerV1::Rule, decorator: Google::Apis::WorkloadmanagerV1::Rule::Representation
807838

808839
end

generated/google-apis-workloadmanager_v1/lib/google/apis/workloadmanager_v1/service.rb

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,58 @@ def list_project_location_evaluations(parent, filter: nil, order_by: nil, page_s
337337
execute_or_queue_command(command, &block)
338338
end
339339

340+
# Updates the parameters of a single Evaluation.
341+
# @param [String] name
342+
# name of resource names have the form 'projects/`project_id`/locations/`
343+
# location_id`/evaluations/`evaluation_id`'
344+
# @param [Google::Apis::WorkloadmanagerV1::Evaluation] evaluation_object
345+
# @param [String] request_id
346+
# Optional. An optional request ID to identify requests. Specify a unique
347+
# request ID so that if you must retry your request, the server will know to
348+
# ignore the request if it has already been completed. The server will guarantee
349+
# that for at least 60 minutes since the first request. For example, consider a
350+
# situation where you make an initial request and the request times out. If you
351+
# make the request again with the same request ID, the server can check if
352+
# original operation with the same request ID was received, and if so, will
353+
# ignore the second request. This prevents clients from accidentally creating
354+
# duplicate commitments. The request ID must be a valid UUID with the exception
355+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
356+
# @param [String] update_mask
357+
# Required. Field mask is used to specify the fields to be overwritten in the
358+
# Evaluation resource by the update. The fields specified in the update_mask are
359+
# relative to the resource, not the full request. A field will be overwritten if
360+
# it is in the mask.
361+
# @param [String] fields
362+
# Selector specifying which fields to include in a partial response.
363+
# @param [String] quota_user
364+
# Available to use for quota purposes for server-side applications. Can be any
365+
# arbitrary string assigned to a user, but should not exceed 40 characters.
366+
# @param [Google::Apis::RequestOptions] options
367+
# Request-specific options
368+
#
369+
# @yield [result, err] Result & error if block supplied
370+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
371+
# @yieldparam err [StandardError] error object if request failed
372+
#
373+
# @return [Google::Apis::WorkloadmanagerV1::Operation]
374+
#
375+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377+
# @raise [Google::Apis::AuthorizationError] Authorization is required
378+
def patch_project_location_evaluation(name, evaluation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
379+
command = make_simple_command(:patch, 'v1/{+name}', options)
380+
command.request_representation = Google::Apis::WorkloadmanagerV1::Evaluation::Representation
381+
command.request_object = evaluation_object
382+
command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
383+
command.response_class = Google::Apis::WorkloadmanagerV1::Operation
384+
command.params['name'] = name unless name.nil?
385+
command.query['requestId'] = request_id unless request_id.nil?
386+
command.query['updateMask'] = update_mask unless update_mask.nil?
387+
command.query['fields'] = fields unless fields.nil?
388+
command.query['quotaUser'] = quota_user unless quota_user.nil?
389+
execute_or_queue_command(command, &block)
390+
end
391+
340392
# Deletes a single Execution.
341393
# @param [String] name
342394
# Required. Name of the resource

0 commit comments

Comments
 (0)