Class: Google::Apis::ConfigV1::LockInfo
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::LockInfo
- 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
Details about the lock which locked the deployment.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Time that the lock was taken.
-
#info ⇒ String
Extra information to store with the lock, provided by the caller.
-
#lock_id ⇒ Fixnum
Unique ID for the lock to be overridden with generation ID in the backend.
-
#operation ⇒ String
Terraform operation, provided by the caller.
-
#version ⇒ String
Terraform version Corresponds to the JSON property
version
. -
#who ⇒ String
user@hostname when available Corresponds to the JSON property
who
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LockInfo
constructor
A new instance of LockInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LockInfo
Returns a new instance of LockInfo.
973 974 975 |
# File 'lib/google/apis/config_v1/classes.rb', line 973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Time that the lock was taken.
Corresponds to the JSON property createTime
946 947 948 |
# File 'lib/google/apis/config_v1/classes.rb', line 946 def create_time @create_time end |
#info ⇒ String
Extra information to store with the lock, provided by the caller.
Corresponds to the JSON property info
951 952 953 |
# File 'lib/google/apis/config_v1/classes.rb', line 951 def info @info end |
#lock_id ⇒ Fixnum
Unique ID for the lock to be overridden with generation ID in the backend.
Corresponds to the JSON property lockId
956 957 958 |
# File 'lib/google/apis/config_v1/classes.rb', line 956 def lock_id @lock_id end |
#operation ⇒ String
Terraform operation, provided by the caller.
Corresponds to the JSON property operation
961 962 963 |
# File 'lib/google/apis/config_v1/classes.rb', line 961 def operation @operation end |
#version ⇒ String
Terraform version
Corresponds to the JSON property version
966 967 968 |
# File 'lib/google/apis/config_v1/classes.rb', line 966 def version @version end |
#who ⇒ String
user@hostname when available
Corresponds to the JSON property who
971 972 973 |
# File 'lib/google/apis/config_v1/classes.rb', line 971 def who @who end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
978 979 980 981 982 983 984 985 |
# File 'lib/google/apis/config_v1/classes.rb', line 978 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @info = args[:info] if args.key?(:info) @lock_id = args[:lock_id] if args.key?(:lock_id) @operation = args[:operation] if args.key?(:operation) @version = args[:version] if args.key?(:version) @who = args[:who] if args.key?(:who) end |