google-apis-assuredworkloads_v1 0.59.0 → 0.60.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9145873e11baed25cf2d5831ee42fabacee08daa6cd59391d95372fb5779b63
4
- data.tar.gz: 22e8e3d890a12539d2f331ae807aa8d7544e293a9d537aeb20d783fde0df2731
3
+ metadata.gz: a6e260bb52af922a5257aa821607eb5ad2250226bfd401f8005a5b82f3dba8a1
4
+ data.tar.gz: 7913d7ac24625886bc5b0916c3a4345721bf7b35af5e009e57001552991e8f8a
5
5
  SHA512:
6
- metadata.gz: c93e3404800b6d084ce3c1a687a6db4d65f37842c9a49b71ac8ad151646249ad54e6bd606f8581c50824407857fd4ba6b7e134d071326ec625cb26056f8e9694
7
- data.tar.gz: 9a7204945c4972ff5676b5606b7265c529730a7680e699a2612807ced1a1b811eca26323b1c102c60094fd28799689a85e29e5a7d25d59e562149907c55507a0
6
+ metadata.gz: eac88389ff5c0a2e8595a975f541614f80baa821759ef59eda01b994ba87407978355a401f85f2674e5e002c6969d9ef44d5bdbf5631f04902d96fcdbe886f58
7
+ data.tar.gz: 28d33cee7d895bc4e388aee01575b658887a3458c06ef0ebee602db365c44bda1b483fb61869ddfcf6ba36f2227fd1ade4f1dd9a2248addf77add625cd0c8d29
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.60.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250410
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.59.0 (2024-12-15)
4
9
 
5
10
  * Regenerated from discovery document revision 20241206
@@ -96,6 +96,75 @@ module Google
96
96
  end
97
97
  end
98
98
 
99
+ # Operation metadata to give request details of ApplyWorkloadUpdate.
100
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # Optional. The time the operation was created.
104
+ # Corresponds to the JSON property `action`
105
+ # @return [String]
106
+ attr_accessor :action
107
+
108
+ # Optional. Output only. The time the operation was created.
109
+ # Corresponds to the JSON property `createTime`
110
+ # @return [String]
111
+ attr_accessor :create_time
112
+
113
+ # Required. The resource name of the update
114
+ # Corresponds to the JSON property `updateName`
115
+ # @return [String]
116
+ attr_accessor :update_name
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @action = args[:action] if args.key?(:action)
125
+ @create_time = args[:create_time] if args.key?(:create_time)
126
+ @update_name = args[:update_name] if args.key?(:update_name)
127
+ end
128
+ end
129
+
130
+ # Request to apply update to a workload.
131
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest
132
+ include Google::Apis::Core::Hashable
133
+
134
+ # The action to be performed on the update.
135
+ # Corresponds to the JSON property `action`
136
+ # @return [String]
137
+ attr_accessor :action
138
+
139
+ def initialize(**args)
140
+ update!(**args)
141
+ end
142
+
143
+ # Update properties of this object
144
+ def update!(**args)
145
+ @action = args[:action] if args.key?(:action)
146
+ end
147
+ end
148
+
149
+ # Response for ApplyWorkloadUpdate endpoint.
150
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse
151
+ include Google::Apis::Core::Hashable
152
+
153
+ # A workload update is a change to the workload's compliance configuration.
154
+ # Corresponds to the JSON property `appliedUpdate`
155
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate]
156
+ attr_accessor :applied_update
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @applied_update = args[:applied_update] if args.key?(:applied_update)
165
+ end
166
+ end
167
+
99
168
  # Represents move analysis results for an asset.
100
169
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
101
170
  include Google::Apis::Core::Hashable
@@ -168,6 +237,19 @@ module Google
168
237
  end
169
238
  end
170
239
 
240
+ # Response for EnableComplianceUpdates endpoint.
241
+ class GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse
242
+ include Google::Apis::Core::Hashable
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ end
251
+ end
252
+
171
253
  # Response for EnableResourceMonitoring endpoint.
172
254
  class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
173
255
  include Google::Apis::Core::Hashable
@@ -206,6 +288,31 @@ module Google
206
288
  end
207
289
  end
208
290
 
291
+ # Response of listing the compliance updates per workload with pagination.
292
+ class GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse
293
+ include Google::Apis::Core::Hashable
294
+
295
+ # The next page token. Return empty if reached the last page.
296
+ # Corresponds to the JSON property `nextPageToken`
297
+ # @return [String]
298
+ attr_accessor :next_page_token
299
+
300
+ # The list of workload updates for a given workload.
301
+ # Corresponds to the JSON property `workloadUpdates`
302
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate>]
303
+ attr_accessor :workload_updates
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
312
+ @workload_updates = args[:workload_updates] if args.key?(:workload_updates)
313
+ end
314
+ end
315
+
209
316
  # Response of ListWorkloads endpoint.
210
317
  class GoogleCloudAssuredworkloadsV1ListWorkloadsResponse
211
318
  include Google::Apis::Core::Hashable
@@ -348,6 +455,154 @@ module Google
348
455
  end
349
456
  end
350
457
 
458
+ # This assured workload service object is used to represent the org policy
459
+ # attached to a resource. It servces the same purpose as the orgpolicy.v2.Policy
460
+ # object but with functionality that is limited to what is supported by Assured
461
+ # Workloads(e.g. only one rule under one OrgPolicy object, no conditions, etc).
462
+ class GoogleCloudAssuredworkloadsV1OrgPolicy
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # The constraint name of the OrgPolicy. e.g. "constraints/gcp.resourceLocations".
466
+ # Corresponds to the JSON property `constraint`
467
+ # @return [String]
468
+ attr_accessor :constraint
469
+
470
+ # If `inherit` is true, policy rules of the lowest ancestor in the resource
471
+ # hierarchy chain are inherited. If it is false, policy rules are not inherited.
472
+ # Corresponds to the JSON property `inherit`
473
+ # @return [Boolean]
474
+ attr_accessor :inherit
475
+ alias_method :inherit?, :inherit
476
+
477
+ # Ignores policies set above this resource and restores to the `
478
+ # constraint_default` value. `reset` can only be true when `rules` is empty and `
479
+ # inherit` is false.
480
+ # Corresponds to the JSON property `reset`
481
+ # @return [Boolean]
482
+ attr_accessor :reset
483
+ alias_method :reset?, :reset
484
+
485
+ # Resource that the OrgPolicy attaches to. Format: folders/123" projects/123".
486
+ # Corresponds to the JSON property `resource`
487
+ # @return [String]
488
+ attr_accessor :resource
489
+
490
+ # A rule used to express this policy.
491
+ # Corresponds to the JSON property `rule`
492
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule]
493
+ attr_accessor :rule
494
+
495
+ def initialize(**args)
496
+ update!(**args)
497
+ end
498
+
499
+ # Update properties of this object
500
+ def update!(**args)
501
+ @constraint = args[:constraint] if args.key?(:constraint)
502
+ @inherit = args[:inherit] if args.key?(:inherit)
503
+ @reset = args[:reset] if args.key?(:reset)
504
+ @resource = args[:resource] if args.key?(:resource)
505
+ @rule = args[:rule] if args.key?(:rule)
506
+ end
507
+ end
508
+
509
+ # A rule used to express this policy.
510
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule
511
+ include Google::Apis::Core::Hashable
512
+
513
+ # ListPolicy only when all values are allowed.
514
+ # Corresponds to the JSON property `allowAll`
515
+ # @return [Boolean]
516
+ attr_accessor :allow_all
517
+ alias_method :allow_all?, :allow_all
518
+
519
+ # ListPolicy only when all values are denied.
520
+ # Corresponds to the JSON property `denyAll`
521
+ # @return [Boolean]
522
+ attr_accessor :deny_all
523
+ alias_method :deny_all?, :deny_all
524
+
525
+ # BooleanPolicy only.
526
+ # Corresponds to the JSON property `enforce`
527
+ # @return [Boolean]
528
+ attr_accessor :enforce
529
+ alias_method :enforce?, :enforce
530
+
531
+ # The values allowed for a ListPolicy.
532
+ # Corresponds to the JSON property `values`
533
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues]
534
+ attr_accessor :values
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @allow_all = args[:allow_all] if args.key?(:allow_all)
543
+ @deny_all = args[:deny_all] if args.key?(:deny_all)
544
+ @enforce = args[:enforce] if args.key?(:enforce)
545
+ @values = args[:values] if args.key?(:values)
546
+ end
547
+ end
548
+
549
+ # The values allowed for a ListPolicy.
550
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues
551
+ include Google::Apis::Core::Hashable
552
+
553
+ # List of values allowed at this resource.
554
+ # Corresponds to the JSON property `allowedValues`
555
+ # @return [Array<String>]
556
+ attr_accessor :allowed_values
557
+
558
+ # List of values denied at this resource.
559
+ # Corresponds to the JSON property `deniedValues`
560
+ # @return [Array<String>]
561
+ attr_accessor :denied_values
562
+
563
+ def initialize(**args)
564
+ update!(**args)
565
+ end
566
+
567
+ # Update properties of this object
568
+ def update!(**args)
569
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
570
+ @denied_values = args[:denied_values] if args.key?(:denied_values)
571
+ end
572
+ end
573
+
574
+ # Represents an update for an org policy control applied on an Assured Workload
575
+ # resource. The inherited org policy is not considered.
576
+ class GoogleCloudAssuredworkloadsV1OrgPolicyUpdate
577
+ include Google::Apis::Core::Hashable
578
+
579
+ # This assured workload service object is used to represent the org policy
580
+ # attached to a resource. It servces the same purpose as the orgpolicy.v2.Policy
581
+ # object but with functionality that is limited to what is supported by Assured
582
+ # Workloads(e.g. only one rule under one OrgPolicy object, no conditions, etc).
583
+ # Corresponds to the JSON property `appliedPolicy`
584
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy]
585
+ attr_accessor :applied_policy
586
+
587
+ # This assured workload service object is used to represent the org policy
588
+ # attached to a resource. It servces the same purpose as the orgpolicy.v2.Policy
589
+ # object but with functionality that is limited to what is supported by Assured
590
+ # Workloads(e.g. only one rule under one OrgPolicy object, no conditions, etc).
591
+ # Corresponds to the JSON property `suggestedPolicy`
592
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy]
593
+ attr_accessor :suggested_policy
594
+
595
+ def initialize(**args)
596
+ update!(**args)
597
+ end
598
+
599
+ # Update properties of this object
600
+ def update!(**args)
601
+ @applied_policy = args[:applied_policy] if args.key?(:applied_policy)
602
+ @suggested_policy = args[:suggested_policy] if args.key?(:suggested_policy)
603
+ end
604
+ end
605
+
351
606
  # Request for restricting list of available resources in Workload environment.
352
607
  class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
353
608
  include Google::Apis::Core::Hashable
@@ -381,6 +636,26 @@ module Google
381
636
  end
382
637
  end
383
638
 
639
+ # The details of the update.
640
+ class GoogleCloudAssuredworkloadsV1UpdateDetails
641
+ include Google::Apis::Core::Hashable
642
+
643
+ # Represents an update for an org policy control applied on an Assured Workload
644
+ # resource. The inherited org policy is not considered.
645
+ # Corresponds to the JSON property `orgPolicyUpdate`
646
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyUpdate]
647
+ attr_accessor :org_policy_update
648
+
649
+ def initialize(**args)
650
+ update!(**args)
651
+ end
652
+
653
+ # Update properties of this object
654
+ def update!(**args)
655
+ @org_policy_update = args[:org_policy_update] if args.key?(:org_policy_update)
656
+ end
657
+ end
658
+
384
659
  # Workload monitoring Violation.
385
660
  class GoogleCloudAssuredworkloadsV1Violation
386
661
  include Google::Apis::Core::Hashable
@@ -1097,6 +1372,51 @@ module Google
1097
1372
  end
1098
1373
  end
1099
1374
 
1375
+ # A workload update is a change to the workload's compliance configuration.
1376
+ class GoogleCloudAssuredworkloadsV1WorkloadUpdate
1377
+ include Google::Apis::Core::Hashable
1378
+
1379
+ # The time the update was created.
1380
+ # Corresponds to the JSON property `createTime`
1381
+ # @return [String]
1382
+ attr_accessor :create_time
1383
+
1384
+ # The details of the update.
1385
+ # Corresponds to the JSON property `details`
1386
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails]
1387
+ attr_accessor :details
1388
+
1389
+ # Output only. Immutable. Identifier. Resource name of the WorkloadUpdate.
1390
+ # Format: organizations/`organization`/locations/`location`/workloads/`workload`/
1391
+ # updates/`update`
1392
+ # Corresponds to the JSON property `name`
1393
+ # @return [String]
1394
+ attr_accessor :name
1395
+
1396
+ # Output only. The state of the update.
1397
+ # Corresponds to the JSON property `state`
1398
+ # @return [String]
1399
+ attr_accessor :state
1400
+
1401
+ # The time the update was last updated.
1402
+ # Corresponds to the JSON property `updateTime`
1403
+ # @return [String]
1404
+ attr_accessor :update_time
1405
+
1406
+ def initialize(**args)
1407
+ update!(**args)
1408
+ end
1409
+
1410
+ # Update properties of this object
1411
+ def update!(**args)
1412
+ @create_time = args[:create_time] if args.key?(:create_time)
1413
+ @details = args[:details] if args.key?(:details)
1414
+ @name = args[:name] if args.key?(:name)
1415
+ @state = args[:state] if args.key?(:state)
1416
+ @update_time = args[:update_time] if args.key?(:update_time)
1417
+ end
1418
+ end
1419
+
1100
1420
  # Options to be set for the given created workload.
1101
1421
  class GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions
1102
1422
  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.59.0"
19
+ GEM_VERSION = "0.60.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241206"
25
+ REVISION = "20250410"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,24 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -52,6 +70,12 @@ module Google
52
70
  include Google::Apis::Core::JsonObjectSupport
53
71
  end
54
72
 
73
+ class GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
55
79
  class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
56
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
81
 
@@ -64,6 +88,12 @@ module Google
64
88
  include Google::Apis::Core::JsonObjectSupport
65
89
  end
66
90
 
91
+ class GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
67
97
  class GoogleCloudAssuredworkloadsV1ListWorkloadsResponse
68
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
99
 
@@ -94,6 +124,30 @@ module Google
94
124
  include Google::Apis::Core::JsonObjectSupport
95
125
  end
96
126
 
127
+ class GoogleCloudAssuredworkloadsV1OrgPolicy
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudAssuredworkloadsV1OrgPolicyUpdate
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
97
151
  class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
98
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
153
 
@@ -106,6 +160,12 @@ module Google
106
160
  include Google::Apis::Core::JsonObjectSupport
107
161
  end
108
162
 
163
+ class GoogleCloudAssuredworkloadsV1UpdateDetails
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
109
169
  class GoogleCloudAssuredworkloadsV1Violation
110
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
171
 
@@ -190,6 +250,12 @@ module Google
190
250
  include Google::Apis::Core::JsonObjectSupport
191
251
  end
192
252
 
253
+ class GoogleCloudAssuredworkloadsV1WorkloadUpdate
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
193
259
  class GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions
194
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
261
 
@@ -244,6 +310,30 @@ module Google
244
310
  end
245
311
  end
246
312
 
313
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :action, as: 'action'
317
+ property :create_time, as: 'createTime'
318
+ property :update_name, as: 'updateName'
319
+ end
320
+ end
321
+
322
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :action, as: 'action'
326
+ end
327
+ end
328
+
329
+ class GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :applied_update, as: 'appliedUpdate', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate::Representation
333
+
334
+ end
335
+ end
336
+
247
337
  class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
248
338
  # @private
249
339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -264,6 +354,12 @@ module Google
264
354
  end
265
355
  end
266
356
 
357
+ class GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ end
361
+ end
362
+
267
363
  class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
268
364
  # @private
269
365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -279,6 +375,15 @@ module Google
279
375
  end
280
376
  end
281
377
 
378
+ class GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ property :next_page_token, as: 'nextPageToken'
382
+ collection :workload_updates, as: 'workloadUpdates', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate::Representation
383
+
384
+ end
385
+ end
386
+
282
387
  class GoogleCloudAssuredworkloadsV1ListWorkloadsResponse
283
388
  # @private
284
389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -326,6 +431,47 @@ module Google
326
431
  end
327
432
  end
328
433
 
434
+ class GoogleCloudAssuredworkloadsV1OrgPolicy
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :constraint, as: 'constraint'
438
+ property :inherit, as: 'inherit'
439
+ property :reset, as: 'reset'
440
+ property :resource, as: 'resource'
441
+ property :rule, as: 'rule', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule::Representation
442
+
443
+ end
444
+ end
445
+
446
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :allow_all, as: 'allowAll'
450
+ property :deny_all, as: 'denyAll'
451
+ property :enforce, as: 'enforce'
452
+ property :values, as: 'values', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues::Representation
453
+
454
+ end
455
+ end
456
+
457
+ class GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ collection :allowed_values, as: 'allowedValues'
461
+ collection :denied_values, as: 'deniedValues'
462
+ end
463
+ end
464
+
465
+ class GoogleCloudAssuredworkloadsV1OrgPolicyUpdate
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :applied_policy, as: 'appliedPolicy', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy::Representation
469
+
470
+ property :suggested_policy, as: 'suggestedPolicy', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicy::Representation
471
+
472
+ end
473
+ end
474
+
329
475
  class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
330
476
  # @private
331
477
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -339,6 +485,14 @@ module Google
339
485
  end
340
486
  end
341
487
 
488
+ class GoogleCloudAssuredworkloadsV1UpdateDetails
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ property :org_policy_update, as: 'orgPolicyUpdate', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyUpdate, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1OrgPolicyUpdate::Representation
492
+
493
+ end
494
+ end
495
+
342
496
  class GoogleCloudAssuredworkloadsV1Violation
343
497
  # @private
344
498
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -513,6 +667,18 @@ module Google
513
667
  end
514
668
  end
515
669
 
670
+ class GoogleCloudAssuredworkloadsV1WorkloadUpdate
671
+ # @private
672
+ class Representation < Google::Apis::Core::JsonRepresentation
673
+ property :create_time, as: 'createTime'
674
+ property :details, as: 'details', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails::Representation
675
+
676
+ property :name, as: 'name'
677
+ property :state, as: 'state'
678
+ property :update_time, as: 'updateTime'
679
+ end
680
+ end
681
+
516
682
  class GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions
517
683
  # @private
518
684
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -138,7 +138,7 @@ module Google
138
138
  # asset-types).
139
139
  # @param [Fixnum] page_size
140
140
  # Optional. Page size. If a value is not specified, the default value of 10 is
141
- # used.
141
+ # used. The maximum value is 50.
142
142
  # @param [String] page_token
143
143
  # Optional. The page token from the previous response. It needs to be passed in
144
144
  # the second and following requests.
@@ -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::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse]
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, 'v1/{+name}:enableComplianceUpdates', options)
289
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse::Representation
290
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse
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:
@@ -480,6 +516,77 @@ module Google
480
516
  execute_or_queue_command(command, &block)
481
517
  end
482
518
 
519
+ # This endpoint creates a new operation to apply the given update.
520
+ # @param [String] name
521
+ # Required. The resource name of the update. Format: organizations/`org_id`/
522
+ # locations/`location_id`/workloads/`workload_id`/updates/`update_id`
523
+ # @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest] google_cloud_assuredworkloads_v1_apply_workload_update_request_object
524
+ # @param [String] fields
525
+ # Selector specifying which fields to include in a partial response.
526
+ # @param [String] quota_user
527
+ # Available to use for quota purposes for server-side applications. Can be any
528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
529
+ # @param [Google::Apis::RequestOptions] options
530
+ # Request-specific options
531
+ #
532
+ # @yield [result, err] Result & error if block supplied
533
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation] parsed result object
534
+ # @yieldparam err [StandardError] error object if request failed
535
+ #
536
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation]
537
+ #
538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
541
+ def apply_organization_location_workload_update(name, google_cloud_assuredworkloads_v1_apply_workload_update_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
542
+ command = make_simple_command(:post, 'v1/{+name}:apply', options)
543
+ command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest::Representation
544
+ command.request_object = google_cloud_assuredworkloads_v1_apply_workload_update_request_object
545
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation::Representation
546
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation
547
+ command.params['name'] = name unless name.nil?
548
+ command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
550
+ execute_or_queue_command(command, &block)
551
+ end
552
+
553
+ # This endpoint lists all updates for the given workload.
554
+ # @param [String] parent
555
+ # Required. organizations/`org_id`/locations/`location_id`/workloads/`
556
+ # workload_id`
557
+ # @param [Fixnum] page_size
558
+ # Page size. The default value is 20 and the max allowed value is 100.
559
+ # @param [String] page_token
560
+ # Page token returned from previous request.
561
+ # @param [String] fields
562
+ # Selector specifying which fields to include in a partial response.
563
+ # @param [String] quota_user
564
+ # Available to use for quota purposes for server-side applications. Can be any
565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
566
+ # @param [Google::Apis::RequestOptions] options
567
+ # Request-specific options
568
+ #
569
+ # @yield [result, err] Result & error if block supplied
570
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse] parsed result object
571
+ # @yieldparam err [StandardError] error object if request failed
572
+ #
573
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse]
574
+ #
575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
578
+ def list_organization_location_workload_updates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
579
+ command = make_simple_command(:get, 'v1/{+parent}/updates', options)
580
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse::Representation
581
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse
582
+ command.params['parent'] = parent unless parent.nil?
583
+ command.query['pageSize'] = page_size unless page_size.nil?
584
+ command.query['pageToken'] = page_token unless page_token.nil?
585
+ command.query['fields'] = fields unless fields.nil?
586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
587
+ execute_or_queue_command(command, &block)
588
+ end
589
+
483
590
  # Acknowledges an existing violation. By acknowledging a violation, users
484
591
  # acknowledge the existence of a compliance violation in their workload and
485
592
  # decide to ignore it due to a valid business justification. Acknowledgement is
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-assuredworkloads_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-04-20 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.59.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.60.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Assured Workloads API V1
82
79
  test_files: []