Class: Google::Cloud::Asset::V1beta1::Resource
- Inherits:
-
Object
- Object
- Google::Cloud::Asset::V1beta1::Resource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/asset/v1beta1/assets.rb
Overview
Representation of a cloud resource.
Instance Attribute Summary collapse
-
#data ⇒ ::Google::Protobuf::Struct
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
-
#discovery_document_uri ⇒ ::String
The URL of the discovery document containing the resource's JSON schema.
-
#discovery_name ⇒ ::String
The JSON schema name listed in the discovery document.
-
#parent ⇒ ::String
The full name of the immediate parent of this resource.
-
#resource_url ⇒ ::String
The REST URL for accessing the resource.
-
#version ⇒ ::String
The API version.
Instance Attribute Details
#data ⇒ ::Google::Protobuf::Struct
Returns The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
117 118 119 120 |
# File 'proto_docs/google/cloud/asset/v1beta1/assets.rb', line 117 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#discovery_document_uri ⇒ ::String
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.
117 118 119 120 |
# File 'proto_docs/google/cloud/asset/v1beta1/assets.rb', line 117 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#discovery_name ⇒ ::String
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.
117 118 119 120 |
# File 'proto_docs/google/cloud/asset/v1beta1/assets.rb', line 117 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent ⇒ ::String
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.
117 118 119 120 |
# File 'proto_docs/google/cloud/asset/v1beta1/assets.rb', line 117 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resource_url ⇒ ::String
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.
117 118 119 120 |
# File 'proto_docs/google/cloud/asset/v1beta1/assets.rb', line 117 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |