google-apis-osconfig_v1 0.10.0 → 0.14.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: ffa8b67989918eb76289a0a715289ca24207a0606984b85f30f12bbd5ef629ea
4
- data.tar.gz: 3c17f38a90d1220236a229ceb0640be30700a309c917baa7102662b867734d87
3
+ metadata.gz: 7497c91738aa723c2f799e838f8fd1e8f7cbfc5f3ca0dd15edf6b482867c41a5
4
+ data.tar.gz: 7b92623e314506172adf46b00806e7ff3438a9bc25d243621a3924f27944660f
5
5
  SHA512:
6
- metadata.gz: 94a07a2c8b34ebfd911d06753d1c788477af2cc30eb6af8ab3783bc0baf9e32094ce51f76c63431ce2d00422b810be5cb55644cf032d6accfccc846903273f7c
7
- data.tar.gz: fe3d99f584cad1915450d4825fe24ca0337353c10b3010bcfbfaf11da3992654b7f10fa235aa2ba02f192ba6254c99ccbe3314644e8c8116453708867bbe774d
6
+ metadata.gz: edb5c16dc0eaaf39c64565cc2e3e9af9942db70f9eaa216825d585173f594036808335465bf7245c39a6e62a97c9525b8e6a7e7d799b70c5ae107424b25ed0a2
7
+ data.tar.gz: 70e13cfde599c18e1d00605039a5f0305aaecdf51b7198a0d8f1df14803108bd4e94ee1973979541383d2873749eec60bf23868508250d48192ad1ac65320a16
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.14.0 (2021-11-06)
4
+
5
+ * Regenerated from discovery document revision 20211029
6
+
7
+ ### v0.13.0 (2021-10-23)
8
+
9
+ * Regenerated from discovery document revision 20211018
10
+ * Unspecified changes
11
+
12
+ ### v0.12.0 (2021-10-09)
13
+
14
+ * Regenerated from discovery document revision 20211002
15
+
16
+ ### v0.11.0 (2021-10-02)
17
+
18
+ * Regenerated from discovery document revision 20210925
19
+
3
20
  ### v0.10.0 (2021-09-18)
4
21
 
5
22
  * Regenerated from discovery document revision 20210914
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
 
@@ -149,6 +149,19 @@ module Google
149
149
  end
150
150
  end
151
151
 
152
+ # The request message for Operations.CancelOperation.
153
+ class CancelOperationRequest
154
+ include Google::Apis::Core::Hashable
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ end
163
+ end
164
+
152
165
  # Message for canceling a patch job.
153
166
  class CancelPatchJobRequest
154
167
  include Google::Apis::Core::Hashable
@@ -419,6 +432,52 @@ module Google
419
432
  end
420
433
  end
421
434
 
435
+ # OS policy assignment operation metadata provided by OS policy assignment API
436
+ # methods that return long running operations.
437
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
438
+ include Google::Apis::Core::Hashable
439
+
440
+ # The OS policy assignment API method.
441
+ # Corresponds to the JSON property `apiMethod`
442
+ # @return [String]
443
+ attr_accessor :api_method
444
+
445
+ # Reference to the `OSPolicyAssignment` API resource. Format: `projects/`
446
+ # project_number`/locations/`location`/osPolicyAssignments/`
447
+ # os_policy_assignment_id@revision_id``
448
+ # Corresponds to the JSON property `osPolicyAssignment`
449
+ # @return [String]
450
+ attr_accessor :os_policy_assignment
451
+
452
+ # Rollout start time
453
+ # Corresponds to the JSON property `rolloutStartTime`
454
+ # @return [String]
455
+ attr_accessor :rollout_start_time
456
+
457
+ # State of the rollout
458
+ # Corresponds to the JSON property `rolloutState`
459
+ # @return [String]
460
+ attr_accessor :rollout_state
461
+
462
+ # Rollout update time
463
+ # Corresponds to the JSON property `rolloutUpdateTime`
464
+ # @return [String]
465
+ attr_accessor :rollout_update_time
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @api_method = args[:api_method] if args.key?(:api_method)
474
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
475
+ @rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
476
+ @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
477
+ @rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
478
+ end
479
+ end
480
+
422
481
  # This API resource represents the available inventory data for a Compute Engine
423
482
  # virtual machine (VM) instance at a given point in time. You can use this API
424
483
  # resource to determine the inventory data of your VM. For more information, see
@@ -609,10 +668,9 @@ module Google
609
668
  # @return [Google::Apis::OsconfigV1::InventoryWindowsQuickFixEngineeringPackage]
610
669
  attr_accessor :qfe_package
611
670
 
612
- # Contains information about a Windows application as retrieved from the Windows
613
- # Registry. For more information about these fields, see [Windows Installer
614
- # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
615
- # windows/win32/msi/uninstall-registry-key)`: class="external" `
671
+ # Contains information about a Windows application that is retrieved from the
672
+ # Windows Registry. For more information about these fields, see: https://docs.
673
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
616
674
  # Corresponds to the JSON property `windowsApplication`
617
675
  # @return [Google::Apis::OsconfigV1::InventoryWindowsApplication]
618
676
  attr_accessor :windows_application
@@ -692,10 +750,9 @@ module Google
692
750
  end
693
751
  end
694
752
 
695
- # Contains information about a Windows application as retrieved from the Windows
696
- # Registry. For more information about these fields, see [Windows Installer
697
- # Properties for the Uninstall Registry](https://docs.microsoft.com/en-us/
698
- # windows/win32/msi/uninstall-registry-key)`: class="external" `
753
+ # Contains information about a Windows application that is retrieved from the
754
+ # Windows Registry. For more information about these fields, see: https://docs.
755
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
699
756
  class InventoryWindowsApplication
700
757
  include Google::Apis::Core::Hashable
701
758
 
@@ -943,6 +1000,33 @@ module Google
943
1000
  end
944
1001
  end
945
1002
 
1003
+ # A response message for listing OS Policy assignment reports including the page
1004
+ # of results and page token.
1005
+ class ListOsPolicyAssignmentReportsResponse
1006
+ include Google::Apis::Core::Hashable
1007
+
1008
+ # The pagination token to retrieve the next page of OS policy assignment report
1009
+ # objects.
1010
+ # Corresponds to the JSON property `nextPageToken`
1011
+ # @return [String]
1012
+ attr_accessor :next_page_token
1013
+
1014
+ # List of OS policy assignment reports.
1015
+ # Corresponds to the JSON property `osPolicyAssignmentReports`
1016
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReport>]
1017
+ attr_accessor :os_policy_assignment_reports
1018
+
1019
+ def initialize(**args)
1020
+ update!(**args)
1021
+ end
1022
+
1023
+ # Update properties of this object
1024
+ def update!(**args)
1025
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1026
+ @os_policy_assignment_reports = args[:os_policy_assignment_reports] if args.key?(:os_policy_assignment_reports)
1027
+ end
1028
+ end
1029
+
946
1030
  # A response message for listing all revisions for a OS policy assignment.
947
1031
  class ListOsPolicyAssignmentRevisionsResponse
948
1032
  include Google::Apis::Core::Hashable
@@ -1434,6 +1518,214 @@ module Google
1434
1518
  end
1435
1519
  end
1436
1520
 
1521
+ # A report of the OS policy assignment status for a given instance.
1522
+ class OsPolicyAssignmentReport
1523
+ include Google::Apis::Core::Hashable
1524
+
1525
+ # The Compute Engine VM instance name.
1526
+ # Corresponds to the JSON property `instance`
1527
+ # @return [String]
1528
+ attr_accessor :instance
1529
+
1530
+ # Unique identifier of the last attempted run to apply the OS policies
1531
+ # associated with this assignment on the VM. This ID is logged by the OS Config
1532
+ # agent while applying the OS policies associated with this assignment on the VM.
1533
+ # NOTE: If the service is unable to successfully connect to the agent for this
1534
+ # run, then this id will not be available in the agent logs.
1535
+ # Corresponds to the JSON property `lastRunId`
1536
+ # @return [String]
1537
+ attr_accessor :last_run_id
1538
+
1539
+ # The `OSPolicyAssignmentReport` API resource name. Format: `projects/`
1540
+ # project_number`/locations/`location`/instances/`instance_id`/
1541
+ # osPolicyAssignments/`os_policy_assignment_id`/report`
1542
+ # Corresponds to the JSON property `name`
1543
+ # @return [String]
1544
+ attr_accessor :name
1545
+
1546
+ # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs
1547
+ # to. Format: `projects/`project_number`/locations/`location`/
1548
+ # osPolicyAssignments/`os_policy_assignment_id@revision_id``
1549
+ # Corresponds to the JSON property `osPolicyAssignment`
1550
+ # @return [String]
1551
+ attr_accessor :os_policy_assignment
1552
+
1553
+ # Compliance data for each `OSPolicy` that is applied to the VM.
1554
+ # Corresponds to the JSON property `osPolicyCompliances`
1555
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance>]
1556
+ attr_accessor :os_policy_compliances
1557
+
1558
+ # Timestamp for when the report was last generated.
1559
+ # Corresponds to the JSON property `updateTime`
1560
+ # @return [String]
1561
+ attr_accessor :update_time
1562
+
1563
+ def initialize(**args)
1564
+ update!(**args)
1565
+ end
1566
+
1567
+ # Update properties of this object
1568
+ def update!(**args)
1569
+ @instance = args[:instance] if args.key?(:instance)
1570
+ @last_run_id = args[:last_run_id] if args.key?(:last_run_id)
1571
+ @name = args[:name] if args.key?(:name)
1572
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
1573
+ @os_policy_compliances = args[:os_policy_compliances] if args.key?(:os_policy_compliances)
1574
+ @update_time = args[:update_time] if args.key?(:update_time)
1575
+ end
1576
+ end
1577
+
1578
+ # Compliance data for an OS policy
1579
+ class OsPolicyAssignmentReportOsPolicyCompliance
1580
+ include Google::Apis::Core::Hashable
1581
+
1582
+ # The compliance state of the OS policy.
1583
+ # Corresponds to the JSON property `complianceState`
1584
+ # @return [String]
1585
+ attr_accessor :compliance_state
1586
+
1587
+ # The reason for the OS policy to be in an unknown compliance state. This field
1588
+ # is always populated when `compliance_state` is `UNKNOWN`. If populated, the
1589
+ # field can contain one of the following values: * `vm-not-running`: The VM was
1590
+ # not running. * `os-policies-not-supported-by-agent`: The version of the OS
1591
+ # Config agent running on the VM does not support running OS policies. * `no-
1592
+ # agent-detected`: The OS Config agent is not detected for the VM. * `resource-
1593
+ # execution-errors`: The OS Config agent encountered errors while executing one
1594
+ # or more resources in the policy. See `os_policy_resource_compliances` for
1595
+ # details. * `task-timeout`: The task sent to the agent to apply the policy
1596
+ # timed out. * `unexpected-agent-state`: The OS Config agent did not report the
1597
+ # final status of the task that attempted to apply the policy. Instead, the
1598
+ # agent unexpectedly started working on a different task. This mostly happens
1599
+ # when the agent or VM unexpectedly restarts while applying OS policies. * `
1600
+ # internal-service-errors`: Internal service errors were encountered while
1601
+ # attempting to apply the policy.
1602
+ # Corresponds to the JSON property `complianceStateReason`
1603
+ # @return [String]
1604
+ attr_accessor :compliance_state_reason
1605
+
1606
+ # The OS policy id
1607
+ # Corresponds to the JSON property `osPolicyId`
1608
+ # @return [String]
1609
+ attr_accessor :os_policy_id
1610
+
1611
+ # Compliance data for each resource within the policy that is applied to the VM.
1612
+ # Corresponds to the JSON property `osPolicyResourceCompliances`
1613
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>]
1614
+ attr_accessor :os_policy_resource_compliances
1615
+
1616
+ def initialize(**args)
1617
+ update!(**args)
1618
+ end
1619
+
1620
+ # Update properties of this object
1621
+ def update!(**args)
1622
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1623
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1624
+ @os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id)
1625
+ @os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances)
1626
+ end
1627
+ end
1628
+
1629
+ # Compliance data for an OS policy resource.
1630
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
1631
+ include Google::Apis::Core::Hashable
1632
+
1633
+ # The compliance state of the resource.
1634
+ # Corresponds to the JSON property `complianceState`
1635
+ # @return [String]
1636
+ attr_accessor :compliance_state
1637
+
1638
+ # A reason for the resource to be in the given compliance state. This field is
1639
+ # always populated when `compliance_state` is `UNKNOWN`. The following values
1640
+ # are supported when `compliance_state == UNKNOWN` * `execution-errors`: Errors
1641
+ # were encountered by the agent while executing the resource and the compliance
1642
+ # state couldn't be determined. * `execution-skipped-by-agent`: Resource
1643
+ # execution was skipped by the agent because errors were encountered while
1644
+ # executing prior resources in the OS policy. * `os-policy-execution-attempt-
1645
+ # failed`: The execution of the OS policy containing this resource failed and
1646
+ # the compliance state couldn't be determined.
1647
+ # Corresponds to the JSON property `complianceStateReason`
1648
+ # @return [String]
1649
+ attr_accessor :compliance_state_reason
1650
+
1651
+ # Ordered list of configuration completed by the agent for the OS policy
1652
+ # resource.
1653
+ # Corresponds to the JSON property `configSteps`
1654
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>]
1655
+ attr_accessor :config_steps
1656
+
1657
+ # ExecResource specific output.
1658
+ # Corresponds to the JSON property `execResourceOutput`
1659
+ # @return [Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput]
1660
+ attr_accessor :exec_resource_output
1661
+
1662
+ # The ID of the OS policy resource.
1663
+ # Corresponds to the JSON property `osPolicyResourceId`
1664
+ # @return [String]
1665
+ attr_accessor :os_policy_resource_id
1666
+
1667
+ def initialize(**args)
1668
+ update!(**args)
1669
+ end
1670
+
1671
+ # Update properties of this object
1672
+ def update!(**args)
1673
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1674
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1675
+ @config_steps = args[:config_steps] if args.key?(:config_steps)
1676
+ @exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output)
1677
+ @os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id)
1678
+ end
1679
+ end
1680
+
1681
+ # ExecResource specific output.
1682
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
1683
+ include Google::Apis::Core::Hashable
1684
+
1685
+ # Output from enforcement phase output file (if run). Output size is limited to
1686
+ # 100K bytes.
1687
+ # Corresponds to the JSON property `enforcementOutput`
1688
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1689
+ # @return [String]
1690
+ attr_accessor :enforcement_output
1691
+
1692
+ def initialize(**args)
1693
+ update!(**args)
1694
+ end
1695
+
1696
+ # Update properties of this object
1697
+ def update!(**args)
1698
+ @enforcement_output = args[:enforcement_output] if args.key?(:enforcement_output)
1699
+ end
1700
+ end
1701
+
1702
+ # Step performed by the OS Config agent for configuring an `OSPolicy` resource
1703
+ # to its desired state.
1704
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
1705
+ include Google::Apis::Core::Hashable
1706
+
1707
+ # An error message recorded during the execution of this step. Only populated if
1708
+ # errors were encountered during this step execution.
1709
+ # Corresponds to the JSON property `errorMessage`
1710
+ # @return [String]
1711
+ attr_accessor :error_message
1712
+
1713
+ # Configuration step type.
1714
+ # Corresponds to the JSON property `type`
1715
+ # @return [String]
1716
+ attr_accessor :type
1717
+
1718
+ def initialize(**args)
1719
+ update!(**args)
1720
+ end
1721
+
1722
+ # Update properties of this object
1723
+ def update!(**args)
1724
+ @error_message = args[:error_message] if args.key?(:error_message)
1725
+ @type = args[:type] if args.key?(:type)
1726
+ end
1727
+ end
1728
+
1437
1729
  # Message to configure the rollout at the zonal level for the OS policy
1438
1730
  # assignment.
1439
1731
  class OsPolicyAssignmentRollout
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsconfigV1
18
18
  # Version of the google-apis-osconfig_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.14.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 = "20210914"
25
+ REVISION = "20211029"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CancelOperationRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CancelPatchJobRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -88,6 +94,12 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class Inventory
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -154,6 +166,12 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class ListOsPolicyAssignmentReportsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
157
175
  class ListOsPolicyAssignmentRevisionsResponse
158
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
177
 
@@ -232,6 +250,36 @@ module Google
232
250
  include Google::Apis::Core::JsonObjectSupport
233
251
  end
234
252
 
253
+ class OsPolicyAssignmentReport
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class OsPolicyAssignmentReportOsPolicyCompliance
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
235
283
  class OsPolicyAssignmentRollout
236
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
285
 
@@ -534,6 +582,12 @@ module Google
534
582
  end
535
583
  end
536
584
 
585
+ class CancelOperationRequest
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ end
589
+ end
590
+
537
591
  class CancelPatchJobRequest
538
592
  # @private
539
593
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -615,6 +669,17 @@ module Google
615
669
  end
616
670
  end
617
671
 
672
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
673
+ # @private
674
+ class Representation < Google::Apis::Core::JsonRepresentation
675
+ property :api_method, as: 'apiMethod'
676
+ property :os_policy_assignment, as: 'osPolicyAssignment'
677
+ property :rollout_start_time, as: 'rolloutStartTime'
678
+ property :rollout_state, as: 'rolloutState'
679
+ property :rollout_update_time, as: 'rolloutUpdateTime'
680
+ end
681
+ end
682
+
618
683
  class Inventory
619
684
  # @private
620
685
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -754,6 +819,15 @@ module Google
754
819
  end
755
820
  end
756
821
 
822
+ class ListOsPolicyAssignmentReportsResponse
823
+ # @private
824
+ class Representation < Google::Apis::Core::JsonRepresentation
825
+ property :next_page_token, as: 'nextPageToken'
826
+ collection :os_policy_assignment_reports, as: 'osPolicyAssignmentReports', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReport, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReport::Representation
827
+
828
+ end
829
+ end
830
+
757
831
  class ListOsPolicyAssignmentRevisionsResponse
758
832
  # @private
759
833
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -890,6 +964,58 @@ module Google
890
964
  end
891
965
  end
892
966
 
967
+ class OsPolicyAssignmentReport
968
+ # @private
969
+ class Representation < Google::Apis::Core::JsonRepresentation
970
+ property :instance, as: 'instance'
971
+ property :last_run_id, as: 'lastRunId'
972
+ property :name, as: 'name'
973
+ property :os_policy_assignment, as: 'osPolicyAssignment'
974
+ collection :os_policy_compliances, as: 'osPolicyCompliances', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance::Representation
975
+
976
+ property :update_time, as: 'updateTime'
977
+ end
978
+ end
979
+
980
+ class OsPolicyAssignmentReportOsPolicyCompliance
981
+ # @private
982
+ class Representation < Google::Apis::Core::JsonRepresentation
983
+ property :compliance_state, as: 'complianceState'
984
+ property :compliance_state_reason, as: 'complianceStateReason'
985
+ property :os_policy_id, as: 'osPolicyId'
986
+ collection :os_policy_resource_compliances, as: 'osPolicyResourceCompliances', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance::Representation
987
+
988
+ end
989
+ end
990
+
991
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
992
+ # @private
993
+ class Representation < Google::Apis::Core::JsonRepresentation
994
+ property :compliance_state, as: 'complianceState'
995
+ property :compliance_state_reason, as: 'complianceStateReason'
996
+ collection :config_steps, as: 'configSteps', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep::Representation
997
+
998
+ property :exec_resource_output, as: 'execResourceOutput', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput::Representation
999
+
1000
+ property :os_policy_resource_id, as: 'osPolicyResourceId'
1001
+ end
1002
+ end
1003
+
1004
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
1005
+ # @private
1006
+ class Representation < Google::Apis::Core::JsonRepresentation
1007
+ property :enforcement_output, :base64 => true, as: 'enforcementOutput'
1008
+ end
1009
+ end
1010
+
1011
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ property :error_message, as: 'errorMessage'
1015
+ property :type, as: 'type'
1016
+ end
1017
+ end
1018
+
893
1019
  class OsPolicyAssignmentRollout
894
1020
  # @private
895
1021
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -135,6 +135,99 @@ module Google
135
135
  execute_or_queue_command(command, &block)
136
136
  end
137
137
 
138
+ # Get the OS policy asssignment report for the specified Compute Engine VM
139
+ # instance.
140
+ # @param [String] name
141
+ # Required. API resource name for OS policy assignment report. Format: `/
142
+ # projects/`project`/locations/`location`/instances/`instance`/
143
+ # osPolicyAssignments/`assignment`/report` For ``project``, either `project-
144
+ # number` or `project-id` can be provided. For ``instance_id``, either Compute
145
+ # Engine `instance-id` or `instance-name` can be provided. For ``assignment_id``,
146
+ # the OSPolicyAssignment id must be provided.
147
+ # @param [String] fields
148
+ # Selector specifying which fields to include in a partial response.
149
+ # @param [String] quota_user
150
+ # Available to use for quota purposes for server-side applications. Can be any
151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::OsconfigV1::OsPolicyAssignmentReport] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::OsconfigV1::OsPolicyAssignmentReport]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def get_project_location_instance_os_policy_assignment_report(name, fields: nil, quota_user: nil, options: nil, &block)
165
+ command = make_simple_command(:get, 'v1/{+name}', options)
166
+ command.response_representation = Google::Apis::OsconfigV1::OsPolicyAssignmentReport::Representation
167
+ command.response_class = Google::Apis::OsconfigV1::OsPolicyAssignmentReport
168
+ command.params['name'] = name unless name.nil?
169
+ command.query['fields'] = fields unless fields.nil?
170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
171
+ execute_or_queue_command(command, &block)
172
+ end
173
+
174
+ # List OS policy asssignment reports for all Compute Engine VM instances in the
175
+ # specified zone.
176
+ # @param [String] parent
177
+ # Required. The parent resource name. Format: `projects/`project`/locations/`
178
+ # location`/instances/`instance`/osPolicyAssignments/`assignment`/reports` For ``
179
+ # project``, either `project-number` or `project-id` can be provided. For ``
180
+ # instance``, either `instance-name`, `instance-id`, or `-` can be provided. If '
181
+ # -' is provided, the response will include OSPolicyAssignmentReports for all
182
+ # instances in the project/location. For ``assignment``, either `assignment-id`
183
+ # or `-` can be provided. If '-' is provided, the response will include
184
+ # OSPolicyAssignmentReports for all OSPolicyAssignments in the project/location.
185
+ # Either `instance` or `assignment` must be `-`. For example: `projects/`project`
186
+ # /locations/`location`/instances/`instance`/osPolicyAssignments/-/reports`
187
+ # returns all reports for the instance `projects/`project`/locations/`location`/
188
+ # instances/-/osPolicyAssignments/`assignment-id`/reports` returns all the
189
+ # reports for the given assignment across all instances. `projects/`project`/
190
+ # locations/`location`/instances/-/osPolicyAssignments/-/reports` returns all
191
+ # the reports for all assignments across all instances.
192
+ # @param [String] filter
193
+ # If provided, this field specifies the criteria that must be met by the `
194
+ # OSPolicyAssignmentReport` API resource that is included in the response.
195
+ # @param [Fixnum] page_size
196
+ # The maximum number of results to return.
197
+ # @param [String] page_token
198
+ # A pagination token returned from a previous call to the `
199
+ # ListOSPolicyAssignmentReports` method that indicates where this listing should
200
+ # continue from.
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [Google::Apis::RequestOptions] options
207
+ # Request-specific options
208
+ #
209
+ # @yield [result, err] Result & error if block supplied
210
+ # @yieldparam result [Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse] parsed result object
211
+ # @yieldparam err [StandardError] error object if request failed
212
+ #
213
+ # @return [Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse]
214
+ #
215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
218
+ 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)
219
+ command = make_simple_command(:get, 'v1/{+parent}/reports', options)
220
+ command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse::Representation
221
+ command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse
222
+ command.params['parent'] = parent unless parent.nil?
223
+ command.query['filter'] = filter unless filter.nil?
224
+ command.query['pageSize'] = page_size unless page_size.nil?
225
+ command.query['pageToken'] = page_token unless page_token.nil?
226
+ command.query['fields'] = fields unless fields.nil?
227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
228
+ execute_or_queue_command(command, &block)
229
+ end
230
+
138
231
  # Gets the vulnerability report for the specified VM instance. Only VMs with
139
232
  # inventory data have vulnerability reports associated with them.
140
233
  # @param [String] name
@@ -449,6 +542,77 @@ module Google
449
542
  execute_or_queue_command(command, &block)
450
543
  end
451
544
 
545
+ # Starts asynchronous cancellation on a long-running operation. The server makes
546
+ # a best effort to cancel the operation, but success is not guaranteed. If the
547
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
548
+ # Clients can use Operations.GetOperation or other methods to check whether the
549
+ # cancellation succeeded or whether the operation completed despite cancellation.
550
+ # On successful cancellation, the operation is not deleted; instead, it becomes
551
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
552
+ # corresponding to `Code.CANCELLED`.
553
+ # @param [String] name
554
+ # The name of the operation resource to be cancelled.
555
+ # @param [Google::Apis::OsconfigV1::CancelOperationRequest] cancel_operation_request_object
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::OsconfigV1::Empty] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::OsconfigV1::Empty]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
575
+ command.request_representation = Google::Apis::OsconfigV1::CancelOperationRequest::Representation
576
+ command.request_object = cancel_operation_request_object
577
+ command.response_representation = Google::Apis::OsconfigV1::Empty::Representation
578
+ command.response_class = Google::Apis::OsconfigV1::Empty
579
+ command.params['name'] = name unless name.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
585
+ # Gets the latest state of a long-running operation. Clients can use this method
586
+ # to poll the operation result at intervals as recommended by the API service.
587
+ # @param [String] name
588
+ # The name of the operation resource.
589
+ # @param [String] fields
590
+ # Selector specifying which fields to include in a partial response.
591
+ # @param [String] quota_user
592
+ # Available to use for quota purposes for server-side applications. Can be any
593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
594
+ # @param [Google::Apis::RequestOptions] options
595
+ # Request-specific options
596
+ #
597
+ # @yield [result, err] Result & error if block supplied
598
+ # @yieldparam result [Google::Apis::OsconfigV1::Operation] parsed result object
599
+ # @yieldparam err [StandardError] error object if request failed
600
+ #
601
+ # @return [Google::Apis::OsconfigV1::Operation]
602
+ #
603
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
604
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
605
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
606
+ def get_project_location_os_policy_assignment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
607
+ command = make_simple_command(:get, 'v1/{+name}', options)
608
+ command.response_representation = Google::Apis::OsconfigV1::Operation::Representation
609
+ command.response_class = Google::Apis::OsconfigV1::Operation
610
+ command.params['name'] = name unless name.nil?
611
+ command.query['fields'] = fields unless fields.nil?
612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ execute_or_queue_command(command, &block)
614
+ end
615
+
452
616
  # Create an OS Config patch deployment.
453
617
  # @param [String] parent
454
618
  # Required. The project to apply this patch deployment to in the form `projects/*
@@ -588,6 +752,46 @@ module Google
588
752
  execute_or_queue_command(command, &block)
589
753
  end
590
754
 
755
+ # Update an OS Config patch deployment.
756
+ # @param [String] name
757
+ # Unique name for the patch deployment resource in a project. The patch
758
+ # deployment name is in the form: `projects/`project_id`/patchDeployments/`
759
+ # patch_deployment_id``. This field is ignored when you create a new patch
760
+ # deployment.
761
+ # @param [Google::Apis::OsconfigV1::PatchDeployment] patch_deployment_object
762
+ # @param [String] update_mask
763
+ # Optional. Field mask that controls which fields of the patch deployment should
764
+ # be updated.
765
+ # @param [String] fields
766
+ # Selector specifying which fields to include in a partial response.
767
+ # @param [String] quota_user
768
+ # Available to use for quota purposes for server-side applications. Can be any
769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
770
+ # @param [Google::Apis::RequestOptions] options
771
+ # Request-specific options
772
+ #
773
+ # @yield [result, err] Result & error if block supplied
774
+ # @yieldparam result [Google::Apis::OsconfigV1::PatchDeployment] parsed result object
775
+ # @yieldparam err [StandardError] error object if request failed
776
+ #
777
+ # @return [Google::Apis::OsconfigV1::PatchDeployment]
778
+ #
779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
782
+ def patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
783
+ command = make_simple_command(:patch, 'v1/{+name}', options)
784
+ command.request_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
785
+ command.request_object = patch_deployment_object
786
+ command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
787
+ command.response_class = Google::Apis::OsconfigV1::PatchDeployment
788
+ command.params['name'] = name unless name.nil?
789
+ command.query['updateMask'] = update_mask unless update_mask.nil?
790
+ command.query['fields'] = fields unless fields.nil?
791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
792
+ execute_or_queue_command(command, &block)
793
+ end
794
+
591
795
  # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
592
796
  # be restarted.
593
797
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-osconfig_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.14.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-20 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.14.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: