...

Text file src/google.golang.org/api/google-api-go-generator/testdata/paging.json

Documentation: google.golang.org/api/google-api-go-generator/testdata

     1{
     2 "id": "cloudresourcemanager:v1",
     3 "name": "cloudresourcemanager",
     4 "canonicalName": "Cloud Resource Manager",
     5 "version": "v1",
     6 "revision": "20160927",
     7 "title": "Google Cloud Resource Manager API",
     8 "documentationLink": "https://cloud.google.com/resource-manager",
     9 "protocol": "rest",
    10 "baseUrl": "https://cloudresourcemanager.googleapis.com/",
    11 "basePath": "",
    12 "rootUrl": "https://cloudresourcemanager.googleapis.com/",
    13 "servicePath": "",
    14 "schemas": {
    15  "Operation": {
    16   "id": "Operation",
    17   "type": "object",
    18   "properties": {
    19    "name": {
    20     "type": "string"
    21    }
    22   }
    23  },
    24  "SearchOrganizationsRequest": {
    25   "id": "SearchOrganizationsRequest",
    26   "type": "object",
    27   "properties": {
    28    "pageSize": {
    29     "type": "integer",
    30     "description": "The maximum number of Organizations to return in the response. This field is optional.",
    31     "format": "int32"
    32    },
    33    "pageToken": {
    34     "type": "string"
    35    },
    36    "filter": {
    37     "type": "string"
    38    }
    39   }
    40  },
    41  "SearchOrganizationsResponse": {
    42   "id": "SearchOrganizationsResponse",
    43   "type": "object",
    44   "properties": {
    45    "organizations": {
    46     "type": "array",
    47     "items": {
    48      "$ref": "Organization"
    49     }
    50    },
    51    "nextPageToken": {
    52     "type": "string"
    53    }
    54   }
    55  },
    56  "Organization": {
    57   "id": "Organization",
    58   "type": "object",
    59   "properties": {
    60    "name": {
    61     "type": "string"
    62    }
    63   }
    64  },
    65  "Project": {
    66   "id": "Project",
    67   "type": "object",
    68   "properties": {
    69    "projectId": {
    70     "type": "string"
    71    }
    72   }
    73  },
    74  "ListProjectsResponse": {
    75   "id": "ListProjectsResponse",
    76   "type": "object",
    77   "properties": {
    78    "projects": {
    79     "type": "array",
    80     "items": {
    81      "$ref": "Project"
    82     }
    83    },
    84    "nextPageToken": {
    85     "type": "string"
    86    }
    87   }
    88  }
    89 },
    90 "resources": {
    91  "projects": {
    92   "methods": {
    93    "yes1": {
    94     "id": "cloudresourcemanager.organizations.search",
    95     "path": "v1/organizations:search",
    96     "httpMethod": "POST",
    97     "request": {
    98      "$ref": "SearchOrganizationsRequest"
    99     },
   100     "response": {
   101      "$ref": "SearchOrganizationsResponse"
   102     }
   103    },
   104    "yes2": {
   105     "id": "cloudresourcemanager.projects.list",
   106     "path": "v1/projects",
   107     "httpMethod": "GET",
   108     "parameters": {
   109      "pageToken": {
   110       "type": "string",
   111       "location": "query"
   112      },
   113      "pageSize": {
   114       "type": "integer",
   115       "format": "int32",
   116       "location": "query"
   117      },
   118      "filter": {
   119       "type": "string",
   120       "location": "query"
   121      }
   122     },
   123     "response": {
   124      "$ref": "ListProjectsResponse"
   125     }
   126    },
   127    "no": {
   128     "id": "cloudresourcemanager.operations.get",
   129     "path": "v1/{+name}",
   130     "httpMethod": "GET",
   131     "parameters": {
   132      "name": {
   133       "type": "string",
   134       "required": true,
   135       "pattern": "^operations/.*$",
   136       "location": "path"
   137      }
   138     },
   139     "parameterOrder": [
   140      "name"
   141     ],
   142     "response": {
   143      "$ref": "Operation"
   144     }
   145    }
   146   }
   147  }
   148 }
   149}

View as plain text