Cloud Asset V1 API - Class Google::Cloud::Asset::V1::Resource (v0.23.0)

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) — 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) — The content of the resource, in which some sensitive fields are removed and may not be present.
Returns
  • (::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 for more information.

    For Google Cloud assets, this value is the parent resource defined in the IAM policy hierarchy. Example: //cloudresourcemanager.googleapis.com/projects/my_project_123

    For third-party assets, this field may be set differently.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — The full name of the immediate parent of this resource. See Resource Names for more information.

    For Google Cloud assets, this value is the parent resource defined in the IAM policy hierarchy. Example: //cloudresourcemanager.googleapis.com/projects/my_project_123

    For third-party assets, this field may be set differently.

Returns
  • (::String) — The full name of the immediate parent of this resource. See Resource Names for more information.

    For Google Cloud assets, this value is the parent resource defined in the IAM policy hierarchy. Example: //cloudresourcemanager.googleapis.com/projects/my_project_123

    For third-party assets, this field may be set differently.

#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