Class: Google::Apis::ReplicapoolupdaterV1beta1::Operation

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

Overview

An operation resource, used to manage asynchronous API requests.

Defined Under Namespace

Classes: Error, Warning

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

Returns a new instance of Operation



275
276
277
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 275

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

Instance Attribute Details

#client_operation_idString

Corresponds to the JSON property clientOperationId

Returns:

  • (String)


161
162
163
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 161

def client_operation_id
  @client_operation_id
end

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


166
167
168
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 166

def creation_timestamp
  @creation_timestamp
end

#end_timeString

Corresponds to the JSON property endTime

Returns:

  • (String)


171
172
173
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 171

def end_time
  @end_time
end

#errorGoogle::Apis::ReplicapoolupdaterV1beta1::Operation::Error

[Output Only] If errors occurred during processing of this operation, this field will be populated. Corresponds to the JSON property error



177
178
179
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 177

def error
  @error
end

#http_error_messageString

Corresponds to the JSON property httpErrorMessage

Returns:

  • (String)


182
183
184
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 182

def http_error_message
  @http_error_message
end

#http_error_status_codeFixnum

Corresponds to the JSON property httpErrorStatusCode

Returns:

  • (Fixnum)


187
188
189
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 187

def http_error_status_code
  @http_error_status_code
end

#idFixnum

[Output Only] Unique identifier for the resource; defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


192
193
194
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 192

def id
  @id
end

#insert_timeString

[Output Only] The time that this operation was requested. This is in RFC 3339 format. Corresponds to the JSON property insertTime

Returns:

  • (String)


198
199
200
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 198

def insert_time
  @insert_time
end

#kindString

[Output Only] Type of the resource. Always replicapoolupdater#operation for Operation resources. Corresponds to the JSON property kind

Returns:

  • (String)


204
205
206
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 204

def kind
  @kind
end

#nameString

[Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 209

def name
  @name
end

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)


214
215
216
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 214

def operation_type
  @operation_type
end

#progressFixnum

Corresponds to the JSON property progress

Returns:

  • (Fixnum)


219
220
221
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 219

def progress
  @progress
end

#regionString

[Output Only] URL of the region where the operation resides. Corresponds to the JSON property region

Returns:

  • (String)


224
225
226
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 224

def region
  @region
end

[Output Only] The fully qualified URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 229

def self_link
  @self_link
end

#start_timeString

[Output Only] The time that this operation was started by the server. This is in RFC 3339 format. Corresponds to the JSON property startTime

Returns:

  • (String)


235
236
237
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 235

def start_time
  @start_time
end

#statusString

[Output Only] Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE". Corresponds to the JSON property status

Returns:

  • (String)


241
242
243
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 241

def status
  @status
end

#status_messageString

[Output Only] An optional textual description of the current status of the operation. Corresponds to the JSON property statusMessage

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 247

def status_message
  @status_message
end

#target_idFixnum

[Output Only] Unique target id which identifies a particular incarnation of the target. Corresponds to the JSON property targetId

Returns:

  • (Fixnum)


253
254
255
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 253

def target_id
  @target_id
end

[Output Only] URL of the resource the operation is mutating. Corresponds to the JSON property targetLink

Returns:

  • (String)


258
259
260
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 258

def target_link
  @target_link
end

#userString

Corresponds to the JSON property user

Returns:

  • (String)


263
264
265
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 263

def user
  @user
end

#warningsArray<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning>

Corresponds to the JSON property warnings



268
269
270
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 268

def warnings
  @warnings
end

#zoneString

[Output Only] URL of the zone where the operation resides. Corresponds to the JSON property zone

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 273

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 280

def update!(**args)
  @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @http_error_message = args[:http_error_message] if args.key?(:http_error_message)
  @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
  @id = args[:id] if args.key?(:id)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @progress = args[:progress] if args.key?(:progress)
  @region = args[:region] if args.key?(:region)
  @self_link = args[:self_link] if args.key?(:self_link)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
  @status_message = args[:status_message] if args.key?(:status_message)
  @target_id = args[:target_id] if args.key?(:target_id)
  @target_link = args[:target_link] if args.key?(:target_link)
  @user = args[:user] if args.key?(:user)
  @warnings = args[:warnings] if args.key?(:warnings)
  @zone = args[:zone] if args.key?(:zone)
end