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 概览