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

Side by Side Diff: generated/googleapis_beta/lib/autoscaler/v1beta2.dart

Issue 698403003: Api roll 5: 2014-11-05 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 1 month 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
1 library googleapis_beta.autoscaler.v1beta2; 1 library googleapis_beta.autoscaler.v1beta2;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import "package:crypto/crypto.dart" as crypto; 8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http; 9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal; 10 import '../src/common_internal.dart' as common_internal;
(...skipping 11 matching lines...) Expand all
22 static const ComputeScope = "https://www.googleapis.com/auth/compute"; 22 static const ComputeScope = "https://www.googleapis.com/auth/compute";
23 23
24 /** View your Google Compute Engine resources */ 24 /** View your Google Compute Engine resources */
25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r eadonly"; 25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r eadonly";
26 26
27 27
28 final common_internal.ApiRequester _requester; 28 final common_internal.ApiRequester _requester;
29 29
30 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste r); 30 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste r);
31 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi( _requester); 31 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi( _requester);
32 ZonesResourceApi get zones => new ZonesResourceApi(_requester);
32 33
33 AutoscalerApi(http.Client client) : 34 AutoscalerApi(http.Client client) :
34 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "autoscaler/v1beta2/"); 35 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "autoscaler/v1beta2/");
35 } 36 }
36 37
37 38
38 /** Not documented yet. */ 39 /** Not documented yet. */
39 class AutoscalersResourceApi { 40 class AutoscalersResourceApi {
40 final common_internal.ApiRequester _requester; 41 final common_internal.ApiRequester _requester;
41 42
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 queryParams: _queryParams, 543 queryParams: _queryParams,
543 uploadOptions: _uploadOptions, 544 uploadOptions: _uploadOptions,
544 uploadMedia: _uploadMedia, 545 uploadMedia: _uploadMedia,
545 downloadOptions: _downloadOptions); 546 downloadOptions: _downloadOptions);
546 return _response.then((data) => new OperationList.fromJson(data)); 547 return _response.then((data) => new OperationList.fromJson(data));
547 } 548 }
548 549
549 } 550 }
550 551
551 552
553 /** Not documented yet. */
554 class ZonesResourceApi {
555 final common_internal.ApiRequester _requester;
556
557 ZonesResourceApi(common_internal.ApiRequester client) :
558 _requester = client;
559
560 /**
561 * Not documented yet.
562 *
563 * Request parameters:
564 *
565 * [project] - null
566 * Value must have pattern
567 * "(?:(?:[-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])?))".
568 *
569 * [filter] - null
570 *
571 * [maxResults] - null
572 * Value must be between "0" and "500".
573 *
574 * [pageToken] - null
575 *
576 * Completes with a [ZoneList].
577 *
578 * Completes with a [common.ApiRequestError] if the API endpoint returned an
579 * error.
580 *
581 * If the used [http.Client] completes with an error when making a REST call,
582 * this method will complete with the same error.
583 */
584 async.Future<ZoneList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
585 var _url = null;
586 var _queryParams = new core.Map();
587 var _uploadMedia = null;
588 var _uploadOptions = null;
589 var _downloadOptions = common.DownloadOptions.Metadata;
590 var _body = null;
591
592 if (project == null) {
593 throw new core.ArgumentError("Parameter project is required.");
594 }
595 if (filter != null) {
596 _queryParams["filter"] = [filter];
597 }
598 if (maxResults != null) {
599 _queryParams["maxResults"] = ["${maxResults}"];
600 }
601 if (pageToken != null) {
602 _queryParams["pageToken"] = [pageToken];
603 }
604
605
606 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones';
607
608 var _response = _requester.request(_url,
609 "GET",
610 body: _body,
611 queryParams: _queryParams,
612 uploadOptions: _uploadOptions,
613 uploadMedia: _uploadMedia,
614 downloadOptions: _downloadOptions);
615 return _response.then((data) => new ZoneList.fromJson(data));
616 }
617
618 }
619
620
552 621
553 /** Cloud Autoscaler resource. */ 622 /** Cloud Autoscaler resource. */
554 class Autoscaler { 623 class Autoscaler {
555 /** Configuration parameters for autoscaling algorithm. */ 624 /** Configuration parameters for autoscaling algorithm. */
556 AutoscalingPolicy autoscalingPolicy; 625 AutoscalingPolicy autoscalingPolicy;
557 626
558 /** [Output Only] Creation timestamp in RFC3339 text format. */ 627 /** [Output Only] Creation timestamp in RFC3339 text format. */
559 core.String creationTimestamp; 628 core.String creationTimestamp;
560 629
561 /** 630 /**
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 var _json = new core.Map(); 939 var _json = new core.Map();
871 if (utilizationTarget != null) { 940 if (utilizationTarget != null) {
872 _json["utilizationTarget"] = utilizationTarget; 941 _json["utilizationTarget"] = utilizationTarget;
873 } 942 }
874 return _json; 943 return _json;
875 } 944 }
876 } 945 }
877 946
878 947
879 /** Not documented yet. */ 948 /** Not documented yet. */
949 class DeprecationStatus {
950 /** Not documented yet. */
951 core.String deleted;
952
953 /** Not documented yet. */
954 core.String deprecated;
955
956 /** Not documented yet. */
957 core.String obsolete;
958
959 /** Not documented yet. */
960 core.String replacement;
961
962 /** Not documented yet. */
963 core.String state;
964
965
966 DeprecationStatus();
967
968 DeprecationStatus.fromJson(core.Map _json) {
969 if (_json.containsKey("deleted")) {
970 deleted = _json["deleted"];
971 }
972 if (_json.containsKey("deprecated")) {
973 deprecated = _json["deprecated"];
974 }
975 if (_json.containsKey("obsolete")) {
976 obsolete = _json["obsolete"];
977 }
978 if (_json.containsKey("replacement")) {
979 replacement = _json["replacement"];
980 }
981 if (_json.containsKey("state")) {
982 state = _json["state"];
983 }
984 }
985
986 core.Map toJson() {
987 var _json = new core.Map();
988 if (deleted != null) {
989 _json["deleted"] = deleted;
990 }
991 if (deprecated != null) {
992 _json["deprecated"] = deprecated;
993 }
994 if (obsolete != null) {
995 _json["obsolete"] = obsolete;
996 }
997 if (replacement != null) {
998 _json["replacement"] = replacement;
999 }
1000 if (state != null) {
1001 _json["state"] = state;
1002 }
1003 return _json;
1004 }
1005 }
1006
1007
1008 /** Not documented yet. */
880 class OperationErrorErrors { 1009 class OperationErrorErrors {
881 /** Not documented yet. */ 1010 /** Not documented yet. */
882 core.String code; 1011 core.String code;
883 1012
884 /** Not documented yet. */ 1013 /** Not documented yet. */
885 core.String location; 1014 core.String location;
886 1015
887 /** Not documented yet. */ 1016 /** Not documented yet. */
888 core.String message; 1017 core.String message;
889 1018
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 _json["nextPageToken"] = nextPageToken; 1412 _json["nextPageToken"] = nextPageToken;
1284 } 1413 }
1285 if (selfLink != null) { 1414 if (selfLink != null) {
1286 _json["selfLink"] = selfLink; 1415 _json["selfLink"] = selfLink;
1287 } 1416 }
1288 return _json; 1417 return _json;
1289 } 1418 }
1290 } 1419 }
1291 1420
1292 1421
1422 /** Not documented yet. */
1423 class ZoneMaintenanceWindows {
1424 /** Not documented yet. */
1425 core.String beginTime;
1426
1427 /** Not documented yet. */
1428 core.String description;
1429
1430 /** Not documented yet. */
1431 core.String endTime;
1432
1433 /** Not documented yet. */
1434 core.String name;
1435
1436
1437 ZoneMaintenanceWindows();
1438
1439 ZoneMaintenanceWindows.fromJson(core.Map _json) {
1440 if (_json.containsKey("beginTime")) {
1441 beginTime = _json["beginTime"];
1442 }
1443 if (_json.containsKey("description")) {
1444 description = _json["description"];
1445 }
1446 if (_json.containsKey("endTime")) {
1447 endTime = _json["endTime"];
1448 }
1449 if (_json.containsKey("name")) {
1450 name = _json["name"];
1451 }
1452 }
1453
1454 core.Map toJson() {
1455 var _json = new core.Map();
1456 if (beginTime != null) {
1457 _json["beginTime"] = beginTime;
1458 }
1459 if (description != null) {
1460 _json["description"] = description;
1461 }
1462 if (endTime != null) {
1463 _json["endTime"] = endTime;
1464 }
1465 if (name != null) {
1466 _json["name"] = name;
1467 }
1468 return _json;
1469 }
1470 }
1471
1472
1473 /** Not documented yet. */
1474 class Zone {
1475 /** Not documented yet. */
1476 core.String creationTimestamp;
1477
1478 /** Not documented yet. */
1479 DeprecationStatus deprecated;
1480
1481 /** Not documented yet. */
1482 core.String description;
1483
1484 /** Not documented yet. */
1485 core.String id;
1486
1487 /** Type of the resource. */
1488 core.String kind;
1489
1490 /** Not documented yet. */
1491 core.List<ZoneMaintenanceWindows> maintenanceWindows;
1492
1493 /** Not documented yet. */
1494 core.String name;
1495
1496 /** Not documented yet. */
1497 core.String region;
1498
1499 /** Server defined URL for the resource (output only). */
1500 core.String selfLink;
1501
1502 /** Not documented yet. */
1503 core.String status;
1504
1505
1506 Zone();
1507
1508 Zone.fromJson(core.Map _json) {
1509 if (_json.containsKey("creationTimestamp")) {
1510 creationTimestamp = _json["creationTimestamp"];
1511 }
1512 if (_json.containsKey("deprecated")) {
1513 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
1514 }
1515 if (_json.containsKey("description")) {
1516 description = _json["description"];
1517 }
1518 if (_json.containsKey("id")) {
1519 id = _json["id"];
1520 }
1521 if (_json.containsKey("kind")) {
1522 kind = _json["kind"];
1523 }
1524 if (_json.containsKey("maintenanceWindows")) {
1525 maintenanceWindows = _json["maintenanceWindows"].map((value) => new ZoneMa intenanceWindows.fromJson(value)).toList();
1526 }
1527 if (_json.containsKey("name")) {
1528 name = _json["name"];
1529 }
1530 if (_json.containsKey("region")) {
1531 region = _json["region"];
1532 }
1533 if (_json.containsKey("selfLink")) {
1534 selfLink = _json["selfLink"];
1535 }
1536 if (_json.containsKey("status")) {
1537 status = _json["status"];
1538 }
1539 }
1540
1541 core.Map toJson() {
1542 var _json = new core.Map();
1543 if (creationTimestamp != null) {
1544 _json["creationTimestamp"] = creationTimestamp;
1545 }
1546 if (deprecated != null) {
1547 _json["deprecated"] = (deprecated).toJson();
1548 }
1549 if (description != null) {
1550 _json["description"] = description;
1551 }
1552 if (id != null) {
1553 _json["id"] = id;
1554 }
1555 if (kind != null) {
1556 _json["kind"] = kind;
1557 }
1558 if (maintenanceWindows != null) {
1559 _json["maintenanceWindows"] = maintenanceWindows.map((value) => (value).to Json()).toList();
1560 }
1561 if (name != null) {
1562 _json["name"] = name;
1563 }
1564 if (region != null) {
1565 _json["region"] = region;
1566 }
1567 if (selfLink != null) {
1568 _json["selfLink"] = selfLink;
1569 }
1570 if (status != null) {
1571 _json["status"] = status;
1572 }
1573 return _json;
1574 }
1575 }
1576
1577
1578 /** Not documented yet. */
1579 class ZoneList {
1580 /** Not documented yet. */
1581 core.String id;
1582
1583 /** Not documented yet. */
1584 core.List<Zone> items;
1585
1586 /** Type of resource. */
1587 core.String kind;
1588
1589 /** Not documented yet. */
1590 core.String nextPageToken;
1591
1592 /** Server defined URL for this resource (output only). */
1593 core.String selfLink;
1594
1595
1596 ZoneList();
1597
1598 ZoneList.fromJson(core.Map _json) {
1599 if (_json.containsKey("id")) {
1600 id = _json["id"];
1601 }
1602 if (_json.containsKey("items")) {
1603 items = _json["items"].map((value) => new Zone.fromJson(value)).toList();
1604 }
1605 if (_json.containsKey("kind")) {
1606 kind = _json["kind"];
1607 }
1608 if (_json.containsKey("nextPageToken")) {
1609 nextPageToken = _json["nextPageToken"];
1610 }
1611 if (_json.containsKey("selfLink")) {
1612 selfLink = _json["selfLink"];
1613 }
1614 }
1615
1616 core.Map toJson() {
1617 var _json = new core.Map();
1618 if (id != null) {
1619 _json["id"] = id;
1620 }
1621 if (items != null) {
1622 _json["items"] = items.map((value) => (value).toJson()).toList();
1623 }
1624 if (kind != null) {
1625 _json["kind"] = kind;
1626 }
1627 if (nextPageToken != null) {
1628 _json["nextPageToken"] = nextPageToken;
1629 }
1630 if (selfLink != null) {
1631 _json["selfLink"] = selfLink;
1632 }
1633 return _json;
1634 }
1635 }
1636
1637
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698