google-apis-assuredworkloads_v1 0.64.0 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dfb8cdbb3548693a6377800aabfe337b91d9e804d75b05466c9240e4d989c89
4
- data.tar.gz: 914739694de92adaf92ff2fa94dc4f33711e01a99d85b2ed3740bfd4b21796cc
3
+ metadata.gz: 7ec86a460bf45615de261ace6f5b57cb1f38321787d932aa3b3c1140c79a2cec
4
+ data.tar.gz: 52fd5547ffee528b84f03e124343ace837f73bc927f479a814f59b3b80f5a4b8
5
5
  SHA512:
6
- metadata.gz: ffeee994eac9db8c1288066c8fa3ce9995817061c5b12b1c6d4b20cbd26c31d95b0c5e0730e908ef26e9125d38424dd8c81e33f2139ff415a63e6f35802cf4ab
7
- data.tar.gz: 2427773a645241b6de2aa1046859ed4158100a84b89aeaa605de10e268008a70808394ccf2f24b3ac0e113818f55bdd46676d5c21a1efbe54dabf760ca743998
6
+ metadata.gz: d8130f2734ba48a5461cfb1f405bb5c393c1ae30ae9cb71b2cac02a6ea73f81858460ee3600f52daa8c544dd4790675073dc18b034405af7ccd9cfe571670f8d
7
+ data.tar.gz: 543191fb7cc6dd8d5376a83cba8d63d1c9e0cb3ba3daae22f8079bd53f7099ff6a375dc3cbbc5cbd5056d0869288b8500cb951f4c23e312fce0f810620ba8ee9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.65.0 (2026-05-10)
4
+
5
+ * Regenerated from discovery document revision 20260504
6
+
3
7
  ### v0.64.0 (2026-04-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20260321
@@ -165,6 +165,76 @@ module Google
165
165
  end
166
166
  end
167
167
 
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
+
168
238
  # Represents move analysis results for an asset.
169
239
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
170
240
  include Google::Apis::Core::Hashable
@@ -636,6 +706,77 @@ module Google
636
706
  end
637
707
  end
638
708
 
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
+
639
780
  # The details of the update.
640
781
  class GoogleCloudAssuredworkloadsV1UpdateDetails
641
782
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AssuredworkloadsV1
18
18
  # Version of the google-apis-assuredworkloads_v1 gem
19
- GEM_VERSION = "0.64.0"
19
+ GEM_VERSION = "0.65.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260321"
25
+ REVISION = "20260504"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
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
+
61
73
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -160,6 +172,18 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
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
+
163
187
  class GoogleCloudAssuredworkloadsV1UpdateDetails
164
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
189
 
@@ -334,6 +358,25 @@ module Google
334
358
  end
335
359
  end
336
360
 
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
+
337
380
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
338
381
  # @private
339
382
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +528,25 @@ module Google
485
528
  end
486
529
  end
487
530
 
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
+
488
550
  class GoogleCloudAssuredworkloadsV1UpdateDetails
489
551
  # @private
490
552
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,68 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Finds orphan ResourceEvents matching the criteria and moves them to the
55
+ # ArchivedResourceEvents table.
56
+ # @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest] google_cloud_assuredworkloads_v1_archive_resource_events_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def archive_assuredworkload_resource_events(google_cloud_assuredworkloads_v1_archive_resource_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1/assuredworkloads:archiveResourceEvents', options)
76
+ command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest::Representation
77
+ command.request_object = google_cloud_assuredworkloads_v1_archive_resource_events_request_object
78
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse::Representation
79
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Finds matching ArchivedResourceEvents and moves them back to the
86
+ # ResourceEvents table.
87
+ # @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest] google_cloud_assuredworkloads_v1_revert_archived_resource_events_request_object
88
+ # @param [String] fields
89
+ # Selector specifying which fields to include in a partial response.
90
+ # @param [String] quota_user
91
+ # Available to use for quota purposes for server-side applications. Can be any
92
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
93
+ # @param [Google::Apis::RequestOptions] options
94
+ # Request-specific options
95
+ #
96
+ # @yield [result, err] Result & error if block supplied
97
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse]
101
+ #
102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
105
+ def revert_assuredworkload_archived_resource_events(google_cloud_assuredworkloads_v1_revert_archived_resource_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1/assuredworkloads:revertArchivedResourceEvents', options)
107
+ command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest::Representation
108
+ command.request_object = google_cloud_assuredworkloads_v1_revert_archived_resource_events_request_object
109
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse::Representation
110
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
54
116
  # Gets the latest state of a long-running operation. Clients can use this method
55
117
  # to poll the operation result at intervals as recommended by the API service.
56
118
  # @param [String] name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-assuredworkloads_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.0
4
+ version: 0.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.64.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.65.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1
62
62
  rdoc_options: []
63
63
  require_paths: