google-apis-osconfig_v1 0.10.0 → 0.11.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: 523ab9b0bb06c003f27a07959a011bdf454238b5133fa4bbc5e2cf11dcf3302e
4
+ data.tar.gz: 246f56e3ac4181a7e0cf5bbc5009967484a01bc2ce7ca09d0648c80e93e2706a
5
5
  SHA512:
6
- metadata.gz: 94a07a2c8b34ebfd911d06753d1c788477af2cc30eb6af8ab3783bc0baf9e32094ce51f76c63431ce2d00422b810be5cb55644cf032d6accfccc846903273f7c
7
- data.tar.gz: fe3d99f584cad1915450d4825fe24ca0337353c10b3010bcfbfaf11da3992654b7f10fa235aa2ba02f192ba6254c99ccbe3314644e8c8116453708867bbe774d
6
+ metadata.gz: 536eb2595bebf0ccdd1fa77a5214dedc8c64c6baf37fd4727b329af2f6f60d119c42d255fbd7266b92d495ad2d717499b820b97a09bcce57ea8b49b771a8a516
7
+ data.tar.gz: b14679b50ae15d3e1bd396a946a11af02ae256cabf6e34f8f2e83cf69bfd3be9f9a559ff25ce0a0e710a2a840df6999d3566f220571f4b3bf1b14c666e0b925a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.11.0 (2021-10-02)
4
+
5
+ * Regenerated from discovery document revision 20210925
6
+
3
7
  ### v0.10.0 (2021-09-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20210914
@@ -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
@@ -609,10 +622,9 @@ module Google
609
622
  # @return [Google::Apis::OsconfigV1::InventoryWindowsQuickFixEngineeringPackage]
610
623
  attr_accessor :qfe_package
611
624
 
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" `
625
+ # Contains information about a Windows application that is retrieved from the
626
+ # Windows Registry. For more information about these fields, see Windows
627
+ # Installer Properties for the Uninstall Registry.
616
628
  # Corresponds to the JSON property `windowsApplication`
617
629
  # @return [Google::Apis::OsconfigV1::InventoryWindowsApplication]
618
630
  attr_accessor :windows_application
@@ -692,10 +704,9 @@ module Google
692
704
  end
693
705
  end
694
706
 
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" `
707
+ # Contains information about a Windows application that is retrieved from the
708
+ # Windows Registry. For more information about these fields, see Windows
709
+ # Installer Properties for the Uninstall Registry.
699
710
  class InventoryWindowsApplication
700
711
  include Google::Apis::Core::Hashable
701
712
 
@@ -943,6 +954,33 @@ module Google
943
954
  end
944
955
  end
945
956
 
957
+ # A response message for listing OS Policy assignment reports including the page
958
+ # of results and page token.
959
+ class ListOsPolicyAssignmentReportsResponse
960
+ include Google::Apis::Core::Hashable
961
+
962
+ # The pagination token to retrieve the next page of OS policy assignment report
963
+ # objects.
964
+ # Corresponds to the JSON property `nextPageToken`
965
+ # @return [String]
966
+ attr_accessor :next_page_token
967
+
968
+ # List of OS policy assignment reports.
969
+ # Corresponds to the JSON property `osPolicyAssignmentReports`
970
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReport>]
971
+ attr_accessor :os_policy_assignment_reports
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
980
+ @os_policy_assignment_reports = args[:os_policy_assignment_reports] if args.key?(:os_policy_assignment_reports)
981
+ end
982
+ end
983
+
946
984
  # A response message for listing all revisions for a OS policy assignment.
947
985
  class ListOsPolicyAssignmentRevisionsResponse
948
986
  include Google::Apis::Core::Hashable
@@ -1434,6 +1472,214 @@ module Google
1434
1472
  end
1435
1473
  end
1436
1474
 
1475
+ # A report of the OS policy assignment status for a given instance.
1476
+ class OsPolicyAssignmentReport
1477
+ include Google::Apis::Core::Hashable
1478
+
1479
+ # The Compute Engine VM instance name.
1480
+ # Corresponds to the JSON property `instance`
1481
+ # @return [String]
1482
+ attr_accessor :instance
1483
+
1484
+ # Unique identifier of the last attempted run to apply the OS policies
1485
+ # associated with this assignment on the VM. This ID is logged by the OS Config
1486
+ # agent while applying the OS policies associated with this assignment on the VM.
1487
+ # NOTE: If the service is unable to successfully connect to the agent for this
1488
+ # run, then this id will not be available in the agent logs.
1489
+ # Corresponds to the JSON property `lastRunId`
1490
+ # @return [String]
1491
+ attr_accessor :last_run_id
1492
+
1493
+ # The `OSPolicyAssignmentReport` API resource name. Format: `projects/`
1494
+ # project_number`/locations/`location`/instances/`instance_id`/
1495
+ # osPolicyAssignments/`os_policy_assignment_id`/report`
1496
+ # Corresponds to the JSON property `name`
1497
+ # @return [String]
1498
+ attr_accessor :name
1499
+
1500
+ # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs
1501
+ # to. Format: `projects/`project_number`/locations/`location`/
1502
+ # osPolicyAssignments/`os_policy_assignment_id@revision_id``
1503
+ # Corresponds to the JSON property `osPolicyAssignment`
1504
+ # @return [String]
1505
+ attr_accessor :os_policy_assignment
1506
+
1507
+ # Compliance data for each `OSPolicy` that is applied to the VM.
1508
+ # Corresponds to the JSON property `osPolicyCompliances`
1509
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance>]
1510
+ attr_accessor :os_policy_compliances
1511
+
1512
+ # Timestamp for when the report was last generated.
1513
+ # Corresponds to the JSON property `updateTime`
1514
+ # @return [String]
1515
+ attr_accessor :update_time
1516
+
1517
+ def initialize(**args)
1518
+ update!(**args)
1519
+ end
1520
+
1521
+ # Update properties of this object
1522
+ def update!(**args)
1523
+ @instance = args[:instance] if args.key?(:instance)
1524
+ @last_run_id = args[:last_run_id] if args.key?(:last_run_id)
1525
+ @name = args[:name] if args.key?(:name)
1526
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
1527
+ @os_policy_compliances = args[:os_policy_compliances] if args.key?(:os_policy_compliances)
1528
+ @update_time = args[:update_time] if args.key?(:update_time)
1529
+ end
1530
+ end
1531
+
1532
+ # Compliance data for an OS policy
1533
+ class OsPolicyAssignmentReportOsPolicyCompliance
1534
+ include Google::Apis::Core::Hashable
1535
+
1536
+ # The compliance state of the OS policy.
1537
+ # Corresponds to the JSON property `complianceState`
1538
+ # @return [String]
1539
+ attr_accessor :compliance_state
1540
+
1541
+ # The reason for the OS policy to be in an unknown compliance state. This field
1542
+ # is always populated when `compliance_state` is `UNKNOWN`. If populated, the
1543
+ # field can contain one of the following values: * `vm-not-running`: The VM was
1544
+ # not running. * `os-policies-not-supported-by-agent`: The version of the OS
1545
+ # Config agent running on the VM does not support running OS policies. * `no-
1546
+ # agent-detected`: The OS Config agent is not detected for the VM. * `resource-
1547
+ # execution-errors`: The OS Config agent encountered errors while executing one
1548
+ # or more resources in the policy. See `os_policy_resource_compliances` for
1549
+ # details. * `task-timeout`: The task sent to the agent to apply the policy
1550
+ # timed out. * `unexpected-agent-state`: The OS Config agent did not report the
1551
+ # final status of the task that attempted to apply the policy. Instead, the
1552
+ # agent unexpectedly started working on a different task. This mostly happens
1553
+ # when the agent or VM unexpectedly restarts while applying OS policies. * `
1554
+ # internal-service-errors`: Internal service errors were encountered while
1555
+ # attempting to apply the policy.
1556
+ # Corresponds to the JSON property `complianceStateReason`
1557
+ # @return [String]
1558
+ attr_accessor :compliance_state_reason
1559
+
1560
+ # The OS policy id
1561
+ # Corresponds to the JSON property `osPolicyId`
1562
+ # @return [String]
1563
+ attr_accessor :os_policy_id
1564
+
1565
+ # Compliance data for each resource within the policy that is applied to the VM.
1566
+ # Corresponds to the JSON property `osPolicyResourceCompliances`
1567
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>]
1568
+ attr_accessor :os_policy_resource_compliances
1569
+
1570
+ def initialize(**args)
1571
+ update!(**args)
1572
+ end
1573
+
1574
+ # Update properties of this object
1575
+ def update!(**args)
1576
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1577
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1578
+ @os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id)
1579
+ @os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances)
1580
+ end
1581
+ end
1582
+
1583
+ # Compliance data for an OS policy resource.
1584
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
1585
+ include Google::Apis::Core::Hashable
1586
+
1587
+ # The compliance state of the resource.
1588
+ # Corresponds to the JSON property `complianceState`
1589
+ # @return [String]
1590
+ attr_accessor :compliance_state
1591
+
1592
+ # A reason for the resource to be in the given compliance state. This field is
1593
+ # always populated when `compliance_state` is `UNKNOWN`. The following values
1594
+ # are supported when `compliance_state == UNKNOWN` * `execution-errors`: Errors
1595
+ # were encountered by the agent while executing the resource and the compliance
1596
+ # state couldn't be determined. * `execution-skipped-by-agent`: Resource
1597
+ # execution was skipped by the agent because errors were encountered while
1598
+ # executing prior resources in the OS policy. * `os-policy-execution-attempt-
1599
+ # failed`: The execution of the OS policy containing this resource failed and
1600
+ # the compliance state couldn't be determined.
1601
+ # Corresponds to the JSON property `complianceStateReason`
1602
+ # @return [String]
1603
+ attr_accessor :compliance_state_reason
1604
+
1605
+ # Ordered list of configuration completed by the agent for the OS policy
1606
+ # resource.
1607
+ # Corresponds to the JSON property `configSteps`
1608
+ # @return [Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>]
1609
+ attr_accessor :config_steps
1610
+
1611
+ # ExecResource specific output.
1612
+ # Corresponds to the JSON property `execResourceOutput`
1613
+ # @return [Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput]
1614
+ attr_accessor :exec_resource_output
1615
+
1616
+ # The ID of the OS policy resource.
1617
+ # Corresponds to the JSON property `osPolicyResourceId`
1618
+ # @return [String]
1619
+ attr_accessor :os_policy_resource_id
1620
+
1621
+ def initialize(**args)
1622
+ update!(**args)
1623
+ end
1624
+
1625
+ # Update properties of this object
1626
+ def update!(**args)
1627
+ @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
1628
+ @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
1629
+ @config_steps = args[:config_steps] if args.key?(:config_steps)
1630
+ @exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output)
1631
+ @os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id)
1632
+ end
1633
+ end
1634
+
1635
+ # ExecResource specific output.
1636
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
1637
+ include Google::Apis::Core::Hashable
1638
+
1639
+ # Output from enforcement phase output file (if run). Output size is limited to
1640
+ # 100K bytes.
1641
+ # Corresponds to the JSON property `enforcementOutput`
1642
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1643
+ # @return [String]
1644
+ attr_accessor :enforcement_output
1645
+
1646
+ def initialize(**args)
1647
+ update!(**args)
1648
+ end
1649
+
1650
+ # Update properties of this object
1651
+ def update!(**args)
1652
+ @enforcement_output = args[:enforcement_output] if args.key?(:enforcement_output)
1653
+ end
1654
+ end
1655
+
1656
+ # Step performed by the OS Config agent for configuring an `OSPolicy` resource
1657
+ # to its desired state.
1658
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
1659
+ include Google::Apis::Core::Hashable
1660
+
1661
+ # An error message recorded during the execution of this step. Only populated if
1662
+ # errors were encountered during this step execution.
1663
+ # Corresponds to the JSON property `errorMessage`
1664
+ # @return [String]
1665
+ attr_accessor :error_message
1666
+
1667
+ # Configuration step type.
1668
+ # Corresponds to the JSON property `type`
1669
+ # @return [String]
1670
+ attr_accessor :type
1671
+
1672
+ def initialize(**args)
1673
+ update!(**args)
1674
+ end
1675
+
1676
+ # Update properties of this object
1677
+ def update!(**args)
1678
+ @error_message = args[:error_message] if args.key?(:error_message)
1679
+ @type = args[:type] if args.key?(:type)
1680
+ end
1681
+ end
1682
+
1437
1683
  # Message to configure the rollout at the zonal level for the OS policy
1438
1684
  # assignment.
1439
1685
  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.11.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 = "20210925"
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
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class ListOsPolicyAssignmentReportsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class ListOsPolicyAssignmentRevisionsResponse
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -232,6 +244,36 @@ module Google
232
244
  include Google::Apis::Core::JsonObjectSupport
233
245
  end
234
246
 
247
+ class OsPolicyAssignmentReport
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class OsPolicyAssignmentReportOsPolicyCompliance
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
235
277
  class OsPolicyAssignmentRollout
236
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
279
 
@@ -534,6 +576,12 @@ module Google
534
576
  end
535
577
  end
536
578
 
579
+ class CancelOperationRequest
580
+ # @private
581
+ class Representation < Google::Apis::Core::JsonRepresentation
582
+ end
583
+ end
584
+
537
585
  class CancelPatchJobRequest
538
586
  # @private
539
587
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -754,6 +802,15 @@ module Google
754
802
  end
755
803
  end
756
804
 
805
+ class ListOsPolicyAssignmentReportsResponse
806
+ # @private
807
+ class Representation < Google::Apis::Core::JsonRepresentation
808
+ property :next_page_token, as: 'nextPageToken'
809
+ collection :os_policy_assignment_reports, as: 'osPolicyAssignmentReports', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReport, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReport::Representation
810
+
811
+ end
812
+ end
813
+
757
814
  class ListOsPolicyAssignmentRevisionsResponse
758
815
  # @private
759
816
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -890,6 +947,58 @@ module Google
890
947
  end
891
948
  end
892
949
 
950
+ class OsPolicyAssignmentReport
951
+ # @private
952
+ class Representation < Google::Apis::Core::JsonRepresentation
953
+ property :instance, as: 'instance'
954
+ property :last_run_id, as: 'lastRunId'
955
+ property :name, as: 'name'
956
+ property :os_policy_assignment, as: 'osPolicyAssignment'
957
+ collection :os_policy_compliances, as: 'osPolicyCompliances', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance::Representation
958
+
959
+ property :update_time, as: 'updateTime'
960
+ end
961
+ end
962
+
963
+ class OsPolicyAssignmentReportOsPolicyCompliance
964
+ # @private
965
+ class Representation < Google::Apis::Core::JsonRepresentation
966
+ property :compliance_state, as: 'complianceState'
967
+ property :compliance_state_reason, as: 'complianceStateReason'
968
+ property :os_policy_id, as: 'osPolicyId'
969
+ collection :os_policy_resource_compliances, as: 'osPolicyResourceCompliances', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance::Representation
970
+
971
+ end
972
+ end
973
+
974
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
975
+ # @private
976
+ class Representation < Google::Apis::Core::JsonRepresentation
977
+ property :compliance_state, as: 'complianceState'
978
+ property :compliance_state_reason, as: 'complianceStateReason'
979
+ collection :config_steps, as: 'configSteps', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep::Representation
980
+
981
+ property :exec_resource_output, as: 'execResourceOutput', class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput, decorator: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput::Representation
982
+
983
+ property :os_policy_resource_id, as: 'osPolicyResourceId'
984
+ end
985
+ end
986
+
987
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
988
+ # @private
989
+ class Representation < Google::Apis::Core::JsonRepresentation
990
+ property :enforcement_output, :base64 => true, as: 'enforcementOutput'
991
+ end
992
+ end
993
+
994
+ class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
995
+ # @private
996
+ class Representation < Google::Apis::Core::JsonRepresentation
997
+ property :error_message, as: 'errorMessage'
998
+ property :type, as: 'type'
999
+ end
1000
+ end
1001
+
893
1002
  class OsPolicyAssignmentRollout
894
1003
  # @private
895
1004
  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/*
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.11.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-10-04 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1
63
63
  post_install_message:
64
64
  rdoc_options: []