google-apis-assuredworkloads_v1beta1 0.32.0 → 0.34.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: 5bf963afc8d193f4a24298ac2d92995b1338651b30644b84a3d1f08e23450e69
4
- data.tar.gz: c3fb930f6ab8f1d5ea23949e4b71fee3db8e1245255afd1b425b336e84bc9473
3
+ metadata.gz: de06c1fdd7d43605085dc987fa07bbdd4952f8fb91faaa08dea3e92dd5a0a850
4
+ data.tar.gz: 4e503d5b523675b31e5d3a3dae8fec1c4c660a2f15f87da23847d6ae0096a432
5
5
  SHA512:
6
- metadata.gz: c35e71a41ae033ba68ec766dd0d31fab5d0c1ab1b39cba638955b235b877a1e38cbee3d4d4341a8ee11771faefe9b8308e35e3a429002b08902cc85b2ad6069f
7
- data.tar.gz: c1fa24eed4c746d9015b7039fb69a3f8d398660e24ac073ea3ce64488898459a0eee8dd7e5e3bfa3231ec847d61c141b453b3fb104b333c1a5446f422395b9ca
6
+ metadata.gz: 0126afdb05470ed78a468ef5102fca9a4c8d7c6cc6ec678940c8b145127e8f190b6227c998729fbb4608c6161a3f17f4fe117140ecd8d9feae19f37287e39636
7
+ data.tar.gz: 76049daf3746d1c01e61b8998eda6bed6a0dd2550976e259406ae8d75adfdee46a1fb6214a85a5948bf78a72c2c5261b0f24d1288a30271e58901ed1b58885c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1beta1
2
2
 
3
+ ### v0.34.0 (2026-05-10)
4
+
5
+ * Regenerated from discovery document revision 20260504
6
+
7
+ ### v0.33.0 (2026-04-19)
8
+
9
+ * Regenerated from discovery document revision 20260321
10
+
3
11
  ### v0.32.0 (2025-12-21)
4
12
 
5
13
  * Regenerated from discovery document revision 20251209
@@ -165,6 +165,76 @@ module Google
165
165
  end
166
166
  end
167
167
 
168
+ # Request for archiving resource events.
169
+ class GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsRequest
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 GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse
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 GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
170
240
  include Google::Apis::Core::Hashable
@@ -610,6 +680,77 @@ module Google
610
680
  end
611
681
  end
612
682
 
683
+ # Request for reverting archived resource events.
684
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsRequest
685
+ include Google::Apis::Core::Hashable
686
+
687
+ # Required. Only events within this time range will be reverted. This helps
688
+ # prevent reverting everything when something goes wrong.
689
+ # Corresponds to the JSON property `archiveEndTime`
690
+ # @return [String]
691
+ attr_accessor :archive_end_time
692
+
693
+ # Required. Only events within this time range will be reverted. This helps
694
+ # prevent reverting everything when something goes wrong.
695
+ # Corresponds to the JSON property `archiveStartTime`
696
+ # @return [String]
697
+ attr_accessor :archive_start_time
698
+
699
+ # Required. The number of events to process in a single transaction batch.
700
+ # Corresponds to the JSON property `batchSize`
701
+ # @return [Fixnum]
702
+ attr_accessor :batch_size
703
+
704
+ # Required. The maximum total number of events to move in this request.
705
+ # Corresponds to the JSON property `maxEventsMove`
706
+ # @return [Fixnum]
707
+ attr_accessor :max_events_move
708
+
709
+ # Required. The organization ID for which to revert events.
710
+ # Corresponds to the JSON property `organizationId`
711
+ # @return [Fixnum]
712
+ attr_accessor :organization_id
713
+
714
+ # Required. The region of the workload(s) whose events should be reverted. This
715
+ # is used to filter workloads based on AssurantWorkloadData.region.
716
+ # Corresponds to the JSON property `region`
717
+ # @return [String]
718
+ attr_accessor :region
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @archive_end_time = args[:archive_end_time] if args.key?(:archive_end_time)
727
+ @archive_start_time = args[:archive_start_time] if args.key?(:archive_start_time)
728
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
729
+ @max_events_move = args[:max_events_move] if args.key?(:max_events_move)
730
+ @organization_id = args[:organization_id] if args.key?(:organization_id)
731
+ @region = args[:region] if args.key?(:region)
732
+ end
733
+ end
734
+
735
+ # Response for reverting archived resource events.
736
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse
737
+ include Google::Apis::Core::Hashable
738
+
739
+ # The total number of events successfully moved to the original table.
740
+ # Corresponds to the JSON property `movedEventsCount`
741
+ # @return [Fixnum]
742
+ attr_accessor :moved_events_count
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @moved_events_count = args[:moved_events_count] if args.key?(:moved_events_count)
751
+ end
752
+ end
753
+
613
754
  # The details of the update.
614
755
  class GoogleCloudAssuredworkloadsV1beta1UpdateDetails
615
756
  include Google::Apis::Core::Hashable
@@ -1064,10 +1205,10 @@ module Google
1064
1205
  attr_accessor :partner_permissions
1065
1206
 
1066
1207
  # Optional. Billing account necessary for purchasing services from Sovereign
1067
- # Partners. This field is required for creating SIA/PSN/CNTXT partner workloads.
1068
- # The caller should have 'billing.resourceAssociations.create' IAM permission on
1069
- # this billing-account. The format of this string is billingAccounts/AAAAAA-
1070
- # BBBBBB-CCCCCC
1208
+ # Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner
1209
+ # workloads. The caller should have 'billing.resourceAssociations.create' IAM
1210
+ # permission on this billing-account. The format of this string is
1211
+ # billingAccounts/AAAAAA-BBBBBB-CCCCCC
1071
1212
  # Corresponds to the JSON property `partnerServicesBillingAccount`
1072
1213
  # @return [String]
1073
1214
  attr_accessor :partner_services_billing_account
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AssuredworkloadsV1beta1
18
18
  # Version of the google-apis-assuredworkloads_v1beta1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.34.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 = "20251209"
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 GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -154,6 +166,18 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class GoogleCloudAssuredworkloadsV1beta1UpdateDetails
158
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
183
 
@@ -352,6 +376,25 @@ module Google
352
376
  end
353
377
  end
354
378
 
379
+ class GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsRequest
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :archive_time, as: 'archiveTime'
383
+ property :batch_size, as: 'batchSize'
384
+ property :event_cutoff_time, as: 'eventCutoffTime'
385
+ property :max_events_move, as: 'maxEventsMove'
386
+ property :organization_id, :numeric_string => true, as: 'organizationId'
387
+ property :region, as: 'region'
388
+ end
389
+ end
390
+
391
+ class GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :moved_events_count, as: 'movedEventsCount'
395
+ end
396
+ end
397
+
355
398
  class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
356
399
  # @private
357
400
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -495,6 +538,25 @@ module Google
495
538
  end
496
539
  end
497
540
 
541
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsRequest
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :archive_end_time, as: 'archiveEndTime'
545
+ property :archive_start_time, as: 'archiveStartTime'
546
+ property :batch_size, as: 'batchSize'
547
+ property :max_events_move, as: 'maxEventsMove'
548
+ property :organization_id, :numeric_string => true, as: 'organizationId'
549
+ property :region, as: 'region'
550
+ end
551
+ end
552
+
553
+ class GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse
554
+ # @private
555
+ class Representation < Google::Apis::Core::JsonRepresentation
556
+ property :moved_events_count, as: 'movedEventsCount'
557
+ end
558
+ end
559
+
498
560
  class GoogleCloudAssuredworkloadsV1beta1UpdateDetails
499
561
  # @private
500
562
  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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsRequest] google_cloud_assuredworkloads_v1beta1_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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse]
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_v1beta1_archive_resource_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1beta1/assuredworkloads:archiveResourceEvents', options)
76
+ command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsRequest::Representation
77
+ command.request_object = google_cloud_assuredworkloads_v1beta1_archive_resource_events_request_object
78
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse::Representation
79
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ArchiveResourceEventsResponse
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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsRequest] google_cloud_assuredworkloads_v1beta1_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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse]
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_v1beta1_revert_archived_resource_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1beta1/assuredworkloads:revertArchivedResourceEvents', options)
107
+ command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsRequest::Representation
108
+ command.request_object = google_cloud_assuredworkloads_v1beta1_revert_archived_resource_events_request_object
109
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse::Representation
110
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RevertArchivedResourceEventsResponse
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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.34.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_v1beta1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.32.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.34.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1beta1
62
62
  rdoc_options: []
63
63
  require_paths: