Class: Google::Apis::RedisV1::GoogleCloudRedisV1OperationMetadata

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

Overview

Represents the v1 metadata of the long-running operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudRedisV1OperationMetadata

Returns a new instance of GoogleCloudRedisV1OperationMetadata



109
110
111
# File 'generated/google/apis/redis_v1/classes.rb', line 109

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

Instance Attribute Details

#api_versionString

API version. Corresponds to the JSON property apiVersion

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/redis_v1/classes.rb', line 76

def api_version
  @api_version
end

#cancel_requestedBoolean Also known as: cancel_requested?

Specifies if cancellation was requested for the operation. Corresponds to the JSON property cancelRequested

Returns:

  • (Boolean)


81
82
83
# File 'generated/google/apis/redis_v1/classes.rb', line 81

def cancel_requested
  @cancel_requested
end

#create_timeString

Creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/redis_v1/classes.rb', line 87

def create_time
  @create_time
end

#end_timeString

End timestamp. Corresponds to the JSON property endTime

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/redis_v1/classes.rb', line 92

def end_time
  @end_time
end

#status_detailString

Operation status details. Corresponds to the JSON property statusDetail

Returns:

  • (String)


97
98
99
# File 'generated/google/apis/redis_v1/classes.rb', line 97

def status_detail
  @status_detail
end

#targetString

Operation target. Corresponds to the JSON property target

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/redis_v1/classes.rb', line 102

def target
  @target
end

#verbString

Operation verb. Corresponds to the JSON property verb

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/redis_v1/classes.rb', line 107

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
119
120
121
122
# File 'generated/google/apis/redis_v1/classes.rb', line 114

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @status_detail = args[:status_detail] if args.key?(:status_detail)
  @target = args[:target] if args.key?(:target)
  @verb = args[:verb] if args.key?(:verb)
end