Class: Google::Apis::ComputeAlpha::BulkInsertOperationStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BulkInsertOperationStatus

Returns a new instance of BulkInsertOperationStatus.



5677
5678
5679
# File 'lib/google/apis/compute_alpha/classes.rb', line 5677

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

Instance Attribute Details

#created_vm_countFixnum

[Output Only] Count of VMs successfully created so far. Corresponds to the JSON property createdVmCount

Returns:

  • (Fixnum)


5654
5655
5656
# File 'lib/google/apis/compute_alpha/classes.rb', line 5654

def created_vm_count
  @created_vm_count
end

#deleted_vm_countFixnum

[Output Only] Count of VMs that got deleted during rollback. Corresponds to the JSON property deletedVmCount

Returns:

  • (Fixnum)


5659
5660
5661
# File 'lib/google/apis/compute_alpha/classes.rb', line 5659

def deleted_vm_count
  @deleted_vm_count
end

#failed_to_create_vm_countFixnum

[Output Only] Count of VMs that started creating but encountered an error. Corresponds to the JSON property failedToCreateVmCount

Returns:

  • (Fixnum)


5664
5665
5666
# File 'lib/google/apis/compute_alpha/classes.rb', line 5664

def failed_to_create_vm_count
  @failed_to_create_vm_count
end

#statusString

[Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back. Corresponds to the JSON property status

Returns:

  • (String)


5670
5671
5672
# File 'lib/google/apis/compute_alpha/classes.rb', line 5670

def status
  @status
end

#target_vm_countFixnum

[Output Only] Count of VMs originally planned to be created. Corresponds to the JSON property targetVmCount

Returns:

  • (Fixnum)


5675
5676
5677
# File 'lib/google/apis/compute_alpha/classes.rb', line 5675

def target_vm_count
  @target_vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5682
5683
5684
5685
5686
5687
5688
# File 'lib/google/apis/compute_alpha/classes.rb', line 5682

def update!(**args)
  @created_vm_count = args[:created_vm_count] if args.key?(:created_vm_count)
  @deleted_vm_count = args[:deleted_vm_count] if args.key?(:deleted_vm_count)
  @failed_to_create_vm_count = args[:failed_to_create_vm_count] if args.key?(:failed_to_create_vm_count)
  @status = args[:status] if args.key?(:status)
  @target_vm_count = args[:target_vm_count] if args.key?(:target_vm_count)
end