text: # Copyright (c) Microsoft Corporation.
  # Licensed under the Apache License 2.0.
  
  import urllib3
  
  from azext_aro.custom import rp_mode_development
  from azext_aro.vendored_sdks.azure.mgmt.redhatopenshift.v2021_09_01_preview import AzureRedHatOpenShiftClient
  from azure.cli.core.commands.client_factory import get_mgmt_service_client
  
  
  def cf_aro(cli_ctx, *_):
  
      opt_args = {}
  
      if rp_mode_development():
          opt_args = {
              "base_url": "https://localhost:8443/",
              "connection_verify": False
          }
          urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
  
      client = get_mgmt_service_client(cli_ctx,
                                       AzureRedHatOpenShiftClient,
                                       **opt_args).open_shift_clusters
  
      return client
  