# 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/regioncommitment_reservations_share_settings_folder_map'
require 'google/compute/property/regioncommitment_reservations_share_settings_project_map'
module GoogleInSpec
  module Compute
    module Property
      class RegionCommitmentReservationsShareSettings
        attr_reader :share_type

        attr_reader :projects

        attr_reader :project_map

        attr_reader :folder_map

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @share_type = args['shareType']
          @projects = args['projects']
          @project_map = GoogleInSpec::Compute::Property::RegionCommitmentReservationsShareSettingsProjectMap.new(args['projectMap'], to_s)
          @folder_map = GoogleInSpec::Compute::Property::RegionCommitmentReservationsShareSettingsFolderMap.new(args['folderMap'], to_s)
        end

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