google-apis-osconfig_v1alpha 0.6.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c09d73988e1f1501fae5cf78589694129b9e66036b7c65c8bc5e400fa9520642
4
- data.tar.gz: 9ac61ac6a3dc1f901cc5b6549780a896575d5897092d380b947a3c6f76e78344
3
+ metadata.gz: ee1f518178f0563c4b56ae706511a792677799f34650b7a23e9da42a41ef7b75
4
+ data.tar.gz: c2d632289d5115cfe62c7cde087156cb8c18332cae3dd3193352de418ce8193c
5
5
  SHA512:
6
- metadata.gz: 8e530754b9f5d1b204c3f30055380ab128733fe8e246e662b66d94dd5a5e3595e1ea5806365dfece075ae3ac0e7587e0243407f138b4b0187371132a99eb34c4
7
- data.tar.gz: 52170874ca8867f8381e57e1d9249ab05a60143e89af295bc5dbf10219b9edd92ab6f47701af6f65eafc47d98ec3f1a69d9fa8e63b400febe8a5f3ad432c38a4
6
+ metadata.gz: '092ed3826848029dcd8921425d39d39d5c5f1edb6dd307f410517d9920cd666e2eee31638a5a0003a17a57355c60d79b5cd4f42020b291baef67579be70c21fb'
7
+ data.tar.gz: c91272202353bfde94673cd1aba928ff9ad8c4e96fb6ac2281549d3fa17ea2786580342502c1249ea0032fd755f9b47436b7728a084cbe03a15019103f0362e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1alpha
2
2
 
3
+ ### v0.10.0 (2021-11-06)
4
+
5
+ * Regenerated from discovery document revision 20211029
6
+
7
+ ### v0.9.0 (2021-10-23)
8
+
9
+ * Regenerated from discovery document revision 20211018
10
+ * Unspecified changes
11
+
12
+ ### v0.8.0 (2021-10-02)
13
+
14
+ * Regenerated from discovery document revision 20210925
15
+
16
+ ### v0.7.0 (2021-09-18)
17
+
18
+ * Regenerated from discovery document revision 20210914
19
+
3
20
  ### v0.6.0 (2021-09-01)
4
21
 
5
22
  * Regenerated from discovery document revision 20210821
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Osconfig service in particular.)
67
67
 
@@ -212,6 +212,52 @@ module Google
212
212
  end
213
213
  end
214
214
 
215
+ # OS policy assignment operation metadata provided by OS policy assignment API
216
+ # methods that return long running operations.
217
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
218
+ include Google::Apis::Core::Hashable
219
+
220
+ # The OS policy assignment API method.
221
+ # Corresponds to the JSON property `apiMethod`
222
+ # @return [String]
223
+ attr_accessor :api_method
224
+
225
+ # Reference to the `OSPolicyAssignment` API resource. Format: `projects/`
226
+ # project_number`/locations/`location`/osPolicyAssignments/`
227
+ # os_policy_assignment_id@revision_id``
228
+ # Corresponds to the JSON property `osPolicyAssignment`
229
+ # @return [String]
230
+ attr_accessor :os_policy_assignment
231
+
232
+ # Rollout start time
233
+ # Corresponds to the JSON property `rolloutStartTime`
234
+ # @return [String]
235
+ attr_accessor :rollout_start_time
236
+
237
+ # State of the rollout
238
+ # Corresponds to the JSON property `rolloutState`
239
+ # @return [String]
240
+ attr_accessor :rollout_state
241
+
242
+ # Rollout update time
243
+ # Corresponds to the JSON property `rolloutUpdateTime`
244
+ # @return [String]
245
+ attr_accessor :rollout_update_time
246
+
247
+ def initialize(**args)
248
+ update!(**args)
249
+ end
250
+
251
+ # Update properties of this object
252
+ def update!(**args)
253
+ @api_method = args[:api_method] if args.key?(:api_method)
254
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
255
+ @rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
256
+ @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
257
+ @rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
258
+ end
259
+ end
260
+
215
261
  # This API resource represents the OS policies compliance data for a Compute
216
262
  # Engine virtual machine (VM) instance at a given point in time. A Compute
217
263
  # Engine VM can have multiple OS policy assignments, and each assignment can
@@ -522,10 +568,9 @@ module Google
522
568
  # @return [Google::Apis::OsconfigV1alpha::InventoryWindowsQuickFixEngineeringPackage]
523
569
  attr_accessor :qfe_package
524
570
 
525
- # Contains information about a Windows application as retrieved from the Windows
526
- # Registry. For more information about these fields, see [Windows Installer
527
- # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
528
- # windows/win32/msi/uninstall-registry-key)`: class="external" `
571
+ # Contains information about a Windows application that is retrieved from the
572
+ # Windows Registry. For more information about these fields, see: https://docs.
573
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
529
574
  # Corresponds to the JSON property `windowsApplication`
530
575
  # @return [Google::Apis::OsconfigV1alpha::InventoryWindowsApplication]
531
576
  attr_accessor :windows_application
@@ -605,10 +650,9 @@ module Google
605
650
  end
606
651
  end
607
652
 
608
- # Contains information about a Windows application as retrieved from the Windows
609
- # Registry. For more information about these fields, see [Windows Installer
610
- # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
611
- # windows/win32/msi/uninstall-registry-key)`: class="external" `
653
+ # Contains information about a Windows application that is retrieved from the
654
+ # Windows Registry. For more information about these fields, see: https://docs.
655
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
612
656
  class InventoryWindowsApplication
613
657
  include Google::Apis::Core::Hashable
614
658
 
@@ -883,6 +927,33 @@ module Google
883
927
  end
884
928
  end
885
929
 
930
+ # A response message for listing OS Policy assignment reports including the page
931
+ # of results and page token.
932
+ class ListOsPolicyAssignmentReportsResponse
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # The pagination token to retrieve the next page of OS policy assignment report
936
+ # objects.
937
+ # Corresponds to the JSON property `nextPageToken`
938
+ # @return [String]
939
+ attr_accessor :next_page_token
940
+
941
+ # List of OS policy assignment reports.
942
+ # Corresponds to the JSON property `osPolicyAssignmentReports`
943
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport>]
944
+ attr_accessor :os_policy_assignment_reports
945
+
946
+ def initialize(**args)
947
+ update!(**args)
948
+ end
949
+
950
+ # Update properties of this object
951
+ def update!(**args)
952
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
953
+ @os_policy_assignment_reports = args[:os_policy_assignment_reports] if args.key?(:os_policy_assignment_reports)
954
+ end
955
+ end
956
+
886
957
  # A response message for listing all revisions for a OS policy assignment.
887
958
  class ListOsPolicyAssignmentRevisionsResponse
888
959
  include Google::Apis::Core::Hashable
@@ -1277,6 +1348,214 @@ module Google
1277
1348
  end
1278
1349
  end
1279
1350
 
1351
+ # A report of the OS policy assignment status for a given instance.
1352
+ class OsPolicyAssignmentReport
1353
+ include Google::Apis::Core::Hashable
1354
+
1355
+ # The Compute Engine VM instance name.
1356
+ # Corresponds to the JSON property `instance`
1357
+ # @return [String]
1358
+ attr_accessor :instance
1359
+
1360
+ # Unique identifier of the last attempted run to apply the OS policies
1361
+ # associated with this assignment on the VM. This ID is logged by the OS Config
1362
+ # agent while applying the OS policies associated with this assignment on the VM.
1363
+ # NOTE: If the service is unable to successfully connect to the agent for this
1364
+ # run, then this id will not be available in the agent logs.
1365
+ # Corresponds to the JSON property `lastRunId`
1366
+ # @return [String]
1367
+ attr_accessor :last_run_id
1368
+
1369
+ # The `OSPolicyAssignmentReport` API resource name. Format: `projects/`
1370
+ # project_number`/locations/`location`/instances/`instance_id`/
1371
+ # osPolicyAssignments/`os_policy_assignment_id`/report`
1372
+ # Corresponds to the JSON property `name`
1373
+ # @return [String]
1374
+ attr_accessor :name
1375
+
1376
+ # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs
1377
+ # to. Format: `projects/`project_number`/locations/`location`/
1378
+ # osPolicyAssignments/`os_policy_assignment_id@revision_id``
1379
+ # Corresponds to the JSON property `osPolicyAssignment`
1380
+ # @return [String]
1381
+ attr_accessor :os_policy_assignment
1382
+
1383
+ # Compliance data for each `OSPolicy` that is applied to the VM.
1384
+ # Corresponds to the JSON property `osPolicyCompliances`
1385
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance>]
1386
+ attr_accessor :os_policy_compliances
1387
+
1388
+ # Timestamp for when the report was last generated.
1389
+ # Corresponds to the JSON property `updateTime`
1390
+ # @return [String]
1391
+ attr_accessor :update_time
1392
+
1393
+ def initialize(**args)
1394
+ update!(**args)
1395
+ end
1396
+
1397
+ # Update properties of this object
1398
+ def update!(**args)
1399
+ @instance = args[:instance] if args.key?(:instance)
1400
+ @last_run_id = args[:last_run_id] if args.key?(:last_run_id)
1401
+ @name = args[:name] if args.key?(:name)
1402
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
1403
+ @os_policy_compliances = args[:os_policy_compliances] if args.key?(:os_policy_compliances)
1404
+ @update_time = args[:update_time] if args.key?(:update_time)
1405
+ end
1406
+ end
1407
+
1408
+ # Compliance data for an OS policy
1409
+ class OsPolicyAssignmentReportOsPolicyCompliance
1410
+ include Google::Apis::Core::Hashable
1411
+
1412
+ # The compliance state of the OS policy.
1413
+ # Corresponds to the JSON property `complianceState`
1414
+ # @return [String]
1415
+ attr_accessor :compliance_state
1416
+
1417
+ # The reason for the OS policy to be in an unknown compliance state. This field
1418
+ # is always populated when `compliance_state` is `UNKNOWN`. If populated, the
1419
+ # field can contain one of the following values: * `vm-not-running`: The VM was
1420
+ # not running. * `os-policies-not-supported-by-agent`: The version of the OS
1421
+ # Config agent running on the VM does not support running OS policies. * `no-
1422
+ # agent-detected`: The OS Config agent is not detected for the VM. * `resource-
1423
+ # execution-errors`: The OS Config agent encountered errors while executing one
1424
+ # or more resources in the policy. See `os_policy_resource_compliances` for
1425
+ # details. * `task-timeout`: The task sent to the agent to apply the policy
1426
+ # timed out. * `unexpected-agent-state`: The OS Config agent did not report the
1427
+ # final status of the task that attempted to apply the policy. Instead, the
1428
+ # agent unexpectedly started working on a different task. This mostly happens
1429
+ # when the agent or VM unexpectedly restarts while applying OS policies. * `
1430
+ # internal-service-errors`: Internal service errors were encountered while
1431
+ # attempting to apply the policy.
1432
+ # Corresponds to the JSON property `complianceStateReason`
1433
+ # @return [String]
1434
+ attr_accessor :compliance_state_reason
1435
+
1436
+ # The OS policy id
1437
+ # Corresponds to the JSON property `osPolicyId`
1438
+ # @return [String]
1439
+ attr_accessor :os_policy_id
1440
+
1441
+ # Compliance data for each resource within the policy that is applied to the VM.
1442
+ # Corresponds to the JSON property `osPolicyResourceCompliances`
1443
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>]
1444
+ attr_accessor :os_policy_resource_compliances
1445
+
1446
+ def initialize(**args)
1447
+ update!(**args)
1448
+ end
1449
+
1450
+ # Update properties of this object
1451
+ def update!(**args)
1452
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1453
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1454
+ @os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id)
1455
+ @os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances)
1456
+ end
1457
+ end
1458
+
1459
+ # Compliance data for an OS policy resource.
1460
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
1461
+ include Google::Apis::Core::Hashable
1462
+
1463
+ # The compliance state of the resource.
1464
+ # Corresponds to the JSON property `complianceState`
1465
+ # @return [String]
1466
+ attr_accessor :compliance_state
1467
+
1468
+ # A reason for the resource to be in the given compliance state. This field is
1469
+ # always populated when `compliance_state` is `UNKNOWN`. The following values
1470
+ # are supported when `compliance_state == UNKNOWN` * `execution-errors`: Errors
1471
+ # were encountered by the agent while executing the resource and the compliance
1472
+ # state couldn't be determined. * `execution-skipped-by-agent`: Resource
1473
+ # execution was skipped by the agent because errors were encountered while
1474
+ # executing prior resources in the OS policy. * `os-policy-execution-attempt-
1475
+ # failed`: The execution of the OS policy containing this resource failed and
1476
+ # the compliance state couldn't be determined.
1477
+ # Corresponds to the JSON property `complianceStateReason`
1478
+ # @return [String]
1479
+ attr_accessor :compliance_state_reason
1480
+
1481
+ # Ordered list of configuration completed by the agent for the OS policy
1482
+ # resource.
1483
+ # Corresponds to the JSON property `configSteps`
1484
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>]
1485
+ attr_accessor :config_steps
1486
+
1487
+ # ExecResource specific output.
1488
+ # Corresponds to the JSON property `execResourceOutput`
1489
+ # @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput]
1490
+ attr_accessor :exec_resource_output
1491
+
1492
+ # The ID of the OS policy resource.
1493
+ # Corresponds to the JSON property `osPolicyResourceId`
1494
+ # @return [String]
1495
+ attr_accessor :os_policy_resource_id
1496
+
1497
+ def initialize(**args)
1498
+ update!(**args)
1499
+ end
1500
+
1501
+ # Update properties of this object
1502
+ def update!(**args)
1503
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1504
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1505
+ @config_steps = args[:config_steps] if args.key?(:config_steps)
1506
+ @exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output)
1507
+ @os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id)
1508
+ end
1509
+ end
1510
+
1511
+ # ExecResource specific output.
1512
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
1513
+ include Google::Apis::Core::Hashable
1514
+
1515
+ # Output from enforcement phase output file (if run). Output size is limited to
1516
+ # 100K bytes.
1517
+ # Corresponds to the JSON property `enforcementOutput`
1518
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1519
+ # @return [String]
1520
+ attr_accessor :enforcement_output
1521
+
1522
+ def initialize(**args)
1523
+ update!(**args)
1524
+ end
1525
+
1526
+ # Update properties of this object
1527
+ def update!(**args)
1528
+ @enforcement_output = args[:enforcement_output] if args.key?(:enforcement_output)
1529
+ end
1530
+ end
1531
+
1532
+ # Step performed by the OS Config agent for configuring an `OSPolicy` resource
1533
+ # to its desired state.
1534
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
1535
+ include Google::Apis::Core::Hashable
1536
+
1537
+ # An error message recorded during the execution of this step. Only populated if
1538
+ # errors were encountered during this step execution.
1539
+ # Corresponds to the JSON property `errorMessage`
1540
+ # @return [String]
1541
+ attr_accessor :error_message
1542
+
1543
+ # Configuration step type.
1544
+ # Corresponds to the JSON property `type`
1545
+ # @return [String]
1546
+ attr_accessor :type
1547
+
1548
+ def initialize(**args)
1549
+ update!(**args)
1550
+ end
1551
+
1552
+ # Update properties of this object
1553
+ def update!(**args)
1554
+ @error_message = args[:error_message] if args.key?(:error_message)
1555
+ @type = args[:type] if args.key?(:type)
1556
+ end
1557
+ end
1558
+
1280
1559
  # Message to configure the rollout at the zonal level for the OS policy
1281
1560
  # assignment.
1282
1561
  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.10.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 = "20211029"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class InstanceOsPoliciesCompliance
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -136,6 +142,12 @@ module Google
136
142
  include Google::Apis::Core::JsonObjectSupport
137
143
  end
138
144
 
145
+ class ListOsPolicyAssignmentReportsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class ListOsPolicyAssignmentRevisionsResponse
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -190,6 +202,36 @@ module Google
190
202
  include Google::Apis::Core::JsonObjectSupport
191
203
  end
192
204
 
205
+ class OsPolicyAssignmentReport
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class OsPolicyAssignmentReportOsPolicyCompliance
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
193
235
  class OsPolicyAssignmentRollout
194
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
237
 
@@ -434,6 +476,17 @@ module Google
434
476
  end
435
477
  end
436
478
 
479
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :api_method, as: 'apiMethod'
483
+ property :os_policy_assignment, as: 'osPolicyAssignment'
484
+ property :rollout_start_time, as: 'rolloutStartTime'
485
+ property :rollout_state, as: 'rolloutState'
486
+ property :rollout_update_time, as: 'rolloutUpdateTime'
487
+ end
488
+ end
489
+
437
490
  class InstanceOsPoliciesCompliance
438
491
  # @private
439
492
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -608,6 +661,15 @@ module Google
608
661
  end
609
662
  end
610
663
 
664
+ class ListOsPolicyAssignmentReportsResponse
665
+ # @private
666
+ class Representation < Google::Apis::Core::JsonRepresentation
667
+ property :next_page_token, as: 'nextPageToken'
668
+ collection :os_policy_assignment_reports, as: 'osPolicyAssignmentReports', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport::Representation
669
+
670
+ end
671
+ end
672
+
611
673
  class ListOsPolicyAssignmentRevisionsResponse
612
674
  # @private
613
675
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -709,6 +771,58 @@ module Google
709
771
  end
710
772
  end
711
773
 
774
+ class OsPolicyAssignmentReport
775
+ # @private
776
+ class Representation < Google::Apis::Core::JsonRepresentation
777
+ property :instance, as: 'instance'
778
+ property :last_run_id, as: 'lastRunId'
779
+ property :name, as: 'name'
780
+ property :os_policy_assignment, as: 'osPolicyAssignment'
781
+ collection :os_policy_compliances, as: 'osPolicyCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance::Representation
782
+
783
+ property :update_time, as: 'updateTime'
784
+ end
785
+ end
786
+
787
+ class OsPolicyAssignmentReportOsPolicyCompliance
788
+ # @private
789
+ class Representation < Google::Apis::Core::JsonRepresentation
790
+ property :compliance_state, as: 'complianceState'
791
+ property :compliance_state_reason, as: 'complianceStateReason'
792
+ property :os_policy_id, as: 'osPolicyId'
793
+ collection :os_policy_resource_compliances, as: 'osPolicyResourceCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance::Representation
794
+
795
+ end
796
+ end
797
+
798
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
799
+ # @private
800
+ class Representation < Google::Apis::Core::JsonRepresentation
801
+ property :compliance_state, as: 'complianceState'
802
+ property :compliance_state_reason, as: 'complianceStateReason'
803
+ collection :config_steps, as: 'configSteps', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep::Representation
804
+
805
+ property :exec_resource_output, as: 'execResourceOutput', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput::Representation
806
+
807
+ property :os_policy_resource_id, as: 'osPolicyResourceId'
808
+ end
809
+ end
810
+
811
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
812
+ # @private
813
+ class Representation < Google::Apis::Core::JsonRepresentation
814
+ property :enforcement_output, :base64 => true, as: 'enforcementOutput'
815
+ end
816
+ end
817
+
818
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :error_message, as: 'errorMessage'
822
+ property :type, as: 'type'
823
+ end
824
+ end
825
+
712
826
  class OsPolicyAssignmentRollout
713
827
  # @private
714
828
  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.10.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-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1alpha
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1alpha/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.10.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: