google-apis-osconfig_v1alpha 0.9.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f140438392fee97ac5f1a910e08936d10f3edfe5a8b12863151e7cd2fc0d944e
4
- data.tar.gz: 320f63aa0c6785f65a19fda20bd99d393cfa8ce397ca1fea3c82a6e5f27b278b
3
+ metadata.gz: 40e8fafd0e17b6e467e5af227dfa13d2f9030964f982cccee95327389b706cee
4
+ data.tar.gz: 036cdcd004cfe432652f1743297e636a10beeffbbd4477728a4b79814bb5868f
5
5
  SHA512:
6
- metadata.gz: afc8d212d572853c038aa3ea87e9b49fbb4d12e763773f96e7c21ebeee24ea2d9c8547360efeadbfa4f3db7570ecd99628485b869ef3474ec0455720cdd83f58
7
- data.tar.gz: f2d8515825e9ec6a233bcb953a73b579601ee625b5f9e0570af9f0ab24e05527c418519728a22aee638b374e2e983589954aedc24baa094cb8254b03178703fd
6
+ metadata.gz: 806cff104b7e4434d72d77b2abc0382b7dca58c28547b8cc53dc29c8e75c32086dd66ade491acb0f00dc37ef6b26389bc8d15f0be5db223c110c63849c1ce6ff
7
+ data.tar.gz: ef11ac74ce8ddb89bea1fcfdbcd22d6c94f24c060dd29f97e0ef801ce944d7cda5a3f0bc56c3006e394d790df6fe1aa3bea2417c3814b50c04de112bed8e3fe5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1alpha
2
2
 
3
+ ### v0.13.0 (2022-02-16)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.12.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.11.0 (2021-11-17)
13
+
14
+ * Regenerated from discovery document revision 20211106
15
+
16
+ ### v0.10.0 (2021-11-06)
17
+
18
+ * Regenerated from discovery document revision 20211029
19
+
3
20
  ### v0.9.0 (2021-10-23)
4
21
 
5
22
  * Regenerated from discovery document revision 20211018
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/osconfig_v1alpha"
51
51
  client = Google::Apis::OsconfigV1alpha::OSConfigService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -131,10 +131,10 @@ module Google
131
131
  # day and time zone are either specified elsewhere or are insignificant. The
132
132
  # date is relative to the Gregorian Calendar. This can represent one of the
133
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`.
134
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
135
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
136
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
137
+ # DateTime * google.protobuf.Timestamp
138
138
  class Date
139
139
  include Google::Apis::Core::Hashable
140
140
 
@@ -212,6 +212,52 @@ module Google
212
212
  end
213
213
  end
214
214
 
215
+ # OS policy assignment operation metadata provided by OS policy assignment API
216
+ # methods that return long running operations.
217
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
218
+ include Google::Apis::Core::Hashable
219
+
220
+ # The OS policy assignment API method.
221
+ # Corresponds to the JSON property `apiMethod`
222
+ # @return [String]
223
+ attr_accessor :api_method
224
+
225
+ # Reference to the `OSPolicyAssignment` API resource. Format: `projects/`
226
+ # project_number`/locations/`location`/osPolicyAssignments/`
227
+ # os_policy_assignment_id@revision_id``
228
+ # Corresponds to the JSON property `osPolicyAssignment`
229
+ # @return [String]
230
+ attr_accessor :os_policy_assignment
231
+
232
+ # Rollout start time
233
+ # Corresponds to the JSON property `rolloutStartTime`
234
+ # @return [String]
235
+ attr_accessor :rollout_start_time
236
+
237
+ # State of the rollout
238
+ # Corresponds to the JSON property `rolloutState`
239
+ # @return [String]
240
+ attr_accessor :rollout_state
241
+
242
+ # Rollout update time
243
+ # Corresponds to the JSON property `rolloutUpdateTime`
244
+ # @return [String]
245
+ attr_accessor :rollout_update_time
246
+
247
+ def initialize(**args)
248
+ update!(**args)
249
+ end
250
+
251
+ # Update properties of this object
252
+ def update!(**args)
253
+ @api_method = args[:api_method] if args.key?(:api_method)
254
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
255
+ @rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
256
+ @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
257
+ @rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
258
+ end
259
+ end
260
+
215
261
  # This API resource represents the OS policies compliance data for a Compute
216
262
  # Engine virtual machine (VM) instance at a given point in time. A Compute
217
263
  # Engine VM can have multiple OS policy assignments, and each assignment can
@@ -629,10 +675,10 @@ module Google
629
675
  # day and time zone are either specified elsewhere or are insignificant. The
630
676
  # date is relative to the Gregorian Calendar. This can represent one of the
631
677
  # following: * A full date, with non-zero year, month, and day values * A month
632
- # and day value, with a zero year, such as an anniversary * A year on its own,
633
- # with zero month and day values * A year and month value, with a zero day, such
634
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
635
- # google.protobuf.Timestamp`.
678
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
679
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
680
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
681
+ # DateTime * google.protobuf.Timestamp
636
682
  # Corresponds to the JSON property `installDate`
637
683
  # @return [Google::Apis::OsconfigV1alpha::Date]
638
684
  attr_accessor :install_date
@@ -2630,6 +2676,11 @@ module Google
2630
2676
  # @return [Array<String>]
2631
2677
  attr_accessor :installed_inventory_item_ids
2632
2678
 
2679
+ # List of items affected by the vulnerability.
2680
+ # Corresponds to the JSON property `items`
2681
+ # @return [Array<Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityItem>]
2682
+ attr_accessor :items
2683
+
2633
2684
  # The timestamp for when the vulnerability was last modified.
2634
2685
  # Corresponds to the JSON property `updateTime`
2635
2686
  # @return [String]
@@ -2645,6 +2696,7 @@ module Google
2645
2696
  @create_time = args[:create_time] if args.key?(:create_time)
2646
2697
  @details = args[:details] if args.key?(:details)
2647
2698
  @installed_inventory_item_ids = args[:installed_inventory_item_ids] if args.key?(:installed_inventory_item_ids)
2699
+ @items = args[:items] if args.key?(:items)
2648
2700
  @update_time = args[:update_time] if args.key?(:update_time)
2649
2701
  end
2650
2702
  end
@@ -2726,6 +2778,53 @@ module Google
2726
2778
  @url = args[:url] if args.key?(:url)
2727
2779
  end
2728
2780
  end
2781
+
2782
+ # OS inventory item that is affected by a vulnerability or fixed as a result of
2783
+ # a vulnerability.
2784
+ class VulnerabilityReportVulnerabilityItem
2785
+ include Google::Apis::Core::Hashable
2786
+
2787
+ # Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the
2788
+ # vulnerability report was not updated after the VM inventory update, these
2789
+ # values might not display in VM inventory. If there is no available fix, the
2790
+ # field is empty. The `inventory_item` value specifies the latest `
2791
+ # SoftwarePackage` available to the VM that fixes the vulnerability.
2792
+ # Corresponds to the JSON property `availableInventoryItemId`
2793
+ # @return [String]
2794
+ attr_accessor :available_inventory_item_id
2795
+
2796
+ # The recommended [CPE URI](https://cpe.mitre.org/specification/) update that
2797
+ # contains a fix for this vulnerability.
2798
+ # Corresponds to the JSON property `fixedCpeUri`
2799
+ # @return [String]
2800
+ attr_accessor :fixed_cpe_uri
2801
+
2802
+ # Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field
2803
+ # displays the inventory items affected by this vulnerability. If the
2804
+ # vulnerability report was not updated after the VM inventory update, these
2805
+ # values might not display in VM inventory. For some operating systems, this
2806
+ # field might be empty.
2807
+ # Corresponds to the JSON property `installedInventoryItemId`
2808
+ # @return [String]
2809
+ attr_accessor :installed_inventory_item_id
2810
+
2811
+ # The upstream OS patch, packages or KB that fixes the vulnerability.
2812
+ # Corresponds to the JSON property `upstreamFix`
2813
+ # @return [String]
2814
+ attr_accessor :upstream_fix
2815
+
2816
+ def initialize(**args)
2817
+ update!(**args)
2818
+ end
2819
+
2820
+ # Update properties of this object
2821
+ def update!(**args)
2822
+ @available_inventory_item_id = args[:available_inventory_item_id] if args.key?(:available_inventory_item_id)
2823
+ @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
2824
+ @installed_inventory_item_id = args[:installed_inventory_item_id] if args.key?(:installed_inventory_item_id)
2825
+ @upstream_fix = args[:upstream_fix] if args.key?(:upstream_fix)
2826
+ end
2827
+ end
2729
2828
  end
2730
2829
  end
2731
2830
  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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211018"
25
+ REVISION = "20220205"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class InstanceOsPoliciesCompliance
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -424,6 +430,12 @@ module Google
424
430
  include Google::Apis::Core::JsonObjectSupport
425
431
  end
426
432
 
433
+ class VulnerabilityReportVulnerabilityItem
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
427
439
  class CvsSv3
428
440
  # @private
429
441
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -470,6 +482,17 @@ module Google
470
482
  end
471
483
  end
472
484
 
485
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
486
+ # @private
487
+ class Representation < Google::Apis::Core::JsonRepresentation
488
+ property :api_method, as: 'apiMethod'
489
+ property :os_policy_assignment, as: 'osPolicyAssignment'
490
+ property :rollout_start_time, as: 'rolloutStartTime'
491
+ property :rollout_state, as: 'rolloutState'
492
+ property :rollout_update_time, as: 'rolloutUpdateTime'
493
+ end
494
+ end
495
+
473
496
  class InstanceOsPoliciesCompliance
474
497
  # @private
475
498
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1117,6 +1140,8 @@ module Google
1117
1140
  property :details, as: 'details', class: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetails::Representation
1118
1141
 
1119
1142
  collection :installed_inventory_item_ids, as: 'installedInventoryItemIds'
1143
+ collection :items, as: 'items', class: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityItem, decorator: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityItem::Representation
1144
+
1120
1145
  property :update_time, as: 'updateTime'
1121
1146
  end
1122
1147
  end
@@ -1142,6 +1167,16 @@ module Google
1142
1167
  property :url, as: 'url'
1143
1168
  end
1144
1169
  end
1170
+
1171
+ class VulnerabilityReportVulnerabilityItem
1172
+ # @private
1173
+ class Representation < Google::Apis::Core::JsonRepresentation
1174
+ property :available_inventory_item_id, as: 'availableInventoryItemId'
1175
+ property :fixed_cpe_uri, as: 'fixedCpeUri'
1176
+ property :installed_inventory_item_id, as: 'installedInventoryItemId'
1177
+ property :upstream_fix, as: 'upstreamFix'
1178
+ end
1179
+ end
1145
1180
  end
1146
1181
  end
1147
1182
  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.9.0
4
+ version: 0.13.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-10-27 00:00:00.000000000 Z
11
+ date: 2022-02-21 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/main/generated/google-apis-osconfig_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1alpha/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for OS Config API V1alpha