Class: Google::Apis::CloudassetV1::TemporalAsset

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudasset_v1/classes.rb,
generated/google/apis/cloudasset_v1/representations.rb,
generated/google/apis/cloudasset_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TemporalAsset

Returns a new instance of TemporalAsset.


2055
2056
2057
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2055

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#assetGoogle::Apis::CloudassetV1::Asset

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). See Supported asset types for more information. Corresponds to the JSON property asset


2027
2028
2029
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2027

def asset
  @asset
end

#deletedBoolean Also known as: deleted?

Whether the asset has been deleted or not. Corresponds to the JSON property deleted

Returns:

  • (Boolean)

2032
2033
2034
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2032

def deleted
  @deleted
end

#prior_assetGoogle::Apis::CloudassetV1::Asset

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). See Supported asset types for more information. Corresponds to the JSON property priorAsset


2043
2044
2045
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2043

def prior_asset
  @prior_asset
end

#prior_asset_stateString

State of prior_asset. Corresponds to the JSON property priorAssetState

Returns:

  • (String)

2048
2049
2050
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2048

def prior_asset_state
  @prior_asset_state
end

#windowGoogle::Apis::CloudassetV1::TimeWindow

A time window specified by its start_time and end_time. Corresponds to the JSON property window


2053
2054
2055
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2053

def window
  @window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2060
2061
2062
2063
2064
2065
2066
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2060

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