Method: operators.planGroups.create

允许移动运营商(通过其唯一的自治系统编号 (ASN) 识别)添加新的 PlanGroup 条目。

HTTP 请求

POST https://mobiledataplansharing.googleapis.com/v1/{parent=operators/*}/planGroups

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

父级资源的资源名称,格式如下:operators/{asn_id}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "planGroupId": string,
  "planGroup": {
    object (PlanGroup)
  }
}
字段
planGroupId

string

PlanGroupId,用于唯一标识移动网络运营商的订阅者。例如,planGroupId 可以是电台国际订阅者目录编号 (MSISDN),也可以是 MSISDN 的加密版本。

planGroup

object (PlanGroup)

要创建的 PlanGroup 资源。

响应正文

如果成功,响应正文将包含结构如下的数据:

PlanGroup 包含用户购买的所有顶级移动服务软件包的详细信息。

JSON 表示法
{
  "name": string,
  "dataPlans": [
    {
      object (Plan)
    }
  ],
  "responseStaleTime": string,
  "lastUpdatedTime": string
}
字段
name

string

方案组的资源名称,格式如下:operators/{asn_id}/planGroups/{planGroupId}。创建 PlanGroup 条目时,系统会忽略该名称。

dataPlans[]

object (Plan)

此用户拥有的数据计划列表。

responseStaleTime

string (Timestamp format)

共享方案群组信息过时的时间。在此之后,PlanGroup 将不再提供给应用。

时间戳采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,分辨率为纳秒级,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

lastUpdatedTime

string (Timestamp format)

流量套餐代理 (DPA) 从后端系统提取流量套餐状态信息的时间。用于确定流量套餐状态信息的新近度。

时间戳采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,分辨率为纳秒级,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/dataplansharing

如需了解详情,请参阅 OAuth 2.0 概览