google-apis-osconfig_v1alpha 0.5.0 → 0.6.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: 325411589c3bc9f7f82c40927dee880f5c7626532811dd0c92479128f43e14d2
4
- data.tar.gz: 4b780e0b506b6a1585b92c3b4c8352de9067728f3a0095e224cb3b13206795af
3
+ metadata.gz: c09d73988e1f1501fae5cf78589694129b9e66036b7c65c8bc5e400fa9520642
4
+ data.tar.gz: 9ac61ac6a3dc1f901cc5b6549780a896575d5897092d380b947a3c6f76e78344
5
5
  SHA512:
6
- metadata.gz: 1555d635c87eae5f6546f2bf3d2ab55d8e31f82533ad750f6c54586405b59c430af38ff855770f56658925b0c263be258cb28bb5a0c5ab0c25bdc1ca83771b52
7
- data.tar.gz: 78408b93751d855e52aa75f60f46e67516da1105722d5c130a82d271c764939bc588695a8e5f550267da17f6490ab4e73ce2d749ba02cc9700523aca31c2fd32
6
+ metadata.gz: 8e530754b9f5d1b204c3f30055380ab128733fe8e246e662b66d94dd5a5e3595e1ea5806365dfece075ae3ac0e7587e0243407f138b4b0187371132a99eb34c4
7
+ data.tar.gz: 52170874ca8867f8381e57e1d9249ab05a60143e89af295bc5dbf10219b9edd92ab6f47701af6f65eafc47d98ec3f1a69d9fa8e63b400febe8a5f3ad432c38a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-osconfig_v1alpha
2
2
 
3
+ ### v0.6.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210821
6
+
3
7
  ### v0.5.0 (2021-08-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20210723
@@ -1046,7 +1046,15 @@ module Google
1046
1046
  # @return [String]
1047
1047
  attr_accessor :description
1048
1048
 
1049
- # Message to represent the filters to select VMs for an assignment
1049
+ # The etag for this OS policy assignment. If this is provided on update, it must
1050
+ # match the server's etag.
1051
+ # Corresponds to the JSON property `etag`
1052
+ # @return [String]
1053
+ attr_accessor :etag
1054
+
1055
+ # Filters to select target VMs for an assignment. If more than one filter
1056
+ # criteria is specified below, a VM will be selected if and only if it satisfies
1057
+ # all of them.
1050
1058
  # Corresponds to the JSON property `instanceFilter`
1051
1059
  # @return [Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter]
1052
1060
  attr_accessor :instance_filter
@@ -1107,6 +1115,7 @@ module Google
1107
1115
  @baseline = args[:baseline] if args.key?(:baseline)
1108
1116
  @deleted = args[:deleted] if args.key?(:deleted)
1109
1117
  @description = args[:description] if args.key?(:description)
1118
+ @etag = args[:etag] if args.key?(:etag)
1110
1119
  @instance_filter = args[:instance_filter] if args.key?(:instance_filter)
1111
1120
  @name = args[:name] if args.key?(:name)
1112
1121
  @os_policies = args[:os_policies] if args.key?(:os_policies)
@@ -1119,7 +1128,9 @@ module Google
1119
1128
  end
1120
1129
  end
1121
1130
 
1122
- # Message to represent the filters to select VMs for an assignment
1131
+ # Filters to select target VMs for an assignment. If more than one filter
1132
+ # criteria is specified below, a VM will be selected if and only if it satisfies
1133
+ # all of them.
1123
1134
  class OsPolicyAssignmentInstanceFilter
1124
1135
  include Google::Apis::Core::Hashable
1125
1136
 
@@ -1131,8 +1142,6 @@ module Google
1131
1142
 
1132
1143
  # List of label sets used for VM exclusion. If the list has more than one label
1133
1144
  # set, the VM is excluded if any of the label sets are applicable for the VM.
1134
- # This filter is applied last in the filtering chain and therefore a VM is
1135
- # guaranteed to be excluded if it satisfies one of the below label sets.
1136
1145
  # Corresponds to the JSON property `exclusionLabels`
1137
1146
  # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
1138
1147
  attr_accessor :exclusion_labels
@@ -1144,8 +1153,14 @@ module Google
1144
1153
  # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet>]
1145
1154
  attr_accessor :inclusion_labels
1146
1155
 
1147
- # A VM is included if it's OS short name matches with any of the values provided
1148
- # in this list.
1156
+ # List of inventories to select VMs. A VM is selected if its inventory data
1157
+ # matches at least one of the following inventories.
1158
+ # Corresponds to the JSON property `inventories`
1159
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory>]
1160
+ attr_accessor :inventories
1161
+
1162
+ # Deprecated. Use the `inventories` field instead. A VM is selected if it's OS
1163
+ # short name matches with any of the values provided in this list.
1149
1164
  # Corresponds to the JSON property `osShortNames`
1150
1165
  # @return [Array<String>]
1151
1166
  attr_accessor :os_short_names
@@ -1159,10 +1174,39 @@ module Google
1159
1174
  @all = args[:all] if args.key?(:all)
1160
1175
  @exclusion_labels = args[:exclusion_labels] if args.key?(:exclusion_labels)
1161
1176
  @inclusion_labels = args[:inclusion_labels] if args.key?(:inclusion_labels)
1177
+ @inventories = args[:inventories] if args.key?(:inventories)
1162
1178
  @os_short_names = args[:os_short_names] if args.key?(:os_short_names)
1163
1179
  end
1164
1180
  end
1165
1181
 
1182
+ # VM inventory details.
1183
+ class OsPolicyAssignmentInstanceFilterInventory
1184
+ include Google::Apis::Core::Hashable
1185
+
1186
+ # Required. The OS short name
1187
+ # Corresponds to the JSON property `osShortName`
1188
+ # @return [String]
1189
+ attr_accessor :os_short_name
1190
+
1191
+ # The OS version Prefix matches are supported if asterisk(*) is provided as the
1192
+ # last character. For example, to match all versions with a major version of `7`,
1193
+ # specify the following value for this field `7.*` An empty string matches all
1194
+ # OS versions.
1195
+ # Corresponds to the JSON property `osVersion`
1196
+ # @return [String]
1197
+ attr_accessor :os_version
1198
+
1199
+ def initialize(**args)
1200
+ update!(**args)
1201
+ end
1202
+
1203
+ # Update properties of this object
1204
+ def update!(**args)
1205
+ @os_short_name = args[:os_short_name] if args.key?(:os_short_name)
1206
+ @os_version = args[:os_version] if args.key?(:os_version)
1207
+ end
1208
+ end
1209
+
1166
1210
  # Message representing label set. * A label is a key value pair set for a VM. *
1167
1211
  # A LabelSet is a set of labels. * Labels within a LabelSet are ANDed. In other
1168
1212
  # words, a LabelSet is applicable for a VM only if it matches all the labels in
@@ -1263,8 +1307,35 @@ module Google
1263
1307
  end
1264
1308
  end
1265
1309
 
1266
- # The `OSFilter` is used to specify the OS filtering criteria for the resource
1267
- # group.
1310
+ # Filtering criteria to select VMs based on inventory details.
1311
+ class OsPolicyInventoryFilter
1312
+ include Google::Apis::Core::Hashable
1313
+
1314
+ # Required. The OS short name
1315
+ # Corresponds to the JSON property `osShortName`
1316
+ # @return [String]
1317
+ attr_accessor :os_short_name
1318
+
1319
+ # The OS version Prefix matches are supported if asterisk(*) is provided as the
1320
+ # last character. For example, to match all versions with a major version of `7`,
1321
+ # specify the following value for this field `7.*` An empty string matches all
1322
+ # OS versions.
1323
+ # Corresponds to the JSON property `osVersion`
1324
+ # @return [String]
1325
+ attr_accessor :os_version
1326
+
1327
+ def initialize(**args)
1328
+ update!(**args)
1329
+ end
1330
+
1331
+ # Update properties of this object
1332
+ def update!(**args)
1333
+ @os_short_name = args[:os_short_name] if args.key?(:os_short_name)
1334
+ @os_version = args[:os_version] if args.key?(:os_version)
1335
+ end
1336
+ end
1337
+
1338
+ # Filtering criteria to select VMs based on OS details.
1268
1339
  class OsPolicyOsFilter
1269
1340
  include Google::Apis::Core::Hashable
1270
1341
 
@@ -1698,8 +1769,18 @@ module Google
1698
1769
  class OsPolicyResourceGroup
1699
1770
  include Google::Apis::Core::Hashable
1700
1771
 
1701
- # The `OSFilter` is used to specify the OS filtering criteria for the resource
1702
- # group.
1772
+ # List of inventory filters for the resource group. The resources in this
1773
+ # resource group are applied to the target VM if it satisfies at least one of
1774
+ # the following inventory filters. For example, to apply this resource group to
1775
+ # VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for
1776
+ # the list with following values: inventory_filters[0].os_short_name='rhel' and
1777
+ # inventory_filters[1].os_short_name='centos' If the list is empty, this
1778
+ # resource group will be applied to the target VM unconditionally.
1779
+ # Corresponds to the JSON property `inventoryFilters`
1780
+ # @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter>]
1781
+ attr_accessor :inventory_filters
1782
+
1783
+ # Filtering criteria to select VMs based on OS details.
1703
1784
  # Corresponds to the JSON property `osFilter`
1704
1785
  # @return [Google::Apis::OsconfigV1alpha::OsPolicyOsFilter]
1705
1786
  attr_accessor :os_filter
@@ -1716,6 +1797,7 @@ module Google
1716
1797
 
1717
1798
  # Update properties of this object
1718
1799
  def update!(**args)
1800
+ @inventory_filters = args[:inventory_filters] if args.key?(:inventory_filters)
1719
1801
  @os_filter = args[:os_filter] if args.key?(:os_filter)
1720
1802
  @resources = args[:resources] if args.key?(:resources)
1721
1803
  end
@@ -2391,6 +2473,11 @@ module Google
2391
2473
  class VulnerabilityReportVulnerabilityDetailsReference
2392
2474
  include Google::Apis::Core::Hashable
2393
2475
 
2476
+ # The source of the reference e.g. NVD.
2477
+ # Corresponds to the JSON property `source`
2478
+ # @return [String]
2479
+ attr_accessor :source
2480
+
2394
2481
  # The url of the reference.
2395
2482
  # Corresponds to the JSON property `url`
2396
2483
  # @return [String]
@@ -2402,6 +2489,7 @@ module Google
2402
2489
 
2403
2490
  # Update properties of this object
2404
2491
  def update!(**args)
2492
+ @source = args[:source] if args.key?(:source)
2405
2493
  @url = args[:url] if args.key?(:url)
2406
2494
  end
2407
2495
  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.5.0"
19
+ GEM_VERSION = "0.6.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 = "20210723"
25
+ REVISION = "20210821"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class OsPolicyAssignmentInstanceFilterInventory
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class OsPolicyAssignmentLabelSet
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class OsPolicyInventoryFilter
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class OsPolicyOsFilter
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -641,6 +653,7 @@ module Google
641
653
  property :baseline, as: 'baseline'
642
654
  property :deleted, as: 'deleted'
643
655
  property :description, as: 'description'
656
+ property :etag, as: 'etag'
644
657
  property :instance_filter, as: 'instanceFilter', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilter::Representation
645
658
 
646
659
  property :name, as: 'name'
@@ -664,10 +677,20 @@ module Google
664
677
 
665
678
  collection :inclusion_labels, as: 'inclusionLabels', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentLabelSet::Representation
666
679
 
680
+ collection :inventories, as: 'inventories', class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory, decorator: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory::Representation
681
+
667
682
  collection :os_short_names, as: 'osShortNames'
668
683
  end
669
684
  end
670
685
 
686
+ class OsPolicyAssignmentInstanceFilterInventory
687
+ # @private
688
+ class Representation < Google::Apis::Core::JsonRepresentation
689
+ property :os_short_name, as: 'osShortName'
690
+ property :os_version, as: 'osVersion'
691
+ end
692
+ end
693
+
671
694
  class OsPolicyAssignmentLabelSet
672
695
  # @private
673
696
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -695,6 +718,14 @@ module Google
695
718
  end
696
719
  end
697
720
 
721
+ class OsPolicyInventoryFilter
722
+ # @private
723
+ class Representation < Google::Apis::Core::JsonRepresentation
724
+ property :os_short_name, as: 'osShortName'
725
+ property :os_version, as: 'osVersion'
726
+ end
727
+ end
728
+
698
729
  class OsPolicyOsFilter
699
730
  # @private
700
731
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -812,6 +843,8 @@ module Google
812
843
  class OsPolicyResourceGroup
813
844
  # @private
814
845
  class Representation < Google::Apis::Core::JsonRepresentation
846
+ collection :inventory_filters, as: 'inventoryFilters', class: Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter::Representation
847
+
815
848
  property :os_filter, as: 'osFilter', class: Google::Apis::OsconfigV1alpha::OsPolicyOsFilter, decorator: Google::Apis::OsconfigV1alpha::OsPolicyOsFilter::Representation
816
849
 
817
850
  collection :resources, as: 'resources', class: Google::Apis::OsconfigV1alpha::OsPolicyResource, decorator: Google::Apis::OsconfigV1alpha::OsPolicyResource::Representation
@@ -1008,6 +1041,7 @@ module Google
1008
1041
  class VulnerabilityReportVulnerabilityDetailsReference
1009
1042
  # @private
1010
1043
  class Representation < Google::Apis::Core::JsonRepresentation
1044
+ property :source, as: 'source'
1011
1045
  property :url, as: 'url'
1012
1046
  end
1013
1047
  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/`instance`` For ``project``, either `project-number` or `
174
- # project-id` can be provided. For ``instance``, only hyphen or dash character
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.
@@ -253,9 +252,8 @@ module Google
253
252
  # List vulnerability reports for all VM instances in the specified zone.
254
253
  # @param [String] parent
255
254
  # Required. The parent resource name. Format: `projects/`project`/locations/`
256
- # location`/instances/`instance`` For ``project``, either `project-number` or `
257
- # project-id` can be provided. For ``instance``, only `-` character is supported
258
- # to list vulnerability reports across VMs.
255
+ # location`/instances/-` For ``project``, either `project-number` or `project-id`
256
+ # can be provided.
259
257
  # @param [String] filter
260
258
  # If provided, this field specifies the criteria that must be met by a `
261
259
  # 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 Platform data
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.5.0
4
+ version: 0.6.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-08-02 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.6.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: []