google-apis-assuredworkloads_v1beta1 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/assuredworkloads_v1beta1/classes.rb +22 -0
- data/lib/google/apis/assuredworkloads_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/assuredworkloads_v1beta1/representations.rb +13 -0
- data/lib/google/apis/assuredworkloads_v1beta1/service.rb +36 -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: b089eeb81216cd21a2c8936c494aea2e75b8c4dd5c11678158c986b18e16fa0f
|
4
|
+
data.tar.gz: b99ee540243050429ceaf732051411f9a44d9c6f62b80d6185bb959d2e8d018f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00f8473731ae344f8a6c6046fe1542038139bbcb9b0b4fbdfa02301e12237e1a50aef35fd2aeb10f4f791b707d820bcf398006249443ade27860638638a0823b
|
7
|
+
data.tar.gz: 9c153f0d3e4ef2339bcced22538ca313f21e569133866fac37069b329f10e948e9039558c2a66a6a6a9e09e8c0698d2317fb3afe3f4a22aba08a2f37e4c5c8f3
|
data/CHANGELOG.md
CHANGED
@@ -175,6 +175,19 @@ module Google
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
+
# Response for EnableComplianceUpdates endpoint.
|
179
|
+
class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
|
180
|
+
include Google::Apis::Core::Hashable
|
181
|
+
|
182
|
+
def initialize(**args)
|
183
|
+
update!(**args)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Update properties of this object
|
187
|
+
def update!(**args)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
178
191
|
# Response for EnableResourceMonitoring endpoint.
|
179
192
|
class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
|
180
193
|
include Google::Apis::Core::Hashable
|
@@ -691,6 +704,14 @@ module Google
|
|
691
704
|
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus]
|
692
705
|
attr_accessor :compliance_status
|
693
706
|
|
707
|
+
# Output only. Indicates whether the compliance updates feature is enabled for a
|
708
|
+
# workload. The compliance updates feature can be enabled via the
|
709
|
+
# EnableComplianceUpdates endpoint.
|
710
|
+
# Corresponds to the JSON property `complianceUpdatesEnabled`
|
711
|
+
# @return [Boolean]
|
712
|
+
attr_accessor :compliance_updates_enabled
|
713
|
+
alias_method :compliance_updates_enabled?, :compliance_updates_enabled
|
714
|
+
|
694
715
|
# Output only. Urls for services which are compliant for this Assured Workload,
|
695
716
|
# but which are currently disallowed by the ResourceUsageRestriction org policy.
|
696
717
|
# Invoke RestrictAllowedResources endpoint to allow your project developers to
|
@@ -830,6 +851,7 @@ module Google
|
|
830
851
|
@cjis_settings = args[:cjis_settings] if args.key?(:cjis_settings)
|
831
852
|
@compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
|
832
853
|
@compliance_status = args[:compliance_status] if args.key?(:compliance_status)
|
854
|
+
@compliance_updates_enabled = args[:compliance_updates_enabled] if args.key?(:compliance_updates_enabled)
|
833
855
|
@compliant_but_disallowed_services = args[:compliant_but_disallowed_services] if args.key?(:compliant_but_disallowed_services)
|
834
856
|
@create_time = args[:create_time] if args.key?(:create_time)
|
835
857
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -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.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240621"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -278,6 +284,12 @@ module Google
|
|
278
284
|
end
|
279
285
|
end
|
280
286
|
|
287
|
+
class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
|
288
|
+
# @private
|
289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
281
293
|
class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
|
282
294
|
# @private
|
283
295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -427,6 +439,7 @@ module Google
|
|
427
439
|
property :compliance_regime, as: 'complianceRegime'
|
428
440
|
property :compliance_status, as: 'complianceStatus', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus::Representation
|
429
441
|
|
442
|
+
property :compliance_updates_enabled, as: 'complianceUpdatesEnabled'
|
430
443
|
collection :compliant_but_disallowed_services, as: 'compliantButDisallowedServices'
|
431
444
|
property :create_time, as: 'createTime'
|
432
445
|
property :display_name, as: 'displayName'
|
@@ -258,6 +258,42 @@ module Google
|
|
258
258
|
execute_or_queue_command(command, &block)
|
259
259
|
end
|
260
260
|
|
261
|
+
# This endpoint enables Assured Workloads service to offer compliance updates
|
262
|
+
# for the folder based assured workload. It sets up an Assured Workloads Service
|
263
|
+
# Agent, having permissions to read compliance controls (for example: Org
|
264
|
+
# Policies) applied on the workload. The caller must have `resourcemanager.
|
265
|
+
# folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions
|
266
|
+
# on the assured workload folder.
|
267
|
+
# @param [String] name
|
268
|
+
# Required. The `name` field is used to identify the workload. Format:
|
269
|
+
# organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
|
270
|
+
# @param [String] fields
|
271
|
+
# Selector specifying which fields to include in a partial response.
|
272
|
+
# @param [String] quota_user
|
273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
275
|
+
# @param [Google::Apis::RequestOptions] options
|
276
|
+
# Request-specific options
|
277
|
+
#
|
278
|
+
# @yield [result, err] Result & error if block supplied
|
279
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse] parsed result object
|
280
|
+
# @yieldparam err [StandardError] error object if request failed
|
281
|
+
#
|
282
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse]
|
283
|
+
#
|
284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
287
|
+
def enable_organization_location_workload_compliance_updates(name, fields: nil, quota_user: nil, options: nil, &block)
|
288
|
+
command = make_simple_command(:put, 'v1beta1/{+name}:enableComplianceUpdates', options)
|
289
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse::Representation
|
290
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse
|
291
|
+
command.params['name'] = name unless name.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
261
297
|
# Enable resource violation monitoring for a workload.
|
262
298
|
# @param [String] name
|
263
299
|
# Required. The `name` field is used to identify the workload. Format:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.26.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: 2024-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|