Class: Google::Apis::ComputeAlpha::ResourceStatusAcceleratorStatus

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

Overview

The status of an individual accelerator resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatusAcceleratorStatus

Returns a new instance of ResourceStatusAcceleratorStatus.



61066
61067
61068
# File 'lib/google/apis/compute_alpha/classes.rb', line 61066

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

Instance Attribute Details

#passed_scansArray<Google::Apis::ComputeAlpha::ResourceStatusAcceleratorStatusPassedScan>

The details of scans that passed for an accelerator. Corresponds to the JSON property passedScans



61049
61050
61051
# File 'lib/google/apis/compute_alpha/classes.rb', line 61049

def passed_scans
  @passed_scans
end

The details of recommended scans for an accelerator. Corresponds to the JSON property recommendedScans



61054
61055
61056
# File 'lib/google/apis/compute_alpha/classes.rb', line 61054

def recommended_scans
  @recommended_scans
end

#serial_numberString

The serial number of the accelerator. Corresponds to the JSON property serialNumber

Returns:

  • (String)


61059
61060
61061
# File 'lib/google/apis/compute_alpha/classes.rb', line 61059

def serial_number
  @serial_number
end

#uuidString

The UUID of the accelerator. Corresponds to the JSON property uuid

Returns:

  • (String)


61064
61065
61066
# File 'lib/google/apis/compute_alpha/classes.rb', line 61064

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



61071
61072
61073
61074
61075
61076
# File 'lib/google/apis/compute_alpha/classes.rb', line 61071

def update!(**args)
  @passed_scans = args[:passed_scans] if args.key?(:passed_scans)
  @recommended_scans = args[:recommended_scans] if args.key?(:recommended_scans)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @uuid = args[:uuid] if args.key?(:uuid)
end