Class: Google::Apis::ServiceuserV1::OperationMetadata

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

Overview

The metadata associated with a long running operation resource.

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) ⇒ OperationMetadata

Returns a new instance of OperationMetadata



1799
1800
1801
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1799

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

Instance Attribute Details

#progress_percentageFixnum

Percentage of completion of this operation, ranging from 0 to 100. Corresponds to the JSON property progressPercentage

Returns:

  • (Fixnum)


1792
1793
1794
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1792

def progress_percentage
  @progress_percentage
end

#resource_namesArray<String>

The full name of the resources that this operation is directly associated with. Corresponds to the JSON property resourceNames

Returns:

  • (Array<String>)


1787
1788
1789
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1787

def resource_names
  @resource_names
end

#start_timeString

The start time of the operation. Corresponds to the JSON property startTime

Returns:

  • (String)


1797
1798
1799
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1797

def start_time
  @start_time
end

#stepsArray<Google::Apis::ServiceuserV1::Step>

Detailed status information for each step. The order is undetermined. Corresponds to the JSON property steps



1781
1782
1783
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1781

def steps
  @steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1804
1805
1806
1807
1808
1809
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 1804

def update!(**args)
  @steps = args[:steps] if args.key?(:steps)
  @resource_names = args[:resource_names] if args.key?(:resource_names)
  @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
  @start_time = args[:start_time] if args.key?(:start_time)
end