Class: Google::Apis::AutoscalerV1beta2::Operation

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

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



417
418
419
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 417

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

Instance Attribute Details

#client_operation_idString

Corresponds to the JSON property clientOperationId

Returns:

  • (String)


304
305
306
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 304

def client_operation_id
  @client_operation_id
end

#creation_timestampString

Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


309
310
311
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 309

def creation_timestamp
  @creation_timestamp
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


314
315
316
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 314

def description
  @description
end

#end_timeString

Corresponds to the JSON property endTime

Returns:

  • (String)


319
320
321
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 319

def end_time
  @end_time
end

#errorGoogle::Apis::AutoscalerV1beta2::Operation::Error

Corresponds to the JSON property error



324
325
326
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 324

def error
  @error
end

#http_error_messageString

Corresponds to the JSON property httpErrorMessage

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 329

def http_error_message
  @http_error_message
end

#http_error_status_codeFixnum

Corresponds to the JSON property httpErrorStatusCode

Returns:

  • (Fixnum)


334
335
336
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 334

def http_error_status_code
  @http_error_status_code
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


339
340
341
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 339

def id
  @id
end

#insert_timeString

Corresponds to the JSON property insertTime

Returns:

  • (String)


344
345
346
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 344

def insert_time
  @insert_time
end

#kindString

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

Returns:

  • (String)


350
351
352
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 350

def kind
  @kind
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


355
356
357
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 355

def name
  @name
end

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)


360
361
362
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 360

def operation_type
  @operation_type
end

#progressFixnum

Corresponds to the JSON property progress

Returns:

  • (Fixnum)


365
366
367
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 365

def progress
  @progress
end

#regionString

Corresponds to the JSON property region

Returns:

  • (String)


370
371
372
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 370

def region
  @region
end

Corresponds to the JSON property selfLink

Returns:

  • (String)


375
376
377
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 375

def self_link
  @self_link
end

#start_timeString

Corresponds to the JSON property startTime

Returns:

  • (String)


380
381
382
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 380

def start_time
  @start_time
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


385
386
387
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 385

def status
  @status
end

#status_messageString

Corresponds to the JSON property statusMessage

Returns:

  • (String)


390
391
392
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 390

def status_message
  @status_message
end

#target_idString

Corresponds to the JSON property targetId

Returns:

  • (String)


395
396
397
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 395

def target_id
  @target_id
end

Corresponds to the JSON property targetLink

Returns:

  • (String)


400
401
402
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 400

def target_link
  @target_link
end

#userString

Corresponds to the JSON property user

Returns:

  • (String)


405
406
407
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 405

def user
  @user
end

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

Corresponds to the JSON property warnings



410
411
412
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 410

def warnings
  @warnings
end

#zoneString

Corresponds to the JSON property zone

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 415

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 422

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)
  @description = args[:description] if args.key?(:description)
  @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