View Source GoogleApi.CloudAsset.V1.Model.VersionedResource (google_api_cloud_asset v0.33.2)

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

Attributes

  • resource (type: map(), default: nil) - 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
  • version (type: String.t, default: nil) - 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".

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudAsset.V1.Model.VersionedResource{
  resource: map() | nil,
  version: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.