Class: Google::Apis::TpuV2alpha1::QueuedResourceState

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

Overview

QueuedResourceState defines the details of the QueuedResource request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueuedResourceState

Returns a new instance of QueuedResourceState.



1233
1234
1235
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1233

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

Instance Attribute Details

#accepted_dataGoogle::Apis::TpuV2alpha1::AcceptedData

Further data for the accepted state. Corresponds to the JSON property acceptedData



1186
1187
1188
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1186

def accepted_data
  @accepted_data
end

#active_dataGoogle::Apis::TpuV2alpha1::ActiveData

Further data for the active state. Corresponds to the JSON property activeData



1191
1192
1193
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1191

def active_data
  @active_data
end

#creating_dataGoogle::Apis::TpuV2alpha1::CreatingData

Further data for the creating state. Corresponds to the JSON property creatingData



1196
1197
1198
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1196

def creating_data
  @creating_data
end

#deleting_dataGoogle::Apis::TpuV2alpha1::DeletingData

Further data for the deleting state. Corresponds to the JSON property deletingData



1201
1202
1203
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1201

def deleting_data
  @deleting_data
end

#failed_dataGoogle::Apis::TpuV2alpha1::FailedData

Further data for the failed state. Corresponds to the JSON property failedData



1206
1207
1208
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1206

def failed_data
  @failed_data
end

#provisioning_dataGoogle::Apis::TpuV2alpha1::ProvisioningData

Further data for the provisioning state. Corresponds to the JSON property provisioningData



1211
1212
1213
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1211

def provisioning_data
  @provisioning_data
end

#stateString

State of the QueuedResource request. Corresponds to the JSON property state

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1216

def state
  @state
end

#state_initiatorString

Output only. The initiator of the QueuedResources's current state. Corresponds to the JSON property stateInitiator

Returns:

  • (String)


1221
1222
1223
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1221

def state_initiator
  @state_initiator
end

#suspended_dataGoogle::Apis::TpuV2alpha1::SuspendedData

Further data for the suspended state. Corresponds to the JSON property suspendedData



1226
1227
1228
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1226

def suspended_data
  @suspended_data
end

#suspending_dataGoogle::Apis::TpuV2alpha1::SuspendingData

Further data for the suspending state. Corresponds to the JSON property suspendingData



1231
1232
1233
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1231

def suspending_data
  @suspending_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1238

def update!(**args)
  @accepted_data = args[:accepted_data] if args.key?(:accepted_data)
  @active_data = args[:active_data] if args.key?(:active_data)
  @creating_data = args[:creating_data] if args.key?(:creating_data)
  @deleting_data = args[:deleting_data] if args.key?(:deleting_data)
  @failed_data = args[:failed_data] if args.key?(:failed_data)
  @provisioning_data = args[:provisioning_data] if args.key?(:provisioning_data)
  @state = args[:state] if args.key?(:state)
  @state_initiator = args[:state_initiator] if args.key?(:state_initiator)
  @suspended_data = args[:suspended_data] if args.key?(:suspended_data)
  @suspending_data = args[:suspending_data] if args.key?(:suspending_data)
end