# 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/datafusion/property/instance_network_config_private_service_connect_config'
module GoogleInSpec
  module DataFusion
    module Property
      class InstanceNetworkConfig
        attr_reader :network

        attr_reader :ip_allocation

        attr_reader :connection_type

        attr_reader :private_service_connect_config

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @network = args['network']
          @ip_allocation = args['ipAllocation']
          @connection_type = args['connectionType']
          @private_service_connect_config = GoogleInSpec::DataFusion::Property::InstanceNetworkConfigPrivateServiceConnectConfig.new(args['privateServiceConnectConfig'], to_s)
        end

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