1.9.1 (latest) 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::VersionedResource.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #resource

    def resource() -> ::Google::Protobuf::Struct

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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`

### #resource=

    def resource=(value) -> ::Google::Protobuf::Struct

**Parameter**

- **value** ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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`
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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`

### #version

    def version() -> ::String

**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".

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::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".
**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".