# 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/machineimage_source_instance_properties_disks'
require 'google/compute/property/machineimage_source_instance_properties_guest_accelerators'
require 'google/compute/property/machineimage_source_instance_properties_labels'
require 'google/compute/property/machineimage_source_instance_properties_metadata'
require 'google/compute/property/machineimage_source_instance_properties_metadata_items'
require 'google/compute/property/machineimage_source_instance_properties_network_interfaces'
require 'google/compute/property/machineimage_source_instance_properties_scheduling'
require 'google/compute/property/machineimage_source_instance_properties_scheduling_local_ssd_recovery_timeout'
require 'google/compute/property/machineimage_source_instance_properties_scheduling_node_affinities'
require 'google/compute/property/machineimage_source_instance_properties_service_accounts'
require 'google/compute/property/machineimage_source_instance_properties_tags'
module GoogleInSpec
  module Compute
    module Property
      class MachineImageSourceInstanceProperties
        attr_reader :description

        attr_reader :tags

        attr_reader :machine_type

        attr_reader :can_ip_forward

        attr_reader :network_interfaces

        attr_reader :disks

        attr_reader :metadata

        attr_reader :service_accounts

        attr_reader :scheduling

        attr_reader :labels

        attr_reader :guest_accelerators

        attr_reader :min_cpu_platform

        attr_reader :deletion_protection

        attr_reader :key_revocation_action_type

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @description = args['description']
          @tags = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesTags.new(args['tags'], to_s)
          @machine_type = args['machineType']
          @can_ip_forward = args['canIpForward']
          @network_interfaces = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesNetworkInterfacesArray.parse(args['networkInterfaces'], to_s)
          @disks = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesDisksArray.parse(args['disks'], to_s)
          @metadata = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesMetadata.new(args['metadata'], to_s)
          @service_accounts = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesServiceAccountsArray.parse(args['serviceAccounts'], to_s)
          @scheduling = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesScheduling.new(args['scheduling'], to_s)
          @labels = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesLabels.new(args['labels'], to_s)
          @guest_accelerators = GoogleInSpec::Compute::Property::MachineImageSourceInstancePropertiesGuestAcceleratorsArray.parse(args['guestAccelerators'], to_s)
          @min_cpu_platform = args['minCpuPlatform']
          @deletion_protection = args['deletionProtection']
          @key_revocation_action_type = args['keyRevocationActionType']
        end

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