class Google::Apis::CloudassetV1::VersionedResource

Resource representation as defined by the corresponding service providing the resource for a given API version.

Attributes

resource[RW]

JSON representation of the resource as defined by the corresponding service providing this resource. Example: If the resource is an instance provided by Compute Engine, this field will contain the JSON representation of the instance as defined by Compute Engine: `cloud.google.com/compute/docs/ reference/rest/v1/instances`. You can find the resource definition for each supported resource type in this table: `cloud.google.com/asset- inventory/docs/supported-asset-types#searchable_asset_types` Corresponds to the JSON property `resource` @return [Hash<String,Object>]

version[RW]

API version of the resource. Example: If the resource is an instance provided by Compute Engine v1 API as defined in `cloud.google.com/compute/docs/ reference/rest/v1/instances`, version will be “v1”. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudasset_v1/classes.rb, line 4490
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudasset_v1/classes.rb, line 4495
def update!(**args)
  @resource = args[:resource] if args.key?(:resource)
  @version = args[:version] if args.key?(:version)
end