OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/service.management": { |
| 6 "description": "Manage your Google API service configuration
" |
| 7 }, |
5 "https://www.googleapis.com/auth/service.management.readonly": { | 8 "https://www.googleapis.com/auth/service.management.readonly": { |
6 "description": "View your Google API service configuration" | 9 "description": "View your Google API service configuration" |
7 }, | 10 }, |
8 "https://www.googleapis.com/auth/cloud-platform.read-only": { | 11 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
9 "description": "View your data across Google Cloud Platform
services" | 12 "description": "View your data across Google Cloud Platform
services" |
10 }, | 13 }, |
11 "https://www.googleapis.com/auth/cloud-platform": { | 14 "https://www.googleapis.com/auth/cloud-platform": { |
12 "description": "View and manage your data across Google Clou
d Platform services" | 15 "description": "View and manage your data across Google Clou
d Platform services" |
13 }, | |
14 "https://www.googleapis.com/auth/service.management": { | |
15 "description": "Manage your Google API service configuration
" | |
16 } | 16 } |
17 } | 17 } |
18 } | 18 } |
19 }, | 19 }, |
20 "basePath": "", | 20 "basePath": "", |
21 "baseUrl": "https://servicemanagement.googleapis.com/", | 21 "baseUrl": "https://servicemanagement.googleapis.com/", |
22 "batchPath": "batch", | 22 "batchPath": "batch", |
23 "canonicalName": "Service Management", | 23 "canonicalName": "Service Management", |
24 "description": "Google Service Management allows service producers to publis
h their services on Google Cloud Platform so that they can be discovered and use
d by service consumers.", | 24 "description": "Google Service Management allows service producers to publis
h their services on Google Cloud Platform so that they can be discovered and use
d by service consumers.", |
25 "discoveryVersion": "v1", | 25 "discoveryVersion": "v1", |
26 "documentationLink": "https://cloud.google.com/service-management/", | 26 "documentationLink": "https://cloud.google.com/service-management/", |
27 "icons": { | 27 "icons": { |
28 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 28 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
29 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 29 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
30 }, | 30 }, |
31 "id": "servicemanagement:v1", | 31 "id": "servicemanagement:v1", |
32 "kind": "discovery#restDescription", | 32 "kind": "discovery#restDescription", |
33 "name": "servicemanagement", | 33 "name": "servicemanagement", |
34 "ownerDomain": "google.com", | 34 "ownerDomain": "google.com", |
35 "ownerName": "Google", | 35 "ownerName": "Google", |
36 "parameters": { | 36 "parameters": { |
37 "quotaUser": { | |
38 "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.", | |
39 "location": "query", | |
40 "type": "string" | |
41 }, | |
42 "pp": { | 37 "pp": { |
43 "default": "true", | 38 "default": "true", |
44 "description": "Pretty-print response.", | 39 "description": "Pretty-print response.", |
45 "location": "query", | 40 "location": "query", |
46 "type": "boolean" | 41 "type": "boolean" |
47 }, | 42 }, |
48 "oauth_token": { | 43 "oauth_token": { |
49 "description": "OAuth 2.0 token for the current user.", | 44 "description": "OAuth 2.0 token for the current user.", |
50 "location": "query", | 45 "location": "query", |
51 "type": "string" | 46 "type": "string" |
52 }, | 47 }, |
53 "bearer_token": { | 48 "bearer_token": { |
54 "description": "OAuth bearer token.", | 49 "description": "OAuth bearer token.", |
55 "location": "query", | 50 "location": "query", |
56 "type": "string" | 51 "type": "string" |
57 }, | 52 }, |
58 "upload_protocol": { | 53 "upload_protocol": { |
59 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 54 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
60 "location": "query", | 55 "location": "query", |
61 "type": "string" | 56 "type": "string" |
62 }, | 57 }, |
63 "prettyPrint": { | 58 "prettyPrint": { |
64 "default": "true", | 59 "default": "true", |
65 "description": "Returns response with indentations and line breaks."
, | 60 "description": "Returns response with indentations and line breaks."
, |
66 "location": "query", | 61 "location": "query", |
67 "type": "boolean" | 62 "type": "boolean" |
68 }, | 63 }, |
| 64 "uploadType": { |
| 65 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 66 "location": "query", |
| 67 "type": "string" |
| 68 }, |
69 "fields": { | 69 "fields": { |
70 "description": "Selector specifying which fields to include in a par
tial response.", | 70 "description": "Selector specifying which fields to include in a par
tial response.", |
71 "location": "query", | 71 "location": "query", |
72 "type": "string" | 72 "type": "string" |
73 }, | 73 }, |
74 "uploadType": { | |
75 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
76 "location": "query", | |
77 "type": "string" | |
78 }, | |
79 "callback": { | 74 "callback": { |
80 "description": "JSONP", | 75 "description": "JSONP", |
81 "location": "query", | 76 "location": "query", |
82 "type": "string" | 77 "type": "string" |
83 }, | 78 }, |
84 "$.xgafv": { | 79 "$.xgafv": { |
85 "description": "V1 error format.", | 80 "description": "V1 error format.", |
86 "enum": [ | 81 "enum": [ |
87 "1", | 82 "1", |
88 "2" | 83 "2" |
(...skipping 14 matching lines...) Loading... |
103 "proto" | 98 "proto" |
104 ], | 99 ], |
105 "enumDescriptions": [ | 100 "enumDescriptions": [ |
106 "Responses with Content-Type of application/json", | 101 "Responses with Content-Type of application/json", |
107 "Media download with context-dependent Content-Type", | 102 "Media download with context-dependent Content-Type", |
108 "Responses with Content-Type of application/x-protobuf" | 103 "Responses with Content-Type of application/x-protobuf" |
109 ], | 104 ], |
110 "location": "query", | 105 "location": "query", |
111 "type": "string" | 106 "type": "string" |
112 }, | 107 }, |
| 108 "access_token": { |
| 109 "description": "OAuth access token.", |
| 110 "location": "query", |
| 111 "type": "string" |
| 112 }, |
113 "key": { | 113 "key": { |
114 "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.", | 114 "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.", |
115 "location": "query", | 115 "location": "query", |
116 "type": "string" | 116 "type": "string" |
117 }, | 117 }, |
118 "access_token": { | 118 "quotaUser": { |
119 "description": "OAuth access token.", | 119 "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.", |
120 "location": "query", | 120 "location": "query", |
121 "type": "string" | 121 "type": "string" |
122 } | 122 } |
123 }, | 123 }, |
124 "protocol": "rest", | 124 "protocol": "rest", |
125 "resources": { | 125 "resources": { |
126 "operations": { | 126 "operations": { |
127 "methods": { | 127 "methods": { |
128 "get": { | 128 "get": { |
129 "description": "Gets the latest state of a long-running oper
ation. Clients can use this\nmethod to poll the operation result at intervals a
s recommended by the API\nservice.", | 129 "description": "Gets the latest state of a long-running oper
ation. Clients can use this\nmethod to poll the operation result at intervals a
s recommended by the API\nservice.", |
(...skipping 19 matching lines...) Loading... |
149 "https://www.googleapis.com/auth/cloud-platform", | 149 "https://www.googleapis.com/auth/cloud-platform", |
150 "https://www.googleapis.com/auth/service.management" | 150 "https://www.googleapis.com/auth/service.management" |
151 ] | 151 ] |
152 }, | 152 }, |
153 "list": { | 153 "list": { |
154 "description": "Lists service operations that match the spec
ified filter in the request.", | 154 "description": "Lists service operations that match the spec
ified filter in the request.", |
155 "httpMethod": "GET", | 155 "httpMethod": "GET", |
156 "id": "servicemanagement.operations.list", | 156 "id": "servicemanagement.operations.list", |
157 "parameterOrder": [], | 157 "parameterOrder": [], |
158 "parameters": { | 158 "parameters": { |
| 159 "pageToken": { |
| 160 "description": "The standard list page token.", |
| 161 "location": "query", |
| 162 "type": "string" |
| 163 }, |
| 164 "name": { |
| 165 "description": "Not used.", |
| 166 "location": "query", |
| 167 "type": "string" |
| 168 }, |
159 "pageSize": { | 169 "pageSize": { |
160 "description": "The maximum number of operations to
return. If unspecified, defaults to\n50. The maximum value is 100.", | 170 "description": "The maximum number of operations to
return. If unspecified, defaults to\n50. The maximum value is 100.", |
161 "format": "int32", | 171 "format": "int32", |
162 "location": "query", | 172 "location": "query", |
163 "type": "integer" | 173 "type": "integer" |
164 }, | 174 }, |
165 "filter": { | 175 "filter": { |
166 "description": "A string for filtering Operations.\n
The following filter fields are supported:\n\n * serviceName: Require
d. Only `=` operator is allowed.\n * startTime: The time this job was start
ed, in ISO 8601 format.\n Allowed operators are `>=`, `>`, `<=`, and `<`.\n
* status: Can be `done`, `in_progress`, or `failed`. Allowed\n operators
are `=`, and `!=`.\n\n Filter expression supports conjunction (AND) and disjun
ction (OR)\n logical operators. However, the serviceName restriction must be at
the\n top-level and can only be combined with other restrictions via the AND\n
logical operator.\n\n Examples:\n\n * `serviceName={some-service}.google
apis.com`\n * `serviceName={some-service}.googleapis.com AND startTime>=\"2017-
02-01\"`\n * `serviceName={some-service}.googleapis.com AND status=done`\n * `
serviceName={some-service}.googleapis.com AND (status=done OR startTime>=\"2017-
02-01\")`", | 176 "description": "A string for filtering Operations.\n
The following filter fields are supported:\n\n * serviceName: Require
d. Only `=` operator is allowed.\n * startTime: The time this job was start
ed, in ISO 8601 format.\n Allowed operators are `>=`, `>`, `<=`, and `<`.\n
* status: Can be `done`, `in_progress`, or `failed`. Allowed\n operators
are `=`, and `!=`.\n\n Filter expression supports conjunction (AND) and disjun
ction (OR)\n logical operators. However, the serviceName restriction must be at
the\n top-level and can only be combined with other restrictions via the AND\n
logical operator.\n\n Examples:\n\n * `serviceName={some-service}.google
apis.com`\n * `serviceName={some-service}.googleapis.com AND startTime>=\"2017-
02-01\"`\n * `serviceName={some-service}.googleapis.com AND status=done`\n * `
serviceName={some-service}.googleapis.com AND (status=done OR startTime>=\"2017-
02-01\")`", |
167 "location": "query", | 177 "location": "query", |
168 "type": "string" | 178 "type": "string" |
169 }, | |
170 "pageToken": { | |
171 "description": "The standard list page token.", | |
172 "location": "query", | |
173 "type": "string" | |
174 }, | |
175 "name": { | |
176 "description": "Not used.", | |
177 "location": "query", | |
178 "type": "string" | |
179 } | 179 } |
180 }, | 180 }, |
181 "path": "v1/operations", | 181 "path": "v1/operations", |
182 "response": { | 182 "response": { |
183 "$ref": "ListOperationsResponse" | 183 "$ref": "ListOperationsResponse" |
184 }, | 184 }, |
185 "scopes": [ | 185 "scopes": [ |
186 "https://www.googleapis.com/auth/cloud-platform", | 186 "https://www.googleapis.com/auth/cloud-platform", |
187 "https://www.googleapis.com/auth/service.management" | 187 "https://www.googleapis.com/auth/service.management" |
188 ] | 188 ] |
189 } | 189 } |
190 } | 190 } |
191 }, | 191 }, |
192 "services": { | 192 "services": { |
193 "methods": { | 193 "methods": { |
194 "setIamPolicy": { | |
195 "description": "Sets the access control policy on the specif
ied resource. Replaces any\nexisting policy.", | |
196 "httpMethod": "POST", | |
197 "id": "servicemanagement.services.setIamPolicy", | |
198 "parameterOrder": [ | |
199 "resource" | |
200 ], | |
201 "parameters": { | |
202 "resource": { | |
203 "description": "REQUIRED: The resource for which the
policy is being specified.\nSee the operation documentation for the appropriate
value for this field.", | |
204 "location": "path", | |
205 "pattern": "^services/[^/]+$", | |
206 "required": true, | |
207 "type": "string" | |
208 } | |
209 }, | |
210 "path": "v1/{+resource}:setIamPolicy", | |
211 "request": { | |
212 "$ref": "SetIamPolicyRequest" | |
213 }, | |
214 "response": { | |
215 "$ref": "Policy" | |
216 }, | |
217 "scopes": [ | |
218 "https://www.googleapis.com/auth/cloud-platform", | |
219 "https://www.googleapis.com/auth/service.management" | |
220 ] | |
221 }, | |
222 "disable": { | |
223 "description": "Disables a service for a project, so it can
no longer be\nbe used for the project. It prevents accidental usage that may cau
se\nunexpected billing charges or security leaks.\n\nOperation<response: Disable
ServiceResponse>", | |
224 "httpMethod": "POST", | |
225 "id": "servicemanagement.services.disable", | |
226 "parameterOrder": [ | |
227 "serviceName" | |
228 ], | |
229 "parameters": { | |
230 "serviceName": { | |
231 "description": "Name of the service to disable. Spec
ifying an unknown service name\nwill cause the request to fail.", | |
232 "location": "path", | |
233 "required": true, | |
234 "type": "string" | |
235 } | |
236 }, | |
237 "path": "v1/services/{serviceName}:disable", | |
238 "request": { | |
239 "$ref": "DisableServiceRequest" | |
240 }, | |
241 "response": { | |
242 "$ref": "Operation" | |
243 }, | |
244 "scopes": [ | |
245 "https://www.googleapis.com/auth/cloud-platform", | |
246 "https://www.googleapis.com/auth/service.management" | |
247 ] | |
248 }, | |
249 "getIamPolicy": { | |
250 "description": "Gets the access control policy for a resourc
e.\nReturns an empty policy if the resource exists and does not have a policy\ns
et.", | |
251 "httpMethod": "POST", | |
252 "id": "servicemanagement.services.getIamPolicy", | |
253 "parameterOrder": [ | |
254 "resource" | |
255 ], | |
256 "parameters": { | |
257 "resource": { | |
258 "description": "REQUIRED: The resource for which the
policy is being requested.\nSee the operation documentation for the appropriate
value for this field.", | |
259 "location": "path", | |
260 "pattern": "^services/[^/]+$", | |
261 "required": true, | |
262 "type": "string" | |
263 } | |
264 }, | |
265 "path": "v1/{+resource}:getIamPolicy", | |
266 "request": { | |
267 "$ref": "GetIamPolicyRequest" | |
268 }, | |
269 "response": { | |
270 "$ref": "Policy" | |
271 }, | |
272 "scopes": [ | |
273 "https://www.googleapis.com/auth/cloud-platform", | |
274 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | |
275 "https://www.googleapis.com/auth/service.management", | |
276 "https://www.googleapis.com/auth/service.management.read
only" | |
277 ] | |
278 }, | |
279 "undelete": { | |
280 "description": "Revives a previously deleted managed service
. The method restores the\nservice using the configuration at the time the servi
ce was deleted.\nThe target service must exist and must have been deleted within
the\nlast 30 days.\n\nOperation<response: UndeleteServiceResponse>", | |
281 "httpMethod": "POST", | |
282 "id": "servicemanagement.services.undelete", | |
283 "parameterOrder": [ | |
284 "serviceName" | |
285 ], | |
286 "parameters": { | |
287 "serviceName": { | |
288 "description": "The name of the service. See the [ov
erview](/service-management/overview)\nfor naming requirements. For example: `ex
ample.googleapis.com`.", | |
289 "location": "path", | |
290 "required": true, | |
291 "type": "string" | |
292 } | |
293 }, | |
294 "path": "v1/services/{serviceName}:undelete", | |
295 "response": { | |
296 "$ref": "Operation" | |
297 }, | |
298 "scopes": [ | |
299 "https://www.googleapis.com/auth/cloud-platform", | |
300 "https://www.googleapis.com/auth/service.management" | |
301 ] | |
302 }, | |
303 "list": { | 194 "list": { |
304 "description": "Lists managed services.\n\nReturns all publi
c services. For authenticated users, also returns all\nservices the calling user
has \"servicemanagement.services.get\" permission\nfor.\n\n**BETA:** If the cal
ler specifies the `consumer_id`, it returns only the\nservices enabled on the co
nsumer. The `consumer_id` must have the format\nof \"project:{PROJECT-ID}\".", | 195 "description": "Lists managed services.\n\nReturns all publi
c services. For authenticated users, also returns all\nservices the calling user
has \"servicemanagement.services.get\" permission\nfor.\n\n**BETA:** If the cal
ler specifies the `consumer_id`, it returns only the\nservices enabled on the co
nsumer. The `consumer_id` must have the format\nof \"project:{PROJECT-ID}\".", |
305 "httpMethod": "GET", | 196 "httpMethod": "GET", |
306 "id": "servicemanagement.services.list", | 197 "id": "servicemanagement.services.list", |
307 "parameterOrder": [], | 198 "parameterOrder": [], |
308 "parameters": { | 199 "parameters": { |
309 "pageSize": { | |
310 "description": "Requested size of the next page of d
ata.", | |
311 "format": "int32", | |
312 "location": "query", | |
313 "type": "integer" | |
314 }, | |
315 "producerProjectId": { | 200 "producerProjectId": { |
316 "description": "Include services produced by the spe
cified project.", | 201 "description": "Include services produced by the spe
cified project.", |
317 "location": "query", | 202 "location": "query", |
318 "type": "string" | 203 "type": "string" |
319 }, | 204 }, |
320 "consumerId": { | 205 "consumerId": { |
321 "description": "Include services consumed by the spe
cified consumer.\n\nThe Google Service Management implementation accepts the fol
lowing\nforms:\n- project:<project_id>", | 206 "description": "Include services consumed by the spe
cified consumer.\n\nThe Google Service Management implementation accepts the fol
lowing\nforms:\n- project:<project_id>", |
322 "location": "query", | 207 "location": "query", |
323 "type": "string" | 208 "type": "string" |
324 }, | 209 }, |
325 "pageToken": { | 210 "pageToken": { |
326 "description": "Token identifying which result to st
art with; returned by a previous list\ncall.", | 211 "description": "Token identifying which result to st
art with; returned by a previous list\ncall.", |
327 "location": "query", | 212 "location": "query", |
328 "type": "string" | 213 "type": "string" |
| 214 }, |
| 215 "pageSize": { |
| 216 "description": "Requested size of the next page of d
ata.", |
| 217 "format": "int32", |
| 218 "location": "query", |
| 219 "type": "integer" |
329 } | 220 } |
330 }, | 221 }, |
331 "path": "v1/services", | 222 "path": "v1/services", |
332 "response": { | 223 "response": { |
333 "$ref": "ListServicesResponse" | 224 "$ref": "ListServicesResponse" |
334 }, | 225 }, |
335 "scopes": [ | 226 "scopes": [ |
336 "https://www.googleapis.com/auth/cloud-platform", | 227 "https://www.googleapis.com/auth/cloud-platform", |
337 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | 228 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
338 "https://www.googleapis.com/auth/service.management", | 229 "https://www.googleapis.com/auth/service.management", |
(...skipping 93 matching lines...) Loading... |
432 ] | 323 ] |
433 }, | 324 }, |
434 "getConfig": { | 325 "getConfig": { |
435 "description": "Gets a service configuration (version) for a
managed service.", | 326 "description": "Gets a service configuration (version) for a
managed service.", |
436 "httpMethod": "GET", | 327 "httpMethod": "GET", |
437 "id": "servicemanagement.services.getConfig", | 328 "id": "servicemanagement.services.getConfig", |
438 "parameterOrder": [ | 329 "parameterOrder": [ |
439 "serviceName" | 330 "serviceName" |
440 ], | 331 ], |
441 "parameters": { | 332 "parameters": { |
| 333 "view": { |
| 334 "description": "Specifies which parts of the Service
Config should be returned in the\nresponse.", |
| 335 "enum": [ |
| 336 "BASIC", |
| 337 "FULL" |
| 338 ], |
| 339 "location": "query", |
| 340 "type": "string" |
| 341 }, |
442 "serviceName": { | 342 "serviceName": { |
443 "description": "The name of the service. See the [o
verview](/service-management/overview)\nfor naming requirements. For example: `
example.googleapis.com`.", | 343 "description": "The name of the service. See the [o
verview](/service-management/overview)\nfor naming requirements. For example: `
example.googleapis.com`.", |
444 "location": "path", | 344 "location": "path", |
445 "required": true, | 345 "required": true, |
446 "type": "string" | 346 "type": "string" |
447 }, | 347 }, |
448 "configId": { | 348 "configId": { |
449 "description": "The id of the service configuration
resource.", | 349 "description": "The id of the service configuration
resource.", |
450 "location": "query", | 350 "location": "query", |
451 "type": "string" | 351 "type": "string" |
452 }, | |
453 "view": { | |
454 "description": "Specifies which parts of the Service
Config should be returned in the\nresponse.", | |
455 "enum": [ | |
456 "BASIC", | |
457 "FULL" | |
458 ], | |
459 "location": "query", | |
460 "type": "string" | |
461 } | 352 } |
462 }, | 353 }, |
463 "path": "v1/services/{serviceName}/config", | 354 "path": "v1/services/{serviceName}/config", |
464 "response": { | 355 "response": { |
465 "$ref": "Service" | 356 "$ref": "Service" |
466 }, | 357 }, |
467 "scopes": [ | 358 "scopes": [ |
468 "https://www.googleapis.com/auth/cloud-platform", | 359 "https://www.googleapis.com/auth/cloud-platform", |
469 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | 360 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
470 "https://www.googleapis.com/auth/service.management", | 361 "https://www.googleapis.com/auth/service.management", |
471 "https://www.googleapis.com/auth/service.management.read
only" | 362 "https://www.googleapis.com/auth/service.management.read
only" |
472 ] | 363 ] |
473 }, | 364 }, |
| 365 "delete": { |
| 366 "description": "Deletes a managed service. This method will
change the service to the\n`Soft-Delete` state for 30 days. Within this period,
service producers may\ncall UndeleteService to restore the service.\nAfter 30 da
ys, the service will be permanently deleted.\n\nOperation<response: google.proto
buf.Empty>", |
| 367 "httpMethod": "DELETE", |
| 368 "id": "servicemanagement.services.delete", |
| 369 "parameterOrder": [ |
| 370 "serviceName" |
| 371 ], |
| 372 "parameters": { |
| 373 "serviceName": { |
| 374 "description": "The name of the service. See the [o
verview](/service-management/overview)\nfor naming requirements. For example: `
example.googleapis.com`.", |
| 375 "location": "path", |
| 376 "required": true, |
| 377 "type": "string" |
| 378 } |
| 379 }, |
| 380 "path": "v1/services/{serviceName}", |
| 381 "response": { |
| 382 "$ref": "Operation" |
| 383 }, |
| 384 "scopes": [ |
| 385 "https://www.googleapis.com/auth/cloud-platform", |
| 386 "https://www.googleapis.com/auth/service.management" |
| 387 ] |
| 388 }, |
474 "enable": { | 389 "enable": { |
475 "description": "Enables a service for a project, so it can b
e used\nfor the project. See\n[Cloud Auth Guide](https://cloud.google.com/docs/a
uthentication) for\nmore information.\n\nOperation<response: EnableServiceRespon
se>", | 390 "description": "Enables a service for a project, so it can b
e used\nfor the project. See\n[Cloud Auth Guide](https://cloud.google.com/docs/a
uthentication) for\nmore information.\n\nOperation<response: EnableServiceRespon
se>", |
476 "httpMethod": "POST", | 391 "httpMethod": "POST", |
477 "id": "servicemanagement.services.enable", | 392 "id": "servicemanagement.services.enable", |
478 "parameterOrder": [ | 393 "parameterOrder": [ |
479 "serviceName" | 394 "serviceName" |
480 ], | 395 ], |
481 "parameters": { | 396 "parameters": { |
482 "serviceName": { | 397 "serviceName": { |
483 "description": "Name of the service to enable. Speci
fying an unknown service name will\ncause the request to fail.", | 398 "description": "Name of the service to enable. Speci
fying an unknown service name will\ncause the request to fail.", |
484 "location": "path", | 399 "location": "path", |
485 "required": true, | 400 "required": true, |
486 "type": "string" | 401 "type": "string" |
487 } | 402 } |
488 }, | 403 }, |
489 "path": "v1/services/{serviceName}:enable", | 404 "path": "v1/services/{serviceName}:enable", |
490 "request": { | 405 "request": { |
491 "$ref": "EnableServiceRequest" | 406 "$ref": "EnableServiceRequest" |
492 }, | 407 }, |
493 "response": { | 408 "response": { |
494 "$ref": "Operation" | 409 "$ref": "Operation" |
495 }, | 410 }, |
496 "scopes": [ | 411 "scopes": [ |
497 "https://www.googleapis.com/auth/cloud-platform", | 412 "https://www.googleapis.com/auth/cloud-platform", |
498 "https://www.googleapis.com/auth/service.management" | 413 "https://www.googleapis.com/auth/service.management" |
499 ] | 414 ] |
500 }, | 415 }, |
501 "delete": { | 416 "setIamPolicy": { |
502 "description": "Deletes a managed service. This method will
change the service to the\n`Soft-Delete` state for 30 days. Within this period,
service producers may\ncall UndeleteService to restore the service.\nAfter 30 da
ys, the service will be permanently deleted.\n\nOperation<response: google.proto
buf.Empty>", | 417 "description": "Sets the access control policy on the specif
ied resource. Replaces any\nexisting policy.", |
503 "httpMethod": "DELETE", | 418 "httpMethod": "POST", |
504 "id": "servicemanagement.services.delete", | 419 "id": "servicemanagement.services.setIamPolicy", |
| 420 "parameterOrder": [ |
| 421 "resource" |
| 422 ], |
| 423 "parameters": { |
| 424 "resource": { |
| 425 "description": "REQUIRED: The resource for which the
policy is being specified.\nSee the operation documentation for the appropriate
value for this field.", |
| 426 "location": "path", |
| 427 "pattern": "^services/[^/]+$", |
| 428 "required": true, |
| 429 "type": "string" |
| 430 } |
| 431 }, |
| 432 "path": "v1/{+resource}:setIamPolicy", |
| 433 "request": { |
| 434 "$ref": "SetIamPolicyRequest" |
| 435 }, |
| 436 "response": { |
| 437 "$ref": "Policy" |
| 438 }, |
| 439 "scopes": [ |
| 440 "https://www.googleapis.com/auth/cloud-platform", |
| 441 "https://www.googleapis.com/auth/service.management" |
| 442 ] |
| 443 }, |
| 444 "disable": { |
| 445 "description": "Disables a service for a project, so it can
no longer be\nbe used for the project. It prevents accidental usage that may cau
se\nunexpected billing charges or security leaks.\n\nOperation<response: Disable
ServiceResponse>", |
| 446 "httpMethod": "POST", |
| 447 "id": "servicemanagement.services.disable", |
505 "parameterOrder": [ | 448 "parameterOrder": [ |
506 "serviceName" | 449 "serviceName" |
507 ], | 450 ], |
508 "parameters": { | 451 "parameters": { |
509 "serviceName": { | 452 "serviceName": { |
510 "description": "The name of the service. See the [o
verview](/service-management/overview)\nfor naming requirements. For example: `
example.googleapis.com`.", | 453 "description": "Name of the service to disable. Spec
ifying an unknown service name\nwill cause the request to fail.", |
511 "location": "path", | 454 "location": "path", |
512 "required": true, | 455 "required": true, |
513 "type": "string" | 456 "type": "string" |
514 } | 457 } |
515 }, | 458 }, |
516 "path": "v1/services/{serviceName}", | 459 "path": "v1/services/{serviceName}:disable", |
| 460 "request": { |
| 461 "$ref": "DisableServiceRequest" |
| 462 }, |
517 "response": { | 463 "response": { |
518 "$ref": "Operation" | 464 "$ref": "Operation" |
519 }, | 465 }, |
520 "scopes": [ | 466 "scopes": [ |
521 "https://www.googleapis.com/auth/cloud-platform", | 467 "https://www.googleapis.com/auth/cloud-platform", |
522 "https://www.googleapis.com/auth/service.management" | 468 "https://www.googleapis.com/auth/service.management" |
523 ] | 469 ] |
| 470 }, |
| 471 "getIamPolicy": { |
| 472 "description": "Gets the access control policy for a resourc
e.\nReturns an empty policy if the resource exists and does not have a policy\ns
et.", |
| 473 "httpMethod": "POST", |
| 474 "id": "servicemanagement.services.getIamPolicy", |
| 475 "parameterOrder": [ |
| 476 "resource" |
| 477 ], |
| 478 "parameters": { |
| 479 "resource": { |
| 480 "description": "REQUIRED: The resource for which the
policy is being requested.\nSee the operation documentation for the appropriate
value for this field.", |
| 481 "location": "path", |
| 482 "pattern": "^services/[^/]+$", |
| 483 "required": true, |
| 484 "type": "string" |
| 485 } |
| 486 }, |
| 487 "path": "v1/{+resource}:getIamPolicy", |
| 488 "request": { |
| 489 "$ref": "GetIamPolicyRequest" |
| 490 }, |
| 491 "response": { |
| 492 "$ref": "Policy" |
| 493 }, |
| 494 "scopes": [ |
| 495 "https://www.googleapis.com/auth/cloud-platform", |
| 496 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
| 497 "https://www.googleapis.com/auth/service.management", |
| 498 "https://www.googleapis.com/auth/service.management.read
only" |
| 499 ] |
| 500 }, |
| 501 "undelete": { |
| 502 "description": "Revives a previously deleted managed service
. The method restores the\nservice using the configuration at the time the servi
ce was deleted.\nThe target service must exist and must have been deleted within
the\nlast 30 days.\n\nOperation<response: UndeleteServiceResponse>", |
| 503 "httpMethod": "POST", |
| 504 "id": "servicemanagement.services.undelete", |
| 505 "parameterOrder": [ |
| 506 "serviceName" |
| 507 ], |
| 508 "parameters": { |
| 509 "serviceName": { |
| 510 "description": "The name of the service. See the [ov
erview](/service-management/overview)\nfor naming requirements. For example: `ex
ample.googleapis.com`.", |
| 511 "location": "path", |
| 512 "required": true, |
| 513 "type": "string" |
| 514 } |
| 515 }, |
| 516 "path": "v1/services/{serviceName}:undelete", |
| 517 "response": { |
| 518 "$ref": "Operation" |
| 519 }, |
| 520 "scopes": [ |
| 521 "https://www.googleapis.com/auth/cloud-platform", |
| 522 "https://www.googleapis.com/auth/service.management" |
| 523 ] |
524 } | 524 } |
525 }, | 525 }, |
526 "resources": { | 526 "resources": { |
527 "rollouts": { | 527 "configs": { |
528 "methods": { | 528 "methods": { |
529 "get": { | 529 "submit": { |
530 "description": "Gets a service configuration rollout
.", | 530 "description": "Creates a new service configuration
(version) for a managed service based\non\nuser-supplied configuration source fi
les (for example: OpenAPI\nSpecification). This method stores the source configu
rations as well as the\ngenerated service configuration. To rollout the service
configuration to\nother services,\nplease call CreateServiceRollout.\n\nOperatio
n<response: SubmitConfigSourceResponse>", |
531 "httpMethod": "GET", | 531 "httpMethod": "POST", |
532 "id": "servicemanagement.services.rollouts.get", | 532 "id": "servicemanagement.services.configs.submit", |
533 "parameterOrder": [ | |
534 "serviceName", | |
535 "rolloutId" | |
536 ], | |
537 "parameters": { | |
538 "serviceName": { | |
539 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", | |
540 "location": "path", | |
541 "required": true, | |
542 "type": "string" | |
543 }, | |
544 "rolloutId": { | |
545 "description": "The id of the rollout resour
ce.", | |
546 "location": "path", | |
547 "required": true, | |
548 "type": "string" | |
549 } | |
550 }, | |
551 "path": "v1/services/{serviceName}/rollouts/{rollout
Id}", | |
552 "response": { | |
553 "$ref": "Rollout" | |
554 }, | |
555 "scopes": [ | |
556 "https://www.googleapis.com/auth/cloud-platform"
, | |
557 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
558 "https://www.googleapis.com/auth/service.managem
ent", | |
559 "https://www.googleapis.com/auth/service.managem
ent.readonly" | |
560 ] | |
561 }, | |
562 "list": { | |
563 "description": "Lists the history of the service con
figuration rollouts for a managed\nservice, from the newest to the oldest.", | |
564 "httpMethod": "GET", | |
565 "id": "servicemanagement.services.rollouts.list", | |
566 "parameterOrder": [ | 533 "parameterOrder": [ |
567 "serviceName" | 534 "serviceName" |
568 ], | 535 ], |
569 "parameters": { | |
570 "filter": { | |
571 "description": "Use `filter` to return subse
t of rollouts.\nThe following filters are supported:\n -- To limit the results
to only those in\n [status](google.api.servicemanagement.v1.RolloutStatus) '
SUCCESS',\n use filter='status=SUCCESS'\n -- To limit the results to those
in\n [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'\n
or 'FAILED', use filter='status=CANCELLED OR status=FAILED'", | |
572 "location": "query", | |
573 "type": "string" | |
574 }, | |
575 "serviceName": { | |
576 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", | |
577 "location": "path", | |
578 "required": true, | |
579 "type": "string" | |
580 }, | |
581 "pageToken": { | |
582 "description": "The token of the page to ret
rieve.", | |
583 "location": "query", | |
584 "type": "string" | |
585 }, | |
586 "pageSize": { | |
587 "description": "The max number of items to i
nclude in the response list.", | |
588 "format": "int32", | |
589 "location": "query", | |
590 "type": "integer" | |
591 } | |
592 }, | |
593 "path": "v1/services/{serviceName}/rollouts", | |
594 "response": { | |
595 "$ref": "ListServiceRolloutsResponse" | |
596 }, | |
597 "scopes": [ | |
598 "https://www.googleapis.com/auth/cloud-platform"
, | |
599 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
600 "https://www.googleapis.com/auth/service.managem
ent", | |
601 "https://www.googleapis.com/auth/service.managem
ent.readonly" | |
602 ] | |
603 }, | |
604 "create": { | |
605 "description": "Creates a new service configuration
rollout. Based on rollout, the\nGoogle Service Management will roll out the serv
ice configurations to\ndifferent backend services. For example, the logging conf
iguration will be\npushed to Google Cloud Logging.\n\nPlease note that any previ
ous pending and running Rollouts and associated\nOperations will be automaticall
y cancelled so that the latest Rollout will\nnot be blocked by previous Rollouts
.\n\nOperation<response: Rollout>", | |
606 "httpMethod": "POST", | |
607 "id": "servicemanagement.services.rollouts.create", | |
608 "parameterOrder": [ | |
609 "serviceName" | |
610 ], | |
611 "parameters": { | 536 "parameters": { |
612 "serviceName": { | 537 "serviceName": { |
613 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", | 538 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", |
614 "location": "path", | 539 "location": "path", |
615 "required": true, | 540 "required": true, |
616 "type": "string" | 541 "type": "string" |
617 } | 542 } |
618 }, | 543 }, |
619 "path": "v1/services/{serviceName}/rollouts", | 544 "path": "v1/services/{serviceName}/configs:submit", |
620 "request": { | 545 "request": { |
621 "$ref": "Rollout" | 546 "$ref": "SubmitConfigSourceRequest" |
622 }, | 547 }, |
623 "response": { | 548 "response": { |
624 "$ref": "Operation" | 549 "$ref": "Operation" |
625 }, | 550 }, |
626 "scopes": [ | 551 "scopes": [ |
627 "https://www.googleapis.com/auth/cloud-platform"
, | 552 "https://www.googleapis.com/auth/cloud-platform"
, |
628 "https://www.googleapis.com/auth/service.managem
ent" | 553 "https://www.googleapis.com/auth/service.managem
ent" |
629 ] | 554 ] |
630 } | 555 }, |
631 } | |
632 }, | |
633 "configs": { | |
634 "methods": { | |
635 "get": { | 556 "get": { |
636 "description": "Gets a service configuration (versio
n) for a managed service.", | 557 "description": "Gets a service configuration (versio
n) for a managed service.", |
637 "httpMethod": "GET", | 558 "httpMethod": "GET", |
638 "id": "servicemanagement.services.configs.get", | 559 "id": "servicemanagement.services.configs.get", |
639 "parameterOrder": [ | 560 "parameterOrder": [ |
640 "serviceName", | 561 "serviceName", |
641 "configId" | 562 "configId" |
642 ], | 563 ], |
643 "parameters": { | 564 "parameters": { |
644 "view": { | |
645 "description": "Specifies which parts of the
Service Config should be returned in the\nresponse.", | |
646 "enum": [ | |
647 "BASIC", | |
648 "FULL" | |
649 ], | |
650 "location": "query", | |
651 "type": "string" | |
652 }, | |
653 "serviceName": { | 565 "serviceName": { |
654 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", | 566 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", |
655 "location": "path", | 567 "location": "path", |
656 "required": true, | 568 "required": true, |
657 "type": "string" | 569 "type": "string" |
658 }, | 570 }, |
659 "configId": { | 571 "configId": { |
660 "description": "The id of the service config
uration resource.", | 572 "description": "The id of the service config
uration resource.", |
661 "location": "path", | 573 "location": "path", |
662 "required": true, | 574 "required": true, |
663 "type": "string" | 575 "type": "string" |
| 576 }, |
| 577 "view": { |
| 578 "description": "Specifies which parts of the
Service Config should be returned in the\nresponse.", |
| 579 "enum": [ |
| 580 "BASIC", |
| 581 "FULL" |
| 582 ], |
| 583 "location": "query", |
| 584 "type": "string" |
664 } | 585 } |
665 }, | 586 }, |
666 "path": "v1/services/{serviceName}/configs/{configId
}", | 587 "path": "v1/services/{serviceName}/configs/{configId
}", |
667 "response": { | 588 "response": { |
668 "$ref": "Service" | 589 "$ref": "Service" |
669 }, | 590 }, |
670 "scopes": [ | 591 "scopes": [ |
671 "https://www.googleapis.com/auth/cloud-platform"
, | 592 "https://www.googleapis.com/auth/cloud-platform"
, |
672 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 593 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
673 "https://www.googleapis.com/auth/service.managem
ent", | 594 "https://www.googleapis.com/auth/service.managem
ent", |
(...skipping 56 matching lines...) Loading... |
730 "request": { | 651 "request": { |
731 "$ref": "Service" | 652 "$ref": "Service" |
732 }, | 653 }, |
733 "response": { | 654 "response": { |
734 "$ref": "Service" | 655 "$ref": "Service" |
735 }, | 656 }, |
736 "scopes": [ | 657 "scopes": [ |
737 "https://www.googleapis.com/auth/cloud-platform"
, | 658 "https://www.googleapis.com/auth/cloud-platform"
, |
738 "https://www.googleapis.com/auth/service.managem
ent" | 659 "https://www.googleapis.com/auth/service.managem
ent" |
739 ] | 660 ] |
740 }, | |
741 "submit": { | |
742 "description": "Creates a new service configuration
(version) for a managed service based\non\nuser-supplied configuration source fi
les (for example: OpenAPI\nSpecification). This method stores the source configu
rations as well as the\ngenerated service configuration. To rollout the service
configuration to\nother services,\nplease call CreateServiceRollout.\n\nOperatio
n<response: SubmitConfigSourceResponse>", | |
743 "httpMethod": "POST", | |
744 "id": "servicemanagement.services.configs.submit", | |
745 "parameterOrder": [ | |
746 "serviceName" | |
747 ], | |
748 "parameters": { | |
749 "serviceName": { | |
750 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", | |
751 "location": "path", | |
752 "required": true, | |
753 "type": "string" | |
754 } | |
755 }, | |
756 "path": "v1/services/{serviceName}/configs:submit", | |
757 "request": { | |
758 "$ref": "SubmitConfigSourceRequest" | |
759 }, | |
760 "response": { | |
761 "$ref": "Operation" | |
762 }, | |
763 "scopes": [ | |
764 "https://www.googleapis.com/auth/cloud-platform"
, | |
765 "https://www.googleapis.com/auth/service.managem
ent" | |
766 ] | |
767 } | 661 } |
768 } | 662 } |
769 }, | 663 }, |
770 "consumers": { | 664 "consumers": { |
771 "methods": { | 665 "methods": { |
772 "testIamPermissions": { | 666 "getIamPolicy": { |
773 "description": "Returns permissions that a caller ha
s on the specified resource.\nIf the resource does not exist, this will return a
n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d
esigned to be used for building permission-aware\nUIs and command-line tools, no
t for authorization checking. This operation\nmay \"fail open\" without warning.
", | 667 "description": "Gets the access control policy for a
resource.\nReturns an empty policy if the resource exists and does not have a p
olicy\nset.", |
774 "httpMethod": "POST", | 668 "httpMethod": "POST", |
775 "id": "servicemanagement.services.consumers.testIamP
ermissions", | 669 "id": "servicemanagement.services.consumers.getIamPo
licy", |
776 "parameterOrder": [ | 670 "parameterOrder": [ |
777 "resource" | 671 "resource" |
778 ], | 672 ], |
779 "parameters": { | 673 "parameters": { |
780 "resource": { | 674 "resource": { |
781 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", | 675 "description": "REQUIRED: The resource for w
hich the policy is being requested.\nSee the operation documentation for the app
ropriate value for this field.", |
782 "location": "path", | 676 "location": "path", |
783 "pattern": "^services/[^/]+/consumers/[^/]+$
", | 677 "pattern": "^services/[^/]+/consumers/[^/]+$
", |
784 "required": true, | 678 "required": true, |
785 "type": "string" | 679 "type": "string" |
786 } | 680 } |
787 }, | 681 }, |
788 "path": "v1/{+resource}:testIamPermissions", | 682 "path": "v1/{+resource}:getIamPolicy", |
789 "request": { | 683 "request": { |
790 "$ref": "TestIamPermissionsRequest" | 684 "$ref": "GetIamPolicyRequest" |
791 }, | 685 }, |
792 "response": { | 686 "response": { |
793 "$ref": "TestIamPermissionsResponse" | 687 "$ref": "Policy" |
794 }, | 688 }, |
795 "scopes": [ | 689 "scopes": [ |
796 "https://www.googleapis.com/auth/cloud-platform"
, | 690 "https://www.googleapis.com/auth/cloud-platform"
, |
797 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 691 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
798 "https://www.googleapis.com/auth/service.managem
ent", | 692 "https://www.googleapis.com/auth/service.managem
ent", |
799 "https://www.googleapis.com/auth/service.managem
ent.readonly" | 693 "https://www.googleapis.com/auth/service.managem
ent.readonly" |
800 ] | 694 ] |
801 }, | 695 }, |
802 "getIamPolicy": { | |
803 "description": "Gets the access control policy for a
resource.\nReturns an empty policy if the resource exists and does not have a p
olicy\nset.", | |
804 "httpMethod": "POST", | |
805 "id": "servicemanagement.services.consumers.getIamPo
licy", | |
806 "parameterOrder": [ | |
807 "resource" | |
808 ], | |
809 "parameters": { | |
810 "resource": { | |
811 "description": "REQUIRED: The resource for w
hich the policy is being requested.\nSee the operation documentation for the app
ropriate value for this field.", | |
812 "location": "path", | |
813 "pattern": "^services/[^/]+/consumers/[^/]+$
", | |
814 "required": true, | |
815 "type": "string" | |
816 } | |
817 }, | |
818 "path": "v1/{+resource}:getIamPolicy", | |
819 "request": { | |
820 "$ref": "GetIamPolicyRequest" | |
821 }, | |
822 "response": { | |
823 "$ref": "Policy" | |
824 }, | |
825 "scopes": [ | |
826 "https://www.googleapis.com/auth/cloud-platform"
, | |
827 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
828 "https://www.googleapis.com/auth/service.managem
ent", | |
829 "https://www.googleapis.com/auth/service.managem
ent.readonly" | |
830 ] | |
831 }, | |
832 "setIamPolicy": { | 696 "setIamPolicy": { |
833 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | 697 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
834 "httpMethod": "POST", | 698 "httpMethod": "POST", |
835 "id": "servicemanagement.services.consumers.setIamPo
licy", | 699 "id": "servicemanagement.services.consumers.setIamPo
licy", |
836 "parameterOrder": [ | 700 "parameterOrder": [ |
837 "resource" | 701 "resource" |
838 ], | 702 ], |
839 "parameters": { | 703 "parameters": { |
840 "resource": { | 704 "resource": { |
841 "description": "REQUIRED: The resource for w
hich the policy is being specified.\nSee the operation documentation for the app
ropriate value for this field.", | 705 "description": "REQUIRED: The resource for w
hich the policy is being specified.\nSee the operation documentation for the app
ropriate value for this field.", |
842 "location": "path", | 706 "location": "path", |
843 "pattern": "^services/[^/]+/consumers/[^/]+$
", | 707 "pattern": "^services/[^/]+/consumers/[^/]+$
", |
844 "required": true, | 708 "required": true, |
845 "type": "string" | 709 "type": "string" |
846 } | 710 } |
847 }, | 711 }, |
848 "path": "v1/{+resource}:setIamPolicy", | 712 "path": "v1/{+resource}:setIamPolicy", |
849 "request": { | 713 "request": { |
850 "$ref": "SetIamPolicyRequest" | 714 "$ref": "SetIamPolicyRequest" |
851 }, | 715 }, |
852 "response": { | 716 "response": { |
853 "$ref": "Policy" | 717 "$ref": "Policy" |
854 }, | 718 }, |
855 "scopes": [ | 719 "scopes": [ |
856 "https://www.googleapis.com/auth/cloud-platform"
, | 720 "https://www.googleapis.com/auth/cloud-platform"
, |
857 "https://www.googleapis.com/auth/service.managem
ent" | 721 "https://www.googleapis.com/auth/service.managem
ent" |
858 ] | 722 ] |
| 723 }, |
| 724 "testIamPermissions": { |
| 725 "description": "Returns permissions that a caller ha
s on the specified resource.\nIf the resource does not exist, this will return a
n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d
esigned to be used for building permission-aware\nUIs and command-line tools, no
t for authorization checking. This operation\nmay \"fail open\" without warning.
", |
| 726 "httpMethod": "POST", |
| 727 "id": "servicemanagement.services.consumers.testIamP
ermissions", |
| 728 "parameterOrder": [ |
| 729 "resource" |
| 730 ], |
| 731 "parameters": { |
| 732 "resource": { |
| 733 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", |
| 734 "location": "path", |
| 735 "pattern": "^services/[^/]+/consumers/[^/]+$
", |
| 736 "required": true, |
| 737 "type": "string" |
| 738 } |
| 739 }, |
| 740 "path": "v1/{+resource}:testIamPermissions", |
| 741 "request": { |
| 742 "$ref": "TestIamPermissionsRequest" |
| 743 }, |
| 744 "response": { |
| 745 "$ref": "TestIamPermissionsResponse" |
| 746 }, |
| 747 "scopes": [ |
| 748 "https://www.googleapis.com/auth/cloud-platform"
, |
| 749 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 750 "https://www.googleapis.com/auth/service.managem
ent", |
| 751 "https://www.googleapis.com/auth/service.managem
ent.readonly" |
| 752 ] |
| 753 } |
| 754 } |
| 755 }, |
| 756 "rollouts": { |
| 757 "methods": { |
| 758 "get": { |
| 759 "description": "Gets a service configuration rollout
.", |
| 760 "httpMethod": "GET", |
| 761 "id": "servicemanagement.services.rollouts.get", |
| 762 "parameterOrder": [ |
| 763 "serviceName", |
| 764 "rolloutId" |
| 765 ], |
| 766 "parameters": { |
| 767 "serviceName": { |
| 768 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", |
| 769 "location": "path", |
| 770 "required": true, |
| 771 "type": "string" |
| 772 }, |
| 773 "rolloutId": { |
| 774 "description": "The id of the rollout resour
ce.", |
| 775 "location": "path", |
| 776 "required": true, |
| 777 "type": "string" |
| 778 } |
| 779 }, |
| 780 "path": "v1/services/{serviceName}/rollouts/{rollout
Id}", |
| 781 "response": { |
| 782 "$ref": "Rollout" |
| 783 }, |
| 784 "scopes": [ |
| 785 "https://www.googleapis.com/auth/cloud-platform"
, |
| 786 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 787 "https://www.googleapis.com/auth/service.managem
ent", |
| 788 "https://www.googleapis.com/auth/service.managem
ent.readonly" |
| 789 ] |
| 790 }, |
| 791 "list": { |
| 792 "description": "Lists the history of the service con
figuration rollouts for a managed\nservice, from the newest to the oldest.", |
| 793 "httpMethod": "GET", |
| 794 "id": "servicemanagement.services.rollouts.list", |
| 795 "parameterOrder": [ |
| 796 "serviceName" |
| 797 ], |
| 798 "parameters": { |
| 799 "filter": { |
| 800 "description": "Use `filter` to return subse
t of rollouts.\nThe following filters are supported:\n -- To limit the results
to only those in\n [status](google.api.servicemanagement.v1.RolloutStatus) '
SUCCESS',\n use filter='status=SUCCESS'\n -- To limit the results to those
in\n [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'\n
or 'FAILED', use filter='status=CANCELLED OR status=FAILED'", |
| 801 "location": "query", |
| 802 "type": "string" |
| 803 }, |
| 804 "serviceName": { |
| 805 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", |
| 806 "location": "path", |
| 807 "required": true, |
| 808 "type": "string" |
| 809 }, |
| 810 "pageToken": { |
| 811 "description": "The token of the page to ret
rieve.", |
| 812 "location": "query", |
| 813 "type": "string" |
| 814 }, |
| 815 "pageSize": { |
| 816 "description": "The max number of items to i
nclude in the response list.", |
| 817 "format": "int32", |
| 818 "location": "query", |
| 819 "type": "integer" |
| 820 } |
| 821 }, |
| 822 "path": "v1/services/{serviceName}/rollouts", |
| 823 "response": { |
| 824 "$ref": "ListServiceRolloutsResponse" |
| 825 }, |
| 826 "scopes": [ |
| 827 "https://www.googleapis.com/auth/cloud-platform"
, |
| 828 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 829 "https://www.googleapis.com/auth/service.managem
ent", |
| 830 "https://www.googleapis.com/auth/service.managem
ent.readonly" |
| 831 ] |
| 832 }, |
| 833 "create": { |
| 834 "description": "Creates a new service configuration
rollout. Based on rollout, the\nGoogle Service Management will roll out the serv
ice configurations to\ndifferent backend services. For example, the logging conf
iguration will be\npushed to Google Cloud Logging.\n\nPlease note that any previ
ous pending and running Rollouts and associated\nOperations will be automaticall
y cancelled so that the latest Rollout will\nnot be blocked by previous Rollouts
.\n\nOperation<response: Rollout>", |
| 835 "httpMethod": "POST", |
| 836 "id": "servicemanagement.services.rollouts.create", |
| 837 "parameterOrder": [ |
| 838 "serviceName" |
| 839 ], |
| 840 "parameters": { |
| 841 "serviceName": { |
| 842 "description": "The name of the service. Se
e the [overview](/service-management/overview)\nfor naming requirements. For ex
ample: `example.googleapis.com`.", |
| 843 "location": "path", |
| 844 "required": true, |
| 845 "type": "string" |
| 846 } |
| 847 }, |
| 848 "path": "v1/services/{serviceName}/rollouts", |
| 849 "request": { |
| 850 "$ref": "Rollout" |
| 851 }, |
| 852 "response": { |
| 853 "$ref": "Operation" |
| 854 }, |
| 855 "scopes": [ |
| 856 "https://www.googleapis.com/auth/cloud-platform"
, |
| 857 "https://www.googleapis.com/auth/service.managem
ent" |
| 858 ] |
859 } | 859 } |
860 } | 860 } |
861 } | 861 } |
862 } | 862 } |
863 } | 863 } |
864 }, | 864 }, |
865 "revision": "20170811", | 865 "revision": "20170828", |
866 "rootUrl": "https://servicemanagement.googleapis.com/", | 866 "rootUrl": "https://servicemanagement.googleapis.com/", |
867 "schemas": { | 867 "schemas": { |
868 "Control": { | 868 "AuditLogConfig": { |
869 "description": "Selects and configures the service controller used b
y the service. The\nservice controller handles features like abuse, quota, bill
ing, logging,\nmonitoring, etc.", | 869 "description": "Provides the configuration for logging a type of per
missions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n
\"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n
\"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type
\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and '
DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.", |
870 "id": "Control", | 870 "id": "AuditLogConfig", |
871 "properties": { | 871 "properties": { |
872 "environment": { | 872 "logType": { |
873 "description": "The service control environment to use. If e
mpty, no control plane\nfeature (like quota and billing) will be enabled.", | 873 "description": "The log type that this config enables.", |
874 "type": "string" | 874 "enum": [ |
875 } | 875 "LOG_TYPE_UNSPECIFIED", |
876 }, | 876 "ADMIN_READ", |
877 "type": "object" | 877 "DATA_WRITE", |
878 }, | 878 "DATA_READ" |
879 "SystemParameter": { | 879 ], |
880 "description": "Define a parameter's name and location. The paramete
r may be passed as either\nan HTTP header or a URL query parameter, and if both
are passed the behavior\nis implementation-dependent.", | 880 "enumDescriptions": [ |
881 "id": "SystemParameter", | 881 "Default case. Should never be this.", |
882 "properties": { | 882 "Admin reads. Example: CloudIAM getIamPolicy", |
883 "httpHeader": { | 883 "Data writes. Example: CloudSQL Users create", |
884 "description": "Define the HTTP header name to use for the p
arameter. It is case\ninsensitive.", | 884 "Data reads. Example: CloudSQL Users list" |
885 "type": "string" | 885 ], |
886 }, | 886 "type": "string" |
887 "name": { | 887 }, |
888 "description": "Define the name of the parameter, such as \"
api_key\" . It is case sensitive.", | 888 "exemptedMembers": { |
889 "type": "string" | 889 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", |
890 }, | 890 "items": { |
891 "urlQueryParameter": { | 891 "type": "string" |
892 "description": "Define the URL query parameter name to use f
or the parameter. It is case\nsensitive.", | 892 }, |
893 "type": "string" | 893 "type": "array" |
894 } | 894 } |
895 }, | 895 }, |
896 "type": "object" | 896 "type": "object" |
897 }, | 897 }, |
898 "Monitoring": { | 898 "ConfigSource": { |
899 "description": "Monitoring configuration of the service.\n\nThe exam
ple below shows how to configure monitored resources and metrics\nfor monitoring
. In the example, a monitored resource and two metrics are\ndefined. The `librar
y.googleapis.com/book/returned_count` metric is sent\nto both producer and consu
mer projects, whereas the\n`library.googleapis.com/book/overdue_count` metric is
only sent to the\nconsumer project.\n\n monitored_resources:\n - type: li
brary.googleapis.com/branch\n labels:\n - key: /city\n descript
ion: The city where the library branch is located in.\n - key: /name\n
description: The name of the branch.\n metrics:\n - name: library.googl
eapis.com/book/returned_count\n metric_kind: DELTA\n value_type: INT64
\n labels:\n - key: /customer_id\n - name: library.googleapis.com/b
ook/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labe
ls:\n - key: /customer_id\n monitoring:\n producer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n consumer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n - library.googleapis.
com/book/overdue_count", | 899 "description": "Represents a source file which is used to generate t
he service configuration\ndefined by `google.api.Service`.", |
900 "id": "Monitoring", | 900 "id": "ConfigSource", |
901 "properties": { | 901 "properties": { |
902 "consumerDestinations": { | 902 "id": { |
903 "description": "Monitoring configurations for sending metric
s to the consumer project.\nThere can be multiple consumer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none consumer destination.", | 903 "description": "A unique ID for a specific instance of this
message, typically assigned\nby the client for tracking purpose. If empty, the s
erver may choose to\ngenerate one instead.", |
904 "items": { | 904 "type": "string" |
905 "$ref": "MonitoringDestination" | 905 }, |
906 }, | 906 "files": { |
907 "type": "array" | 907 "description": "Set of source configuration files that are u
sed to generate a service\nconfiguration (`google.api.Service`).", |
908 }, | 908 "items": { |
909 "producerDestinations": { | 909 "$ref": "ConfigFile" |
910 "description": "Monitoring configurations for sending metric
s to the producer project.\nThere can be multiple producer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none producer destination.", | 910 }, |
911 "items": { | 911 "type": "array" |
912 "$ref": "MonitoringDestination" | 912 } |
913 }, | 913 }, |
914 "type": "array" | 914 "type": "object" |
915 } | 915 }, |
916 }, | 916 "AuthenticationRule": { |
917 "type": "object" | 917 "description": "Authentication rules for the service.\n\nBy default,
if a method has any authentication requirements, every request\nmust include a
valid credential matching one of the requirements.\nIt's an error to include mor
e than one kind of credential in a single\nrequest.\n\nIf a method doesn't have
any auth requirements, request credentials will be\nignored.", |
918 }, | 918 "id": "AuthenticationRule", |
919 "Field": { | 919 "properties": { |
920 "description": "A single field of a message type.", | 920 "requirements": { |
921 "id": "Field", | 921 "description": "Requirements for additional authentication p
roviders.", |
922 "properties": { | 922 "items": { |
923 "defaultValue": { | 923 "$ref": "AuthRequirement" |
924 "description": "The string value of the default value of thi
s field. Proto2 syntax only.", | 924 }, |
925 "type": "string" | 925 "type": "array" |
926 }, | 926 }, |
927 "name": { | 927 "allowWithoutCredential": { |
928 "description": "The field name.", | 928 "description": "Whether to allow requests without a credenti
al. The credential can be\nan OAuth token, Google cookies (first-party auth) or
EndUserCreds.\n\nFor requests without credentials, if the service control enviro
nment is\nspecified, each incoming request **must** be associated with a service
\nconsumer. This can be done by passing an API key that belongs to a consumer\np
roject.", |
929 "type": "string" | 929 "type": "boolean" |
930 }, | 930 }, |
931 "typeUrl": { | 931 "selector": { |
932 "description": "The field type URL, without the scheme, for
message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.T
imestamp\"`.", | 932 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
933 "type": "string" | 933 "type": "string" |
934 }, | 934 }, |
935 "number": { | 935 "customAuth": { |
936 "description": "The field number.", | 936 "$ref": "CustomAuthRequirements", |
| 937 "description": "Configuration for custom authentication." |
| 938 }, |
| 939 "oauth": { |
| 940 "$ref": "OAuthRequirements", |
| 941 "description": "The requirements for OAuth credentials." |
| 942 } |
| 943 }, |
| 944 "type": "object" |
| 945 }, |
| 946 "BackendRule": { |
| 947 "description": "A backend rule provides configuration for an individ
ual API element.", |
| 948 "id": "BackendRule", |
| 949 "properties": { |
| 950 "address": { |
| 951 "description": "The address of the API backend.", |
| 952 "type": "string" |
| 953 }, |
| 954 "selector": { |
| 955 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
| 956 "type": "string" |
| 957 }, |
| 958 "deadline": { |
| 959 "description": "The number of seconds to wait for a response
from a request. The default\ndeadline for gRPC and HTTP requests is 5 seconds.
For Stubby requests,\nthe default is no deadline.", |
| 960 "format": "double", |
| 961 "type": "number" |
| 962 }, |
| 963 "minDeadline": { |
| 964 "description": "Minimum deadline in seconds needed for this
method. Calls having deadline\nvalue lower than this will be rejected.", |
| 965 "format": "double", |
| 966 "type": "number" |
| 967 } |
| 968 }, |
| 969 "type": "object" |
| 970 }, |
| 971 "Policy": { |
| 972 "description": "Defines an Identity and Access Management (IAM) poli
cy. It is used to\nspecify access control policies for Cloud Platform resources.
\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n
`members` to a `role`, where the members can be user accounts, Google groups,\nG
oogle domains, and service accounts. A `role` is a named list of permissions\nde
fined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n
\"role\": \"roles/owner\",\n \"members\": [\n \"user:mike
@example.com\",\n \"group:admins@example.com\",\n \"domain
:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccoun
t.com\",\n ]\n },\n {\n \"role\": \"roles/viewer
\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n
}\n\nFor a description of IAM and its features, see the\n[IAM developer's guide
](https://cloud.google.com/iam).", |
| 973 "id": "Policy", |
| 974 "properties": { |
| 975 "bindings": { |
| 976 "description": "Associates a list of `members` to a `role`.\
n`bindings` with no members will result in an error.", |
| 977 "items": { |
| 978 "$ref": "Binding" |
| 979 }, |
| 980 "type": "array" |
| 981 }, |
| 982 "iamOwned": { |
| 983 "type": "boolean" |
| 984 }, |
| 985 "etag": { |
| 986 "description": "`etag` is used for optimistic concurrency co
ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin
g each other.\nIt is strongly suggested that systems make use of the `etag` in t
he\nread-modify-write cycle to perform policy updates in order to avoid race\nco
nditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems
are expected to put that etag in the request to `setIamPolicy` to\nensure that t
heir change will be applied to the same version of the policy.\n\nIf no `etag` i
s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt
en blindly.", |
| 987 "format": "byte", |
| 988 "type": "string" |
| 989 }, |
| 990 "version": { |
| 991 "description": "Version of the `Policy`. The default version
is 0.", |
937 "format": "int32", | 992 "format": "int32", |
938 "type": "integer" | 993 "type": "integer" |
939 }, | 994 }, |
940 "jsonName": { | 995 "auditConfigs": { |
941 "description": "The field JSON name.", | 996 "description": "Specifies cloud audit logging configuration
for this policy.", |
942 "type": "string" | 997 "items": { |
943 }, | 998 "$ref": "AuditConfig" |
944 "kind": { | 999 }, |
945 "description": "The field type.", | 1000 "type": "array" |
946 "enum": [ | 1001 } |
947 "TYPE_UNKNOWN", | 1002 }, |
948 "TYPE_DOUBLE", | 1003 "type": "object" |
949 "TYPE_FLOAT", | 1004 }, |
950 "TYPE_INT64", | 1005 "UndeleteServiceResponse": { |
951 "TYPE_UINT64", | 1006 "description": "Response message for UndeleteService method.", |
952 "TYPE_INT32", | 1007 "id": "UndeleteServiceResponse", |
953 "TYPE_FIXED64", | 1008 "properties": { |
954 "TYPE_FIXED32", | 1009 "service": { |
955 "TYPE_BOOL", | 1010 "$ref": "ManagedService", |
956 "TYPE_STRING", | 1011 "description": "Revived service resource." |
957 "TYPE_GROUP", | 1012 } |
958 "TYPE_MESSAGE", | 1013 }, |
959 "TYPE_BYTES", | 1014 "type": "object" |
960 "TYPE_UINT32", | 1015 }, |
961 "TYPE_ENUM", | 1016 "Api": { |
962 "TYPE_SFIXED32", | 1017 "description": "Api is a light-weight descriptor for an API Interfac
e.\n\nInterfaces are also described as \"protocol buffer services\" in some cont
exts,\nsuch as by the \"service\" keyword in a .proto file, but they are differe
nt\nfrom API Services, which represent a concrete implementation of an interface
\nas opposed to simply a description of methods and bindings. They are also\nsom
etimes simply referred to as \"APIs\" in other contexts, such as the name of\nth
is message itself. See https://cloud.google.com/apis/design/glossary for\ndetail
ed terminology.", |
963 "TYPE_SFIXED64", | 1018 "id": "Api", |
964 "TYPE_SINT32", | 1019 "properties": { |
965 "TYPE_SINT64" | |
966 ], | |
967 "enumDescriptions": [ | |
968 "Field type unknown.", | |
969 "Field type double.", | |
970 "Field type float.", | |
971 "Field type int64.", | |
972 "Field type uint64.", | |
973 "Field type int32.", | |
974 "Field type fixed64.", | |
975 "Field type fixed32.", | |
976 "Field type bool.", | |
977 "Field type string.", | |
978 "Field type group. Proto2 syntax only, and deprecated.", | |
979 "Field type message.", | |
980 "Field type bytes.", | |
981 "Field type uint32.", | |
982 "Field type enum.", | |
983 "Field type sfixed32.", | |
984 "Field type sfixed64.", | |
985 "Field type sint32.", | |
986 "Field type sint64." | |
987 ], | |
988 "type": "string" | |
989 }, | |
990 "options": { | 1020 "options": { |
991 "description": "The protocol buffer options.", | 1021 "description": "Any metadata attached to the interface.", |
992 "items": { | 1022 "items": { |
993 "$ref": "Option" | 1023 "$ref": "Option" |
994 }, | 1024 }, |
995 "type": "array" | 1025 "type": "array" |
996 }, | 1026 }, |
997 "oneofIndex": { | 1027 "methods": { |
998 "description": "The index of the field type in `Type.oneofs`
, for message or enumeration\ntypes. The first type has index 1; zero means the
type is not in the list.", | 1028 "description": "The methods of this interface, in unspecifie
d order.", |
999 "format": "int32", | 1029 "items": { |
1000 "type": "integer" | 1030 "$ref": "Method" |
1001 }, | 1031 }, |
1002 "packed": { | 1032 "type": "array" |
1003 "description": "Whether to use alternative packed wire repre
sentation.", | 1033 }, |
1004 "type": "boolean" | 1034 "name": { |
1005 }, | 1035 "description": "The fully qualified name of this interface,
including package name\nfollowed by the interface's simple name.", |
1006 "cardinality": { | 1036 "type": "string" |
1007 "description": "The field cardinality.", | |
1008 "enum": [ | |
1009 "CARDINALITY_UNKNOWN", | |
1010 "CARDINALITY_OPTIONAL", | |
1011 "CARDINALITY_REQUIRED", | |
1012 "CARDINALITY_REPEATED" | |
1013 ], | |
1014 "enumDescriptions": [ | |
1015 "For fields with unknown cardinality.", | |
1016 "For optional fields.", | |
1017 "For required fields. Proto2 syntax only.", | |
1018 "For repeated fields." | |
1019 ], | |
1020 "type": "string" | |
1021 } | |
1022 }, | |
1023 "type": "object" | |
1024 }, | |
1025 "TestIamPermissionsRequest": { | |
1026 "description": "Request message for `TestIamPermissions` method.", | |
1027 "id": "TestIamPermissionsRequest", | |
1028 "properties": { | |
1029 "permissions": { | |
1030 "description": "The set of permissions to check for the `res
ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed
. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov
erview#permissions).", | |
1031 "items": { | |
1032 "type": "string" | |
1033 }, | |
1034 "type": "array" | |
1035 } | |
1036 }, | |
1037 "type": "object" | |
1038 }, | |
1039 "Enum": { | |
1040 "description": "Enum type definition.", | |
1041 "id": "Enum", | |
1042 "properties": { | |
1043 "options": { | |
1044 "description": "Protocol buffer options.", | |
1045 "items": { | |
1046 "$ref": "Option" | |
1047 }, | |
1048 "type": "array" | |
1049 }, | 1037 }, |
1050 "syntax": { | 1038 "syntax": { |
1051 "description": "The source syntax.", | 1039 "description": "The source syntax of the service.", |
1052 "enum": [ | 1040 "enum": [ |
1053 "SYNTAX_PROTO2", | 1041 "SYNTAX_PROTO2", |
1054 "SYNTAX_PROTO3" | 1042 "SYNTAX_PROTO3" |
1055 ], | |
1056 "enumDescriptions": [ | |
1057 "Syntax `proto2`.", | |
1058 "Syntax `proto3`." | |
1059 ], | |
1060 "type": "string" | |
1061 }, | |
1062 "sourceContext": { | |
1063 "$ref": "SourceContext", | |
1064 "description": "The source context." | |
1065 }, | |
1066 "enumvalue": { | |
1067 "description": "Enum value definitions.", | |
1068 "items": { | |
1069 "$ref": "EnumValue" | |
1070 }, | |
1071 "type": "array" | |
1072 }, | |
1073 "name": { | |
1074 "description": "Enum type name.", | |
1075 "type": "string" | |
1076 } | |
1077 }, | |
1078 "type": "object" | |
1079 }, | |
1080 "LabelDescriptor": { | |
1081 "description": "A description of a label.", | |
1082 "id": "LabelDescriptor", | |
1083 "properties": { | |
1084 "key": { | |
1085 "description": "The label key.", | |
1086 "type": "string" | |
1087 }, | |
1088 "description": { | |
1089 "description": "A human-readable description for the label."
, | |
1090 "type": "string" | |
1091 }, | |
1092 "valueType": { | |
1093 "description": "The type of data that can be assigned to the
label.", | |
1094 "enum": [ | |
1095 "STRING", | |
1096 "BOOL", | |
1097 "INT64" | |
1098 ], | |
1099 "enumDescriptions": [ | |
1100 "A variable-length string. This is the default.", | |
1101 "Boolean; true or false.", | |
1102 "A 64-bit signed integer." | |
1103 ], | |
1104 "type": "string" | |
1105 } | |
1106 }, | |
1107 "type": "object" | |
1108 }, | |
1109 "Diagnostic": { | |
1110 "description": "Represents a diagnostic message (error or warning)", | |
1111 "id": "Diagnostic", | |
1112 "properties": { | |
1113 "location": { | |
1114 "description": "File name and line number of the error or wa
rning.", | |
1115 "type": "string" | |
1116 }, | |
1117 "kind": { | |
1118 "description": "The kind of diagnostic information provided.
", | |
1119 "enum": [ | |
1120 "WARNING", | |
1121 "ERROR" | |
1122 ], | |
1123 "enumDescriptions": [ | |
1124 "Warnings and errors", | |
1125 "Only errors" | |
1126 ], | |
1127 "type": "string" | |
1128 }, | |
1129 "message": { | |
1130 "description": "Message describing the error or warning.", | |
1131 "type": "string" | |
1132 } | |
1133 }, | |
1134 "type": "object" | |
1135 }, | |
1136 "EnableServiceRequest": { | |
1137 "description": "Request message for EnableService method.", | |
1138 "id": "EnableServiceRequest", | |
1139 "properties": { | |
1140 "consumerId": { | |
1141 "description": "The identity of consumer resource which serv
ice enablement will be\napplied to.\n\nThe Google Service Management implementat
ion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is m
ade compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", | |
1142 "type": "string" | |
1143 } | |
1144 }, | |
1145 "type": "object" | |
1146 }, | |
1147 "Type": { | |
1148 "description": "A protocol buffer message type.", | |
1149 "id": "Type", | |
1150 "properties": { | |
1151 "options": { | |
1152 "description": "The protocol buffer options.", | |
1153 "items": { | |
1154 "$ref": "Option" | |
1155 }, | |
1156 "type": "array" | |
1157 }, | |
1158 "fields": { | |
1159 "description": "The list of fields.", | |
1160 "items": { | |
1161 "$ref": "Field" | |
1162 }, | |
1163 "type": "array" | |
1164 }, | |
1165 "name": { | |
1166 "description": "The fully qualified message name.", | |
1167 "type": "string" | |
1168 }, | |
1169 "oneofs": { | |
1170 "description": "The list of types appearing in `oneof` defin
itions in this type.", | |
1171 "items": { | |
1172 "type": "string" | |
1173 }, | |
1174 "type": "array" | |
1175 }, | |
1176 "sourceContext": { | |
1177 "$ref": "SourceContext", | |
1178 "description": "The source context." | |
1179 }, | |
1180 "syntax": { | |
1181 "description": "The source syntax.", | |
1182 "enum": [ | |
1183 "SYNTAX_PROTO2", | |
1184 "SYNTAX_PROTO3" | |
1185 ], | 1043 ], |
1186 "enumDescriptions": [ | 1044 "enumDescriptions": [ |
1187 "Syntax `proto2`.", | 1045 "Syntax `proto2`.", |
1188 "Syntax `proto3`." | 1046 "Syntax `proto3`." |
1189 ], | 1047 ], |
1190 "type": "string" | 1048 "type": "string" |
1191 } | |
1192 }, | |
1193 "type": "object" | |
1194 }, | |
1195 "GenerateConfigReportResponse": { | |
1196 "description": "Response message for GenerateConfigReport method.", | |
1197 "id": "GenerateConfigReportResponse", | |
1198 "properties": { | |
1199 "diagnostics": { | |
1200 "description": "Errors / Linter warnings associated with the
service definition this\nreport\nbelongs to.", | |
1201 "items": { | |
1202 "$ref": "Diagnostic" | |
1203 }, | |
1204 "type": "array" | |
1205 }, | |
1206 "serviceName": { | |
1207 "description": "Name of the service this report belongs to."
, | |
1208 "type": "string" | |
1209 }, | |
1210 "changeReports": { | |
1211 "description": "list of ChangeReport, each corresponding to
comparison between two\nservice configurations.", | |
1212 "items": { | |
1213 "$ref": "ChangeReport" | |
1214 }, | |
1215 "type": "array" | |
1216 }, | |
1217 "id": { | |
1218 "description": "ID of the service configuration this report
belongs to.", | |
1219 "type": "string" | |
1220 } | |
1221 }, | |
1222 "type": "object" | |
1223 }, | |
1224 "ListServiceConfigsResponse": { | |
1225 "description": "Response message for ListServiceConfigs method.", | |
1226 "id": "ListServiceConfigsResponse", | |
1227 "properties": { | |
1228 "serviceConfigs": { | |
1229 "description": "The list of service configuration resources.
", | |
1230 "items": { | |
1231 "$ref": "Service" | |
1232 }, | |
1233 "type": "array" | |
1234 }, | |
1235 "nextPageToken": { | |
1236 "description": "The token of the next page of results.", | |
1237 "type": "string" | |
1238 } | |
1239 }, | |
1240 "type": "object" | |
1241 }, | |
1242 "Experimental": { | |
1243 "description": "Experimental service configuration. These configurat
ion options can\nonly be used by whitelisted users.", | |
1244 "id": "Experimental", | |
1245 "properties": { | |
1246 "authorization": { | |
1247 "$ref": "AuthorizationConfig", | |
1248 "description": "Authorization configuration." | |
1249 } | |
1250 }, | |
1251 "type": "object" | |
1252 }, | |
1253 "Backend": { | |
1254 "description": "`Backend` defines the backend configuration for a se
rvice.", | |
1255 "id": "Backend", | |
1256 "properties": { | |
1257 "rules": { | |
1258 "description": "A list of API backend rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", | |
1259 "items": { | |
1260 "$ref": "BackendRule" | |
1261 }, | |
1262 "type": "array" | |
1263 } | |
1264 }, | |
1265 "type": "object" | |
1266 }, | |
1267 "AuditConfig": { | |
1268 "description": "Specifies the audit configuration for a service.\nTh
e configuration determines which permission types are logged, and what\nidentiti
es, if any, are exempted from logging.\nAn AuditConfig must have one or more Aud
itLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific
service,\nthe union of the two AuditConfigs is used for that service: the log_t
ypes\nspecified in each AuditConfig are enabled, and the exempted_members in eac
h\nAuditConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n
{\n \"audit_configs\": [\n {\n \"service\": \"allServices
\"\n \"audit_log_configs\": [\n {\n \"log_type\
": \"DATA_READ\",\n \"exempted_members\": [\n \"user
:foo@gmail.com\"\n ]\n },\n {\n
\"log_type\": \"DATA_WRITE\",\n },\n {\n \"lo
g_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n
\"service\": \"fooservice.googleapis.com\"\n \"audit_log_config
s\": [\n {\n \"log_type\": \"DATA_READ\",\n }
,\n {\n \"log_type\": \"DATA_WRITE\",\n \"e
xempted_members\": [\n \"user:bar@gmail.com\"\n ]\n
}\n ]\n }\n ]\n }\n\nFor fooservice, this pol
icy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@g
mail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", | |
1269 "id": "AuditConfig", | |
1270 "properties": { | |
1271 "service": { | |
1272 "description": "Specifies a service that will be enabled for
audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com
`.\n`allServices` is a special value that covers all services.", | |
1273 "type": "string" | |
1274 }, | |
1275 "auditLogConfigs": { | |
1276 "description": "The configuration for logging of each type o
f permission.\nNext ID: 4", | |
1277 "items": { | |
1278 "$ref": "AuditLogConfig" | |
1279 }, | |
1280 "type": "array" | |
1281 }, | |
1282 "exemptedMembers": { | |
1283 "items": { | |
1284 "type": "string" | |
1285 }, | |
1286 "type": "array" | |
1287 } | |
1288 }, | |
1289 "type": "object" | |
1290 }, | |
1291 "SubmitConfigSourceRequest": { | |
1292 "description": "Request message for SubmitConfigSource method.", | |
1293 "id": "SubmitConfigSourceRequest", | |
1294 "properties": { | |
1295 "configSource": { | |
1296 "$ref": "ConfigSource", | |
1297 "description": "The source configuration for the service." | |
1298 }, | |
1299 "validateOnly": { | |
1300 "description": "Optional. If set, this will result in the ge
neration of a\n`google.api.Service` configuration based on the `ConfigSource` pr
ovided,\nbut the generated config and the sources will NOT be persisted.", | |
1301 "type": "boolean" | |
1302 } | |
1303 }, | |
1304 "type": "object" | |
1305 }, | |
1306 "DocumentationRule": { | |
1307 "description": "A documentation rule provides information about indi
vidual API elements.", | |
1308 "id": "DocumentationRule", | |
1309 "properties": { | |
1310 "description": { | |
1311 "description": "Description of the selected API(s).", | |
1312 "type": "string" | |
1313 }, | |
1314 "deprecationDescription": { | |
1315 "description": "Deprecation description of the selected elem
ent(s). It can be provided if an\nelement is marked as `deprecated`.", | |
1316 "type": "string" | |
1317 }, | |
1318 "selector": { | |
1319 "description": "The selector is a comma-separated list of pa
tterns. Each pattern is a\nqualified name of the element which may end in \"*\",
indicating a wildcard.\nWildcards are only allowed at the end and for a whole c
omponent of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"f
oo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern
\"*\"\nis used.", | |
1320 "type": "string" | |
1321 } | |
1322 }, | |
1323 "type": "object" | |
1324 }, | |
1325 "AuthorizationConfig": { | |
1326 "description": "Configuration of authorization.\n\nThis section dete
rmines the authorization provider, if unspecified, then no\nauthorization check
will be done.\n\nExample:\n\n experimental:\n authorization:\n pr
ovider: firebaserules.googleapis.com", | |
1327 "id": "AuthorizationConfig", | |
1328 "properties": { | |
1329 "provider": { | |
1330 "description": "The name of the authorization provider, such
as\nfirebaserules.googleapis.com.", | |
1331 "type": "string" | |
1332 } | |
1333 }, | |
1334 "type": "object" | |
1335 }, | |
1336 "ContextRule": { | |
1337 "description": "A context rule provides information about the contex
t for an individual API\nelement.", | |
1338 "id": "ContextRule", | |
1339 "properties": { | |
1340 "provided": { | |
1341 "description": "A list of full type names of provided contex
ts.", | |
1342 "items": { | |
1343 "type": "string" | |
1344 }, | |
1345 "type": "array" | |
1346 }, | |
1347 "requested": { | |
1348 "description": "A list of full type names of requested conte
xts.", | |
1349 "items": { | |
1350 "type": "string" | |
1351 }, | |
1352 "type": "array" | |
1353 }, | |
1354 "selector": { | |
1355 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", | |
1356 "type": "string" | |
1357 } | |
1358 }, | |
1359 "type": "object" | |
1360 }, | |
1361 "CloudAuditOptions": { | |
1362 "description": "Write a Cloud Audit log", | |
1363 "id": "CloudAuditOptions", | |
1364 "properties": { | |
1365 "logName": { | |
1366 "description": "The log_name to populate in the Cloud Audit
Record.", | |
1367 "enum": [ | |
1368 "UNSPECIFIED_LOG_NAME", | |
1369 "ADMIN_ACTIVITY", | |
1370 "DATA_ACCESS" | |
1371 ], | |
1372 "enumDescriptions": [ | |
1373 "Default. Should not be used.", | |
1374 "Corresponds to \"cloudaudit.googleapis.com/activity\"", | |
1375 "Corresponds to \"cloudaudit.googleapis.com/data_access\
"" | |
1376 ], | |
1377 "type": "string" | |
1378 } | |
1379 }, | |
1380 "type": "object" | |
1381 }, | |
1382 "MetricDescriptor": { | |
1383 "description": "Defines a metric type and its schema. Once a metric
descriptor is created,\ndeleting or altering it stops data collection and makes
the metric type's\nexisting data unusable.", | |
1384 "id": "MetricDescriptor", | |
1385 "properties": { | |
1386 "metricKind": { | |
1387 "description": "Whether the metric records instantaneous val
ues, changes to a value, etc.\nSome combinations of `metric_kind` and `value_typ
e` might not be supported.", | |
1388 "enum": [ | |
1389 "METRIC_KIND_UNSPECIFIED", | |
1390 "GAUGE", | |
1391 "DELTA", | |
1392 "CUMULATIVE" | |
1393 ], | |
1394 "enumDescriptions": [ | |
1395 "Do not use this default value.", | |
1396 "An instantaneous measurement of a value.", | |
1397 "The change in a value during a time interval.", | |
1398 "A value accumulated over a time interval. Cumulative\n
measurements in a time series should have the same start time\nand increasing en
d times, until an event resets the cumulative\nvalue to zero and sets a new star
t time for the following\npoints." | |
1399 ], | |
1400 "type": "string" | |
1401 }, | |
1402 "description": { | |
1403 "description": "A detailed description of the metric, which
can be used in documentation.", | |
1404 "type": "string" | |
1405 }, | |
1406 "displayName": { | |
1407 "description": "A concise name for the metric, which can be
displayed in user interfaces.\nUse sentence case without an ending period, for e
xample \"Request count\".", | |
1408 "type": "string" | |
1409 }, | |
1410 "unit": { | |
1411 "description": "The unit in which the metric value is report
ed. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIB
UTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMea
sure](http://unitsofmeasure.org/ucum.html) standard:\n\n**Basic units (UNIT)**\n
\n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` h
our\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M`
mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P
` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n
* `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**-
6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto (
10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yo
cto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi`
gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includ
es the dimensionless unit `1`, such as `1/s`.\n\nThe grammar also includes these
connectors:\n\n* `/` division (as an infix operator, e.g. `1/s`).\n* `.`
multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is
as follows:\n\n Expression = Component { \".\" Component } { \"/\" Component
} ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotati
on\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\"
;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n
equivalent to `1` if it is used alone. For examples,\n `{requests}/s == 1/s`
, `By{transmitted}/s == By/s`.\n* `NAME` is a sequence of non-blank printable AS
CII characters not\n containing '{' or '}'.", | |
1412 "type": "string" | |
1413 }, | |
1414 "labels": { | |
1415 "description": "The set of labels that can be used to descri
be a specific\ninstance of this metric type. For example, the\n`appengine.google
apis.com/http/server/response_latencies` metric\ntype has a label for the HTTP r
esponse code, `response_code`, so\nyou can look at latencies for successful resp
onses or just\nfor responses that failed.", | |
1416 "items": { | |
1417 "$ref": "LabelDescriptor" | |
1418 }, | |
1419 "type": "array" | |
1420 }, | |
1421 "name": { | |
1422 "description": "The resource name of the metric descriptor.
Depending on the\nimplementation, the name typically includes: (1) the parent re
source name\nthat defines the scope of the metric type or of its data; and (2) t
he\nmetric's URL-encoded type, which also appears in the `type` field of this\nd
escriptor. For example, following is the resource name of a custom\nmetric withi
n the GCP project `my-project-id`:\n\n \"projects/my-project-id/metricDescrip
tors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"", | |
1423 "type": "string" | |
1424 }, | |
1425 "type": { | |
1426 "description": "The metric type, including its DNS name pref
ix. The type is not\nURL-encoded. All user-defined custom metric types have the
DNS name\n`custom.googleapis.com`. Metric types should use a natural hierarchi
cal\ngrouping. For example:\n\n \"custom.googleapis.com/invoice/paid/amount\"
\n \"appengine.googleapis.com/http/server/response_latencies\"", | |
1427 "type": "string" | |
1428 }, | |
1429 "valueType": { | |
1430 "description": "Whether the measurement is an integer, a flo
ating-point number, etc.\nSome combinations of `metric_kind` and `value_type` mi
ght not be supported.", | |
1431 "enum": [ | |
1432 "VALUE_TYPE_UNSPECIFIED", | |
1433 "BOOL", | |
1434 "INT64", | |
1435 "DOUBLE", | |
1436 "STRING", | |
1437 "DISTRIBUTION", | |
1438 "MONEY" | |
1439 ], | |
1440 "enumDescriptions": [ | |
1441 "Do not use this default value.", | |
1442 "The value is a boolean.\nThis value type can be used on
ly if the metric kind is `GAUGE`.", | |
1443 "The value is a signed 64-bit integer.", | |
1444 "The value is a double precision floating point number."
, | |
1445 "The value is a text string.\nThis value type can be use
d only if the metric kind is `GAUGE`.", | |
1446 "The value is a `Distribution`.", | |
1447 "The value is money." | |
1448 ], | |
1449 "type": "string" | |
1450 } | |
1451 }, | |
1452 "type": "object" | |
1453 }, | |
1454 "SourceContext": { | |
1455 "description": "`SourceContext` represents information about the sou
rce of a\nprotobuf element, like the file in which it is defined.", | |
1456 "id": "SourceContext", | |
1457 "properties": { | |
1458 "fileName": { | |
1459 "description": "The path-qualified name of the .proto file t
hat contained the associated\nprotobuf element. For example: `\"google/protobuf
/source_context.proto\"`.", | |
1460 "type": "string" | |
1461 } | |
1462 }, | |
1463 "type": "object" | |
1464 }, | |
1465 "Expr": { | |
1466 "description": "Represents an expression text. Example:\n\n title
: \"User account presence\"\n description: \"Determines whether the request h
as a user account\"\n expression: \"size(request.user) > 0\"", | |
1467 "id": "Expr", | |
1468 "properties": { | |
1469 "description": { | |
1470 "description": "An optional description of the expression. T
his is a longer text which\ndescribes the expression, e.g. when hovered over it
in a UI.", | |
1471 "type": "string" | |
1472 }, | |
1473 "expression": { | |
1474 "description": "Textual representation of an expression in\n
Common Expression Language syntax.\n\nThe application context of the containing
message determines which\nwell-known feature set of CEL is supported.", | |
1475 "type": "string" | |
1476 }, | |
1477 "location": { | |
1478 "description": "An optional string indicating the location o
f the expression for error\nreporting, e.g. a file name and a position in the fi
le.", | |
1479 "type": "string" | |
1480 }, | |
1481 "title": { | |
1482 "description": "An optional title for the expression, i.e. a
short string describing\nits purpose. This can be used e.g. in UIs which allow
to enter the\nexpression.", | |
1483 "type": "string" | |
1484 } | |
1485 }, | |
1486 "type": "object" | |
1487 }, | |
1488 "ListServicesResponse": { | |
1489 "description": "Response message for `ListServices` method.", | |
1490 "id": "ListServicesResponse", | |
1491 "properties": { | |
1492 "nextPageToken": { | |
1493 "description": "Token that can be passed to `ListServices` t
o resume a paginated query.", | |
1494 "type": "string" | |
1495 }, | |
1496 "services": { | |
1497 "description": "The returned services will only have the nam
e field set.", | |
1498 "items": { | |
1499 "$ref": "ManagedService" | |
1500 }, | |
1501 "type": "array" | |
1502 } | |
1503 }, | |
1504 "type": "object" | |
1505 }, | |
1506 "Endpoint": { | |
1507 "description": "`Endpoint` describes a network endpoint that serves
a set of APIs.\nA service may expose any number of endpoints, and all endpoints
share the\nsame service configuration, such as quota configuration and monitorin
g\nconfiguration.\n\nExample service configuration:\n\n name: library-example
.googleapis.com\n endpoints:\n # Below entry makes 'google.example.libra
ry.v1.Library'\n # API be served from endpoint address library-example.goog
leapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backe
nd, for\n # it to decide whether the subsequent cross-origin request is\n
# allowed to proceed.\n - name: library-example.googleapis.com\n all
ow_cors: true", | |
1508 "id": "Endpoint", | |
1509 "properties": { | |
1510 "features": { | |
1511 "description": "The list of features enabled on this endpoin
t.", | |
1512 "items": { | |
1513 "type": "string" | |
1514 }, | |
1515 "type": "array" | |
1516 }, | |
1517 "apis": { | |
1518 "description": "The list of APIs served by this endpoint.\n\
nIf no APIs are specified this translates to \"all APIs\" exported by the\nservi
ce, as defined in the top-level service configuration.", | |
1519 "items": { | |
1520 "type": "string" | |
1521 }, | |
1522 "type": "array" | |
1523 }, | |
1524 "allowCors": { | |
1525 "description": "Allowing\n[CORS](https://en.wikipedia.org/wi
ki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the ba
ckends served from this endpoint to\nreceive and respond to HTTP OPTIONS request
s. The response will be used by\nthe browser to determine whether the subsequent
cross-origin request is\nallowed to proceed.", | |
1526 "type": "boolean" | |
1527 }, | |
1528 "aliases": { | |
1529 "description": "DEPRECATED: This field is no longer supporte
d. Instead of using aliases,\nplease specify multiple google.api.Endpoint for ea
ch of the intented\nalias.\n\nAdditional names that this endpoint will be hosted
on.", | |
1530 "items": { | |
1531 "type": "string" | |
1532 }, | |
1533 "type": "array" | |
1534 }, | |
1535 "target": { | |
1536 "description": "The specification of an Internet routable ad
dress of API frontend that will\nhandle requests to this [API Endpoint](https://
cloud.google.com/apis/design/glossary).\nIt should be either a valid IPv4 addres
s or a fully-qualified domain name.\nFor example, \"8.8.8.8\" or \"myservice.app
spot.com\".", | |
1537 "type": "string" | |
1538 }, | |
1539 "name": { | |
1540 "description": "The canonical name of this endpoint.", | |
1541 "type": "string" | |
1542 } | |
1543 }, | |
1544 "type": "object" | |
1545 }, | |
1546 "OAuthRequirements": { | |
1547 "description": "OAuth scopes are a way to define data and permission
s on data. For example,\nthere are scopes defined for \"Read-only access to Goog
le Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope fo
r an application,\ngiving it permission to access that data on their behalf.\n\n
OAuth scope specifications should be fairly coarse grained; a user will need\nto
see and understand the text description of what your scope means.\n\nIn most ca
ses: use one or at most two OAuth scopes for an entire family of\nproducts. If y
our product has multiple APIs, you should probably be sharing\nthe OAuth scope a
cross all of those APIs.\n\nWhen you need finer grained OAuth consent screens: t
alk with your product\nmanagement about how developers will use them in practice
.\n\nPlease note that even though each of the canonical scopes is enough for a\n
request to be accepted and passed to the backend, a request can still fail\ndue
to the backend requiring additional scopes or permissions.", | |
1548 "id": "OAuthRequirements", | |
1549 "properties": { | |
1550 "canonicalScopes": { | |
1551 "description": "The list of publicly documented OAuth scopes
that are allowed access. An\nOAuth token containing any of these scopes will be
accepted.\n\nExample:\n\n canonical_scopes: https://www.googleapis.com/auth
/calendar,\n https://www.googleapis.com/auth/calendar.read
", | |
1552 "type": "string" | |
1553 } | |
1554 }, | |
1555 "type": "object" | |
1556 }, | |
1557 "Usage": { | |
1558 "description": "Configuration controlling usage of a service.", | |
1559 "id": "Usage", | |
1560 "properties": { | |
1561 "requirements": { | |
1562 "description": "Requirements that must be satisfied before a
consumer project can use the\nservice. Each requirement is of the form <service
.name>/<requirement-id>;\nfor example 'serviceusage.googleapis.com/billing-enabl
ed'.", | |
1563 "items": { | |
1564 "type": "string" | |
1565 }, | |
1566 "type": "array" | |
1567 }, | |
1568 "producerNotificationChannel": { | |
1569 "description": "The full resource name of a channel used for
sending notifications to the\nservice producer.\n\nGoogle Service Management cu
rrently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) a
s a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must
be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name fo
rmat\ndocumented in https://cloud.google.com/pubsub/docs/overview.", | |
1570 "type": "string" | |
1571 }, | |
1572 "rules": { | |
1573 "description": "A list of usage rules that apply to individu
al API methods.\n\n**NOTE:** All service configuration rules follow \"last one w
ins\" order.", | |
1574 "items": { | |
1575 "$ref": "UsageRule" | |
1576 }, | |
1577 "type": "array" | |
1578 } | |
1579 }, | |
1580 "type": "object" | |
1581 }, | |
1582 "GetIamPolicyRequest": { | |
1583 "description": "Request message for `GetIamPolicy` method.", | |
1584 "id": "GetIamPolicyRequest", | |
1585 "properties": {}, | |
1586 "type": "object" | |
1587 }, | |
1588 "TestIamPermissionsResponse": { | |
1589 "description": "Response message for `TestIamPermissions` method.", | |
1590 "id": "TestIamPermissionsResponse", | |
1591 "properties": { | |
1592 "permissions": { | |
1593 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | |
1594 "items": { | |
1595 "type": "string" | |
1596 }, | |
1597 "type": "array" | |
1598 } | |
1599 }, | |
1600 "type": "object" | |
1601 }, | |
1602 "Context": { | |
1603 "description": "`Context` defines which contexts an API requests.\n\
nExample:\n\n context:\n rules:\n - selector: \"*\"\n reques
ted:\n - google.rpc.context.ProjectContext\n - google.rpc.context.
OriginContext\n\nThe above specifies that all methods in the API request\n`googl
e.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvaila
ble context types are defined in package\n`google.rpc.context`.", | |
1604 "id": "Context", | |
1605 "properties": { | |
1606 "rules": { | |
1607 "description": "A list of RPC context rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", | |
1608 "items": { | |
1609 "$ref": "ContextRule" | |
1610 }, | |
1611 "type": "array" | |
1612 } | |
1613 }, | |
1614 "type": "object" | |
1615 }, | |
1616 "Rule": { | |
1617 "description": "A rule to be applied in a Policy.", | |
1618 "id": "Rule", | |
1619 "properties": { | |
1620 "notIn": { | |
1621 "description": "If one or more 'not_in' clauses are specifie
d, the rule matches\nif the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entri
es.\nThe format for in and not_in entries is the same as for members in a\nBindi
ng (see google/iam/v1/policy.proto).", | |
1622 "items": { | |
1623 "type": "string" | |
1624 }, | |
1625 "type": "array" | |
1626 }, | |
1627 "description": { | |
1628 "description": "Human-readable description of the rule.", | |
1629 "type": "string" | |
1630 }, | |
1631 "conditions": { | |
1632 "description": "Additional restrictions that must be met", | |
1633 "items": { | |
1634 "$ref": "Condition" | |
1635 }, | |
1636 "type": "array" | |
1637 }, | |
1638 "logConfig": { | |
1639 "description": "The config returned to callers of tech.iam.I
AM.CheckPolicy for any entries\nthat match the LOG action.", | |
1640 "items": { | |
1641 "$ref": "LogConfig" | |
1642 }, | |
1643 "type": "array" | |
1644 }, | |
1645 "in": { | |
1646 "description": "If one or more 'in' clauses are specified, t
he rule matches if\nthe PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these
entries.", | |
1647 "items": { | |
1648 "type": "string" | |
1649 }, | |
1650 "type": "array" | |
1651 }, | |
1652 "permissions": { | |
1653 "description": "A permission is a string of form '<service>.
<resource type>.<verb>'\n(e.g., 'storage.buckets.list'). A value of '*' matches
all permissions,\nand a verb part of '*' (e.g., 'storage.buckets.*') matches all
verbs.", | |
1654 "items": { | |
1655 "type": "string" | |
1656 }, | |
1657 "type": "array" | |
1658 }, | |
1659 "action": { | |
1660 "description": "Required", | |
1661 "enum": [ | |
1662 "NO_ACTION", | |
1663 "ALLOW", | |
1664 "ALLOW_WITH_LOG", | |
1665 "DENY", | |
1666 "DENY_WITH_LOG", | |
1667 "LOG" | |
1668 ], | |
1669 "enumDescriptions": [ | |
1670 "Default no action.", | |
1671 "Matching 'Entries' grant access.", | |
1672 "Matching 'Entries' grant access and the caller promises
to log\nthe request per the returned log_configs.", | |
1673 "Matching 'Entries' deny access.", | |
1674 "Matching 'Entries' deny access and the caller promises
to log\nthe request per the returned log_configs.", | |
1675 "Matching 'Entries' tell IAM.Check callers to generate l
ogs." | |
1676 ], | |
1677 "type": "string" | |
1678 } | |
1679 }, | |
1680 "type": "object" | |
1681 }, | |
1682 "LogConfig": { | |
1683 "description": "Specifies what kind of log the caller must write", | |
1684 "id": "LogConfig", | |
1685 "properties": { | |
1686 "dataAccess": { | |
1687 "$ref": "DataAccessOptions", | |
1688 "description": "Data access options." | |
1689 }, | |
1690 "cloudAudit": { | |
1691 "$ref": "CloudAuditOptions", | |
1692 "description": "Cloud audit options." | |
1693 }, | |
1694 "counter": { | |
1695 "$ref": "CounterOptions", | |
1696 "description": "Counter options." | |
1697 } | |
1698 }, | |
1699 "type": "object" | |
1700 }, | |
1701 "LogDescriptor": { | |
1702 "description": "A description of a log type. Example in YAML format:
\n\n - name: library.googleapis.com/activity_history\n description: The
history of borrowing and returning library items.\n display_name: Activity\
n labels:\n - key: /customer_id\n description: Identifier of a
library customer", | |
1703 "id": "LogDescriptor", | |
1704 "properties": { | |
1705 "displayName": { | |
1706 "description": "The human-readable name for this log. This i
nformation appears on\nthe user interface and should be concise.", | |
1707 "type": "string" | |
1708 }, | |
1709 "description": { | |
1710 "description": "A human-readable description of this log. Th
is information appears in\nthe documentation and can contain details.", | |
1711 "type": "string" | |
1712 }, | |
1713 "labels": { | |
1714 "description": "The set of labels that are available to desc
ribe a specific log entry.\nRuntime requests that contain labels not specified h
ere are\nconsidered invalid.", | |
1715 "items": { | |
1716 "$ref": "LabelDescriptor" | |
1717 }, | |
1718 "type": "array" | |
1719 }, | |
1720 "name": { | |
1721 "description": "The name of the log. It must be less than 51
2 characters long and can\ninclude the following characters: upper- and lower-ca
se alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\ns
lash, underscore, hyphen, period [/_-.].", | |
1722 "type": "string" | |
1723 } | |
1724 }, | |
1725 "type": "object" | |
1726 }, | |
1727 "ConfigFile": { | |
1728 "description": "Generic specification of a source configuration file
", | |
1729 "id": "ConfigFile", | |
1730 "properties": { | |
1731 "fileContents": { | |
1732 "description": "The bytes that constitute the file.", | |
1733 "format": "byte", | |
1734 "type": "string" | |
1735 }, | |
1736 "filePath": { | |
1737 "description": "The file name of the configuration file (ful
l or relative path).", | |
1738 "type": "string" | |
1739 }, | |
1740 "fileType": { | |
1741 "description": "The type of configuration file this represen
ts.", | |
1742 "enum": [ | |
1743 "FILE_TYPE_UNSPECIFIED", | |
1744 "SERVICE_CONFIG_YAML", | |
1745 "OPEN_API_JSON", | |
1746 "OPEN_API_YAML", | |
1747 "FILE_DESCRIPTOR_SET_PROTO" | |
1748 ], | |
1749 "enumDescriptions": [ | |
1750 "Unknown file type.", | |
1751 "YAML-specification of service.", | |
1752 "OpenAPI specification, serialized in JSON.", | |
1753 "OpenAPI specification, serialized in YAML.", | |
1754 "FileDescriptorSet, generated by protoc.\n\nTo generate,
use protoc with imports and source info included.\nFor an example test.proto fi
le, the following command would put the value\nin a new file named out.pb.\n\n$p
rotoc --include_imports --include_source_info test.proto -o out.pb" | |
1755 ], | |
1756 "type": "string" | |
1757 } | |
1758 }, | |
1759 "type": "object" | |
1760 }, | |
1761 "MonitoredResourceDescriptor": { | |
1762 "description": "An object that describes the schema of a MonitoredRe
source object using a\ntype name and a set of labels. For example, the monitore
d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"
gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo
ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe
nt monitored resource types. APIs generally\nprovide a `list` method that return
s the monitored resource descriptors used\nby the API.", | |
1763 "id": "MonitoredResourceDescriptor", | |
1764 "properties": { | |
1765 "labels": { | |
1766 "description": "Required. A set of labels used to describe i
nstances of this monitored\nresource type. For example, an individual Google Clo
ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\
"zone\"`.", | |
1767 "items": { | |
1768 "$ref": "LabelDescriptor" | |
1769 }, | |
1770 "type": "array" | |
1771 }, | |
1772 "name": { | |
1773 "description": "Optional. The resource name of the monitored
resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty
pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje
ct_id} is a project ID that provides API-specific context for\naccessing the typ
e. APIs that do not use project information can use the\nresource name format `
\"monitoredResourceDescriptors/{type}\"`.", | |
1774 "type": "string" | |
1775 }, | |
1776 "description": { | |
1777 "description": "Optional. A detailed description of the moni
tored resource type that might\nbe used in documentation.", | |
1778 "type": "string" | |
1779 }, | |
1780 "displayName": { | |
1781 "description": "Optional. A concise name for the monitored r
esource type that might be\ndisplayed in user interfaces. It should be a Title C
ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go
ogle Cloud SQL Database\"`.", | |
1782 "type": "string" | |
1783 }, | |
1784 "type": { | |
1785 "description": "Required. The monitored resource type. For e
xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S
QL.\nThe maximum length of this value is 256 characters.", | |
1786 "type": "string" | |
1787 } | |
1788 }, | |
1789 "type": "object" | |
1790 }, | |
1791 "CustomErrorRule": { | |
1792 "description": "A custom error rule.", | |
1793 "id": "CustomErrorRule", | |
1794 "properties": { | |
1795 "isErrorType": { | |
1796 "description": "Mark this message as possible payload in err
or response. Otherwise,\nobjects of this type will be filtered when they appear
in error payload.", | |
1797 "type": "boolean" | |
1798 }, | |
1799 "selector": { | |
1800 "description": "Selects messages to which this rule applies.
\n\nRefer to selector for syntax details.", | |
1801 "type": "string" | |
1802 } | |
1803 }, | |
1804 "type": "object" | |
1805 }, | |
1806 "MediaDownload": { | |
1807 "description": "Defines the Media configuration for a service in cas
e of a download.\nUse this only for Scotty Requests. Do not use this for media s
upport using\nBytestream, add instead [][google.bytestream.RestByteStream] as an
API to\nyour configuration for Bytestream methods.", | |
1808 "id": "MediaDownload", | |
1809 "properties": { | |
1810 "enabled": { | |
1811 "description": "Whether download is enabled.", | |
1812 "type": "boolean" | |
1813 }, | |
1814 "downloadService": { | |
1815 "description": "DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS
WARNING IS REMOVED.\n\nSpecify name of the download service if one is used for
download.", | |
1816 "type": "string" | |
1817 }, | |
1818 "completeNotification": { | |
1819 "description": "A boolean that determines whether a notifica
tion for the completion of a\ndownload should be sent to the backend.", | |
1820 "type": "boolean" | |
1821 }, | |
1822 "maxDirectDownloadSize": { | |
1823 "description": "Optional maximum acceptable size for direct
download.\nThe size is specified in bytes.", | |
1824 "format": "int64", | |
1825 "type": "string" | |
1826 }, | |
1827 "dropzone": { | |
1828 "description": "Name of the Scotty dropzone to use for the c
urrent API.", | |
1829 "type": "string" | |
1830 }, | |
1831 "useDirectDownload": { | |
1832 "description": "A boolean that determines if direct download
from ESF should be used for\ndownload of this media.", | |
1833 "type": "boolean" | |
1834 } | |
1835 }, | |
1836 "type": "object" | |
1837 }, | |
1838 "CustomAuthRequirements": { | |
1839 "description": "Configuration for a custom authentication provider."
, | |
1840 "id": "CustomAuthRequirements", | |
1841 "properties": { | |
1842 "provider": { | |
1843 "description": "A configuration string containing connection
information for the\nauthentication provider, typically formatted as a SmartSer
vice string\n(go/smartservice).", | |
1844 "type": "string" | |
1845 } | |
1846 }, | |
1847 "type": "object" | |
1848 }, | |
1849 "ChangeReport": { | |
1850 "description": "Change report associated with a particular service c
onfiguration.\n\nIt contains a list of ConfigChanges based on the comparison bet
ween\ntwo service configurations.", | |
1851 "id": "ChangeReport", | |
1852 "properties": { | |
1853 "configChanges": { | |
1854 "description": "List of changes between two service configur
ations.\nThe changes will be alphabetically sorted based on the identifier\nof e
ach change.\nA ConfigChange identifier is a dot separated path to the configurat
ion.\nExample: visibility.rules[selector='LibraryService.CreateBook'].restrictio
n", | |
1855 "items": { | |
1856 "$ref": "ConfigChange" | |
1857 }, | |
1858 "type": "array" | |
1859 } | |
1860 }, | |
1861 "type": "object" | |
1862 }, | |
1863 "DisableServiceRequest": { | |
1864 "description": "Request message for DisableService method.", | |
1865 "id": "DisableServiceRequest", | |
1866 "properties": { | |
1867 "consumerId": { | |
1868 "description": "The identity of consumer resource which serv
ice disablement will be\napplied to.\n\nThe Google Service Management implementa
tion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is
made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", | |
1869 "type": "string" | |
1870 } | |
1871 }, | |
1872 "type": "object" | |
1873 }, | |
1874 "SubmitConfigSourceResponse": { | |
1875 "description": "Response message for SubmitConfigSource method.", | |
1876 "id": "SubmitConfigSourceResponse", | |
1877 "properties": { | |
1878 "serviceConfig": { | |
1879 "$ref": "Service", | |
1880 "description": "The generated service configuration." | |
1881 } | |
1882 }, | |
1883 "type": "object" | |
1884 }, | |
1885 "MediaUpload": { | |
1886 "description": "Defines the Media configuration for a service in cas
e of an upload.\nUse this only for Scotty Requests. Do not use this for media su
pport using\nBytestream, add instead [][google.bytestream.RestByteStream] as an
API to\nyour configuration for Bytestream methods.", | |
1887 "id": "MediaUpload", | |
1888 "properties": { | |
1889 "completeNotification": { | |
1890 "description": "A boolean that determines whether a notifica
tion for the completion of an\nupload should be sent to the backend. These notif
ications will not be seen\nby the client and will not consume quota.", | |
1891 "type": "boolean" | |
1892 }, | |
1893 "progressNotification": { | |
1894 "description": "Whether to receive a notification for progre
ss changes of media upload.", | |
1895 "type": "boolean" | |
1896 }, | |
1897 "enabled": { | |
1898 "description": "Whether upload is enabled.", | |
1899 "type": "boolean" | |
1900 }, | |
1901 "dropzone": { | |
1902 "description": "Name of the Scotty dropzone to use for the c
urrent API.", | |
1903 "type": "string" | |
1904 }, | |
1905 "startNotification": { | |
1906 "description": "Whether to receive a notification on the sta
rt of media upload.", | |
1907 "type": "boolean" | |
1908 }, | |
1909 "uploadService": { | |
1910 "description": "DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS
WARNING IS REMOVED.\n\nSpecify name of the upload service if one is used for up
load.", | |
1911 "type": "string" | |
1912 }, | |
1913 "mimeTypes": { | |
1914 "description": "An array of mimetype patterns. Esf will only
accept uploads that match one\nof the given patterns.", | |
1915 "items": { | |
1916 "type": "string" | |
1917 }, | |
1918 "type": "array" | |
1919 }, | |
1920 "maxSize": { | |
1921 "description": "Optional maximum acceptable size for an uplo
ad.\nThe size is specified in bytes.", | |
1922 "format": "int64", | |
1923 "type": "string" | |
1924 } | |
1925 }, | |
1926 "type": "object" | |
1927 }, | |
1928 "Advice": { | |
1929 "description": "Generated advice about this change, used for providi
ng more\ninformation about how a change will affect the existing service.", | |
1930 "id": "Advice", | |
1931 "properties": { | |
1932 "description": { | |
1933 "description": "Useful description for why this advice was a
pplied and what actions should\nbe taken to mitigate any implied risks.", | |
1934 "type": "string" | |
1935 } | |
1936 }, | |
1937 "type": "object" | |
1938 }, | |
1939 "ManagedService": { | |
1940 "description": "The full representation of a Service that is managed
by\nGoogle Service Management.", | |
1941 "id": "ManagedService", | |
1942 "properties": { | |
1943 "producerProjectId": { | |
1944 "description": "ID of the project that produces and owns thi
s service.", | |
1945 "type": "string" | |
1946 }, | |
1947 "serviceName": { | |
1948 "description": "The name of the service. See the [overview](
/service-management/overview)\nfor naming requirements.", | |
1949 "type": "string" | |
1950 } | |
1951 }, | |
1952 "type": "object" | |
1953 }, | |
1954 "UsageRule": { | |
1955 "description": "Usage configuration rules for the service.\n\nNOTE:
Under development.\n\n\nUse this rule to configure unregistered calls for the se
rvice. Unregistered\ncalls are calls that do not contain consumer project identi
ty.\n(Example: calls that do not contain an API key).\nBy default, API methods d
o not allow unregistered calls, and each method call\nmust be identified by a co
nsumer project identity. Use this rule to\nallow/disallow unregistered calls.\n\
nExample of an API that wants to allow unregistered calls for entire service.\n\
n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_c
alls: true\n\nExample of a method that wants to allow unregistered calls.\n\n
usage:\n rules:\n - selector: \"google.example.library.v1.LibraryServ
ice.CreateBook\"\n allow_unregistered_calls: true", | |
1956 "id": "UsageRule", | |
1957 "properties": { | |
1958 "selector": { | |
1959 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", | |
1960 "type": "string" | |
1961 }, | |
1962 "skipServiceControl": { | |
1963 "description": "True, if the method should skip service cont
rol. If so, no control plane\nfeature (like quota and billing) will be enabled."
, | |
1964 "type": "boolean" | |
1965 }, | |
1966 "allowUnregisteredCalls": { | |
1967 "description": "True, if the method allows unregistered call
s; false otherwise.", | |
1968 "type": "boolean" | |
1969 } | |
1970 }, | |
1971 "type": "object" | |
1972 }, | |
1973 "AuthRequirement": { | |
1974 "description": "User-defined authentication requirements, including
support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth
-json-web-token-32).", | |
1975 "id": "AuthRequirement", | |
1976 "properties": { | |
1977 "audiences": { | |
1978 "description": "NOTE: This will be deprecated soon, once Aut
hProvider.audiences is\nimplemented and accepted in all the runtime components.\
n\nThe list of JWT\n[audiences](https://tools.ietf.org/html/draft-ietf-oauth-jso
n-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any
of these audiences will\nbe accepted. When this setting is absent, only JWTs wi
th audience\n\"https://Service_name/API_name\"\nwill be accepted. For example, i
f no audiences are in the setting,\nLibraryService API will only accept JWTs wit
h the following audience\n\"https://library-example.googleapis.com/google.exampl
e.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.a
pps.googleusercontent.com,\n bookstore_web.apps.googleusercontent.
com", | |
1979 "type": "string" | |
1980 }, | |
1981 "providerId": { | |
1982 "description": "id from authentication provider.\n\nExample:
\n\n provider_id: bookstore_auth", | |
1983 "type": "string" | |
1984 } | |
1985 }, | |
1986 "type": "object" | |
1987 }, | |
1988 "TrafficPercentStrategy": { | |
1989 "description": "Strategy that specifies how clients of Google Servic
e Controller want to\nsend traffic to use different config versions. This is gen
erally\nused by API proxy to split traffic based on your configured precentage f
or\neach config version.\n\nOne example of how to gradually rollout a new servic
e configuration using\nthis\nstrategy:\nDay 1\n\n Rollout {\n id: \"exam
ple.googleapis.com/rollout_20160206\"\n traffic_percent_strategy {\n
percentages: {\n \"example.googleapis.com/20160201\": 70.00\n
\"example.googleapis.com/20160206\": 30.00\n }\n }\n }\n\nDay 2\
n\n Rollout {\n id: \"example.googleapis.com/rollout_20160207\"\n t
raffic_percent_strategy: {\n percentages: {\n \"example.googleap
is.com/20160206\": 100.00\n }\n }\n }", | |
1990 "id": "TrafficPercentStrategy", | |
1991 "properties": { | |
1992 "percentages": { | |
1993 "additionalProperties": { | |
1994 "format": "double", | |
1995 "type": "number" | |
1996 }, | |
1997 "description": "Maps service configuration IDs to their corr
esponding traffic percentage.\nKey is the service configuration ID, Value is the
traffic percentage\nwhich must be greater than 0.0 and the sum must equal to 10
0.0.", | |
1998 "type": "object" | |
1999 } | |
2000 }, | |
2001 "type": "object" | |
2002 }, | |
2003 "Documentation": { | |
2004 "description": "`Documentation` provides the information for describ
ing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Goo
gle Calendar API gives access\n to most calendar features.\n pages:\n - nam
e: Overview\n content: (== include google/foo/overview.md ==)\n - na
me: Tutorial\n content: (== include google/foo/tutorial.md ==)\n s
ubpages;\n - name: Java\n content: (== include google/foo/tutorial_j
ava.md ==)\n rules:\n - selector: google.calendar.Calendar.Get\n descri
ption: >\n ...\n - selector: google.calendar.Calendar.Put\n description
: >\n ...\n</code></pre>\nDocumentation is provided in markdown syntax. In
addition to\nstandard markdown features, definition lists, tables and fenced\nco
de blocks are supported. Section headers can be provided and are\ninterpreted re
lative to the section nesting of the context where\na documentation fragment is
embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvi
a the config at normalization time, where documentation provided\nby config rule
s overrides IDL provided.\n\nA number of constructs specific to the API platform
are supported\nin documentation text.\n\nIn order to reference a proto element,
the following\nnotation can be used:\n<pre><code>[fully.qualified.proto.nam
e][]</code></pre>\nTo override the display text used for the link, this can
be used:\n<pre><code>[display text][fully.qualified.proto.name]</code></
pre>\nText can be excluded from doc using the following notation:\n<pre><code>&#
40;-- internal comment --)</code></pre>\nComments can be made conditional us
ing a visibility label. The below\ntext will be only rendered if the `BETA` labe
l is available:\n<pre><code>(--BETA: comment for BETA users --)</code></
pre>\nA few directives are available in documentation. Note that\ndirectives mus
t appear on a single line to be properly\nidentified. The `include` directive in
cludes a markdown file from\nan external source:\n<pre><code>(== include pat
h/to/file ==)</code></pre>\nThe `resource_for` directive marks a message to
be the resource of\na collection in REST view. If it is not specified, tools att
empt\nto infer the resource from the operations in a collection:\n<pre><code>
0;== resource_for v1.shelves.books ==)</code></pre>\nThe directive `suppress
_warning` does not directly affect documentation\nand is documented together wit
h service config validation.", | |
2005 "id": "Documentation", | |
2006 "properties": { | |
2007 "summary": { | |
2008 "description": "A short summary of what the service does. Ca
n only be provided by\nplain text.", | |
2009 "type": "string" | |
2010 }, | |
2011 "documentationRootUrl": { | |
2012 "description": "The URL to the root of documentation.", | |
2013 "type": "string" | |
2014 }, | |
2015 "overview": { | |
2016 "description": "Declares a single overview page. For example
:\n<pre><code>documentation:\n summary: ...\n overview: (== include overvi
ew.md ==)\n</code></pre>\nThis is a shortcut for the following declaration (
using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - na
me: Overview\n content: (== include overview.md ==)\n</code></pre>\nN
ote: you cannot specify both `overview` field and `pages` field.", | |
2017 "type": "string" | |
2018 }, | |
2019 "rules": { | |
2020 "description": "A list of documentation rules that apply to
individual API elements.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", | |
2021 "items": { | |
2022 "$ref": "DocumentationRule" | |
2023 }, | |
2024 "type": "array" | |
2025 }, | |
2026 "pages": { | |
2027 "description": "The top level pages for the documentation se
t.", | |
2028 "items": { | |
2029 "$ref": "Page" | |
2030 }, | |
2031 "type": "array" | |
2032 } | |
2033 }, | |
2034 "type": "object" | |
2035 }, | |
2036 "Condition": { | |
2037 "description": "A condition to be met.", | |
2038 "id": "Condition", | |
2039 "properties": { | |
2040 "op": { | |
2041 "description": "An operator to apply the subject with.", | |
2042 "enum": [ | |
2043 "NO_OP", | |
2044 "EQUALS", | |
2045 "NOT_EQUALS", | |
2046 "IN", | |
2047 "NOT_IN", | |
2048 "DISCHARGED" | |
2049 ], | |
2050 "enumDescriptions": [ | |
2051 "Default no-op.", | |
2052 "DEPRECATED. Use IN instead.", | |
2053 "DEPRECATED. Use NOT_IN instead.", | |
2054 "The condition is true if the subject (or any element of
it if it is\na set) matches any of the supplied values.", | |
2055 "The condition is true if the subject (or every element
of it if it is\na set) matches none of the supplied values.", | |
2056 "Subject is discharged" | |
2057 ], | |
2058 "type": "string" | |
2059 }, | |
2060 "svc": { | |
2061 "description": "Trusted attributes discharged by the service
.", | |
2062 "type": "string" | |
2063 }, | |
2064 "value": { | |
2065 "description": "DEPRECATED. Use 'values' instead.", | |
2066 "type": "string" | |
2067 }, | |
2068 "sys": { | |
2069 "description": "Trusted attributes supplied by any service t
hat owns resources and uses\nthe IAM system for access control.", | |
2070 "enum": [ | |
2071 "NO_ATTR", | |
2072 "REGION", | |
2073 "SERVICE", | |
2074 "NAME", | |
2075 "IP" | |
2076 ], | |
2077 "enumDescriptions": [ | |
2078 "Default non-attribute type", | |
2079 "Region of the resource", | |
2080 "Service name", | |
2081 "Resource name", | |
2082 "IP address of the caller" | |
2083 ], | |
2084 "type": "string" | |
2085 }, | |
2086 "iam": { | |
2087 "description": "Trusted attributes supplied by the IAM syste
m.", | |
2088 "enum": [ | |
2089 "NO_ATTR", | |
2090 "AUTHORITY", | |
2091 "ATTRIBUTION", | |
2092 "APPROVER", | |
2093 "JUSTIFICATION_TYPE" | |
2094 ], | |
2095 "enumDescriptions": [ | |
2096 "Default non-attribute.", | |
2097 "Either principal or (if present) authority selector.", | |
2098 "The principal (even if an authority selector is present
), which\nmust only be used for attribution, not authorization.", | |
2099 "An approver (distinct from the requester) that has auth
orized this\nrequest.\nWhen used with IN, the condition indicates that one of th
e approvers\nassociated with the request matches the specified principal, or is
a\nmember of the specified group. Approvers can only grant additional\naccess, a
nd are thus only used in a strictly positive context\n(e.g. ALLOW/IN or DENY/NOT
_IN).", | |
2100 "What types of justifications have been supplied with th
is request.\nString values should match enum names from tech.iam.JustificationTy
pe,\ne.g. \"MANUAL_STRING\". It is not permitted to grant access based on\nthe *
absence* of a justification, so justification conditions can only\nbe used in a
\"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).\n\nMultiple justifications
, e.g., a Buganizer ID and a manually-entered\nreason, are normal and supported.
" | |
2101 ], | |
2102 "type": "string" | |
2103 }, | |
2104 "values": { | |
2105 "description": "The objects of the condition. This is mutual
ly exclusive with 'value'.", | |
2106 "items": { | |
2107 "type": "string" | |
2108 }, | |
2109 "type": "array" | |
2110 } | |
2111 }, | |
2112 "type": "object" | |
2113 }, | |
2114 "AuditLogConfig": { | |
2115 "description": "Provides the configuration for logging a type of per
missions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n
\"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n
\"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type
\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and '
DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.", | |
2116 "id": "AuditLogConfig", | |
2117 "properties": { | |
2118 "logType": { | |
2119 "description": "The log type that this config enables.", | |
2120 "enum": [ | |
2121 "LOG_TYPE_UNSPECIFIED", | |
2122 "ADMIN_READ", | |
2123 "DATA_WRITE", | |
2124 "DATA_READ" | |
2125 ], | |
2126 "enumDescriptions": [ | |
2127 "Default case. Should never be this.", | |
2128 "Admin reads. Example: CloudIAM getIamPolicy", | |
2129 "Data writes. Example: CloudSQL Users create", | |
2130 "Data reads. Example: CloudSQL Users list" | |
2131 ], | |
2132 "type": "string" | |
2133 }, | |
2134 "exemptedMembers": { | |
2135 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", | |
2136 "items": { | |
2137 "type": "string" | |
2138 }, | |
2139 "type": "array" | |
2140 } | |
2141 }, | |
2142 "type": "object" | |
2143 }, | |
2144 "ConfigSource": { | |
2145 "description": "Represents a source file which is used to generate t
he service configuration\ndefined by `google.api.Service`.", | |
2146 "id": "ConfigSource", | |
2147 "properties": { | |
2148 "files": { | |
2149 "description": "Set of source configuration files that are u
sed to generate a service\nconfiguration (`google.api.Service`).", | |
2150 "items": { | |
2151 "$ref": "ConfigFile" | |
2152 }, | |
2153 "type": "array" | |
2154 }, | |
2155 "id": { | |
2156 "description": "A unique ID for a specific instance of this
message, typically assigned\nby the client for tracking purpose. If empty, the s
erver may choose to\ngenerate one instead.", | |
2157 "type": "string" | |
2158 } | |
2159 }, | |
2160 "type": "object" | |
2161 }, | |
2162 "AuthenticationRule": { | |
2163 "description": "Authentication rules for the service.\n\nBy default,
if a method has any authentication requirements, every request\nmust include a
valid credential matching one of the requirements.\nIt's an error to include mor
e than one kind of credential in a single\nrequest.\n\nIf a method doesn't have
any auth requirements, request credentials will be\nignored.", | |
2164 "id": "AuthenticationRule", | |
2165 "properties": { | |
2166 "requirements": { | |
2167 "description": "Requirements for additional authentication p
roviders.", | |
2168 "items": { | |
2169 "$ref": "AuthRequirement" | |
2170 }, | |
2171 "type": "array" | |
2172 }, | |
2173 "allowWithoutCredential": { | |
2174 "description": "Whether to allow requests without a credenti
al. The credential can be\nan OAuth token, Google cookies (first-party auth) or
EndUserCreds.\n\nFor requests without credentials, if the service control enviro
nment is\nspecified, each incoming request **must** be associated with a service
\nconsumer. This can be done by passing an API key that belongs to a consumer\np
roject.", | |
2175 "type": "boolean" | |
2176 }, | |
2177 "selector": { | |
2178 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", | |
2179 "type": "string" | |
2180 }, | |
2181 "customAuth": { | |
2182 "$ref": "CustomAuthRequirements", | |
2183 "description": "Configuration for custom authentication." | |
2184 }, | |
2185 "oauth": { | |
2186 "$ref": "OAuthRequirements", | |
2187 "description": "The requirements for OAuth credentials." | |
2188 } | |
2189 }, | |
2190 "type": "object" | |
2191 }, | |
2192 "BackendRule": { | |
2193 "description": "A backend rule provides configuration for an individ
ual API element.", | |
2194 "id": "BackendRule", | |
2195 "properties": { | |
2196 "deadline": { | |
2197 "description": "The number of seconds to wait for a response
from a request. The\ndefault depends on the deployment context.", | |
2198 "format": "double", | |
2199 "type": "number" | |
2200 }, | |
2201 "minDeadline": { | |
2202 "description": "Minimum deadline in seconds needed for this
method. Calls having deadline\nvalue lower than this will be rejected.", | |
2203 "format": "double", | |
2204 "type": "number" | |
2205 }, | |
2206 "address": { | |
2207 "description": "The address of the API backend.", | |
2208 "type": "string" | |
2209 }, | |
2210 "selector": { | |
2211 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", | |
2212 "type": "string" | |
2213 } | |
2214 }, | |
2215 "type": "object" | |
2216 }, | |
2217 "Policy": { | |
2218 "description": "Defines an Identity and Access Management (IAM) poli
cy. It is used to\nspecify access control policies for Cloud Platform resources.
\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n
`members` to a `role`, where the members can be user accounts, Google groups,\nG
oogle domains, and service accounts. A `role` is a named list of permissions\nde
fined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n
\"role\": \"roles/owner\",\n \"members\": [\n \"user:mike
@example.com\",\n \"group:admins@example.com\",\n \"domain
:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccoun
t.com\",\n ]\n },\n {\n \"role\": \"roles/viewer
\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n
}\n\nFor a description of IAM and its features, see the\n[IAM developer's guide
](https://cloud.google.com/iam).", | |
2219 "id": "Policy", | |
2220 "properties": { | |
2221 "etag": { | |
2222 "description": "`etag` is used for optimistic concurrency co
ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin
g each other.\nIt is strongly suggested that systems make use of the `etag` in t
he\nread-modify-write cycle to perform policy updates in order to avoid race\nco
nditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems
are expected to put that etag in the request to `setIamPolicy` to\nensure that t
heir change will be applied to the same version of the policy.\n\nIf no `etag` i
s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt
en blindly.", | |
2223 "format": "byte", | |
2224 "type": "string" | |
2225 }, | |
2226 "iamOwned": { | |
2227 "type": "boolean" | |
2228 }, | |
2229 "rules": { | |
2230 "description": "If more than one rule is specified, the rule
s are applied in the following\nmanner:\n- All matching LOG rules are always app
lied.\n- If any DENY/DENY_WITH_LOG rule matches, permission is denied.\n Loggin
g will be applied if one or more matching rule requires logging.\n- Otherwise, i
f any ALLOW/ALLOW_WITH_LOG rule matches, permission is\n granted.\n Logging wi
ll be applied if one or more matching rule requires logging.\n- Otherwise, if no
rule applies, permission is denied.", | |
2231 "items": { | |
2232 "$ref": "Rule" | |
2233 }, | |
2234 "type": "array" | |
2235 }, | |
2236 "version": { | |
2237 "description": "Version of the `Policy`. The default version
is 0.", | |
2238 "format": "int32", | |
2239 "type": "integer" | |
2240 }, | |
2241 "auditConfigs": { | |
2242 "description": "Specifies cloud audit logging configuration
for this policy.", | |
2243 "items": { | |
2244 "$ref": "AuditConfig" | |
2245 }, | |
2246 "type": "array" | |
2247 }, | |
2248 "bindings": { | |
2249 "description": "Associates a list of `members` to a `role`.\
n`bindings` with no members will result in an error.", | |
2250 "items": { | |
2251 "$ref": "Binding" | |
2252 }, | |
2253 "type": "array" | |
2254 } | |
2255 }, | |
2256 "type": "object" | |
2257 }, | |
2258 "UndeleteServiceResponse": { | |
2259 "description": "Response message for UndeleteService method.", | |
2260 "id": "UndeleteServiceResponse", | |
2261 "properties": { | |
2262 "service": { | |
2263 "$ref": "ManagedService", | |
2264 "description": "Revived service resource." | |
2265 } | |
2266 }, | |
2267 "type": "object" | |
2268 }, | |
2269 "Api": { | |
2270 "description": "Api is a light-weight descriptor for an API Interfac
e.\n\nInterfaces are also described as \"protocol buffer services\" in some cont
exts,\nsuch as by the \"service\" keyword in a .proto file, but they are differe
nt\nfrom API Services, which represent a concrete implementation of an interface
\nas opposed to simply a description of methods and bindings. They are also\nsom
etimes simply referred to as \"APIs\" in other contexts, such as the name of\nth
is message itself. See https://cloud.google.com/apis/design/glossary for\ndetail
ed terminology.", | |
2271 "id": "Api", | |
2272 "properties": { | |
2273 "syntax": { | |
2274 "description": "The source syntax of the service.", | |
2275 "enum": [ | |
2276 "SYNTAX_PROTO2", | |
2277 "SYNTAX_PROTO3" | |
2278 ], | |
2279 "enumDescriptions": [ | |
2280 "Syntax `proto2`.", | |
2281 "Syntax `proto3`." | |
2282 ], | |
2283 "type": "string" | |
2284 }, | 1049 }, |
2285 "sourceContext": { | 1050 "sourceContext": { |
2286 "$ref": "SourceContext", | 1051 "$ref": "SourceContext", |
2287 "description": "Source context for the protocol buffer servi
ce represented by this\nmessage." | 1052 "description": "Source context for the protocol buffer servi
ce represented by this\nmessage." |
2288 }, | 1053 }, |
2289 "version": { | 1054 "version": { |
2290 "description": "A version string for this interface. If spec
ified, must have the form\n`major-version.minor-version`, as in `1.10`. If the m
inor version is\nomitted, it defaults to zero. If the entire version field is em
pty, the\nmajor version is derived from the package name, as outlined below. If
the\nfield is not empty, the version in the package name will be verified to be\
nconsistent with what is provided here.\n\nThe versioning schema uses [semantic\
nversioning](http://semver.org) where the major version number\nindicates a brea
king change and the minor version an additive,\nnon-breaking change. Both versio
n numbers are signals to users\nwhat to expect from different versions, and shou
ld be carefully\nchosen based on the product plan.\n\nThe major version is also
reflected in the package name of the\ninterface, which must end in `v<major-vers
ion>`, as in\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nb
e omitted. Zero major versions must only be used for\nexperimental, non-GA inter
faces.\n", | 1055 "description": "A version string for this interface. If spec
ified, must have the form\n`major-version.minor-version`, as in `1.10`. If the m
inor version is\nomitted, it defaults to zero. If the entire version field is em
pty, the\nmajor version is derived from the package name, as outlined below. If
the\nfield is not empty, the version in the package name will be verified to be\
nconsistent with what is provided here.\n\nThe versioning schema uses [semantic\
nversioning](http://semver.org) where the major version number\nindicates a brea
king change and the minor version an additive,\nnon-breaking change. Both versio
n numbers are signals to users\nwhat to expect from different versions, and shou
ld be carefully\nchosen based on the product plan.\n\nThe major version is also
reflected in the package name of the\ninterface, which must end in `v<major-vers
ion>`, as in\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nb
e omitted. Zero major versions must only be used for\nexperimental, non-GA inter
faces.\n", |
2291 "type": "string" | 1056 "type": "string" |
2292 }, | 1057 }, |
2293 "mixins": { | 1058 "mixins": { |
2294 "description": "Included interfaces. See Mixin.", | 1059 "description": "Included interfaces. See Mixin.", |
2295 "items": { | 1060 "items": { |
2296 "$ref": "Mixin" | 1061 "$ref": "Mixin" |
2297 }, | 1062 }, |
2298 "type": "array" | 1063 "type": "array" |
2299 }, | |
2300 "options": { | |
2301 "description": "Any metadata attached to the interface.", | |
2302 "items": { | |
2303 "$ref": "Option" | |
2304 }, | |
2305 "type": "array" | |
2306 }, | |
2307 "methods": { | |
2308 "description": "The methods of this interface, in unspecifie
d order.", | |
2309 "items": { | |
2310 "$ref": "Method" | |
2311 }, | |
2312 "type": "array" | |
2313 }, | |
2314 "name": { | |
2315 "description": "The fully qualified name of this interface,
including package name\nfollowed by the interface's simple name.", | |
2316 "type": "string" | |
2317 } | 1064 } |
2318 }, | 1065 }, |
2319 "type": "object" | 1066 "type": "object" |
2320 }, | 1067 }, |
2321 "MetricRule": { | 1068 "MetricRule": { |
2322 "description": "Bind API methods to metrics. Binding a method to a m
etric causes that\nmetric's configured quota behaviors to apply to the method ca
ll.", | 1069 "description": "Bind API methods to metrics. Binding a method to a m
etric causes that\nmetric's configured quota behaviors to apply to the method ca
ll.", |
2323 "id": "MetricRule", | 1070 "id": "MetricRule", |
2324 "properties": { | 1071 "properties": { |
2325 "metricCosts": { | 1072 "metricCosts": { |
2326 "additionalProperties": { | 1073 "additionalProperties": { |
2327 "format": "int64", | 1074 "format": "int64", |
2328 "type": "string" | 1075 "type": "string" |
2329 }, | 1076 }, |
2330 "description": "Metrics to update when the selected methods
are called, and the associated\ncost applied to each metric.\n\nThe key of the m
ap is the metric name, and the values are the amount\nincreased for the metric a
gainst which the quota limits are defined.\nThe value must not be negative.", | 1077 "description": "Metrics to update when the selected methods
are called, and the associated\ncost applied to each metric.\n\nThe key of the m
ap is the metric name, and the values are the amount\nincreased for the metric a
gainst which the quota limits are defined.\nThe value must not be negative.", |
2331 "type": "object" | 1078 "type": "object" |
2332 }, | 1079 }, |
2333 "selector": { | 1080 "selector": { |
2334 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", | 1081 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
2335 "type": "string" | 1082 "type": "string" |
2336 } | 1083 } |
2337 }, | 1084 }, |
2338 "type": "object" | 1085 "type": "object" |
2339 }, | 1086 }, |
2340 "DataAccessOptions": { | |
2341 "description": "Write a Data Access (Gin) log", | |
2342 "id": "DataAccessOptions", | |
2343 "properties": { | |
2344 "logMode": { | |
2345 "description": "Whether Gin logging should happen in a fail-
closed manner at the caller.\nThis is relevant only in the LocalIAM implementati
on, for now.", | |
2346 "enum": [ | |
2347 "LOG_MODE_UNSPECIFIED", | |
2348 "LOG_FAIL_CLOSED" | |
2349 ], | |
2350 "enumDescriptions": [ | |
2351 "Client is not required to write a partial Gin log immed
iately after\nthe authorization check. If client chooses to write one and it fai
ls,\nclient may either fail open (allow the operation to continue) or\nfail clos
ed (handle as a DENY outcome).", | |
2352 "The application's operation in the context of which thi
s authorization\ncheck is being made may only be performed if it is successfully
logged\nto Gin. For instance, the authorization library may satisfy this\noblig
ation by emitting a partial log entry at authorization check time\nand only retu
rning ALLOW to the application if it succeeds.\n\nIf a matching Rule has this di
rective, but the client has not indicated\nthat it will honor such requirements,
then the IAM check will result in\nauthorization failure by setting CheckPolicy
Response.success=false." | |
2353 ], | |
2354 "type": "string" | |
2355 } | |
2356 }, | |
2357 "type": "object" | |
2358 }, | |
2359 "Authentication": { | 1087 "Authentication": { |
2360 "description": "`Authentication` defines the authentication configur
ation for an API.\n\nExample for an API targeted for external use:\n\n name:
calendar.googleapis.com\n authentication:\n providers:\n - id: goog
le_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector:
\"*\"\n requirements:\n provider_id: google_calendar_auth", | 1088 "description": "`Authentication` defines the authentication configur
ation for an API.\n\nExample for an API targeted for external use:\n\n name:
calendar.googleapis.com\n authentication:\n providers:\n - id: goog
le_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector:
\"*\"\n requirements:\n provider_id: google_calendar_auth", |
2361 "id": "Authentication", | 1089 "id": "Authentication", |
2362 "properties": { | 1090 "properties": { |
| 1091 "providers": { |
| 1092 "description": "Defines a set of authentication providers th
at a service supports.", |
| 1093 "items": { |
| 1094 "$ref": "AuthProvider" |
| 1095 }, |
| 1096 "type": "array" |
| 1097 }, |
2363 "rules": { | 1098 "rules": { |
2364 "description": "A list of authentication rules that apply to
individual API methods.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", | 1099 "description": "A list of authentication rules that apply to
individual API methods.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", |
2365 "items": { | 1100 "items": { |
2366 "$ref": "AuthenticationRule" | 1101 "$ref": "AuthenticationRule" |
2367 }, | 1102 }, |
2368 "type": "array" | 1103 "type": "array" |
2369 }, | |
2370 "providers": { | |
2371 "description": "Defines a set of authentication providers th
at a service supports.", | |
2372 "items": { | |
2373 "$ref": "AuthProvider" | |
2374 }, | |
2375 "type": "array" | |
2376 } | 1104 } |
2377 }, | 1105 }, |
2378 "type": "object" | 1106 "type": "object" |
2379 }, | 1107 }, |
2380 "Operation": { | 1108 "Operation": { |
2381 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 1109 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
2382 "id": "Operation", | 1110 "id": "Operation", |
2383 "properties": { | 1111 "properties": { |
| 1112 "metadata": { |
| 1113 "additionalProperties": { |
| 1114 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1115 "type": "any" |
| 1116 }, |
| 1117 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", |
| 1118 "type": "object" |
| 1119 }, |
2384 "done": { | 1120 "done": { |
2385 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", | 1121 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf `true`, the operation is completed, and either `er
ror` or `response` is\navailable.", |
2386 "type": "boolean" | 1122 "type": "boolean" |
2387 }, | 1123 }, |
2388 "response": { | 1124 "response": { |
2389 "additionalProperties": { | 1125 "additionalProperties": { |
2390 "description": "Properties of the object. Contains field
@type with type URL.", | 1126 "description": "Properties of the object. Contains field
@type with type URL.", |
2391 "type": "any" | 1127 "type": "any" |
2392 }, | 1128 }, |
2393 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", | 1129 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", |
2394 "type": "object" | 1130 "type": "object" |
2395 }, | 1131 }, |
2396 "name": { | 1132 "name": { |
2397 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", | 1133 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
2398 "type": "string" | 1134 "type": "string" |
2399 }, | 1135 }, |
2400 "error": { | 1136 "error": { |
2401 "$ref": "Status", | 1137 "$ref": "Status", |
2402 "description": "The error result of the operation in case of
failure or cancellation." | 1138 "description": "The error result of the operation in case of
failure or cancellation." |
2403 }, | |
2404 "metadata": { | |
2405 "additionalProperties": { | |
2406 "description": "Properties of the object. Contains field
@type with type URL.", | |
2407 "type": "any" | |
2408 }, | |
2409 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", | |
2410 "type": "object" | |
2411 } | 1139 } |
2412 }, | 1140 }, |
2413 "type": "object" | 1141 "type": "object" |
2414 }, | 1142 }, |
2415 "Page": { | 1143 "Page": { |
2416 "description": "Represents a documentation page. A page can contain
subpages to represent\nnested documentation set structure.", | 1144 "description": "Represents a documentation page. A page can contain
subpages to represent\nnested documentation set structure.", |
2417 "id": "Page", | 1145 "id": "Page", |
2418 "properties": { | 1146 "properties": { |
| 1147 "name": { |
| 1148 "description": "The name of the page. It will be used as an
identity of the page to\ngenerate URI of the page, text of the link to this page
in navigation,\netc. The full page name (start from the root page name to this
page\nconcatenated with `.`) can be used as reference to the page in your\ndocum
entation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: (==
include tutorial.md ==)\n subpages:\n - name: Java\n content: (== i
nclude tutorial_java.md ==)\n</code></pre>\nYou can reference `Java` page us
ing Markdown reference link syntax:\n`Java`.", |
| 1149 "type": "string" |
| 1150 }, |
| 1151 "content": { |
| 1152 "description": "The Markdown content of the page. You can us
e <code>(== include {path} ==)</code>\nto include content from a Markdow
n file.", |
| 1153 "type": "string" |
| 1154 }, |
2419 "subpages": { | 1155 "subpages": { |
2420 "description": "Subpages of this page. The order of subpages
specified here will be\nhonored in the generated docset.", | 1156 "description": "Subpages of this page. The order of subpages
specified here will be\nhonored in the generated docset.", |
2421 "items": { | 1157 "items": { |
2422 "$ref": "Page" | 1158 "$ref": "Page" |
2423 }, | 1159 }, |
2424 "type": "array" | 1160 "type": "array" |
2425 }, | |
2426 "name": { | |
2427 "description": "The name of the page. It will be used as an
identity of the page to\ngenerate URI of the page, text of the link to this page
in navigation,\netc. The full page name (start from the root page name to this
page\nconcatenated with `.`) can be used as reference to the page in your\ndocum
entation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: (==
include tutorial.md ==)\n subpages:\n - name: Java\n content: (== i
nclude tutorial_java.md ==)\n</code></pre>\nYou can reference `Java` page us
ing Markdown reference link syntax:\n`Java`.", | |
2428 "type": "string" | |
2429 }, | |
2430 "content": { | |
2431 "description": "The Markdown content of the page. You can us
e <code>(== include {path} ==)</code>\nto include content from a Markdow
n file.", | |
2432 "type": "string" | |
2433 } | 1161 } |
2434 }, | 1162 }, |
2435 "type": "object" | 1163 "type": "object" |
2436 }, | 1164 }, |
2437 "Status": { | 1165 "Status": { |
2438 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | 1166 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
2439 "id": "Status", | 1167 "id": "Status", |
2440 "properties": { | 1168 "properties": { |
2441 "details": { | 1169 "details": { |
2442 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | 1170 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
(...skipping 15 matching lines...) Loading... |
2458 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | 1186 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
2459 "type": "string" | 1187 "type": "string" |
2460 } | 1188 } |
2461 }, | 1189 }, |
2462 "type": "object" | 1190 "type": "object" |
2463 }, | 1191 }, |
2464 "Binding": { | 1192 "Binding": { |
2465 "description": "Associates `members` with a `role`.", | 1193 "description": "Associates `members` with a `role`.", |
2466 "id": "Binding", | 1194 "id": "Binding", |
2467 "properties": { | 1195 "properties": { |
2468 "members": { | |
2469 "description": "Specifies the identities requesting access f
or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al
lUsers`: A special identifier that represents anyone who is\n on the internet;
with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident
ifier that represents anyone\n who is authenticated with a Google account or a
service account.\n\n* `user:{emailid}`: An email address that represents a spec
ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\
n\n* `serviceAccount:{emailid}`: An email address that represents a service\n
account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e
mailid}`: An email address that represents a Google group.\n For example, `adm
ins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that repre
sents all the\n users of that domain. For example, `google.com` or `example.co
m`.\n\n", | |
2470 "items": { | |
2471 "type": "string" | |
2472 }, | |
2473 "type": "array" | |
2474 }, | |
2475 "role": { | 1196 "role": { |
2476 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | 1197 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
2477 "type": "string" | 1198 "type": "string" |
2478 }, | 1199 }, |
2479 "condition": { | 1200 "condition": { |
2480 "$ref": "Expr", | 1201 "$ref": "Expr", |
2481 "description": "The condition that is associated with this b
inding.\nNOTE: an unsatisfied condition will not allow user access via current\n
binding. Different bindings, including their conditions, are examined\nindepende
ntly.\nThis field is GOOGLE_INTERNAL." | 1202 "description": "The condition that is associated with this b
inding.\nNOTE: an unsatisfied condition will not allow user access via current\n
binding. Different bindings, including their conditions, are examined\nindepende
ntly.\nThis field is GOOGLE_INTERNAL." |
| 1203 }, |
| 1204 "members": { |
| 1205 "description": "Specifies the identities requesting access f
or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al
lUsers`: A special identifier that represents anyone who is\n on the internet;
with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident
ifier that represents anyone\n who is authenticated with a Google account or a
service account.\n\n* `user:{emailid}`: An email address that represents a spec
ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\
n\n* `serviceAccount:{emailid}`: An email address that represents a service\n
account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e
mailid}`: An email address that represents a Google group.\n For example, `adm
ins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that repre
sents all the\n users of that domain. For example, `google.com` or `example.co
m`.\n\n", |
| 1206 "items": { |
| 1207 "type": "string" |
| 1208 }, |
| 1209 "type": "array" |
2482 } | 1210 } |
2483 }, | 1211 }, |
2484 "type": "object" | 1212 "type": "object" |
2485 }, | 1213 }, |
2486 "AuthProvider": { | 1214 "AuthProvider": { |
2487 "description": "Configuration for an anthentication provider, includ
ing support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-o
auth-json-web-token-32).", | 1215 "description": "Configuration for an anthentication provider, includ
ing support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-o
auth-json-web-token-32).", |
2488 "id": "AuthProvider", | 1216 "id": "AuthProvider", |
2489 "properties": { | 1217 "properties": { |
2490 "audiences": { | 1218 "audiences": { |
2491 "description": "The list of JWT\n[audiences](https://tools.i
etf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowe
d to access. A JWT containing any of these audiences will\nbe accepted. When thi
s setting is absent, only JWTs with audience\n\"https://Service_name/API_name\"\
nwill be accepted. For example, if no audiences are in the setting,\nLibraryServ
ice API will only accept JWTs with the following audience\n\"https://library-exa
mple.googleapis.com/google.example.library.v1.LibraryService\".\n\nExample:\n\n
audiences: bookstore_android.apps.googleusercontent.com,\n book
store_web.apps.googleusercontent.com", | 1219 "description": "The list of JWT\n[audiences](https://tools.i
etf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowe
d to access. A JWT containing any of these audiences will\nbe accepted. When thi
s setting is absent, only JWTs with audience\n\"https://Service_name/API_name\"\
nwill be accepted. For example, if no audiences are in the setting,\nLibraryServ
ice API will only accept JWTs with the following audience\n\"https://library-exa
mple.googleapis.com/google.example.library.v1.LibraryService\".\n\nExample:\n\n
audiences: bookstore_android.apps.googleusercontent.com,\n book
store_web.apps.googleusercontent.com", |
(...skipping 11 matching lines...) Loading... |
2503 "description": "The unique identifier of the auth provider.
It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstor
e_auth\".", | 1231 "description": "The unique identifier of the auth provider.
It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstor
e_auth\".", |
2504 "type": "string" | 1232 "type": "string" |
2505 }, | 1233 }, |
2506 "jwksUri": { | 1234 "jwksUri": { |
2507 "description": "URL of the provider's public key set to vali
date signature of the JWT. See\n[OpenID Discovery](https://openid.net/specs/open
id-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set docume
nt:\n - can be retrieved from\n [OpenID Discovery](https://openid.net/specs/op
enid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the
email domain of the issuer (e.g. a Google service account).\n\nExample: https://
www.googleapis.com/oauth2/v1/certs", | 1235 "description": "URL of the provider's public key set to vali
date signature of the JWT. See\n[OpenID Discovery](https://openid.net/specs/open
id-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set docume
nt:\n - can be retrieved from\n [OpenID Discovery](https://openid.net/specs/op
enid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the
email domain of the issuer (e.g. a Google service account).\n\nExample: https://
www.googleapis.com/oauth2/v1/certs", |
2508 "type": "string" | 1236 "type": "string" |
2509 } | 1237 } |
2510 }, | 1238 }, |
2511 "type": "object" | 1239 "type": "object" |
2512 }, | 1240 }, |
| 1241 "Service": { |
| 1242 "description": "`Service` is the root object of Google service confi
guration schema. It\ndescribes basic information about a service, such as the na
me and the\ntitle, and delegates other aspects to sub-sections. Each sub-section
is\neither a proto message or a repeated proto message that configures a\nspeci
fic aspect, such as auth. See each proto message definition for details.\n\nExam
ple:\n\n type: google.api.Service\n config_version: 3\n name: calendar.
googleapis.com\n title: Google Calendar API\n apis:\n - name: google.ca
lendar.v3.Calendar\n authentication:\n providers:\n - id: google_ca
lendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"
\n requirements:\n provider_id: google_calendar_auth", |
| 1243 "id": "Service", |
| 1244 "properties": { |
| 1245 "control": { |
| 1246 "$ref": "Control", |
| 1247 "description": "Configuration for the service control plane.
" |
| 1248 }, |
| 1249 "configVersion": { |
| 1250 "description": "The semantic version of the service configur
ation. The config version\naffects the interpretation of the service configurati
on. For example,\ncertain features are enabled by default for certain config ver
sions.\nThe latest config version is `3`.", |
| 1251 "format": "uint32", |
| 1252 "type": "integer" |
| 1253 }, |
| 1254 "monitoring": { |
| 1255 "$ref": "Monitoring", |
| 1256 "description": "Monitoring configuration." |
| 1257 }, |
| 1258 "systemTypes": { |
| 1259 "description": "A list of all proto message types included i
n this API service.\nIt serves similar purpose as [google.api.Service.types], ex
cept that\nthese types are not needed by user-defined APIs. Therefore, they will
not\nshow up in the generated discovery doc. This field should only be used\nto
define system APIs in ESF.", |
| 1260 "items": { |
| 1261 "$ref": "Type" |
| 1262 }, |
| 1263 "type": "array" |
| 1264 }, |
| 1265 "producerProjectId": { |
| 1266 "description": "The Google project that owns this service.", |
| 1267 "type": "string" |
| 1268 }, |
| 1269 "visibility": { |
| 1270 "$ref": "Visibility", |
| 1271 "description": "API visibility configuration." |
| 1272 }, |
| 1273 "quota": { |
| 1274 "$ref": "Quota", |
| 1275 "description": "Quota configuration." |
| 1276 }, |
| 1277 "name": { |
| 1278 "description": "The DNS address at which this service is ava
ilable,\ne.g. `calendar.googleapis.com`.", |
| 1279 "type": "string" |
| 1280 }, |
| 1281 "customError": { |
| 1282 "$ref": "CustomError", |
| 1283 "description": "Custom error configuration." |
| 1284 }, |
| 1285 "title": { |
| 1286 "description": "The product title for this service.", |
| 1287 "type": "string" |
| 1288 }, |
| 1289 "endpoints": { |
| 1290 "description": "Configuration for network endpoints. If thi
s is empty, then an endpoint\nwith the same name as the service is automatically
generated to service all\ndefined APIs.", |
| 1291 "items": { |
| 1292 "$ref": "Endpoint" |
| 1293 }, |
| 1294 "type": "array" |
| 1295 }, |
| 1296 "apis": { |
| 1297 "description": "A list of API interfaces exported by this se
rvice. Only the `name` field\nof the google.protobuf.Api needs to be provided by
the configuration\nauthor, as the remaining fields will be derived from the IDL
during the\nnormalization process. It is an error to specify an API interface h
ere\nwhich cannot be resolved against the associated IDL files.", |
| 1298 "items": { |
| 1299 "$ref": "Api" |
| 1300 }, |
| 1301 "type": "array" |
| 1302 }, |
| 1303 "logs": { |
| 1304 "description": "Defines the logs used by this service.", |
| 1305 "items": { |
| 1306 "$ref": "LogDescriptor" |
| 1307 }, |
| 1308 "type": "array" |
| 1309 }, |
| 1310 "types": { |
| 1311 "description": "A list of all proto message types included i
n this API service.\nTypes referenced directly or indirectly by the `apis` are\n
automatically included. Messages which are not referenced but\nshall be include
d, such as types used by the `google.protobuf.Any` type,\nshould be listed here
by name. Example:\n\n types:\n - name: google.protobuf.Int32", |
| 1312 "items": { |
| 1313 "$ref": "Type" |
| 1314 }, |
| 1315 "type": "array" |
| 1316 }, |
| 1317 "sourceInfo": { |
| 1318 "$ref": "SourceInfo", |
| 1319 "description": "Output only. The source information for this
configuration if available." |
| 1320 }, |
| 1321 "http": { |
| 1322 "$ref": "Http", |
| 1323 "description": "HTTP configuration." |
| 1324 }, |
| 1325 "systemParameters": { |
| 1326 "$ref": "SystemParameters", |
| 1327 "description": "System parameter configuration." |
| 1328 }, |
| 1329 "backend": { |
| 1330 "$ref": "Backend", |
| 1331 "description": "API backend configuration." |
| 1332 }, |
| 1333 "documentation": { |
| 1334 "$ref": "Documentation", |
| 1335 "description": "Additional API documentation." |
| 1336 }, |
| 1337 "monitoredResources": { |
| 1338 "description": "Defines the monitored resources used by this
service. This is required\nby the Service.monitoring and Service.logging config
urations.", |
| 1339 "items": { |
| 1340 "$ref": "MonitoredResourceDescriptor" |
| 1341 }, |
| 1342 "type": "array" |
| 1343 }, |
| 1344 "logging": { |
| 1345 "$ref": "Logging", |
| 1346 "description": "Logging configuration." |
| 1347 }, |
| 1348 "enums": { |
| 1349 "description": "A list of all enum types included in this AP
I service. Enums\nreferenced directly or indirectly by the `apis` are automatic
ally\nincluded. Enums which are not referenced but shall be included\nshould be
listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.Some
Enum", |
| 1350 "items": { |
| 1351 "$ref": "Enum" |
| 1352 }, |
| 1353 "type": "array" |
| 1354 }, |
| 1355 "context": { |
| 1356 "$ref": "Context", |
| 1357 "description": "Context configuration." |
| 1358 }, |
| 1359 "id": { |
| 1360 "description": "A unique ID for a specific instance of this
message, typically assigned\nby the client for tracking purpose. If empty, the s
erver may choose to\ngenerate one instead.", |
| 1361 "type": "string" |
| 1362 }, |
| 1363 "usage": { |
| 1364 "$ref": "Usage", |
| 1365 "description": "Configuration controlling usage of this serv
ice." |
| 1366 }, |
| 1367 "metrics": { |
| 1368 "description": "Defines the metrics used by this service.", |
| 1369 "items": { |
| 1370 "$ref": "MetricDescriptor" |
| 1371 }, |
| 1372 "type": "array" |
| 1373 }, |
| 1374 "authentication": { |
| 1375 "$ref": "Authentication", |
| 1376 "description": "Auth configuration." |
| 1377 }, |
| 1378 "experimental": { |
| 1379 "$ref": "Experimental", |
| 1380 "description": "Experimental configuration." |
| 1381 } |
| 1382 }, |
| 1383 "type": "object" |
| 1384 }, |
2513 "EnumValue": { | 1385 "EnumValue": { |
2514 "description": "Enum value definition.", | 1386 "description": "Enum value definition.", |
2515 "id": "EnumValue", | 1387 "id": "EnumValue", |
2516 "properties": { | 1388 "properties": { |
2517 "name": { | 1389 "name": { |
2518 "description": "Enum value name.", | 1390 "description": "Enum value name.", |
2519 "type": "string" | 1391 "type": "string" |
2520 }, | 1392 }, |
2521 "options": { | 1393 "options": { |
2522 "description": "Protocol buffer options.", | 1394 "description": "Protocol buffer options.", |
2523 "items": { | 1395 "items": { |
2524 "$ref": "Option" | 1396 "$ref": "Option" |
2525 }, | 1397 }, |
2526 "type": "array" | 1398 "type": "array" |
2527 }, | 1399 }, |
2528 "number": { | 1400 "number": { |
2529 "description": "Enum value number.", | 1401 "description": "Enum value number.", |
2530 "format": "int32", | 1402 "format": "int32", |
2531 "type": "integer" | 1403 "type": "integer" |
2532 } | 1404 } |
2533 }, | 1405 }, |
2534 "type": "object" | 1406 "type": "object" |
2535 }, | 1407 }, |
2536 "Service": { | |
2537 "description": "`Service` is the root object of Google service confi
guration schema. It\ndescribes basic information about a service, such as the na
me and the\ntitle, and delegates other aspects to sub-sections. Each sub-section
is\neither a proto message or a repeated proto message that configures a\nspeci
fic aspect, such as auth. See each proto message definition for details.\n\nExam
ple:\n\n type: google.api.Service\n config_version: 3\n name: calendar.
googleapis.com\n title: Google Calendar API\n apis:\n - name: google.ca
lendar.v3.Calendar\n authentication:\n providers:\n - id: google_ca
lendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"
\n requirements:\n provider_id: google_calendar_auth", | |
2538 "id": "Service", | |
2539 "properties": { | |
2540 "logging": { | |
2541 "$ref": "Logging", | |
2542 "description": "Logging configuration." | |
2543 }, | |
2544 "monitoredResources": { | |
2545 "description": "Defines the monitored resources used by this
service. This is required\nby the Service.monitoring and Service.logging config
urations.", | |
2546 "items": { | |
2547 "$ref": "MonitoredResourceDescriptor" | |
2548 }, | |
2549 "type": "array" | |
2550 }, | |
2551 "context": { | |
2552 "$ref": "Context", | |
2553 "description": "Context configuration." | |
2554 }, | |
2555 "enums": { | |
2556 "description": "A list of all enum types included in this AP
I service. Enums\nreferenced directly or indirectly by the `apis` are automatic
ally\nincluded. Enums which are not referenced but shall be included\nshould be
listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.Some
Enum", | |
2557 "items": { | |
2558 "$ref": "Enum" | |
2559 }, | |
2560 "type": "array" | |
2561 }, | |
2562 "id": { | |
2563 "description": "A unique ID for a specific instance of this
message, typically assigned\nby the client for tracking purpose. If empty, the s
erver may choose to\ngenerate one instead.", | |
2564 "type": "string" | |
2565 }, | |
2566 "usage": { | |
2567 "$ref": "Usage", | |
2568 "description": "Configuration controlling usage of this serv
ice." | |
2569 }, | |
2570 "metrics": { | |
2571 "description": "Defines the metrics used by this service.", | |
2572 "items": { | |
2573 "$ref": "MetricDescriptor" | |
2574 }, | |
2575 "type": "array" | |
2576 }, | |
2577 "authentication": { | |
2578 "$ref": "Authentication", | |
2579 "description": "Auth configuration." | |
2580 }, | |
2581 "experimental": { | |
2582 "$ref": "Experimental", | |
2583 "description": "Experimental configuration." | |
2584 }, | |
2585 "control": { | |
2586 "$ref": "Control", | |
2587 "description": "Configuration for the service control plane.
" | |
2588 }, | |
2589 "configVersion": { | |
2590 "description": "The semantic version of the service configur
ation. The config version\naffects the interpretation of the service configurati
on. For example,\ncertain features are enabled by default for certain config ver
sions.\nThe latest config version is `3`.", | |
2591 "format": "uint32", | |
2592 "type": "integer" | |
2593 }, | |
2594 "monitoring": { | |
2595 "$ref": "Monitoring", | |
2596 "description": "Monitoring configuration." | |
2597 }, | |
2598 "systemTypes": { | |
2599 "description": "A list of all proto message types included i
n this API service.\nIt serves similar purpose as [google.api.Service.types], ex
cept that\nthese types are not needed by user-defined APIs. Therefore, they will
not\nshow up in the generated discovery doc. This field should only be used\nto
define system APIs in ESF.", | |
2600 "items": { | |
2601 "$ref": "Type" | |
2602 }, | |
2603 "type": "array" | |
2604 }, | |
2605 "producerProjectId": { | |
2606 "description": "The Google project that owns this service.", | |
2607 "type": "string" | |
2608 }, | |
2609 "visibility": { | |
2610 "$ref": "Visibility", | |
2611 "description": "API visibility configuration." | |
2612 }, | |
2613 "quota": { | |
2614 "$ref": "Quota", | |
2615 "description": "Quota configuration." | |
2616 }, | |
2617 "name": { | |
2618 "description": "The DNS address at which this service is ava
ilable,\ne.g. `calendar.googleapis.com`.", | |
2619 "type": "string" | |
2620 }, | |
2621 "customError": { | |
2622 "$ref": "CustomError", | |
2623 "description": "Custom error configuration." | |
2624 }, | |
2625 "title": { | |
2626 "description": "The product title for this service.", | |
2627 "type": "string" | |
2628 }, | |
2629 "endpoints": { | |
2630 "description": "Configuration for network endpoints. If thi
s is empty, then an endpoint\nwith the same name as the service is automatically
generated to service all\ndefined APIs.", | |
2631 "items": { | |
2632 "$ref": "Endpoint" | |
2633 }, | |
2634 "type": "array" | |
2635 }, | |
2636 "logs": { | |
2637 "description": "Defines the logs used by this service.", | |
2638 "items": { | |
2639 "$ref": "LogDescriptor" | |
2640 }, | |
2641 "type": "array" | |
2642 }, | |
2643 "apis": { | |
2644 "description": "A list of API interfaces exported by this se
rvice. Only the `name` field\nof the google.protobuf.Api needs to be provided by
the configuration\nauthor, as the remaining fields will be derived from the IDL
during the\nnormalization process. It is an error to specify an API interface h
ere\nwhich cannot be resolved against the associated IDL files.", | |
2645 "items": { | |
2646 "$ref": "Api" | |
2647 }, | |
2648 "type": "array" | |
2649 }, | |
2650 "types": { | |
2651 "description": "A list of all proto message types included i
n this API service.\nTypes referenced directly or indirectly by the `apis` are\n
automatically included. Messages which are not referenced but\nshall be include
d, such as types used by the `google.protobuf.Any` type,\nshould be listed here
by name. Example:\n\n types:\n - name: google.protobuf.Int32", | |
2652 "items": { | |
2653 "$ref": "Type" | |
2654 }, | |
2655 "type": "array" | |
2656 }, | |
2657 "sourceInfo": { | |
2658 "$ref": "SourceInfo", | |
2659 "description": "Output only. The source information for this
configuration if available." | |
2660 }, | |
2661 "http": { | |
2662 "$ref": "Http", | |
2663 "description": "HTTP configuration." | |
2664 }, | |
2665 "systemParameters": { | |
2666 "$ref": "SystemParameters", | |
2667 "description": "System parameter configuration." | |
2668 }, | |
2669 "backend": { | |
2670 "$ref": "Backend", | |
2671 "description": "API backend configuration." | |
2672 }, | |
2673 "documentation": { | |
2674 "$ref": "Documentation", | |
2675 "description": "Additional API documentation." | |
2676 } | |
2677 }, | |
2678 "type": "object" | |
2679 }, | |
2680 "ListOperationsResponse": { | 1408 "ListOperationsResponse": { |
2681 "description": "The response message for Operations.ListOperations."
, | 1409 "description": "The response message for Operations.ListOperations."
, |
2682 "id": "ListOperationsResponse", | 1410 "id": "ListOperationsResponse", |
2683 "properties": { | 1411 "properties": { |
| 1412 "operations": { |
| 1413 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 1414 "items": { |
| 1415 "$ref": "Operation" |
| 1416 }, |
| 1417 "type": "array" |
| 1418 }, |
2684 "nextPageToken": { | 1419 "nextPageToken": { |
2685 "description": "The standard List next-page token.", | 1420 "description": "The standard List next-page token.", |
2686 "type": "string" | 1421 "type": "string" |
2687 }, | 1422 } |
2688 "operations": { | 1423 }, |
2689 "description": "A list of operations that matches the specif
ied filter in the request.", | 1424 "type": "object" |
2690 "items": { | 1425 }, |
2691 "$ref": "Operation" | 1426 "CustomHttpPattern": { |
2692 }, | 1427 "description": "A custom pattern is used for defining custom HTTP ve
rb.", |
2693 "type": "array" | 1428 "id": "CustomHttpPattern", |
| 1429 "properties": { |
| 1430 "kind": { |
| 1431 "description": "The name of this custom HTTP verb.", |
| 1432 "type": "string" |
| 1433 }, |
| 1434 "path": { |
| 1435 "description": "The path matched by this custom verb.", |
| 1436 "type": "string" |
2694 } | 1437 } |
2695 }, | 1438 }, |
2696 "type": "object" | 1439 "type": "object" |
2697 }, | 1440 }, |
2698 "OperationMetadata": { | 1441 "OperationMetadata": { |
2699 "description": "The metadata associated with a long running operatio
n resource.", | 1442 "description": "The metadata associated with a long running operatio
n resource.", |
2700 "id": "OperationMetadata", | 1443 "id": "OperationMetadata", |
2701 "properties": { | 1444 "properties": { |
| 1445 "startTime": { |
| 1446 "description": "The start time of the operation.", |
| 1447 "format": "google-datetime", |
| 1448 "type": "string" |
| 1449 }, |
2702 "steps": { | 1450 "steps": { |
2703 "description": "Detailed status information for each step. T
he order is undetermined.", | 1451 "description": "Detailed status information for each step. T
he order is undetermined.", |
2704 "items": { | 1452 "items": { |
2705 "$ref": "Step" | 1453 "$ref": "Step" |
2706 }, | 1454 }, |
2707 "type": "array" | 1455 "type": "array" |
2708 }, | 1456 }, |
2709 "resourceNames": { | 1457 "resourceNames": { |
2710 "description": "The full name of the resources that this ope
ration is directly\nassociated with.", | 1458 "description": "The full name of the resources that this ope
ration is directly\nassociated with.", |
2711 "items": { | 1459 "items": { |
2712 "type": "string" | 1460 "type": "string" |
2713 }, | 1461 }, |
2714 "type": "array" | 1462 "type": "array" |
2715 }, | 1463 }, |
2716 "progressPercentage": { | 1464 "progressPercentage": { |
2717 "description": "Percentage of completion of this operation,
ranging from 0 to 100.", | 1465 "description": "Percentage of completion of this operation,
ranging from 0 to 100.", |
2718 "format": "int32", | 1466 "format": "int32", |
2719 "type": "integer" | 1467 "type": "integer" |
| 1468 } |
| 1469 }, |
| 1470 "type": "object" |
| 1471 }, |
| 1472 "SystemParameterRule": { |
| 1473 "description": "Define a system parameter rule mapping system parame
ter definitions to\nmethods.", |
| 1474 "id": "SystemParameterRule", |
| 1475 "properties": { |
| 1476 "parameters": { |
| 1477 "description": "Define parameters. Multiple names may be def
ined for a parameter.\nFor a given method call, only one of them should be used.
If multiple\nnames are used the behavior is implementation-dependent.\nIf none
of the specified names are present the behavior is\nparameter-dependent.", |
| 1478 "items": { |
| 1479 "$ref": "SystemParameter" |
| 1480 }, |
| 1481 "type": "array" |
| 1482 }, |
| 1483 "selector": { |
| 1484 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", |
| 1485 "type": "string" |
| 1486 } |
| 1487 }, |
| 1488 "type": "object" |
| 1489 }, |
| 1490 "HttpRule": { |
| 1491 "description": "`HttpRule` defines the mapping of an RPC method to o
ne or more HTTP\nREST API methods. The mapping specifies how different portions
of the RPC\nrequest message are mapped to URL path, URL query parameters, and\nH
TTP request body. The mapping is typically specified as an\n`google.api.http` an
notation on the RPC method,\nsee \"google/api/annotations.proto\" for details.\n
\nThe mapping consists of a field specifying the path template and\nmethod kind.
The path template can refer to fields in the request\nmessage, as in the examp
le below which describes a REST GET\noperation on a resource collection of messa
ges:\n\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) retur
ns (Message) {\n option (google.api.http).get = \"/v1/messages/{message_i
d}/{sub.subfield}\";\n }\n }\n message GetMessageRequest {\n mes
sage SubMessage {\n string subfield = 1;\n }\n string message_i
d = 1; // mapped to the URL\n SubMessage sub = 2; // `sub.subfield` is u
rl-mapped\n }\n message Message {\n string text = 1; // content of th
e resource\n }\n\nThe same http annotation can alternatively be expressed ins
ide the\n`GRPC API Configuration` YAML file.\n\n http:\n rules:\n
- selector: <proto_package_name>.Messaging.GetMessage\n get: /v1/messa
ges/{message_id}/{sub.subfield}\n\nThis definition enables an automatic, bidrect
ional mapping of HTTP\nJSON to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET /v
1/messages/123456/foo` | `GetMessage(message_id: \"123456\" sub: SubMessage(sub
field: \"foo\"))`\n\nIn general, not only fields but also field paths can be ref
erenced\nfrom a path pattern. Fields mapped to the path pattern cannot be\nrepea
ted and must have a primitive (non-message) type.\n\nAny fields in the request m
essage which are not bound by the path\npattern automatically become (optional)
HTTP query\nparameters. Assume the following definition of the request message:\
n\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) returns (M
essage) {\n option (google.api.http).get = \"/v1/messages/{message_id}\";
\n }\n }\n message GetMessageRequest {\n message SubMessage {\n
string subfield = 1;\n }\n string message_id = 1; // mapped to
the URL\n int64 revision = 2; // becomes a parameter\n SubMessage s
ub = 3; // `sub.subfield` becomes a parameter\n }\n\n\nThis enables a HTTP
JSON to RPC mapping as below:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123
456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision:
2 sub: SubMessage(subfield: \"foo\"))`\n\nNote that fields which are mapped to H
TTP parameters must have a\nprimitive type or a repeated primitive type. Message
types are not\nallowed. In the case of a repeated type, the parameter can be\nr
epeated in the URL, as in `...?param=A¶m=B`.\n\nFor HTTP method kinds which
allow a request body, the `body` field\nspecifies the mapping. Consider a REST u
pdate method on the\nmessage resource collection:\n\n\n service Messaging {\n
rpc UpdateMessage(UpdateMessageRequest) returns (Message) {\n optio
n (google.api.http) = {\n put: \"/v1/messages/{message_id}\"\n
body: \"message\"\n };\n }\n }\n message UpdateMessageRequest
{\n string message_id = 1; // mapped to the URL\n Message message = 2
; // mapped to the body\n }\n\n\nThe following HTTP JSON to RPC mapping is
enabled, where the\nrepresentation of the JSON in the request body is determined
by\nprotos JSON encoding:\n\nHTTP | RPC\n-----|-----\n`PUT /v1/messages/123456
{ \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \
"Hi!\" })`\n\nThe special name `*` can be used in the body mapping to define tha
t\nevery field not bound by the path template should be mapped to the\nrequest b
ody. This enables the following alternative definition of\nthe update method:\n
\n service Messaging {\n rpc UpdateMessage(Message) returns (Message) {\
n option (google.api.http) = {\n put: \"/v1/messages/{message_id
}\"\n body: \"*\"\n };\n }\n }\n message Message {\n
string message_id = 1;\n string text = 2;\n }\n\n\nThe following HT
TP JSON to RPC mapping is enabled:\n\nHTTP | RPC\n-----|-----\n`PUT /v1/messages
/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"H
i!\")`\n\nNote that when using `*` in the body mapping, it is not possible to\nh
ave HTTP parameters, as all fields not bound by the path end in\nthe body. This
makes this option more rarely used in practice of\ndefining REST APIs. The commo
n usage of `*` is in custom methods\nwhich don't use the URL at all for transfer
ring data.\n\nIt is possible to define multiple HTTP methods for one RPC by usin
g\nthe `additional_bindings` option. Example:\n\n service Messaging {\n
rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.ap
i.http) = {\n get: \"/v1/messages/{message_id}\"\n additional_
bindings {\n get: \"/v1/users/{user_id}/messages/{message_id}\"\n
}\n };\n }\n }\n message GetMessageRequest {\n stri
ng message_id = 1;\n string user_id = 2;\n }\n\n\nThis enables the follo
wing two alternative HTTP JSON to RPC\nmappings:\n\nHTTP | RPC\n-----|-----\n`GE
T /v1/messages/123456` | `GetMessage(message_id: \"123456\")`\n`GET /v1/users/me
/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n\n# Ru
les for HTTP mapping\n\nThe rules for mapping HTTP path, query parameters, and b
ody fields\nto the request message are as follows:\n\n1. The `body` field specif
ies either `*` or a field path, or is\n omitted. If omitted, it indicates ther
e is no HTTP request body.\n2. Leaf fields (recursive expansion of nested messag
es in the\n request) can be classified into three types:\n (a) Matched in t
he URL template.\n (b) Covered by body (if body is `*`, everything except (a)
fields;\n else everything under the body field)\n (c) All other field
s.\n3. URL query parameters found in the HTTP request are mapped to (c) fields.\
n4. Any body sent with an HTTP request can contain only (b) fields.\n\nThe synta
x of the path template is as follows:\n\n Template = \"/\" Segments [ Verb ]
;\n Segments = Segment { \"/\" Segment } ;\n Segment = \"*\" | \"**\" | L
ITERAL | Variable ;\n Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n
FieldPath = IDENT { \".\" IDENT } ;\n Verb = \":\" LITERAL ;\n\nThe s
yntax `*` matches a single path segment. The syntax `**` matches zero\nor more p
ath segments, which must be the last part of the path except the\n`Verb`. The sy
ntax `LITERAL` matches literal text in the path.\n\nThe syntax `Variable` matche
s part of the URL path as specified by its\ntemplate. A variable template must n
ot contain other variables. If a variable\nmatches a single path segment, its te
mplate may be omitted, e.g. `{var}`\nis equivalent to `{var=*}`.\n\nIf a variabl
e contains exactly one path segment, such as `\"{var}\"` or\n`\"{var=*}\"`, when
such a variable is expanded into a URL path, all characters\nexcept `[-_.~0-9a-
zA-Z]` are percent-encoded. Such variables show up in the\nDiscovery Document as
`{var}`.\n\nIf a variable contains one or more path segments, such as `\"{var=f
oo/*}\"`\nor `\"{var=**}\"`, when such a variable is expanded into a URL path, a
ll\ncharacters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables\nsh
ow up in the Discovery Document as `{+var}`.\n\nNOTE: While the single segment v
ariable matches the semantics of\n[RFC 6570](https://tools.ietf.org/html/rfc6570
) Section 3.2.2\nSimple String Expansion, the multi segment variable **does not*
* match\nRFC 6570 Reserved Expansion. The reason is that the Reserved Expansion\
ndoes not expand special characters like `?` and `#`, which would lead\nto inval
id URLs.\n\nNOTE: the field paths in variables and in the `body` must not refer
to\nrepeated fields or map fields.", |
| 1492 "id": "HttpRule", |
| 1493 "properties": { |
| 1494 "delete": { |
| 1495 "description": "Used for deleting a resource.", |
| 1496 "type": "string" |
| 1497 }, |
| 1498 "body": { |
| 1499 "description": "The name of the request field whose value is
mapped to the HTTP body, or\n`*` for mapping all fields not captured by the pat
h pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated fie
ld and must be\npresent at the top-level of request message type.", |
| 1500 "type": "string" |
| 1501 }, |
| 1502 "post": { |
| 1503 "description": "Used for creating a resource.", |
| 1504 "type": "string" |
| 1505 }, |
| 1506 "mediaDownload": { |
| 1507 "$ref": "MediaDownload", |
| 1508 "description": "Use this only for Scotty Requests. Do not us
e this for bytestream methods.\nFor media support, add instead [][google.bytestr
eam.RestByteStream] as an\nAPI to your configuration." |
| 1509 }, |
| 1510 "additionalBindings": { |
| 1511 "description": "Additional HTTP bindings for the selector. N
ested bindings must\nnot contain an `additional_bindings` field themselves (that
is,\nthe nesting may only be one level deep).", |
| 1512 "items": { |
| 1513 "$ref": "HttpRule" |
| 1514 }, |
| 1515 "type": "array" |
| 1516 }, |
| 1517 "responseBody": { |
| 1518 "description": "The name of the response field whose value i
s mapped to the HTTP body of\nresponse. Other response fields are ignored. This
field is optional. When\nnot set, the response message will be used as HTTP body
of response.\nNOTE: the referred field must be not a repeated field and must be
present\nat the top-level of response message type.", |
| 1519 "type": "string" |
| 1520 }, |
| 1521 "mediaUpload": { |
| 1522 "$ref": "MediaUpload", |
| 1523 "description": "Use this only for Scotty Requests. Do not us
e this for media support using\nBytestream, add instead\n[][google.bytestream.Re
stByteStream] as an API to your\nconfiguration for Bytestream methods." |
| 1524 }, |
| 1525 "selector": { |
| 1526 "description": "Selects methods to which this rule applies.\
n\nRefer to selector for syntax details.", |
| 1527 "type": "string" |
| 1528 }, |
| 1529 "custom": { |
| 1530 "$ref": "CustomHttpPattern", |
| 1531 "description": "The custom pattern is used for specifying an
HTTP method that is not\nincluded in the `pattern` field, such as HEAD, or \"*\
" to leave the\nHTTP method unspecified for this rule. The wild-card rule is use
ful\nfor services that provide content to Web (HTML) clients." |
| 1532 }, |
| 1533 "patch": { |
| 1534 "description": "Used for updating a resource.", |
| 1535 "type": "string" |
| 1536 }, |
| 1537 "get": { |
| 1538 "description": "Used for listing and getting information abo
ut resources.", |
| 1539 "type": "string" |
| 1540 }, |
| 1541 "put": { |
| 1542 "description": "Used for updating a resource.", |
| 1543 "type": "string" |
| 1544 } |
| 1545 }, |
| 1546 "type": "object" |
| 1547 }, |
| 1548 "VisibilityRule": { |
| 1549 "description": "A visibility rule provides visibility configuration
for an individual API\nelement.", |
| 1550 "id": "VisibilityRule", |
| 1551 "properties": { |
| 1552 "restriction": { |
| 1553 "description": "A comma-separated list of visibility labels
that apply to the `selector`.\nAny of the listed labels can be used to grant the
visibility.\n\nIf a rule has multiple labels, removing one of the labels but no
t all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n
- selector: google.calendar.Calendar.EnhancedSearch\n restriction:
GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restrictio
n will break clients that\nrely on this method and only had access to it through
GOOGLE_INTERNAL.", |
| 1554 "type": "string" |
| 1555 }, |
| 1556 "selector": { |
| 1557 "description": "Selects methods, messages, fields, enums, et
c. to which this rule applies.\n\nRefer to selector for syntax details.", |
| 1558 "type": "string" |
| 1559 } |
| 1560 }, |
| 1561 "type": "object" |
| 1562 }, |
| 1563 "MonitoringDestination": { |
| 1564 "description": "Configuration of a specific monitoring destination (
the producer project\nor the consumer project).", |
| 1565 "id": "MonitoringDestination", |
| 1566 "properties": { |
| 1567 "metrics": { |
| 1568 "description": "Names of the metrics to report to this monit
oring destination.\nEach name must be defined in Service.metrics section.", |
| 1569 "items": { |
| 1570 "type": "string" |
| 1571 }, |
| 1572 "type": "array" |
| 1573 }, |
| 1574 "monitoredResource": { |
| 1575 "description": "The monitored resource type. The type must b
e defined in\nService.monitored_resources section.", |
| 1576 "type": "string" |
| 1577 } |
| 1578 }, |
| 1579 "type": "object" |
| 1580 }, |
| 1581 "Visibility": { |
| 1582 "description": "`Visibility` defines restrictions for the visibility
of service\nelements. Restrictions are specified using visibility labels\n(e.g
., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and
projects can have access to more than one visibility label. The\neffective visi
bility for multiple labels is the union of each label's\nelements, plus any unre
stricted elements.\n\nIf an element and its parents have no restrictions, visibi
lity is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n
- selector: google.calendar.Calendar.EnhancedSearch\n restriction:
TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n res
triction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for t
he restricted methods\nEnhancedSearch and Delegate.", |
| 1583 "id": "Visibility", |
| 1584 "properties": { |
| 1585 "rules": { |
| 1586 "description": "A list of visibility rules that apply to ind
ividual API elements.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 1587 "items": { |
| 1588 "$ref": "VisibilityRule" |
| 1589 }, |
| 1590 "type": "array" |
| 1591 } |
| 1592 }, |
| 1593 "type": "object" |
| 1594 }, |
| 1595 "ConfigChange": { |
| 1596 "description": "Output generated from semantically comparing two ver
sions of a service\nconfiguration.\n\nIncludes detailed information about a fiel
d that have changed with\napplicable advice about potential consequences for the
change, such as\nbackwards-incompatibility.", |
| 1597 "id": "ConfigChange", |
| 1598 "properties": { |
| 1599 "newValue": { |
| 1600 "description": "Value of the changed object in the new Servi
ce configuration,\nin JSON format. This field will not be populated if ChangeTyp
e == REMOVED.", |
| 1601 "type": "string" |
| 1602 }, |
| 1603 "changeType": { |
| 1604 "description": "The type for this change, either ADDED, REMO
VED, or MODIFIED.", |
| 1605 "enum": [ |
| 1606 "CHANGE_TYPE_UNSPECIFIED", |
| 1607 "ADDED", |
| 1608 "REMOVED", |
| 1609 "MODIFIED" |
| 1610 ], |
| 1611 "enumDescriptions": [ |
| 1612 "No value was provided.", |
| 1613 "The changed object exists in the 'new' service configur
ation, but not\nin the 'old' service configuration.", |
| 1614 "The changed object exists in the 'old' service configur
ation, but not\nin the 'new' service configuration.", |
| 1615 "The changed object exists in both service configuration
s, but its value\nis different." |
| 1616 ], |
| 1617 "type": "string" |
| 1618 }, |
| 1619 "element": { |
| 1620 "description": "Object hierarchy path to the change, with le
vels separated by a '.'\ncharacter. For repeated fields, an applicable unique id
entifier field is\nused for the index (usually selector, name, or id). For maps,
the term\n'key' is used. If the field has no unique identifier, the numeric ind
ex\nis used.\nExamples:\n- visibility.rules[selector==\"google.LibraryService.Cr
eateBook\"].restriction\n- quota.metric_rules[selector==\"google\"].metric_costs
[key==\"reads\"].value\n- logging.producer_destinations[0]", |
| 1621 "type": "string" |
| 1622 }, |
| 1623 "advices": { |
| 1624 "description": "Collection of advice provided for this chang
e, useful for determining the\npossible impact of this change.", |
| 1625 "items": { |
| 1626 "$ref": "Advice" |
| 1627 }, |
| 1628 "type": "array" |
| 1629 }, |
| 1630 "oldValue": { |
| 1631 "description": "Value of the changed object in the old Servi
ce configuration,\nin JSON format. This field will not be populated if ChangeTyp
e == ADDED.", |
| 1632 "type": "string" |
| 1633 } |
| 1634 }, |
| 1635 "type": "object" |
| 1636 }, |
| 1637 "SystemParameters": { |
| 1638 "description": "### System parameter configuration\n\nA system param
eter is a special kind of parameter defined by the API\nsystem, not by an indivi
dual API. It is typically mapped to an HTTP header\nand/or a URL query parameter
. This configuration specifies which methods\nchange the names of the system par
ameters.", |
| 1639 "id": "SystemParameters", |
| 1640 "properties": { |
| 1641 "rules": { |
| 1642 "description": "Define system parameters.\n\nThe parameters
defined here will override the default parameters\nimplemented by the system. If
this field is missing from the service\nconfig, default system parameters will
be used. Default system parameters\nand names is implementation-dependent.\n\nEx
ample: define api key for all methods\n\n system_parameters\n rules:\n
- selector: \"*\"\n parameters:\n - name: api_key\n
url_query_parameter: api_key\n\n\nExample: define 2 api key names for
a specific method.\n\n system_parameters\n rules:\n - selector:
\"/ListShelves\"\n parameters:\n - name: api_key\n
http_header: Api-Key1\n - name: api_key\n http_heade
r: Api-Key2\n\n**NOTE:** All service configuration rules follow \"last one wins\
" order.", |
| 1643 "items": { |
| 1644 "$ref": "SystemParameterRule" |
| 1645 }, |
| 1646 "type": "array" |
| 1647 } |
| 1648 }, |
| 1649 "type": "object" |
| 1650 }, |
| 1651 "Rollout": { |
| 1652 "description": "A rollout resource that defines how service configur
ation versions are pushed\nto control plane systems. Typically, you create a new
version of the\nservice config, and then create a Rollout to push the service c
onfig.", |
| 1653 "id": "Rollout", |
| 1654 "properties": { |
| 1655 "status": { |
| 1656 "description": "The status of this rollout. Readonly. In cas
e of a failed rollout,\nthe system will automatically rollback to the current Ro
llout\nversion. Readonly.", |
| 1657 "enum": [ |
| 1658 "ROLLOUT_STATUS_UNSPECIFIED", |
| 1659 "IN_PROGRESS", |
| 1660 "SUCCESS", |
| 1661 "CANCELLED", |
| 1662 "FAILED", |
| 1663 "PENDING", |
| 1664 "FAILED_ROLLED_BACK" |
| 1665 ], |
| 1666 "enumDescriptions": [ |
| 1667 "No status specified.", |
| 1668 "The Rollout is in progress.", |
| 1669 "The Rollout has completed successfully.", |
| 1670 "The Rollout has been cancelled. This can happen if you
have overlapping\nRollout pushes, and the previous ones will be cancelled.", |
| 1671 "The Rollout has failed and the rollback attempt has fai
led too.", |
| 1672 "The Rollout has not started yet and is pending for exec
ution.", |
| 1673 "The Rollout has failed and rolled back to the previous
successful\nRollout." |
| 1674 ], |
| 1675 "type": "string" |
| 1676 }, |
| 1677 "serviceName": { |
| 1678 "description": "The name of the service associated with this
Rollout.", |
| 1679 "type": "string" |
| 1680 }, |
| 1681 "trafficPercentStrategy": { |
| 1682 "$ref": "TrafficPercentStrategy", |
| 1683 "description": "Google Service Control selects service confi
gurations based on\ntraffic percentage." |
| 1684 }, |
| 1685 "createdBy": { |
| 1686 "description": "The user who created the Rollout. Readonly."
, |
| 1687 "type": "string" |
| 1688 }, |
| 1689 "rolloutId": { |
| 1690 "description": "Optional unique identifier of this Rollout.
Only lower case letters, digits\n and '-' are allowed.\n\nIf not specified by cl
ient, the server will generate one. The generated id\nwill have the form of <dat
e><revision number>, where \"date\" is the create\ndate in ISO 8601 format. \"r
evision number\" is a monotonically increasing\npositive number that is reset ev
ery day for each service.\nAn example of the generated rollout_id is '2016-02-16
r1'", |
| 1691 "type": "string" |
| 1692 }, |
| 1693 "deleteServiceStrategy": { |
| 1694 "$ref": "DeleteServiceStrategy", |
| 1695 "description": "The strategy associated with a rollout to de
lete a `ManagedService`.\nReadonly." |
| 1696 }, |
| 1697 "createTime": { |
| 1698 "description": "Creation time of the rollout. Readonly.", |
| 1699 "format": "google-datetime", |
| 1700 "type": "string" |
| 1701 } |
| 1702 }, |
| 1703 "type": "object" |
| 1704 }, |
| 1705 "Quota": { |
| 1706 "description": "Quota configuration helps to achieve fairness and bu
dgeting in service\nusage.\n\nThe quota configuration works this way:\n- The ser
vice configuration defines a set of metrics.\n- For API calls, the quota.metric_
rules maps methods to metrics with\n corresponding costs.\n- The quota.limits d
efines limits on the metrics, which will be used for\n quota checks at runtime.
\n\nAn example quota configuration in yaml format:\n\n quota:\n\n - name:
apiWriteQpsPerProject\n metric: library.googleapis.com/write_calls\n
unit: \"1/min/{project}\" # rate limit for consumer projects\n values:\n
STANDARD: 10000\n\n\n # The metric rules bind all methods to the re
ad_calls metric,\n # except for the UpdateBook and DeleteBook methods. These
two methods\n # are mapped to the write_calls metric, with the UpdateBook m
ethod\n # consuming at twice rate as the DeleteBook method.\n metric_rul
es:\n - selector: \"*\"\n metric_costs:\n library.googleapis.c
om/read_calls: 1\n - selector: google.example.library.v1.LibraryService.Upda
teBook\n metric_costs:\n library.googleapis.com/write_calls: 2\n
- selector: google.example.library.v1.LibraryService.DeleteBook\n metri
c_costs:\n library.googleapis.com/write_calls: 1\n\n Corresponding Metri
c definition:\n\n metrics:\n - name: library.googleapis.com/read_calls\n
display_name: Read requests\n metric_kind: DELTA\n value_type
: INT64\n\n - name: library.googleapis.com/write_calls\n display_name:
Write requests\n metric_kind: DELTA\n value_type: INT64", |
| 1707 "id": "Quota", |
| 1708 "properties": { |
| 1709 "limits": { |
| 1710 "description": "List of `QuotaLimit` definitions for the ser
vice.", |
| 1711 "items": { |
| 1712 "$ref": "QuotaLimit" |
| 1713 }, |
| 1714 "type": "array" |
| 1715 }, |
| 1716 "metricRules": { |
| 1717 "description": "List of `MetricRule` definitions, each one m
apping a selected method to one\nor more metrics.", |
| 1718 "items": { |
| 1719 "$ref": "MetricRule" |
| 1720 }, |
| 1721 "type": "array" |
| 1722 } |
| 1723 }, |
| 1724 "type": "object" |
| 1725 }, |
| 1726 "GenerateConfigReportRequest": { |
| 1727 "description": "Request message for GenerateConfigReport method.", |
| 1728 "id": "GenerateConfigReportRequest", |
| 1729 "properties": { |
| 1730 "oldConfig": { |
| 1731 "additionalProperties": { |
| 1732 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1733 "type": "any" |
| 1734 }, |
| 1735 "description": "Service configuration against which the comp
arison will be done.\nFor this version of API, the supported types are\ngoogle.a
pi.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource
,\nand google.api.Service", |
| 1736 "type": "object" |
| 1737 }, |
| 1738 "newConfig": { |
| 1739 "additionalProperties": { |
| 1740 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1741 "type": "any" |
| 1742 }, |
| 1743 "description": "Service configuration for which we want to g
enerate the report.\nFor this version of API, the supported types are\ngoogle.ap
i.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource,
\nand google.api.Service", |
| 1744 "type": "object" |
| 1745 } |
| 1746 }, |
| 1747 "type": "object" |
| 1748 }, |
| 1749 "SetIamPolicyRequest": { |
| 1750 "description": "Request message for `SetIamPolicy` method.", |
| 1751 "id": "SetIamPolicyRequest", |
| 1752 "properties": { |
| 1753 "policy": { |
| 1754 "$ref": "Policy", |
| 1755 "description": "REQUIRED: The complete policy to be applied
to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp
ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec
ts)\nmight reject them." |
| 1756 }, |
| 1757 "updateMask": { |
| 1758 "description": "OPTIONAL: A FieldMask specifying which field
s of the policy to modify. Only\nthe fields in the mask will be modified. If no
mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\
"\nThis field is only used by Cloud IAM.", |
| 1759 "format": "google-fieldmask", |
| 1760 "type": "string" |
| 1761 } |
| 1762 }, |
| 1763 "type": "object" |
| 1764 }, |
| 1765 "Step": { |
| 1766 "description": "Represents the status of one operation step.", |
| 1767 "id": "Step", |
| 1768 "properties": { |
| 1769 "status": { |
| 1770 "description": "The status code.", |
| 1771 "enum": [ |
| 1772 "STATUS_UNSPECIFIED", |
| 1773 "DONE", |
| 1774 "NOT_STARTED", |
| 1775 "IN_PROGRESS", |
| 1776 "FAILED", |
| 1777 "CANCELLED" |
| 1778 ], |
| 1779 "enumDescriptions": [ |
| 1780 "Unspecifed code.", |
| 1781 "The operation or step has completed without errors.", |
| 1782 "The operation or step has not started yet.", |
| 1783 "The operation or step is in progress.", |
| 1784 "The operation or step has completed with errors. If the
operation is\nrollbackable, the rollback completed with errors too.", |
| 1785 "The operation or step has completed with cancellation." |
| 1786 ], |
| 1787 "type": "string" |
| 1788 }, |
| 1789 "description": { |
| 1790 "description": "The short description of the step.", |
| 1791 "type": "string" |
| 1792 } |
| 1793 }, |
| 1794 "type": "object" |
| 1795 }, |
| 1796 "DeleteServiceStrategy": { |
| 1797 "description": "Strategy used to delete a service. This strategy is
a placeholder only\nused by the system generated rollout to delete a service.", |
| 1798 "id": "DeleteServiceStrategy", |
| 1799 "properties": {}, |
| 1800 "type": "object" |
| 1801 }, |
| 1802 "LoggingDestination": { |
| 1803 "description": "Configuration of a specific logging destination (the
producer project\nor the consumer project).", |
| 1804 "id": "LoggingDestination", |
| 1805 "properties": { |
| 1806 "logs": { |
| 1807 "description": "Names of the logs to be sent to this destina
tion. Each name must\nbe defined in the Service.logs section. If the log name is
\nnot a domain scoped name, it will be automatically prefixed with\nthe service
name followed by \"/\".", |
| 1808 "items": { |
| 1809 "type": "string" |
| 1810 }, |
| 1811 "type": "array" |
| 1812 }, |
| 1813 "monitoredResource": { |
| 1814 "description": "The monitored resource type. The type must b
e defined in the\nService.monitored_resources section.", |
| 1815 "type": "string" |
| 1816 } |
| 1817 }, |
| 1818 "type": "object" |
| 1819 }, |
| 1820 "Option": { |
| 1821 "description": "A protocol buffer option, which can be attached to a
message, field,\nenumeration, etc.", |
| 1822 "id": "Option", |
| 1823 "properties": { |
| 1824 "name": { |
| 1825 "description": "The option's name. For protobuf built-in opt
ions (options defined in\ndescriptor.proto), this is the short name. For example
, `\"map_entry\"`.\nFor custom options, it should be the fully-qualified name. F
or example,\n`\"google.api.http\"`.", |
| 1826 "type": "string" |
| 1827 }, |
| 1828 "value": { |
| 1829 "additionalProperties": { |
| 1830 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1831 "type": "any" |
| 1832 }, |
| 1833 "description": "The option's value packed in an Any message.
If the value is a primitive,\nthe corresponding wrapper type defined in google/
protobuf/wrappers.proto\nshould be used. If the value is an enum, it should be s
tored as an int32\nvalue using the google.protobuf.Int32Value type.", |
| 1834 "type": "object" |
| 1835 } |
| 1836 }, |
| 1837 "type": "object" |
| 1838 }, |
| 1839 "Logging": { |
| 1840 "description": "Logging configuration of the service.\n\nThe followi
ng example shows how to configure logs to be sent to the\nproducer and consumer
projects. In the example, the `activity_history`\nlog is sent to both the produc
er and consumer projects, whereas the\n`purchase_history` log is only sent to th
e producer project.\n\n monitored_resources:\n - type: library.googleapis.
com/branch\n labels:\n - key: /city\n description: The city whe
re the library branch is located in.\n - key: /name\n description: T
he name of the branch.\n logs:\n - name: activity_history\n labels:\n
- key: /customer_id\n - name: purchase_history\n logging:\n pro
ducer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history\n - purchase_history\n con
sumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history", |
| 1841 "id": "Logging", |
| 1842 "properties": { |
| 1843 "consumerDestinations": { |
| 1844 "description": "Logging configurations for sending logs to t
he consumer project.\nThere can be multiple consumer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none co
nsumer destination.", |
| 1845 "items": { |
| 1846 "$ref": "LoggingDestination" |
| 1847 }, |
| 1848 "type": "array" |
| 1849 }, |
| 1850 "producerDestinations": { |
| 1851 "description": "Logging configurations for sending logs to t
he producer project.\nThere can be multiple producer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none pr
oducer destination.", |
| 1852 "items": { |
| 1853 "$ref": "LoggingDestination" |
| 1854 }, |
| 1855 "type": "array" |
| 1856 } |
| 1857 }, |
| 1858 "type": "object" |
| 1859 }, |
| 1860 "Method": { |
| 1861 "description": "Method represents a method of an API interface.", |
| 1862 "id": "Method", |
| 1863 "properties": { |
| 1864 "name": { |
| 1865 "description": "The simple name of this method.", |
| 1866 "type": "string" |
| 1867 }, |
| 1868 "requestTypeUrl": { |
| 1869 "description": "A URL of the input message type.", |
| 1870 "type": "string" |
| 1871 }, |
| 1872 "requestStreaming": { |
| 1873 "description": "If true, the request is streamed.", |
| 1874 "type": "boolean" |
| 1875 }, |
| 1876 "syntax": { |
| 1877 "description": "The source syntax of this method.", |
| 1878 "enum": [ |
| 1879 "SYNTAX_PROTO2", |
| 1880 "SYNTAX_PROTO3" |
| 1881 ], |
| 1882 "enumDescriptions": [ |
| 1883 "Syntax `proto2`.", |
| 1884 "Syntax `proto3`." |
| 1885 ], |
| 1886 "type": "string" |
| 1887 }, |
| 1888 "responseTypeUrl": { |
| 1889 "description": "The URL of the output message type.", |
| 1890 "type": "string" |
| 1891 }, |
| 1892 "options": { |
| 1893 "description": "Any metadata attached to the method.", |
| 1894 "items": { |
| 1895 "$ref": "Option" |
| 1896 }, |
| 1897 "type": "array" |
| 1898 }, |
| 1899 "responseStreaming": { |
| 1900 "description": "If true, the response is streamed.", |
| 1901 "type": "boolean" |
| 1902 } |
| 1903 }, |
| 1904 "type": "object" |
| 1905 }, |
| 1906 "QuotaLimit": { |
| 1907 "description": "`QuotaLimit` defines a specific limit that applies o
ver a specified duration\nfor a limit type. There can be at most one limit for a
duration and limit\ntype combination defined within a `QuotaGroup`.", |
| 1908 "id": "QuotaLimit", |
| 1909 "properties": { |
| 1910 "duration": { |
| 1911 "description": "Duration of this limit in textual notation.
Example: \"100s\", \"24h\", \"1d\".\nFor duration longer than a day, only multip
le of days is supported. We\nsupport only \"100s\" and \"1d\" for now. Additiona
l support will be added in\nthe future. \"0\" indicates indefinite duration.\n\n
Used by group-based quotas only.", |
| 1912 "type": "string" |
| 1913 }, |
| 1914 "freeTier": { |
| 1915 "description": "Free tier value displayed in the Developers
Console for this limit.\nThe free tier is the number of tokens that will be subt
racted from the\nbilled amount when billing is enabled.\nThis field can only be
set on a limit with duration \"1d\", in a billable\ngroup; it is invalid on any
other limit. If this field is not set, it\ndefaults to 0, indicating that there
is no free tier for this service.\n\nUsed by group-based quotas only.", |
| 1916 "format": "int64", |
| 1917 "type": "string" |
| 1918 }, |
| 1919 "defaultLimit": { |
| 1920 "description": "Default number of tokens that can be consume
d during the specified\nduration. This is the number of tokens assigned when a c
lient\napplication developer activates the service for his/her project.\n\nSpeci
fying a value of 0 will block all requests. This can be used if you\nare provisi
oning quota to selected consumers and blocking others.\nSimilarly, a value of -1
will indicate an unlimited quota. No other\nnegative values are allowed.\n\nUse
d by group-based quotas only.", |
| 1921 "format": "int64", |
| 1922 "type": "string" |
| 1923 }, |
| 1924 "metric": { |
| 1925 "description": "The name of the metric this quota limit appl
ies to. The quota limits with\nthe same metric will be checked together during r
untime. The metric must be\ndefined within the service config.\n\nUsed by metric
-based quotas only.", |
| 1926 "type": "string" |
| 1927 }, |
| 1928 "description": { |
| 1929 "description": "Optional. User-visible, extended description
for this quota limit.\nShould be used only when more context is needed to under
stand this limit\nthan provided by the limit's display name (see: `display_name`
).", |
| 1930 "type": "string" |
| 1931 }, |
| 1932 "displayName": { |
| 1933 "description": "User-visible display name for this limit.\nO
ptional. If not set, the UI will provide a default display name based on\nthe qu
ota configuration. This field can be used to override the default\ndisplay name
generated from the configuration.", |
| 1934 "type": "string" |
| 1935 }, |
| 1936 "values": { |
| 1937 "additionalProperties": { |
| 1938 "format": "int64", |
| 1939 "type": "string" |
| 1940 }, |
| 1941 "description": "Tiered limit values, currently only STANDARD
is supported.", |
| 1942 "type": "object" |
| 1943 }, |
| 1944 "unit": { |
| 1945 "description": "Specify the unit of the quota limit. It uses
the same syntax as\nMetric.unit. The supported unit kinds are determined by the
quota\nbackend system.\n\nThe [Google Service Control](https://cloud.google.com
/service-control)\nsupports the following unit components:\n* One of the time in
tevals:\n * \"/min\" for quota every minute.\n * \"/d\" for quota every 24 h
ours, starting 00:00 US Pacific Time.\n * Otherwise the quota won't be reset by
time, such as storage limit.\n* One and only one of the granted containers:\n
* \"/{project}\" quota for a project\n\nHere are some examples:\n* \"1/min/{proj
ect}\" for quota per minute per project.\n\nNote: the order of unit components i
s insignificant.\nThe \"1\" at the beginning is required to follow the metric un
it syntax.\n\nUsed by metric-based quotas only.", |
| 1946 "type": "string" |
| 1947 }, |
| 1948 "maxLimit": { |
| 1949 "description": "Maximum number of tokens that can be consume
d during the specified\nduration. Client application developers can override the
default limit up\nto this maximum. If specified, this value cannot be set to a
value less\nthan the default limit. If not specified, it is set to the default l
imit.\n\nTo allow clients to apply overrides with no upper bound, set this to -1
,\nindicating unlimited maximum quota.\n\nUsed by group-based quotas only.", |
| 1950 "format": "int64", |
| 1951 "type": "string" |
| 1952 }, |
| 1953 "name": { |
| 1954 "description": "Name of the quota limit. The name is used to
refer to the limit when\noverriding the default limit on per-consumer basis.\n\
nFor metric-based quota limits, the name must be provided, and it must be\nuniqu
e within the service. The name can only include alphanumeric\ncharacters as well
as '-'.\n\nThe maximum length of the limit name is 64 characters.\n\nThe name o
f a limit is used as a unique identifier for this limit.\nTherefore, once a limi
t has been put into use, its name should be\nimmutable. You can use the display_
name field to provide a user-friendly\nname for the limit. The display name can
be evolved over time without\naffecting the identity of the limit.", |
| 1955 "type": "string" |
| 1956 } |
| 1957 }, |
| 1958 "type": "object" |
| 1959 }, |
| 1960 "ConfigRef": { |
| 1961 "description": "Represents a service configuration with its name and
id.", |
| 1962 "id": "ConfigRef", |
| 1963 "properties": { |
| 1964 "name": { |
| 1965 "description": "Resource name of a service config. It must h
ave the following\nformat: \"services/{service name}/configs/{config id}\".", |
| 1966 "type": "string" |
| 1967 } |
| 1968 }, |
| 1969 "type": "object" |
| 1970 }, |
| 1971 "ListServiceRolloutsResponse": { |
| 1972 "description": "Response message for ListServiceRollouts method.", |
| 1973 "id": "ListServiceRolloutsResponse", |
| 1974 "properties": { |
| 1975 "nextPageToken": { |
| 1976 "description": "The token of the next page of results.", |
| 1977 "type": "string" |
| 1978 }, |
| 1979 "rollouts": { |
| 1980 "description": "The list of rollout resources.", |
| 1981 "items": { |
| 1982 "$ref": "Rollout" |
| 1983 }, |
| 1984 "type": "array" |
| 1985 } |
| 1986 }, |
| 1987 "type": "object" |
| 1988 }, |
| 1989 "Mixin": { |
| 1990 "description": "Declares an API Interface to be included in this int
erface. The including\ninterface must redeclare all the methods from the include
d interface, but\ndocumentation and options are inherited as follows:\n\n- If af
ter comment and whitespace stripping, the documentation\n string of the redecla
red method is empty, it will be inherited\n from the original method.\n\n- Each
annotation belonging to the service config (http,\n visibility) which is not s
et in the redeclared method will be\n inherited.\n\n- If an http annotation is
inherited, the path pattern will be\n modified as follows. Any version prefix w
ill be replaced by the\n version of the including interface plus the root path
if\n specified.\n\nExample of a simple mixin:\n\n package google.acl.v1;\n
service AccessControl {\n // Get the underlying ACL object.\n rpc Ge
tAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v
1/{resource=**}:getAcl\";\n }\n }\n\n package google.storage.v2;\n
service Storage {\n // rpc GetAcl(GetAclRequest) returns (Acl);\n\n
// Get a data record.\n rpc GetData(GetDataRequest) returns (Data) {\n
option (google.api.http).get = \"/v2/{resource=**}\";\n }\n }\n\
nExample of a mixin configuration:\n\n apis:\n - name: google.storage.v2.S
torage\n mixins:\n - name: google.acl.v1.AccessControl\n\nThe mixin co
nstruct implies that all methods in `AccessControl` are\nalso declared with same
name and request/response types in\n`Storage`. A documentation generator or ann
otation processor will\nsee the effective `Storage.GetAcl` method after inhertin
g\ndocumentation and annotations as follows:\n\n service Storage {\n //
Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\
n option (google.api.http).get = \"/v2/{resource=**}:getAcl\";\n }\n
...\n }\n\nNote how the version in the path pattern changed from `v1` t
o `v2`.\n\nIf the `root` field in the mixin is specified, it should be a\nrelati
ve path under which inherited HTTP paths are placed. Example:\n\n apis:\n
- name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.Ac
cessControl\n root: acls\n\nThis implies the following inherited HTTP ann
otation:\n\n service Storage {\n // Get the underlying ACL object.\n
rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).ge
t = \"/v2/acls/{resource=**}:getAcl\";\n }\n ...\n }", |
| 1991 "id": "Mixin", |
| 1992 "properties": { |
| 1993 "root": { |
| 1994 "description": "If non-empty specifies a path under which in
herited HTTP paths\nare rooted.", |
| 1995 "type": "string" |
| 1996 }, |
| 1997 "name": { |
| 1998 "description": "The fully qualified name of the interface wh
ich is included.", |
| 1999 "type": "string" |
| 2000 } |
| 2001 }, |
| 2002 "type": "object" |
| 2003 }, |
| 2004 "FlowOperationMetadata": { |
| 2005 "description": "The metadata associated with a long running operatio
n resource.", |
| 2006 "id": "FlowOperationMetadata", |
| 2007 "properties": { |
| 2008 "deadline": { |
| 2009 "description": "Deadline for the flow to complete, to preven
t orphaned Operations.\n\nIf the flow has not completed by this time, it may be
terminated by\nthe engine, or force-failed by Operation lookup.\n\nNote that thi
s is not a hard deadline after which the Flow will\ndefinitely be failed, rather
it is a deadline after which it is reasonable\nto suspect a problem and other p
arts of the system may kill operation\nto ensure we don't have orphans.\nsee als
o: go/prevent-orphaned-operations", |
| 2010 "format": "google-datetime", |
| 2011 "type": "string" |
| 2012 }, |
| 2013 "cancelState": { |
| 2014 "description": "The state of the operation with respect to c
ancellation.", |
| 2015 "enum": [ |
| 2016 "RUNNING", |
| 2017 "UNCANCELLABLE", |
| 2018 "CANCELLED" |
| 2019 ], |
| 2020 "enumDescriptions": [ |
| 2021 "Default state, cancellable but not cancelled.", |
| 2022 "The operation has proceeded past the point of no return
and cannot\nbe cancelled.", |
| 2023 "The operation has been cancelled, work should cease\nan
d any needed rollback steps executed." |
| 2024 ], |
| 2025 "type": "string" |
2720 }, | 2026 }, |
2721 "startTime": { | 2027 "startTime": { |
2722 "description": "The start time of the operation.", | 2028 "description": "The start time of the operation.", |
2723 "format": "google-datetime", | 2029 "format": "google-datetime", |
2724 "type": "string" | 2030 "type": "string" |
2725 } | 2031 }, |
2726 }, | 2032 "resourceNames": { |
2727 "type": "object" | 2033 "description": "The full name of the resources that this flo
w is directly associated with.", |
2728 }, | 2034 "items": { |
2729 "CustomHttpPattern": { | 2035 "type": "string" |
2730 "description": "A custom pattern is used for defining custom HTTP ve
rb.", | 2036 }, |
2731 "id": "CustomHttpPattern", | 2037 "type": "array" |
| 2038 }, |
| 2039 "flowName": { |
| 2040 "description": "The name of the top-level flow corresponding
to this operation.\nMust be equal to the \"name\" field for a FlowName enum.", |
| 2041 "type": "string" |
| 2042 } |
| 2043 }, |
| 2044 "type": "object" |
| 2045 }, |
| 2046 "CustomError": { |
| 2047 "description": "Customize service error responses. For example, lis
t any service\nspecific protobuf types that can appear in error detail lists of\
nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google
.foo.v1.CustomError\n - google.foo.v1.AnotherError", |
| 2048 "id": "CustomError", |
| 2049 "properties": { |
| 2050 "types": { |
| 2051 "description": "The list of custom error detail types, e.g.
'google.foo.v1.CustomError'.", |
| 2052 "items": { |
| 2053 "type": "string" |
| 2054 }, |
| 2055 "type": "array" |
| 2056 }, |
| 2057 "rules": { |
| 2058 "description": "The list of custom error rules that apply to
individual API messages.\n\n**NOTE:** All service configuration rules follow \"
last one wins\" order.", |
| 2059 "items": { |
| 2060 "$ref": "CustomErrorRule" |
| 2061 }, |
| 2062 "type": "array" |
| 2063 } |
| 2064 }, |
| 2065 "type": "object" |
| 2066 }, |
| 2067 "Http": { |
| 2068 "description": "Defines the HTTP configuration for an API service. I
t contains a list of\nHttpRule, each specifying the mapping of an RPC method\nto
one or more HTTP REST API methods.", |
| 2069 "id": "Http", |
| 2070 "properties": { |
| 2071 "rules": { |
| 2072 "description": "A list of HTTP configuration rules that appl
y to individual API methods.\n\n**NOTE:** All service configuration rules follow
\"last one wins\" order.", |
| 2073 "items": { |
| 2074 "$ref": "HttpRule" |
| 2075 }, |
| 2076 "type": "array" |
| 2077 }, |
| 2078 "fullyDecodeReservedExpansion": { |
| 2079 "description": "When set to true, URL path parmeters will be
fully URI-decoded except in\ncases of single segment matches in reserved expans
ion, where \"%2F\" will be\nleft encoded.\n\nThe default behavior is to not deco
de RFC 6570 reserved characters in multi\nsegment matches.", |
| 2080 "type": "boolean" |
| 2081 } |
| 2082 }, |
| 2083 "type": "object" |
| 2084 }, |
| 2085 "SourceInfo": { |
| 2086 "description": "Source information used to create a Service Config", |
| 2087 "id": "SourceInfo", |
| 2088 "properties": { |
| 2089 "sourceFiles": { |
| 2090 "description": "All files used during config generation.", |
| 2091 "items": { |
| 2092 "additionalProperties": { |
| 2093 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 2094 "type": "any" |
| 2095 }, |
| 2096 "type": "object" |
| 2097 }, |
| 2098 "type": "array" |
| 2099 } |
| 2100 }, |
| 2101 "type": "object" |
| 2102 }, |
| 2103 "Control": { |
| 2104 "description": "Selects and configures the service controller used b
y the service. The\nservice controller handles features like abuse, quota, bill
ing, logging,\nmonitoring, etc.", |
| 2105 "id": "Control", |
| 2106 "properties": { |
| 2107 "environment": { |
| 2108 "description": "The service control environment to use. If e
mpty, no control plane\nfeature (like quota and billing) will be enabled.", |
| 2109 "type": "string" |
| 2110 } |
| 2111 }, |
| 2112 "type": "object" |
| 2113 }, |
| 2114 "SystemParameter": { |
| 2115 "description": "Define a parameter's name and location. The paramete
r may be passed as either\nan HTTP header or a URL query parameter, and if both
are passed the behavior\nis implementation-dependent.", |
| 2116 "id": "SystemParameter", |
| 2117 "properties": { |
| 2118 "httpHeader": { |
| 2119 "description": "Define the HTTP header name to use for the p
arameter. It is case\ninsensitive.", |
| 2120 "type": "string" |
| 2121 }, |
| 2122 "name": { |
| 2123 "description": "Define the name of the parameter, such as \"
api_key\" . It is case sensitive.", |
| 2124 "type": "string" |
| 2125 }, |
| 2126 "urlQueryParameter": { |
| 2127 "description": "Define the URL query parameter name to use f
or the parameter. It is case\nsensitive.", |
| 2128 "type": "string" |
| 2129 } |
| 2130 }, |
| 2131 "type": "object" |
| 2132 }, |
| 2133 "Field": { |
| 2134 "description": "A single field of a message type.", |
| 2135 "id": "Field", |
2732 "properties": { | 2136 "properties": { |
2733 "kind": { | 2137 "kind": { |
2734 "description": "The name of this custom HTTP verb.", | 2138 "description": "The field type.", |
2735 "type": "string" | 2139 "enum": [ |
2736 }, | 2140 "TYPE_UNKNOWN", |
2737 "path": { | 2141 "TYPE_DOUBLE", |
2738 "description": "The path matched by this custom verb.", | 2142 "TYPE_FLOAT", |
2739 "type": "string" | 2143 "TYPE_INT64", |
2740 } | 2144 "TYPE_UINT64", |
2741 }, | 2145 "TYPE_INT32", |
2742 "type": "object" | 2146 "TYPE_FIXED64", |
2743 }, | 2147 "TYPE_FIXED32", |
2744 "SystemParameterRule": { | 2148 "TYPE_BOOL", |
2745 "description": "Define a system parameter rule mapping system parame
ter definitions to\nmethods.", | 2149 "TYPE_STRING", |
2746 "id": "SystemParameterRule", | 2150 "TYPE_GROUP", |
2747 "properties": { | 2151 "TYPE_MESSAGE", |
| 2152 "TYPE_BYTES", |
| 2153 "TYPE_UINT32", |
| 2154 "TYPE_ENUM", |
| 2155 "TYPE_SFIXED32", |
| 2156 "TYPE_SFIXED64", |
| 2157 "TYPE_SINT32", |
| 2158 "TYPE_SINT64" |
| 2159 ], |
| 2160 "enumDescriptions": [ |
| 2161 "Field type unknown.", |
| 2162 "Field type double.", |
| 2163 "Field type float.", |
| 2164 "Field type int64.", |
| 2165 "Field type uint64.", |
| 2166 "Field type int32.", |
| 2167 "Field type fixed64.", |
| 2168 "Field type fixed32.", |
| 2169 "Field type bool.", |
| 2170 "Field type string.", |
| 2171 "Field type group. Proto2 syntax only, and deprecated.", |
| 2172 "Field type message.", |
| 2173 "Field type bytes.", |
| 2174 "Field type uint32.", |
| 2175 "Field type enum.", |
| 2176 "Field type sfixed32.", |
| 2177 "Field type sfixed64.", |
| 2178 "Field type sint32.", |
| 2179 "Field type sint64." |
| 2180 ], |
| 2181 "type": "string" |
| 2182 }, |
| 2183 "jsonName": { |
| 2184 "description": "The field JSON name.", |
| 2185 "type": "string" |
| 2186 }, |
| 2187 "options": { |
| 2188 "description": "The protocol buffer options.", |
| 2189 "items": { |
| 2190 "$ref": "Option" |
| 2191 }, |
| 2192 "type": "array" |
| 2193 }, |
| 2194 "oneofIndex": { |
| 2195 "description": "The index of the field type in `Type.oneofs`
, for message or enumeration\ntypes. The first type has index 1; zero means the
type is not in the list.", |
| 2196 "format": "int32", |
| 2197 "type": "integer" |
| 2198 }, |
| 2199 "packed": { |
| 2200 "description": "Whether to use alternative packed wire repre
sentation.", |
| 2201 "type": "boolean" |
| 2202 }, |
| 2203 "cardinality": { |
| 2204 "description": "The field cardinality.", |
| 2205 "enum": [ |
| 2206 "CARDINALITY_UNKNOWN", |
| 2207 "CARDINALITY_OPTIONAL", |
| 2208 "CARDINALITY_REQUIRED", |
| 2209 "CARDINALITY_REPEATED" |
| 2210 ], |
| 2211 "enumDescriptions": [ |
| 2212 "For fields with unknown cardinality.", |
| 2213 "For optional fields.", |
| 2214 "For required fields. Proto2 syntax only.", |
| 2215 "For repeated fields." |
| 2216 ], |
| 2217 "type": "string" |
| 2218 }, |
| 2219 "defaultValue": { |
| 2220 "description": "The string value of the default value of thi
s field. Proto2 syntax only.", |
| 2221 "type": "string" |
| 2222 }, |
| 2223 "name": { |
| 2224 "description": "The field name.", |
| 2225 "type": "string" |
| 2226 }, |
| 2227 "typeUrl": { |
| 2228 "description": "The field type URL, without the scheme, for
message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.T
imestamp\"`.", |
| 2229 "type": "string" |
| 2230 }, |
| 2231 "number": { |
| 2232 "description": "The field number.", |
| 2233 "format": "int32", |
| 2234 "type": "integer" |
| 2235 } |
| 2236 }, |
| 2237 "type": "object" |
| 2238 }, |
| 2239 "Monitoring": { |
| 2240 "description": "Monitoring configuration of the service.\n\nThe exam
ple below shows how to configure monitored resources and metrics\nfor monitoring
. In the example, a monitored resource and two metrics are\ndefined. The `librar
y.googleapis.com/book/returned_count` metric is sent\nto both producer and consu
mer projects, whereas the\n`library.googleapis.com/book/overdue_count` metric is
only sent to the\nconsumer project.\n\n monitored_resources:\n - type: li
brary.googleapis.com/branch\n labels:\n - key: /city\n descript
ion: The city where the library branch is located in.\n - key: /name\n
description: The name of the branch.\n metrics:\n - name: library.googl
eapis.com/book/returned_count\n metric_kind: DELTA\n value_type: INT64
\n labels:\n - key: /customer_id\n - name: library.googleapis.com/b
ook/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labe
ls:\n - key: /customer_id\n monitoring:\n producer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n consumer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n - library.googleapis.
com/book/overdue_count", |
| 2241 "id": "Monitoring", |
| 2242 "properties": { |
| 2243 "producerDestinations": { |
| 2244 "description": "Monitoring configurations for sending metric
s to the producer project.\nThere can be multiple producer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none producer destination.", |
| 2245 "items": { |
| 2246 "$ref": "MonitoringDestination" |
| 2247 }, |
| 2248 "type": "array" |
| 2249 }, |
| 2250 "consumerDestinations": { |
| 2251 "description": "Monitoring configurations for sending metric
s to the consumer project.\nThere can be multiple consumer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none consumer destination.", |
| 2252 "items": { |
| 2253 "$ref": "MonitoringDestination" |
| 2254 }, |
| 2255 "type": "array" |
| 2256 } |
| 2257 }, |
| 2258 "type": "object" |
| 2259 }, |
| 2260 "TestIamPermissionsRequest": { |
| 2261 "description": "Request message for `TestIamPermissions` method.", |
| 2262 "id": "TestIamPermissionsRequest", |
| 2263 "properties": { |
| 2264 "permissions": { |
| 2265 "description": "The set of permissions to check for the `res
ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed
. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov
erview#permissions).", |
| 2266 "items": { |
| 2267 "type": "string" |
| 2268 }, |
| 2269 "type": "array" |
| 2270 } |
| 2271 }, |
| 2272 "type": "object" |
| 2273 }, |
| 2274 "Enum": { |
| 2275 "description": "Enum type definition.", |
| 2276 "id": "Enum", |
| 2277 "properties": { |
| 2278 "enumvalue": { |
| 2279 "description": "Enum value definitions.", |
| 2280 "items": { |
| 2281 "$ref": "EnumValue" |
| 2282 }, |
| 2283 "type": "array" |
| 2284 }, |
| 2285 "name": { |
| 2286 "description": "Enum type name.", |
| 2287 "type": "string" |
| 2288 }, |
| 2289 "options": { |
| 2290 "description": "Protocol buffer options.", |
| 2291 "items": { |
| 2292 "$ref": "Option" |
| 2293 }, |
| 2294 "type": "array" |
| 2295 }, |
| 2296 "syntax": { |
| 2297 "description": "The source syntax.", |
| 2298 "enum": [ |
| 2299 "SYNTAX_PROTO2", |
| 2300 "SYNTAX_PROTO3" |
| 2301 ], |
| 2302 "enumDescriptions": [ |
| 2303 "Syntax `proto2`.", |
| 2304 "Syntax `proto3`." |
| 2305 ], |
| 2306 "type": "string" |
| 2307 }, |
| 2308 "sourceContext": { |
| 2309 "$ref": "SourceContext", |
| 2310 "description": "The source context." |
| 2311 } |
| 2312 }, |
| 2313 "type": "object" |
| 2314 }, |
| 2315 "EnableServiceRequest": { |
| 2316 "description": "Request message for EnableService method.", |
| 2317 "id": "EnableServiceRequest", |
| 2318 "properties": { |
| 2319 "consumerId": { |
| 2320 "description": "The identity of consumer resource which serv
ice enablement will be\napplied to.\n\nThe Google Service Management implementat
ion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is m
ade compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", |
| 2321 "type": "string" |
| 2322 } |
| 2323 }, |
| 2324 "type": "object" |
| 2325 }, |
| 2326 "Diagnostic": { |
| 2327 "description": "Represents a diagnostic message (error or warning)", |
| 2328 "id": "Diagnostic", |
| 2329 "properties": { |
| 2330 "message": { |
| 2331 "description": "Message describing the error or warning.", |
| 2332 "type": "string" |
| 2333 }, |
| 2334 "location": { |
| 2335 "description": "File name and line number of the error or wa
rning.", |
| 2336 "type": "string" |
| 2337 }, |
| 2338 "kind": { |
| 2339 "description": "The kind of diagnostic information provided.
", |
| 2340 "enum": [ |
| 2341 "WARNING", |
| 2342 "ERROR" |
| 2343 ], |
| 2344 "enumDescriptions": [ |
| 2345 "Warnings and errors", |
| 2346 "Only errors" |
| 2347 ], |
| 2348 "type": "string" |
| 2349 } |
| 2350 }, |
| 2351 "type": "object" |
| 2352 }, |
| 2353 "LabelDescriptor": { |
| 2354 "description": "A description of a label.", |
| 2355 "id": "LabelDescriptor", |
| 2356 "properties": { |
| 2357 "key": { |
| 2358 "description": "The label key.", |
| 2359 "type": "string" |
| 2360 }, |
| 2361 "description": { |
| 2362 "description": "A human-readable description for the label."
, |
| 2363 "type": "string" |
| 2364 }, |
| 2365 "valueType": { |
| 2366 "description": "The type of data that can be assigned to the
label.", |
| 2367 "enum": [ |
| 2368 "STRING", |
| 2369 "BOOL", |
| 2370 "INT64" |
| 2371 ], |
| 2372 "enumDescriptions": [ |
| 2373 "A variable-length string. This is the default.", |
| 2374 "Boolean; true or false.", |
| 2375 "A 64-bit signed integer." |
| 2376 ], |
| 2377 "type": "string" |
| 2378 } |
| 2379 }, |
| 2380 "type": "object" |
| 2381 }, |
| 2382 "GenerateConfigReportResponse": { |
| 2383 "description": "Response message for GenerateConfigReport method.", |
| 2384 "id": "GenerateConfigReportResponse", |
| 2385 "properties": { |
| 2386 "id": { |
| 2387 "description": "ID of the service configuration this report
belongs to.", |
| 2388 "type": "string" |
| 2389 }, |
| 2390 "diagnostics": { |
| 2391 "description": "Errors / Linter warnings associated with the
service definition this\nreport\nbelongs to.", |
| 2392 "items": { |
| 2393 "$ref": "Diagnostic" |
| 2394 }, |
| 2395 "type": "array" |
| 2396 }, |
| 2397 "serviceName": { |
| 2398 "description": "Name of the service this report belongs to."
, |
| 2399 "type": "string" |
| 2400 }, |
| 2401 "changeReports": { |
| 2402 "description": "list of ChangeReport, each corresponding to
comparison between two\nservice configurations.", |
| 2403 "items": { |
| 2404 "$ref": "ChangeReport" |
| 2405 }, |
| 2406 "type": "array" |
| 2407 } |
| 2408 }, |
| 2409 "type": "object" |
| 2410 }, |
| 2411 "Type": { |
| 2412 "description": "A protocol buffer message type.", |
| 2413 "id": "Type", |
| 2414 "properties": { |
| 2415 "options": { |
| 2416 "description": "The protocol buffer options.", |
| 2417 "items": { |
| 2418 "$ref": "Option" |
| 2419 }, |
| 2420 "type": "array" |
| 2421 }, |
| 2422 "fields": { |
| 2423 "description": "The list of fields.", |
| 2424 "items": { |
| 2425 "$ref": "Field" |
| 2426 }, |
| 2427 "type": "array" |
| 2428 }, |
| 2429 "name": { |
| 2430 "description": "The fully qualified message name.", |
| 2431 "type": "string" |
| 2432 }, |
| 2433 "oneofs": { |
| 2434 "description": "The list of types appearing in `oneof` defin
itions in this type.", |
| 2435 "items": { |
| 2436 "type": "string" |
| 2437 }, |
| 2438 "type": "array" |
| 2439 }, |
| 2440 "sourceContext": { |
| 2441 "$ref": "SourceContext", |
| 2442 "description": "The source context." |
| 2443 }, |
| 2444 "syntax": { |
| 2445 "description": "The source syntax.", |
| 2446 "enum": [ |
| 2447 "SYNTAX_PROTO2", |
| 2448 "SYNTAX_PROTO3" |
| 2449 ], |
| 2450 "enumDescriptions": [ |
| 2451 "Syntax `proto2`.", |
| 2452 "Syntax `proto3`." |
| 2453 ], |
| 2454 "type": "string" |
| 2455 } |
| 2456 }, |
| 2457 "type": "object" |
| 2458 }, |
| 2459 "Experimental": { |
| 2460 "description": "Experimental service configuration. These configurat
ion options can\nonly be used by whitelisted users.", |
| 2461 "id": "Experimental", |
| 2462 "properties": { |
| 2463 "authorization": { |
| 2464 "$ref": "AuthorizationConfig", |
| 2465 "description": "Authorization configuration." |
| 2466 } |
| 2467 }, |
| 2468 "type": "object" |
| 2469 }, |
| 2470 "ListServiceConfigsResponse": { |
| 2471 "description": "Response message for ListServiceConfigs method.", |
| 2472 "id": "ListServiceConfigsResponse", |
| 2473 "properties": { |
| 2474 "nextPageToken": { |
| 2475 "description": "The token of the next page of results.", |
| 2476 "type": "string" |
| 2477 }, |
| 2478 "serviceConfigs": { |
| 2479 "description": "The list of service configuration resources.
", |
| 2480 "items": { |
| 2481 "$ref": "Service" |
| 2482 }, |
| 2483 "type": "array" |
| 2484 } |
| 2485 }, |
| 2486 "type": "object" |
| 2487 }, |
| 2488 "AuditConfig": { |
| 2489 "description": "Specifies the audit configuration for a service.\nTh
e configuration determines which permission types are logged, and what\nidentiti
es, if any, are exempted from logging.\nAn AuditConfig must have one or more Aud
itLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific
service,\nthe union of the two AuditConfigs is used for that service: the log_t
ypes\nspecified in each AuditConfig are enabled, and the exempted_members in eac
h\nAuditConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n
{\n \"audit_configs\": [\n {\n \"service\": \"allServices
\"\n \"audit_log_configs\": [\n {\n \"log_type\
": \"DATA_READ\",\n \"exempted_members\": [\n \"user
:foo@gmail.com\"\n ]\n },\n {\n
\"log_type\": \"DATA_WRITE\",\n },\n {\n \"lo
g_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n
\"service\": \"fooservice.googleapis.com\"\n \"audit_log_config
s\": [\n {\n \"log_type\": \"DATA_READ\",\n }
,\n {\n \"log_type\": \"DATA_WRITE\",\n \"e
xempted_members\": [\n \"user:bar@gmail.com\"\n ]\n
}\n ]\n }\n ]\n }\n\nFor fooservice, this pol
icy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@g
mail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", |
| 2490 "id": "AuditConfig", |
| 2491 "properties": { |
| 2492 "service": { |
| 2493 "description": "Specifies a service that will be enabled for
audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com
`.\n`allServices` is a special value that covers all services.", |
| 2494 "type": "string" |
| 2495 }, |
| 2496 "auditLogConfigs": { |
| 2497 "description": "The configuration for logging of each type o
f permission.\nNext ID: 4", |
| 2498 "items": { |
| 2499 "$ref": "AuditLogConfig" |
| 2500 }, |
| 2501 "type": "array" |
| 2502 }, |
| 2503 "exemptedMembers": { |
| 2504 "items": { |
| 2505 "type": "string" |
| 2506 }, |
| 2507 "type": "array" |
| 2508 } |
| 2509 }, |
| 2510 "type": "object" |
| 2511 }, |
| 2512 "Backend": { |
| 2513 "description": "`Backend` defines the backend configuration for a se
rvice.", |
| 2514 "id": "Backend", |
| 2515 "properties": { |
| 2516 "rules": { |
| 2517 "description": "A list of API backend rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 2518 "items": { |
| 2519 "$ref": "BackendRule" |
| 2520 }, |
| 2521 "type": "array" |
| 2522 } |
| 2523 }, |
| 2524 "type": "object" |
| 2525 }, |
| 2526 "SubmitConfigSourceRequest": { |
| 2527 "description": "Request message for SubmitConfigSource method.", |
| 2528 "id": "SubmitConfigSourceRequest", |
| 2529 "properties": { |
| 2530 "configSource": { |
| 2531 "$ref": "ConfigSource", |
| 2532 "description": "The source configuration for the service." |
| 2533 }, |
| 2534 "validateOnly": { |
| 2535 "description": "Optional. If set, this will result in the ge
neration of a\n`google.api.Service` configuration based on the `ConfigSource` pr
ovided,\nbut the generated config and the sources will NOT be persisted.", |
| 2536 "type": "boolean" |
| 2537 } |
| 2538 }, |
| 2539 "type": "object" |
| 2540 }, |
| 2541 "AuthorizationConfig": { |
| 2542 "description": "Configuration of authorization.\n\nThis section dete
rmines the authorization provider, if unspecified, then no\nauthorization check
will be done.\n\nExample:\n\n experimental:\n authorization:\n pr
ovider: firebaserules.googleapis.com", |
| 2543 "id": "AuthorizationConfig", |
| 2544 "properties": { |
| 2545 "provider": { |
| 2546 "description": "The name of the authorization provider, such
as\nfirebaserules.googleapis.com.", |
| 2547 "type": "string" |
| 2548 } |
| 2549 }, |
| 2550 "type": "object" |
| 2551 }, |
| 2552 "DocumentationRule": { |
| 2553 "description": "A documentation rule provides information about indi
vidual API elements.", |
| 2554 "id": "DocumentationRule", |
| 2555 "properties": { |
| 2556 "description": { |
| 2557 "description": "Description of the selected API(s).", |
| 2558 "type": "string" |
| 2559 }, |
| 2560 "deprecationDescription": { |
| 2561 "description": "Deprecation description of the selected elem
ent(s). It can be provided if an\nelement is marked as `deprecated`.", |
| 2562 "type": "string" |
| 2563 }, |
2748 "selector": { | 2564 "selector": { |
2749 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", | 2565 "description": "The selector is a comma-separated list of pa
tterns. Each pattern is a\nqualified name of the element which may end in \"*\",
indicating a wildcard.\nWildcards are only allowed at the end and for a whole c
omponent of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"f
oo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern
\"*\"\nis used.", |
2750 "type": "string" | 2566 "type": "string" |
2751 }, | 2567 } |
2752 "parameters": { | 2568 }, |
2753 "description": "Define parameters. Multiple names may be def
ined for a parameter.\nFor a given method call, only one of them should be used.
If multiple\nnames are used the behavior is implementation-dependent.\nIf none
of the specified names are present the behavior is\nparameter-dependent.", | 2569 "type": "object" |
2754 "items": { | 2570 }, |
2755 "$ref": "SystemParameter" | 2571 "ContextRule": { |
2756 }, | 2572 "description": "A context rule provides information about the contex
t for an individual API\nelement.", |
2757 "type": "array" | 2573 "id": "ContextRule", |
2758 } | 2574 "properties": { |
2759 }, | |
2760 "type": "object" | |
2761 }, | |
2762 "VisibilityRule": { | |
2763 "description": "A visibility rule provides visibility configuration
for an individual API\nelement.", | |
2764 "id": "VisibilityRule", | |
2765 "properties": { | |
2766 "restriction": { | |
2767 "description": "A comma-separated list of visibility labels
that apply to the `selector`.\nAny of the listed labels can be used to grant the
visibility.\n\nIf a rule has multiple labels, removing one of the labels but no
t all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n
- selector: google.calendar.Calendar.EnhancedSearch\n restriction:
GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restrictio
n will break clients that\nrely on this method and only had access to it through
GOOGLE_INTERNAL.", | |
2768 "type": "string" | |
2769 }, | |
2770 "selector": { | 2575 "selector": { |
2771 "description": "Selects methods, messages, fields, enums, et
c. to which this rule applies.\n\nRefer to selector for syntax details.", | 2576 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
2772 "type": "string" | 2577 "type": "string" |
2773 } | 2578 }, |
2774 }, | 2579 "provided": { |
2775 "type": "object" | 2580 "description": "A list of full type names of provided contex
ts.", |
2776 }, | |
2777 "HttpRule": { | |
2778 "description": "`HttpRule` defines the mapping of an RPC method to o
ne or more HTTP\nREST API methods. The mapping specifies how different portions
of the RPC\nrequest message are mapped to URL path, URL query parameters, and\nH
TTP request body. The mapping is typically specified as an\n`google.api.http` an
notation on the RPC method,\nsee \"google/api/annotations.proto\" for details.\n
\nThe mapping consists of a field specifying the path template and\nmethod kind.
The path template can refer to fields in the request\nmessage, as in the examp
le below which describes a REST GET\noperation on a resource collection of messa
ges:\n\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) retur
ns (Message) {\n option (google.api.http).get = \"/v1/messages/{message_i
d}/{sub.subfield}\";\n }\n }\n message GetMessageRequest {\n mes
sage SubMessage {\n string subfield = 1;\n }\n string message_i
d = 1; // mapped to the URL\n SubMessage sub = 2; // `sub.subfield` is u
rl-mapped\n }\n message Message {\n string text = 1; // content of th
e resource\n }\n\nThe same http annotation can alternatively be expressed ins
ide the\n`GRPC API Configuration` YAML file.\n\n http:\n rules:\n
- selector: <proto_package_name>.Messaging.GetMessage\n get: /v1/messa
ges/{message_id}/{sub.subfield}\n\nThis definition enables an automatic, bidrect
ional mapping of HTTP\nJSON to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET /v
1/messages/123456/foo` | `GetMessage(message_id: \"123456\" sub: SubMessage(sub
field: \"foo\"))`\n\nIn general, not only fields but also field paths can be ref
erenced\nfrom a path pattern. Fields mapped to the path pattern cannot be\nrepea
ted and must have a primitive (non-message) type.\n\nAny fields in the request m
essage which are not bound by the path\npattern automatically become (optional)
HTTP query\nparameters. Assume the following definition of the request message:\
n\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) returns (M
essage) {\n option (google.api.http).get = \"/v1/messages/{message_id}\";
\n }\n }\n message GetMessageRequest {\n message SubMessage {\n
string subfield = 1;\n }\n string message_id = 1; // mapped to
the URL\n int64 revision = 2; // becomes a parameter\n SubMessage s
ub = 3; // `sub.subfield` becomes a parameter\n }\n\n\nThis enables a HTTP
JSON to RPC mapping as below:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123
456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision:
2 sub: SubMessage(subfield: \"foo\"))`\n\nNote that fields which are mapped to H
TTP parameters must have a\nprimitive type or a repeated primitive type. Message
types are not\nallowed. In the case of a repeated type, the parameter can be\nr
epeated in the URL, as in `...?param=A¶m=B`.\n\nFor HTTP method kinds which
allow a request body, the `body` field\nspecifies the mapping. Consider a REST u
pdate method on the\nmessage resource collection:\n\n\n service Messaging {\n
rpc UpdateMessage(UpdateMessageRequest) returns (Message) {\n optio
n (google.api.http) = {\n put: \"/v1/messages/{message_id}\"\n
body: \"message\"\n };\n }\n }\n message UpdateMessageRequest
{\n string message_id = 1; // mapped to the URL\n Message message = 2
; // mapped to the body\n }\n\n\nThe following HTTP JSON to RPC mapping is
enabled, where the\nrepresentation of the JSON in the request body is determined
by\nprotos JSON encoding:\n\nHTTP | RPC\n-----|-----\n`PUT /v1/messages/123456
{ \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \
"Hi!\" })`\n\nThe special name `*` can be used in the body mapping to define tha
t\nevery field not bound by the path template should be mapped to the\nrequest b
ody. This enables the following alternative definition of\nthe update method:\n
\n service Messaging {\n rpc UpdateMessage(Message) returns (Message) {\
n option (google.api.http) = {\n put: \"/v1/messages/{message_id
}\"\n body: \"*\"\n };\n }\n }\n message Message {\n
string message_id = 1;\n string text = 2;\n }\n\n\nThe following HT
TP JSON to RPC mapping is enabled:\n\nHTTP | RPC\n-----|-----\n`PUT /v1/messages
/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"H
i!\")`\n\nNote that when using `*` in the body mapping, it is not possible to\nh
ave HTTP parameters, as all fields not bound by the path end in\nthe body. This
makes this option more rarely used in practice of\ndefining REST APIs. The commo
n usage of `*` is in custom methods\nwhich don't use the URL at all for transfer
ring data.\n\nIt is possible to define multiple HTTP methods for one RPC by usin
g\nthe `additional_bindings` option. Example:\n\n service Messaging {\n
rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.ap
i.http) = {\n get: \"/v1/messages/{message_id}\"\n additional_
bindings {\n get: \"/v1/users/{user_id}/messages/{message_id}\"\n
}\n };\n }\n }\n message GetMessageRequest {\n stri
ng message_id = 1;\n string user_id = 2;\n }\n\n\nThis enables the follo
wing two alternative HTTP JSON to RPC\nmappings:\n\nHTTP | RPC\n-----|-----\n`GE
T /v1/messages/123456` | `GetMessage(message_id: \"123456\")`\n`GET /v1/users/me
/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n\n# Ru
les for HTTP mapping\n\nThe rules for mapping HTTP path, query parameters, and b
ody fields\nto the request message are as follows:\n\n1. The `body` field specif
ies either `*` or a field path, or is\n omitted. If omitted, it indicates ther
e is no HTTP request body.\n2. Leaf fields (recursive expansion of nested messag
es in the\n request) can be classified into three types:\n (a) Matched in t
he URL template.\n (b) Covered by body (if body is `*`, everything except (a)
fields;\n else everything under the body field)\n (c) All other field
s.\n3. URL query parameters found in the HTTP request are mapped to (c) fields.\
n4. Any body sent with an HTTP request can contain only (b) fields.\n\nThe synta
x of the path template is as follows:\n\n Template = \"/\" Segments [ Verb ]
;\n Segments = Segment { \"/\" Segment } ;\n Segment = \"*\" | \"**\" | L
ITERAL | Variable ;\n Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n
FieldPath = IDENT { \".\" IDENT } ;\n Verb = \":\" LITERAL ;\n\nThe s
yntax `*` matches a single path segment. The syntax `**` matches zero\nor more p
ath segments, which must be the last part of the path except the\n`Verb`. The sy
ntax `LITERAL` matches literal text in the path.\n\nThe syntax `Variable` matche
s part of the URL path as specified by its\ntemplate. A variable template must n
ot contain other variables. If a variable\nmatches a single path segment, its te
mplate may be omitted, e.g. `{var}`\nis equivalent to `{var=*}`.\n\nIf a variabl
e contains exactly one path segment, such as `\"{var}\"` or\n`\"{var=*}\"`, when
such a variable is expanded into a URL path, all characters\nexcept `[-_.~0-9a-
zA-Z]` are percent-encoded. Such variables show up in the\nDiscovery Document as
`{var}`.\n\nIf a variable contains one or more path segments, such as `\"{var=f
oo/*}\"`\nor `\"{var=**}\"`, when such a variable is expanded into a URL path, a
ll\ncharacters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables\nsh
ow up in the Discovery Document as `{+var}`.\n\nNOTE: While the single segment v
ariable matches the semantics of\n[RFC 6570](https://tools.ietf.org/html/rfc6570
) Section 3.2.2\nSimple String Expansion, the multi segment variable **does not*
* match\nRFC 6570 Reserved Expansion. The reason is that the Reserved Expansion\
ndoes not expand special characters like `?` and `#`, which would lead\nto inval
id URLs.\n\nNOTE: the field paths in variables and in the `body` must not refer
to\nrepeated fields or map fields.", | |
2779 "id": "HttpRule", | |
2780 "properties": { | |
2781 "custom": { | |
2782 "$ref": "CustomHttpPattern", | |
2783 "description": "The custom pattern is used for specifying an
HTTP method that is not\nincluded in the `pattern` field, such as HEAD, or \"*\
" to leave the\nHTTP method unspecified for this rule. The wild-card rule is use
ful\nfor services that provide content to Web (HTML) clients." | |
2784 }, | |
2785 "get": { | |
2786 "description": "Used for listing and getting information abo
ut resources.", | |
2787 "type": "string" | |
2788 }, | |
2789 "patch": { | |
2790 "description": "Used for updating a resource.", | |
2791 "type": "string" | |
2792 }, | |
2793 "put": { | |
2794 "description": "Used for updating a resource.", | |
2795 "type": "string" | |
2796 }, | |
2797 "delete": { | |
2798 "description": "Used for deleting a resource.", | |
2799 "type": "string" | |
2800 }, | |
2801 "body": { | |
2802 "description": "The name of the request field whose value is
mapped to the HTTP body, or\n`*` for mapping all fields not captured by the pat
h pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated fie
ld and must be\npresent at the top-level of request message type.", | |
2803 "type": "string" | |
2804 }, | |
2805 "post": { | |
2806 "description": "Used for creating a resource.", | |
2807 "type": "string" | |
2808 }, | |
2809 "mediaDownload": { | |
2810 "$ref": "MediaDownload", | |
2811 "description": "Use this only for Scotty Requests. Do not us
e this for bytestream methods.\nFor media support, add instead [][google.bytestr
eam.RestByteStream] as an\nAPI to your configuration." | |
2812 }, | |
2813 "additionalBindings": { | |
2814 "description": "Additional HTTP bindings for the selector. N
ested bindings must\nnot contain an `additional_bindings` field themselves (that
is,\nthe nesting may only be one level deep).", | |
2815 "items": { | |
2816 "$ref": "HttpRule" | |
2817 }, | |
2818 "type": "array" | |
2819 }, | |
2820 "responseBody": { | |
2821 "description": "The name of the response field whose value i
s mapped to the HTTP body of\nresponse. Other response fields are ignored. This
field is optional. When\nnot set, the response message will be used as HTTP body
of response.\nNOTE: the referred field must be not a repeated field and must be
present\nat the top-level of response message type.", | |
2822 "type": "string" | |
2823 }, | |
2824 "mediaUpload": { | |
2825 "$ref": "MediaUpload", | |
2826 "description": "Use this only for Scotty Requests. Do not us
e this for media support using\nBytestream, add instead\n[][google.bytestream.Re
stByteStream] as an API to your\nconfiguration for Bytestream methods." | |
2827 }, | |
2828 "selector": { | |
2829 "description": "Selects methods to which this rule applies.\
n\nRefer to selector for syntax details.", | |
2830 "type": "string" | |
2831 } | |
2832 }, | |
2833 "type": "object" | |
2834 }, | |
2835 "MonitoringDestination": { | |
2836 "description": "Configuration of a specific monitoring destination (
the producer project\nor the consumer project).", | |
2837 "id": "MonitoringDestination", | |
2838 "properties": { | |
2839 "monitoredResource": { | |
2840 "description": "The monitored resource type. The type must b
e defined in\nService.monitored_resources section.", | |
2841 "type": "string" | |
2842 }, | |
2843 "metrics": { | |
2844 "description": "Names of the metrics to report to this monit
oring destination.\nEach name must be defined in Service.metrics section.", | |
2845 "items": { | 2581 "items": { |
2846 "type": "string" | 2582 "type": "string" |
2847 }, | 2583 }, |
| 2584 "type": "array" |
| 2585 }, |
| 2586 "requested": { |
| 2587 "description": "A list of full type names of requested conte
xts.", |
| 2588 "items": { |
| 2589 "type": "string" |
| 2590 }, |
2848 "type": "array" | 2591 "type": "array" |
2849 } | 2592 } |
2850 }, | 2593 }, |
2851 "type": "object" | 2594 "type": "object" |
2852 }, | 2595 }, |
2853 "Visibility": { | 2596 "SourceContext": { |
2854 "description": "`Visibility` defines restrictions for the visibility
of service\nelements. Restrictions are specified using visibility labels\n(e.g
., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and
projects can have access to more than one visibility label. The\neffective visi
bility for multiple labels is the union of each label's\nelements, plus any unre
stricted elements.\n\nIf an element and its parents have no restrictions, visibi
lity is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n
- selector: google.calendar.Calendar.EnhancedSearch\n restriction:
TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n res
triction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for t
he restricted methods\nEnhancedSearch and Delegate.", | 2597 "description": "`SourceContext` represents information about the sou
rce of a\nprotobuf element, like the file in which it is defined.", |
2855 "id": "Visibility", | 2598 "id": "SourceContext", |
2856 "properties": { | 2599 "properties": { |
2857 "rules": { | 2600 "fileName": { |
2858 "description": "A list of visibility rules that apply to ind
ividual API elements.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", | 2601 "description": "The path-qualified name of the .proto file t
hat contained the associated\nprotobuf element. For example: `\"google/protobuf
/source_context.proto\"`.", |
2859 "items": { | 2602 "type": "string" |
2860 "$ref": "VisibilityRule" | 2603 } |
2861 }, | 2604 }, |
2862 "type": "array" | 2605 "type": "object" |
2863 } | 2606 }, |
2864 }, | 2607 "MetricDescriptor": { |
2865 "type": "object" | 2608 "description": "Defines a metric type and its schema. Once a metric
descriptor is created,\ndeleting or altering it stops data collection and makes
the metric type's\nexisting data unusable.", |
2866 }, | 2609 "id": "MetricDescriptor", |
2867 "ConfigChange": { | 2610 "properties": { |
2868 "description": "Output generated from semantically comparing two ver
sions of a service\nconfiguration.\n\nIncludes detailed information about a fiel
d that have changed with\napplicable advice about potential consequences for the
change, such as\nbackwards-incompatibility.", | 2611 "type": { |
2869 "id": "ConfigChange", | 2612 "description": "The metric type, including its DNS name pref
ix. The type is not\nURL-encoded. All user-defined custom metric types have the
DNS name\n`custom.googleapis.com`. Metric types should use a natural hierarchi
cal\ngrouping. For example:\n\n \"custom.googleapis.com/invoice/paid/amount\"
\n \"appengine.googleapis.com/http/server/response_latencies\"", |
2870 "properties": { | 2613 "type": "string" |
2871 "changeType": { | 2614 }, |
2872 "description": "The type for this change, either ADDED, REMO
VED, or MODIFIED.", | 2615 "valueType": { |
| 2616 "description": "Whether the measurement is an integer, a flo
ating-point number, etc.\nSome combinations of `metric_kind` and `value_type` mi
ght not be supported.", |
2873 "enum": [ | 2617 "enum": [ |
2874 "CHANGE_TYPE_UNSPECIFIED", | 2618 "VALUE_TYPE_UNSPECIFIED", |
2875 "ADDED", | 2619 "BOOL", |
2876 "REMOVED", | 2620 "INT64", |
2877 "MODIFIED" | 2621 "DOUBLE", |
| 2622 "STRING", |
| 2623 "DISTRIBUTION", |
| 2624 "MONEY" |
2878 ], | 2625 ], |
2879 "enumDescriptions": [ | 2626 "enumDescriptions": [ |
2880 "No value was provided.", | 2627 "Do not use this default value.", |
2881 "The changed object exists in the 'new' service configur
ation, but not\nin the 'old' service configuration.", | 2628 "The value is a boolean.\nThis value type can be used on
ly if the metric kind is `GAUGE`.", |
2882 "The changed object exists in the 'old' service configur
ation, but not\nin the 'new' service configuration.", | 2629 "The value is a signed 64-bit integer.", |
2883 "The changed object exists in both service configuration
s, but its value\nis different." | 2630 "The value is a double precision floating point number."
, |
| 2631 "The value is a text string.\nThis value type can be use
d only if the metric kind is `GAUGE`.", |
| 2632 "The value is a `Distribution`.", |
| 2633 "The value is money." |
2884 ], | 2634 ], |
2885 "type": "string" | 2635 "type": "string" |
2886 }, | 2636 }, |
2887 "element": { | 2637 "metricKind": { |
2888 "description": "Object hierarchy path to the change, with le
vels separated by a '.'\ncharacter. For repeated fields, an applicable unique id
entifier field is\nused for the index (usually selector, name, or id). For maps,
the term\n'key' is used. If the field has no unique identifier, the numeric ind
ex\nis used.\nExamples:\n- visibility.rules[selector==\"google.LibraryService.Cr
eateBook\"].restriction\n- quota.metric_rules[selector==\"google\"].metric_costs
[key==\"reads\"].value\n- logging.producer_destinations[0]", | 2638 "description": "Whether the metric records instantaneous val
ues, changes to a value, etc.\nSome combinations of `metric_kind` and `value_typ
e` might not be supported.", |
2889 "type": "string" | |
2890 }, | |
2891 "advices": { | |
2892 "description": "Collection of advice provided for this chang
e, useful for determining the\npossible impact of this change.", | |
2893 "items": { | |
2894 "$ref": "Advice" | |
2895 }, | |
2896 "type": "array" | |
2897 }, | |
2898 "oldValue": { | |
2899 "description": "Value of the changed object in the old Servi
ce configuration,\nin JSON format. This field will not be populated if ChangeTyp
e == ADDED.", | |
2900 "type": "string" | |
2901 }, | |
2902 "newValue": { | |
2903 "description": "Value of the changed object in the new Servi
ce configuration,\nin JSON format. This field will not be populated if ChangeTyp
e == REMOVED.", | |
2904 "type": "string" | |
2905 } | |
2906 }, | |
2907 "type": "object" | |
2908 }, | |
2909 "SystemParameters": { | |
2910 "description": "### System parameter configuration\n\nA system param
eter is a special kind of parameter defined by the API\nsystem, not by an indivi
dual API. It is typically mapped to an HTTP header\nand/or a URL query parameter
. This configuration specifies which methods\nchange the names of the system par
ameters.", | |
2911 "id": "SystemParameters", | |
2912 "properties": { | |
2913 "rules": { | |
2914 "description": "Define system parameters.\n\nThe parameters
defined here will override the default parameters\nimplemented by the system. If
this field is missing from the service\nconfig, default system parameters will
be used. Default system parameters\nand names is implementation-dependent.\n\nEx
ample: define api key for all methods\n\n system_parameters\n rules:\n
- selector: \"*\"\n parameters:\n - name: api_key\n
url_query_parameter: api_key\n\n\nExample: define 2 api key names for
a specific method.\n\n system_parameters\n rules:\n - selector:
\"/ListShelves\"\n parameters:\n - name: api_key\n
http_header: Api-Key1\n - name: api_key\n http_heade
r: Api-Key2\n\n**NOTE:** All service configuration rules follow \"last one wins\
" order.", | |
2915 "items": { | |
2916 "$ref": "SystemParameterRule" | |
2917 }, | |
2918 "type": "array" | |
2919 } | |
2920 }, | |
2921 "type": "object" | |
2922 }, | |
2923 "Rollout": { | |
2924 "description": "A rollout resource that defines how service configur
ation versions are pushed\nto control plane systems. Typically, you create a new
version of the\nservice config, and then create a Rollout to push the service c
onfig.", | |
2925 "id": "Rollout", | |
2926 "properties": { | |
2927 "rolloutId": { | |
2928 "description": "Optional unique identifier of this Rollout.
Only lower case letters, digits\n and '-' are allowed.\n\nIf not specified by cl
ient, the server will generate one. The generated id\nwill have the form of <dat
e><revision number>, where \"date\" is the create\ndate in ISO 8601 format. \"r
evision number\" is a monotonically increasing\npositive number that is reset ev
ery day for each service.\nAn example of the generated rollout_id is '2016-02-16
r1'", | |
2929 "type": "string" | |
2930 }, | |
2931 "deleteServiceStrategy": { | |
2932 "$ref": "DeleteServiceStrategy", | |
2933 "description": "The strategy associated with a rollout to de
lete a `ManagedService`.\nReadonly." | |
2934 }, | |
2935 "createTime": { | |
2936 "description": "Creation time of the rollout. Readonly.", | |
2937 "format": "google-datetime", | |
2938 "type": "string" | |
2939 }, | |
2940 "status": { | |
2941 "description": "The status of this rollout. Readonly. In cas
e of a failed rollout,\nthe system will automatically rollback to the current Ro
llout\nversion. Readonly.", | |
2942 "enum": [ | 2639 "enum": [ |
2943 "ROLLOUT_STATUS_UNSPECIFIED", | 2640 "METRIC_KIND_UNSPECIFIED", |
2944 "IN_PROGRESS", | 2641 "GAUGE", |
2945 "SUCCESS", | 2642 "DELTA", |
2946 "CANCELLED", | 2643 "CUMULATIVE" |
2947 "FAILED", | |
2948 "PENDING", | |
2949 "FAILED_ROLLED_BACK" | |
2950 ], | 2644 ], |
2951 "enumDescriptions": [ | 2645 "enumDescriptions": [ |
2952 "No status specified.", | 2646 "Do not use this default value.", |
2953 "The Rollout is in progress.", | 2647 "An instantaneous measurement of a value.", |
2954 "The Rollout has completed successfully.", | 2648 "The change in a value during a time interval.", |
2955 "The Rollout has been cancelled. This can happen if you
have overlapping\nRollout pushes, and the previous ones will be cancelled.", | 2649 "A value accumulated over a time interval. Cumulative\n
measurements in a time series should have the same start time\nand increasing en
d times, until an event resets the cumulative\nvalue to zero and sets a new star
t time for the following\npoints." |
2956 "The Rollout has failed and the rollback attempt has fai
led too.", | |
2957 "The Rollout has not started yet and is pending for exec
ution.", | |
2958 "The Rollout has failed and rolled back to the previous
successful\nRollout." | |
2959 ], | 2650 ], |
2960 "type": "string" | 2651 "type": "string" |
2961 }, | 2652 }, |
2962 "serviceName": { | 2653 "displayName": { |
2963 "description": "The name of the service associated with this
Rollout.", | 2654 "description": "A concise name for the metric, which can be
displayed in user interfaces.\nUse sentence case without an ending period, for e
xample \"Request count\".", |
2964 "type": "string" | 2655 "type": "string" |
2965 }, | 2656 }, |
2966 "createdBy": { | 2657 "description": { |
2967 "description": "The user who created the Rollout. Readonly."
, | 2658 "description": "A detailed description of the metric, which
can be used in documentation.", |
2968 "type": "string" | 2659 "type": "string" |
2969 }, | 2660 }, |
2970 "trafficPercentStrategy": { | 2661 "unit": { |
2971 "$ref": "TrafficPercentStrategy", | 2662 "description": "The unit in which the metric value is report
ed. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIB
UTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMea
sure](http://unitsofmeasure.org/ucum.html) standard:\n\n**Basic units (UNIT)**\n
\n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` h
our\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M`
mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P
` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n
* `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**-
6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto (
10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yo
cto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi`
gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includ
es the dimensionless unit `1`, such as `1/s`.\n\nThe grammar also includes these
connectors:\n\n* `/` division (as an infix operator, e.g. `1/s`).\n* `.`
multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is
as follows:\n\n Expression = Component { \".\" Component } { \"/\" Component
} ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotati
on\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\"
;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n
equivalent to `1` if it is used alone. For examples,\n `{requests}/s == 1/s`
, `By{transmitted}/s == By/s`.\n* `NAME` is a sequence of non-blank printable AS
CII characters not\n containing '{' or '}'.", |
2972 "description": "Google Service Control selects service confi
gurations based on\ntraffic percentage." | 2663 "type": "string" |
2973 } | 2664 }, |
2974 }, | 2665 "labels": { |
2975 "type": "object" | 2666 "description": "The set of labels that can be used to descri
be a specific\ninstance of this metric type. For example, the\n`appengine.google
apis.com/http/server/response_latencies` metric\ntype has a label for the HTTP r
esponse code, `response_code`, so\nyou can look at latencies for successful resp
onses or just\nfor responses that failed.", |
2976 }, | 2667 "items": { |
2977 "Quota": { | 2668 "$ref": "LabelDescriptor" |
2978 "description": "Quota configuration helps to achieve fairness and bu
dgeting in service\nusage.\n\nThe quota configuration works this way:\n- The ser
vice configuration defines a set of metrics.\n- For API calls, the quota.metric_
rules maps methods to metrics with\n corresponding costs.\n- The quota.limits d
efines limits on the metrics, which will be used for\n quota checks at runtime.
\n\nAn example quota configuration in yaml format:\n\n quota:\n\n - name:
apiWriteQpsPerProject\n metric: library.googleapis.com/write_calls\n
unit: \"1/min/{project}\" # rate limit for consumer projects\n values:\n
STANDARD: 10000\n\n\n # The metric rules bind all methods to the re
ad_calls metric,\n # except for the UpdateBook and DeleteBook methods. These
two methods\n # are mapped to the write_calls metric, with the UpdateBook m
ethod\n # consuming at twice rate as the DeleteBook method.\n metric_rul
es:\n - selector: \"*\"\n metric_costs:\n library.googleapis.c
om/read_calls: 1\n - selector: google.example.library.v1.LibraryService.Upda
teBook\n metric_costs:\n library.googleapis.com/write_calls: 2\n
- selector: google.example.library.v1.LibraryService.DeleteBook\n metri
c_costs:\n library.googleapis.com/write_calls: 1\n\n Corresponding Metri
c definition:\n\n metrics:\n - name: library.googleapis.com/read_calls\n
display_name: Read requests\n metric_kind: DELTA\n value_type
: INT64\n\n - name: library.googleapis.com/write_calls\n display_name:
Write requests\n metric_kind: DELTA\n value_type: INT64", | 2669 }, |
2979 "id": "Quota", | 2670 "type": "array" |
2980 "properties": { | 2671 }, |
2981 "limits": { | 2672 "name": { |
2982 "description": "List of `QuotaLimit` definitions for the ser
vice.", | 2673 "description": "The resource name of the metric descriptor.
Depending on the\nimplementation, the name typically includes: (1) the parent re
source name\nthat defines the scope of the metric type or of its data; and (2) t
he\nmetric's URL-encoded type, which also appears in the `type` field of this\nd
escriptor. For example, following is the resource name of a custom\nmetric withi
n the GCP project `my-project-id`:\n\n \"projects/my-project-id/metricDescrip
tors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"", |
2983 "items": { | 2674 "type": "string" |
2984 "$ref": "QuotaLimit" | 2675 } |
2985 }, | 2676 }, |
2986 "type": "array" | 2677 "type": "object" |
2987 }, | 2678 }, |
2988 "metricRules": { | 2679 "Expr": { |
2989 "description": "List of `MetricRule` definitions, each one m
apping a selected method to one\nor more metrics.", | 2680 "description": "Represents an expression text. Example:\n\n title
: \"User account presence\"\n description: \"Determines whether the request h
as a user account\"\n expression: \"size(request.user) > 0\"", |
2990 "items": { | 2681 "id": "Expr", |
2991 "$ref": "MetricRule" | 2682 "properties": { |
2992 }, | 2683 "location": { |
2993 "type": "array" | 2684 "description": "An optional string indicating the location o
f the expression for error\nreporting, e.g. a file name and a position in the fi
le.", |
2994 } | 2685 "type": "string" |
2995 }, | 2686 }, |
2996 "type": "object" | 2687 "title": { |
2997 }, | 2688 "description": "An optional title for the expression, i.e. a
short string describing\nits purpose. This can be used e.g. in UIs which allow
to enter the\nexpression.", |
2998 "GenerateConfigReportRequest": { | 2689 "type": "string" |
2999 "description": "Request message for GenerateConfigReport method.", | 2690 }, |
3000 "id": "GenerateConfigReportRequest", | 2691 "description": { |
3001 "properties": { | 2692 "description": "An optional description of the expression. T
his is a longer text which\ndescribes the expression, e.g. when hovered over it
in a UI.", |
3002 "oldConfig": { | 2693 "type": "string" |
3003 "additionalProperties": { | 2694 }, |
3004 "description": "Properties of the object. Contains field
@type with type URL.", | 2695 "expression": { |
3005 "type": "any" | 2696 "description": "Textual representation of an expression in\n
Common Expression Language syntax.\n\nThe application context of the containing
message determines which\nwell-known feature set of CEL is supported.", |
3006 }, | 2697 "type": "string" |
3007 "description": "Service configuration against which the comp
arison will be done.\nFor this version of API, the supported types are\ngoogle.a
pi.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource
,\nand google.api.Service", | 2698 } |
3008 "type": "object" | 2699 }, |
3009 }, | 2700 "type": "object" |
3010 "newConfig": { | 2701 }, |
3011 "additionalProperties": { | 2702 "ListServicesResponse": { |
3012 "description": "Properties of the object. Contains field
@type with type URL.", | 2703 "description": "Response message for `ListServices` method.", |
3013 "type": "any" | 2704 "id": "ListServicesResponse", |
3014 }, | 2705 "properties": { |
3015 "description": "Service configuration for which we want to g
enerate the report.\nFor this version of API, the supported types are\ngoogle.ap
i.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource,
\nand google.api.Service", | 2706 "nextPageToken": { |
3016 "type": "object" | 2707 "description": "Token that can be passed to `ListServices` t
o resume a paginated query.", |
3017 } | 2708 "type": "string" |
3018 }, | 2709 }, |
3019 "type": "object" | 2710 "services": { |
3020 }, | 2711 "description": "The returned services will only have the nam
e field set.", |
3021 "SetIamPolicyRequest": { | 2712 "items": { |
3022 "description": "Request message for `SetIamPolicy` method.", | 2713 "$ref": "ManagedService" |
3023 "id": "SetIamPolicyRequest", | 2714 }, |
3024 "properties": { | 2715 "type": "array" |
3025 "updateMask": { | 2716 } |
3026 "description": "OPTIONAL: A FieldMask specifying which field
s of the policy to modify. Only\nthe fields in the mask will be modified. If no
mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\
"\nThis field is only used by Cloud IAM.", | 2717 }, |
3027 "format": "google-fieldmask", | 2718 "type": "object" |
3028 "type": "string" | 2719 }, |
3029 }, | 2720 "Endpoint": { |
3030 "policy": { | 2721 "description": "`Endpoint` describes a network endpoint that serves
a set of APIs.\nA service may expose any number of endpoints, and all endpoints
share the\nsame service configuration, such as quota configuration and monitorin
g\nconfiguration.\n\nExample service configuration:\n\n name: library-example
.googleapis.com\n endpoints:\n # Below entry makes 'google.example.libra
ry.v1.Library'\n # API be served from endpoint address library-example.goog
leapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backe
nd, for\n # it to decide whether the subsequent cross-origin request is\n
# allowed to proceed.\n - name: library-example.googleapis.com\n all
ow_cors: true", |
3031 "$ref": "Policy", | 2722 "id": "Endpoint", |
3032 "description": "REQUIRED: The complete policy to be applied
to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp
ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec
ts)\nmight reject them." | 2723 "properties": { |
3033 } | 2724 "features": { |
3034 }, | 2725 "description": "The list of features enabled on this endpoin
t.", |
3035 "type": "object" | 2726 "items": { |
3036 }, | 2727 "type": "string" |
3037 "Step": { | 2728 }, |
3038 "description": "Represents the status of one operation step.", | 2729 "type": "array" |
3039 "id": "Step", | 2730 }, |
3040 "properties": { | 2731 "apis": { |
3041 "status": { | 2732 "description": "The list of APIs served by this endpoint.\n\
nIf no APIs are specified this translates to \"all APIs\" exported by the\nservi
ce, as defined in the top-level service configuration.", |
3042 "description": "The status code.", | 2733 "items": { |
| 2734 "type": "string" |
| 2735 }, |
| 2736 "type": "array" |
| 2737 }, |
| 2738 "allowCors": { |
| 2739 "description": "Allowing\n[CORS](https://en.wikipedia.org/wi
ki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the ba
ckends served from this endpoint to\nreceive and respond to HTTP OPTIONS request
s. The response will be used by\nthe browser to determine whether the subsequent
cross-origin request is\nallowed to proceed.", |
| 2740 "type": "boolean" |
| 2741 }, |
| 2742 "aliases": { |
| 2743 "description": "DEPRECATED: This field is no longer supporte
d. Instead of using aliases,\nplease specify multiple google.api.Endpoint for ea
ch of the intented\nalias.\n\nAdditional names that this endpoint will be hosted
on.", |
| 2744 "items": { |
| 2745 "type": "string" |
| 2746 }, |
| 2747 "type": "array" |
| 2748 }, |
| 2749 "target": { |
| 2750 "description": "The specification of an Internet routable ad
dress of API frontend that will\nhandle requests to this [API Endpoint](https://
cloud.google.com/apis/design/glossary).\nIt should be either a valid IPv4 addres
s or a fully-qualified domain name.\nFor example, \"8.8.8.8\" or \"myservice.app
spot.com\".", |
| 2751 "type": "string" |
| 2752 }, |
| 2753 "name": { |
| 2754 "description": "The canonical name of this endpoint.", |
| 2755 "type": "string" |
| 2756 } |
| 2757 }, |
| 2758 "type": "object" |
| 2759 }, |
| 2760 "OAuthRequirements": { |
| 2761 "description": "OAuth scopes are a way to define data and permission
s on data. For example,\nthere are scopes defined for \"Read-only access to Goog
le Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope fo
r an application,\ngiving it permission to access that data on their behalf.\n\n
OAuth scope specifications should be fairly coarse grained; a user will need\nto
see and understand the text description of what your scope means.\n\nIn most ca
ses: use one or at most two OAuth scopes for an entire family of\nproducts. If y
our product has multiple APIs, you should probably be sharing\nthe OAuth scope a
cross all of those APIs.\n\nWhen you need finer grained OAuth consent screens: t
alk with your product\nmanagement about how developers will use them in practice
.\n\nPlease note that even though each of the canonical scopes is enough for a\n
request to be accepted and passed to the backend, a request can still fail\ndue
to the backend requiring additional scopes or permissions.", |
| 2762 "id": "OAuthRequirements", |
| 2763 "properties": { |
| 2764 "canonicalScopes": { |
| 2765 "description": "The list of publicly documented OAuth scopes
that are allowed access. An\nOAuth token containing any of these scopes will be
accepted.\n\nExample:\n\n canonical_scopes: https://www.googleapis.com/auth
/calendar,\n https://www.googleapis.com/auth/calendar.read
", |
| 2766 "type": "string" |
| 2767 } |
| 2768 }, |
| 2769 "type": "object" |
| 2770 }, |
| 2771 "GetIamPolicyRequest": { |
| 2772 "description": "Request message for `GetIamPolicy` method.", |
| 2773 "id": "GetIamPolicyRequest", |
| 2774 "properties": {}, |
| 2775 "type": "object" |
| 2776 }, |
| 2777 "TestIamPermissionsResponse": { |
| 2778 "description": "Response message for `TestIamPermissions` method.", |
| 2779 "id": "TestIamPermissionsResponse", |
| 2780 "properties": { |
| 2781 "permissions": { |
| 2782 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
| 2783 "items": { |
| 2784 "type": "string" |
| 2785 }, |
| 2786 "type": "array" |
| 2787 } |
| 2788 }, |
| 2789 "type": "object" |
| 2790 }, |
| 2791 "Usage": { |
| 2792 "description": "Configuration controlling usage of a service.", |
| 2793 "id": "Usage", |
| 2794 "properties": { |
| 2795 "producerNotificationChannel": { |
| 2796 "description": "The full resource name of a channel used for
sending notifications to the\nservice producer.\n\nGoogle Service Management cu
rrently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) a
s a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must
be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name fo
rmat\ndocumented in https://cloud.google.com/pubsub/docs/overview.", |
| 2797 "type": "string" |
| 2798 }, |
| 2799 "rules": { |
| 2800 "description": "A list of usage rules that apply to individu
al API methods.\n\n**NOTE:** All service configuration rules follow \"last one w
ins\" order.", |
| 2801 "items": { |
| 2802 "$ref": "UsageRule" |
| 2803 }, |
| 2804 "type": "array" |
| 2805 }, |
| 2806 "requirements": { |
| 2807 "description": "Requirements that must be satisfied before a
consumer project can use the\nservice. Each requirement is of the form <service
.name>/<requirement-id>;\nfor example 'serviceusage.googleapis.com/billing-enabl
ed'.", |
| 2808 "items": { |
| 2809 "type": "string" |
| 2810 }, |
| 2811 "type": "array" |
| 2812 } |
| 2813 }, |
| 2814 "type": "object" |
| 2815 }, |
| 2816 "Context": { |
| 2817 "description": "`Context` defines which contexts an API requests.\n\
nExample:\n\n context:\n rules:\n - selector: \"*\"\n reques
ted:\n - google.rpc.context.ProjectContext\n - google.rpc.context.
OriginContext\n\nThe above specifies that all methods in the API request\n`googl
e.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvaila
ble context types are defined in package\n`google.rpc.context`.", |
| 2818 "id": "Context", |
| 2819 "properties": { |
| 2820 "rules": { |
| 2821 "description": "A list of RPC context rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 2822 "items": { |
| 2823 "$ref": "ContextRule" |
| 2824 }, |
| 2825 "type": "array" |
| 2826 } |
| 2827 }, |
| 2828 "type": "object" |
| 2829 }, |
| 2830 "LogDescriptor": { |
| 2831 "description": "A description of a log type. Example in YAML format:
\n\n - name: library.googleapis.com/activity_history\n description: The
history of borrowing and returning library items.\n display_name: Activity\
n labels:\n - key: /customer_id\n description: Identifier of a
library customer", |
| 2832 "id": "LogDescriptor", |
| 2833 "properties": { |
| 2834 "labels": { |
| 2835 "description": "The set of labels that are available to desc
ribe a specific log entry.\nRuntime requests that contain labels not specified h
ere are\nconsidered invalid.", |
| 2836 "items": { |
| 2837 "$ref": "LabelDescriptor" |
| 2838 }, |
| 2839 "type": "array" |
| 2840 }, |
| 2841 "name": { |
| 2842 "description": "The name of the log. It must be less than 51
2 characters long and can\ninclude the following characters: upper- and lower-ca
se alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\ns
lash, underscore, hyphen, period [/_-.].", |
| 2843 "type": "string" |
| 2844 }, |
| 2845 "displayName": { |
| 2846 "description": "The human-readable name for this log. This i
nformation appears on\nthe user interface and should be concise.", |
| 2847 "type": "string" |
| 2848 }, |
| 2849 "description": { |
| 2850 "description": "A human-readable description of this log. Th
is information appears in\nthe documentation and can contain details.", |
| 2851 "type": "string" |
| 2852 } |
| 2853 }, |
| 2854 "type": "object" |
| 2855 }, |
| 2856 "ConfigFile": { |
| 2857 "description": "Generic specification of a source configuration file
", |
| 2858 "id": "ConfigFile", |
| 2859 "properties": { |
| 2860 "fileType": { |
| 2861 "description": "The type of configuration file this represen
ts.", |
3043 "enum": [ | 2862 "enum": [ |
3044 "STATUS_UNSPECIFIED", | 2863 "FILE_TYPE_UNSPECIFIED", |
3045 "DONE", | 2864 "SERVICE_CONFIG_YAML", |
3046 "NOT_STARTED", | 2865 "OPEN_API_JSON", |
3047 "IN_PROGRESS", | 2866 "OPEN_API_YAML", |
3048 "FAILED", | 2867 "FILE_DESCRIPTOR_SET_PROTO" |
3049 "CANCELLED" | |
3050 ], | 2868 ], |
3051 "enumDescriptions": [ | 2869 "enumDescriptions": [ |
3052 "Unspecifed code.", | 2870 "Unknown file type.", |
3053 "The operation or step has completed without errors.", | 2871 "YAML-specification of service.", |
3054 "The operation or step has not started yet.", | 2872 "OpenAPI specification, serialized in JSON.", |
3055 "The operation or step is in progress.", | 2873 "OpenAPI specification, serialized in YAML.", |
3056 "The operation or step has completed with errors. If the
operation is\nrollbackable, the rollback completed with errors too.", | 2874 "FileDescriptorSet, generated by protoc.\n\nTo generate,
use protoc with imports and source info included.\nFor an example test.proto fi
le, the following command would put the value\nin a new file named out.pb.\n\n$p
rotoc --include_imports --include_source_info test.proto -o out.pb" |
3057 "The operation or step has completed with cancellation." | |
3058 ], | 2875 ], |
3059 "type": "string" | 2876 "type": "string" |
3060 }, | 2877 }, |
| 2878 "fileContents": { |
| 2879 "description": "The bytes that constitute the file.", |
| 2880 "format": "byte", |
| 2881 "type": "string" |
| 2882 }, |
| 2883 "filePath": { |
| 2884 "description": "The file name of the configuration file (ful
l or relative path).", |
| 2885 "type": "string" |
| 2886 } |
| 2887 }, |
| 2888 "type": "object" |
| 2889 }, |
| 2890 "MonitoredResourceDescriptor": { |
| 2891 "description": "An object that describes the schema of a MonitoredRe
source object using a\ntype name and a set of labels. For example, the monitore
d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"
gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo
ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe
nt monitored resource types. APIs generally\nprovide a `list` method that return
s the monitored resource descriptors used\nby the API.", |
| 2892 "id": "MonitoredResourceDescriptor", |
| 2893 "properties": { |
| 2894 "name": { |
| 2895 "description": "Optional. The resource name of the monitored
resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty
pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje
ct_id} is a project ID that provides API-specific context for\naccessing the typ
e. APIs that do not use project information can use the\nresource name format `
\"monitoredResourceDescriptors/{type}\"`.", |
| 2896 "type": "string" |
| 2897 }, |
3061 "description": { | 2898 "description": { |
3062 "description": "The short description of the step.", | 2899 "description": "Optional. A detailed description of the moni
tored resource type that might\nbe used in documentation.", |
3063 "type": "string" | 2900 "type": "string" |
3064 } | 2901 }, |
3065 }, | 2902 "displayName": { |
3066 "type": "object" | 2903 "description": "Optional. A concise name for the monitored r
esource type that might be\ndisplayed in user interfaces. It should be a Title C
ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go
ogle Cloud SQL Database\"`.", |
3067 }, | 2904 "type": "string" |
3068 "DeleteServiceStrategy": { | 2905 }, |
3069 "description": "Strategy used to delete a service. This strategy is
a placeholder only\nused by the system generated rollout to delete a service.", | 2906 "type": { |
3070 "id": "DeleteServiceStrategy", | 2907 "description": "Required. The monitored resource type. For e
xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S
QL.\nThe maximum length of this value is 256 characters.", |
3071 "properties": {}, | 2908 "type": "string" |
3072 "type": "object" | 2909 }, |
3073 }, | 2910 "labels": { |
3074 "LoggingDestination": { | 2911 "description": "Required. A set of labels used to describe i
nstances of this monitored\nresource type. For example, an individual Google Clo
ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\
"zone\"`.", |
3075 "description": "Configuration of a specific logging destination (the
producer project\nor the consumer project).", | 2912 "items": { |
3076 "id": "LoggingDestination", | 2913 "$ref": "LabelDescriptor" |
3077 "properties": { | 2914 }, |
3078 "logs": { | 2915 "type": "array" |
3079 "description": "Names of the logs to be sent to this destina
tion. Each name must\nbe defined in the Service.logs section. If the log name is
\nnot a domain scoped name, it will be automatically prefixed with\nthe service
name followed by \"/\".", | 2916 } |
| 2917 }, |
| 2918 "type": "object" |
| 2919 }, |
| 2920 "CustomErrorRule": { |
| 2921 "description": "A custom error rule.", |
| 2922 "id": "CustomErrorRule", |
| 2923 "properties": { |
| 2924 "isErrorType": { |
| 2925 "description": "Mark this message as possible payload in err
or response. Otherwise,\nobjects of this type will be filtered when they appear
in error payload.", |
| 2926 "type": "boolean" |
| 2927 }, |
| 2928 "selector": { |
| 2929 "description": "Selects messages to which this rule applies.
\n\nRefer to selector for syntax details.", |
| 2930 "type": "string" |
| 2931 } |
| 2932 }, |
| 2933 "type": "object" |
| 2934 }, |
| 2935 "CustomAuthRequirements": { |
| 2936 "description": "Configuration for a custom authentication provider."
, |
| 2937 "id": "CustomAuthRequirements", |
| 2938 "properties": { |
| 2939 "provider": { |
| 2940 "description": "A configuration string containing connection
information for the\nauthentication provider, typically formatted as a SmartSer
vice string\n(go/smartservice).", |
| 2941 "type": "string" |
| 2942 } |
| 2943 }, |
| 2944 "type": "object" |
| 2945 }, |
| 2946 "MediaDownload": { |
| 2947 "description": "Defines the Media configuration for a service in cas
e of a download.\nUse this only for Scotty Requests. Do not use this for media s
upport using\nBytestream, add instead [][google.bytestream.RestByteStream] as an
API to\nyour configuration for Bytestream methods.", |
| 2948 "id": "MediaDownload", |
| 2949 "properties": { |
| 2950 "useDirectDownload": { |
| 2951 "description": "A boolean that determines if direct download
from ESF should be used for\ndownload of this media.", |
| 2952 "type": "boolean" |
| 2953 }, |
| 2954 "enabled": { |
| 2955 "description": "Whether download is enabled.", |
| 2956 "type": "boolean" |
| 2957 }, |
| 2958 "downloadService": { |
| 2959 "description": "DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS
WARNING IS REMOVED.\n\nSpecify name of the download service if one is used for
download.", |
| 2960 "type": "string" |
| 2961 }, |
| 2962 "completeNotification": { |
| 2963 "description": "A boolean that determines whether a notifica
tion for the completion of a\ndownload should be sent to the backend.", |
| 2964 "type": "boolean" |
| 2965 }, |
| 2966 "dropzone": { |
| 2967 "description": "Name of the Scotty dropzone to use for the c
urrent API.", |
| 2968 "type": "string" |
| 2969 }, |
| 2970 "maxDirectDownloadSize": { |
| 2971 "description": "Optional maximum acceptable size for direct
download.\nThe size is specified in bytes.", |
| 2972 "format": "int64", |
| 2973 "type": "string" |
| 2974 } |
| 2975 }, |
| 2976 "type": "object" |
| 2977 }, |
| 2978 "ChangeReport": { |
| 2979 "description": "Change report associated with a particular service c
onfiguration.\n\nIt contains a list of ConfigChanges based on the comparison bet
ween\ntwo service configurations.", |
| 2980 "id": "ChangeReport", |
| 2981 "properties": { |
| 2982 "configChanges": { |
| 2983 "description": "List of changes between two service configur
ations.\nThe changes will be alphabetically sorted based on the identifier\nof e
ach change.\nA ConfigChange identifier is a dot separated path to the configurat
ion.\nExample: visibility.rules[selector='LibraryService.CreateBook'].restrictio
n", |
| 2984 "items": { |
| 2985 "$ref": "ConfigChange" |
| 2986 }, |
| 2987 "type": "array" |
| 2988 } |
| 2989 }, |
| 2990 "type": "object" |
| 2991 }, |
| 2992 "DisableServiceRequest": { |
| 2993 "description": "Request message for DisableService method.", |
| 2994 "id": "DisableServiceRequest", |
| 2995 "properties": { |
| 2996 "consumerId": { |
| 2997 "description": "The identity of consumer resource which serv
ice disablement will be\napplied to.\n\nThe Google Service Management implementa
tion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is
made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", |
| 2998 "type": "string" |
| 2999 } |
| 3000 }, |
| 3001 "type": "object" |
| 3002 }, |
| 3003 "SubmitConfigSourceResponse": { |
| 3004 "description": "Response message for SubmitConfigSource method.", |
| 3005 "id": "SubmitConfigSourceResponse", |
| 3006 "properties": { |
| 3007 "serviceConfig": { |
| 3008 "$ref": "Service", |
| 3009 "description": "The generated service configuration." |
| 3010 } |
| 3011 }, |
| 3012 "type": "object" |
| 3013 }, |
| 3014 "MediaUpload": { |
| 3015 "description": "Defines the Media configuration for a service in cas
e of an upload.\nUse this only for Scotty Requests. Do not use this for media su
pport using\nBytestream, add instead [][google.bytestream.RestByteStream] as an
API to\nyour configuration for Bytestream methods.", |
| 3016 "id": "MediaUpload", |
| 3017 "properties": { |
| 3018 "mimeTypes": { |
| 3019 "description": "An array of mimetype patterns. Esf will only
accept uploads that match one\nof the given patterns.", |
3080 "items": { | 3020 "items": { |
3081 "type": "string" | 3021 "type": "string" |
3082 }, | 3022 }, |
3083 "type": "array" | 3023 "type": "array" |
3084 }, | 3024 }, |
3085 "monitoredResource": { | 3025 "maxSize": { |
3086 "description": "The monitored resource type. The type must b
e defined in the\nService.monitored_resources section.", | 3026 "description": "Optional maximum acceptable size for an uplo
ad.\nThe size is specified in bytes.", |
3087 "type": "string" | 3027 "format": "int64", |
3088 } | 3028 "type": "string" |
3089 }, | 3029 }, |
3090 "type": "object" | 3030 "completeNotification": { |
3091 }, | 3031 "description": "A boolean that determines whether a notifica
tion for the completion of an\nupload should be sent to the backend. These notif
ications will not be seen\nby the client and will not consume quota.", |
3092 "Option": { | 3032 "type": "boolean" |
3093 "description": "A protocol buffer option, which can be attached to a
message, field,\nenumeration, etc.", | 3033 }, |
3094 "id": "Option", | 3034 "progressNotification": { |
3095 "properties": { | 3035 "description": "Whether to receive a notification for progre
ss changes of media upload.", |
3096 "name": { | 3036 "type": "boolean" |
3097 "description": "The option's name. For protobuf built-in opt
ions (options defined in\ndescriptor.proto), this is the short name. For example
, `\"map_entry\"`.\nFor custom options, it should be the fully-qualified name. F
or example,\n`\"google.api.http\"`.", | 3037 }, |
3098 "type": "string" | 3038 "enabled": { |
3099 }, | 3039 "description": "Whether upload is enabled.", |
3100 "value": { | 3040 "type": "boolean" |
| 3041 }, |
| 3042 "dropzone": { |
| 3043 "description": "Name of the Scotty dropzone to use for the c
urrent API.", |
| 3044 "type": "string" |
| 3045 }, |
| 3046 "startNotification": { |
| 3047 "description": "Whether to receive a notification on the sta
rt of media upload.", |
| 3048 "type": "boolean" |
| 3049 }, |
| 3050 "uploadService": { |
| 3051 "description": "DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS
WARNING IS REMOVED.\n\nSpecify name of the upload service if one is used for up
load.", |
| 3052 "type": "string" |
| 3053 } |
| 3054 }, |
| 3055 "type": "object" |
| 3056 }, |
| 3057 "Advice": { |
| 3058 "description": "Generated advice about this change, used for providi
ng more\ninformation about how a change will affect the existing service.", |
| 3059 "id": "Advice", |
| 3060 "properties": { |
| 3061 "description": { |
| 3062 "description": "Useful description for why this advice was a
pplied and what actions should\nbe taken to mitigate any implied risks.", |
| 3063 "type": "string" |
| 3064 } |
| 3065 }, |
| 3066 "type": "object" |
| 3067 }, |
| 3068 "ManagedService": { |
| 3069 "description": "The full representation of a Service that is managed
by\nGoogle Service Management.", |
| 3070 "id": "ManagedService", |
| 3071 "properties": { |
| 3072 "serviceName": { |
| 3073 "description": "The name of the service. See the [overview](
/service-management/overview)\nfor naming requirements.", |
| 3074 "type": "string" |
| 3075 }, |
| 3076 "producerProjectId": { |
| 3077 "description": "ID of the project that produces and owns thi
s service.", |
| 3078 "type": "string" |
| 3079 } |
| 3080 }, |
| 3081 "type": "object" |
| 3082 }, |
| 3083 "UsageRule": { |
| 3084 "description": "Usage configuration rules for the service.\n\nNOTE:
Under development.\n\n\nUse this rule to configure unregistered calls for the se
rvice. Unregistered\ncalls are calls that do not contain consumer project identi
ty.\n(Example: calls that do not contain an API key).\nBy default, API methods d
o not allow unregistered calls, and each method call\nmust be identified by a co
nsumer project identity. Use this rule to\nallow/disallow unregistered calls.\n\
nExample of an API that wants to allow unregistered calls for entire service.\n\
n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_c
alls: true\n\nExample of a method that wants to allow unregistered calls.\n\n
usage:\n rules:\n - selector: \"google.example.library.v1.LibraryServ
ice.CreateBook\"\n allow_unregistered_calls: true", |
| 3085 "id": "UsageRule", |
| 3086 "properties": { |
| 3087 "selector": { |
| 3088 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", |
| 3089 "type": "string" |
| 3090 }, |
| 3091 "skipServiceControl": { |
| 3092 "description": "True, if the method should skip service cont
rol. If so, no control plane\nfeature (like quota and billing) will be enabled."
, |
| 3093 "type": "boolean" |
| 3094 }, |
| 3095 "allowUnregisteredCalls": { |
| 3096 "description": "True, if the method allows unregistered call
s; false otherwise.", |
| 3097 "type": "boolean" |
| 3098 } |
| 3099 }, |
| 3100 "type": "object" |
| 3101 }, |
| 3102 "TrafficPercentStrategy": { |
| 3103 "description": "Strategy that specifies how clients of Google Servic
e Controller want to\nsend traffic to use different config versions. This is gen
erally\nused by API proxy to split traffic based on your configured precentage f
or\neach config version.\n\nOne example of how to gradually rollout a new servic
e configuration using\nthis\nstrategy:\nDay 1\n\n Rollout {\n id: \"exam
ple.googleapis.com/rollout_20160206\"\n traffic_percent_strategy {\n
percentages: {\n \"example.googleapis.com/20160201\": 70.00\n
\"example.googleapis.com/20160206\": 30.00\n }\n }\n }\n\nDay 2\
n\n Rollout {\n id: \"example.googleapis.com/rollout_20160207\"\n t
raffic_percent_strategy: {\n percentages: {\n \"example.googleap
is.com/20160206\": 100.00\n }\n }\n }", |
| 3104 "id": "TrafficPercentStrategy", |
| 3105 "properties": { |
| 3106 "percentages": { |
3101 "additionalProperties": { | 3107 "additionalProperties": { |
3102 "description": "Properties of the object. Contains field
@type with type URL.", | 3108 "format": "double", |
3103 "type": "any" | 3109 "type": "number" |
3104 }, | 3110 }, |
3105 "description": "The option's value packed in an Any message.
If the value is a primitive,\nthe corresponding wrapper type defined in google/
protobuf/wrappers.proto\nshould be used. If the value is an enum, it should be s
tored as an int32\nvalue using the google.protobuf.Int32Value type.", | 3111 "description": "Maps service configuration IDs to their corr
esponding traffic percentage.\nKey is the service configuration ID, Value is the
traffic percentage\nwhich must be greater than 0.0 and the sum must equal to 10
0.0.", |
3106 "type": "object" | 3112 "type": "object" |
3107 } | 3113 } |
3108 }, | 3114 }, |
3109 "type": "object" | 3115 "type": "object" |
3110 }, | 3116 }, |
3111 "Logging": { | 3117 "AuthRequirement": { |
3112 "description": "Logging configuration of the service.\n\nThe followi
ng example shows how to configure logs to be sent to the\nproducer and consumer
projects. In the example, the `activity_history`\nlog is sent to both the produc
er and consumer projects, whereas the\n`purchase_history` log is only sent to th
e producer project.\n\n monitored_resources:\n - type: library.googleapis.
com/branch\n labels:\n - key: /city\n description: The city whe
re the library branch is located in.\n - key: /name\n description: T
he name of the branch.\n logs:\n - name: activity_history\n labels:\n
- key: /customer_id\n - name: purchase_history\n logging:\n pro
ducer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history\n - purchase_history\n con
sumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history", | 3118 "description": "User-defined authentication requirements, including
support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth
-json-web-token-32).", |
3113 "id": "Logging", | 3119 "id": "AuthRequirement", |
3114 "properties": { | 3120 "properties": { |
3115 "consumerDestinations": { | 3121 "audiences": { |
3116 "description": "Logging configurations for sending logs to t
he consumer project.\nThere can be multiple consumer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none co
nsumer destination.", | 3122 "description": "NOTE: This will be deprecated soon, once Aut
hProvider.audiences is\nimplemented and accepted in all the runtime components.\
n\nThe list of JWT\n[audiences](https://tools.ietf.org/html/draft-ietf-oauth-jso
n-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any
of these audiences will\nbe accepted. When this setting is absent, only JWTs wi
th audience\n\"https://Service_name/API_name\"\nwill be accepted. For example, i
f no audiences are in the setting,\nLibraryService API will only accept JWTs wit
h the following audience\n\"https://library-example.googleapis.com/google.exampl
e.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.a
pps.googleusercontent.com,\n bookstore_web.apps.googleusercontent.
com", |
3117 "items": { | 3123 "type": "string" |
3118 "$ref": "LoggingDestination" | 3124 }, |
3119 }, | 3125 "providerId": { |
3120 "type": "array" | 3126 "description": "id from authentication provider.\n\nExample:
\n\n provider_id: bookstore_auth", |
3121 }, | 3127 "type": "string" |
3122 "producerDestinations": { | 3128 } |
3123 "description": "Logging configurations for sending logs to t
he producer project.\nThere can be multiple producer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none pr
oducer destination.", | 3129 }, |
3124 "items": { | 3130 "type": "object" |
3125 "$ref": "LoggingDestination" | 3131 }, |
3126 }, | 3132 "Documentation": { |
3127 "type": "array" | 3133 "description": "`Documentation` provides the information for describ
ing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Goo
gle Calendar API gives access\n to most calendar features.\n pages:\n - nam
e: Overview\n content: (== include google/foo/overview.md ==)\n - na
me: Tutorial\n content: (== include google/foo/tutorial.md ==)\n s
ubpages;\n - name: Java\n content: (== include google/foo/tutorial_j
ava.md ==)\n rules:\n - selector: google.calendar.Calendar.Get\n descri
ption: >\n ...\n - selector: google.calendar.Calendar.Put\n description
: >\n ...\n</code></pre>\nDocumentation is provided in markdown syntax. In
addition to\nstandard markdown features, definition lists, tables and fenced\nco
de blocks are supported. Section headers can be provided and are\ninterpreted re
lative to the section nesting of the context where\na documentation fragment is
embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvi
a the config at normalization time, where documentation provided\nby config rule
s overrides IDL provided.\n\nA number of constructs specific to the API platform
are supported\nin documentation text.\n\nIn order to reference a proto element,
the following\nnotation can be used:\n<pre><code>[fully.qualified.proto.nam
e][]</code></pre>\nTo override the display text used for the link, this can
be used:\n<pre><code>[display text][fully.qualified.proto.name]</code></
pre>\nText can be excluded from doc using the following notation:\n<pre><code>&#
40;-- internal comment --)</code></pre>\nComments can be made conditional us
ing a visibility label. The below\ntext will be only rendered if the `BETA` labe
l is available:\n<pre><code>(--BETA: comment for BETA users --)</code></
pre>\nA few directives are available in documentation. Note that\ndirectives mus
t appear on a single line to be properly\nidentified. The `include` directive in
cludes a markdown file from\nan external source:\n<pre><code>(== include pat
h/to/file ==)</code></pre>\nThe `resource_for` directive marks a message to
be the resource of\na collection in REST view. If it is not specified, tools att
empt\nto infer the resource from the operations in a collection:\n<pre><code>
0;== resource_for v1.shelves.books ==)</code></pre>\nThe directive `suppress
_warning` does not directly affect documentation\nand is documented together wit
h service config validation.", |
3128 } | 3134 "id": "Documentation", |
3129 }, | 3135 "properties": { |
3130 "type": "object" | 3136 "summary": { |
3131 }, | 3137 "description": "A short summary of what the service does. Ca
n only be provided by\nplain text.", |
3132 "QuotaLimit": { | 3138 "type": "string" |
3133 "description": "`QuotaLimit` defines a specific limit that applies o
ver a specified duration\nfor a limit type. There can be at most one limit for a
duration and limit\ntype combination defined within a `QuotaGroup`.", | 3139 }, |
3134 "id": "QuotaLimit", | 3140 "documentationRootUrl": { |
3135 "properties": { | 3141 "description": "The URL to the root of documentation.", |
3136 "freeTier": { | 3142 "type": "string" |
3137 "description": "Free tier value displayed in the Developers
Console for this limit.\nThe free tier is the number of tokens that will be subt
racted from the\nbilled amount when billing is enabled.\nThis field can only be
set on a limit with duration \"1d\", in a billable\ngroup; it is invalid on any
other limit. If this field is not set, it\ndefaults to 0, indicating that there
is no free tier for this service.\n\nUsed by group-based quotas only.", | 3143 }, |
3138 "format": "int64", | 3144 "overview": { |
3139 "type": "string" | 3145 "description": "Declares a single overview page. For example
:\n<pre><code>documentation:\n summary: ...\n overview: (== include overvi
ew.md ==)\n</code></pre>\nThis is a shortcut for the following declaration (
using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - na
me: Overview\n content: (== include overview.md ==)\n</code></pre>\nN
ote: you cannot specify both `overview` field and `pages` field.", |
3140 }, | 3146 "type": "string" |
3141 "duration": { | |
3142 "description": "Duration of this limit in textual notation.
Example: \"100s\", \"24h\", \"1d\".\nFor duration longer than a day, only multip
le of days is supported. We\nsupport only \"100s\" and \"1d\" for now. Additiona
l support will be added in\nthe future. \"0\" indicates indefinite duration.\n\n
Used by group-based quotas only.", | |
3143 "type": "string" | |
3144 }, | |
3145 "defaultLimit": { | |
3146 "description": "Default number of tokens that can be consume
d during the specified\nduration. This is the number of tokens assigned when a c
lient\napplication developer activates the service for his/her project.\n\nSpeci
fying a value of 0 will block all requests. This can be used if you\nare provisi
oning quota to selected consumers and blocking others.\nSimilarly, a value of -1
will indicate an unlimited quota. No other\nnegative values are allowed.\n\nUse
d by group-based quotas only.", | |
3147 "format": "int64", | |
3148 "type": "string" | |
3149 }, | |
3150 "description": { | |
3151 "description": "Optional. User-visible, extended description
for this quota limit.\nShould be used only when more context is needed to under
stand this limit\nthan provided by the limit's display name (see: `display_name`
).", | |
3152 "type": "string" | |
3153 }, | |
3154 "metric": { | |
3155 "description": "The name of the metric this quota limit appl
ies to. The quota limits with\nthe same metric will be checked together during r
untime. The metric must be\ndefined within the service config.\n\nUsed by metric
-based quotas only.", | |
3156 "type": "string" | |
3157 }, | |
3158 "displayName": { | |
3159 "description": "User-visible display name for this limit.\nO
ptional. If not set, the UI will provide a default display name based on\nthe qu
ota configuration. This field can be used to override the default\ndisplay name
generated from the configuration.", | |
3160 "type": "string" | |
3161 }, | |
3162 "values": { | |
3163 "additionalProperties": { | |
3164 "format": "int64", | |
3165 "type": "string" | |
3166 }, | |
3167 "description": "Tiered limit values, currently only STANDARD
is supported.", | |
3168 "type": "object" | |
3169 }, | |
3170 "unit": { | |
3171 "description": "Specify the unit of the quota limit. It uses
the same syntax as\nMetric.unit. The supported unit kinds are determined by the
quota\nbackend system.\n\nThe [Google Service Control](https://cloud.google.com
/service-control)\nsupports the following unit components:\n* One of the time in
tevals:\n * \"/min\" for quota every minute.\n * \"/d\" for quota every 24 h
ours, starting 00:00 US Pacific Time.\n * Otherwise the quota won't be reset by
time, such as storage limit.\n* One and only one of the granted containers:\n
* \"/{project}\" quota for a project\n\nHere are some examples:\n* \"1/min/{proj
ect}\" for quota per minute per project.\n\nNote: the order of unit components i
s insignificant.\nThe \"1\" at the beginning is required to follow the metric un
it syntax.\n\nUsed by metric-based quotas only.", | |
3172 "type": "string" | |
3173 }, | |
3174 "maxLimit": { | |
3175 "description": "Maximum number of tokens that can be consume
d during the specified\nduration. Client application developers can override the
default limit up\nto this maximum. If specified, this value cannot be set to a
value less\nthan the default limit. If not specified, it is set to the default l
imit.\n\nTo allow clients to apply overrides with no upper bound, set this to -1
,\nindicating unlimited maximum quota.\n\nUsed by group-based quotas only.", | |
3176 "format": "int64", | |
3177 "type": "string" | |
3178 }, | |
3179 "name": { | |
3180 "description": "Name of the quota limit. The name is used to
refer to the limit when\noverriding the default limit on per-consumer basis.\n\
nFor metric-based quota limits, the name must be provided, and it must be\nuniqu
e within the service. The name can only include alphanumeric\ncharacters as well
as '-'.\n\nThe maximum length of the limit name is 64 characters.\n\nThe name o
f a limit is used as a unique identifier for this limit.\nTherefore, once a limi
t has been put into use, its name should be\nimmutable. You can use the display_
name field to provide a user-friendly\nname for the limit. The display name can
be evolved over time without\naffecting the identity of the limit.", | |
3181 "type": "string" | |
3182 } | |
3183 }, | |
3184 "type": "object" | |
3185 }, | |
3186 "Method": { | |
3187 "description": "Method represents a method of an API interface.", | |
3188 "id": "Method", | |
3189 "properties": { | |
3190 "responseStreaming": { | |
3191 "description": "If true, the response is streamed.", | |
3192 "type": "boolean" | |
3193 }, | |
3194 "name": { | |
3195 "description": "The simple name of this method.", | |
3196 "type": "string" | |
3197 }, | |
3198 "requestTypeUrl": { | |
3199 "description": "A URL of the input message type.", | |
3200 "type": "string" | |
3201 }, | |
3202 "requestStreaming": { | |
3203 "description": "If true, the request is streamed.", | |
3204 "type": "boolean" | |
3205 }, | |
3206 "syntax": { | |
3207 "description": "The source syntax of this method.", | |
3208 "enum": [ | |
3209 "SYNTAX_PROTO2", | |
3210 "SYNTAX_PROTO3" | |
3211 ], | |
3212 "enumDescriptions": [ | |
3213 "Syntax `proto2`.", | |
3214 "Syntax `proto3`." | |
3215 ], | |
3216 "type": "string" | |
3217 }, | |
3218 "responseTypeUrl": { | |
3219 "description": "The URL of the output message type.", | |
3220 "type": "string" | |
3221 }, | |
3222 "options": { | |
3223 "description": "Any metadata attached to the method.", | |
3224 "items": { | |
3225 "$ref": "Option" | |
3226 }, | |
3227 "type": "array" | |
3228 } | |
3229 }, | |
3230 "type": "object" | |
3231 }, | |
3232 "ListServiceRolloutsResponse": { | |
3233 "description": "Response message for ListServiceRollouts method.", | |
3234 "id": "ListServiceRolloutsResponse", | |
3235 "properties": { | |
3236 "nextPageToken": { | |
3237 "description": "The token of the next page of results.", | |
3238 "type": "string" | |
3239 }, | |
3240 "rollouts": { | |
3241 "description": "The list of rollout resources.", | |
3242 "items": { | |
3243 "$ref": "Rollout" | |
3244 }, | |
3245 "type": "array" | |
3246 } | |
3247 }, | |
3248 "type": "object" | |
3249 }, | |
3250 "ConfigRef": { | |
3251 "description": "Represents a service configuration with its name and
id.", | |
3252 "id": "ConfigRef", | |
3253 "properties": { | |
3254 "name": { | |
3255 "description": "Resource name of a service config. It must h
ave the following\nformat: \"services/{service name}/configs/{config id}\".", | |
3256 "type": "string" | |
3257 } | |
3258 }, | |
3259 "type": "object" | |
3260 }, | |
3261 "Mixin": { | |
3262 "description": "Declares an API Interface to be included in this int
erface. The including\ninterface must redeclare all the methods from the include
d interface, but\ndocumentation and options are inherited as follows:\n\n- If af
ter comment and whitespace stripping, the documentation\n string of the redecla
red method is empty, it will be inherited\n from the original method.\n\n- Each
annotation belonging to the service config (http,\n visibility) which is not s
et in the redeclared method will be\n inherited.\n\n- If an http annotation is
inherited, the path pattern will be\n modified as follows. Any version prefix w
ill be replaced by the\n version of the including interface plus the root path
if\n specified.\n\nExample of a simple mixin:\n\n package google.acl.v1;\n
service AccessControl {\n // Get the underlying ACL object.\n rpc Ge
tAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v
1/{resource=**}:getAcl\";\n }\n }\n\n package google.storage.v2;\n
service Storage {\n // rpc GetAcl(GetAclRequest) returns (Acl);\n\n
// Get a data record.\n rpc GetData(GetDataRequest) returns (Data) {\n
option (google.api.http).get = \"/v2/{resource=**}\";\n }\n }\n\
nExample of a mixin configuration:\n\n apis:\n - name: google.storage.v2.S
torage\n mixins:\n - name: google.acl.v1.AccessControl\n\nThe mixin co
nstruct implies that all methods in `AccessControl` are\nalso declared with same
name and request/response types in\n`Storage`. A documentation generator or ann
otation processor will\nsee the effective `Storage.GetAcl` method after inhertin
g\ndocumentation and annotations as follows:\n\n service Storage {\n //
Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\
n option (google.api.http).get = \"/v2/{resource=**}:getAcl\";\n }\n
...\n }\n\nNote how the version in the path pattern changed from `v1` t
o `v2`.\n\nIf the `root` field in the mixin is specified, it should be a\nrelati
ve path under which inherited HTTP paths are placed. Example:\n\n apis:\n
- name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.Ac
cessControl\n root: acls\n\nThis implies the following inherited HTTP ann
otation:\n\n service Storage {\n // Get the underlying ACL object.\n
rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).ge
t = \"/v2/acls/{resource=**}:getAcl\";\n }\n ...\n }", | |
3263 "id": "Mixin", | |
3264 "properties": { | |
3265 "root": { | |
3266 "description": "If non-empty specifies a path under which in
herited HTTP paths\nare rooted.", | |
3267 "type": "string" | |
3268 }, | |
3269 "name": { | |
3270 "description": "The fully qualified name of the interface wh
ich is included.", | |
3271 "type": "string" | |
3272 } | |
3273 }, | |
3274 "type": "object" | |
3275 }, | |
3276 "FlowOperationMetadata": { | |
3277 "description": "The metadata associated with a long running operatio
n resource.", | |
3278 "id": "FlowOperationMetadata", | |
3279 "properties": { | |
3280 "deadline": { | |
3281 "description": "Deadline for the flow to complete, to preven
t orphaned Operations.\n\nIf the flow has not completed by this time, it may be
terminated by\nthe engine, or force-failed by Operation lookup.\n\nNote that thi
s is not a hard deadline after which the Flow will\ndefinitely be failed, rather
it is a deadline after which it is reasonable\nto suspect a problem and other p
arts of the system may kill operation\nto ensure we don't have orphans.\nsee als
o: go/prevent-orphaned-operations", | |
3282 "format": "google-datetime", | |
3283 "type": "string" | |
3284 }, | |
3285 "cancelState": { | |
3286 "description": "The state of the operation with respect to c
ancellation.", | |
3287 "enum": [ | |
3288 "RUNNING", | |
3289 "UNCANCELLABLE", | |
3290 "CANCELLED" | |
3291 ], | |
3292 "enumDescriptions": [ | |
3293 "Default state, cancellable but not cancelled.", | |
3294 "The operation has proceeded past the point of no return
and cannot\nbe cancelled.", | |
3295 "The operation has been cancelled, work should cease\nan
d any needed rollback steps executed." | |
3296 ], | |
3297 "type": "string" | |
3298 }, | |
3299 "startTime": { | |
3300 "description": "The start time of the operation.", | |
3301 "format": "google-datetime", | |
3302 "type": "string" | |
3303 }, | |
3304 "resourceNames": { | |
3305 "description": "The full name of the resources that this flo
w is directly associated with.", | |
3306 "items": { | |
3307 "type": "string" | |
3308 }, | |
3309 "type": "array" | |
3310 }, | |
3311 "flowName": { | |
3312 "description": "The name of the top-level flow corresponding
to this operation.\nMust be equal to the \"name\" field for a FlowName enum.", | |
3313 "type": "string" | |
3314 } | |
3315 }, | |
3316 "type": "object" | |
3317 }, | |
3318 "CustomError": { | |
3319 "description": "Customize service error responses. For example, lis
t any service\nspecific protobuf types that can appear in error detail lists of\
nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google
.foo.v1.CustomError\n - google.foo.v1.AnotherError", | |
3320 "id": "CustomError", | |
3321 "properties": { | |
3322 "types": { | |
3323 "description": "The list of custom error detail types, e.g.
'google.foo.v1.CustomError'.", | |
3324 "items": { | |
3325 "type": "string" | |
3326 }, | |
3327 "type": "array" | |
3328 }, | 3147 }, |
3329 "rules": { | 3148 "rules": { |
3330 "description": "The list of custom error rules that apply to
individual API messages.\n\n**NOTE:** All service configuration rules follow \"
last one wins\" order.", | 3149 "description": "A list of documentation rules that apply to
individual API elements.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", |
3331 "items": { | 3150 "items": { |
3332 "$ref": "CustomErrorRule" | 3151 "$ref": "DocumentationRule" |
3333 }, | 3152 }, |
3334 "type": "array" | 3153 "type": "array" |
3335 } | 3154 }, |
3336 }, | 3155 "pages": { |
3337 "type": "object" | 3156 "description": "The top level pages for the documentation se
t.", |
3338 }, | 3157 "items": { |
3339 "CounterOptions": { | 3158 "$ref": "Page" |
3340 "description": "Increment a streamz counter with the specified metri
c and field names.\n\nMetric names should start with a '/', generally be lowerca
se-only,\nand end in \"_count\". Field names should not contain an initial slash
.\nThe actual exported metric names will have \"/iam/policy\" prepended.\n\nFiel
d names correspond to IAM request parameters and field values are\ntheir respect
ive values.\n\nAt present the only supported field names are\n - \"iam_princip
al\", corresponding to IAMContext.principal;\n - \"\" (empty string), resultin
g in one aggretated counter with no field.\n\nExamples:\n counter { metric: \"/
debug_access_count\" field: \"iam_principal\" }\n ==> increment counter /iam/p
olicy/backend_debug_access_count\n {iam_principal=[value
of IAMContext.principal]}\n\nAt this time we do not support:\n* multiple field n
ames (though this may be supported in the future)\n* decrementing the counter\n*
incrementing it by anything other than 1", | 3159 }, |
3341 "id": "CounterOptions", | 3160 "type": "array" |
3342 "properties": { | 3161 } |
3343 "field": { | |
3344 "description": "The field value to attribute.", | |
3345 "type": "string" | |
3346 }, | |
3347 "metric": { | |
3348 "description": "The metric to update.", | |
3349 "type": "string" | |
3350 } | |
3351 }, | |
3352 "type": "object" | |
3353 }, | |
3354 "Http": { | |
3355 "description": "Defines the HTTP configuration for an API service. I
t contains a list of\nHttpRule, each specifying the mapping of an RPC method\nto
one or more HTTP REST API methods.", | |
3356 "id": "Http", | |
3357 "properties": { | |
3358 "fullyDecodeReservedExpansion": { | |
3359 "description": "When set to true, URL path parmeters will be
fully URI-decoded except in\ncases of single segment matches in reserved expans
ion, where \"%2F\" will be\nleft encoded.\n\nThe default behavior is to not deco
de RFC 6570 reserved characters in multi\nsegment matches.", | |
3360 "type": "boolean" | |
3361 }, | |
3362 "rules": { | |
3363 "description": "A list of HTTP configuration rules that appl
y to individual API methods.\n\n**NOTE:** All service configuration rules follow
\"last one wins\" order.", | |
3364 "items": { | |
3365 "$ref": "HttpRule" | |
3366 }, | |
3367 "type": "array" | |
3368 } | |
3369 }, | |
3370 "type": "object" | |
3371 }, | |
3372 "SourceInfo": { | |
3373 "description": "Source information used to create a Service Config", | |
3374 "id": "SourceInfo", | |
3375 "properties": { | |
3376 "sourceFiles": { | |
3377 "description": "All files used during config generation.", | |
3378 "items": { | |
3379 "additionalProperties": { | |
3380 "description": "Properties of the object. Contains f
ield @type with type URL.", | |
3381 "type": "any" | |
3382 }, | |
3383 "type": "object" | |
3384 }, | |
3385 "type": "array" | |
3386 } | |
3387 }, | 3162 }, |
3388 "type": "object" | 3163 "type": "object" |
3389 } | 3164 } |
3390 }, | 3165 }, |
3391 "servicePath": "", | 3166 "servicePath": "", |
3392 "title": "Google Service Management API", | 3167 "title": "Google Service Management API", |
3393 "version": "v1" | 3168 "version": "v1" |
3394 } | 3169 } |
OLD | NEW |