google-apis-assuredworkloads_v1 0.29.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3a61a51f3769dda368b30891e7b0c0bb3aeb21a47f1810c4feb6f95821fe3e4
4
- data.tar.gz: 7004f8110ea69fe832cc11ca58b7b87e2938d4b7c6c38a654888ff2c29684c03
3
+ metadata.gz: 13f24468678320d58513d297b3adb8021558914b6403b9fc5db40f67b7ac5cd1
4
+ data.tar.gz: a50ff1c88fc034a81fb02dbb35e71a68a837633c88741a81251c397b8b7911cd
5
5
  SHA512:
6
- metadata.gz: 78867928ca4b03e5b97bfd1ec2d0ca35fdadee212e2463564f5407037fb24d89d47920b5dc28f89490740fd1762ec31284888c007dedb12abe1b8209cfe3574b
7
- data.tar.gz: 7e72e5b2f4e9bf3f20dc32353aac9b20ee90f767f6b411a20e00ac58f58e14352ae7924f8e290fa2b7a2589f87acccb471c1dc3ee1509e17f7d6c9761497910b
6
+ metadata.gz: 22244c79bfba4aecf106c9e02098a2be73098f2e4e8fe92ff587235547c5326298e144707afd1c41e50131aeba7e185e106f5db98f992af0f948ecb9a41adceb
7
+ data.tar.gz: 0ae6a56fcc1a1af91d750c63a6434fbfafb4ee6f3a4d118b3f70aec576955b2112809362f37a0454d67a295ea5c2dc27a39ae2e97eed8aa96e93e062694c709c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.31.0 (2022-12-01)
4
+
5
+ * Regenerated from discovery document revision 20221128
6
+
7
+ ### v0.30.0 (2022-10-28)
8
+
9
+ * Regenerated from discovery document revision 20221020
10
+
3
11
  ### v0.29.0 (2022-10-20)
4
12
 
5
13
  * Regenerated from discovery document revision 20221014
@@ -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
@@ -439,6 +472,11 @@ module Google
439
472
  # @return [String]
440
473
  attr_accessor :compliance_regime
441
474
 
475
+ # Represents the Compliance Status of this workload
476
+ # Corresponds to the JSON property `complianceStatus`
477
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus]
478
+ attr_accessor :compliance_status
479
+
442
480
  # Output only. Urls for services which are compliant for this Assured Workload,
443
481
  # but which are currently disallowed by the ResourceUsageRestriction org policy.
444
482
  # Invoke RestrictAllowedResources endpoint to allow your project developers to
@@ -495,7 +533,7 @@ module Google
495
533
  # @return [String]
496
534
  attr_accessor :name
497
535
 
498
- # Optional. Compliance Regime associated with this workload.
536
+ # Optional. Partner regime associated with this workload.
499
537
  # Corresponds to the JSON property `partner`
500
538
  # @return [String]
501
539
  attr_accessor :partner
@@ -535,6 +573,7 @@ module Google
535
573
  def update!(**args)
536
574
  @billing_account = args[:billing_account] if args.key?(:billing_account)
537
575
  @compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
576
+ @compliance_status = args[:compliance_status] if args.key?(:compliance_status)
538
577
  @compliant_but_disallowed_services = args[:compliant_but_disallowed_services] if args.key?(:compliant_but_disallowed_services)
539
578
  @create_time = args[:create_time] if args.key?(:create_time)
540
579
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -552,6 +591,31 @@ module Google
552
591
  end
553
592
  end
554
593
 
594
+ # Represents the Compliance Status of this workload
595
+ class GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus
596
+ include Google::Apis::Core::Hashable
597
+
598
+ # Count of active Violations which are acknowledged in the Workload.
599
+ # Corresponds to the JSON property `acknowledgedViolationCount`
600
+ # @return [Fixnum]
601
+ attr_accessor :acknowledged_violation_count
602
+
603
+ # Count of active Violations which haven't been acknowledged.
604
+ # Corresponds to the JSON property `activeViolationCount`
605
+ # @return [Fixnum]
606
+ attr_accessor :active_violation_count
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @acknowledged_violation_count = args[:acknowledged_violation_count] if args.key?(:acknowledged_violation_count)
615
+ @active_violation_count = args[:active_violation_count] if args.key?(:active_violation_count)
616
+ end
617
+ end
618
+
555
619
  # Settings specific to the Key Management Service. This message is deprecated.
556
620
  # In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT
557
621
  # or KEYRING in ResourceSettings.resource_type field.
@@ -583,6 +647,40 @@ module Google
583
647
  end
584
648
  end
585
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
+
586
684
  # Represent the resources that are children of this Workload.
587
685
  class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
588
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.29.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 = "20221014"
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
 
@@ -100,12 +106,24 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class GoogleCloudAssuredworkloadsV1WorkloadKmsSettings
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
106
118
  include Google::Apis::Core::JsonObjectSupport
107
119
  end
108
120
 
121
+ class GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -190,6 +208,16 @@ module Google
190
208
  end
191
209
  end
192
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
+
193
221
  class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
194
222
  # @private
195
223
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -267,6 +295,8 @@ module Google
267
295
  class Representation < Google::Apis::Core::JsonRepresentation
268
296
  property :billing_account, as: 'billingAccount'
269
297
  property :compliance_regime, as: 'complianceRegime'
298
+ property :compliance_status, as: 'complianceStatus', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus::Representation
299
+
270
300
  collection :compliant_but_disallowed_services, as: 'compliantButDisallowedServices'
271
301
  property :create_time, as: 'createTime'
272
302
  property :display_name, as: 'displayName'
@@ -288,6 +318,14 @@ module Google
288
318
  end
289
319
  end
290
320
 
321
+ class GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :acknowledged_violation_count, as: 'acknowledgedViolationCount'
325
+ property :active_violation_count, as: 'activeViolationCount'
326
+ end
327
+ end
328
+
291
329
  class GoogleCloudAssuredworkloadsV1WorkloadKmsSettings
292
330
  # @private
293
331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -296,6 +334,15 @@ module Google
296
334
  end
297
335
  end
298
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
+
299
346
  class GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
300
347
  # @private
301
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.29.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-10-21 00:00:00.000000000 Z
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.29.0
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: []