feat: Automated regeneration of osconfig v1beta client (#1541)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-11-17 02:56:47,232 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-osconfig-v1beta
nothing to commit, working tree clean
2020-11-17 02:56:47,315 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth osconfig v1beta
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth osconfig v1beta
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.0
Installing parallel 1.20.0
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=osconfig.v1beta --names-out=/workspace/api_names_out.yaml
Loading osconfig, version v1beta from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/osconfig.v1beta.json
    conflict  google/apis/osconfig_v1beta.rb
<osconfig_v1beta.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/osconfig_v1beta.rb
   identical  google/apis/osconfig_v1beta/service.rb
    conflict  google/apis/osconfig_v1beta/classes.rb
       force  google/apis/osconfig_v1beta/classes.rb
    conflict  google/apis/osconfig_v1beta/representations.rb
       force  google/apis/osconfig_v1beta/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-11-17 02:57:13,466 synthtool [DEBUG] > Wrote metadata to generated/google/apis/osconfig_v1beta/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/osconfig_v1beta/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/7e06f273-92b4-427a-ba27-5b49afa0b082/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-11-17 03:10:05 -08:00 committed by GitHub
parent 561cd46729
commit fd68d8388d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 649 additions and 2 deletions

View File

@ -121025,6 +121025,66 @@
"/osconfig:v1beta/GuestPolicy/recipes": recipes
"/osconfig:v1beta/GuestPolicy/recipes/recipe": recipe
"/osconfig:v1beta/GuestPolicy/updateTime": update_time
"/osconfig:v1beta/Inventory": inventory
"/osconfig:v1beta/Inventory/items": items
"/osconfig:v1beta/Inventory/items/item": item
"/osconfig:v1beta/Inventory/osInfo": os_info
"/osconfig:v1beta/InventoryItem": inventory_item
"/osconfig:v1beta/InventoryItem/availablePackage": available_package
"/osconfig:v1beta/InventoryItem/createTime": create_time
"/osconfig:v1beta/InventoryItem/id": id
"/osconfig:v1beta/InventoryItem/installedPackage": installed_package
"/osconfig:v1beta/InventoryItem/originType": origin_type
"/osconfig:v1beta/InventoryItem/type": type
"/osconfig:v1beta/InventoryItem/updateTime": update_time
"/osconfig:v1beta/InventoryOsInfo": inventory_os_info
"/osconfig:v1beta/InventoryOsInfo/architecture": architecture
"/osconfig:v1beta/InventoryOsInfo/hostname": hostname
"/osconfig:v1beta/InventoryOsInfo/kernelRelease": kernel_release
"/osconfig:v1beta/InventoryOsInfo/kernelVersion": kernel_version
"/osconfig:v1beta/InventoryOsInfo/longName": long_name
"/osconfig:v1beta/InventoryOsInfo/osconfigAgentVersion": osconfig_agent_version
"/osconfig:v1beta/InventoryOsInfo/shortName": short_name
"/osconfig:v1beta/InventoryOsInfo/version": version
"/osconfig:v1beta/InventorySoftwarePackage": inventory_software_package
"/osconfig:v1beta/InventorySoftwarePackage/aptPackage": apt_package
"/osconfig:v1beta/InventorySoftwarePackage/cosPackage": cos_package
"/osconfig:v1beta/InventorySoftwarePackage/googetPackage": googet_package
"/osconfig:v1beta/InventorySoftwarePackage/qfePackage": qfe_package
"/osconfig:v1beta/InventorySoftwarePackage/wuaPackage": wua_package
"/osconfig:v1beta/InventorySoftwarePackage/yumPackage": yum_package
"/osconfig:v1beta/InventorySoftwarePackage/zypperPackage": zypper_package
"/osconfig:v1beta/InventorySoftwarePackage/zypperPatch": zypper_patch
"/osconfig:v1beta/InventoryVersionedPackage": inventory_versioned_package
"/osconfig:v1beta/InventoryVersionedPackage/architecture": architecture
"/osconfig:v1beta/InventoryVersionedPackage/packageName": package_name
"/osconfig:v1beta/InventoryVersionedPackage/version": version
"/osconfig:v1beta/InventoryWindowsQuickFixEngineeringPackage": inventory_windows_quick_fix_engineering_package
"/osconfig:v1beta/InventoryWindowsQuickFixEngineeringPackage/caption": caption
"/osconfig:v1beta/InventoryWindowsQuickFixEngineeringPackage/description": description
"/osconfig:v1beta/InventoryWindowsQuickFixEngineeringPackage/hotFixId": hot_fix_id
"/osconfig:v1beta/InventoryWindowsQuickFixEngineeringPackage/installTime": install_time
"/osconfig:v1beta/InventoryWindowsUpdatePackage": inventory_windows_update_package
"/osconfig:v1beta/InventoryWindowsUpdatePackage/categories": categories
"/osconfig:v1beta/InventoryWindowsUpdatePackage/categories/category": category
"/osconfig:v1beta/InventoryWindowsUpdatePackage/description": description
"/osconfig:v1beta/InventoryWindowsUpdatePackage/kbArticleIds": kb_article_ids
"/osconfig:v1beta/InventoryWindowsUpdatePackage/kbArticleIds/kb_article_id": kb_article_id
"/osconfig:v1beta/InventoryWindowsUpdatePackage/lastDeploymentChangeTime": last_deployment_change_time
"/osconfig:v1beta/InventoryWindowsUpdatePackage/moreInfoUrls": more_info_urls
"/osconfig:v1beta/InventoryWindowsUpdatePackage/moreInfoUrls/more_info_url": more_info_url
"/osconfig:v1beta/InventoryWindowsUpdatePackage/revisionNumber": revision_number
"/osconfig:v1beta/InventoryWindowsUpdatePackage/supportUrl": support_url
"/osconfig:v1beta/InventoryWindowsUpdatePackage/title": title
"/osconfig:v1beta/InventoryWindowsUpdatePackage/updateId": update_id
"/osconfig:v1beta/InventoryWindowsUpdatePackageWindowsUpdateCategory": inventory_windows_update_package_windows_update_category
"/osconfig:v1beta/InventoryWindowsUpdatePackageWindowsUpdateCategory/id": id
"/osconfig:v1beta/InventoryWindowsUpdatePackageWindowsUpdateCategory/name": name
"/osconfig:v1beta/InventoryZypperPatch": inventory_zypper_patch
"/osconfig:v1beta/InventoryZypperPatch/category": category
"/osconfig:v1beta/InventoryZypperPatch/patchName": patch_name
"/osconfig:v1beta/InventoryZypperPatch/severity": severity
"/osconfig:v1beta/InventoryZypperPatch/summary": summary
"/osconfig:v1beta/ListGuestPoliciesResponse": list_guest_policies_response
"/osconfig:v1beta/ListGuestPoliciesResponse/guestPolicies": guest_policies
"/osconfig:v1beta/ListGuestPoliciesResponse/guestPolicies/guest_policy": guest_policy

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/compute/docs/manage-os
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200930'
REVISION = '20201112'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -678,6 +678,425 @@ module Google
end
end
# The inventory details of a VM.
class Inventory
include Google::Apis::Core::Hashable
# Inventory items related to the VM keyed by an opaque unique identifier for
# each inventory item. The identifier is unique to each distinct and addressable
# inventory item and will change, when there is a new package version.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::OsconfigV1beta::InventoryItem>]
attr_accessor :items
# Operating system information for the VM.
# Corresponds to the JSON property `osInfo`
# @return [Google::Apis::OsconfigV1beta::InventoryOsInfo]
attr_accessor :os_info
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@os_info = args[:os_info] if args.key?(:os_info)
end
end
# A single piece of inventory on a VM.
class InventoryItem
include Google::Apis::Core::Hashable
# Software package information of the operating system.
# Corresponds to the JSON property `availablePackage`
# @return [Google::Apis::OsconfigV1beta::InventorySoftwarePackage]
attr_accessor :available_package
# When this inventory item was first detected.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Identifier for this item, unique across items for this VM.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Software package information of the operating system.
# Corresponds to the JSON property `installedPackage`
# @return [Google::Apis::OsconfigV1beta::InventorySoftwarePackage]
attr_accessor :installed_package
# The origin of this inventory item.
# Corresponds to the JSON property `originType`
# @return [String]
attr_accessor :origin_type
# The specific type of inventory, correlating to its specific details.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# When this inventory item was last modified.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@available_package = args[:available_package] if args.key?(:available_package)
@create_time = args[:create_time] if args.key?(:create_time)
@id = args[:id] if args.key?(:id)
@installed_package = args[:installed_package] if args.key?(:installed_package)
@origin_type = args[:origin_type] if args.key?(:origin_type)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Operating system information for the VM.
class InventoryOsInfo
include Google::Apis::Core::Hashable
# The system architecture of the operating system.
# Corresponds to the JSON property `architecture`
# @return [String]
attr_accessor :architecture
# The VM hostname.
# Corresponds to the JSON property `hostname`
# @return [String]
attr_accessor :hostname
# The kernel release of the operating system.
# Corresponds to the JSON property `kernelRelease`
# @return [String]
attr_accessor :kernel_release
# The kernel version of the operating system.
# Corresponds to the JSON property `kernelVersion`
# @return [String]
attr_accessor :kernel_version
# The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft
# Window Server 2019 Datacenter'.
# Corresponds to the JSON property `longName`
# @return [String]
attr_accessor :long_name
# The current version of the OS Config agent running on the VM.
# Corresponds to the JSON property `osconfigAgentVersion`
# @return [String]
attr_accessor :osconfig_agent_version
# The operating system short name. For example, 'windows' or 'debian'.
# Corresponds to the JSON property `shortName`
# @return [String]
attr_accessor :short_name
# The version of the operating system.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@architecture = args[:architecture] if args.key?(:architecture)
@hostname = args[:hostname] if args.key?(:hostname)
@kernel_release = args[:kernel_release] if args.key?(:kernel_release)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@long_name = args[:long_name] if args.key?(:long_name)
@osconfig_agent_version = args[:osconfig_agent_version] if args.key?(:osconfig_agent_version)
@short_name = args[:short_name] if args.key?(:short_name)
@version = args[:version] if args.key?(:version)
end
end
# Software package information of the operating system.
class InventorySoftwarePackage
include Google::Apis::Core::Hashable
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
# Corresponds to the JSON property `aptPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryVersionedPackage]
attr_accessor :apt_package
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
# Corresponds to the JSON property `cosPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryVersionedPackage]
attr_accessor :cos_package
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
# Corresponds to the JSON property `googetPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryVersionedPackage]
attr_accessor :googet_package
# Information related to a Quick Fix Engineering package. Fields are taken from
# Windows QuickFixEngineering Interface and match the source names: https://docs.
# microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
# Corresponds to the JSON property `qfePackage`
# @return [Google::Apis::OsconfigV1beta::InventoryWindowsQuickFixEngineeringPackage]
attr_accessor :qfe_package
# Details related to a Windows Update package. Field data and names are taken
# from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/
# windows/win32/api/_wua/ Descriptive fields like title, and description are
# localized based on the locale of the VM being updated.
# Corresponds to the JSON property `wuaPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackage]
attr_accessor :wua_package
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
# Corresponds to the JSON property `yumPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryVersionedPackage]
attr_accessor :yum_package
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
# Corresponds to the JSON property `zypperPackage`
# @return [Google::Apis::OsconfigV1beta::InventoryVersionedPackage]
attr_accessor :zypper_package
# Details related to a Zypper Patch.
# Corresponds to the JSON property `zypperPatch`
# @return [Google::Apis::OsconfigV1beta::InventoryZypperPatch]
attr_accessor :zypper_patch
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@apt_package = args[:apt_package] if args.key?(:apt_package)
@cos_package = args[:cos_package] if args.key?(:cos_package)
@googet_package = args[:googet_package] if args.key?(:googet_package)
@qfe_package = args[:qfe_package] if args.key?(:qfe_package)
@wua_package = args[:wua_package] if args.key?(:wua_package)
@yum_package = args[:yum_package] if args.key?(:yum_package)
@zypper_package = args[:zypper_package] if args.key?(:zypper_package)
@zypper_patch = args[:zypper_patch] if args.key?(:zypper_patch)
end
end
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
class InventoryVersionedPackage
include Google::Apis::Core::Hashable
# The system architecture this package is intended for.
# Corresponds to the JSON property `architecture`
# @return [String]
attr_accessor :architecture
# The name of the package.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# The version of the package.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@architecture = args[:architecture] if args.key?(:architecture)
@package_name = args[:package_name] if args.key?(:package_name)
@version = args[:version] if args.key?(:version)
end
end
# Information related to a Quick Fix Engineering package. Fields are taken from
# Windows QuickFixEngineering Interface and match the source names: https://docs.
# microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
class InventoryWindowsQuickFixEngineeringPackage
include Google::Apis::Core::Hashable
# A short textual description of the QFE update.
# Corresponds to the JSON property `caption`
# @return [String]
attr_accessor :caption
# A textual description of the QFE update.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Unique identifier associated with a particular QFE update.
# Corresponds to the JSON property `hotFixId`
# @return [String]
attr_accessor :hot_fix_id
# Date that the QFE update was installed. Mapped from installed_on field.
# Corresponds to the JSON property `installTime`
# @return [String]
attr_accessor :install_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@caption = args[:caption] if args.key?(:caption)
@description = args[:description] if args.key?(:description)
@hot_fix_id = args[:hot_fix_id] if args.key?(:hot_fix_id)
@install_time = args[:install_time] if args.key?(:install_time)
end
end
# Details related to a Windows Update package. Field data and names are taken
# from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/
# windows/win32/api/_wua/ Descriptive fields like title, and description are
# localized based on the locale of the VM being updated.
class InventoryWindowsUpdatePackage
include Google::Apis::Core::Hashable
# The categories that are associated with this update package.
# Corresponds to the JSON property `categories`
# @return [Array<Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackageWindowsUpdateCategory>]
attr_accessor :categories
# The localized description of the update package.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A collection of Microsoft Knowledge Base article IDs that are associated with
# the update package.
# Corresponds to the JSON property `kbArticleIds`
# @return [Array<String>]
attr_accessor :kb_article_ids
# The last published date of the update, in (UTC) date and time.
# Corresponds to the JSON property `lastDeploymentChangeTime`
# @return [String]
attr_accessor :last_deployment_change_time
# A collection of URLs that provide more information about the update package.
# Corresponds to the JSON property `moreInfoUrls`
# @return [Array<String>]
attr_accessor :more_info_urls
# The revision number of this update package.
# Corresponds to the JSON property `revisionNumber`
# @return [Fixnum]
attr_accessor :revision_number
# A hyperlink to the language-specific support information for the update.
# Corresponds to the JSON property `supportUrl`
# @return [String]
attr_accessor :support_url
# The localized title of the update package.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Gets the identifier of an update package. Stays the same across revisions.
# Corresponds to the JSON property `updateId`
# @return [String]
attr_accessor :update_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@categories = args[:categories] if args.key?(:categories)
@description = args[:description] if args.key?(:description)
@kb_article_ids = args[:kb_article_ids] if args.key?(:kb_article_ids)
@last_deployment_change_time = args[:last_deployment_change_time] if args.key?(:last_deployment_change_time)
@more_info_urls = args[:more_info_urls] if args.key?(:more_info_urls)
@revision_number = args[:revision_number] if args.key?(:revision_number)
@support_url = args[:support_url] if args.key?(:support_url)
@title = args[:title] if args.key?(:title)
@update_id = args[:update_id] if args.key?(:update_id)
end
end
# Categories specified by the Windows Update.
class InventoryWindowsUpdatePackageWindowsUpdateCategory
include Google::Apis::Core::Hashable
# The identifier of the windows update category.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The name of the windows update category.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
end
end
# Details related to a Zypper Patch.
class InventoryZypperPatch
include Google::Apis::Core::Hashable
# The category of the patch.
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The name of the patch.
# Corresponds to the JSON property `patchName`
# @return [String]
attr_accessor :patch_name
# The severity specified for this patch
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Any summary information provided about this patch.
# Corresponds to the JSON property `summary`
# @return [String]
attr_accessor :summary
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@patch_name = args[:patch_name] if args.key?(:patch_name)
@severity = args[:severity] if args.key?(:severity)
@summary = args[:summary] if args.key?(:summary)
end
end
# A response message for listing guest policies.
class ListGuestPoliciesResponse
include Google::Apis::Core::Hashable

View File

@ -136,6 +136,60 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Inventory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryOsInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventorySoftwarePackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryVersionedPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryWindowsQuickFixEngineeringPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryWindowsUpdatePackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryWindowsUpdatePackageWindowsUpdateCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryZypperPatch
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGuestPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -557,6 +611,120 @@ module Google
end
end
class Inventory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :items, as: 'items', class: Google::Apis::OsconfigV1beta::InventoryItem, decorator: Google::Apis::OsconfigV1beta::InventoryItem::Representation
property :os_info, as: 'osInfo', class: Google::Apis::OsconfigV1beta::InventoryOsInfo, decorator: Google::Apis::OsconfigV1beta::InventoryOsInfo::Representation
end
end
class InventoryItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_package, as: 'availablePackage', class: Google::Apis::OsconfigV1beta::InventorySoftwarePackage, decorator: Google::Apis::OsconfigV1beta::InventorySoftwarePackage::Representation
property :create_time, as: 'createTime'
property :id, as: 'id'
property :installed_package, as: 'installedPackage', class: Google::Apis::OsconfigV1beta::InventorySoftwarePackage, decorator: Google::Apis::OsconfigV1beta::InventorySoftwarePackage::Representation
property :origin_type, as: 'originType'
property :type, as: 'type'
property :update_time, as: 'updateTime'
end
end
class InventoryOsInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :architecture, as: 'architecture'
property :hostname, as: 'hostname'
property :kernel_release, as: 'kernelRelease'
property :kernel_version, as: 'kernelVersion'
property :long_name, as: 'longName'
property :osconfig_agent_version, as: 'osconfigAgentVersion'
property :short_name, as: 'shortName'
property :version, as: 'version'
end
end
class InventorySoftwarePackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apt_package, as: 'aptPackage', class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1beta::InventoryVersionedPackage::Representation
property :cos_package, as: 'cosPackage', class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1beta::InventoryVersionedPackage::Representation
property :googet_package, as: 'googetPackage', class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1beta::InventoryVersionedPackage::Representation
property :qfe_package, as: 'qfePackage', class: Google::Apis::OsconfigV1beta::InventoryWindowsQuickFixEngineeringPackage, decorator: Google::Apis::OsconfigV1beta::InventoryWindowsQuickFixEngineeringPackage::Representation
property :wua_package, as: 'wuaPackage', class: Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackage, decorator: Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackage::Representation
property :yum_package, as: 'yumPackage', class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1beta::InventoryVersionedPackage::Representation
property :zypper_package, as: 'zypperPackage', class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage, decorator: Google::Apis::OsconfigV1beta::InventoryVersionedPackage::Representation
property :zypper_patch, as: 'zypperPatch', class: Google::Apis::OsconfigV1beta::InventoryZypperPatch, decorator: Google::Apis::OsconfigV1beta::InventoryZypperPatch::Representation
end
end
class InventoryVersionedPackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :architecture, as: 'architecture'
property :package_name, as: 'packageName'
property :version, as: 'version'
end
end
class InventoryWindowsQuickFixEngineeringPackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :caption, as: 'caption'
property :description, as: 'description'
property :hot_fix_id, as: 'hotFixId'
property :install_time, as: 'installTime'
end
end
class InventoryWindowsUpdatePackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories', class: Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackageWindowsUpdateCategory, decorator: Google::Apis::OsconfigV1beta::InventoryWindowsUpdatePackageWindowsUpdateCategory::Representation
property :description, as: 'description'
collection :kb_article_ids, as: 'kbArticleIds'
property :last_deployment_change_time, as: 'lastDeploymentChangeTime'
collection :more_info_urls, as: 'moreInfoUrls'
property :revision_number, as: 'revisionNumber'
property :support_url, as: 'supportUrl'
property :title, as: 'title'
property :update_id, as: 'updateId'
end
end
class InventoryWindowsUpdatePackageWindowsUpdateCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
end
end
class InventoryZypperPatch
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :patch_name, as: 'patchName'
property :severity, as: 'severity'
property :summary, as: 'summary'
end
end
class ListGuestPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "43590cf2cc7ef0b8cd2777aa01e42dd30c5db9d3"
}
}
]