google-apis-assuredworkloads_v1beta1 0.34.0 → 0.36.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: de06c1fdd7d43605085dc987fa07bbdd4952f8fb91faaa08dea3e92dd5a0a850
4
- data.tar.gz: 4e503d5b523675b31e5d3a3dae8fec1c4c660a2f15f87da23847d6ae0096a432
3
+ metadata.gz: d034ea839f8144c82ab478a5c75bd6201f071000036817123814095cc02a1658
4
+ data.tar.gz: d8c1b2d64e765e15bf927b3632448481a8c0f62880b0dd898461323c3d1b5d91
5
5
  SHA512:
6
- metadata.gz: 0126afdb05470ed78a468ef5102fca9a4c8d7c6cc6ec678940c8b145127e8f190b6227c998729fbb4608c6161a3f17f4fe117140ecd8d9feae19f37287e39636
7
- data.tar.gz: 76049daf3746d1c01e61b8998eda6bed6a0dd2550976e259406ae8d75adfdee46a1fb6214a85a5948bf78a72c2c5261b0f24d1288a30271e58901ed1b58885c7
6
+ metadata.gz: 5ba57f5791672ca87b38bd5083bcd56222dbb5f69a05b6b10bca1618b41ec5cd09a7081bcb145cf407c1e772ed698b5c8846364e23309336037548566fdf8e26
7
+ data.tar.gz: dea3ba094dcccc3db685f0fa692d5e8eb94468404463211c49a335473b5d4bbccddebc445b8d121d4a9a6eae31f735e234d8ea32523793ea5255e4fbf636e9e3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-assuredworkloads_v1beta1
2
2
 
3
+ ### v0.36.0 (2026-06-21)
4
+
5
+ * Regenerated from discovery document revision 20260615
6
+
7
+ ### v0.35.0 (2026-06-14)
8
+
9
+ * Regenerated from discovery document revision 20260601
10
+ * Regenerated using generator version 0.19.0
11
+
3
12
  ### v0.34.0 (2026-05-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20260504
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.1+.
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
 
@@ -269,6 +269,53 @@ module Google
269
269
  end
270
270
  end
271
271
 
272
+ # Request for acknowledging the violations in a batch
273
+ class GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest
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 GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
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
+
272
319
  # Operation metadata to give request details of CreateWorkload.
273
320
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
274
321
  include Google::Apis::Core::Hashable
@@ -349,6 +396,11 @@ module Google
349
396
  # @return [String]
350
397
  attr_accessor :next_page_token
351
398
 
399
+ # The total number of violations.
400
+ # Corresponds to the JSON property `totalSize`
401
+ # @return [Fixnum]
402
+ attr_accessor :total_size
403
+
352
404
  # List of Violations under a Workload.
353
405
  # Corresponds to the JSON property `violations`
354
406
  # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation>]
@@ -361,6 +413,7 @@ module Google
361
413
  # Update properties of this object
362
414
  def update!(**args)
363
415
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
416
+ @total_size = args[:total_size] if args.key?(:total_size)
364
417
  @violations = args[:violations] if args.key?(:violations)
365
418
  end
366
419
  end
@@ -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.34.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.18.0"
22
+ GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260504"
25
+ REVISION = "20260615"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -405,6 +417,21 @@ module Google
405
417
  end
406
418
  end
407
419
 
420
+ class GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :acknowledge_type, as: 'acknowledgeType'
424
+ property :comment, as: 'comment'
425
+ collection :names, as: 'names'
426
+ end
427
+ end
428
+
429
+ class GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
430
+ # @private
431
+ class Representation < Google::Apis::Core::JsonRepresentation
432
+ end
433
+ end
434
+
408
435
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
409
436
  # @private
410
437
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -433,6 +460,7 @@ module Google
433
460
  # @private
434
461
  class Representation < Google::Apis::Core::JsonRepresentation
435
462
  property :next_page_token, as: 'nextPageToken'
463
+ property :total_size, as: 'totalSize'
436
464
  collection :violations, as: 'violations', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation::Representation
437
465
 
438
466
  end
@@ -193,6 +193,44 @@ module Google
193
193
  execute_or_queue_command(command, &block)
194
194
  end
195
195
 
196
+ # Acknowledges multiple existing violations. By acknowledging violations, users
197
+ # acknowledge the existence of compliance violations in their workload and
198
+ # decide to ignore them due to a valid business justification. Acknowledgement
199
+ # is a permanent operation and it cannot be reverted. This is a batch version of
200
+ # AcknowledgeViolation.
201
+ # @param [String] parent
202
+ # Optional. The parent resource shared by all violations being acknowledged.
203
+ # Format: organizations/`organization`/locations/`location`/workloads/`workload`
204
+ # @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest] google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def batch_organization_location_violation_acknowledge_violations(parent, google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'v1beta1/{+parent}/violations:batchAcknowledgeViolations', options)
224
+ command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest::Representation
225
+ command.request_object = google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
226
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse::Representation
227
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
228
+ command.params['parent'] = parent unless parent.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
196
234
  # Analyzes a hypothetical move of a source resource to a target workload to
197
235
  # surface compliance risks. The analysis is best effort and is not guaranteed to
198
236
  # be exhaustive.
@@ -660,6 +698,44 @@ module Google
660
698
  execute_or_queue_command(command, &block)
661
699
  end
662
700
 
701
+ # Acknowledges multiple existing violations. By acknowledging violations, users
702
+ # acknowledge the existence of compliance violations in their workload and
703
+ # decide to ignore them due to a valid business justification. Acknowledgement
704
+ # is a permanent operation and it cannot be reverted. This is a batch version of
705
+ # AcknowledgeViolation.
706
+ # @param [String] parent
707
+ # Optional. The parent resource shared by all violations being acknowledged.
708
+ # Format: organizations/`organization`/locations/`location`/workloads/`workload`
709
+ # @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest] google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def batch_organization_location_workload_violation_acknowledge_violations(parent, google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
+ command = make_simple_command(:post, 'v1beta1/{+parent}/violations:batchAcknowledgeViolations', options)
729
+ command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest::Representation
730
+ command.request_object = google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
731
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse::Representation
732
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
733
+ command.params['parent'] = parent unless parent.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
663
739
  # Retrieves Assured Workload Violation based on ID.
664
740
  # @param [String] name
665
741
  # Required. The resource name of the Violation to fetch (ie. Violation.name).
@@ -706,6 +782,8 @@ module Google
706
782
  # The end of the time window.
707
783
  # @param [String] interval_start_time
708
784
  # The start of the time window.
785
+ # @param [String] order_by
786
+ # Optional. Actionable sorting delegation.
709
787
  # @param [Fixnum] page_size
710
788
  # Optional. Page size.
711
789
  # @param [String] page_token
@@ -727,7 +805,7 @@ module Google
727
805
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
806
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
807
  # @raise [Google::Apis::AuthorizationError] Authorization is required
730
- def list_organization_location_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
808
+ def list_organization_location_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
731
809
  command = make_simple_command(:get, 'v1beta1/{+parent}/violations', options)
732
810
  command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse::Representation
733
811
  command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse
@@ -735,12 +813,51 @@ module Google
735
813
  command.query['filter'] = filter unless filter.nil?
736
814
  command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
737
815
  command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
816
+ command.query['orderBy'] = order_by unless order_by.nil?
738
817
  command.query['pageSize'] = page_size unless page_size.nil?
739
818
  command.query['pageToken'] = page_token unless page_token.nil?
740
819
  command.query['fields'] = fields unless fields.nil?
741
820
  command.query['quotaUser'] = quota_user unless quota_user.nil?
742
821
  execute_or_queue_command(command, &block)
743
822
  end
823
+
824
+ # Acknowledges multiple existing violations. By acknowledging violations, users
825
+ # acknowledge the existence of compliance violations in their workload and
826
+ # decide to ignore them due to a valid business justification. Acknowledgement
827
+ # is a permanent operation and it cannot be reverted. This is a batch version of
828
+ # AcknowledgeViolation.
829
+ # @param [String] parent
830
+ # Optional. The parent resource shared by all violations being acknowledged.
831
+ # Format: organizations/`organization`/locations/`location`/workloads/`workload`
832
+ # @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest] google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
833
+ # @param [String] fields
834
+ # Selector specifying which fields to include in a partial response.
835
+ # @param [String] quota_user
836
+ # Available to use for quota purposes for server-side applications. Can be any
837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
838
+ # @param [Google::Apis::RequestOptions] options
839
+ # Request-specific options
840
+ #
841
+ # @yield [result, err] Result & error if block supplied
842
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse] parsed result object
843
+ # @yieldparam err [StandardError] error object if request failed
844
+ #
845
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse]
846
+ #
847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
850
+ def batch_organization_violation_acknowledge_violations(parent, google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
851
+ command = make_simple_command(:post, 'v1beta1/{+parent}/violations:batchAcknowledgeViolations', options)
852
+ command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest::Representation
853
+ command.request_object = google_cloud_assuredworkloads_v1beta1_batch_acknowledge_violations_request_object
854
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse::Representation
855
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse
856
+ command.params['parent'] = parent unless parent.nil?
857
+ command.query['fields'] = fields unless fields.nil?
858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
744
861
 
745
862
  protected
746
863
 
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.34.0
4
+ version: 0.36.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.34.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.36.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:
@@ -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.1'
69
+ version: '3.2'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="