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

Side by Side Diff: discovery/googleapis_beta/autoscaler__v1beta2.json

Issue 559053002: Generate 0.1.0 version of googleapis/googleapis_beta (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/compute": {
6 "description": "View and manage your Google Compute Engine r esources"
7 },
8 "https://www.googleapis.com/auth/compute.readonly": {
9 "description": "View your Google Compute Engine resources"
10 }
11 }
12 }
13 },
14 "basePath": "/autoscaler/v1beta2/",
15 "baseUrl": "https://www.googleapis.com/autoscaler/v1beta2/",
16 "batchPath": "batch",
17 "description": "The Google Compute Engine Autoscaler API provides autoscalin g for groups of Cloud VMs.",
18 "discoveryVersion": "v1",
19 "documentationLink": "http://developers.google.com/compute/docs/autoscaler",
20 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/aqfSeC1jGN1VtOnSnFM7d_GgZoI\"",
21 "icons": {
22 "x16": "http://www.google.com/images/icons/product/search-16.gif",
23 "x32": "http://www.google.com/images/icons/product/search-32.gif"
24 },
25 "id": "autoscaler:v1beta2",
26 "kind": "discovery#restDescription",
27 "labels": [
28 "limited_availability"
29 ],
30 "name": "autoscaler",
31 "ownerDomain": "google.com",
32 "ownerName": "Google",
33 "parameters": {
34 "alt": {
35 "default": "json",
36 "description": "Data format for the response.",
37 "enum": [
38 "json"
39 ],
40 "enumDescriptions": [
41 "Responses with Content-Type of application/json"
42 ],
43 "location": "query",
44 "type": "string"
45 },
46 "fields": {
47 "description": "Selector specifying which fields to include in a par tial response.",
48 "location": "query",
49 "type": "string"
50 },
51 "key": {
52 "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.",
53 "location": "query",
54 "type": "string"
55 },
56 "oauth_token": {
57 "description": "OAuth 2.0 token for the current user.",
58 "location": "query",
59 "type": "string"
60 },
61 "prettyPrint": {
62 "default": "true",
63 "description": "Returns response with indentations and line breaks." ,
64 "location": "query",
65 "type": "boolean"
66 },
67 "quotaUser": {
68 "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. Overrides userIp if both are provided.",
69 "location": "query",
70 "type": "string"
71 },
72 "userIp": {
73 "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
74 "location": "query",
75 "type": "string"
76 }
77 },
78 "protocol": "rest",
79 "resources": {
80 "autoscalers": {
81 "methods": {
82 "delete": {
83 "description": "Deletes the specified Autoscaler resource.",
84 "httpMethod": "DELETE",
85 "id": "autoscaler.autoscalers.delete",
86 "parameterOrder": [
87 "project",
88 "zone",
89 "autoscaler"
90 ],
91 "parameters": {
92 "autoscaler": {
93 "description": "Name of the Autoscaler resource.",
94 "location": "path",
95 "required": true,
96 "type": "string"
97 },
98 "project": {
99 "description": "Project ID of Autoscaler resource.",
100 "location": "path",
101 "required": true,
102 "type": "string"
103 },
104 "zone": {
105 "description": "Zone name of Autoscaler resource.",
106 "location": "path",
107 "required": true,
108 "type": "string"
109 }
110 },
111 "path": "projects/{project}/zones/{zone}/autoscalers/{autosc aler}",
112 "response": {
113 "$ref": "Operation"
114 },
115 "scopes": [
116 "https://www.googleapis.com/auth/compute"
117 ]
118 },
119 "get": {
120 "description": "Gets the specified Autoscaler resource.",
121 "httpMethod": "GET",
122 "id": "autoscaler.autoscalers.get",
123 "parameterOrder": [
124 "project",
125 "zone",
126 "autoscaler"
127 ],
128 "parameters": {
129 "autoscaler": {
130 "description": "Name of the Autoscaler resource.",
131 "location": "path",
132 "required": true,
133 "type": "string"
134 },
135 "project": {
136 "description": "Project ID of Autoscaler resource.",
137 "location": "path",
138 "required": true,
139 "type": "string"
140 },
141 "zone": {
142 "description": "Zone name of Autoscaler resource.",
143 "location": "path",
144 "required": true,
145 "type": "string"
146 }
147 },
148 "path": "projects/{project}/zones/{zone}/autoscalers/{autosc aler}",
149 "response": {
150 "$ref": "Autoscaler"
151 },
152 "scopes": [
153 "https://www.googleapis.com/auth/compute",
154 "https://www.googleapis.com/auth/compute.readonly"
155 ]
156 },
157 "insert": {
158 "description": "Adds new Autoscaler resource.",
159 "httpMethod": "POST",
160 "id": "autoscaler.autoscalers.insert",
161 "parameterOrder": [
162 "project",
163 "zone"
164 ],
165 "parameters": {
166 "project": {
167 "description": "Project ID of Autoscaler resource.",
168 "location": "path",
169 "required": true,
170 "type": "string"
171 },
172 "zone": {
173 "description": "Zone name of Autoscaler resource.",
174 "location": "path",
175 "required": true,
176 "type": "string"
177 }
178 },
179 "path": "projects/{project}/zones/{zone}/autoscalers",
180 "request": {
181 "$ref": "Autoscaler"
182 },
183 "response": {
184 "$ref": "Operation"
185 },
186 "scopes": [
187 "https://www.googleapis.com/auth/compute"
188 ]
189 },
190 "list": {
191 "description": "Lists all Autoscaler resources in this zone. ",
192 "httpMethod": "GET",
193 "id": "autoscaler.autoscalers.list",
194 "parameterOrder": [
195 "project",
196 "zone"
197 ],
198 "parameters": {
199 "filter": {
200 "location": "query",
201 "type": "string"
202 },
203 "maxResults": {
204 "default": "500",
205 "format": "uint32",
206 "location": "query",
207 "maximum": "500",
208 "minimum": "0",
209 "type": "integer"
210 },
211 "pageToken": {
212 "location": "query",
213 "type": "string"
214 },
215 "project": {
216 "description": "Project ID of Autoscaler resource.",
217 "location": "path",
218 "required": true,
219 "type": "string"
220 },
221 "zone": {
222 "description": "Zone name of Autoscaler resource.",
223 "location": "path",
224 "required": true,
225 "type": "string"
226 }
227 },
228 "path": "projects/{project}/zones/{zone}/autoscalers",
229 "response": {
230 "$ref": "AutoscalerListResponse"
231 },
232 "scopes": [
233 "https://www.googleapis.com/auth/compute",
234 "https://www.googleapis.com/auth/compute.readonly"
235 ]
236 },
237 "patch": {
238 "description": "Update the entire content of the Autoscaler resource. This method supports patch semantics.",
239 "httpMethod": "PATCH",
240 "id": "autoscaler.autoscalers.patch",
241 "parameterOrder": [
242 "project",
243 "zone",
244 "autoscaler"
245 ],
246 "parameters": {
247 "autoscaler": {
248 "description": "Name of the Autoscaler resource.",
249 "location": "path",
250 "required": true,
251 "type": "string"
252 },
253 "project": {
254 "description": "Project ID of Autoscaler resource.",
255 "location": "path",
256 "required": true,
257 "type": "string"
258 },
259 "zone": {
260 "description": "Zone name of Autoscaler resource.",
261 "location": "path",
262 "required": true,
263 "type": "string"
264 }
265 },
266 "path": "projects/{project}/zones/{zone}/autoscalers/{autosc aler}",
267 "request": {
268 "$ref": "Autoscaler"
269 },
270 "response": {
271 "$ref": "Operation"
272 },
273 "scopes": [
274 "https://www.googleapis.com/auth/compute"
275 ]
276 },
277 "update": {
278 "description": "Update the entire content of the Autoscaler resource.",
279 "httpMethod": "PUT",
280 "id": "autoscaler.autoscalers.update",
281 "parameterOrder": [
282 "project",
283 "zone",
284 "autoscaler"
285 ],
286 "parameters": {
287 "autoscaler": {
288 "description": "Name of the Autoscaler resource.",
289 "location": "path",
290 "required": true,
291 "type": "string"
292 },
293 "project": {
294 "description": "Project ID of Autoscaler resource.",
295 "location": "path",
296 "required": true,
297 "type": "string"
298 },
299 "zone": {
300 "description": "Zone name of Autoscaler resource.",
301 "location": "path",
302 "required": true,
303 "type": "string"
304 }
305 },
306 "path": "projects/{project}/zones/{zone}/autoscalers/{autosc aler}",
307 "request": {
308 "$ref": "Autoscaler"
309 },
310 "response": {
311 "$ref": "Operation"
312 },
313 "scopes": [
314 "https://www.googleapis.com/auth/compute"
315 ]
316 }
317 }
318 },
319 "zoneOperations": {
320 "methods": {
321 "delete": {
322 "description": "Deletes the specified zone-specific operatio n resource.",
323 "httpMethod": "DELETE",
324 "id": "autoscaler.zoneOperations.delete",
325 "parameterOrder": [
326 "project",
327 "zone",
328 "operation"
329 ],
330 "parameters": {
331 "operation": {
332 "location": "path",
333 "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
334 "required": true,
335 "type": "string"
336 },
337 "project": {
338 "location": "path",
339 "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a -z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))" ,
340 "required": true,
341 "type": "string"
342 },
343 "zone": {
344 "location": "path",
345 "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
346 "required": true,
347 "type": "string"
348 }
349 },
350 "path": "{project}/zones/{zone}/operations/{operation}",
351 "scopes": [
352 "https://www.googleapis.com/auth/compute"
353 ]
354 },
355 "get": {
356 "description": "Retrieves the specified zone-specific operat ion resource.",
357 "httpMethod": "GET",
358 "id": "autoscaler.zoneOperations.get",
359 "parameterOrder": [
360 "project",
361 "zone",
362 "operation"
363 ],
364 "parameters": {
365 "operation": {
366 "location": "path",
367 "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
368 "required": true,
369 "type": "string"
370 },
371 "project": {
372 "location": "path",
373 "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a -z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))" ,
374 "required": true,
375 "type": "string"
376 },
377 "zone": {
378 "location": "path",
379 "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
380 "required": true,
381 "type": "string"
382 }
383 },
384 "path": "{project}/zones/{zone}/operations/{operation}",
385 "response": {
386 "$ref": "Operation"
387 },
388 "scopes": [
389 "https://www.googleapis.com/auth/compute",
390 "https://www.googleapis.com/auth/compute.readonly"
391 ]
392 },
393 "list": {
394 "description": "Retrieves the list of operation resources co ntained within the specified zone.",
395 "httpMethod": "GET",
396 "id": "autoscaler.zoneOperations.list",
397 "parameterOrder": [
398 "project",
399 "zone"
400 ],
401 "parameters": {
402 "filter": {
403 "location": "query",
404 "type": "string"
405 },
406 "maxResults": {
407 "default": "500",
408 "format": "uint32",
409 "location": "query",
410 "maximum": "500",
411 "minimum": "0",
412 "type": "integer"
413 },
414 "pageToken": {
415 "location": "query",
416 "type": "string"
417 },
418 "project": {
419 "location": "path",
420 "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a -z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))" ,
421 "required": true,
422 "type": "string"
423 },
424 "zone": {
425 "location": "path",
426 "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
427 "required": true,
428 "type": "string"
429 }
430 },
431 "path": "{project}/zones/{zone}/operations",
432 "response": {
433 "$ref": "OperationList"
434 },
435 "scopes": [
436 "https://www.googleapis.com/auth/compute",
437 "https://www.googleapis.com/auth/compute.readonly"
438 ]
439 }
440 }
441 }
442 },
443 "revision": "20140814",
444 "rootUrl": "https://www.googleapis.com/",
445 "schemas": {
446 "Autoscaler": {
447 "description": "Cloud Autoscaler resource.",
448 "id": "Autoscaler",
449 "properties": {
450 "autoscalingPolicy": {
451 "$ref": "AutoscalingPolicy",
452 "description": "Configuration parameters for autoscaling alg orithm."
453 },
454 "creationTimestamp": {
455 "description": "[Output Only] Creation timestamp in RFC3339 text format.",
456 "type": "string"
457 },
458 "description": {
459 "description": "An optional textual description of the resou rce provided by the client.",
460 "type": "string"
461 },
462 "id": {
463 "description": "[Output Only] Unique identifier for the reso urce; defined by the server.",
464 "format": "uint64",
465 "type": "string"
466 },
467 "name": {
468 "description": "Name of the Autoscaler resource. Must be uni que per project and zone.",
469 "type": "string"
470 },
471 "selfLink": {
472 "description": "[Output Only] A self-link to the Autoscaler configuration resource.",
473 "type": "string"
474 },
475 "target": {
476 "description": "URL to the entity which will be autoscaled. Currently the only supported value is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for the same target.",
477 "type": "string"
478 }
479 },
480 "type": "object"
481 },
482 "AutoscalerListResponse": {
483 "id": "AutoscalerListResponse",
484 "properties": {
485 "items": {
486 "description": "Autoscaler resources.",
487 "items": {
488 "$ref": "Autoscaler"
489 },
490 "type": "array"
491 },
492 "nextPageToken": {
493 "description": "[Output only] A token used to continue a tru ncated list request.",
494 "type": "string"
495 }
496 },
497 "type": "object"
498 },
499 "AutoscalingPolicy": {
500 "description": "Cloud Autoscaler policy.",
501 "id": "AutoscalingPolicy",
502 "properties": {
503 "coolDownPeriodSec": {
504 "description": "The number of seconds that the Autoscaler sh ould wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtu al machine. The default is 60 seconds.",
505 "format": "int32",
506 "type": "integer"
507 },
508 "cpuUtilization": {
509 "$ref": "AutoscalingPolicyCpuUtilization",
510 "description": "Exactly one utilization policy should be pro vided. Configuration parameters of CPU based autoscaling policy."
511 },
512 "customMetricUtilizations": {
513 "description": "Configuration parameters of autoscaling base d on custom metric.",
514 "items": {
515 "$ref": "AutoscalingPolicyCustomMetricUtilization"
516 },
517 "type": "array"
518 },
519 "loadBalancingUtilization": {
520 "$ref": "AutoscalingPolicyLoadBalancingUtilization",
521 "description": "Configuration parameters of autoscaling base d on load balancer."
522 },
523 "maxNumReplicas": {
524 "description": "The maximum number of replicas that the Auto scaler can scale up to.",
525 "format": "int32",
526 "type": "integer"
527 },
528 "minNumReplicas": {
529 "description": "The minimum number of replicas that the Auto scaler can scale down to.",
530 "format": "int32",
531 "type": "integer"
532 }
533 },
534 "type": "object"
535 },
536 "AutoscalingPolicyCpuUtilization": {
537 "description": "CPU utilization policy.",
538 "id": "AutoscalingPolicyCpuUtilization",
539 "properties": {
540 "utilizationTarget": {
541 "description": "The target utilization that the Autoscaler s hould maintain. It is represented as a fraction of used cores. For example: 6 co res used in 8-core VM are represented here as 0.75. Must be a float value betwee n (0, 1]. If not defined, the default is 0.8.",
542 "format": "double",
543 "type": "number"
544 }
545 },
546 "type": "object"
547 },
548 "AutoscalingPolicyCustomMetricUtilization": {
549 "description": "Custom utilization metric policy.",
550 "id": "AutoscalingPolicyCustomMetricUtilization",
551 "properties": {
552 "metric": {
553 "description": "Identifier of the metric. It should be a Clo ud Monitoring metric. The metric can not have negative values. The metric should be an utilization metric (increasing number of VMs handling requests x times sh ould reduce average value of the metric roughly x times). For example you could use: compute.googleapis.com/instance/network/received_bytes_count.",
554 "type": "string"
555 },
556 "utilizationTarget": {
557 "description": "Target value of the metric which Autoscaler should maintain. Must be a positive value.",
558 "format": "double",
559 "type": "number"
560 }
561 },
562 "type": "object"
563 },
564 "AutoscalingPolicyLoadBalancingUtilization": {
565 "description": "Load balancing utilization policy.",
566 "id": "AutoscalingPolicyLoadBalancingUtilization",
567 "properties": {
568 "utilizationTarget": {
569 "description": "Fraction of backend capacity utilization (se t in HTTP load balancing configuration) that Autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. For example if your maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set at 10 and you would like to keep number of instances such that each instance receives 7 QPS on average, set this to 0.7.",
570 "format": "double",
571 "type": "number"
572 }
573 },
574 "type": "object"
575 },
576 "Operation": {
577 "id": "Operation",
578 "properties": {
579 "clientOperationId": {
580 "type": "string"
581 },
582 "creationTimestamp": {
583 "type": "string"
584 },
585 "endTime": {
586 "type": "string"
587 },
588 "error": {
589 "properties": {
590 "errors": {
591 "items": {
592 "properties": {
593 "code": {
594 "type": "string"
595 },
596 "location": {
597 "type": "string"
598 },
599 "message": {
600 "type": "string"
601 }
602 },
603 "type": "object"
604 },
605 "type": "array"
606 }
607 },
608 "type": "object"
609 },
610 "httpErrorMessage": {
611 "type": "string"
612 },
613 "httpErrorStatusCode": {
614 "format": "int32",
615 "type": "integer"
616 },
617 "id": {
618 "format": "uint64",
619 "type": "string"
620 },
621 "insertTime": {
622 "type": "string"
623 },
624 "kind": {
625 "default": "autoscaler#operation",
626 "description": "Type of the resource.",
627 "type": "string"
628 },
629 "name": {
630 "type": "string"
631 },
632 "operationType": {
633 "type": "string"
634 },
635 "progress": {
636 "format": "int32",
637 "type": "integer"
638 },
639 "region": {
640 "type": "string"
641 },
642 "selfLink": {
643 "type": "string"
644 },
645 "startTime": {
646 "type": "string"
647 },
648 "status": {
649 "type": "string"
650 },
651 "statusMessage": {
652 "type": "string"
653 },
654 "targetId": {
655 "format": "uint64",
656 "type": "string"
657 },
658 "targetLink": {
659 "type": "string"
660 },
661 "user": {
662 "type": "string"
663 },
664 "warnings": {
665 "items": {
666 "properties": {
667 "code": {
668 "type": "string"
669 },
670 "data": {
671 "items": {
672 "properties": {
673 "key": {
674 "type": "string"
675 },
676 "value": {
677 "type": "string"
678 }
679 },
680 "type": "object"
681 },
682 "type": "array"
683 },
684 "message": {
685 "type": "string"
686 }
687 },
688 "type": "object"
689 },
690 "type": "array"
691 },
692 "zone": {
693 "type": "string"
694 }
695 },
696 "type": "object"
697 },
698 "OperationList": {
699 "id": "OperationList",
700 "properties": {
701 "id": {
702 "type": "string"
703 },
704 "items": {
705 "items": {
706 "$ref": "Operation"
707 },
708 "type": "array"
709 },
710 "kind": {
711 "default": "autoscaler#operationList",
712 "description": "Type of resource.",
713 "type": "string"
714 },
715 "nextPageToken": {
716 "type": "string"
717 },
718 "selfLink": {
719 "type": "string"
720 }
721 },
722 "type": "object"
723 }
724 },
725 "servicePath": "autoscaler/v1beta2/",
726 "title": "Google Compute Engine Autoscaler API",
727 "version": "v1beta2"
728 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698