When using Python SDK to get the spectrum list, no Argo information is returned

未关闭
#2,676 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
api

调研方向

首先,使用 client.spectrum.apps.list 针对 UDP 应用重现该问题,并将其返回的属性与 TCP 应用的返回属性进行比较。阅读 issue 中链接的 Spectrum 配置文档,并检查 Python SDK 如何映射列表响应。当 UDP 响应以与 API 和文档一致的方式公开可用的 Argo 信息时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Confirm this is a Python library issue and not an underlying Cloudflare API issue.
  • This is an issue with the Python library
Describe the bug

When using the Python SDK to retrieve the spectrum list, no Argo information is returned:
When the app is TCP type, the argo_smart_routing attribute is returned, but when the app is UDP type, this attribute is not returned. How can I retrieve the Argo information for this app?

The documentation at https://developers.cloudflare.com/spectrum/reference/configuration-options/#argo-smart-routing indicates that Argo is currently a UDP beta version, meaning that Argo is currently available for UDP.

However, in the Python SDK, when getting (not creating or setting) spectrum app properties, Argo information is not returned.

To Reproduce

1、use client.spectrum.apps.list get udp app info

Code snippets

OS

linux

Python version

3.9.0

Library version

v4.2.0

主要语言
Python
星标
509
派生
150
平均合并
3 小时 15 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudflare/cloudflare-python 的其他 Issue

查看 cloudflare/cloudflare-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。