Class: Google::Cloud::Asset::V1beta1::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb

Overview

Representation of a cloud resource.

Instance Attribute Summary collapse

Instance Attribute Details

#dataGoogle::Protobuf::Struct

Returns The content of the resource, in which some sensitive fields are scrubbed away and may not be present.

Returns:

  • (Google::Protobuf::Struct)

    The content of the resource, in which some sensitive fields are scrubbed away and may not be present.



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end

#discovery_document_uriString

Returns The URL of the discovery document containing the resource's JSON schema. For example: "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest". It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.

Returns:

  • (String)

    The URL of the discovery document containing the resource's JSON schema. For example: "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest". It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end

#discovery_nameString

Returns The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.

Returns:

  • (String)

    The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end

#parentString

Returns The full name of the immediate parent of this resource. See Resource Names for more information.

For GCP assets, it is the parent resource defined in the Cloud IAM policy hierarchy. For example: "//cloudresourcemanager.googleapis.com/projects/my_project_123".

For third-party assets, it is up to the users to define.

Returns:

  • (String)

    The full name of the immediate parent of this resource. See Resource Names for more information.

    For GCP assets, it is the parent resource defined in the Cloud IAM policy hierarchy. For example: "//cloudresourcemanager.googleapis.com/projects/my_project_123".

    For third-party assets, it is up to the users to define.



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end

#resource_urlString

Returns The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123. It will be left unspecified for resources without a REST API.

Returns:

  • (String)

    The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123. It will be left unspecified for resources without a REST API.



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end

#versionString

Returns The API version. Example: "v1".

Returns:

  • (String)

    The API version. Example: "v1".



104
# File 'lib/google/cloud/asset/v1beta1/doc/google/cloud/asset/v1beta1/assets.rb', line 104

class Resource; end