# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/compute/property/reservation_specific_reservation_instance_properties'
require 'google/compute/property/reservation_specific_reservation_instance_properties_guest_accelerators'
require 'google/compute/property/reservation_specific_reservation_instance_properties_local_ssds'
module GoogleInSpec
  module Compute
    module Property
      class ReservationSpecificReservation
        attr_reader :instance_properties

        attr_reader :count

        attr_reader :in_use_count

        attr_reader :assured_count

        attr_reader :source_instance_template

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @instance_properties = GoogleInSpec::Compute::Property::ReservationSpecificReservationInstanceProperties.new(args['instanceProperties'], to_s)
          @count = args['count']
          @in_use_count = args['inUseCount']
          @assured_count = args['assuredCount']
          @source_instance_template = args['sourceInstanceTemplate']
        end

        def to_s
          "#{@parent_identifier} ReservationSpecificReservation"
        end
      end
    end
  end
end
