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

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

Overview

An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.

Instance Attribute Summary collapse

Instance Attribute Details

#access_level::Google::Identity::AccessContextManager::V1::AccessLevel

Returns Please also refer to the access level user guide.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#access_policy::Google::Identity::AccessContextManager::V1::AccessPolicy

Returns Please also refer to the access policy user guide.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#ancestors::Array<::String>

Returns The ancestry path of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself.

Example: ["projects/123456789", "folders/5432", "organizations/1234"].

Returns:

  • (::Array<::String>)

    The ancestry path of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself.

    Example: ["projects/123456789", "folders/5432", "organizations/1234"]



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#asset_type::String

Returns The type of the asset. Example: compute.googleapis.com/Disk

See Supported asset types for more information.

Returns:

  • (::String)

    The type of the asset. Example: compute.googleapis.com/Disk

    See Supported asset types for more information.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#iam_policy::Google::Iam::V1::Policy

Returns A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See this topic for more information.

Returns:

  • (::Google::Iam::V1::Policy)

    A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See this topic for more information.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#name::String

Returns The full name of the asset. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1

See Resource names for more information.

Returns:

  • (::String)

    The full name of the asset. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1

    See Resource names for more information.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#org_policy::Array<::Google::Cloud::OrgPolicy::V1::Policy>

Returns A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.

Returns:



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#os_inventory::Google::Cloud::OsConfig::V1::Inventory

Returns A representation of runtime OS Inventory information. See this topic for more information.

Returns:



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

Returns The related assets of the asset of one relationship type. One asset only represents one type of relationship.

Returns:



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#resource::Google::Cloud::Asset::V1::Resource

Returns A representation of the resource.

Returns:



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#service_perimeter::Google::Identity::AccessContextManager::V1::ServicePerimeter

Returns Please also refer to the service perimeter user guide.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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

#update_time::Google::Protobuf::Timestamp

Returns The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.

Returns:

  • (::Google::Protobuf::Timestamp)

    The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.



157
158
159
160
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 157

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