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::Resource.

A representation of a Google Cloud resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

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

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Struct)) --- The content of the resource, in which some sensitive fields are removed and may not be present.

### #data=

    def data=(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)) --- The content of the resource, in which some sensitive fields are removed and may not be present.
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Struct)) --- The content of the resource, in which some sensitive fields are removed and may not be present.

### #discovery_document_uri

    def discovery_document_uri() -> ::String

**Returns**

- (::String) --- The URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.

### #discovery_document_uri=

    def discovery_document_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- The URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.
**Returns**

- (::String) --- The URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.

### #discovery_name

    def discovery_name() -> ::String

**Returns**

- (::String) --- The JSON schema name listed in the discovery document. Example: `Project`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.

### #discovery_name=

    def discovery_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The JSON schema name listed in the discovery document. Example: `Project`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.
**Returns**

- (::String) --- The JSON schema name listed in the discovery document. Example: `Project`


  This value is unspecified for resources that do not have an API based on a
  discovery document, such as Cloud Bigtable.

### #location

    def location() -> ::String

**Returns**

- (::String) --- The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.
**Returns**

- (::String) --- The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- The full name of the immediate parent of this resource. See [Resource
  Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.


  For Google Cloud assets, this value is the parent resource defined in the
  [IAM policy
  hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
  Example:
  `//cloudresourcemanager.googleapis.com/projects/my_project_123`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- The full name of the immediate parent of this resource. See [Resource
  Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.


  For Google Cloud assets, this value is the parent resource defined in the
  [IAM policy
  hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
  Example:
  `//cloudresourcemanager.googleapis.com/projects/my_project_123`
**Returns**

- (::String) --- The full name of the immediate parent of this resource. See [Resource
  Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.


  For Google Cloud assets, this value is the parent resource defined in the
  [IAM policy
  hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
  Example:
  `//cloudresourcemanager.googleapis.com/projects/my_project_123`

### #resource_url

    def resource_url() -> ::String

**Returns**

- (::String) --- The REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`


  This value is unspecified for resources without a REST API.

### #resource_url=

    def resource_url=(value) -> ::String

**Parameter**

- **value** (::String) --- The REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`


  This value is unspecified for resources without a REST API.
**Returns**

- (::String) --- The REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`


  This value is unspecified for resources without a REST API.

### #version

    def version() -> ::String

**Returns**

- (::String) --- The API version. Example: `v1`

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- The API version. Example: `v1`
**Returns**

- (::String) --- The API version. Example: `v1`