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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#access_level
def access_level() -> ::Google::Identity::AccessContextManager::V1::AccessLevel
- (::Google::Identity::AccessContextManager::V1::AccessLevel) — Please also refer to the access level user guide.
#access_level=
def access_level=(value) -> ::Google::Identity::AccessContextManager::V1::AccessLevel
- value (::Google::Identity::AccessContextManager::V1::AccessLevel) — Please also refer to the access level user guide.
- (::Google::Identity::AccessContextManager::V1::AccessLevel) — Please also refer to the access level user guide.
#access_policy
def access_policy() -> ::Google::Identity::AccessContextManager::V1::AccessPolicy
- (::Google::Identity::AccessContextManager::V1::AccessPolicy) — Please also refer to the access policy user guide.
#access_policy=
def access_policy=(value) -> ::Google::Identity::AccessContextManager::V1::AccessPolicy
- value (::Google::Identity::AccessContextManager::V1::AccessPolicy) — Please also refer to the access policy user guide.
- (::Google::Identity::AccessContextManager::V1::AccessPolicy) — Please also refer to the access policy user guide.
#ancestors
def ancestors() -> ::Array<::String>
-
(::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"]
#ancestors=
def ancestors=(value) -> ::Array<::String>
-
value (::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"]
-
(::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"]
#asset_type
def asset_type() -> ::String
-
(::String) — The type of the asset. Example:
compute.googleapis.com/Disk
See Supported asset types for more information.
#asset_type=
def asset_type=(value) -> ::String
-
value (::String) — The type of the asset. Example:
compute.googleapis.com/Disk
See Supported asset types for more information.
-
(::String) — The type of the asset. Example:
compute.googleapis.com/Disk
See Supported asset types for more information.
#iam_policy
def iam_policy() -> ::Google::Iam::V1::Policy
- (::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.
#iam_policy=
def iam_policy=(value) -> ::Google::Iam::V1::Policy
- value (::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.
- (::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.
#name
def name() -> ::String
-
(::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.
#name=
def name=(value) -> ::String
-
value (::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.
-
(::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.
#org_policy
def org_policy() -> ::Array<::Google::Cloud::OrgPolicy::V1::Policy>
- (::Array<::Google::Cloud::OrgPolicy::V1::Policy>) — A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
#org_policy=
def org_policy=(value) -> ::Array<::Google::Cloud::OrgPolicy::V1::Policy>
- value (::Array<::Google::Cloud::OrgPolicy::V1::Policy>) — A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
- (::Array<::Google::Cloud::OrgPolicy::V1::Policy>) — A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.
#os_inventory
def os_inventory() -> ::Google::Cloud::OsConfig::V1::Inventory
- (::Google::Cloud::OsConfig::V1::Inventory) — A representation of runtime OS Inventory information. See this topic for more information.
#os_inventory=
def os_inventory=(value) -> ::Google::Cloud::OsConfig::V1::Inventory
- value (::Google::Cloud::OsConfig::V1::Inventory) — A representation of runtime OS Inventory information. See this topic for more information.
- (::Google::Cloud::OsConfig::V1::Inventory) — A representation of runtime OS Inventory information. See this topic for more information.
#related_assets
def related_assets() -> ::Google::Cloud::Asset::V1::RelatedAssets
- (::Google::Cloud::Asset::V1::RelatedAssets) — The related assets of the asset of one relationship type. One asset only represents one type of relationship.
#related_assets=
def related_assets=(value) -> ::Google::Cloud::Asset::V1::RelatedAssets
- value (::Google::Cloud::Asset::V1::RelatedAssets) — The related assets of the asset of one relationship type. One asset only represents one type of relationship.
- (::Google::Cloud::Asset::V1::RelatedAssets) — The related assets of the asset of one relationship type. One asset only represents one type of relationship.
#resource
def resource() -> ::Google::Cloud::Asset::V1::Resource
- (::Google::Cloud::Asset::V1::Resource) — A representation of the resource.
#resource=
def resource=(value) -> ::Google::Cloud::Asset::V1::Resource
- value (::Google::Cloud::Asset::V1::Resource) — A representation of the resource.
- (::Google::Cloud::Asset::V1::Resource) — A representation of the resource.
#service_perimeter
def service_perimeter() -> ::Google::Identity::AccessContextManager::V1::ServicePerimeter
- (::Google::Identity::AccessContextManager::V1::ServicePerimeter) — Please also refer to the service perimeter user guide.
#service_perimeter=
def service_perimeter=(value) -> ::Google::Identity::AccessContextManager::V1::ServicePerimeter
- value (::Google::Identity::AccessContextManager::V1::ServicePerimeter) — Please also refer to the service perimeter user guide.
- (::Google::Identity::AccessContextManager::V1::ServicePerimeter) — Please also refer to the service perimeter user guide.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
#update_time=
def update_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
- (::Google::Protobuf::Timestamp) — The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.