google-apis-osconfig_v1alpha 0.6.0 → 0.7.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: c09d73988e1f1501fae5cf78589694129b9e66036b7c65c8bc5e400fa9520642
4
- data.tar.gz: 9ac61ac6a3dc1f901cc5b6549780a896575d5897092d380b947a3c6f76e78344
3
+ metadata.gz: 50a52feb73ff0c976081fb0ffc9f6c76ec709f33aef00f6aa730fd851920e694
4
+ data.tar.gz: a3c0d675168760b89aed064966ddfc7f4f2204402d3e62c1ff08e9ce29b5eb24
5
5
  SHA512:
6
- metadata.gz: 8e530754b9f5d1b204c3f30055380ab128733fe8e246e662b66d94dd5a5e3595e1ea5806365dfece075ae3ac0e7587e0243407f138b4b0187371132a99eb34c4
7
- data.tar.gz: 52170874ca8867f8381e57e1d9249ab05a60143e89af295bc5dbf10219b9edd92ab6f47701af6f65eafc47d98ec3f1a69d9fa8e63b400febe8a5f3ad432c38a4
6
+ metadata.gz: 128f98e63ddbb75b6414bd8de4895d9f266a1dfd3310346d578011d99d3d08f1d0c36deeefd48f8cdf655846d3cf0905a1b40e3424fd9e83cfced6201c6b837f
7
+ data.tar.gz: 04c556e0754a65f55d3a12089a345a738809d6142eb06f4ae094b8d0e719009d76fe73efa96bee4a5f11425f6a6dba9ad1bfb4f09b61b610fc5a91cb1b93d52b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-osconfig_v1alpha
2
2
 
3
+ ### v0.7.0 (2021-09-18)
4
+
5
+ * Regenerated from discovery document revision 20210914
6
+
3
7
  ### v0.6.0 (2021-09-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20210821
@@ -883,6 +883,33 @@ module Google
883
883
  end
884
884
  end
885
885
 
886
+ # A response message for listing OS Policy assignment reports including the page
887
+ # of results and page token.
888
+ class ListOsPolicyAssignmentReportsResponse
889
+ include Google::Apis::Core::Hashable
890
+
891
+ # The pagination token to retrieve the next page of OS policy assignment report
892
+ # objects.
893
+ # Corresponds to the JSON property `nextPageToken`
894
+ # @return [String]
895
+ attr_accessor :next_page_token
896
+
897
+ # List of OS policy assignment reports.
898
+ # Corresponds to the JSON property `osPolicyAssignmentReports`
899
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport>]
900
+ attr_accessor :os_policy_assignment_reports
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
909
+ @os_policy_assignment_reports = args[:os_policy_assignment_reports] if args.key?(:os_policy_assignment_reports)
910
+ end
911
+ end
912
+
886
913
  # A response message for listing all revisions for a OS policy assignment.
887
914
  class ListOsPolicyAssignmentRevisionsResponse
888
915
  include Google::Apis::Core::Hashable
@@ -1277,6 +1304,214 @@ module Google
1277
1304
  end
1278
1305
  end
1279
1306
 
1307
+ # A report of the OS policy assignment status for a given instance.
1308
+ class OsPolicyAssignmentReport
1309
+ include Google::Apis::Core::Hashable
1310
+
1311
+ # The Compute Engine VM instance name.
1312
+ # Corresponds to the JSON property `instance`
1313
+ # @return [String]
1314
+ attr_accessor :instance
1315
+
1316
+ # Unique identifier of the last attempted run to apply the OS policies
1317
+ # associated with this assignment on the VM. This ID is logged by the OS Config
1318
+ # agent while applying the OS policies associated with this assignment on the VM.
1319
+ # NOTE: If the service is unable to successfully connect to the agent for this
1320
+ # run, then this id will not be available in the agent logs.
1321
+ # Corresponds to the JSON property `lastRunId`
1322
+ # @return [String]
1323
+ attr_accessor :last_run_id
1324
+
1325
+ # The `OSPolicyAssignmentReport` API resource name. Format: `projects/`
1326
+ # project_number`/locations/`location`/instances/`instance_id`/
1327
+ # osPolicyAssignments/`os_policy_assignment_id`/report`
1328
+ # Corresponds to the JSON property `name`
1329
+ # @return [String]
1330
+ attr_accessor :name
1331
+
1332
+ # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs
1333
+ # to. Format: `projects/`project_number`/locations/`location`/
1334
+ # osPolicyAssignments/`os_policy_assignment_id@revision_id``
1335
+ # Corresponds to the JSON property `osPolicyAssignment`
1336
+ # @return [String]
1337
+ attr_accessor :os_policy_assignment
1338
+
1339
+ # Compliance data for each `OSPolicy` that is applied to the VM.
1340
+ # Corresponds to the JSON property `osPolicyCompliances`
1341
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance>]
1342
+ attr_accessor :os_policy_compliances
1343
+
1344
+ # Timestamp for when the report was last generated.
1345
+ # Corresponds to the JSON property `updateTime`
1346
+ # @return [String]
1347
+ attr_accessor :update_time
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @instance = args[:instance] if args.key?(:instance)
1356
+ @last_run_id = args[:last_run_id] if args.key?(:last_run_id)
1357
+ @name = args[:name] if args.key?(:name)
1358
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
1359
+ @os_policy_compliances = args[:os_policy_compliances] if args.key?(:os_policy_compliances)
1360
+ @update_time = args[:update_time] if args.key?(:update_time)
1361
+ end
1362
+ end
1363
+
1364
+ # Compliance data for an OS policy
1365
+ class OsPolicyAssignmentReportOsPolicyCompliance
1366
+ include Google::Apis::Core::Hashable
1367
+
1368
+ # The compliance state of the OS policy.
1369
+ # Corresponds to the JSON property `complianceState`
1370
+ # @return [String]
1371
+ attr_accessor :compliance_state
1372
+
1373
+ # The reason for the OS policy to be in an unknown compliance state. This field
1374
+ # is always populated when `compliance_state` is `UNKNOWN`. If populated, the
1375
+ # field can contain one of the following values: * `vm-not-running`: The VM was
1376
+ # not running. * `os-policies-not-supported-by-agent`: The version of the OS
1377
+ # Config agent running on the VM does not support running OS policies. * `no-
1378
+ # agent-detected`: The OS Config agent is not detected for the VM. * `resource-
1379
+ # execution-errors`: The OS Config agent encountered errors while executing one
1380
+ # or more resources in the policy. See `os_policy_resource_compliances` for
1381
+ # details. * `task-timeout`: The task sent to the agent to apply the policy
1382
+ # timed out. * `unexpected-agent-state`: The OS Config agent did not report the
1383
+ # final status of the task that attempted to apply the policy. Instead, the
1384
+ # agent unexpectedly started working on a different task. This mostly happens
1385
+ # when the agent or VM unexpectedly restarts while applying OS policies. * `
1386
+ # internal-service-errors`: Internal service errors were encountered while
1387
+ # attempting to apply the policy.
1388
+ # Corresponds to the JSON property `complianceStateReason`
1389
+ # @return [String]
1390
+ attr_accessor :compliance_state_reason
1391
+
1392
+ # The OS policy id
1393
+ # Corresponds to the JSON property `osPolicyId`
1394
+ # @return [String]
1395
+ attr_accessor :os_policy_id
1396
+
1397
+ # Compliance data for each resource within the policy that is applied to the VM.
1398
+ # Corresponds to the JSON property `osPolicyResourceCompliances`
1399
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>]
1400
+ attr_accessor :os_policy_resource_compliances
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1409
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1410
+ @os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id)
1411
+ @os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances)
1412
+ end
1413
+ end
1414
+
1415
+ # Compliance data for an OS policy resource.
1416
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
1417
+ include Google::Apis::Core::Hashable
1418
+
1419
+ # The compliance state of the resource.
1420
+ # Corresponds to the JSON property `complianceState`
1421
+ # @return [String]
1422
+ attr_accessor :compliance_state
1423
+
1424
+ # A reason for the resource to be in the given compliance state. This field is
1425
+ # always populated when `compliance_state` is `UNKNOWN`. The following values
1426
+ # are supported when `compliance_state == UNKNOWN` * `execution-errors`: Errors
1427
+ # were encountered by the agent while executing the resource and the compliance
1428
+ # state couldn't be determined. * `execution-skipped-by-agent`: Resource
1429
+ # execution was skipped by the agent because errors were encountered while
1430
+ # executing prior resources in the OS policy. * `os-policy-execution-attempt-
1431
+ # failed`: The execution of the OS policy containing this resource failed and
1432
+ # the compliance state couldn't be determined.
1433
+ # Corresponds to the JSON property `complianceStateReason`
1434
+ # @return [String]
1435
+ attr_accessor :compliance_state_reason
1436
+
1437
+ # Ordered list of configuration completed by the agent for the OS policy
1438
+ # resource.
1439
+ # Corresponds to the JSON property `configSteps`
1440
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>]
1441
+ attr_accessor :config_steps
1442
+
1443
+ # ExecResource specific output.
1444
+ # Corresponds to the JSON property `execResourceOutput`
1445
+ # @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput]
1446
+ attr_accessor :exec_resource_output
1447
+
1448
+ # The ID of the OS policy resource.
1449
+ # Corresponds to the JSON property `osPolicyResourceId`
1450
+ # @return [String]
1451
+ attr_accessor :os_policy_resource_id
1452
+
1453
+ def initialize(**args)
1454
+ update!(**args)
1455
+ end
1456
+
1457
+ # Update properties of this object
1458
+ def update!(**args)
1459
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1460
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1461
+ @config_steps = args[:config_steps] if args.key?(:config_steps)
1462
+ @exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output)
1463
+ @os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id)
1464
+ end
1465
+ end
1466
+
1467
+ # ExecResource specific output.
1468
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
1469
+ include Google::Apis::Core::Hashable
1470
+
1471
+ # Output from enforcement phase output file (if run). Output size is limited to
1472
+ # 100K bytes.
1473
+ # Corresponds to the JSON property `enforcementOutput`
1474
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1475
+ # @return [String]
1476
+ attr_accessor :enforcement_output
1477
+
1478
+ def initialize(**args)
1479
+ update!(**args)
1480
+ end
1481
+
1482
+ # Update properties of this object
1483
+ def update!(**args)
1484
+ @enforcement_output = args[:enforcement_output] if args.key?(:enforcement_output)
1485
+ end
1486
+ end
1487
+
1488
+ # Step performed by the OS Config agent for configuring an `OSPolicy` resource
1489
+ # to its desired state.
1490
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # An error message recorded during the execution of this step. Only populated if
1494
+ # errors were encountered during this step execution.
1495
+ # Corresponds to the JSON property `errorMessage`
1496
+ # @return [String]
1497
+ attr_accessor :error_message
1498
+
1499
+ # Configuration step type.
1500
+ # Corresponds to the JSON property `type`
1501
+ # @return [String]
1502
+ attr_accessor :type
1503
+
1504
+ def initialize(**args)
1505
+ update!(**args)
1506
+ end
1507
+
1508
+ # Update properties of this object
1509
+ def update!(**args)
1510
+ @error_message = args[:error_message] if args.key?(:error_message)
1511
+ @type = args[:type] if args.key?(:type)
1512
+ end
1513
+ end
1514
+
1280
1515
  # Message to configure the rollout at the zonal level for the OS policy
1281
1516
  # assignment.
1282
1517
  class OsPolicyAssignmentRollout
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsconfigV1alpha
18
18
  # Version of the google-apis-osconfig_v1alpha gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210821"
25
+ REVISION = "20210914"
26
26
  end
27
27
  end
28
28
  end
@@ -136,6 +136,12 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class ListOsPolicyAssignmentReportsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
139
145
  class ListOsPolicyAssignmentRevisionsResponse
140
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
147
 
@@ -190,6 +196,36 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class OsPolicyAssignmentReport
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class OsPolicyAssignmentReportOsPolicyCompliance
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
193
229
  class OsPolicyAssignmentRollout
194
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
231
 
@@ -608,6 +644,15 @@ module Google
608
644
  end
609
645
  end
610
646
 
647
+ class ListOsPolicyAssignmentReportsResponse
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ property :next_page_token, as: 'nextPageToken'
651
+ collection :os_policy_assignment_reports, as: 'osPolicyAssignmentReports', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport::Representation
652
+
653
+ end
654
+ end
655
+
611
656
  class ListOsPolicyAssignmentRevisionsResponse
612
657
  # @private
613
658
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -709,6 +754,58 @@ module Google
709
754
  end
710
755
  end
711
756
 
757
+ class OsPolicyAssignmentReport
758
+ # @private
759
+ class Representation < Google::Apis::Core::JsonRepresentation
760
+ property :instance, as: 'instance'
761
+ property :last_run_id, as: 'lastRunId'
762
+ property :name, as: 'name'
763
+ property :os_policy_assignment, as: 'osPolicyAssignment'
764
+ collection :os_policy_compliances, as: 'osPolicyCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance::Representation
765
+
766
+ property :update_time, as: 'updateTime'
767
+ end
768
+ end
769
+
770
+ class OsPolicyAssignmentReportOsPolicyCompliance
771
+ # @private
772
+ class Representation < Google::Apis::Core::JsonRepresentation
773
+ property :compliance_state, as: 'complianceState'
774
+ property :compliance_state_reason, as: 'complianceStateReason'
775
+ property :os_policy_id, as: 'osPolicyId'
776
+ collection :os_policy_resource_compliances, as: 'osPolicyResourceCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance::Representation
777
+
778
+ end
779
+ end
780
+
781
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
782
+ # @private
783
+ class Representation < Google::Apis::Core::JsonRepresentation
784
+ property :compliance_state, as: 'complianceState'
785
+ property :compliance_state_reason, as: 'complianceStateReason'
786
+ collection :config_steps, as: 'configSteps', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep::Representation
787
+
788
+ property :exec_resource_output, as: 'execResourceOutput', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput::Representation
789
+
790
+ property :os_policy_resource_id, as: 'osPolicyResourceId'
791
+ end
792
+ end
793
+
794
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
795
+ # @private
796
+ class Representation < Google::Apis::Core::JsonRepresentation
797
+ property :enforcement_output, :base64 => true, as: 'enforcementOutput'
798
+ end
799
+ end
800
+
801
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
802
+ # @private
803
+ class Representation < Google::Apis::Core::JsonRepresentation
804
+ property :error_message, as: 'errorMessage'
805
+ property :type, as: 'type'
806
+ end
807
+ end
808
+
712
809
  class OsPolicyAssignmentRollout
713
810
  # @private
714
811
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -214,6 +214,99 @@ module Google
214
214
  execute_or_queue_command(command, &block)
215
215
  end
216
216
 
217
+ # Get the OS policy asssignment report for the specified Compute Engine VM
218
+ # instance.
219
+ # @param [String] name
220
+ # Required. API resource name for OS policy assignment report. Format: `/
221
+ # projects/`project`/locations/`location`/instances/`instance`/
222
+ # osPolicyAssignments/`assignment`/report` For ``project``, either `project-
223
+ # number` or `project-id` can be provided. For ``instance_id``, either Compute
224
+ # Engine `instance-id` or `instance-name` can be provided. For ``assignment_id``,
225
+ # the OSPolicyAssignment id must be provided.
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def get_project_location_instance_os_policy_assignment_report(name, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
245
+ command.response_representation = Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport::Representation
246
+ command.response_class = Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport
247
+ command.params['name'] = name unless name.nil?
248
+ command.query['fields'] = fields unless fields.nil?
249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
250
+ execute_or_queue_command(command, &block)
251
+ end
252
+
253
+ # List OS policy asssignment reports for all Compute Engine VM instances in the
254
+ # specified zone.
255
+ # @param [String] parent
256
+ # Required. The parent resource name. Format: `projects/`project`/locations/`
257
+ # location`/instances/`instance`/osPolicyAssignments/`assignment`/reports` For ``
258
+ # project``, either `project-number` or `project-id` can be provided. For ``
259
+ # instance``, either `instance-name`, `instance-id`, or `-` can be provided. If '
260
+ # -' is provided, the response will include OSPolicyAssignmentReports for all
261
+ # instances in the project/location. For ``assignment``, either `assignment-id`
262
+ # or `-` can be provided. If '-' is provided, the response will include
263
+ # OSPolicyAssignmentReports for all OSPolicyAssignments in the project/location.
264
+ # Either `instance` or `assignment` must be `-`. For example: `projects/`project`
265
+ # /locations/`location`/instances/`instance`/osPolicyAssignments/-/reports`
266
+ # returns all reports for the instance `projects/`project`/locations/`location`/
267
+ # instances/-/osPolicyAssignments/`assignment-id`/reports` returns all the
268
+ # reports for the given assignment across all instances. `projects/`project`/
269
+ # locations/`location`/instances/-/osPolicyAssignments/-/reports` returns all
270
+ # the reports for all assignments across all instances.
271
+ # @param [String] filter
272
+ # If provided, this field specifies the criteria that must be met by the `
273
+ # OSPolicyAssignmentReport` API resource that is included in the response.
274
+ # @param [Fixnum] page_size
275
+ # The maximum number of results to return.
276
+ # @param [String] page_token
277
+ # A pagination token returned from a previous call to the `
278
+ # ListOSPolicyAssignmentReports` method that indicates where this listing should
279
+ # continue from.
280
+ # @param [String] fields
281
+ # Selector specifying which fields to include in a partial response.
282
+ # @param [String] quota_user
283
+ # Available to use for quota purposes for server-side applications. Can be any
284
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
285
+ # @param [Google::Apis::RequestOptions] options
286
+ # Request-specific options
287
+ #
288
+ # @yield [result, err] Result & error if block supplied
289
+ # @yieldparam result [Google::Apis::OsconfigV1alpha::ListOsPolicyAssignmentReportsResponse] parsed result object
290
+ # @yieldparam err [StandardError] error object if request failed
291
+ #
292
+ # @return [Google::Apis::OsconfigV1alpha::ListOsPolicyAssignmentReportsResponse]
293
+ #
294
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
297
+ def list_project_location_instance_os_policy_assignment_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
298
+ command = make_simple_command(:get, 'v1alpha/{+parent}/reports', options)
299
+ command.response_representation = Google::Apis::OsconfigV1alpha::ListOsPolicyAssignmentReportsResponse::Representation
300
+ command.response_class = Google::Apis::OsconfigV1alpha::ListOsPolicyAssignmentReportsResponse
301
+ command.params['parent'] = parent unless parent.nil?
302
+ command.query['filter'] = filter unless filter.nil?
303
+ command.query['pageSize'] = page_size unless page_size.nil?
304
+ command.query['pageToken'] = page_token unless page_token.nil?
305
+ command.query['fields'] = fields unless fields.nil?
306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
307
+ execute_or_queue_command(command, &block)
308
+ end
309
+
217
310
  # Gets the vulnerability report for the specified VM instance. Only VMs with
218
311
  # inventory data have vulnerability reports associated with them.
219
312
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-osconfig_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-09-20 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/master/generated/google-apis-osconfig_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.7.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []