google-apis-assuredworkloads_v1 0.26.0 → 0.27.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 +5 -0
- data/lib/google/apis/assuredworkloads_v1/classes.rb +225 -726
- data/lib/google/apis/assuredworkloads_v1/gem_version.rb +3 -3
- data/lib/google/apis/assuredworkloads_v1/representations.rb +71 -297
- data/lib/google/apis/assuredworkloads_v1/service.rb +120 -0
- metadata +5 -5
@@ -357,6 +357,126 @@ module Google
|
|
357
357
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
358
|
execute_or_queue_command(command, &block)
|
359
359
|
end
|
360
|
+
|
361
|
+
# Acknowledges an existing violation. By acknowledging a violation, users
|
362
|
+
# acknowledge the existence of a compliance violation in their workload and
|
363
|
+
# decide to ignore it due to a valid business justification. Acknowledgement is
|
364
|
+
# a permanent operation and it cannot be reverted.
|
365
|
+
# @param [String] name
|
366
|
+
# Required. The resource name of the Violation to acknowledge. Format:
|
367
|
+
# organizations/`organization`/locations/`location`/workloads/`workload`/
|
368
|
+
# violations/`violation`
|
369
|
+
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest] google_cloud_assuredworkloads_v1_acknowledge_violation_request_object
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
+
# @param [Google::Apis::RequestOptions] options
|
376
|
+
# Request-specific options
|
377
|
+
#
|
378
|
+
# @yield [result, err] Result & error if block supplied
|
379
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse] parsed result object
|
380
|
+
# @yieldparam err [StandardError] error object if request failed
|
381
|
+
#
|
382
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse]
|
383
|
+
#
|
384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
+
def acknowledge_organization_location_workload_violation(name, google_cloud_assuredworkloads_v1_acknowledge_violation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
+
command = make_simple_command(:post, 'v1/{+name}:acknowledge', options)
|
389
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest::Representation
|
390
|
+
command.request_object = google_cloud_assuredworkloads_v1_acknowledge_violation_request_object
|
391
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse::Representation
|
392
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse
|
393
|
+
command.params['name'] = name unless name.nil?
|
394
|
+
command.query['fields'] = fields unless fields.nil?
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
+
execute_or_queue_command(command, &block)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Retrieves Assured Workload Violation based on ID.
|
400
|
+
# @param [String] name
|
401
|
+
# Required. The resource name of the Violation to fetch (ie. Violation.name).
|
402
|
+
# Format: organizations/`organization`/locations/`location`/workloads/`workload`/
|
403
|
+
# violations/`violation`
|
404
|
+
# @param [String] fields
|
405
|
+
# Selector specifying which fields to include in a partial response.
|
406
|
+
# @param [String] quota_user
|
407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
409
|
+
# @param [Google::Apis::RequestOptions] options
|
410
|
+
# Request-specific options
|
411
|
+
#
|
412
|
+
# @yield [result, err] Result & error if block supplied
|
413
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Violation] parsed result object
|
414
|
+
# @yieldparam err [StandardError] error object if request failed
|
415
|
+
#
|
416
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Violation]
|
417
|
+
#
|
418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
+
def get_organization_location_workload_violation(name, fields: nil, quota_user: nil, options: nil, &block)
|
422
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
423
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Violation::Representation
|
424
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Violation
|
425
|
+
command.params['name'] = name unless name.nil?
|
426
|
+
command.query['fields'] = fields unless fields.nil?
|
427
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
428
|
+
execute_or_queue_command(command, &block)
|
429
|
+
end
|
430
|
+
|
431
|
+
# Lists the Violations in the AssuredWorkload Environment. Callers may also
|
432
|
+
# choose to read across multiple Workloads as per [AIP-159](https://google.aip.
|
433
|
+
# dev/159) by using '-' (the hyphen or dash character) as a wildcard character
|
434
|
+
# instead of workload-id in the parent. Format `organizations/`org_id`/locations/
|
435
|
+
# `location`/workloads/-`
|
436
|
+
# @param [String] parent
|
437
|
+
# Required. The Workload name. Format `organizations/`org_id`/locations/`
|
438
|
+
# location`/workloads/`workload``.
|
439
|
+
# @param [String] filter
|
440
|
+
# Optional. A custom filter for filtering by the Violations properties.
|
441
|
+
# @param [String] interval_end_time
|
442
|
+
# The end of the time window.
|
443
|
+
# @param [String] interval_start_time
|
444
|
+
# The start of the time window.
|
445
|
+
# @param [Fixnum] page_size
|
446
|
+
# Optional. Page size.
|
447
|
+
# @param [String] page_token
|
448
|
+
# Optional. Page token returned from previous request.
|
449
|
+
# @param [String] fields
|
450
|
+
# Selector specifying which fields to include in a partial response.
|
451
|
+
# @param [String] quota_user
|
452
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
453
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
454
|
+
# @param [Google::Apis::RequestOptions] options
|
455
|
+
# Request-specific options
|
456
|
+
#
|
457
|
+
# @yield [result, err] Result & error if block supplied
|
458
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListViolationsResponse] parsed result object
|
459
|
+
# @yieldparam err [StandardError] error object if request failed
|
460
|
+
#
|
461
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListViolationsResponse]
|
462
|
+
#
|
463
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
464
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
465
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
466
|
+
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)
|
467
|
+
command = make_simple_command(:get, 'v1/{+parent}/violations', options)
|
468
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListViolationsResponse::Representation
|
469
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListViolationsResponse
|
470
|
+
command.params['parent'] = parent unless parent.nil?
|
471
|
+
command.query['filter'] = filter unless filter.nil?
|
472
|
+
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
473
|
+
command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
|
474
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
475
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
476
|
+
command.query['fields'] = fields unless fields.nil?
|
477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
+
execute_or_queue_command(command, &block)
|
479
|
+
end
|
360
480
|
|
361
481
|
protected
|
362
482
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.9.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|