Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: discovery/googleapis/cloudbilling__v1.json

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 }
8 }
9 }
10 },
11 "basePath": "",
12 "baseUrl": "https://cloudbilling.googleapis.com/",
13 "batchPath": "batch",
14 "description": "",
15 "discoveryVersion": "v1",
16 "documentationLink": "https://cloud.google.com/billing/",
17 "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/2xpTQokSmGy8pGl0PMKEH0hgYFg\"",
18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 },
22 "id": "cloudbilling:v1",
23 "kind": "discovery#restDescription",
24 "name": "cloudbilling",
25 "ownerDomain": "google.com",
26 "ownerName": "Google",
27 "parameters": {
28 "access_token": {
29 "description": "OAuth access token.",
30 "location": "query",
31 "type": "string"
32 },
33 "alt": {
34 "default": "json",
35 "description": "Data format for response.",
36 "enumDescriptions": [
37 "Responses with Content-Type of application/json",
38 "Media download with context-dependent Content-Type",
39 "Responses with Content-Type of application/x-protobuf"
40 ],
41 "location": "query",
42 "type": "string"
43 },
44 "bearer_token": {
45 "description": "OAuth bearer token.",
46 "location": "query",
47 "type": "string"
48 },
49 "callback": {
50 "description": "JSONP",
51 "location": "query",
52 "type": "string"
53 },
54 "fields": {
55 "description": "Selector specifying which fields to include in a par tial response.",
56 "location": "query",
57 "type": "string"
58 },
59 "key": {
60 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
61 "location": "query",
62 "type": "string"
63 },
64 "oauth_token": {
65 "description": "OAuth 2.0 token for the current user.",
66 "location": "query",
67 "type": "string"
68 },
69 "pp": {
70 "default": "true",
71 "description": "Pretty-print response.",
72 "location": "query",
73 "type": "boolean"
74 },
75 "prettyPrint": {
76 "default": "true",
77 "description": "Returns response with indentations and line breaks." ,
78 "location": "query",
79 "type": "boolean"
80 },
81 "quotaUser": {
82 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
83 "location": "query",
84 "type": "string"
85 },
86 "upload_protocol": {
87 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
88 "location": "query",
89 "type": "string"
90 },
91 "uploadType": {
92 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
93 "location": "query",
94 "type": "string"
95 },
96 "$.xgafv": {
97 "description": "V1 error format.",
98 "enumDescriptions": [
99 "v1 error format",
100 "v2 error format"
101 ],
102 "location": "query",
103 "type": "string"
104 }
105 },
106 "protocol": "rest",
107 "resources": {
108 "billingAccounts": {
109 "methods": {
110 "get": {
111 "description": "Gets information about a billing account. Th e current authenticated user must be an [owner of the billing account](https://s upport.google.com/cloud/answer/4430947).",
112 "httpMethod": "GET",
113 "id": "cloudbilling.billingAccounts.get",
114 "parameterOrder": [
115 "name"
116 ],
117 "parameters": {
118 "name": {
119 "description": "The resource name of the billing acc ount to retrieve. For example, `billingAccounts/012345-567890-ABCDEF`.",
120 "location": "path",
121 "pattern": "^billingAccounts/[^/]*$",
122 "required": true,
123 "type": "string"
124 }
125 },
126 "path": "v1/{+name}",
127 "response": {
128 "$ref": "BillingAccount"
129 },
130 "scopes": [
131 "https://www.googleapis.com/auth/cloud-platform"
132 ]
133 },
134 "list": {
135 "description": "Lists the billing accounts that the current authenticated user [owns](https://support.google.com/cloud/answer/4430947).",
136 "httpMethod": "GET",
137 "id": "cloudbilling.billingAccounts.list",
138 "parameters": {
139 "pageSize": {
140 "description": "Requested page size. The maximum pag e size is 100; this is also the default.",
141 "format": "int32",
142 "location": "query",
143 "type": "integer"
144 },
145 "pageToken": {
146 "description": "A token identifying a page of result s to return. This should be a `next_page_token` value returned from a previous ` ListBillingAccounts` call. If unspecified, the first page of results is returned .",
147 "location": "query",
148 "type": "string"
149 }
150 },
151 "path": "v1/billingAccounts",
152 "response": {
153 "$ref": "ListBillingAccountsResponse"
154 },
155 "scopes": [
156 "https://www.googleapis.com/auth/cloud-platform"
157 ]
158 }
159 },
160 "resources": {
161 "projects": {
162 "methods": {
163 "list": {
164 "description": "Lists the projects associated with a billing account. The current authenticated user must be an [owner of the billin g account](https://support.google.com/cloud/answer/4430947).",
165 "httpMethod": "GET",
166 "id": "cloudbilling.billingAccounts.projects.list",
167 "parameterOrder": [
168 "name"
169 ],
170 "parameters": {
171 "name": {
172 "description": "The resource name of the bil ling account associated with the projects that you want to list. For example, `b illingAccounts/012345-567890-ABCDEF`.",
173 "location": "path",
174 "pattern": "^billingAccounts/[^/]*$",
175 "required": true,
176 "type": "string"
177 },
178 "pageSize": {
179 "description": "Requested page size. The max imum page size is 100; this is also the default.",
180 "format": "int32",
181 "location": "query",
182 "type": "integer"
183 },
184 "pageToken": {
185 "description": "A token identifying a page o f results to be returned. This should be a `next_page_token` value returned from a previous `ListProjectBillingInfo` call. If unspecified, the first page of res ults is returned.",
186 "location": "query",
187 "type": "string"
188 }
189 },
190 "path": "v1/{+name}/projects",
191 "response": {
192 "$ref": "ListProjectBillingInfoResponse"
193 },
194 "scopes": [
195 "https://www.googleapis.com/auth/cloud-platform"
196 ]
197 }
198 }
199 }
200 }
201 },
202 "projects": {
203 "methods": {
204 "getBillingInfo": {
205 "description": "Gets the billing information for a project. The current authenticated user must have [permission to view the project](https: //cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).",
206 "httpMethod": "GET",
207 "id": "cloudbilling.projects.getBillingInfo",
208 "parameterOrder": [
209 "name"
210 ],
211 "parameters": {
212 "name": {
213 "description": "The resource name of the project for which billing information is retrieved. For example, `projects/tokyo-rain-123`. ",
214 "location": "path",
215 "pattern": "^projects/[^/]*$",
216 "required": true,
217 "type": "string"
218 }
219 },
220 "path": "v1/{+name}/billingInfo",
221 "response": {
222 "$ref": "ProjectBillingInfo"
223 },
224 "scopes": [
225 "https://www.googleapis.com/auth/cloud-platform"
226 ]
227 },
228 "updateBillingInfo": {
229 "description": "Sets or updates the billing account associat ed with a project. You specify the new billing account by setting the `billing_a ccount_name` in the `ProjectBillingInfo` resource to the resource name of a bill ing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource us age charges. *Note:* Incurred charges that have not yet been reported in the tra nsaction history of the Google Developers Console may be billed to the new billi ng account, even if the charge occurred before the new billing account was assig ned to the project. The current authenticated user must have ownership privilege s for both the [project](https://cloud.google.com/docs/permissions-overview#h.bg s0oxofvnoo ) and the [billing account](https://support.google.com/cloud/answer/4 430947). You can disable billing on the project by setting the `billing_account_ name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date wil l be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for t he project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resourc es used by the project will be shut down. Thus, unless you wish to disable billi ng, you should always call this method with the name of an *open* billing accoun t.",
230 "httpMethod": "PUT",
231 "id": "cloudbilling.projects.updateBillingInfo",
232 "parameterOrder": [
233 "name"
234 ],
235 "parameters": {
236 "name": {
237 "description": "The resource name of the project ass ociated with the billing information that you want to update. For example, `proj ects/tokyo-rain-123`.",
238 "location": "path",
239 "pattern": "^projects/[^/]*$",
240 "required": true,
241 "type": "string"
242 }
243 },
244 "path": "v1/{+name}/billingInfo",
245 "request": {
246 "$ref": "ProjectBillingInfo"
247 },
248 "response": {
249 "$ref": "ProjectBillingInfo"
250 },
251 "scopes": [
252 "https://www.googleapis.com/auth/cloud-platform"
253 ]
254 }
255 }
256 }
257 },
258 "revision": "20150812",
259 "rootUrl": "https://cloudbilling.googleapis.com/",
260 "schemas": {
261 "BillingAccount": {
262 "description": "A billing account in [Google Developers Console](htt ps://console.developers.google.com/). You can assign a billing account to one or more projects.",
263 "id": "BillingAccount",
264 "properties": {
265 "name": {
266 "description": "The resource name of the billing account. Th e resource name has the form `billingAccounts/{billing_account_id}`. For example , `billingAccounts/012345-567890-ABCDEF` would be the resource name for billing account `012345-567890-ABCDEF`.",
267 "type": "string"
268 },
269 "open": {
270 "description": "True if the billing account is open, and wil l therefore be charged for any usage on associated projects. False if the billin g account is closed, and therefore projects associated with it will be unable to use paid services.",
271 "type": "boolean"
272 },
273 "displayName": {
274 "description": "The display name given to the billing accoun t, such as `My Billing Account`. This name is displayed in the Google Developers Console.",
275 "type": "string"
276 }
277 },
278 "type": "object"
279 },
280 "ListBillingAccountsResponse": {
281 "description": "Response message for `ListBillingAccounts`.",
282 "id": "ListBillingAccountsResponse",
283 "properties": {
284 "billingAccounts": {
285 "description": "A list of billing accounts.",
286 "items": {
287 "$ref": "BillingAccount"
288 },
289 "type": "array"
290 },
291 "nextPageToken": {
292 "description": "A token to retrieve the next page of results . To retrieve the next page, call `ListBillingAccounts` again with the `page_tok en` field set to this value. This field is empty if there are no more results to retrieve.",
293 "type": "string"
294 }
295 },
296 "type": "object"
297 },
298 "ListProjectBillingInfoResponse": {
299 "description": "Request message for `ListProjectBillingInfoResponse` .",
300 "id": "ListProjectBillingInfoResponse",
301 "properties": {
302 "projectBillingInfo": {
303 "description": "A list of `ProjectBillingInfo` resources rep resenting the projects associated with the billing account.",
304 "items": {
305 "$ref": "ProjectBillingInfo"
306 },
307 "type": "array"
308 },
309 "nextPageToken": {
310 "description": "A token to retrieve the next page of results . To retrieve the next page, call `ListProjectBillingInfo` again with the `page_ token` field set to this value. This field is empty if there are no more results to retrieve.",
311 "type": "string"
312 }
313 },
314 "type": "object"
315 },
316 "ProjectBillingInfo": {
317 "description": "Encapsulation of billing information for a Developer s Console project. A project has at most one associated billing account at a tim e (but a billing account can be assigned to multiple projects).",
318 "id": "ProjectBillingInfo",
319 "properties": {
320 "name": {
321 "description": "The resource name for the `ProjectBillingInf o`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects /tokyo-rain-123/billingInfo`. This field is read-only.",
322 "type": "string"
323 },
324 "projectId": {
325 "description": "The ID of the project that this `ProjectBill ingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so th at you don't need to parse the `name` field to obtain a project ID. This field i s read-only.",
326 "type": "string"
327 },
328 "billingAccountName": {
329 "description": "The resource name of the billing account ass ociated with the project, if any. For example, `billingAccounts/012345-567890-AB CDEF`.",
330 "type": "string"
331 },
332 "billingEnabled": {
333 "description": "True if the project is associated with an op en billing account, to which usage on the project is charged. False if the proje ct is associated with a closed billing account, or no billing account at all, an d therefore cannot use paid services. This field is read-only.",
334 "type": "boolean"
335 }
336 },
337 "type": "object"
338 }
339 },
340 "servicePath": "",
341 "title": "Google Cloud Billing API",
342 "version": "v1"
343 }
OLDNEW
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698