Class: Google::Apis::ConfigV1::PropertyChange

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

Overview

A property change represents a change to a property in the state file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PropertyChange

Returns a new instance of PropertyChange.



2078
2079
2080
# File 'lib/google/apis/config_v1/classes.rb', line 2078

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

Instance Attribute Details

#afterObject

Output only. Representations of the object value after the actions. Corresponds to the JSON property after

Returns:

  • (Object)


2054
2055
2056
# File 'lib/google/apis/config_v1/classes.rb', line 2054

def after
  @after
end

#after_sensitive_pathsArray<String>

Output only. The paths of sensitive fields in after. Paths are relative to path. Corresponds to the JSON property afterSensitivePaths

Returns:

  • (Array<String>)


2060
2061
2062
# File 'lib/google/apis/config_v1/classes.rb', line 2060

def after_sensitive_paths
  @after_sensitive_paths
end

#beforeObject

Output only. Representations of the object value before the actions. Corresponds to the JSON property before

Returns:

  • (Object)


2065
2066
2067
# File 'lib/google/apis/config_v1/classes.rb', line 2065

def before
  @before
end

#before_sensitive_pathsArray<String>

Output only. The paths of sensitive fields in before. Paths are relative to path. Corresponds to the JSON property beforeSensitivePaths

Returns:

  • (Array<String>)


2071
2072
2073
# File 'lib/google/apis/config_v1/classes.rb', line 2071

def before_sensitive_paths
  @before_sensitive_paths
end

#pathString

Output only. The path of the property change. Corresponds to the JSON property path

Returns:

  • (String)


2076
2077
2078
# File 'lib/google/apis/config_v1/classes.rb', line 2076

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2083
2084
2085
2086
2087
2088
2089
# File 'lib/google/apis/config_v1/classes.rb', line 2083

def update!(**args)
  @after = args[:after] if args.key?(:after)
  @after_sensitive_paths = args[:after_sensitive_paths] if args.key?(:after_sensitive_paths)
  @before = args[:before] if args.key?(:before)
  @before_sensitive_paths = args[:before_sensitive_paths] if args.key?(:before_sensitive_paths)
  @path = args[:path] if args.key?(:path)
end