google-apis-osconfig_v1 0.8.0 → 0.9.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: f3ea1f466ec5ee200384e0e98cc3250b9800675df320f055257af03439eb8489
4
- data.tar.gz: c4e7f7357f8d79c8165496409413ee6ec9affc487d1c2effe4b7c56ad9e1c2cc
3
+ metadata.gz: c438462f5f21531b9b957bf3a8dc156960a391388c0ef8cb92c34849d796e9d7
4
+ data.tar.gz: dc004248036a464632fb6dba202cfeb8cef5d226bdb46d36d96d9df0bb93508e
5
5
  SHA512:
6
- metadata.gz: cddff18d4ea73e5b3c0355f08e86e0c6d08fe982ca9cc3335ce557e0627a168c0465ba26b0bd1f5807c964a237f34e9282ff0402091b00c4ac7235d85b565f3a
7
- data.tar.gz: 21566f8b69d92e1115f1aa4dc61a9bb9e20cb613e7a0865e580074e598a5c098971173496f68a9f24183a3d87075015255427187fb4409770f2bf1f225312cc1
6
+ metadata.gz: 3b8305c88bd05bba4193b05c30f965b9ac958f14f976b24a46a430db58b204af817a05aa84e34c4746c379076dc61b018cb58ecf581492548cc8dedeb9b8ed35
7
+ data.tar.gz: bb99fdab5522140d7d315c22d1d2149952aaaa5cf1652391bc56fa7e58f11a2a2007528bcf3007fb5eeb348be723ca2834a3a907af737d58abebc9b5d329463b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.9.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210816
6
+
3
7
  ### v0.8.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -57,6 +57,98 @@ module Google
57
57
  end
58
58
  end
59
59
 
60
+ # Common Vulnerability Scoring System version 3. For details, see https://www.
61
+ # first.org/cvss/specification-document
62
+ class CvsSv3
63
+ include Google::Apis::Core::Hashable
64
+
65
+ # This metric describes the conditions beyond the attacker's control that must
66
+ # exist in order to exploit the vulnerability.
67
+ # Corresponds to the JSON property `attackComplexity`
68
+ # @return [String]
69
+ attr_accessor :attack_complexity
70
+
71
+ # This metric reflects the context by which vulnerability exploitation is
72
+ # possible.
73
+ # Corresponds to the JSON property `attackVector`
74
+ # @return [String]
75
+ attr_accessor :attack_vector
76
+
77
+ # This metric measures the impact to the availability of the impacted component
78
+ # resulting from a successfully exploited vulnerability.
79
+ # Corresponds to the JSON property `availabilityImpact`
80
+ # @return [String]
81
+ attr_accessor :availability_impact
82
+
83
+ # The base score is a function of the base metric scores. https://www.first.org/
84
+ # cvss/specification-document#Base-Metrics
85
+ # Corresponds to the JSON property `baseScore`
86
+ # @return [Float]
87
+ attr_accessor :base_score
88
+
89
+ # This metric measures the impact to the confidentiality of the information
90
+ # resources managed by a software component due to a successfully exploited
91
+ # vulnerability.
92
+ # Corresponds to the JSON property `confidentialityImpact`
93
+ # @return [String]
94
+ attr_accessor :confidentiality_impact
95
+
96
+ # The Exploitability sub-score equation is derived from the Base Exploitability
97
+ # metrics. https://www.first.org/cvss/specification-document#2-1-Exploitability-
98
+ # Metrics
99
+ # Corresponds to the JSON property `exploitabilityScore`
100
+ # @return [Float]
101
+ attr_accessor :exploitability_score
102
+
103
+ # The Impact sub-score equation is derived from the Base Impact metrics.
104
+ # Corresponds to the JSON property `impactScore`
105
+ # @return [Float]
106
+ attr_accessor :impact_score
107
+
108
+ # This metric measures the impact to integrity of a successfully exploited
109
+ # vulnerability.
110
+ # Corresponds to the JSON property `integrityImpact`
111
+ # @return [String]
112
+ attr_accessor :integrity_impact
113
+
114
+ # This metric describes the level of privileges an attacker must possess before
115
+ # successfully exploiting the vulnerability.
116
+ # Corresponds to the JSON property `privilegesRequired`
117
+ # @return [String]
118
+ attr_accessor :privileges_required
119
+
120
+ # The Scope metric captures whether a vulnerability in one vulnerable component
121
+ # impacts resources in components beyond its security scope.
122
+ # Corresponds to the JSON property `scope`
123
+ # @return [String]
124
+ attr_accessor :scope
125
+
126
+ # This metric captures the requirement for a human user, other than the attacker,
127
+ # to participate in the successful compromise of the vulnerable component.
128
+ # Corresponds to the JSON property `userInteraction`
129
+ # @return [String]
130
+ attr_accessor :user_interaction
131
+
132
+ def initialize(**args)
133
+ update!(**args)
134
+ end
135
+
136
+ # Update properties of this object
137
+ def update!(**args)
138
+ @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
139
+ @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
140
+ @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
141
+ @base_score = args[:base_score] if args.key?(:base_score)
142
+ @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
143
+ @exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
144
+ @impact_score = args[:impact_score] if args.key?(:impact_score)
145
+ @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
146
+ @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
147
+ @scope = args[:scope] if args.key?(:scope)
148
+ @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
149
+ end
150
+ end
151
+
60
152
  # Message for canceling a patch job.
61
153
  class CancelPatchJobRequest
62
154
  include Google::Apis::Core::Hashable
@@ -286,7 +378,11 @@ module Google
286
378
  end
287
379
  end
288
380
 
289
- # The inventory details of a VM.
381
+ # This API resource represents the available inventory data for a Compute Engine
382
+ # virtual machine (VM) instance at a given point in time. You can use this API
383
+ # resource to determine the inventory data of your VM. For more information, see
384
+ # [Information provided by OS inventory management](https://cloud.google.com/
385
+ # compute/docs/instances/os-inventory-management#data-collected).
290
386
  class Inventory
291
387
  include Google::Apis::Core::Hashable
292
388
 
@@ -297,11 +393,22 @@ module Google
297
393
  # @return [Hash<String,Google::Apis::OsconfigV1::InventoryItem>]
298
394
  attr_accessor :items
299
395
 
396
+ # Output only. The `Inventory` API resource name. Format: `projects/`
397
+ # project_number`/locations/`location`/instances/`instance_id`/inventory`
398
+ # Corresponds to the JSON property `name`
399
+ # @return [String]
400
+ attr_accessor :name
401
+
300
402
  # Operating system information for the VM.
301
403
  # Corresponds to the JSON property `osInfo`
302
404
  # @return [Google::Apis::OsconfigV1::InventoryOsInfo]
303
405
  attr_accessor :os_info
304
406
 
407
+ # Output only. Timestamp of the last reported inventory for the VM.
408
+ # Corresponds to the JSON property `updateTime`
409
+ # @return [String]
410
+ attr_accessor :update_time
411
+
305
412
  def initialize(**args)
306
413
  update!(**args)
307
414
  end
@@ -309,7 +416,9 @@ module Google
309
416
  # Update properties of this object
310
417
  def update!(**args)
311
418
  @items = args[:items] if args.key?(:items)
419
+ @name = args[:name] if args.key?(:name)
312
420
  @os_info = args[:os_info] if args.key?(:os_info)
421
+ @update_time = args[:update_time] if args.key?(:update_time)
313
422
  end
314
423
  end
315
424
 
@@ -705,28 +814,29 @@ module Google
705
814
  end
706
815
  end
707
816
 
708
- # The response message for Operations.ListOperations.
709
- class ListOperationsResponse
817
+ # A response message for listing inventory data for all VMs in a specified
818
+ # location.
819
+ class ListInventoriesResponse
710
820
  include Google::Apis::Core::Hashable
711
821
 
712
- # The standard List next-page token.
822
+ # List of inventory objects.
823
+ # Corresponds to the JSON property `inventories`
824
+ # @return [Array<Google::Apis::OsconfigV1::Inventory>]
825
+ attr_accessor :inventories
826
+
827
+ # The pagination token to retrieve the next page of inventory objects.
713
828
  # Corresponds to the JSON property `nextPageToken`
714
829
  # @return [String]
715
830
  attr_accessor :next_page_token
716
831
 
717
- # A list of operations that matches the specified filter in the request.
718
- # Corresponds to the JSON property `operations`
719
- # @return [Array<Google::Apis::OsconfigV1::Operation>]
720
- attr_accessor :operations
721
-
722
832
  def initialize(**args)
723
833
  update!(**args)
724
834
  end
725
835
 
726
836
  # Update properties of this object
727
837
  def update!(**args)
838
+ @inventories = args[:inventories] if args.key?(:inventories)
728
839
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
729
- @operations = args[:operations] if args.key?(:operations)
730
840
  end
731
841
  end
732
842
 
@@ -805,6 +915,32 @@ module Google
805
915
  end
806
916
  end
807
917
 
918
+ # A response message for listing vulnerability reports for all VM instances in
919
+ # the specified location.
920
+ class ListVulnerabilityReportsResponse
921
+ include Google::Apis::Core::Hashable
922
+
923
+ # The pagination token to retrieve the next page of vulnerabilityReports object.
924
+ # Corresponds to the JSON property `nextPageToken`
925
+ # @return [String]
926
+ attr_accessor :next_page_token
927
+
928
+ # List of vulnerabilityReport objects.
929
+ # Corresponds to the JSON property `vulnerabilityReports`
930
+ # @return [Array<Google::Apis::OsconfigV1::VulnerabilityReport>]
931
+ attr_accessor :vulnerability_reports
932
+
933
+ def initialize(**args)
934
+ update!(**args)
935
+ end
936
+
937
+ # Update properties of this object
938
+ def update!(**args)
939
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
940
+ @vulnerability_reports = args[:vulnerability_reports] if args.key?(:vulnerability_reports)
941
+ end
942
+ end
943
+
808
944
  # Represents a monthly schedule. An example of a valid monthly schedule is "on
809
945
  # the third Tuesday of the month" or "on the 15th of the month".
810
946
  class MonthlySchedule
@@ -900,68 +1036,6 @@ module Google
900
1036
  end
901
1037
  end
902
1038
 
903
- # This resource represents a long-running operation that is the result of a
904
- # network API call.
905
- class Operation
906
- include Google::Apis::Core::Hashable
907
-
908
- # If the value is `false`, it means the operation is still in progress. If `true`
909
- # , the operation is completed, and either `error` or `response` is available.
910
- # Corresponds to the JSON property `done`
911
- # @return [Boolean]
912
- attr_accessor :done
913
- alias_method :done?, :done
914
-
915
- # The `Status` type defines a logical error model that is suitable for different
916
- # programming environments, including REST APIs and RPC APIs. It is used by [
917
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
918
- # data: error code, error message, and error details. You can find out more
919
- # about this error model and how to work with it in the [API Design Guide](https:
920
- # //cloud.google.com/apis/design/errors).
921
- # Corresponds to the JSON property `error`
922
- # @return [Google::Apis::OsconfigV1::Status]
923
- attr_accessor :error
924
-
925
- # Service-specific metadata associated with the operation. It typically contains
926
- # progress information and common metadata such as create time. Some services
927
- # might not provide such metadata. Any method that returns a long-running
928
- # operation should document the metadata type, if any.
929
- # Corresponds to the JSON property `metadata`
930
- # @return [Hash<String,Object>]
931
- attr_accessor :metadata
932
-
933
- # The server-assigned name, which is only unique within the same service that
934
- # originally returns it. If you use the default HTTP mapping, the `name` should
935
- # be a resource name ending with `operations/`unique_id``.
936
- # Corresponds to the JSON property `name`
937
- # @return [String]
938
- attr_accessor :name
939
-
940
- # The normal response of the operation in case of success. If the original
941
- # method returns no data on success, such as `Delete`, the response is `google.
942
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
943
- # the response should be the resource. For other methods, the response should
944
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
945
- # example, if the original method name is `TakeSnapshot()`, the inferred
946
- # response type is `TakeSnapshotResponse`.
947
- # Corresponds to the JSON property `response`
948
- # @return [Hash<String,Object>]
949
- attr_accessor :response
950
-
951
- def initialize(**args)
952
- update!(**args)
953
- end
954
-
955
- # Update properties of this object
956
- def update!(**args)
957
- @done = args[:done] if args.key?(:done)
958
- @error = args[:error] if args.key?(:error)
959
- @metadata = args[:metadata] if args.key?(:metadata)
960
- @name = args[:name] if args.key?(:name)
961
- @response = args[:response] if args.key?(:response)
962
- end
963
- end
964
-
965
1039
  # Patch configuration specifications. Contains details on how to apply the patch(
966
1040
  # es) to a VM instance.
967
1041
  class PatchConfig
@@ -1576,45 +1650,6 @@ module Google
1576
1650
  end
1577
1651
  end
1578
1652
 
1579
- # The `Status` type defines a logical error model that is suitable for different
1580
- # programming environments, including REST APIs and RPC APIs. It is used by [
1581
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1582
- # data: error code, error message, and error details. You can find out more
1583
- # about this error model and how to work with it in the [API Design Guide](https:
1584
- # //cloud.google.com/apis/design/errors).
1585
- class Status
1586
- include Google::Apis::Core::Hashable
1587
-
1588
- # The status code, which should be an enum value of google.rpc.Code.
1589
- # Corresponds to the JSON property `code`
1590
- # @return [Fixnum]
1591
- attr_accessor :code
1592
-
1593
- # A list of messages that carry the error details. There is a common set of
1594
- # message types for APIs to use.
1595
- # Corresponds to the JSON property `details`
1596
- # @return [Array<Hash<String,Object>>]
1597
- attr_accessor :details
1598
-
1599
- # A developer-facing error message, which should be in English. Any user-facing
1600
- # error message should be localized and sent in the google.rpc.Status.details
1601
- # field, or localized by the client.
1602
- # Corresponds to the JSON property `message`
1603
- # @return [String]
1604
- attr_accessor :message
1605
-
1606
- def initialize(**args)
1607
- update!(**args)
1608
- end
1609
-
1610
- # Update properties of this object
1611
- def update!(**args)
1612
- @code = args[:code] if args.key?(:code)
1613
- @details = args[:details] if args.key?(:details)
1614
- @message = args[:message] if args.key?(:message)
1615
- end
1616
- end
1617
-
1618
1653
  # Represents a time of day. The date and time zone are either not significant or
1619
1654
  # are specified elsewhere. An API may choose to allow leap seconds. Related
1620
1655
  # types are google.type.Date and `google.protobuf.Timestamp`.
@@ -1682,6 +1717,173 @@ module Google
1682
1717
  end
1683
1718
  end
1684
1719
 
1720
+ # This API resource represents the vulnerability report for a specified Compute
1721
+ # Engine virtual machine (VM) instance at a given point in time. For more
1722
+ # information, see [Vulnerability reports](https://cloud.google.com/compute/docs/
1723
+ # instances/os-inventory-management#vulnerability-reports).
1724
+ class VulnerabilityReport
1725
+ include Google::Apis::Core::Hashable
1726
+
1727
+ # Output only. The `vulnerabilityReport` API resource name. Format: `projects/`
1728
+ # project_number`/locations/`location`/instances/`instance_id`/
1729
+ # vulnerabilityReport`
1730
+ # Corresponds to the JSON property `name`
1731
+ # @return [String]
1732
+ attr_accessor :name
1733
+
1734
+ # Output only. The timestamp for when the last vulnerability report was
1735
+ # generated for the VM.
1736
+ # Corresponds to the JSON property `updateTime`
1737
+ # @return [String]
1738
+ attr_accessor :update_time
1739
+
1740
+ # Output only. List of vulnerabilities affecting the VM.
1741
+ # Corresponds to the JSON property `vulnerabilities`
1742
+ # @return [Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerability>]
1743
+ attr_accessor :vulnerabilities
1744
+
1745
+ def initialize(**args)
1746
+ update!(**args)
1747
+ end
1748
+
1749
+ # Update properties of this object
1750
+ def update!(**args)
1751
+ @name = args[:name] if args.key?(:name)
1752
+ @update_time = args[:update_time] if args.key?(:update_time)
1753
+ @vulnerabilities = args[:vulnerabilities] if args.key?(:vulnerabilities)
1754
+ end
1755
+ end
1756
+
1757
+ # A vulnerability affecting the VM instance.
1758
+ class VulnerabilityReportVulnerability
1759
+ include Google::Apis::Core::Hashable
1760
+
1761
+ # Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the
1762
+ # vulnerability report was not updated after the VM inventory update, these
1763
+ # values might not display in VM inventory. If there is no available fix, the
1764
+ # field is empty. The `inventory_item` value specifies the latest `
1765
+ # SoftwarePackage` available to the VM that fixes the vulnerability.
1766
+ # Corresponds to the JSON property `availableInventoryItemIds`
1767
+ # @return [Array<String>]
1768
+ attr_accessor :available_inventory_item_ids
1769
+
1770
+ # The timestamp for when the vulnerability was first detected.
1771
+ # Corresponds to the JSON property `createTime`
1772
+ # @return [String]
1773
+ attr_accessor :create_time
1774
+
1775
+ # Contains metadata information for the vulnerability. This information is
1776
+ # collected from the upstream feed of the operating system.
1777
+ # Corresponds to the JSON property `details`
1778
+ # @return [Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails]
1779
+ attr_accessor :details
1780
+
1781
+ # Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field
1782
+ # displays the inventory items affected by this vulnerability. If the
1783
+ # vulnerability report was not updated after the VM inventory update, these
1784
+ # values might not display in VM inventory. For some distros, this field may be
1785
+ # empty.
1786
+ # Corresponds to the JSON property `installedInventoryItemIds`
1787
+ # @return [Array<String>]
1788
+ attr_accessor :installed_inventory_item_ids
1789
+
1790
+ # The timestamp for when the vulnerability was last modified.
1791
+ # Corresponds to the JSON property `updateTime`
1792
+ # @return [String]
1793
+ attr_accessor :update_time
1794
+
1795
+ def initialize(**args)
1796
+ update!(**args)
1797
+ end
1798
+
1799
+ # Update properties of this object
1800
+ def update!(**args)
1801
+ @available_inventory_item_ids = args[:available_inventory_item_ids] if args.key?(:available_inventory_item_ids)
1802
+ @create_time = args[:create_time] if args.key?(:create_time)
1803
+ @details = args[:details] if args.key?(:details)
1804
+ @installed_inventory_item_ids = args[:installed_inventory_item_ids] if args.key?(:installed_inventory_item_ids)
1805
+ @update_time = args[:update_time] if args.key?(:update_time)
1806
+ end
1807
+ end
1808
+
1809
+ # Contains metadata information for the vulnerability. This information is
1810
+ # collected from the upstream feed of the operating system.
1811
+ class VulnerabilityReportVulnerabilityDetails
1812
+ include Google::Apis::Core::Hashable
1813
+
1814
+ # The CVE of the vulnerability. CVE cannot be empty and the combination of
1815
+ # should be unique across vulnerabilities for a VM.
1816
+ # Corresponds to the JSON property `cve`
1817
+ # @return [String]
1818
+ attr_accessor :cve
1819
+
1820
+ # The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10
1821
+ # where 0 indicates low severity and 10 indicates high severity.
1822
+ # Corresponds to the JSON property `cvssV2Score`
1823
+ # @return [Float]
1824
+ attr_accessor :cvss_v2_score
1825
+
1826
+ # Common Vulnerability Scoring System version 3. For details, see https://www.
1827
+ # first.org/cvss/specification-document
1828
+ # Corresponds to the JSON property `cvssV3`
1829
+ # @return [Google::Apis::OsconfigV1::CvsSv3]
1830
+ attr_accessor :cvss_v3
1831
+
1832
+ # The note or description describing the vulnerability from the distro.
1833
+ # Corresponds to the JSON property `description`
1834
+ # @return [String]
1835
+ attr_accessor :description
1836
+
1837
+ # Corresponds to the references attached to the `VulnerabilityDetails`.
1838
+ # Corresponds to the JSON property `references`
1839
+ # @return [Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference>]
1840
+ attr_accessor :references
1841
+
1842
+ # Assigned severity/impact ranking from the distro.
1843
+ # Corresponds to the JSON property `severity`
1844
+ # @return [String]
1845
+ attr_accessor :severity
1846
+
1847
+ def initialize(**args)
1848
+ update!(**args)
1849
+ end
1850
+
1851
+ # Update properties of this object
1852
+ def update!(**args)
1853
+ @cve = args[:cve] if args.key?(:cve)
1854
+ @cvss_v2_score = args[:cvss_v2_score] if args.key?(:cvss_v2_score)
1855
+ @cvss_v3 = args[:cvss_v3] if args.key?(:cvss_v3)
1856
+ @description = args[:description] if args.key?(:description)
1857
+ @references = args[:references] if args.key?(:references)
1858
+ @severity = args[:severity] if args.key?(:severity)
1859
+ end
1860
+ end
1861
+
1862
+ # A reference for this vulnerability.
1863
+ class VulnerabilityReportVulnerabilityDetailsReference
1864
+ include Google::Apis::Core::Hashable
1865
+
1866
+ # The source of the reference e.g. NVD.
1867
+ # Corresponds to the JSON property `source`
1868
+ # @return [String]
1869
+ attr_accessor :source
1870
+
1871
+ # The url of the reference.
1872
+ # Corresponds to the JSON property `url`
1873
+ # @return [String]
1874
+ attr_accessor :url
1875
+
1876
+ def initialize(**args)
1877
+ update!(**args)
1878
+ end
1879
+
1880
+ # Update properties of this object
1881
+ def update!(**args)
1882
+ @source = args[:source] if args.key?(:source)
1883
+ @url = args[:url] if args.key?(:url)
1884
+ end
1885
+ end
1886
+
1685
1887
  # Represents one week day in a month. An example is "the 4th Sunday".
1686
1888
  class WeekDayOfMonth
1687
1889
  include Google::Apis::Core::Hashable
@@ -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.8.0"
19
+ GEM_VERSION = "0.9.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 = "20210427"
25
+ REVISION = "20210816"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class CvsSv3
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class CancelPatchJobRequest
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -130,7 +136,7 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
133
- class ListOperationsResponse
139
+ class ListInventoriesResponse
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
136
142
  include Google::Apis::Core::JsonObjectSupport
@@ -154,25 +160,25 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
157
- class MonthlySchedule
163
+ class ListVulnerabilityReportsResponse
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
160
166
  include Google::Apis::Core::JsonObjectSupport
161
167
  end
162
168
 
163
- class OsPolicyAssignmentOperationMetadata
169
+ class MonthlySchedule
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
166
172
  include Google::Apis::Core::JsonObjectSupport
167
173
  end
168
174
 
169
- class OneTimeSchedule
175
+ class OsPolicyAssignmentOperationMetadata
170
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
177
 
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
175
- class Operation
181
+ class OneTimeSchedule
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
178
184
  include Google::Apis::Core::JsonObjectSupport
@@ -232,19 +238,37 @@ module Google
232
238
  include Google::Apis::Core::JsonObjectSupport
233
239
  end
234
240
 
235
- class Status
241
+ class TimeOfDay
236
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
243
 
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
241
- class TimeOfDay
247
+ class TimeZone
242
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
249
 
244
250
  include Google::Apis::Core::JsonObjectSupport
245
251
  end
246
252
 
247
- class TimeZone
253
+ class VulnerabilityReport
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class VulnerabilityReportVulnerability
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class VulnerabilityReportVulnerabilityDetails
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class VulnerabilityReportVulnerabilityDetailsReference
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
250
274
  include Google::Apis::Core::JsonObjectSupport
@@ -289,6 +313,23 @@ module Google
289
313
  end
290
314
  end
291
315
 
316
+ class CvsSv3
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :attack_complexity, as: 'attackComplexity'
320
+ property :attack_vector, as: 'attackVector'
321
+ property :availability_impact, as: 'availabilityImpact'
322
+ property :base_score, as: 'baseScore'
323
+ property :confidentiality_impact, as: 'confidentialityImpact'
324
+ property :exploitability_score, as: 'exploitabilityScore'
325
+ property :impact_score, as: 'impactScore'
326
+ property :integrity_impact, as: 'integrityImpact'
327
+ property :privileges_required, as: 'privilegesRequired'
328
+ property :scope, as: 'scope'
329
+ property :user_interaction, as: 'userInteraction'
330
+ end
331
+ end
332
+
292
333
  class CancelPatchJobRequest
293
334
  # @private
294
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -366,8 +407,10 @@ module Google
366
407
  class Representation < Google::Apis::Core::JsonRepresentation
367
408
  hash :items, as: 'items', class: Google::Apis::OsconfigV1::InventoryItem, decorator: Google::Apis::OsconfigV1::InventoryItem::Representation
368
409
 
410
+ property :name, as: 'name'
369
411
  property :os_info, as: 'osInfo', class: Google::Apis::OsconfigV1::InventoryOsInfo, decorator: Google::Apis::OsconfigV1::InventoryOsInfo::Representation
370
412
 
413
+ property :update_time, as: 'updateTime'
371
414
  end
372
415
  end
373
416
 
@@ -475,12 +518,12 @@ module Google
475
518
  end
476
519
  end
477
520
 
478
- class ListOperationsResponse
521
+ class ListInventoriesResponse
479
522
  # @private
480
523
  class Representation < Google::Apis::Core::JsonRepresentation
481
- property :next_page_token, as: 'nextPageToken'
482
- collection :operations, as: 'operations', class: Google::Apis::OsconfigV1::Operation, decorator: Google::Apis::OsconfigV1::Operation::Representation
524
+ collection :inventories, as: 'inventories', class: Google::Apis::OsconfigV1::Inventory, decorator: Google::Apis::OsconfigV1::Inventory::Representation
483
525
 
526
+ property :next_page_token, as: 'nextPageToken'
484
527
  end
485
528
  end
486
529
 
@@ -511,6 +554,15 @@ module Google
511
554
  end
512
555
  end
513
556
 
557
+ class ListVulnerabilityReportsResponse
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ property :next_page_token, as: 'nextPageToken'
561
+ collection :vulnerability_reports, as: 'vulnerabilityReports', class: Google::Apis::OsconfigV1::VulnerabilityReport, decorator: Google::Apis::OsconfigV1::VulnerabilityReport::Representation
562
+
563
+ end
564
+ end
565
+
514
566
  class MonthlySchedule
515
567
  # @private
516
568
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -538,18 +590,6 @@ module Google
538
590
  end
539
591
  end
540
592
 
541
- class Operation
542
- # @private
543
- class Representation < Google::Apis::Core::JsonRepresentation
544
- property :done, as: 'done'
545
- property :error, as: 'error', class: Google::Apis::OsconfigV1::Status, decorator: Google::Apis::OsconfigV1::Status::Representation
546
-
547
- hash :metadata, as: 'metadata'
548
- property :name, as: 'name'
549
- hash :response, as: 'response'
550
- end
551
- end
552
-
553
593
  class PatchConfig
554
594
  # @private
555
595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -697,15 +737,6 @@ module Google
697
737
  end
698
738
  end
699
739
 
700
- class Status
701
- # @private
702
- class Representation < Google::Apis::Core::JsonRepresentation
703
- property :code, as: 'code'
704
- collection :details, as: 'details'
705
- property :message, as: 'message'
706
- end
707
- end
708
-
709
740
  class TimeOfDay
710
741
  # @private
711
742
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -724,6 +755,50 @@ module Google
724
755
  end
725
756
  end
726
757
 
758
+ class VulnerabilityReport
759
+ # @private
760
+ class Representation < Google::Apis::Core::JsonRepresentation
761
+ property :name, as: 'name'
762
+ property :update_time, as: 'updateTime'
763
+ collection :vulnerabilities, as: 'vulnerabilities', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerability, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerability::Representation
764
+
765
+ end
766
+ end
767
+
768
+ class VulnerabilityReportVulnerability
769
+ # @private
770
+ class Representation < Google::Apis::Core::JsonRepresentation
771
+ collection :available_inventory_item_ids, as: 'availableInventoryItemIds'
772
+ property :create_time, as: 'createTime'
773
+ property :details, as: 'details', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails::Representation
774
+
775
+ collection :installed_inventory_item_ids, as: 'installedInventoryItemIds'
776
+ property :update_time, as: 'updateTime'
777
+ end
778
+ end
779
+
780
+ class VulnerabilityReportVulnerabilityDetails
781
+ # @private
782
+ class Representation < Google::Apis::Core::JsonRepresentation
783
+ property :cve, as: 'cve'
784
+ property :cvss_v2_score, as: 'cvssV2Score'
785
+ property :cvss_v3, as: 'cvssV3', class: Google::Apis::OsconfigV1::CvsSv3, decorator: Google::Apis::OsconfigV1::CvsSv3::Representation
786
+
787
+ property :description, as: 'description'
788
+ collection :references, as: 'references', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference::Representation
789
+
790
+ property :severity, as: 'severity'
791
+ end
792
+ end
793
+
794
+ class VulnerabilityReportVulnerabilityDetailsReference
795
+ # @private
796
+ class Representation < Google::Apis::Core::JsonRepresentation
797
+ property :source, as: 'source'
798
+ property :url, as: 'url'
799
+ end
800
+ end
801
+
727
802
  class WeekDayOfMonth
728
803
  # @private
729
804
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,12 +50,16 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
- # Deletes a long-running operation. This method indicates that the client is no
54
- # longer interested in the operation result. It does not cancel the operation.
55
- # If the server doesn't support this method, it returns `google.rpc.Code.
56
- # UNIMPLEMENTED`.
53
+ # Get inventory data for the specified VM instance. If the VM has no associated
54
+ # inventory, the message `NOT_FOUND` is returned.
57
55
  # @param [String] name
58
- # The name of the operation resource to be deleted.
56
+ # Required. API resource name for inventory resource. Format: `projects/`project`
57
+ # /locations/`location`/instances/`instance`/inventory` For ``project``, either `
58
+ # project-number` or `project-id` can be provided. For ``instance``, either
59
+ # Compute Engine `instance-id` or `instance-name` can be provided.
60
+ # @param [String] view
61
+ # Inventory view indicating what information should be included in the inventory
62
+ # resource. If unspecified, the default view is BASIC.
59
63
  # @param [String] fields
60
64
  # Selector specifying which fields to include in a partial response.
61
65
  # @param [String] quota_user
@@ -65,40 +69,80 @@ module Google
65
69
  # Request-specific options
66
70
  #
67
71
  # @yield [result, err] Result & error if block supplied
68
- # @yieldparam result [Google::Apis::OsconfigV1::Empty] parsed result object
72
+ # @yieldparam result [Google::Apis::OsconfigV1::Inventory] parsed result object
69
73
  # @yieldparam err [StandardError] error object if request failed
70
74
  #
71
- # @return [Google::Apis::OsconfigV1::Empty]
75
+ # @return [Google::Apis::OsconfigV1::Inventory]
72
76
  #
73
77
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
78
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
79
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
77
- command = make_simple_command(:delete, 'v1/{+name}', options)
78
- command.response_representation = Google::Apis::OsconfigV1::Empty::Representation
79
- command.response_class = Google::Apis::OsconfigV1::Empty
80
+ def get_project_location_instance_inventory(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'v1/{+name}', options)
82
+ command.response_representation = Google::Apis::OsconfigV1::Inventory::Representation
83
+ command.response_class = Google::Apis::OsconfigV1::Inventory
80
84
  command.params['name'] = name unless name.nil?
85
+ command.query['view'] = view unless view.nil?
81
86
  command.query['fields'] = fields unless fields.nil?
82
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
83
88
  execute_or_queue_command(command, &block)
84
89
  end
85
90
 
86
- # Lists operations that match the specified filter in the request. If the server
87
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
88
- # binding allows API services to override the binding to use different resource
89
- # name schemes, such as `users/*/operations`. To override the binding, API
90
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
91
- # service configuration. For backwards compatibility, the default name includes
92
- # the operations collection id, however overriding users must ensure the name
93
- # binding is the parent resource, without the operations collection id.
94
- # @param [String] name
95
- # The name of the operation's parent resource.
91
+ # List inventory data for all VM instances in the specified zone.
92
+ # @param [String] parent
93
+ # Required. The parent resource name. Format: `projects/`project`/locations/`
94
+ # location`/instances/-` For ``project``, either `project-number` or `project-id`
95
+ # can be provided.
96
96
  # @param [String] filter
97
- # The standard list filter.
97
+ # If provided, this field specifies the criteria that must be met by a `
98
+ # Inventory` API resource to be included in the response.
98
99
  # @param [Fixnum] page_size
99
- # The standard list page size.
100
+ # The maximum number of results to return.
100
101
  # @param [String] page_token
101
- # The standard list page token.
102
+ # A pagination token returned from a previous call to `ListInventories` that
103
+ # indicates where this listing should continue from.
104
+ # @param [String] view
105
+ # Inventory view indicating what information should be included in the inventory
106
+ # resource. If unspecified, the default view is BASIC.
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
109
+ # @param [String] quota_user
110
+ # Available to use for quota purposes for server-side applications. Can be any
111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
112
+ # @param [Google::Apis::RequestOptions] options
113
+ # Request-specific options
114
+ #
115
+ # @yield [result, err] Result & error if block supplied
116
+ # @yieldparam result [Google::Apis::OsconfigV1::ListInventoriesResponse] parsed result object
117
+ # @yieldparam err [StandardError] error object if request failed
118
+ #
119
+ # @return [Google::Apis::OsconfigV1::ListInventoriesResponse]
120
+ #
121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
124
+ def list_project_location_instance_inventories(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
125
+ command = make_simple_command(:get, 'v1/{+parent}/inventories', options)
126
+ command.response_representation = Google::Apis::OsconfigV1::ListInventoriesResponse::Representation
127
+ command.response_class = Google::Apis::OsconfigV1::ListInventoriesResponse
128
+ command.params['parent'] = parent unless parent.nil?
129
+ command.query['filter'] = filter unless filter.nil?
130
+ command.query['pageSize'] = page_size unless page_size.nil?
131
+ command.query['pageToken'] = page_token unless page_token.nil?
132
+ command.query['view'] = view unless view.nil?
133
+ command.query['fields'] = fields unless fields.nil?
134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
135
+ execute_or_queue_command(command, &block)
136
+ end
137
+
138
+ # Gets the vulnerability report for the specified VM instance. Only VMs with
139
+ # inventory data have vulnerability reports associated with them.
140
+ # @param [String] name
141
+ # Required. API resource name for vulnerability resource. Format: `projects/`
142
+ # project`/locations/`location`/instances/`instance`/vulnerabilityReport` For ``
143
+ # project``, either `project-number` or `project-id` can be provided. For ``
144
+ # instance``, either Compute Engine `instance-id` or `instance-name` can be
145
+ # provided.
102
146
  # @param [String] fields
103
147
  # Selector specifying which fields to include in a partial response.
104
148
  # @param [String] quota_user
@@ -108,19 +152,59 @@ module Google
108
152
  # Request-specific options
109
153
  #
110
154
  # @yield [result, err] Result & error if block supplied
111
- # @yieldparam result [Google::Apis::OsconfigV1::ListOperationsResponse] parsed result object
155
+ # @yieldparam result [Google::Apis::OsconfigV1::VulnerabilityReport] parsed result object
112
156
  # @yieldparam err [StandardError] error object if request failed
113
157
  #
114
- # @return [Google::Apis::OsconfigV1::ListOperationsResponse]
158
+ # @return [Google::Apis::OsconfigV1::VulnerabilityReport]
115
159
  #
116
160
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
161
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
162
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ def get_project_location_instance_vulnerability_report(name, fields: nil, quota_user: nil, options: nil, &block)
120
164
  command = make_simple_command(:get, 'v1/{+name}', options)
121
- command.response_representation = Google::Apis::OsconfigV1::ListOperationsResponse::Representation
122
- command.response_class = Google::Apis::OsconfigV1::ListOperationsResponse
165
+ command.response_representation = Google::Apis::OsconfigV1::VulnerabilityReport::Representation
166
+ command.response_class = Google::Apis::OsconfigV1::VulnerabilityReport
123
167
  command.params['name'] = name unless name.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ execute_or_queue_command(command, &block)
171
+ end
172
+
173
+ # List vulnerability reports for all VM instances in the specified zone.
174
+ # @param [String] parent
175
+ # Required. The parent resource name. Format: `projects/`project`/locations/`
176
+ # location`/instances/-` For ``project``, either `project-number` or `project-id`
177
+ # can be provided.
178
+ # @param [String] filter
179
+ # If provided, this field specifies the criteria that must be met by a `
180
+ # vulnerabilityReport` API resource to be included in the response.
181
+ # @param [Fixnum] page_size
182
+ # The maximum number of results to return.
183
+ # @param [String] page_token
184
+ # A pagination token returned from a previous call to `ListVulnerabilityReports`
185
+ # that indicates where this listing should continue from.
186
+ # @param [String] fields
187
+ # Selector specifying which fields to include in a partial response.
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [Google::Apis::RequestOptions] options
192
+ # Request-specific options
193
+ #
194
+ # @yield [result, err] Result & error if block supplied
195
+ # @yieldparam result [Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse] parsed result object
196
+ # @yieldparam err [StandardError] error object if request failed
197
+ #
198
+ # @return [Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse]
199
+ #
200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
203
+ def list_project_location_instance_vulnerability_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
204
+ command = make_simple_command(:get, 'v1/{+parent}/vulnerabilityReports', options)
205
+ command.response_representation = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse::Representation
206
+ command.response_class = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse
207
+ command.params['parent'] = parent unless parent.nil?
124
208
  command.query['filter'] = filter unless filter.nil?
125
209
  command.query['pageSize'] = page_size unless page_size.nil?
126
210
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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-07-05 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.9.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: []