# 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/run/property/job_template_template_containers_resources_limits'
module GoogleInSpec
  module Run
    module Property
      class JobTemplateTemplateContainersResources
        attr_reader :limits

        attr_reader :cpu_idle

        attr_reader :startup_cpu_boost

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @limits = GoogleInSpec::Run::Property::JobTemplateTemplateContainersResourcesLimits.new(args['limits'], to_s)
          @cpu_idle = args['cpuIdle']
          @startup_cpu_boost = args['startupCpuBoost']
        end

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