lib/google/apis/osconfig_v1/representations.rb in google-apis-osconfig_v1-0.8.0 vs lib/google/apis/osconfig_v1/representations.rb in google-apis-osconfig_v1-0.9.0

- old
+ new

@@ -26,10 +26,16 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CvsSv3 + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CancelPatchJobRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -128,11 +134,11 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class ListInventoriesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -152,29 +158,29 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class MonthlySchedule + class ListVulnerabilityReportsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OsPolicyAssignmentOperationMetadata + class MonthlySchedule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class OneTimeSchedule + class OsPolicyAssignmentOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Operation + class OneTimeSchedule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -230,28 +236,46 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Status + class TimeOfDay class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TimeOfDay + class TimeZone class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TimeZone + class VulnerabilityReport class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VulnerabilityReportVulnerability + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VulnerabilityReportVulnerabilityDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VulnerabilityReportVulnerabilityDetailsReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WeekDayOfMonth class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -287,10 +311,27 @@ collection :exclusive_packages, as: 'exclusivePackages' property :type, as: 'type' end end + class CvsSv3 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attack_complexity, as: 'attackComplexity' + property :attack_vector, as: 'attackVector' + property :availability_impact, as: 'availabilityImpact' + property :base_score, as: 'baseScore' + property :confidentiality_impact, as: 'confidentialityImpact' + property :exploitability_score, as: 'exploitabilityScore' + property :impact_score, as: 'impactScore' + property :integrity_impact, as: 'integrityImpact' + property :privileges_required, as: 'privilegesRequired' + property :scope, as: 'scope' + property :user_interaction, as: 'userInteraction' + end + end + class CancelPatchJobRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end @@ -364,12 +405,14 @@ class Inventory # @private class Representation < Google::Apis::Core::JsonRepresentation hash :items, as: 'items', class: Google::Apis::OsconfigV1::InventoryItem, decorator: Google::Apis::OsconfigV1::InventoryItem::Representation + property :name, as: 'name' property :os_info, as: 'osInfo', class: Google::Apis::OsconfigV1::InventoryOsInfo, decorator: Google::Apis::OsconfigV1::InventoryOsInfo::Representation + property :update_time, as: 'updateTime' end end class InventoryItem # @private @@ -473,16 +516,16 @@ property :severity, as: 'severity' property :summary, as: 'summary' end end - class ListOperationsResponse + class ListInventoriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::OsconfigV1::Operation, decorator: Google::Apis::OsconfigV1::Operation::Representation + collection :inventories, as: 'inventories', class: Google::Apis::OsconfigV1::Inventory, decorator: Google::Apis::OsconfigV1::Inventory::Representation + property :next_page_token, as: 'nextPageToken' end end class ListPatchDeploymentsResponse # @private @@ -509,10 +552,19 @@ collection :patch_jobs, as: 'patchJobs', class: Google::Apis::OsconfigV1::PatchJob, decorator: Google::Apis::OsconfigV1::PatchJob::Representation end end + class ListVulnerabilityReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :vulnerability_reports, as: 'vulnerabilityReports', class: Google::Apis::OsconfigV1::VulnerabilityReport, decorator: Google::Apis::OsconfigV1::VulnerabilityReport::Representation + + end + end + class MonthlySchedule # @private class Representation < Google::Apis::Core::JsonRepresentation property :month_day, as: 'monthDay' property :week_day_of_month, as: 'weekDayOfMonth', class: Google::Apis::OsconfigV1::WeekDayOfMonth, decorator: Google::Apis::OsconfigV1::WeekDayOfMonth::Representation @@ -536,22 +588,10 @@ class Representation < Google::Apis::Core::JsonRepresentation property :execute_time, as: 'executeTime' end end - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::OsconfigV1::Status, decorator: Google::Apis::OsconfigV1::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - class PatchConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :apt, as: 'apt', class: Google::Apis::OsconfigV1::AptSettings, decorator: Google::Apis::OsconfigV1::AptSettings::Representation @@ -695,19 +735,10 @@ property :weekly, as: 'weekly', class: Google::Apis::OsconfigV1::WeeklySchedule, decorator: Google::Apis::OsconfigV1::WeeklySchedule::Representation end end - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - class TimeOfDay # @private class Representation < Google::Apis::Core::JsonRepresentation property :hours, as: 'hours' property :minutes, as: 'minutes' @@ -719,9 +750,53 @@ class TimeZone # @private class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :version, as: 'version' + end + end + + class VulnerabilityReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :update_time, as: 'updateTime' + collection :vulnerabilities, as: 'vulnerabilities', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerability, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerability::Representation + + end + end + + class VulnerabilityReportVulnerability + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :available_inventory_item_ids, as: 'availableInventoryItemIds' + property :create_time, as: 'createTime' + property :details, as: 'details', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails::Representation + + collection :installed_inventory_item_ids, as: 'installedInventoryItemIds' + property :update_time, as: 'updateTime' + end + end + + class VulnerabilityReportVulnerabilityDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cve, as: 'cve' + property :cvss_v2_score, as: 'cvssV2Score' + property :cvss_v3, as: 'cvssV3', class: Google::Apis::OsconfigV1::CvsSv3, decorator: Google::Apis::OsconfigV1::CvsSv3::Representation + + property :description, as: 'description' + collection :references, as: 'references', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetailsReference::Representation + + property :severity, as: 'severity' + end + end + + class VulnerabilityReportVulnerabilityDetailsReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source' + property :url, as: 'url' end end class WeekDayOfMonth # @private