Class: Google::Cloud::Asset::V1::Asset
- Inherits:
-
Object
- Object
- Google::Cloud::Asset::V1::Asset
- 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. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.
Instance Attribute Summary collapse
-
#access_level ⇒ ::Google::Identity::AccessContextManager::V1::AccessLevel
Also refer to the access level user guide.
-
#access_policy ⇒ ::Google::Identity::AccessContextManager::V1::AccessPolicy
Also refer to the access policy user guide.
-
#ancestors ⇒ ::Array<::String>
The ancestry path of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names.
-
#asset_type ⇒ ::String
The type of the asset.
-
#iam_policy ⇒ ::Google::Iam::V1::Policy
A representation of the IAM policy set on a Google Cloud resource.
-
#name ⇒ ::String
The full name of the asset.
-
#org_policy ⇒ ::Array<::Google::Cloud::OrgPolicy::V1::Policy>
A representation of an organization policy.
-
#os_inventory ⇒ ::Google::Cloud::OsConfig::V1::Inventory
A representation of runtime OS Inventory information.
-
#related_asset ⇒ ::Google::Cloud::Asset::V1::RelatedAsset
One related asset of the current asset.
-
#related_assets ⇒ ::Google::Cloud::Asset::V1::RelatedAssets
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#resource ⇒ ::Google::Cloud::Asset::V1::Resource
A representation of the resource.
-
#service_perimeter ⇒ ::Google::Identity::AccessContextManager::V1::ServicePerimeter
Also refer to the service perimeter user guide.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
The last update timestamp of an asset.
Instance Attribute Details
#access_level ⇒ ::Google::Identity::AccessContextManager::V1::AccessLevel
Returns Also refer to the access level user guide.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#access_policy ⇒ ::Google::Identity::AccessContextManager::V1::AccessPolicy
Returns Also refer to the access policy user guide.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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"]
.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#iam_policy ⇒ ::Google::Iam::V1::Policy
Returns A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#related_asset ⇒ ::Google::Cloud::Asset::V1::RelatedAsset
Returns One related asset of the current asset.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#related_assets ⇒ ::Google::Cloud::Asset::V1::RelatedAssets
This field is deprecated and may be removed in the next major version update.
Returns DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resource ⇒ ::Google::Cloud::Asset::V1::Resource
Returns A representation of the resource.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#service_perimeter ⇒ ::Google::Identity::AccessContextManager::V1::ServicePerimeter
Returns Also refer to the service perimeter user guide.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 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.
164 165 166 167 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 164 class Asset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |