Skip to content

Commit d9dce43

Browse files
feat: Automated regeneration of assuredworkloads v1 client (#26436)
Auto-created at 2026-05-10 10:51:30 +0000 using the toys pull request generator.
1 parent 0646b78 commit d9dce43

6 files changed

Lines changed: 291 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53110,6 +53110,15 @@
5311053110
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest/action": action
5311153111
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse": google_cloud_assuredworkloads_v1_apply_workload_update_response
5311253112
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse/appliedUpdate": applied_update
53113+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest": google_cloud_assuredworkloads_v1_archive_resource_events_request
53114+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/archiveTime": archive_time
53115+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/batchSize": batch_size
53116+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/eventCutoffTime": event_cutoff_time
53117+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/maxEventsMove": max_events_move
53118+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/organizationId": organization_id
53119+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest/region": region
53120+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse": google_cloud_assuredworkloads_v1_archive_resource_events_response
53121+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse/movedEventsCount": moved_events_count
5311353122
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis": google_cloud_assuredworkloads_v1_asset_move_analysis
5311453123
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis/analysisGroups": analysis_groups
5311553124
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1AssetMoveAnalysis/analysisGroups/analysis_group": analysis_group
@@ -53171,6 +53180,15 @@
5317153180
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest": google_cloud_assuredworkloads_v1_restrict_allowed_resources_request
5317253181
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest/restrictionType": restriction_type
5317353182
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse": google_cloud_assuredworkloads_v1_restrict_allowed_resources_response
53183+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest": google_cloud_assuredworkloads_v1_revert_archived_resource_events_request
53184+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/archiveEndTime": archive_end_time
53185+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/archiveStartTime": archive_start_time
53186+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/batchSize": batch_size
53187+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/maxEventsMove": max_events_move
53188+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/organizationId": organization_id
53189+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest/region": region
53190+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse": google_cloud_assuredworkloads_v1_revert_archived_resource_events_response
53191+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse/movedEventsCount": moved_events_count
5317453192
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1UpdateDetails": google_cloud_assuredworkloads_v1_update_details
5317553193
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1UpdateDetails/orgPolicyUpdate": org_policy_update
5317653194
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1Violation": google_cloud_assuredworkloads_v1_violation
@@ -53421,6 +53439,8 @@
5342153439
"/assuredworkloads:v1/GoogleRpcStatus/details/detail": detail
5342253440
"/assuredworkloads:v1/GoogleRpcStatus/details/detail/detail": detail
5342353441
"/assuredworkloads:v1/GoogleRpcStatus/message": message
53442+
"/assuredworkloads:v1/assuredworkloads.assuredworkloads.archiveResourceEvents": archive_assuredworkload_resource_events
53443+
"/assuredworkloads:v1/assuredworkloads.assuredworkloads.revertArchivedResourceEvents": revert_assuredworkload_archived_resource_events
5342453444
"/assuredworkloads:v1/assuredworkloads.organizations.locations.operations.get": get_organization_location_operation
5342553445
"/assuredworkloads:v1/assuredworkloads.organizations.locations.operations.get/name": name
5342653446
"/assuredworkloads:v1/assuredworkloads.organizations.locations.operations.list": list_organization_location_operations

generated/google-apis-assuredworkloads_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-assuredworkloads_v1
22

3+
### v0.65.0 (2026-05-10)
4+
5+
* Regenerated from discovery document revision 20260504
6+
37
### v0.64.0 (2026-04-19)
48

59
* Regenerated from discovery document revision 20260321

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

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,76 @@ def update!(**args)
165165
end
166166
end
167167

168+
# Request for archiving resource events.
169+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest
170+
include Google::Apis::Core::Hashable
171+
172+
# Optional. Time to set as ArchiveTime in the archive table. If not provided,
173+
# the current time is used.
174+
# Corresponds to the JSON property `archiveTime`
175+
# @return [String]
176+
attr_accessor :archive_time
177+
178+
# Required. The number of events to process in a single transaction batch.
179+
# Corresponds to the JSON property `batchSize`
180+
# @return [Fixnum]
181+
attr_accessor :batch_size
182+
183+
# Required. Only events with EventTime earlier than this cutoff will be archived.
184+
# Corresponds to the JSON property `eventCutoffTime`
185+
# @return [String]
186+
attr_accessor :event_cutoff_time
187+
188+
# Required. The maximum total number of events to move in this request.
189+
# Corresponds to the JSON property `maxEventsMove`
190+
# @return [Fixnum]
191+
attr_accessor :max_events_move
192+
193+
# Required. The organization ID for which to archive events.
194+
# Corresponds to the JSON property `organizationId`
195+
# @return [Fixnum]
196+
attr_accessor :organization_id
197+
198+
# Required. The region of the workload(s) whose events should be archived. This
199+
# is used to filter workloads based on AssurantWorkloadData.region.
200+
# Corresponds to the JSON property `region`
201+
# @return [String]
202+
attr_accessor :region
203+
204+
def initialize(**args)
205+
update!(**args)
206+
end
207+
208+
# Update properties of this object
209+
def update!(**args)
210+
@archive_time = args[:archive_time] if args.key?(:archive_time)
211+
@batch_size = args[:batch_size] if args.key?(:batch_size)
212+
@event_cutoff_time = args[:event_cutoff_time] if args.key?(:event_cutoff_time)
213+
@max_events_move = args[:max_events_move] if args.key?(:max_events_move)
214+
@organization_id = args[:organization_id] if args.key?(:organization_id)
215+
@region = args[:region] if args.key?(:region)
216+
end
217+
end
218+
219+
# Response for archiving resource events.
220+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse
221+
include Google::Apis::Core::Hashable
222+
223+
# The total number of events successfully moved to the archive table.
224+
# Corresponds to the JSON property `movedEventsCount`
225+
# @return [Fixnum]
226+
attr_accessor :moved_events_count
227+
228+
def initialize(**args)
229+
update!(**args)
230+
end
231+
232+
# Update properties of this object
233+
def update!(**args)
234+
@moved_events_count = args[:moved_events_count] if args.key?(:moved_events_count)
235+
end
236+
end
237+
168238
# Represents move analysis results for an asset.
169239
class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
170240
include Google::Apis::Core::Hashable
@@ -636,6 +706,77 @@ def update!(**args)
636706
end
637707
end
638708

709+
# Request for reverting archived resource events.
710+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
711+
include Google::Apis::Core::Hashable
712+
713+
# Required. Only events within this time range will be reverted. This helps
714+
# prevent reverting everything when something goes wrong.
715+
# Corresponds to the JSON property `archiveEndTime`
716+
# @return [String]
717+
attr_accessor :archive_end_time
718+
719+
# Required. Only events within this time range will be reverted. This helps
720+
# prevent reverting everything when something goes wrong.
721+
# Corresponds to the JSON property `archiveStartTime`
722+
# @return [String]
723+
attr_accessor :archive_start_time
724+
725+
# Required. The number of events to process in a single transaction batch.
726+
# Corresponds to the JSON property `batchSize`
727+
# @return [Fixnum]
728+
attr_accessor :batch_size
729+
730+
# Required. The maximum total number of events to move in this request.
731+
# Corresponds to the JSON property `maxEventsMove`
732+
# @return [Fixnum]
733+
attr_accessor :max_events_move
734+
735+
# Required. The organization ID for which to revert events.
736+
# Corresponds to the JSON property `organizationId`
737+
# @return [Fixnum]
738+
attr_accessor :organization_id
739+
740+
# Required. The region of the workload(s) whose events should be reverted. This
741+
# is used to filter workloads based on AssurantWorkloadData.region.
742+
# Corresponds to the JSON property `region`
743+
# @return [String]
744+
attr_accessor :region
745+
746+
def initialize(**args)
747+
update!(**args)
748+
end
749+
750+
# Update properties of this object
751+
def update!(**args)
752+
@archive_end_time = args[:archive_end_time] if args.key?(:archive_end_time)
753+
@archive_start_time = args[:archive_start_time] if args.key?(:archive_start_time)
754+
@batch_size = args[:batch_size] if args.key?(:batch_size)
755+
@max_events_move = args[:max_events_move] if args.key?(:max_events_move)
756+
@organization_id = args[:organization_id] if args.key?(:organization_id)
757+
@region = args[:region] if args.key?(:region)
758+
end
759+
end
760+
761+
# Response for reverting archived resource events.
762+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
763+
include Google::Apis::Core::Hashable
764+
765+
# The total number of events successfully moved to the original table.
766+
# Corresponds to the JSON property `movedEventsCount`
767+
# @return [Fixnum]
768+
attr_accessor :moved_events_count
769+
770+
def initialize(**args)
771+
update!(**args)
772+
end
773+
774+
# Update properties of this object
775+
def update!(**args)
776+
@moved_events_count = args[:moved_events_count] if args.key?(:moved_events_count)
777+
end
778+
end
779+
639780
# The details of the update.
640781
class GoogleCloudAssuredworkloadsV1UpdateDetails
641782
include Google::Apis::Core::Hashable

generated/google-apis-assuredworkloads_v1/lib/google/apis/assuredworkloads_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 AssuredworkloadsV1
1818
# Version of the google-apis-assuredworkloads_v1 gem
19-
GEM_VERSION = "0.64.0"
19+
GEM_VERSION = "0.65.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 = "20260321"
25+
REVISION = "20260504"
2626
end
2727
end
2828
end

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5858
include Google::Apis::Core::JsonObjectSupport
5959
end
6060

61+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
67+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
6173
class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
6274
class Representation < Google::Apis::Core::JsonRepresentation; end
6375

@@ -160,6 +172,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
160172
include Google::Apis::Core::JsonObjectSupport
161173
end
162174

175+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
176+
class Representation < Google::Apis::Core::JsonRepresentation; end
177+
178+
include Google::Apis::Core::JsonObjectSupport
179+
end
180+
181+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
182+
class Representation < Google::Apis::Core::JsonRepresentation; end
183+
184+
include Google::Apis::Core::JsonObjectSupport
185+
end
186+
163187
class GoogleCloudAssuredworkloadsV1UpdateDetails
164188
class Representation < Google::Apis::Core::JsonRepresentation; end
165189

@@ -334,6 +358,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
334358
end
335359
end
336360

361+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest
362+
# @private
363+
class Representation < Google::Apis::Core::JsonRepresentation
364+
property :archive_time, as: 'archiveTime'
365+
property :batch_size, as: 'batchSize'
366+
property :event_cutoff_time, as: 'eventCutoffTime'
367+
property :max_events_move, as: 'maxEventsMove'
368+
property :organization_id, :numeric_string => true, as: 'organizationId'
369+
property :region, as: 'region'
370+
end
371+
end
372+
373+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse
374+
# @private
375+
class Representation < Google::Apis::Core::JsonRepresentation
376+
property :moved_events_count, as: 'movedEventsCount'
377+
end
378+
end
379+
337380
class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
338381
# @private
339382
class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +528,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
485528
end
486529
end
487530

531+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
532+
# @private
533+
class Representation < Google::Apis::Core::JsonRepresentation
534+
property :archive_end_time, as: 'archiveEndTime'
535+
property :archive_start_time, as: 'archiveStartTime'
536+
property :batch_size, as: 'batchSize'
537+
property :max_events_move, as: 'maxEventsMove'
538+
property :organization_id, :numeric_string => true, as: 'organizationId'
539+
property :region, as: 'region'
540+
end
541+
end
542+
543+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
544+
# @private
545+
class Representation < Google::Apis::Core::JsonRepresentation
546+
property :moved_events_count, as: 'movedEventsCount'
547+
end
548+
end
549+
488550
class GoogleCloudAssuredworkloadsV1UpdateDetails
489551
# @private
490552
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)