Class: Google::Cloud::Asset::V1::Resource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/asset/v1/assets.rb

Overview

A representation of a Google Cloud resource.

Instance Attribute Summary collapse

Instance Attribute Details

#data::Google::Protobuf::Struct

Returns 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.



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

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



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

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

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.



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#location::String

Returns 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:



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

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 Google Cloud assets, this value is the parent resource defined in the Cloud 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 Cloud IAM policy hierarchy. Example: //cloudresourcemanager.googleapis.com/projects/my_project_123

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



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

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



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#version::String

Returns The API version. Example: v1.

Returns:

  • (::String)

    The API version. Example: v1



200
201
202
203
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 200

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end