feat: Automated regeneration of cloudasset v1 client (#1467)

This PR was generated using Autosynth. 🌈


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

```
2020-11-11 01:48:38,063 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-cloudasset-v1
nothing to commit, working tree clean
2020-11-11 01:48:38,139 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 cloudasset v1
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 cloudasset v1
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.49.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.2
Installing powerpack 0.1.2
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=cloudasset.v1 --names-out=/workspace/api_names_out.yaml
Loading cloudasset, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/cloudasset.v1.json
    conflict  google/apis/cloudasset_v1.rb
<s/cloudasset_v1.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/cloudasset_v1.rb
   identical  google/apis/cloudasset_v1/service.rb
    conflict  google/apis/cloudasset_v1/classes.rb
       force  google/apis/cloudasset_v1/classes.rb
    conflict  google/apis/cloudasset_v1/representations.rb
       force  google/apis/cloudasset_v1/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-11-11 01:49:03,234 synthtool [DEBUG] > Wrote metadata to generated/google/apis/cloudasset_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/cloudasset_v1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/563cc11f-8781-4ca7-969f-979083ad200c/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-11-11 02:02:05 -08:00 committed by GitHub
parent 03fcbbc8de
commit 8fc8e7dc1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 658 additions and 9 deletions

View File

@ -20563,6 +20563,7 @@
"/cloudasset:v1/Asset/name": name "/cloudasset:v1/Asset/name": name
"/cloudasset:v1/Asset/orgPolicy": org_policy "/cloudasset:v1/Asset/orgPolicy": org_policy
"/cloudasset:v1/Asset/orgPolicy/org_policy": org_policy "/cloudasset:v1/Asset/orgPolicy/org_policy": org_policy
"/cloudasset:v1/Asset/osInventory": os_inventory
"/cloudasset:v1/Asset/resource": resource "/cloudasset:v1/Asset/resource": resource
"/cloudasset:v1/Asset/servicePerimeter": service_perimeter "/cloudasset:v1/Asset/servicePerimeter": service_perimeter
"/cloudasset:v1/Asset/updateTime": update_time "/cloudasset:v1/Asset/updateTime": update_time
@ -20767,6 +20768,18 @@
"/cloudasset:v1/IamPolicySearchResult/resource": resource "/cloudasset:v1/IamPolicySearchResult/resource": resource
"/cloudasset:v1/IdentitySelector": identity_selector "/cloudasset:v1/IdentitySelector": identity_selector
"/cloudasset:v1/IdentitySelector/identity": identity "/cloudasset:v1/IdentitySelector/identity": identity
"/cloudasset:v1/Inventory": inventory
"/cloudasset:v1/Inventory/items": items
"/cloudasset:v1/Inventory/items/item": item
"/cloudasset:v1/Inventory/osInfo": os_info
"/cloudasset:v1/Item": item
"/cloudasset:v1/Item/availablePackage": available_package
"/cloudasset:v1/Item/createTime": create_time
"/cloudasset:v1/Item/id": id
"/cloudasset:v1/Item/installedPackage": installed_package
"/cloudasset:v1/Item/originType": origin_type
"/cloudasset:v1/Item/type": type
"/cloudasset:v1/Item/updateTime": update_time
"/cloudasset:v1/ListFeedsResponse": list_feeds_response "/cloudasset:v1/ListFeedsResponse": list_feeds_response
"/cloudasset:v1/ListFeedsResponse/feeds": feeds "/cloudasset:v1/ListFeedsResponse/feeds": feeds
"/cloudasset:v1/ListFeedsResponse/feeds/feed": feed "/cloudasset:v1/ListFeedsResponse/feeds/feed": feed
@ -20785,6 +20798,15 @@
"/cloudasset:v1/Options/expandRoles": expand_roles "/cloudasset:v1/Options/expandRoles": expand_roles
"/cloudasset:v1/Options/outputGroupEdges": output_group_edges "/cloudasset:v1/Options/outputGroupEdges": output_group_edges
"/cloudasset:v1/Options/outputResourceEdges": output_resource_edges "/cloudasset:v1/Options/outputResourceEdges": output_resource_edges
"/cloudasset:v1/OsInfo": os_info
"/cloudasset:v1/OsInfo/architecture": architecture
"/cloudasset:v1/OsInfo/hostname": hostname
"/cloudasset:v1/OsInfo/kernelRelease": kernel_release
"/cloudasset:v1/OsInfo/kernelVersion": kernel_version
"/cloudasset:v1/OsInfo/longName": long_name
"/cloudasset:v1/OsInfo/osconfigAgentVersion": osconfig_agent_version
"/cloudasset:v1/OsInfo/shortName": short_name
"/cloudasset:v1/OsInfo/version": version
"/cloudasset:v1/OutputConfig": output_config "/cloudasset:v1/OutputConfig": output_config
"/cloudasset:v1/OutputConfig/bigqueryDestination": bigquery_destination "/cloudasset:v1/OutputConfig/bigqueryDestination": bigquery_destination
"/cloudasset:v1/OutputConfig/gcsDestination": gcs_destination "/cloudasset:v1/OutputConfig/gcsDestination": gcs_destination
@ -20834,6 +20856,15 @@
"/cloudasset:v1/SearchAllResourcesResponse/nextPageToken": next_page_token "/cloudasset:v1/SearchAllResourcesResponse/nextPageToken": next_page_token
"/cloudasset:v1/SearchAllResourcesResponse/results": results "/cloudasset:v1/SearchAllResourcesResponse/results": results
"/cloudasset:v1/SearchAllResourcesResponse/results/result": result "/cloudasset:v1/SearchAllResourcesResponse/results/result": result
"/cloudasset:v1/SoftwarePackage": software_package
"/cloudasset:v1/SoftwarePackage/aptPackage": apt_package
"/cloudasset:v1/SoftwarePackage/cosPackage": cos_package
"/cloudasset:v1/SoftwarePackage/googetPackage": googet_package
"/cloudasset:v1/SoftwarePackage/qfePackage": qfe_package
"/cloudasset:v1/SoftwarePackage/wuaPackage": wua_package
"/cloudasset:v1/SoftwarePackage/yumPackage": yum_package
"/cloudasset:v1/SoftwarePackage/zypperPackage": zypper_package
"/cloudasset:v1/SoftwarePackage/zypperPatch": zypper_patch
"/cloudasset:v1/Status": status "/cloudasset:v1/Status": status
"/cloudasset:v1/Status/code": code "/cloudasset:v1/Status/code": code
"/cloudasset:v1/Status/details": details "/cloudasset:v1/Status/details": details
@ -20852,6 +20883,36 @@
"/cloudasset:v1/UpdateFeedRequest": update_feed_request "/cloudasset:v1/UpdateFeedRequest": update_feed_request
"/cloudasset:v1/UpdateFeedRequest/feed": feed "/cloudasset:v1/UpdateFeedRequest/feed": feed
"/cloudasset:v1/UpdateFeedRequest/updateMask": update_mask "/cloudasset:v1/UpdateFeedRequest/updateMask": update_mask
"/cloudasset:v1/VersionedPackage": versioned_package
"/cloudasset:v1/VersionedPackage/architecture": architecture
"/cloudasset:v1/VersionedPackage/packageName": package_name
"/cloudasset:v1/VersionedPackage/version": version
"/cloudasset:v1/WindowsQuickFixEngineeringPackage": windows_quick_fix_engineering_package
"/cloudasset:v1/WindowsQuickFixEngineeringPackage/caption": caption
"/cloudasset:v1/WindowsQuickFixEngineeringPackage/description": description
"/cloudasset:v1/WindowsQuickFixEngineeringPackage/hotFixId": hot_fix_id
"/cloudasset:v1/WindowsQuickFixEngineeringPackage/installTime": install_time
"/cloudasset:v1/WindowsUpdateCategory": windows_update_category
"/cloudasset:v1/WindowsUpdateCategory/id": id
"/cloudasset:v1/WindowsUpdateCategory/name": name
"/cloudasset:v1/WindowsUpdatePackage": windows_update_package
"/cloudasset:v1/WindowsUpdatePackage/categories": categories
"/cloudasset:v1/WindowsUpdatePackage/categories/category": category
"/cloudasset:v1/WindowsUpdatePackage/description": description
"/cloudasset:v1/WindowsUpdatePackage/kbArticleIds": kb_article_ids
"/cloudasset:v1/WindowsUpdatePackage/kbArticleIds/kb_article_id": kb_article_id
"/cloudasset:v1/WindowsUpdatePackage/lastDeploymentChangeTime": last_deployment_change_time
"/cloudasset:v1/WindowsUpdatePackage/moreInfoUrls": more_info_urls
"/cloudasset:v1/WindowsUpdatePackage/moreInfoUrls/more_info_url": more_info_url
"/cloudasset:v1/WindowsUpdatePackage/revisionNumber": revision_number
"/cloudasset:v1/WindowsUpdatePackage/supportUrl": support_url
"/cloudasset:v1/WindowsUpdatePackage/title": title
"/cloudasset:v1/WindowsUpdatePackage/updateId": update_id
"/cloudasset:v1/ZypperPatch": zypper_patch
"/cloudasset:v1/ZypperPatch/category": category
"/cloudasset:v1/ZypperPatch/patchName": patch_name
"/cloudasset:v1/ZypperPatch/severity": severity
"/cloudasset:v1/ZypperPatch/summary": summary
"/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.accessSelector.permissions": analysis_query_access_selector_permissions "/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.accessSelector.permissions": analysis_query_access_selector_permissions
"/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.accessSelector.roles": analysis_query_access_selector_roles "/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.accessSelector.roles": analysis_query_access_selector_roles
"/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.identitySelector.identity": analysis_query_identity_selector_identity "/cloudasset:v1/cloudasset.analyzeIamPolicy/analysisQuery.identitySelector.identity": analysis_query_identity_selector_identity

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1 module CloudassetV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20201030' REVISION = '20201106'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -199,6 +199,11 @@ module Google
# @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>] # @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
attr_accessor :org_policy attr_accessor :org_policy
# The inventory details of a VM.
# Corresponds to the JSON property `osInventory`
# @return [Google::Apis::CloudassetV1::Inventory]
attr_accessor :os_inventory
# A representation of a Google Cloud resource. # A representation of a Google Cloud resource.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::CloudassetV1::Resource] # @return [Google::Apis::CloudassetV1::Resource]
@ -236,6 +241,7 @@ module Google
@iam_policy = args[:iam_policy] if args.key?(:iam_policy) @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@org_policy = args[:org_policy] if args.key?(:org_policy) @org_policy = args[:org_policy] if args.key?(:org_policy)
@os_inventory = args[:os_inventory] if args.key?(:os_inventory)
@resource = args[:resource] if args.key?(:resource) @resource = args[:resource] if args.key?(:resource)
@service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter) @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
@update_time = args[:update_time] if args.key?(:update_time) @update_time = args[:update_time] if args.key?(:update_time)
@ -407,11 +413,6 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `bindingId`
# @return [String]
attr_accessor :binding_id
# Represents a textual expression in the Common Expression Language (CEL) syntax. # Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are # CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title: # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@ -473,7 +474,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@binding_id = args[:binding_id] if args.key?(:binding_id)
@condition = args[:condition] if args.key?(:condition) @condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
@ -2124,6 +2124,88 @@ module Google
end end
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::CloudassetV1::Item>]
attr_accessor :items
# Operating system information for the VM.
# Corresponds to the JSON property `osInfo`
# @return [Google::Apis::CloudassetV1::OsInfo]
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 Item
include Google::Apis::Core::Hashable
# Software package information of the operating system.
# Corresponds to the JSON property `availablePackage`
# @return [Google::Apis::CloudassetV1::SoftwarePackage]
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::CloudassetV1::SoftwarePackage]
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
# #
class ListFeedsResponse class ListFeedsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2297,6 +2379,68 @@ module Google
end end
end end
# Operating system information for the VM.
class OsInfo
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
# Output configuration for export assets destination. # Output configuration for export assets destination.
class OutputConfig class OutputConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2727,6 +2871,77 @@ module Google
end end
end end
# Software package information of the operating system.
class SoftwarePackage
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::CloudassetV1::VersionedPackage]
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::CloudassetV1::VersionedPackage]
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::CloudassetV1::VersionedPackage]
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::CloudassetV1::WindowsQuickFixEngineeringPackage]
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::CloudassetV1::WindowsUpdatePackage]
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::CloudassetV1::VersionedPackage]
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::CloudassetV1::VersionedPackage]
attr_accessor :zypper_package
# Details related to a Zypper Patch.
# Corresponds to the JSON property `zypperPatch`
# @return [Google::Apis::CloudassetV1::ZypperPatch]
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
# The `Status` type defines a logical error model that is suitable for different # The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [ # programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@ -2876,6 +3091,210 @@ module Google
@update_mask = args[:update_mask] if args.key?(:update_mask) @update_mask = args[:update_mask] if args.key?(:update_mask)
end end
end end
# Information related to the a standard versioned package. This includes package
# info for APT, Yum, Zypper, and Googet package managers.
class VersionedPackage
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 WindowsQuickFixEngineeringPackage
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
# Categories specified by the Windows Update.
class WindowsUpdateCategory
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 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 WindowsUpdatePackage
include Google::Apis::Core::Hashable
# The categories that are associated with this update package.
# Corresponds to the JSON property `categories`
# @return [Array<Google::Apis::CloudassetV1::WindowsUpdateCategory>]
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
# Details related to a Zypper Patch.
class ZypperPatch
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
end end
end end
end end

View File

@ -298,6 +298,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Inventory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Item
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFeedsResponse class ListFeedsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -316,6 +328,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OsInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OutputConfig class OutputConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -376,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SoftwarePackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,6 +424,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class VersionedPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WindowsQuickFixEngineeringPackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WindowsUpdateCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WindowsUpdatePackage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZypperPatch
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccessSelector class AccessSelector
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -443,6 +497,8 @@ module Google
property :name, as: 'name' property :name, as: 'name'
collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy::Representation collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy::Representation
property :os_inventory, as: 'osInventory', class: Google::Apis::CloudassetV1::Inventory, decorator: Google::Apis::CloudassetV1::Inventory::Representation
property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
@ -491,7 +547,6 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :binding_id, as: 'bindingId'
property :condition, as: 'condition', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation property :condition, as: 'condition', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
@ -876,6 +931,31 @@ module Google
end end
end end
class Inventory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :items, as: 'items', class: Google::Apis::CloudassetV1::Item, decorator: Google::Apis::CloudassetV1::Item::Representation
property :os_info, as: 'osInfo', class: Google::Apis::CloudassetV1::OsInfo, decorator: Google::Apis::CloudassetV1::OsInfo::Representation
end
end
class Item
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_package, as: 'availablePackage', class: Google::Apis::CloudassetV1::SoftwarePackage, decorator: Google::Apis::CloudassetV1::SoftwarePackage::Representation
property :create_time, as: 'createTime'
property :id, as: 'id'
property :installed_package, as: 'installedPackage', class: Google::Apis::CloudassetV1::SoftwarePackage, decorator: Google::Apis::CloudassetV1::SoftwarePackage::Representation
property :origin_type, as: 'originType'
property :type, as: 'type'
property :update_time, as: 'updateTime'
end
end
class ListFeedsResponse class ListFeedsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -908,6 +988,20 @@ module Google
end end
end end
class OsInfo
# @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 OutputConfig class OutputConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1004,6 +1098,28 @@ module Google
end end
end end
class SoftwarePackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apt_package, as: 'aptPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
property :cos_package, as: 'cosPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
property :googet_package, as: 'googetPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
property :qfe_package, as: 'qfePackage', class: Google::Apis::CloudassetV1::WindowsQuickFixEngineeringPackage, decorator: Google::Apis::CloudassetV1::WindowsQuickFixEngineeringPackage::Representation
property :wua_package, as: 'wuaPackage', class: Google::Apis::CloudassetV1::WindowsUpdatePackage, decorator: Google::Apis::CloudassetV1::WindowsUpdatePackage::Representation
property :yum_package, as: 'yumPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
property :zypper_package, as: 'zypperPackage', class: Google::Apis::CloudassetV1::VersionedPackage, decorator: Google::Apis::CloudassetV1::VersionedPackage::Representation
property :zypper_patch, as: 'zypperPatch', class: Google::Apis::CloudassetV1::ZypperPatch, decorator: Google::Apis::CloudassetV1::ZypperPatch::Representation
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1043,6 +1159,59 @@ module Google
property :update_mask, as: 'updateMask' property :update_mask, as: 'updateMask'
end end
end end
class VersionedPackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :architecture, as: 'architecture'
property :package_name, as: 'packageName'
property :version, as: 'version'
end
end
class WindowsQuickFixEngineeringPackage
# @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 WindowsUpdateCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
end
end
class WindowsUpdatePackage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories', class: Google::Apis::CloudassetV1::WindowsUpdateCategory, decorator: Google::Apis::CloudassetV1::WindowsUpdateCategory::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 ZypperPatch
# @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
end end
end end
end end

View File

@ -4,7 +4,7 @@
"git": { "git": {
"name": ".", "name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git", "remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "14885a31971894de4c45841c7b2623b8e6d8e748" "sha": "03fcbbc8def2b753f53e44325d3e089eec8ddb60"
} }
} }
] ]