def create_gcp_connector(api, configuration, api_version, api_exception, name, service_account):
    """ Creates a GCP connector.
    :param api              The Deep Security API exports.
    :param configuration    The configuration object to pass to the API client.
    :param api_version      The API version to use.
    :param api_exception    The Deep Security API exception module.
    :param name             The name of the GCP connector.
    :param service_account  The GCP service account used by the GCP connector.
    :return                 The created GCP connector object which contains the created GCP connector ID information.
    """
    
    # Create a GCP connector object
    api_instance = api.GCPConnectorsApi(api.ApiClient(configuration))
    gcp_connector = api.GCPConnector()
    
    # Set the GCP connector properties
    gcp_connector.name = name
    gcp_connector.service_account = service_account
    try:
        # Call create_gcp_connector API to create the GCP connector
        api_response = api_instance.create_gcp_connector(gcp_connector, api_version)
        return api_response
    except api_exception as e:
        print("An exception occurred when calling GCPConnectorsApi.create_google_connector: %s\n" % e)