Class: Google::Cloud::Asset::V1::VersionedResource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/asset/v1/assets.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource::Google::Protobuf::Struct

Returns 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: https://cloud.google.com/compute/docs/reference/rest/v1/instances.

You can find the resource definition for each supported resource type in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types.

Returns:

  • (::Google::Protobuf::Struct)

    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: https://cloud.google.com/compute/docs/reference/rest/v1/instances.

    You can find the resource definition for each supported resource type in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types



564
565
566
567
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 564

class VersionedResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#version::String

Returns API version of the resource.

Example: If the resource is an instance provided by Compute Engine v1 API as defined in https://cloud.google.com/compute/docs/reference/rest/v1/instances, version will be "v1".

Returns:

  • (::String)

    API version of the resource.

    Example: If the resource is an instance provided by Compute Engine v1 API as defined in https://cloud.google.com/compute/docs/reference/rest/v1/instances, version will be "v1".



564
565
566
567
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 564

class VersionedResource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end