@@ -24,23 +24,6 @@ module API
2424 class EndpointSpec
2525 include EndpointSpecifics
2626
27- # These APIs are private, but were added in 8.x since the generator didn't consider
28- # visibility. They will be removed in 9.x since we're using a different generator that
29- # considers visibility. But new private APIs code won't be generated for the client.
30- EXCLUDED_8X = [
31- 'autoscaling.delete_autoscaling_policy' , 'autoscaling.get_autoscaling_capacity' ,
32- 'autoscaling.get_autoscaling_policy' , 'autoscaling.put_autoscaling_policy' , 'capabilities' ,
33- 'connector.secret_delete' , 'connector.secret_get' , 'connector.secret_post' ,
34- 'connector.secret_put' , 'fleet.delete_secret' , 'fleet.get_secret' , 'fleet.post_secret' ,
35- 'ml.validate' , 'ml.validate_detector' , 'monitoring.bulk' , 'profiling.flamegraph' ,
36- 'profiling.stacktraces' , 'profiling.status' , 'profiling.topn_functions' ,
37- 'security.activate_user_profile' , 'security.disable_user_profile' ,
38- 'security.enable_user_profile' , 'security.get_user_profile' ,
39- 'security.has_privileges_user_profile' , 'security.suggest_user_profiles' ,
40- 'security.update_user_profile_data' , 'shutdown.delete_node' , 'shutdown.get_node' ,
41- 'shutdown.put_node'
42- ] . freeze
43-
4427 def initialize ( filepath )
4528 @path = Pathname ( filepath )
4629 json = MultiJson . load ( File . read ( @path ) )
@@ -93,9 +76,7 @@ def visibility
9376 end
9477
9578 def skippable?
96- return true if module_namespace . flatten . first == '_internal'
97-
98- visibility != 'public' && !EXCLUDED_8X . include? ( endpoint_name )
79+ module_namespace . flatten . first == '_internal' || visibility != 'public'
9980 end
10081
10182 # Function that adds the listified h param code
0 commit comments