google-apis-assuredworkloads_v1beta1 0.16.0 → 0.18.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: 590256386290fd40faa0fdc2f67ed5d1e596b5a99d219236a527ef3a782ed95c
4
- data.tar.gz: e4f43307324b540065d9c72c8d93bfe92f5897d4fa0d3498e0100b5595232c89
3
+ metadata.gz: d43057f5154f95b4f37137f32fa04782cf8a2aa89a395e867aee95c7ffcbbb46
4
+ data.tar.gz: c9d2305e4ac221b6eb684384723f1b10178e6d405dac49c55e0ab987f3606a03
5
5
  SHA512:
6
- metadata.gz: 4d26fbe98697a0a105267e8d10a04f2768ee3d57508ebeb9433cdab28b332307d1e4c69598d6b52280f695dea2108fe05a54726a44172d57f7d38968bf43ae3a
7
- data.tar.gz: fec3f19977bdc88e9c496d5ed65c72069ca93aa7b3be12763297d58cc002001e42fad08636e27151bc768212e5337c07c795eff81c8bcd15459629cfa2dd5a26
6
+ metadata.gz: 97f6f6dc1d2e675341ae669052c5336bdbc181411d7d0446f014d808c5628f58578dce5a84c9380f52c7d5e77b97fa3c82fb8d6a6ecf359aed86265a4a455cd9
7
+ data.tar.gz: 825e2dfc1d86edc8b757b5bf1684b252273d064e55174415f53a2b8de8bc54e191a2ecb6dce3f7323fe7cb48f5f8cad1256a82f77777195320f7ecc2c514bf8b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1beta1
2
2
 
3
+ ### v0.18.0 (2023-08-27)
4
+
5
+ * Regenerated from discovery document revision 20230818
6
+
7
+ ### v0.17.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230804
10
+
3
11
  ### v0.16.0 (2023-08-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20230731
@@ -26,6 +26,11 @@ module Google
26
26
  class GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
+ # Optional. Acknowledge type of specified violation.
30
+ # Corresponds to the JSON property `acknowledgeType`
31
+ # @return [String]
32
+ attr_accessor :acknowledge_type
33
+
29
34
  # Required. Business justification explaining the need for violation
30
35
  # acknowledgement
31
36
  # Corresponds to the JSON property `comment`
@@ -47,6 +52,7 @@ module Google
47
52
 
48
53
  # Update properties of this object
49
54
  def update!(**args)
55
+ @acknowledge_type = args[:acknowledge_type] if args.key?(:acknowledge_type)
50
56
  @comment = args[:comment] if args.key?(:comment)
51
57
  @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy)
52
58
  end
@@ -65,23 +71,70 @@ module Google
65
71
  end
66
72
  end
67
73
 
68
- # A response that includes the analysis of the hypothetical resource move.
74
+ # Response containing the analysis results for the hypothetical resource move.
69
75
  class GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
70
76
  include Google::Apis::Core::Hashable
71
77
 
78
+ # List of analysis results for each asset in scope.
79
+ # Corresponds to the JSON property `assetMoveAnalyses`
80
+ # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis>]
81
+ attr_accessor :asset_move_analyses
82
+
72
83
  # A list of blockers that should be addressed before moving the source project
73
- # or project-based workload to the destination folder-based workload.
84
+ # or project-based workload to the destination folder-based workload. This field
85
+ # is now deprecated.
74
86
  # Corresponds to the JSON property `blockers`
75
87
  # @return [Array<String>]
76
88
  attr_accessor :blockers
77
89
 
90
+ # The next page token. Is empty if the last page is reached.
91
+ # Corresponds to the JSON property `nextPageToken`
92
+ # @return [String]
93
+ attr_accessor :next_page_token
94
+
78
95
  def initialize(**args)
79
96
  update!(**args)
80
97
  end
81
98
 
82
99
  # Update properties of this object
83
100
  def update!(**args)
101
+ @asset_move_analyses = args[:asset_move_analyses] if args.key?(:asset_move_analyses)
84
102
  @blockers = args[:blockers] if args.key?(:blockers)
103
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
104
+ end
105
+ end
106
+
107
+ # Represents move analysis results for an asset.
108
+ class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
109
+ include Google::Apis::Core::Hashable
110
+
111
+ # List of eligible analyses performed for the asset.
112
+ # Corresponds to the JSON property `analysisGroups`
113
+ # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup>]
114
+ attr_accessor :analysis_groups
115
+
116
+ # The full resource name of the asset being analyzed. Example: //compute.
117
+ # googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
118
+ # Corresponds to the JSON property `asset`
119
+ # @return [String]
120
+ attr_accessor :asset
121
+
122
+ # Type of the asset being analyzed. Possible values will be among the ones
123
+ # listed [here](https://cloud.google.com/asset-inventory/docs/supported-asset-
124
+ # types#searchable_asset_types).
125
+ # Corresponds to the JSON property `assetType`
126
+ # @return [String]
127
+ attr_accessor :asset_type
128
+
129
+ def initialize(**args)
130
+ update!(**args)
131
+ end
132
+
133
+ # Update properties of this object
134
+ def update!(**args)
135
+ @analysis_groups = args[:analysis_groups] if args.key?(:analysis_groups)
136
+ @asset = args[:asset] if args.key?(:asset)
137
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
85
138
  end
86
139
  end
87
140
 
@@ -130,6 +183,19 @@ module Google
130
183
  end
131
184
  end
132
185
 
186
+ # Response for EnableResourceMonitoring endpoint.
187
+ class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
188
+ include Google::Apis::Core::Hashable
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ end
197
+ end
198
+
133
199
  # Response of ListViolations endpoint.
134
200
  class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse
135
201
  include Google::Apis::Core::Hashable
@@ -180,6 +246,90 @@ module Google
180
246
  end
181
247
  end
182
248
 
249
+ # Represents a logical group of checks performed for an asset. If successful,
250
+ # the group contains the analysis result, otherwise it contains an error with
251
+ # the failure reason.
252
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup
253
+ include Google::Apis::Core::Hashable
254
+
255
+ # Represents the successful move analysis results for a group.
256
+ # Corresponds to the JSON property `analysisResult`
257
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult]
258
+ attr_accessor :analysis_result
259
+
260
+ # Name of the analysis group.
261
+ # Corresponds to the JSON property `displayName`
262
+ # @return [String]
263
+ attr_accessor :display_name
264
+
265
+ # The `Status` type defines a logical error model that is suitable for different
266
+ # programming environments, including REST APIs and RPC APIs. It is used by [
267
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
268
+ # data: error code, error message, and error details. You can find out more
269
+ # about this error model and how to work with it in the [API Design Guide](https:
270
+ # //cloud.google.com/apis/design/errors).
271
+ # Corresponds to the JSON property `error`
272
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus]
273
+ attr_accessor :error
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @analysis_result = args[:analysis_result] if args.key?(:analysis_result)
282
+ @display_name = args[:display_name] if args.key?(:display_name)
283
+ @error = args[:error] if args.key?(:error)
284
+ end
285
+ end
286
+
287
+ # Represents the successful move analysis results for a group.
288
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # List of blockers. If not resolved, these will result in compliance violations
292
+ # in the target.
293
+ # Corresponds to the JSON property `blockers`
294
+ # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact>]
295
+ attr_accessor :blockers
296
+
297
+ # List of warnings. These are risks that may or may not result in compliance
298
+ # violations.
299
+ # Corresponds to the JSON property `warnings`
300
+ # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact>]
301
+ attr_accessor :warnings
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @blockers = args[:blockers] if args.key?(:blockers)
310
+ @warnings = args[:warnings] if args.key?(:warnings)
311
+ end
312
+ end
313
+
314
+ # Represents the impact of moving the asset to the target.
315
+ class GoogleCloudAssuredworkloadsV1beta1MoveImpact
316
+ include Google::Apis::Core::Hashable
317
+
318
+ # Explanation of the impact.
319
+ # Corresponds to the JSON property `detail`
320
+ # @return [String]
321
+ attr_accessor :detail
322
+
323
+ def initialize(**args)
324
+ update!(**args)
325
+ end
326
+
327
+ # Update properties of this object
328
+ def update!(**args)
329
+ @detail = args[:detail] if args.key?(:detail)
330
+ end
331
+ end
332
+
183
333
  # Request for restricting list of available resources in Workload environment.
184
334
  class GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest
185
335
  include Google::Apis::Core::Hashable
@@ -213,7 +363,7 @@ module Google
213
363
  end
214
364
  end
215
365
 
216
- # Workload monitoring Violation. Next Id: 27
366
+ # Workload monitoring Violation. Next Id: 28
217
367
  class GoogleCloudAssuredworkloadsV1beta1Violation
218
368
  include Google::Apis::Core::Hashable
219
369
 
@@ -231,6 +381,12 @@ module Google
231
381
  # @return [String]
232
382
  attr_accessor :acknowledgement_time
233
383
 
384
+ # Optional. Output only. Violation Id of the org-policy violation due to which
385
+ # the resource violation is caused. Empty for org-policy violations.
386
+ # Corresponds to the JSON property `associatedOrgPolicyViolationId`
387
+ # @return [String]
388
+ attr_accessor :associated_org_policy_violation_id
389
+
234
390
  # Output only. Immutable. Audit Log Link for violated resource Format: https://
235
391
  # console.cloud.google.com/logs/query;query=`logName``protoPayload.resourceName``
236
392
  # timeRange``folder`
@@ -289,6 +445,12 @@ module Google
289
445
  # @return [String]
290
446
  attr_accessor :org_policy_constraint
291
447
 
448
+ # Optional. Output only. Parent project number where resource is present. Empty
449
+ # for org-policy violations.
450
+ # Corresponds to the JSON property `parentProjectNumber`
451
+ # @return [String]
452
+ attr_accessor :parent_project_number
453
+
292
454
  # Represents remediation guidance to resolve compliance violation for
293
455
  # AssuredWorkload
294
456
  # Corresponds to the JSON property `remediation`
@@ -301,6 +463,18 @@ module Google
301
463
  # @return [String]
302
464
  attr_accessor :resolve_time
303
465
 
466
+ # Optional. Output only. Name of the resource like //storage.googleapis.com/
467
+ # myprojectxyz-testbucket. Empty for org-policy violations.
468
+ # Corresponds to the JSON property `resourceName`
469
+ # @return [String]
470
+ attr_accessor :resource_name
471
+
472
+ # Optional. Output only. Type of the resource like compute.googleapis.com/Disk,
473
+ # etc. Empty for org-policy violations.
474
+ # Corresponds to the JSON property `resourceType`
475
+ # @return [String]
476
+ attr_accessor :resource_type
477
+
304
478
  # Output only. State of the violation
305
479
  # Corresponds to the JSON property `state`
306
480
  # @return [String]
@@ -311,6 +485,11 @@ module Google
311
485
  # @return [String]
312
486
  attr_accessor :update_time
313
487
 
488
+ # Output only. Type of the violation
489
+ # Corresponds to the JSON property `violationType`
490
+ # @return [String]
491
+ attr_accessor :violation_type
492
+
314
493
  def initialize(**args)
315
494
  update!(**args)
316
495
  end
@@ -319,6 +498,7 @@ module Google
319
498
  def update!(**args)
320
499
  @acknowledged = args[:acknowledged] if args.key?(:acknowledged)
321
500
  @acknowledgement_time = args[:acknowledgement_time] if args.key?(:acknowledgement_time)
501
+ @associated_org_policy_violation_id = args[:associated_org_policy_violation_id] if args.key?(:associated_org_policy_violation_id)
322
502
  @audit_log_link = args[:audit_log_link] if args.key?(:audit_log_link)
323
503
  @begin_time = args[:begin_time] if args.key?(:begin_time)
324
504
  @category = args[:category] if args.key?(:category)
@@ -328,10 +508,14 @@ module Google
328
508
  @name = args[:name] if args.key?(:name)
329
509
  @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy)
330
510
  @org_policy_constraint = args[:org_policy_constraint] if args.key?(:org_policy_constraint)
511
+ @parent_project_number = args[:parent_project_number] if args.key?(:parent_project_number)
331
512
  @remediation = args[:remediation] if args.key?(:remediation)
332
513
  @resolve_time = args[:resolve_time] if args.key?(:resolve_time)
514
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
515
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
333
516
  @state = args[:state] if args.key?(:state)
334
517
  @update_time = args[:update_time] if args.key?(:update_time)
518
+ @violation_type = args[:violation_type] if args.key?(:violation_type)
335
519
  end
336
520
  end
337
521
 
@@ -607,6 +791,14 @@ module Google
607
791
  # @return [String]
608
792
  attr_accessor :provisioned_resources_parent
609
793
 
794
+ # Output only. Indicates whether resource monitoring is enabled for workload or
795
+ # not. It is true when Resource feed is subscribed to AWM topic and AWM Service
796
+ # Agent Role is binded to AW Service Account for resource Assured workload.
797
+ # Corresponds to the JSON property `resourceMonitoringEnabled`
798
+ # @return [Boolean]
799
+ attr_accessor :resource_monitoring_enabled
800
+ alias_method :resource_monitoring_enabled?, :resource_monitoring_enabled
801
+
610
802
  # Input only. Resource properties that are used to customize workload resources.
611
803
  # These properties (such as custom project id) will be used to create workload
612
804
  # resources if possible. This field is optional.
@@ -662,6 +854,7 @@ module Google
662
854
  @partner = args[:partner] if args.key?(:partner)
663
855
  @partner_permissions = args[:partner_permissions] if args.key?(:partner_permissions)
664
856
  @provisioned_resources_parent = args[:provisioned_resources_parent] if args.key?(:provisioned_resources_parent)
857
+ @resource_monitoring_enabled = args[:resource_monitoring_enabled] if args.key?(:resource_monitoring_enabled)
665
858
  @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
666
859
  @resources = args[:resources] if args.key?(:resources)
667
860
  @saa_enrollment_response = args[:saa_enrollment_response] if args.key?(:saa_enrollment_response)
@@ -692,11 +885,21 @@ module Google
692
885
  class GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus
693
886
  include Google::Apis::Core::Hashable
694
887
 
888
+ # Number of current resource violations which are not acknowledged.
889
+ # Corresponds to the JSON property `acknowledgedResourceViolationCount`
890
+ # @return [Fixnum]
891
+ attr_accessor :acknowledged_resource_violation_count
892
+
695
893
  # Number of current orgPolicy violations which are acknowledged.
696
894
  # Corresponds to the JSON property `acknowledgedViolationCount`
697
895
  # @return [Fixnum]
698
896
  attr_accessor :acknowledged_violation_count
699
897
 
898
+ # Number of current resource violations which are acknowledged.
899
+ # Corresponds to the JSON property `activeResourceViolationCount`
900
+ # @return [Fixnum]
901
+ attr_accessor :active_resource_violation_count
902
+
700
903
  # Number of current orgPolicy violations which are not acknowledged.
701
904
  # Corresponds to the JSON property `activeViolationCount`
702
905
  # @return [Fixnum]
@@ -708,7 +911,9 @@ module Google
708
911
 
709
912
  # Update properties of this object
710
913
  def update!(**args)
914
+ @acknowledged_resource_violation_count = args[:acknowledged_resource_violation_count] if args.key?(:acknowledged_resource_violation_count)
711
915
  @acknowledged_violation_count = args[:acknowledged_violation_count] if args.key?(:acknowledged_violation_count)
916
+ @active_resource_violation_count = args[:active_resource_violation_count] if args.key?(:active_resource_violation_count)
712
917
  @active_violation_count = args[:active_violation_count] if args.key?(:active_violation_count)
713
918
  end
714
919
  end
@@ -1012,13 +1217,13 @@ module Google
1012
1217
  # @return [String]
1013
1218
  attr_accessor :name
1014
1219
 
1015
- # The normal response of the operation in case of success. If the original
1016
- # method returns no data on success, such as `Delete`, the response is `google.
1017
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1018
- # the response should be the resource. For other methods, the response should
1019
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1020
- # example, if the original method name is `TakeSnapshot()`, the inferred
1021
- # response type is `TakeSnapshotResponse`.
1220
+ # The normal, successful response of the operation. If the original method
1221
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1222
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1223
+ # response should be the resource. For other methods, the response should have
1224
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1225
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1226
+ # `TakeSnapshotResponse`.
1022
1227
  # Corresponds to the JSON property `response`
1023
1228
  # @return [Hash<String,Object>]
1024
1229
  attr_accessor :response
@@ -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.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230731"
25
+ REVISION = "20230818"
26
26
  end
27
27
  end
28
28
  end
@@ -40,12 +40,24 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -58,6 +70,24 @@ module Google
58
70
  include Google::Apis::Core::JsonObjectSupport
59
71
  end
60
72
 
73
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudAssuredworkloadsV1beta1MoveImpact
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
61
91
  class GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest
62
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
93
 
@@ -205,6 +235,7 @@ module Google
205
235
  class GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
206
236
  # @private
207
237
  class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :acknowledge_type, as: 'acknowledgeType'
208
239
  property :comment, as: 'comment'
209
240
  property :non_compliant_org_policy, as: 'nonCompliantOrgPolicy'
210
241
  end
@@ -219,7 +250,20 @@ module Google
219
250
  class GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
220
251
  # @private
221
252
  class Representation < Google::Apis::Core::JsonRepresentation
253
+ collection :asset_move_analyses, as: 'assetMoveAnalyses', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis::Representation
254
+
222
255
  collection :blockers, as: 'blockers'
256
+ property :next_page_token, as: 'nextPageToken'
257
+ end
258
+ end
259
+
260
+ class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ collection :analysis_groups, as: 'analysisGroups', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup::Representation
264
+
265
+ property :asset, as: 'asset'
266
+ property :asset_type, as: 'assetType'
223
267
  end
224
268
  end
225
269
 
@@ -235,6 +279,12 @@ module Google
235
279
  end
236
280
  end
237
281
 
282
+ class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ end
286
+ end
287
+
238
288
  class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse
239
289
  # @private
240
290
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -253,6 +303,34 @@ module Google
253
303
  end
254
304
  end
255
305
 
306
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisGroup
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :analysis_result, as: 'analysisResult', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult::Representation
310
+
311
+ property :display_name, as: 'displayName'
312
+ property :error, as: 'error', class: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus::Representation
313
+
314
+ end
315
+ end
316
+
317
+ class GoogleCloudAssuredworkloadsV1beta1MoveAnalysisResult
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ collection :blockers, as: 'blockers', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact::Representation
321
+
322
+ collection :warnings, as: 'warnings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1MoveImpact::Representation
323
+
324
+ end
325
+ end
326
+
327
+ class GoogleCloudAssuredworkloadsV1beta1MoveImpact
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :detail, as: 'detail'
331
+ end
332
+ end
333
+
256
334
  class GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest
257
335
  # @private
258
336
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -271,6 +349,7 @@ module Google
271
349
  class Representation < Google::Apis::Core::JsonRepresentation
272
350
  property :acknowledged, as: 'acknowledged'
273
351
  property :acknowledgement_time, as: 'acknowledgementTime'
352
+ property :associated_org_policy_violation_id, as: 'associatedOrgPolicyViolationId'
274
353
  property :audit_log_link, as: 'auditLogLink'
275
354
  property :begin_time, as: 'beginTime'
276
355
  property :category, as: 'category'
@@ -281,11 +360,15 @@ module Google
281
360
  property :name, as: 'name'
282
361
  property :non_compliant_org_policy, as: 'nonCompliantOrgPolicy'
283
362
  property :org_policy_constraint, as: 'orgPolicyConstraint'
363
+ property :parent_project_number, as: 'parentProjectNumber'
284
364
  property :remediation, as: 'remediation', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation::Representation
285
365
 
286
366
  property :resolve_time, as: 'resolveTime'
367
+ property :resource_name, as: 'resourceName'
368
+ property :resource_type, as: 'resourceType'
287
369
  property :state, as: 'state'
288
370
  property :update_time, as: 'updateTime'
371
+ property :violation_type, as: 'violationType'
289
372
  end
290
373
  end
291
374
 
@@ -367,6 +450,7 @@ module Google
367
450
  property :partner_permissions, as: 'partnerPermissions', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions::Representation
368
451
 
369
452
  property :provisioned_resources_parent, as: 'provisionedResourcesParent'
453
+ property :resource_monitoring_enabled, as: 'resourceMonitoringEnabled'
370
454
  collection :resource_settings, as: 'resourceSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings::Representation
371
455
 
372
456
  collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo::Representation
@@ -388,7 +472,9 @@ module Google
388
472
  class GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus
389
473
  # @private
390
474
  class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :acknowledged_resource_violation_count, as: 'acknowledgedResourceViolationCount'
391
476
  property :acknowledged_violation_count, as: 'acknowledgedViolationCount'
477
+ property :active_resource_violation_count, as: 'activeResourceViolationCount'
392
478
  property :active_violation_count, as: 'activeViolationCount'
393
479
  end
394
480
  end
@@ -120,6 +120,68 @@ module Google
120
120
  execute_or_queue_command(command, &block)
121
121
  end
122
122
 
123
+ # Analyzes a hypothetical move of a source resource to a target(destination)
124
+ # folder-based workload to surface compliance risks.
125
+ # @param [String] target
126
+ # Required. The resource ID of the folder-based destination workload. This
127
+ # workload is where the source resource will hypothetically be moved to. Specify
128
+ # the workload's relative resource name, formatted as: "organizations/`
129
+ # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
130
+ # "organizations/123/locations/us-east1/workloads/assured-workload-2"
131
+ # @param [Array<String>, String] asset_types
132
+ # Optional. List of asset types to be analyzed,including and under the source
133
+ # resource. If empty, all assets are analyzed. The complete list of asset types
134
+ # is available [here](https://cloud.google.com/asset-inventory/docs/supported-
135
+ # asset-types#searchable_asset_types)
136
+ # @param [Fixnum] page_size
137
+ # Optional. Page size. If a value is not specified, the default value of 10 is
138
+ # used.
139
+ # @param [String] page_token
140
+ # Optional. The page token from the previous response. It needs to be passed in
141
+ # the second and following requests.
142
+ # @param [String] project
143
+ # The source type is a project. Specify the project's relative resource name,
144
+ # formatted as either a project number or a project ID: "projects/`
145
+ # PROJECT_NUMBER`" or "projects/`PROJECT_ID`" For example: "projects/
146
+ # 951040570662" when specifying a project number, or "projects/my-project-123"
147
+ # when specifying a project ID.
148
+ # @param [String] source
149
+ # The source type is a project-based workload. Specify the workloads's relative
150
+ # resource name, formatted as: "organizations/`ORGANIZATION_ID`/locations/`
151
+ # LOCATION_ID`/workloads/`WORKLOAD_ID`" For example: "organizations/123/
152
+ # locations/us-east1/workloads/assured-workload-1" This option is now deprecated.
153
+ # @param [String] fields
154
+ # Selector specifying which fields to include in a partial response.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def analyze_organization_location_workload_workload_move(target, asset_types: nil, page_size: nil, page_token: nil, project: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:get, 'v1beta1/{+target}:analyzeWorkloadMove', options)
172
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
173
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
174
+ command.params['target'] = target unless target.nil?
175
+ command.query['assetTypes'] = asset_types unless asset_types.nil?
176
+ command.query['pageSize'] = page_size unless page_size.nil?
177
+ command.query['pageToken'] = page_token unless page_token.nil?
178
+ command.query['project'] = project unless project.nil?
179
+ command.query['source'] = source unless source.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
123
185
  # Creates Assured Workload.
124
186
  # @param [String] parent
125
187
  # Required. The resource name of the new Workload's parent. Must be of the form `
@@ -199,6 +261,37 @@ module Google
199
261
  execute_or_queue_command(command, &block)
200
262
  end
201
263
 
264
+ # Enable resource violation monitoring for a workload.
265
+ # @param [String] name
266
+ # Required. The `name` field is used to identify the workload. Format:
267
+ # organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
268
+ # @param [String] fields
269
+ # Selector specifying which fields to include in a partial response.
270
+ # @param [String] quota_user
271
+ # Available to use for quota purposes for server-side applications. Can be any
272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
273
+ # @param [Google::Apis::RequestOptions] options
274
+ # Request-specific options
275
+ #
276
+ # @yield [result, err] Result & error if block supplied
277
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse] parsed result object
278
+ # @yieldparam err [StandardError] error object if request failed
279
+ #
280
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse]
281
+ #
282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
285
+ def enable_organization_location_workload_resource_monitoring(name, fields: nil, quota_user: nil, options: nil, &block)
286
+ command = make_simple_command(:post, 'v1beta1/{+name}:enableResourceMonitoring', options)
287
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse::Representation
288
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
289
+ command.params['name'] = name unless name.nil?
290
+ command.query['fields'] = fields unless fields.nil?
291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
292
+ execute_or_queue_command(command, &block)
293
+ end
294
+
202
295
  # Gets Assured Workload associated with a CRM Node
203
296
  # @param [String] name
204
297
  # Required. The resource name of the Workload to fetch. This is the workloads's
@@ -354,54 +447,6 @@ module Google
354
447
  execute_or_queue_command(command, &block)
355
448
  end
356
449
 
357
- # Analyzes a hypothetical move of a source project to a target (destination)
358
- # folder-based workload.
359
- # @param [String] source
360
- # The source type is a project-based workload. Specify the workloads's relative
361
- # resource name, formatted as: "organizations/`ORGANIZATION_ID`/locations/`
362
- # LOCATION_ID`/workloads/`WORKLOAD_ID`" For example: "organizations/123/
363
- # locations/us-east1/workloads/assured-workload-1" This option is now deprecated
364
- # @param [String] target
365
- # Required. The resource ID of the folder-based destination workload. This
366
- # workload is where the source project will hypothetically be moved to. Specify
367
- # the workload's relative resource name, formatted as: "organizations/`
368
- # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
369
- # "organizations/123/locations/us-east1/workloads/assured-workload-2"
370
- # @param [String] project
371
- # The source type is a project. Specify the project's relative resource name,
372
- # formatted as either a project number or a project ID: "projects/`
373
- # PROJECT_NUMBER`" or "projects/`PROJECT_ID`" For example: "projects/
374
- # 951040570662" when specifying a project number, or "projects/my-project-123"
375
- # when specifying a project ID.
376
- # @param [String] fields
377
- # Selector specifying which fields to include in a partial response.
378
- # @param [String] quota_user
379
- # Available to use for quota purposes for server-side applications. Can be any
380
- # arbitrary string assigned to a user, but should not exceed 40 characters.
381
- # @param [Google::Apis::RequestOptions] options
382
- # Request-specific options
383
- #
384
- # @yield [result, err] Result & error if block supplied
385
- # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse] parsed result object
386
- # @yieldparam err [StandardError] error object if request failed
387
- #
388
- # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse]
389
- #
390
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
- # @raise [Google::Apis::AuthorizationError] Authorization is required
393
- def analyze_organization_location_workload_organization_location_workload_workload_move(source, target, project: nil, fields: nil, quota_user: nil, options: nil, &block)
394
- command = make_simple_command(:get, 'v1beta1/{+source}/{+target}:analyzeWorkloadMove', options)
395
- command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
396
- command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
397
- command.params['source'] = source unless source.nil?
398
- command.params['target'] = target unless target.nil?
399
- command.query['project'] = project unless project.nil?
400
- command.query['fields'] = fields unless fields.nil?
401
- command.query['quotaUser'] = quota_user unless quota_user.nil?
402
- execute_or_queue_command(command, &block)
403
- end
404
-
405
450
  # Acknowledges an existing violation. By acknowledging a violation, users
406
451
  # acknowledge the existence of a compliance violation in their workload and
407
452
  # decide to ignore it due to a valid business justification. Acknowledgement is
@@ -521,54 +566,6 @@ module Google
521
566
  command.query['quotaUser'] = quota_user unless quota_user.nil?
522
567
  execute_or_queue_command(command, &block)
523
568
  end
524
-
525
- # Analyzes a hypothetical move of a source project to a target (destination)
526
- # folder-based workload.
527
- # @param [String] project
528
- # The source type is a project. Specify the project's relative resource name,
529
- # formatted as either a project number or a project ID: "projects/`
530
- # PROJECT_NUMBER`" or "projects/`PROJECT_ID`" For example: "projects/
531
- # 951040570662" when specifying a project number, or "projects/my-project-123"
532
- # when specifying a project ID.
533
- # @param [String] target
534
- # Required. The resource ID of the folder-based destination workload. This
535
- # workload is where the source project will hypothetically be moved to. Specify
536
- # the workload's relative resource name, formatted as: "organizations/`
537
- # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
538
- # "organizations/123/locations/us-east1/workloads/assured-workload-2"
539
- # @param [String] source
540
- # The source type is a project-based workload. Specify the workloads's relative
541
- # resource name, formatted as: "organizations/`ORGANIZATION_ID`/locations/`
542
- # LOCATION_ID`/workloads/`WORKLOAD_ID`" For example: "organizations/123/
543
- # locations/us-east1/workloads/assured-workload-1" This option is now deprecated
544
- # @param [String] fields
545
- # Selector specifying which fields to include in a partial response.
546
- # @param [String] quota_user
547
- # Available to use for quota purposes for server-side applications. Can be any
548
- # arbitrary string assigned to a user, but should not exceed 40 characters.
549
- # @param [Google::Apis::RequestOptions] options
550
- # Request-specific options
551
- #
552
- # @yield [result, err] Result & error if block supplied
553
- # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse] parsed result object
554
- # @yieldparam err [StandardError] error object if request failed
555
- #
556
- # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse]
557
- #
558
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
- # @raise [Google::Apis::AuthorizationError] Authorization is required
561
- def analyze_project_organization_location_workload_workload_move(project, target, source: nil, fields: nil, quota_user: nil, options: nil, &block)
562
- command = make_simple_command(:get, 'v1beta1/{+project}/{+target}:analyzeWorkloadMove', options)
563
- command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
564
- command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
565
- command.params['project'] = project unless project.nil?
566
- command.params['target'] = target unless target.nil?
567
- command.query['source'] = source unless source.nil?
568
- command.query['fields'] = fields unless fields.nil?
569
- command.query['quotaUser'] = quota_user unless quota_user.nil?
570
- execute_or_queue_command(command, &block)
571
- end
572
569
 
573
570
  protected
574
571
 
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.16.0
4
+ version: 0.18.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: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.18.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Assured Workloads API V1beta1