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

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

Overview

Represents the v1 metadata of the long-running operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRedisV1OperationMetadata

Returns a new instance of GoogleCloudRedisV1OperationMetadata.



2312
2313
2314
# File 'lib/google/apis/redis_v1/classes.rb', line 2312

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

Instance Attribute Details

#api_versionString

API version. Corresponds to the JSON property apiVersion

Returns:

  • (String)


2279
2280
2281
# File 'lib/google/apis/redis_v1/classes.rb', line 2279

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)


2284
2285
2286
# File 'lib/google/apis/redis_v1/classes.rb', line 2284

def cancel_requested
  @cancel_requested
end

#create_timeString

Creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


2290
2291
2292
# File 'lib/google/apis/redis_v1/classes.rb', line 2290

def create_time
  @create_time
end

#end_timeString

End timestamp. Corresponds to the JSON property endTime

Returns:

  • (String)


2295
2296
2297
# File 'lib/google/apis/redis_v1/classes.rb', line 2295

def end_time
  @end_time
end

#status_detailString

Operation status details. Corresponds to the JSON property statusDetail

Returns:

  • (String)


2300
2301
2302
# File 'lib/google/apis/redis_v1/classes.rb', line 2300

def status_detail
  @status_detail
end

#targetString

Operation target. Corresponds to the JSON property target

Returns:

  • (String)


2305
2306
2307
# File 'lib/google/apis/redis_v1/classes.rb', line 2305

def target
  @target
end

#verbString

Operation verb. Corresponds to the JSON property verb

Returns:

  • (String)


2310
2311
2312
# File 'lib/google/apis/redis_v1/classes.rb', line 2310

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2317
2318
2319
2320
2321
2322
2323
2324
2325
# File 'lib/google/apis/redis_v1/classes.rb', line 2317

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