Class: Google::Apis::DeploymentmanagerV2::BulkInsertOperationStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BulkInsertOperationStatus

Returns a new instance of BulkInsertOperationStatus.



224
225
226
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 224

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)


201
202
203
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 201

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)


206
207
208
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 206

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)


211
212
213
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 211

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)


217
218
219
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 217

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)


222
223
224
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 222

def target_vm_count
  @target_vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



229
230
231
232
233
234
235
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 229

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