google-apis-assuredworkloads_v1 0.30.0 → 0.31.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_v1/classes.rb +68 -1
- data/lib/google/apis/assuredworkloads_v1/gem_version.rb +2 -2
- data/lib/google/apis/assuredworkloads_v1/representations.rb +31 -0
- data/lib/google/apis/assuredworkloads_v1/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: 13f24468678320d58513d297b3adb8021558914b6403b9fc5db40f67b7ac5cd1
|
4
|
+
data.tar.gz: a50ff1c88fc034a81fb02dbb35e71a68a837633c88741a81251c397b8b7911cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22244c79bfba4aecf106c9e02098a2be73098f2e4e8fe92ff587235547c5326298e144707afd1c41e50131aeba7e185e106f5db98f992af0f948ecb9a41adceb
|
7
|
+
data.tar.gz: 0ae6a56fcc1a1af91d750c63a6434fbfafb4ee6f3a4d118b3f70aec576955b2112809362f37a0454d67a295ea5c2dc27a39ae2e97eed8aa96e93e062694c709c
|
data/CHANGELOG.md
CHANGED
@@ -153,6 +153,39 @@ module Google
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
+
# Request of updating permission settings for a partner workload.
|
157
|
+
class GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
|
158
|
+
include Google::Apis::Core::Hashable
|
159
|
+
|
160
|
+
# Optional. The etag of the workload. If this is provided, it must match the
|
161
|
+
# server's etag.
|
162
|
+
# Corresponds to the JSON property `etag`
|
163
|
+
# @return [String]
|
164
|
+
attr_accessor :etag
|
165
|
+
|
166
|
+
# Permissions granted to the AW Partner SA account for the customer workload
|
167
|
+
# Corresponds to the JSON property `partnerPermissions`
|
168
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions]
|
169
|
+
attr_accessor :partner_permissions
|
170
|
+
|
171
|
+
# Required. The list of fields to be updated. E.g. update_mask ` paths: "
|
172
|
+
# partner_permissions.data_logs_viewer"`
|
173
|
+
# Corresponds to the JSON property `updateMask`
|
174
|
+
# @return [String]
|
175
|
+
attr_accessor :update_mask
|
176
|
+
|
177
|
+
def initialize(**args)
|
178
|
+
update!(**args)
|
179
|
+
end
|
180
|
+
|
181
|
+
# Update properties of this object
|
182
|
+
def update!(**args)
|
183
|
+
@etag = args[:etag] if args.key?(:etag)
|
184
|
+
@partner_permissions = args[:partner_permissions] if args.key?(:partner_permissions)
|
185
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
156
189
|
# Request for restricting list of available resources in Workload environment.
|
157
190
|
class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
|
158
191
|
include Google::Apis::Core::Hashable
|
@@ -500,7 +533,7 @@ module Google
|
|
500
533
|
# @return [String]
|
501
534
|
attr_accessor :name
|
502
535
|
|
503
|
-
# Optional.
|
536
|
+
# Optional. Partner regime associated with this workload.
|
504
537
|
# Corresponds to the JSON property `partner`
|
505
538
|
# @return [String]
|
506
539
|
attr_accessor :partner
|
@@ -614,6 +647,40 @@ module Google
|
|
614
647
|
end
|
615
648
|
end
|
616
649
|
|
650
|
+
# Permissions granted to the AW Partner SA account for the customer workload
|
651
|
+
class GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
|
652
|
+
include Google::Apis::Core::Hashable
|
653
|
+
|
654
|
+
# Allow partner to view data and logs
|
655
|
+
# Corresponds to the JSON property `dataLogsViewer`
|
656
|
+
# @return [Boolean]
|
657
|
+
attr_accessor :data_logs_viewer
|
658
|
+
alias_method :data_logs_viewer?, :data_logs_viewer
|
659
|
+
|
660
|
+
# Allow partner to monitor folder and remediate violations
|
661
|
+
# Corresponds to the JSON property `remediateFolderViolations`
|
662
|
+
# @return [Boolean]
|
663
|
+
attr_accessor :remediate_folder_violations
|
664
|
+
alias_method :remediate_folder_violations?, :remediate_folder_violations
|
665
|
+
|
666
|
+
# Allow partner to approve or reject Service Access requests
|
667
|
+
# Corresponds to the JSON property `serviceAccessApprover`
|
668
|
+
# @return [Boolean]
|
669
|
+
attr_accessor :service_access_approver
|
670
|
+
alias_method :service_access_approver?, :service_access_approver
|
671
|
+
|
672
|
+
def initialize(**args)
|
673
|
+
update!(**args)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Update properties of this object
|
677
|
+
def update!(**args)
|
678
|
+
@data_logs_viewer = args[:data_logs_viewer] if args.key?(:data_logs_viewer)
|
679
|
+
@remediate_folder_violations = args[:remediate_folder_violations] if args.key?(:remediate_folder_violations)
|
680
|
+
@service_access_approver = args[:service_access_approver] if args.key?(:service_access_approver)
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
617
684
|
# Represent the resources that are children of this Workload.
|
618
685
|
class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
|
619
686
|
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.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221128"
|
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 GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -112,6 +118,12 @@ module Google
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
113
119
|
end
|
114
120
|
|
121
|
+
class GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -196,6 +208,16 @@ module Google
|
|
196
208
|
end
|
197
209
|
end
|
198
210
|
|
211
|
+
class GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
property :etag, as: 'etag'
|
215
|
+
property :partner_permissions, as: 'partnerPermissions', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions::Representation
|
216
|
+
|
217
|
+
property :update_mask, as: 'updateMask'
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
199
221
|
class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
|
200
222
|
# @private
|
201
223
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -312,6 +334,15 @@ module Google
|
|
312
334
|
end
|
313
335
|
end
|
314
336
|
|
337
|
+
class GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
|
338
|
+
# @private
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
+
property :data_logs_viewer, as: 'dataLogsViewer'
|
341
|
+
property :remediate_folder_violations, as: 'remediateFolderViolations'
|
342
|
+
property :service_access_approver, as: 'serviceAccessApprover'
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
315
346
|
class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
|
316
347
|
# @private
|
317
348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -279,6 +279,42 @@ module Google
|
|
279
279
|
execute_or_queue_command(command, &block)
|
280
280
|
end
|
281
281
|
|
282
|
+
# Update the permissions settings for an existing partner workload. For force
|
283
|
+
# updates don't set etag field in the Workload. Only one update operation per
|
284
|
+
# workload can be in progress.
|
285
|
+
# @param [String] name
|
286
|
+
# Required. The `name` field is used to identify the workload. Format:
|
287
|
+
# organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
|
288
|
+
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest] google_cloud_assuredworkloads_v1_mutate_partner_permissions_request_object
|
289
|
+
# @param [String] fields
|
290
|
+
# Selector specifying which fields to include in a partial response.
|
291
|
+
# @param [String] quota_user
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def mutate_organization_location_workload_partner_permissions(name, google_cloud_assuredworkloads_v1_mutate_partner_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:patch, 'v1/{+name}:mutatePartnerPermissions', options)
|
308
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest::Representation
|
309
|
+
command.request_object = google_cloud_assuredworkloads_v1_mutate_partner_permissions_request_object
|
310
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload::Representation
|
311
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload
|
312
|
+
command.params['name'] = name unless name.nil?
|
313
|
+
command.query['fields'] = fields unless fields.nil?
|
314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
315
|
+
execute_or_queue_command(command, &block)
|
316
|
+
end
|
317
|
+
|
282
318
|
# Updates an existing workload. Currently allows updating of workload
|
283
319
|
# display_name and labels. For force updates don't set etag field in the
|
284
320
|
# Workload. Only one update operation per workload can be in progress.
|
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.31.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-12-12 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_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.31.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: []
|