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.



1622
1623
1624
# File 'lib/google/apis/redis_v1/classes.rb', line 1622

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

Instance Attribute Details

#api_versionString

API version. Corresponds to the JSON property apiVersion

Returns:

  • (String)


1589
1590
1591
# File 'lib/google/apis/redis_v1/classes.rb', line 1589

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)


1594
1595
1596
# File 'lib/google/apis/redis_v1/classes.rb', line 1594

def cancel_requested
  @cancel_requested
end

#create_timeString

Creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


1600
1601
1602
# File 'lib/google/apis/redis_v1/classes.rb', line 1600

def create_time
  @create_time
end

#end_timeString

End timestamp. Corresponds to the JSON property endTime

Returns:

  • (String)


1605
1606
1607
# File 'lib/google/apis/redis_v1/classes.rb', line 1605

def end_time
  @end_time
end

#status_detailString

Operation status details. Corresponds to the JSON property statusDetail

Returns:

  • (String)


1610
1611
1612
# File 'lib/google/apis/redis_v1/classes.rb', line 1610

def status_detail
  @status_detail
end

#targetString

Operation target. Corresponds to the JSON property target

Returns:

  • (String)


1615
1616
1617
# File 'lib/google/apis/redis_v1/classes.rb', line 1615

def target
  @target
end

#verbString

Operation verb. Corresponds to the JSON property verb

Returns:

  • (String)


1620
1621
1622
# File 'lib/google/apis/redis_v1/classes.rb', line 1620

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1627
1628
1629
1630
1631
1632
1633
1634
1635
# File 'lib/google/apis/redis_v1/classes.rb', line 1627

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