class Google::Apis::CloudassetV1::TemporalAsset

An asset in Google Cloud and its temporal metadata, including the time window when it was observed and its status during that window.

Attributes

asset[RW]

An asset in Google Cloud. An asset can be any resource in the Google Cloud [ resource hierarchy](cloud.google.com/resource-manager/docs/cloud- platform-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](cloud.google.com/asset- inventory/docs/supported-asset-types) for more information. Corresponds to the JSON property `asset` @return [Google::Apis::CloudassetV1::Asset]

deleted[RW]

Whether the asset has been deleted or not. Corresponds to the JSON property `deleted` @return [Boolean]

deleted?[RW]

Whether the asset has been deleted or not. Corresponds to the JSON property `deleted` @return [Boolean]

prior_asset[RW]

An asset in Google Cloud. An asset can be any resource in the Google Cloud [ resource hierarchy](cloud.google.com/resource-manager/docs/cloud- platform-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](cloud.google.com/asset- inventory/docs/supported-asset-types) for more information. Corresponds to the JSON property `priorAsset` @return [Google::Apis::CloudassetV1::Asset]

prior_asset_state[RW]

State of prior_asset. Corresponds to the JSON property `priorAssetState` @return [String]

window[RW]

A time window specified by its `start_time` and `end_time`. Corresponds to the JSON property `window` @return [Google::Apis::CloudassetV1::TimeWindow]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudasset_v1/classes.rb, line 4365
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudasset_v1/classes.rb, line 4370
def update!(**args)
  @asset = args[:asset] if args.key?(:asset)
  @deleted = args[:deleted] if args.key?(:deleted)
  @prior_asset = args[:prior_asset] if args.key?(:prior_asset)
  @prior_asset_state = args[:prior_asset_state] if args.key?(:prior_asset_state)
  @window = args[:window] if args.key?(:window)
end