google-apis-osconfig_v1alpha 0.3.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/osconfig_v1alpha/classes.rb +436 -10
- data/lib/google/apis/osconfig_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/osconfig_v1alpha/representations.rb +166 -0
- data/lib/google/apis/osconfig_v1alpha/service.rb +97 -6
- data/lib/google/apis/osconfig_v1alpha.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a52feb73ff0c976081fb0ffc9f6c76ec709f33aef00f6aa730fd851920e694
|
4
|
+
data.tar.gz: a3c0d675168760b89aed064966ddfc7f4f2204402d3e62c1ff08e9ce29b5eb24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128f98e63ddbb75b6414bd8de4895d9f266a1dfd3310346d578011d99d3d08f1d0c36deeefd48f8cdf655846d3cf0905a1b40e3424fd9e83cfced6201c6b837f
|
7
|
+
data.tar.gz: 04c556e0754a65f55d3a12089a345a738809d6142eb06f4ae094b8d0e719009d76fe73efa96bee4a5f11425f6a6dba9ad1bfb4f09b61b610fc5a91cb1b93d52b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-osconfig_v1alpha
|
2
2
|
|
3
|
+
### v0.7.0 (2021-09-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210914
|
6
|
+
|
7
|
+
### v0.6.0 (2021-09-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210821
|
10
|
+
|
11
|
+
### v0.5.0 (2021-08-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210723
|
14
|
+
|
15
|
+
### v0.4.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated using generator version 0.4.0
|
18
|
+
|
3
19
|
### v0.3.0 (2021-06-24)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210614
|
@@ -127,6 +127,47 @@ module Google
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
131
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
132
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
133
|
+
# following: * A full date, with non-zero year, month, and day values * A month
|
134
|
+
# and day value, with a zero year, such as an anniversary * A year on its own,
|
135
|
+
# with zero month and day values * A year and month value, with a zero day, such
|
136
|
+
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
137
|
+
# google.protobuf.Timestamp`.
|
138
|
+
class Date
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
|
142
|
+
# specify a year by itself or a year and month where the day isn't significant.
|
143
|
+
# Corresponds to the JSON property `day`
|
144
|
+
# @return [Fixnum]
|
145
|
+
attr_accessor :day
|
146
|
+
|
147
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
|
148
|
+
# and day.
|
149
|
+
# Corresponds to the JSON property `month`
|
150
|
+
# @return [Fixnum]
|
151
|
+
attr_accessor :month
|
152
|
+
|
153
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
|
154
|
+
# year.
|
155
|
+
# Corresponds to the JSON property `year`
|
156
|
+
# @return [Fixnum]
|
157
|
+
attr_accessor :year
|
158
|
+
|
159
|
+
def initialize(**args)
|
160
|
+
update!(**args)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Update properties of this object
|
164
|
+
def update!(**args)
|
165
|
+
@day = args[:day] if args.key?(:day)
|
166
|
+
@month = args[:month] if args.key?(:month)
|
167
|
+
@year = args[:year] if args.key?(:year)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
130
171
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
131
172
|
# messages in your APIs. A typical example is to use it as the request or the
|
132
173
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -481,6 +522,14 @@ module Google
|
|
481
522
|
# @return [Google::Apis::OsconfigV1alpha::InventoryWindowsQuickFixEngineeringPackage]
|
482
523
|
attr_accessor :qfe_package
|
483
524
|
|
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" `
|
529
|
+
# Corresponds to the JSON property `windowsApplication`
|
530
|
+
# @return [Google::Apis::OsconfigV1alpha::InventoryWindowsApplication]
|
531
|
+
attr_accessor :windows_application
|
532
|
+
|
484
533
|
# Details related to a Windows Update package. Field data and names are taken
|
485
534
|
# from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/
|
486
535
|
# windows/win32/api/_wua/ Descriptive fields like title, and description are
|
@@ -516,6 +565,7 @@ module Google
|
|
516
565
|
@cos_package = args[:cos_package] if args.key?(:cos_package)
|
517
566
|
@googet_package = args[:googet_package] if args.key?(:googet_package)
|
518
567
|
@qfe_package = args[:qfe_package] if args.key?(:qfe_package)
|
568
|
+
@windows_application = args[:windows_application] if args.key?(:windows_application)
|
519
569
|
@wua_package = args[:wua_package] if args.key?(:wua_package)
|
520
570
|
@yum_package = args[:yum_package] if args.key?(:yum_package)
|
521
571
|
@zypper_package = args[:zypper_package] if args.key?(:zypper_package)
|
@@ -555,6 +605,59 @@ module Google
|
|
555
605
|
end
|
556
606
|
end
|
557
607
|
|
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" `
|
612
|
+
class InventoryWindowsApplication
|
613
|
+
include Google::Apis::Core::Hashable
|
614
|
+
|
615
|
+
# The name of the application or product.
|
616
|
+
# Corresponds to the JSON property `displayName`
|
617
|
+
# @return [String]
|
618
|
+
attr_accessor :display_name
|
619
|
+
|
620
|
+
# The version of the product or application in string format.
|
621
|
+
# Corresponds to the JSON property `displayVersion`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :display_version
|
624
|
+
|
625
|
+
# The internet address for technical support.
|
626
|
+
# Corresponds to the JSON property `helpLink`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :help_link
|
629
|
+
|
630
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
631
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
632
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
633
|
+
# following: * A full date, with non-zero year, month, and day values * A month
|
634
|
+
# and day value, with a zero year, such as an anniversary * A year on its own,
|
635
|
+
# with zero month and day values * A year and month value, with a zero day, such
|
636
|
+
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
637
|
+
# google.protobuf.Timestamp`.
|
638
|
+
# Corresponds to the JSON property `installDate`
|
639
|
+
# @return [Google::Apis::OsconfigV1alpha::Date]
|
640
|
+
attr_accessor :install_date
|
641
|
+
|
642
|
+
# The name of the manufacturer for the product or application.
|
643
|
+
# Corresponds to the JSON property `publisher`
|
644
|
+
# @return [String]
|
645
|
+
attr_accessor :publisher
|
646
|
+
|
647
|
+
def initialize(**args)
|
648
|
+
update!(**args)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Update properties of this object
|
652
|
+
def update!(**args)
|
653
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
654
|
+
@display_version = args[:display_version] if args.key?(:display_version)
|
655
|
+
@help_link = args[:help_link] if args.key?(:help_link)
|
656
|
+
@install_date = args[:install_date] if args.key?(:install_date)
|
657
|
+
@publisher = args[:publisher] if args.key?(:publisher)
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
558
661
|
# Information related to a Quick Fix Engineering package. Fields are taken from
|
559
662
|
# Windows QuickFixEngineering Interface and match the source names: https://docs.
|
560
663
|
# microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
|
@@ -780,6 +883,33 @@ module Google
|
|
780
883
|
end
|
781
884
|
end
|
782
885
|
|
886
|
+
# A response message for listing OS Policy assignment reports including the page
|
887
|
+
# of results and page token.
|
888
|
+
class ListOsPolicyAssignmentReportsResponse
|
889
|
+
include Google::Apis::Core::Hashable
|
890
|
+
|
891
|
+
# The pagination token to retrieve the next page of OS policy assignment report
|
892
|
+
# objects.
|
893
|
+
# Corresponds to the JSON property `nextPageToken`
|
894
|
+
# @return [String]
|
895
|
+
attr_accessor :next_page_token
|
896
|
+
|
897
|
+
# List of OS policy assignment reports.
|
898
|
+
# Corresponds to the JSON property `osPolicyAssignmentReports`
|
899
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport>]
|
900
|
+
attr_accessor :os_policy_assignment_reports
|
901
|
+
|
902
|
+
def initialize(**args)
|
903
|
+
update!(**args)
|
904
|
+
end
|
905
|
+
|
906
|
+
# Update properties of this object
|
907
|
+
def update!(**args)
|
908
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
909
|
+
@os_policy_assignment_reports = args[:os_policy_assignment_reports] if args.key?(:os_policy_assignment_reports)
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
783
913
|
# A response message for listing all revisions for a OS policy assignment.
|
784
914
|
class ListOsPolicyAssignmentRevisionsResponse
|
785
915
|
include Google::Apis::Core::Hashable
|
@@ -943,7 +1073,15 @@ module Google
|
|
943
1073
|
# @return [String]
|
944
1074
|
attr_accessor :description
|
945
1075
|
|
946
|
-
#
|
1076
|
+
# The etag for this OS policy assignment. If this is provided on update, it must
|
1077
|
+
# match the server's etag.
|
1078
|
+
# Corresponds to the JSON property `etag`
|
1079
|
+
# @return [String]
|
1080
|
+
attr_accessor :etag
|
1081
|
+
|
1082
|
+
# Filters to select target VMs for an assignment. If more than one filter
|
1083
|
+
# criteria is specified below, a VM will be selected if and only if it satisfies
|
1084
|
+
# all of them.
|
947
1085
|
# Corresponds to the JSON property `instanceFilter`
|
948
1086
|
# @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter]
|
949
1087
|
attr_accessor :instance_filter
|
@@ -1004,6 +1142,7 @@ module Google
|
|
1004
1142
|
@baseline = args[:baseline] if args.key?(:baseline)
|
1005
1143
|
@deleted = args[:deleted] if args.key?(:deleted)
|
1006
1144
|
@description = args[:description] if args.key?(:description)
|
1145
|
+
@etag = args[:etag] if args.key?(:etag)
|
1007
1146
|
@instance_filter = args[:instance_filter] if args.key?(:instance_filter)
|
1008
1147
|
@name = args[:name] if args.key?(:name)
|
1009
1148
|
@os_policies = args[:os_policies] if args.key?(:os_policies)
|
@@ -1016,7 +1155,9 @@ module Google
|
|
1016
1155
|
end
|
1017
1156
|
end
|
1018
1157
|
|
1019
|
-
#
|
1158
|
+
# Filters to select target VMs for an assignment. If more than one filter
|
1159
|
+
# criteria is specified below, a VM will be selected if and only if it satisfies
|
1160
|
+
# all of them.
|
1020
1161
|
class OsPolicyAssignmentInstanceFilter
|
1021
1162
|
include Google::Apis::Core::Hashable
|
1022
1163
|
|
@@ -1028,8 +1169,6 @@ module Google
|
|
1028
1169
|
|
1029
1170
|
# List of label sets used for VM exclusion. If the list has more than one label
|
1030
1171
|
# set, the VM is excluded if any of the label sets are applicable for the VM.
|
1031
|
-
# This filter is applied last in the filtering chain and therefore a VM is
|
1032
|
-
# guaranteed to be excluded if it satisfies one of the below label sets.
|
1033
1172
|
# Corresponds to the JSON property `exclusionLabels`
|
1034
1173
|
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
|
1035
1174
|
attr_accessor :exclusion_labels
|
@@ -1041,8 +1180,14 @@ module Google
|
|
1041
1180
|
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
|
1042
1181
|
attr_accessor :inclusion_labels
|
1043
1182
|
|
1044
|
-
#
|
1045
|
-
#
|
1183
|
+
# List of inventories to select VMs. A VM is selected if its inventory data
|
1184
|
+
# matches at least one of the following inventories.
|
1185
|
+
# Corresponds to the JSON property `inventories`
|
1186
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory>]
|
1187
|
+
attr_accessor :inventories
|
1188
|
+
|
1189
|
+
# Deprecated. Use the `inventories` field instead. A VM is selected if it's OS
|
1190
|
+
# short name matches with any of the values provided in this list.
|
1046
1191
|
# Corresponds to the JSON property `osShortNames`
|
1047
1192
|
# @return [Array<String>]
|
1048
1193
|
attr_accessor :os_short_names
|
@@ -1056,10 +1201,39 @@ module Google
|
|
1056
1201
|
@all = args[:all] if args.key?(:all)
|
1057
1202
|
@exclusion_labels = args[:exclusion_labels] if args.key?(:exclusion_labels)
|
1058
1203
|
@inclusion_labels = args[:inclusion_labels] if args.key?(:inclusion_labels)
|
1204
|
+
@inventories = args[:inventories] if args.key?(:inventories)
|
1059
1205
|
@os_short_names = args[:os_short_names] if args.key?(:os_short_names)
|
1060
1206
|
end
|
1061
1207
|
end
|
1062
1208
|
|
1209
|
+
# VM inventory details.
|
1210
|
+
class OsPolicyAssignmentInstanceFilterInventory
|
1211
|
+
include Google::Apis::Core::Hashable
|
1212
|
+
|
1213
|
+
# Required. The OS short name
|
1214
|
+
# Corresponds to the JSON property `osShortName`
|
1215
|
+
# @return [String]
|
1216
|
+
attr_accessor :os_short_name
|
1217
|
+
|
1218
|
+
# The OS version Prefix matches are supported if asterisk(*) is provided as the
|
1219
|
+
# last character. For example, to match all versions with a major version of `7`,
|
1220
|
+
# specify the following value for this field `7.*` An empty string matches all
|
1221
|
+
# OS versions.
|
1222
|
+
# Corresponds to the JSON property `osVersion`
|
1223
|
+
# @return [String]
|
1224
|
+
attr_accessor :os_version
|
1225
|
+
|
1226
|
+
def initialize(**args)
|
1227
|
+
update!(**args)
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# Update properties of this object
|
1231
|
+
def update!(**args)
|
1232
|
+
@os_short_name = args[:os_short_name] if args.key?(:os_short_name)
|
1233
|
+
@os_version = args[:os_version] if args.key?(:os_version)
|
1234
|
+
end
|
1235
|
+
end
|
1236
|
+
|
1063
1237
|
# Message representing label set. * A label is a key value pair set for a VM. *
|
1064
1238
|
# A LabelSet is a set of labels. * Labels within a LabelSet are ANDed. In other
|
1065
1239
|
# words, a LabelSet is applicable for a VM only if it matches all the labels in
|
@@ -1130,6 +1304,214 @@ module Google
|
|
1130
1304
|
end
|
1131
1305
|
end
|
1132
1306
|
|
1307
|
+
# A report of the OS policy assignment status for a given instance.
|
1308
|
+
class OsPolicyAssignmentReport
|
1309
|
+
include Google::Apis::Core::Hashable
|
1310
|
+
|
1311
|
+
# The Compute Engine VM instance name.
|
1312
|
+
# Corresponds to the JSON property `instance`
|
1313
|
+
# @return [String]
|
1314
|
+
attr_accessor :instance
|
1315
|
+
|
1316
|
+
# Unique identifier of the last attempted run to apply the OS policies
|
1317
|
+
# associated with this assignment on the VM. This ID is logged by the OS Config
|
1318
|
+
# agent while applying the OS policies associated with this assignment on the VM.
|
1319
|
+
# NOTE: If the service is unable to successfully connect to the agent for this
|
1320
|
+
# run, then this id will not be available in the agent logs.
|
1321
|
+
# Corresponds to the JSON property `lastRunId`
|
1322
|
+
# @return [String]
|
1323
|
+
attr_accessor :last_run_id
|
1324
|
+
|
1325
|
+
# The `OSPolicyAssignmentReport` API resource name. Format: `projects/`
|
1326
|
+
# project_number`/locations/`location`/instances/`instance_id`/
|
1327
|
+
# osPolicyAssignments/`os_policy_assignment_id`/report`
|
1328
|
+
# Corresponds to the JSON property `name`
|
1329
|
+
# @return [String]
|
1330
|
+
attr_accessor :name
|
1331
|
+
|
1332
|
+
# Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs
|
1333
|
+
# to. Format: `projects/`project_number`/locations/`location`/
|
1334
|
+
# osPolicyAssignments/`os_policy_assignment_id@revision_id``
|
1335
|
+
# Corresponds to the JSON property `osPolicyAssignment`
|
1336
|
+
# @return [String]
|
1337
|
+
attr_accessor :os_policy_assignment
|
1338
|
+
|
1339
|
+
# Compliance data for each `OSPolicy` that is applied to the VM.
|
1340
|
+
# Corresponds to the JSON property `osPolicyCompliances`
|
1341
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance>]
|
1342
|
+
attr_accessor :os_policy_compliances
|
1343
|
+
|
1344
|
+
# Timestamp for when the report was last generated.
|
1345
|
+
# Corresponds to the JSON property `updateTime`
|
1346
|
+
# @return [String]
|
1347
|
+
attr_accessor :update_time
|
1348
|
+
|
1349
|
+
def initialize(**args)
|
1350
|
+
update!(**args)
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
# Update properties of this object
|
1354
|
+
def update!(**args)
|
1355
|
+
@instance = args[:instance] if args.key?(:instance)
|
1356
|
+
@last_run_id = args[:last_run_id] if args.key?(:last_run_id)
|
1357
|
+
@name = args[:name] if args.key?(:name)
|
1358
|
+
@os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
|
1359
|
+
@os_policy_compliances = args[:os_policy_compliances] if args.key?(:os_policy_compliances)
|
1360
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1361
|
+
end
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
# Compliance data for an OS policy
|
1365
|
+
class OsPolicyAssignmentReportOsPolicyCompliance
|
1366
|
+
include Google::Apis::Core::Hashable
|
1367
|
+
|
1368
|
+
# The compliance state of the OS policy.
|
1369
|
+
# Corresponds to the JSON property `complianceState`
|
1370
|
+
# @return [String]
|
1371
|
+
attr_accessor :compliance_state
|
1372
|
+
|
1373
|
+
# The reason for the OS policy to be in an unknown compliance state. This field
|
1374
|
+
# is always populated when `compliance_state` is `UNKNOWN`. If populated, the
|
1375
|
+
# field can contain one of the following values: * `vm-not-running`: The VM was
|
1376
|
+
# not running. * `os-policies-not-supported-by-agent`: The version of the OS
|
1377
|
+
# Config agent running on the VM does not support running OS policies. * `no-
|
1378
|
+
# agent-detected`: The OS Config agent is not detected for the VM. * `resource-
|
1379
|
+
# execution-errors`: The OS Config agent encountered errors while executing one
|
1380
|
+
# or more resources in the policy. See `os_policy_resource_compliances` for
|
1381
|
+
# details. * `task-timeout`: The task sent to the agent to apply the policy
|
1382
|
+
# timed out. * `unexpected-agent-state`: The OS Config agent did not report the
|
1383
|
+
# final status of the task that attempted to apply the policy. Instead, the
|
1384
|
+
# agent unexpectedly started working on a different task. This mostly happens
|
1385
|
+
# when the agent or VM unexpectedly restarts while applying OS policies. * `
|
1386
|
+
# internal-service-errors`: Internal service errors were encountered while
|
1387
|
+
# attempting to apply the policy.
|
1388
|
+
# Corresponds to the JSON property `complianceStateReason`
|
1389
|
+
# @return [String]
|
1390
|
+
attr_accessor :compliance_state_reason
|
1391
|
+
|
1392
|
+
# The OS policy id
|
1393
|
+
# Corresponds to the JSON property `osPolicyId`
|
1394
|
+
# @return [String]
|
1395
|
+
attr_accessor :os_policy_id
|
1396
|
+
|
1397
|
+
# Compliance data for each resource within the policy that is applied to the VM.
|
1398
|
+
# Corresponds to the JSON property `osPolicyResourceCompliances`
|
1399
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>]
|
1400
|
+
attr_accessor :os_policy_resource_compliances
|
1401
|
+
|
1402
|
+
def initialize(**args)
|
1403
|
+
update!(**args)
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
# Update properties of this object
|
1407
|
+
def update!(**args)
|
1408
|
+
@compliance_state = args[:compliance_state] if args.key?(:compliance_state)
|
1409
|
+
@compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
|
1410
|
+
@os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id)
|
1411
|
+
@os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances)
|
1412
|
+
end
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# Compliance data for an OS policy resource.
|
1416
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
|
1417
|
+
include Google::Apis::Core::Hashable
|
1418
|
+
|
1419
|
+
# The compliance state of the resource.
|
1420
|
+
# Corresponds to the JSON property `complianceState`
|
1421
|
+
# @return [String]
|
1422
|
+
attr_accessor :compliance_state
|
1423
|
+
|
1424
|
+
# A reason for the resource to be in the given compliance state. This field is
|
1425
|
+
# always populated when `compliance_state` is `UNKNOWN`. The following values
|
1426
|
+
# are supported when `compliance_state == UNKNOWN` * `execution-errors`: Errors
|
1427
|
+
# were encountered by the agent while executing the resource and the compliance
|
1428
|
+
# state couldn't be determined. * `execution-skipped-by-agent`: Resource
|
1429
|
+
# execution was skipped by the agent because errors were encountered while
|
1430
|
+
# executing prior resources in the OS policy. * `os-policy-execution-attempt-
|
1431
|
+
# failed`: The execution of the OS policy containing this resource failed and
|
1432
|
+
# the compliance state couldn't be determined.
|
1433
|
+
# Corresponds to the JSON property `complianceStateReason`
|
1434
|
+
# @return [String]
|
1435
|
+
attr_accessor :compliance_state_reason
|
1436
|
+
|
1437
|
+
# Ordered list of configuration completed by the agent for the OS policy
|
1438
|
+
# resource.
|
1439
|
+
# Corresponds to the JSON property `configSteps`
|
1440
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>]
|
1441
|
+
attr_accessor :config_steps
|
1442
|
+
|
1443
|
+
# ExecResource specific output.
|
1444
|
+
# Corresponds to the JSON property `execResourceOutput`
|
1445
|
+
# @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput]
|
1446
|
+
attr_accessor :exec_resource_output
|
1447
|
+
|
1448
|
+
# The ID of the OS policy resource.
|
1449
|
+
# Corresponds to the JSON property `osPolicyResourceId`
|
1450
|
+
# @return [String]
|
1451
|
+
attr_accessor :os_policy_resource_id
|
1452
|
+
|
1453
|
+
def initialize(**args)
|
1454
|
+
update!(**args)
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
# Update properties of this object
|
1458
|
+
def update!(**args)
|
1459
|
+
@compliance_state = args[:compliance_state] if args.key?(:compliance_state)
|
1460
|
+
@compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason)
|
1461
|
+
@config_steps = args[:config_steps] if args.key?(:config_steps)
|
1462
|
+
@exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output)
|
1463
|
+
@os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id)
|
1464
|
+
end
|
1465
|
+
end
|
1466
|
+
|
1467
|
+
# ExecResource specific output.
|
1468
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
|
1469
|
+
include Google::Apis::Core::Hashable
|
1470
|
+
|
1471
|
+
# Output from enforcement phase output file (if run). Output size is limited to
|
1472
|
+
# 100K bytes.
|
1473
|
+
# Corresponds to the JSON property `enforcementOutput`
|
1474
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1475
|
+
# @return [String]
|
1476
|
+
attr_accessor :enforcement_output
|
1477
|
+
|
1478
|
+
def initialize(**args)
|
1479
|
+
update!(**args)
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# Update properties of this object
|
1483
|
+
def update!(**args)
|
1484
|
+
@enforcement_output = args[:enforcement_output] if args.key?(:enforcement_output)
|
1485
|
+
end
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
# Step performed by the OS Config agent for configuring an `OSPolicy` resource
|
1489
|
+
# to its desired state.
|
1490
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
|
1491
|
+
include Google::Apis::Core::Hashable
|
1492
|
+
|
1493
|
+
# An error message recorded during the execution of this step. Only populated if
|
1494
|
+
# errors were encountered during this step execution.
|
1495
|
+
# Corresponds to the JSON property `errorMessage`
|
1496
|
+
# @return [String]
|
1497
|
+
attr_accessor :error_message
|
1498
|
+
|
1499
|
+
# Configuration step type.
|
1500
|
+
# Corresponds to the JSON property `type`
|
1501
|
+
# @return [String]
|
1502
|
+
attr_accessor :type
|
1503
|
+
|
1504
|
+
def initialize(**args)
|
1505
|
+
update!(**args)
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
# Update properties of this object
|
1509
|
+
def update!(**args)
|
1510
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
1511
|
+
@type = args[:type] if args.key?(:type)
|
1512
|
+
end
|
1513
|
+
end
|
1514
|
+
|
1133
1515
|
# Message to configure the rollout at the zonal level for the OS policy
|
1134
1516
|
# assignment.
|
1135
1517
|
class OsPolicyAssignmentRollout
|
@@ -1160,8 +1542,35 @@ module Google
|
|
1160
1542
|
end
|
1161
1543
|
end
|
1162
1544
|
|
1163
|
-
#
|
1164
|
-
|
1545
|
+
# Filtering criteria to select VMs based on inventory details.
|
1546
|
+
class OsPolicyInventoryFilter
|
1547
|
+
include Google::Apis::Core::Hashable
|
1548
|
+
|
1549
|
+
# Required. The OS short name
|
1550
|
+
# Corresponds to the JSON property `osShortName`
|
1551
|
+
# @return [String]
|
1552
|
+
attr_accessor :os_short_name
|
1553
|
+
|
1554
|
+
# The OS version Prefix matches are supported if asterisk(*) is provided as the
|
1555
|
+
# last character. For example, to match all versions with a major version of `7`,
|
1556
|
+
# specify the following value for this field `7.*` An empty string matches all
|
1557
|
+
# OS versions.
|
1558
|
+
# Corresponds to the JSON property `osVersion`
|
1559
|
+
# @return [String]
|
1560
|
+
attr_accessor :os_version
|
1561
|
+
|
1562
|
+
def initialize(**args)
|
1563
|
+
update!(**args)
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
# Update properties of this object
|
1567
|
+
def update!(**args)
|
1568
|
+
@os_short_name = args[:os_short_name] if args.key?(:os_short_name)
|
1569
|
+
@os_version = args[:os_version] if args.key?(:os_version)
|
1570
|
+
end
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# Filtering criteria to select VMs based on OS details.
|
1165
1574
|
class OsPolicyOsFilter
|
1166
1575
|
include Google::Apis::Core::Hashable
|
1167
1576
|
|
@@ -1595,8 +2004,18 @@ module Google
|
|
1595
2004
|
class OsPolicyResourceGroup
|
1596
2005
|
include Google::Apis::Core::Hashable
|
1597
2006
|
|
1598
|
-
#
|
1599
|
-
# group
|
2007
|
+
# List of inventory filters for the resource group. The resources in this
|
2008
|
+
# resource group are applied to the target VM if it satisfies at least one of
|
2009
|
+
# the following inventory filters. For example, to apply this resource group to
|
2010
|
+
# VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for
|
2011
|
+
# the list with following values: inventory_filters[0].os_short_name='rhel' and
|
2012
|
+
# inventory_filters[1].os_short_name='centos' If the list is empty, this
|
2013
|
+
# resource group will be applied to the target VM unconditionally.
|
2014
|
+
# Corresponds to the JSON property `inventoryFilters`
|
2015
|
+
# @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter>]
|
2016
|
+
attr_accessor :inventory_filters
|
2017
|
+
|
2018
|
+
# Filtering criteria to select VMs based on OS details.
|
1600
2019
|
# Corresponds to the JSON property `osFilter`
|
1601
2020
|
# @return [Google::Apis::OsconfigV1alpha::OsPolicyOsFilter]
|
1602
2021
|
attr_accessor :os_filter
|
@@ -1613,6 +2032,7 @@ module Google
|
|
1613
2032
|
|
1614
2033
|
# Update properties of this object
|
1615
2034
|
def update!(**args)
|
2035
|
+
@inventory_filters = args[:inventory_filters] if args.key?(:inventory_filters)
|
1616
2036
|
@os_filter = args[:os_filter] if args.key?(:os_filter)
|
1617
2037
|
@resources = args[:resources] if args.key?(:resources)
|
1618
2038
|
end
|
@@ -2288,6 +2708,11 @@ module Google
|
|
2288
2708
|
class VulnerabilityReportVulnerabilityDetailsReference
|
2289
2709
|
include Google::Apis::Core::Hashable
|
2290
2710
|
|
2711
|
+
# The source of the reference e.g. NVD.
|
2712
|
+
# Corresponds to the JSON property `source`
|
2713
|
+
# @return [String]
|
2714
|
+
attr_accessor :source
|
2715
|
+
|
2291
2716
|
# The url of the reference.
|
2292
2717
|
# Corresponds to the JSON property `url`
|
2293
2718
|
# @return [String]
|
@@ -2299,6 +2724,7 @@ module Google
|
|
2299
2724
|
|
2300
2725
|
# Update properties of this object
|
2301
2726
|
def update!(**args)
|
2727
|
+
@source = args[:source] if args.key?(:source)
|
2302
2728
|
@url = args[:url] if args.key?(:url)
|
2303
2729
|
end
|
2304
2730
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210914"
|
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 Date
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Empty
|
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 InventoryWindowsApplication
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class InventoryWindowsQuickFixEngineeringPackage
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
@@ -124,6 +136,12 @@ module Google
|
|
124
136
|
include Google::Apis::Core::JsonObjectSupport
|
125
137
|
end
|
126
138
|
|
139
|
+
class ListOsPolicyAssignmentReportsResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
127
145
|
class ListOsPolicyAssignmentRevisionsResponse
|
128
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
147
|
|
@@ -160,6 +178,12 @@ module Google
|
|
160
178
|
include Google::Apis::Core::JsonObjectSupport
|
161
179
|
end
|
162
180
|
|
181
|
+
class OsPolicyAssignmentInstanceFilterInventory
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
163
187
|
class OsPolicyAssignmentLabelSet
|
164
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
189
|
|
@@ -172,12 +196,48 @@ module Google
|
|
172
196
|
include Google::Apis::Core::JsonObjectSupport
|
173
197
|
end
|
174
198
|
|
199
|
+
class OsPolicyAssignmentReport
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class OsPolicyAssignmentReportOsPolicyCompliance
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
175
229
|
class OsPolicyAssignmentRollout
|
176
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
231
|
|
178
232
|
include Google::Apis::Core::JsonObjectSupport
|
179
233
|
end
|
180
234
|
|
235
|
+
class OsPolicyInventoryFilter
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
181
241
|
class OsPolicyOsFilter
|
182
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
243
|
|
@@ -387,6 +447,15 @@ module Google
|
|
387
447
|
end
|
388
448
|
end
|
389
449
|
|
450
|
+
class Date
|
451
|
+
# @private
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
453
|
+
property :day, as: 'day'
|
454
|
+
property :month, as: 'month'
|
455
|
+
property :year, as: 'year'
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
390
459
|
class Empty
|
391
460
|
# @private
|
392
461
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -479,6 +548,8 @@ module Google
|
|
479
548
|
|
480
549
|
property :qfe_package, as: 'qfePackage', class: Google::Apis::OsconfigV1alpha::InventoryWindowsQuickFixEngineeringPackage, decorator: Google::Apis::OsconfigV1alpha::InventoryWindowsQuickFixEngineeringPackage::Representation
|
481
550
|
|
551
|
+
property :windows_application, as: 'windowsApplication', class: Google::Apis::OsconfigV1alpha::InventoryWindowsApplication, decorator: Google::Apis::OsconfigV1alpha::InventoryWindowsApplication::Representation
|
552
|
+
|
482
553
|
property :wua_package, as: 'wuaPackage', class: Google::Apis::OsconfigV1alpha::InventoryWindowsUpdatePackage, decorator: Google::Apis::OsconfigV1alpha::InventoryWindowsUpdatePackage::Representation
|
483
554
|
|
484
555
|
property :yum_package, as: 'yumPackage', class: Google::Apis::OsconfigV1alpha::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1alpha::InventoryVersionedPackage::Representation
|
@@ -499,6 +570,18 @@ module Google
|
|
499
570
|
end
|
500
571
|
end
|
501
572
|
|
573
|
+
class InventoryWindowsApplication
|
574
|
+
# @private
|
575
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
576
|
+
property :display_name, as: 'displayName'
|
577
|
+
property :display_version, as: 'displayVersion'
|
578
|
+
property :help_link, as: 'helpLink'
|
579
|
+
property :install_date, as: 'installDate', class: Google::Apis::OsconfigV1alpha::Date, decorator: Google::Apis::OsconfigV1alpha::Date::Representation
|
580
|
+
|
581
|
+
property :publisher, as: 'publisher'
|
582
|
+
end
|
583
|
+
end
|
584
|
+
|
502
585
|
class InventoryWindowsQuickFixEngineeringPackage
|
503
586
|
# @private
|
504
587
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -561,6 +644,15 @@ module Google
|
|
561
644
|
end
|
562
645
|
end
|
563
646
|
|
647
|
+
class ListOsPolicyAssignmentReportsResponse
|
648
|
+
# @private
|
649
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
650
|
+
property :next_page_token, as: 'nextPageToken'
|
651
|
+
collection :os_policy_assignment_reports, as: 'osPolicyAssignmentReports', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReport::Representation
|
652
|
+
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
564
656
|
class ListOsPolicyAssignmentRevisionsResponse
|
565
657
|
# @private
|
566
658
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -606,6 +698,7 @@ module Google
|
|
606
698
|
property :baseline, as: 'baseline'
|
607
699
|
property :deleted, as: 'deleted'
|
608
700
|
property :description, as: 'description'
|
701
|
+
property :etag, as: 'etag'
|
609
702
|
property :instance_filter, as: 'instanceFilter', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter::Representation
|
610
703
|
|
611
704
|
property :name, as: 'name'
|
@@ -629,10 +722,20 @@ module Google
|
|
629
722
|
|
630
723
|
collection :inclusion_labels, as: 'inclusionLabels', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet::Representation
|
631
724
|
|
725
|
+
collection :inventories, as: 'inventories', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory::Representation
|
726
|
+
|
632
727
|
collection :os_short_names, as: 'osShortNames'
|
633
728
|
end
|
634
729
|
end
|
635
730
|
|
731
|
+
class OsPolicyAssignmentInstanceFilterInventory
|
732
|
+
# @private
|
733
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
734
|
+
property :os_short_name, as: 'osShortName'
|
735
|
+
property :os_version, as: 'osVersion'
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
636
739
|
class OsPolicyAssignmentLabelSet
|
637
740
|
# @private
|
638
741
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -651,6 +754,58 @@ module Google
|
|
651
754
|
end
|
652
755
|
end
|
653
756
|
|
757
|
+
class OsPolicyAssignmentReport
|
758
|
+
# @private
|
759
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
760
|
+
property :instance, as: 'instance'
|
761
|
+
property :last_run_id, as: 'lastRunId'
|
762
|
+
property :name, as: 'name'
|
763
|
+
property :os_policy_assignment, as: 'osPolicyAssignment'
|
764
|
+
collection :os_policy_compliances, as: 'osPolicyCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyCompliance::Representation
|
765
|
+
|
766
|
+
property :update_time, as: 'updateTime'
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
class OsPolicyAssignmentReportOsPolicyCompliance
|
771
|
+
# @private
|
772
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
773
|
+
property :compliance_state, as: 'complianceState'
|
774
|
+
property :compliance_state_reason, as: 'complianceStateReason'
|
775
|
+
property :os_policy_id, as: 'osPolicyId'
|
776
|
+
collection :os_policy_resource_compliances, as: 'osPolicyResourceCompliances', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance::Representation
|
777
|
+
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
781
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
|
782
|
+
# @private
|
783
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
784
|
+
property :compliance_state, as: 'complianceState'
|
785
|
+
property :compliance_state_reason, as: 'complianceStateReason'
|
786
|
+
collection :config_steps, as: 'configSteps', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep::Representation
|
787
|
+
|
788
|
+
property :exec_resource_output, as: 'execResourceOutput', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput::Representation
|
789
|
+
|
790
|
+
property :os_policy_resource_id, as: 'osPolicyResourceId'
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
794
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
|
795
|
+
# @private
|
796
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
797
|
+
property :enforcement_output, :base64 => true, as: 'enforcementOutput'
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
class OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep
|
802
|
+
# @private
|
803
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
804
|
+
property :error_message, as: 'errorMessage'
|
805
|
+
property :type, as: 'type'
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
654
809
|
class OsPolicyAssignmentRollout
|
655
810
|
# @private
|
656
811
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -660,6 +815,14 @@ module Google
|
|
660
815
|
end
|
661
816
|
end
|
662
817
|
|
818
|
+
class OsPolicyInventoryFilter
|
819
|
+
# @private
|
820
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
821
|
+
property :os_short_name, as: 'osShortName'
|
822
|
+
property :os_version, as: 'osVersion'
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
663
826
|
class OsPolicyOsFilter
|
664
827
|
# @private
|
665
828
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -777,6 +940,8 @@ module Google
|
|
777
940
|
class OsPolicyResourceGroup
|
778
941
|
# @private
|
779
942
|
class Representation < Google::Apis::Core::JsonRepresentation
|
943
|
+
collection :inventory_filters, as: 'inventoryFilters', class: Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter::Representation
|
944
|
+
|
780
945
|
property :os_filter, as: 'osFilter', class: Google::Apis::OsconfigV1alpha::OsPolicyOsFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyOsFilter::Representation
|
781
946
|
|
782
947
|
collection :resources, as: 'resources', class: Google::Apis::OsconfigV1alpha::OsPolicyResource, decorator: Google::Apis::OsconfigV1alpha::OsPolicyResource::Representation
|
@@ -973,6 +1138,7 @@ module Google
|
|
973
1138
|
class VulnerabilityReportVulnerabilityDetailsReference
|
974
1139
|
# @private
|
975
1140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1141
|
+
property :source, as: 'source'
|
976
1142
|
property :url, as: 'url'
|
977
1143
|
end
|
978
1144
|
end
|
@@ -170,9 +170,8 @@ module Google
|
|
170
170
|
# List inventory data for all VM instances in the specified zone.
|
171
171
|
# @param [String] parent
|
172
172
|
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
173
|
-
# location`/instances
|
174
|
-
#
|
175
|
-
# is supported to list inventories across VMs.
|
173
|
+
# location`/instances/-` For ``project``, either `project-number` or `project-id`
|
174
|
+
# can be provided.
|
176
175
|
# @param [String] filter
|
177
176
|
# If provided, this field specifies the criteria that must be met by a `
|
178
177
|
# Inventory` API resource to be included in the response.
|
@@ -215,6 +214,99 @@ module Google
|
|
215
214
|
execute_or_queue_command(command, &block)
|
216
215
|
end
|
217
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
|
+
|
218
310
|
# Gets the vulnerability report for the specified VM instance. Only VMs with
|
219
311
|
# inventory data have vulnerability reports associated with them.
|
220
312
|
# @param [String] name
|
@@ -253,9 +345,8 @@ module Google
|
|
253
345
|
# List vulnerability reports for all VM instances in the specified zone.
|
254
346
|
# @param [String] parent
|
255
347
|
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
256
|
-
# location`/instances
|
257
|
-
#
|
258
|
-
# to list vulnerability reports across VMs.
|
348
|
+
# location`/instances/-` For ``project``, either `project-number` or `project-id`
|
349
|
+
# can be provided.
|
259
350
|
# @param [String] filter
|
260
351
|
# If provided, this field specifies the criteria that must be met by a `
|
261
352
|
# vulnerabilityReport` API resource to be included in the response.
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1alpha'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.7.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|