google-apis-assuredworkloads_v1beta1 0.35.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/assuredworkloads_v1beta1/classes.rb +6 -0
- data/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/assuredworkloads_v1beta1/representations.rb +1 -0
- data/lib/google/apis/assuredworkloads_v1beta1/service.rb +80 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d034ea839f8144c82ab478a5c75bd6201f071000036817123814095cc02a1658
|
|
4
|
+
data.tar.gz: d8c1b2d64e765e15bf927b3632448481a8c0f62880b0dd898461323c3d1b5d91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ba57f5791672ca87b38bd5083bcd56222dbb5f69a05b6b10bca1618b41ec5cd09a7081bcb145cf407c1e772ed698b5c8846364e23309336037548566fdf8e26
|
|
7
|
+
data.tar.gz: dea3ba094dcccc3db685f0fa692d5e8eb94468404463211c49a335473b5d4bbccddebc445b8d121d4a9a6eae31f735e234d8ea32523793ea5255e4fbf636e9e3
|
data/CHANGELOG.md
CHANGED
|
@@ -396,6 +396,11 @@ module Google
|
|
|
396
396
|
# @return [String]
|
|
397
397
|
attr_accessor :next_page_token
|
|
398
398
|
|
|
399
|
+
# The total number of violations.
|
|
400
|
+
# Corresponds to the JSON property `totalSize`
|
|
401
|
+
# @return [Fixnum]
|
|
402
|
+
attr_accessor :total_size
|
|
403
|
+
|
|
399
404
|
# List of Violations under a Workload.
|
|
400
405
|
# Corresponds to the JSON property `violations`
|
|
401
406
|
# @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation>]
|
|
@@ -408,6 +413,7 @@ module Google
|
|
|
408
413
|
# Update properties of this object
|
|
409
414
|
def update!(**args)
|
|
410
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)
|
|
411
417
|
@violations = args[:violations] if args.key?(:violations)
|
|
412
418
|
end
|
|
413
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.
|
|
19
|
+
GEM_VERSION = "0.36.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260615"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -460,6 +460,7 @@ module Google
|
|
|
460
460
|
# @private
|
|
461
461
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
462
462
|
property :next_page_token, as: 'nextPageToken'
|
|
463
|
+
property :total_size, as: 'totalSize'
|
|
463
464
|
collection :violations, as: 'violations', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation::Representation
|
|
464
465
|
|
|
465
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.
|
|
@@ -744,6 +782,8 @@ module Google
|
|
|
744
782
|
# The end of the time window.
|
|
745
783
|
# @param [String] interval_start_time
|
|
746
784
|
# The start of the time window.
|
|
785
|
+
# @param [String] order_by
|
|
786
|
+
# Optional. Actionable sorting delegation.
|
|
747
787
|
# @param [Fixnum] page_size
|
|
748
788
|
# Optional. Page size.
|
|
749
789
|
# @param [String] page_token
|
|
@@ -765,7 +805,7 @@ module Google
|
|
|
765
805
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
766
806
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
767
807
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
768
|
-
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)
|
|
769
809
|
command = make_simple_command(:get, 'v1beta1/{+parent}/violations', options)
|
|
770
810
|
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse::Representation
|
|
771
811
|
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse
|
|
@@ -773,12 +813,51 @@ module Google
|
|
|
773
813
|
command.query['filter'] = filter unless filter.nil?
|
|
774
814
|
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
|
775
815
|
command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
|
|
816
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
776
817
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
777
818
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
778
819
|
command.query['fields'] = fields unless fields.nil?
|
|
779
820
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
780
821
|
execute_or_queue_command(command, &block)
|
|
781
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
|
|
782
861
|
|
|
783
862
|
protected
|
|
784
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.
|
|
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.
|
|
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:
|