Class: Google::Apis::MonitoringV3::OperationMetadata

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

Overview

Contains metadata for longrunning operation for the edit Metrics Scope endpoints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata.



3040
3041
3042
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3040

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

Instance Attribute Details

#create_timeString

The time when the batch request was received. Corresponds to the JSON property createTime

Returns:

  • (String)


3028
3029
3030
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3028

def create_time
  @create_time
end

#stateString

Current state of the batch operation. Corresponds to the JSON property state

Returns:

  • (String)


3033
3034
3035
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3033

def state
  @state
end

#update_timeString

The time when the operation result was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3038
3039
3040
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3038

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3045
3046
3047
3048
3049
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3045

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end