google-apis-assuredworkloads_v1beta1 0.15.0 → 0.17.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: 5619b3a9b0e5895f6565879a2e52b09696a29aba19f6029d582ec7746185056c
4
- data.tar.gz: 407ddba1df30ae2a3d644174cb7a81727f58353b9f28694ded85533c8dfba117
3
+ metadata.gz: 68a646a365a9467a0e72dbeaae4e533d53875cd338cfeb3ce734c49931ee468d
4
+ data.tar.gz: e958206a3d226467e555671c22ab1167e14430a22a3e6b800f754def45a24686
5
5
  SHA512:
6
- metadata.gz: 312bbb932442d6cf138f1d89407368c803ca4c6d68a21225b05c89f270e37fd033ea9de07d8108abd008d9b77aeac00f5467468a32907177844b51d66a26f7a9
7
- data.tar.gz: 46cfcf07f48da579aea4ebf346b67918625bd634da9797903c608a1236622c7bddb4ff01350af668eada8c208169632215085e62ca1100461db67fed9c4fbf50
6
+ metadata.gz: 022216a70acafb5ea3127e66a73674988e4c995c8d60f59f5590ac75f0418a48a5fb4a25f042944e8dbfc75859a6e77276fa6b806598177642b082a0a55bc3b7
7
+ data.tar.gz: b33f6ec2c278cf89c7d8835e0ef7cecb073e0d3b04367ca7fcf050c30534db870c55589b167e056fb3ef6e6ba67041924ccc046cdf4d67aa5dcdf2ec29c8ef0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1beta1
2
2
 
3
+ ### v0.17.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230804
6
+
7
+ ### v0.16.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230731
10
+
3
11
  ### v0.15.0 (2023-07-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20230714
@@ -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
@@ -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`
@@ -283,6 +439,18 @@ module Google
283
439
  # @return [String]
284
440
  attr_accessor :non_compliant_org_policy
285
441
 
442
+ # Output only. Immutable. The org-policy-constraint that was incorrectly changed,
443
+ # which resulted in this violation.
444
+ # Corresponds to the JSON property `orgPolicyConstraint`
445
+ # @return [String]
446
+ attr_accessor :org_policy_constraint
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
+
286
454
  # Represents remediation guidance to resolve compliance violation for
287
455
  # AssuredWorkload
288
456
  # Corresponds to the JSON property `remediation`
@@ -295,6 +463,18 @@ module Google
295
463
  # @return [String]
296
464
  attr_accessor :resolve_time
297
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
+
298
478
  # Output only. State of the violation
299
479
  # Corresponds to the JSON property `state`
300
480
  # @return [String]
@@ -305,6 +485,11 @@ module Google
305
485
  # @return [String]
306
486
  attr_accessor :update_time
307
487
 
488
+ # Output only. Type of the violation
489
+ # Corresponds to the JSON property `violationType`
490
+ # @return [String]
491
+ attr_accessor :violation_type
492
+
308
493
  def initialize(**args)
309
494
  update!(**args)
310
495
  end
@@ -313,6 +498,7 @@ module Google
313
498
  def update!(**args)
314
499
  @acknowledged = args[:acknowledged] if args.key?(:acknowledged)
315
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)
316
502
  @audit_log_link = args[:audit_log_link] if args.key?(:audit_log_link)
317
503
  @begin_time = args[:begin_time] if args.key?(:begin_time)
318
504
  @category = args[:category] if args.key?(:category)
@@ -321,10 +507,15 @@ module Google
321
507
  @exception_contexts = args[:exception_contexts] if args.key?(:exception_contexts)
322
508
  @name = args[:name] if args.key?(:name)
323
509
  @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy)
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)
324
512
  @remediation = args[:remediation] if args.key?(:remediation)
325
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)
326
516
  @state = args[:state] if args.key?(:state)
327
517
  @update_time = args[:update_time] if args.key?(:update_time)
518
+ @violation_type = args[:violation_type] if args.key?(:violation_type)
328
519
  end
329
520
  end
330
521
 
@@ -600,6 +791,14 @@ module Google
600
791
  # @return [String]
601
792
  attr_accessor :provisioned_resources_parent
602
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
+
603
802
  # Input only. Resource properties that are used to customize workload resources.
604
803
  # These properties (such as custom project id) will be used to create workload
605
804
  # resources if possible. This field is optional.
@@ -655,6 +854,7 @@ module Google
655
854
  @partner = args[:partner] if args.key?(:partner)
656
855
  @partner_permissions = args[:partner_permissions] if args.key?(:partner_permissions)
657
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)
658
858
  @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
659
859
  @resources = args[:resources] if args.key?(:resources)
660
860
  @saa_enrollment_response = args[:saa_enrollment_response] if args.key?(:saa_enrollment_response)
@@ -685,11 +885,21 @@ module Google
685
885
  class GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus
686
886
  include Google::Apis::Core::Hashable
687
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
+
688
893
  # Number of current orgPolicy violations which are acknowledged.
689
894
  # Corresponds to the JSON property `acknowledgedViolationCount`
690
895
  # @return [Fixnum]
691
896
  attr_accessor :acknowledged_violation_count
692
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
+
693
903
  # Number of current orgPolicy violations which are not acknowledged.
694
904
  # Corresponds to the JSON property `activeViolationCount`
695
905
  # @return [Fixnum]
@@ -701,7 +911,9 @@ module Google
701
911
 
702
912
  # Update properties of this object
703
913
  def update!(**args)
914
+ @acknowledged_resource_violation_count = args[:acknowledged_resource_violation_count] if args.key?(:acknowledged_resource_violation_count)
704
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)
705
917
  @active_violation_count = args[:active_violation_count] if args.key?(:active_violation_count)
706
918
  end
707
919
  end
@@ -827,17 +1039,23 @@ module Google
827
1039
  class GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions
828
1040
  include Google::Apis::Core::Hashable
829
1041
 
1042
+ # Optional. Allow partner to view violation alerts.
1043
+ # Corresponds to the JSON property `assuredWorkloadsMonitoring`
1044
+ # @return [Boolean]
1045
+ attr_accessor :assured_workloads_monitoring
1046
+ alias_method :assured_workloads_monitoring?, :assured_workloads_monitoring
1047
+
830
1048
  # Allow the partner to view inspectability logs and monitoring violations.
831
1049
  # Corresponds to the JSON property `dataLogsViewer`
832
1050
  # @return [Boolean]
833
1051
  attr_accessor :data_logs_viewer
834
1052
  alias_method :data_logs_viewer?, :data_logs_viewer
835
1053
 
836
- # Allow partner to monitor folder and remediate violations
837
- # Corresponds to the JSON property `remediateFolderViolations`
1054
+ # Optional. Allow partner to view access approval logs.
1055
+ # Corresponds to the JSON property `serviceAccessApprover`
838
1056
  # @return [Boolean]
839
- attr_accessor :remediate_folder_violations
840
- alias_method :remediate_folder_violations?, :remediate_folder_violations
1057
+ attr_accessor :service_access_approver
1058
+ alias_method :service_access_approver?, :service_access_approver
841
1059
 
842
1060
  def initialize(**args)
843
1061
  update!(**args)
@@ -845,8 +1063,9 @@ module Google
845
1063
 
846
1064
  # Update properties of this object
847
1065
  def update!(**args)
1066
+ @assured_workloads_monitoring = args[:assured_workloads_monitoring] if args.key?(:assured_workloads_monitoring)
848
1067
  @data_logs_viewer = args[:data_logs_viewer] if args.key?(:data_logs_viewer)
849
- @remediate_folder_violations = args[:remediate_folder_violations] if args.key?(:remediate_folder_violations)
1068
+ @service_access_approver = args[:service_access_approver] if args.key?(:service_access_approver)
850
1069
  end
851
1070
  end
852
1071
 
@@ -998,13 +1217,13 @@ module Google
998
1217
  # @return [String]
999
1218
  attr_accessor :name
1000
1219
 
1001
- # The normal response of the operation in case of success. If the original
1002
- # method returns no data on success, such as `Delete`, the response is `google.
1003
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1004
- # the response should be the resource. For other methods, the response should
1005
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1006
- # example, if the original method name is `TakeSnapshot()`, the inferred
1007
- # 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`.
1008
1227
  # Corresponds to the JSON property `response`
1009
1228
  # @return [Hash<String,Object>]
1010
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.15.0"
19
+ GEM_VERSION = "0.17.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 = "20230714"
25
+ REVISION = "20230804"
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'
@@ -280,11 +359,16 @@ module Google
280
359
 
281
360
  property :name, as: 'name'
282
361
  property :non_compliant_org_policy, as: 'nonCompliantOrgPolicy'
362
+ property :org_policy_constraint, as: 'orgPolicyConstraint'
363
+ property :parent_project_number, as: 'parentProjectNumber'
283
364
  property :remediation, as: 'remediation', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation::Representation
284
365
 
285
366
  property :resolve_time, as: 'resolveTime'
367
+ property :resource_name, as: 'resourceName'
368
+ property :resource_type, as: 'resourceType'
286
369
  property :state, as: 'state'
287
370
  property :update_time, as: 'updateTime'
371
+ property :violation_type, as: 'violationType'
288
372
  end
289
373
  end
290
374
 
@@ -366,6 +450,7 @@ module Google
366
450
  property :partner_permissions, as: 'partnerPermissions', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions::Representation
367
451
 
368
452
  property :provisioned_resources_parent, as: 'provisionedResourcesParent'
453
+ property :resource_monitoring_enabled, as: 'resourceMonitoringEnabled'
369
454
  collection :resource_settings, as: 'resourceSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings::Representation
370
455
 
371
456
  collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo::Representation
@@ -387,7 +472,9 @@ module Google
387
472
  class GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus
388
473
  # @private
389
474
  class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :acknowledged_resource_violation_count, as: 'acknowledgedResourceViolationCount'
390
476
  property :acknowledged_violation_count, as: 'acknowledgedViolationCount'
477
+ property :active_resource_violation_count, as: 'activeResourceViolationCount'
391
478
  property :active_violation_count, as: 'activeViolationCount'
392
479
  end
393
480
  end
@@ -436,8 +523,9 @@ module Google
436
523
  class GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions
437
524
  # @private
438
525
  class Representation < Google::Apis::Core::JsonRepresentation
526
+ property :assured_workloads_monitoring, as: 'assuredWorkloadsMonitoring'
439
527
  property :data_logs_viewer, as: 'dataLogsViewer'
440
- property :remediate_folder_violations, as: 'remediateFolderViolations'
528
+ property :service_access_approver, as: 'serviceAccessApprover'
441
529
  end
442
530
  end
443
531
 
@@ -199,6 +199,37 @@ module Google
199
199
  execute_or_queue_command(command, &block)
200
200
  end
201
201
 
202
+ # Enable resource violation monitoring for a workload.
203
+ # @param [String] name
204
+ # Required. The `name` field is used to identify the workload. Format:
205
+ # organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def enable_organization_location_workload_resource_monitoring(name, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'v1beta1/{+name}:enableResourceMonitoring', options)
225
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse::Representation
226
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse
227
+ command.params['name'] = name unless name.nil?
228
+ command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ execute_or_queue_command(command, &block)
231
+ end
232
+
202
233
  # Gets Assured Workload associated with a CRM Node
203
234
  # @param [String] name
204
235
  # Required. The resource name of the Workload to fetch. This is the workloads's
@@ -354,54 +385,6 @@ module Google
354
385
  execute_or_queue_command(command, &block)
355
386
  end
356
387
 
357
- # Analyzes a hypothetical move of a source project or project-based workload to
358
- # a target (destination) 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"
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
388
  # Acknowledges an existing violation. By acknowledging a violation, users
406
389
  # acknowledge the existence of a compliance violation in their workload and
407
390
  # decide to ignore it due to a valid business justification. Acknowledgement is
@@ -522,8 +505,8 @@ module Google
522
505
  execute_or_queue_command(command, &block)
523
506
  end
524
507
 
525
- # Analyzes a hypothetical move of a source project or project-based workload to
526
- # a target (destination) folder-based workload.
508
+ # Analyzes a hypothetical move of a source resource to a target(destination)
509
+ # folder-based workload to surface compliance risks.
527
510
  # @param [String] project
528
511
  # The source type is a project. Specify the project's relative resource name,
529
512
  # formatted as either a project number or a project ID: "projects/`
@@ -532,15 +515,24 @@ module Google
532
515
  # when specifying a project ID.
533
516
  # @param [String] target
534
517
  # Required. The resource ID of the folder-based destination workload. This
535
- # workload is where the source project will hypothetically be moved to. Specify
518
+ # workload is where the source resource will hypothetically be moved to. Specify
536
519
  # the workload's relative resource name, formatted as: "organizations/`
537
520
  # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
538
521
  # "organizations/123/locations/us-east1/workloads/assured-workload-2"
522
+ # @param [Boolean] analyze_child_assets
523
+ # Optional. Indicates if all child assets of the source resource should also be
524
+ # analyzed in addition to the source.
525
+ # @param [Fixnum] page_size
526
+ # Optional. Page size. If a value is not specified, the default value of 10 is
527
+ # used.
528
+ # @param [String] page_token
529
+ # Optional. The page token from the previous response. It needs to be passed in
530
+ # the second and following requests.
539
531
  # @param [String] source
540
532
  # The source type is a project-based workload. Specify the workloads's relative
541
533
  # resource name, formatted as: "organizations/`ORGANIZATION_ID`/locations/`
542
534
  # LOCATION_ID`/workloads/`WORKLOAD_ID`" For example: "organizations/123/
543
- # locations/us-east1/workloads/assured-workload-1"
535
+ # locations/us-east1/workloads/assured-workload-1" This option is now deprecated.
544
536
  # @param [String] fields
545
537
  # Selector specifying which fields to include in a partial response.
546
538
  # @param [String] quota_user
@@ -558,12 +550,15 @@ module Google
558
550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
552
  # @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)
553
+ def analyze_project_organization_location_workload_workload_move(project, target, analyze_child_assets: nil, page_size: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
562
554
  command = make_simple_command(:get, 'v1beta1/{+project}/{+target}:analyzeWorkloadMove', options)
563
555
  command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
564
556
  command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
565
557
  command.params['project'] = project unless project.nil?
566
558
  command.params['target'] = target unless target.nil?
559
+ command.query['analyzeChildAssets'] = analyze_child_assets unless analyze_child_assets.nil?
560
+ command.query['pageSize'] = page_size unless page_size.nil?
561
+ command.query['pageToken'] = page_token unless page_token.nil?
567
562
  command.query['source'] = source unless source.nil?
568
563
  command.query['fields'] = fields unless fields.nil?
569
564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.15.0
4
+ version: 0.17.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-07-23 00:00:00.000000000 Z
11
+ date: 2023-08-13 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.17.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: []