google-apis-assuredworkloads_v1 0.64.0 → 0.66.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/assuredworkloads_v1/classes.rb +188 -0
- data/lib/google/apis/assuredworkloads_v1/gem_version.rb +3 -3
- data/lib/google/apis/assuredworkloads_v1/representations.rb +89 -0
- data/lib/google/apis/assuredworkloads_v1/service.rb +100 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 504a53d7ccb68dcf27bd2dec8cf22ae3583e8d5245263d04c6628d64a588e3ca
|
|
4
|
+
data.tar.gz: b2d76c312ab9c824711623636d6284a57727853fc700c1df85541dbc7033d9bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 346d76d2198a1b9cd3e477151542e287bcb4d2ef404d84a621c28099a42fe20db7c2161f5f99cc5ed065de81c13eaa29bce95109428706da6cf39ff0a16cb5ed
|
|
7
|
+
data.tar.gz: 133258f23818d70c6c2c4aa48adae08bf7140932ad844a2aff65d57590031f5f81288798963e460e00e406984f3e2434264e3c85a7332b78ad33e8582f428170
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-assuredworkloads_v1
|
|
2
2
|
|
|
3
|
+
### v0.66.0 (2026-06-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260601
|
|
6
|
+
* Regenerated using generator version 0.19.0
|
|
7
|
+
|
|
8
|
+
### v0.65.0 (2026-05-10)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20260504
|
|
11
|
+
|
|
3
12
|
### v0.64.0 (2026-04-19)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260321
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/learnmoreurl) may provide g
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -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
|
|
@@ -199,6 +269,53 @@ module Google
|
|
|
199
269
|
end
|
|
200
270
|
end
|
|
201
271
|
|
|
272
|
+
# Request for acknowledging the violations in a batch
|
|
273
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
|
|
274
|
+
include Google::Apis::Core::Hashable
|
|
275
|
+
|
|
276
|
+
# Optional. Acknowledge type of specified violations.
|
|
277
|
+
# Corresponds to the JSON property `acknowledgeType`
|
|
278
|
+
# @return [String]
|
|
279
|
+
attr_accessor :acknowledge_type
|
|
280
|
+
|
|
281
|
+
# Required. Business justification explaining the need for violations
|
|
282
|
+
# acknowledgement
|
|
283
|
+
# Corresponds to the JSON property `comment`
|
|
284
|
+
# @return [String]
|
|
285
|
+
attr_accessor :comment
|
|
286
|
+
|
|
287
|
+
# Required. The resource names of the Violations to acknowledge. Format for each
|
|
288
|
+
# name: organizations/`organization`/locations/`location`/workloads/`workload`/
|
|
289
|
+
# violations/`violation`
|
|
290
|
+
# Corresponds to the JSON property `names`
|
|
291
|
+
# @return [Array<String>]
|
|
292
|
+
attr_accessor :names
|
|
293
|
+
|
|
294
|
+
def initialize(**args)
|
|
295
|
+
update!(**args)
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Update properties of this object
|
|
299
|
+
def update!(**args)
|
|
300
|
+
@acknowledge_type = args[:acknowledge_type] if args.key?(:acknowledge_type)
|
|
301
|
+
@comment = args[:comment] if args.key?(:comment)
|
|
302
|
+
@names = args[:names] if args.key?(:names)
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Response for batch violation acknowledgement
|
|
307
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
|
|
308
|
+
include Google::Apis::Core::Hashable
|
|
309
|
+
|
|
310
|
+
def initialize(**args)
|
|
311
|
+
update!(**args)
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Update properties of this object
|
|
315
|
+
def update!(**args)
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
202
319
|
# Operation metadata to give request details of CreateWorkload.
|
|
203
320
|
class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
|
|
204
321
|
include Google::Apis::Core::Hashable
|
|
@@ -636,6 +753,77 @@ module Google
|
|
|
636
753
|
end
|
|
637
754
|
end
|
|
638
755
|
|
|
756
|
+
# Request for reverting archived resource events.
|
|
757
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
|
|
758
|
+
include Google::Apis::Core::Hashable
|
|
759
|
+
|
|
760
|
+
# Required. Only events within this time range will be reverted. This helps
|
|
761
|
+
# prevent reverting everything when something goes wrong.
|
|
762
|
+
# Corresponds to the JSON property `archiveEndTime`
|
|
763
|
+
# @return [String]
|
|
764
|
+
attr_accessor :archive_end_time
|
|
765
|
+
|
|
766
|
+
# Required. Only events within this time range will be reverted. This helps
|
|
767
|
+
# prevent reverting everything when something goes wrong.
|
|
768
|
+
# Corresponds to the JSON property `archiveStartTime`
|
|
769
|
+
# @return [String]
|
|
770
|
+
attr_accessor :archive_start_time
|
|
771
|
+
|
|
772
|
+
# Required. The number of events to process in a single transaction batch.
|
|
773
|
+
# Corresponds to the JSON property `batchSize`
|
|
774
|
+
# @return [Fixnum]
|
|
775
|
+
attr_accessor :batch_size
|
|
776
|
+
|
|
777
|
+
# Required. The maximum total number of events to move in this request.
|
|
778
|
+
# Corresponds to the JSON property `maxEventsMove`
|
|
779
|
+
# @return [Fixnum]
|
|
780
|
+
attr_accessor :max_events_move
|
|
781
|
+
|
|
782
|
+
# Required. The organization ID for which to revert events.
|
|
783
|
+
# Corresponds to the JSON property `organizationId`
|
|
784
|
+
# @return [Fixnum]
|
|
785
|
+
attr_accessor :organization_id
|
|
786
|
+
|
|
787
|
+
# Required. The region of the workload(s) whose events should be reverted. This
|
|
788
|
+
# is used to filter workloads based on AssurantWorkloadData.region.
|
|
789
|
+
# Corresponds to the JSON property `region`
|
|
790
|
+
# @return [String]
|
|
791
|
+
attr_accessor :region
|
|
792
|
+
|
|
793
|
+
def initialize(**args)
|
|
794
|
+
update!(**args)
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Update properties of this object
|
|
798
|
+
def update!(**args)
|
|
799
|
+
@archive_end_time = args[:archive_end_time] if args.key?(:archive_end_time)
|
|
800
|
+
@archive_start_time = args[:archive_start_time] if args.key?(:archive_start_time)
|
|
801
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
|
802
|
+
@max_events_move = args[:max_events_move] if args.key?(:max_events_move)
|
|
803
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
|
804
|
+
@region = args[:region] if args.key?(:region)
|
|
805
|
+
end
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Response for reverting archived resource events.
|
|
809
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
|
|
810
|
+
include Google::Apis::Core::Hashable
|
|
811
|
+
|
|
812
|
+
# The total number of events successfully moved to the original table.
|
|
813
|
+
# Corresponds to the JSON property `movedEventsCount`
|
|
814
|
+
# @return [Fixnum]
|
|
815
|
+
attr_accessor :moved_events_count
|
|
816
|
+
|
|
817
|
+
def initialize(**args)
|
|
818
|
+
update!(**args)
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# Update properties of this object
|
|
822
|
+
def update!(**args)
|
|
823
|
+
@moved_events_count = args[:moved_events_count] if args.key?(:moved_events_count)
|
|
824
|
+
end
|
|
825
|
+
end
|
|
826
|
+
|
|
639
827
|
# The details of the update.
|
|
640
828
|
class GoogleCloudAssuredworkloadsV1UpdateDetails
|
|
641
829
|
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.
|
|
19
|
+
GEM_VERSION = "0.66.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260601"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,12 +58,36 @@ 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
|
|
|
64
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
65
77
|
end
|
|
66
78
|
|
|
79
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
67
91
|
class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
|
|
68
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
93
|
|
|
@@ -160,6 +184,18 @@ module Google
|
|
|
160
184
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
185
|
end
|
|
162
186
|
|
|
187
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
+
|
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
+
end
|
|
198
|
+
|
|
163
199
|
class GoogleCloudAssuredworkloadsV1UpdateDetails
|
|
164
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
201
|
|
|
@@ -334,6 +370,25 @@ module Google
|
|
|
334
370
|
end
|
|
335
371
|
end
|
|
336
372
|
|
|
373
|
+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest
|
|
374
|
+
# @private
|
|
375
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
376
|
+
property :archive_time, as: 'archiveTime'
|
|
377
|
+
property :batch_size, as: 'batchSize'
|
|
378
|
+
property :event_cutoff_time, as: 'eventCutoffTime'
|
|
379
|
+
property :max_events_move, as: 'maxEventsMove'
|
|
380
|
+
property :organization_id, :numeric_string => true, as: 'organizationId'
|
|
381
|
+
property :region, as: 'region'
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
class GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse
|
|
386
|
+
# @private
|
|
387
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
388
|
+
property :moved_events_count, as: 'movedEventsCount'
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
337
392
|
class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
|
|
338
393
|
# @private
|
|
339
394
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -344,6 +399,21 @@ module Google
|
|
|
344
399
|
end
|
|
345
400
|
end
|
|
346
401
|
|
|
402
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest
|
|
403
|
+
# @private
|
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
405
|
+
property :acknowledge_type, as: 'acknowledgeType'
|
|
406
|
+
property :comment, as: 'comment'
|
|
407
|
+
collection :names, as: 'names'
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
class GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
|
|
412
|
+
# @private
|
|
413
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
347
417
|
class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
|
|
348
418
|
# @private
|
|
349
419
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -485,6 +555,25 @@ module Google
|
|
|
485
555
|
end
|
|
486
556
|
end
|
|
487
557
|
|
|
558
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest
|
|
559
|
+
# @private
|
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
561
|
+
property :archive_end_time, as: 'archiveEndTime'
|
|
562
|
+
property :archive_start_time, as: 'archiveStartTime'
|
|
563
|
+
property :batch_size, as: 'batchSize'
|
|
564
|
+
property :max_events_move, as: 'maxEventsMove'
|
|
565
|
+
property :organization_id, :numeric_string => true, as: 'organizationId'
|
|
566
|
+
property :region, as: 'region'
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
class GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse
|
|
571
|
+
# @private
|
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
573
|
+
property :moved_events_count, as: 'movedEventsCount'
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
|
|
488
577
|
class GoogleCloudAssuredworkloadsV1UpdateDetails
|
|
489
578
|
# @private
|
|
490
579
|
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
|
|
@@ -634,6 +696,44 @@ module Google
|
|
|
634
696
|
execute_or_queue_command(command, &block)
|
|
635
697
|
end
|
|
636
698
|
|
|
699
|
+
# Acknowledges multiple existing violations. By acknowledging violations, users
|
|
700
|
+
# acknowledge the existence of compliance violations in their workload and
|
|
701
|
+
# decide to ignore them due to a valid business justification. Acknowledgement
|
|
702
|
+
# is a permanent operation and it cannot be reverted. This is a batch version of
|
|
703
|
+
# AcknowledgeViolation.
|
|
704
|
+
# @param [String] parent
|
|
705
|
+
# Optional. The parent resource shared by all violations being acknowledged.
|
|
706
|
+
# Format: organizations/`organization`/locations/`location`/workloads/`workload`
|
|
707
|
+
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest] google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object
|
|
708
|
+
# @param [String] fields
|
|
709
|
+
# Selector specifying which fields to include in a partial response.
|
|
710
|
+
# @param [String] quota_user
|
|
711
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
712
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
713
|
+
# @param [Google::Apis::RequestOptions] options
|
|
714
|
+
# Request-specific options
|
|
715
|
+
#
|
|
716
|
+
# @yield [result, err] Result & error if block supplied
|
|
717
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse] parsed result object
|
|
718
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
719
|
+
#
|
|
720
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse]
|
|
721
|
+
#
|
|
722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
725
|
+
def batch_organization_location_workload_violation_acknowledge_violations(parent, google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
726
|
+
command = make_simple_command(:post, 'v1/{+parent}/violations:batchAcknowledgeViolations', options)
|
|
727
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest::Representation
|
|
728
|
+
command.request_object = google_cloud_assuredworkloads_v1_batch_acknowledge_violations_request_object
|
|
729
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse::Representation
|
|
730
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse
|
|
731
|
+
command.params['parent'] = parent unless parent.nil?
|
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
|
733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
734
|
+
execute_or_queue_command(command, &block)
|
|
735
|
+
end
|
|
736
|
+
|
|
637
737
|
# Retrieves Assured Workload Violation based on ID.
|
|
638
738
|
# @param [String] name
|
|
639
739
|
# Required. The resource name of the Violation to fetch (ie. Violation.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.
|
|
4
|
+
version: 0.66.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.66.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:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|