# 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/dataproc/property/batch_runtime_info_approximate_usage'
require 'google/dataproc/property/batch_runtime_info_current_usage'
require 'google/dataproc/property/batch_runtime_info_endpoints'
module GoogleInSpec
  module Dataproc
    module Property
      class BatchRuntimeInfo
        attr_reader :endpoints

        attr_reader :output_uri

        attr_reader :diagnostic_output_uri

        attr_reader :approximate_usage

        attr_reader :current_usage

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @endpoints = GoogleInSpec::Dataproc::Property::BatchRuntimeInfoEndpoints.new(args['endpoints'], to_s)
          @output_uri = args['outputUri']
          @diagnostic_output_uri = args['diagnosticOutputUri']
          @approximate_usage = GoogleInSpec::Dataproc::Property::BatchRuntimeInfoApproximateUsage.new(args['approximateUsage'], to_s)
          @current_usage = GoogleInSpec::Dataproc::Property::BatchRuntimeInfoCurrentUsage.new(args['currentUsage'], to_s)
        end

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