Class: Google::Apis::ConfigV1::LockInfo

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

Details about the lock which locked the deployment.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

Time that the lock was taken. Corresponds to the JSON property createTime

Returns:

  • (String)


946
947
948
# File 'lib/google/apis/config_v1/classes.rb', line 946

def create_time
  @create_time
end

#infoString

Extra information to store with the lock, provided by the caller. Corresponds to the JSON property info

Returns:

  • (String)


951
952
953
# File 'lib/google/apis/config_v1/classes.rb', line 951

def info
  @info
end

#lock_idFixnum

Unique ID for the lock to be overridden with generation ID in the backend. Corresponds to the JSON property lockId

Returns:

  • (Fixnum)


956
957
958
# File 'lib/google/apis/config_v1/classes.rb', line 956

def lock_id
  @lock_id
end

#operationString

Terraform operation, provided by the caller. Corresponds to the JSON property operation

Returns:

  • (String)


961
962
963
# File 'lib/google/apis/config_v1/classes.rb', line 961

def operation
  @operation
end

#versionString

Terraform version Corresponds to the JSON property version

Returns:

  • (String)


966
967
968
# File 'lib/google/apis/config_v1/classes.rb', line 966

def version
  @version
end

#whoString

user@hostname when available Corresponds to the JSON property who

Returns:

  • (String)


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