google-api-client 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +22 -0
  6. data/generated/google/apis/adsense_v1_4.rb +1 -1
  7. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  8. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  9. data/generated/google/apis/analyticsreporting_v4/classes.rb +32 -14
  10. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/bigquery_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +10 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  17. data/generated/google/apis/calendar_v3.rb +1 -1
  18. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  19. data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
  20. data/generated/google/apis/compute_beta.rb +1 -1
  21. data/generated/google/apis/compute_beta/classes.rb +28 -5
  22. data/generated/google/apis/compute_beta/representations.rb +3 -0
  23. data/generated/google/apis/compute_beta/service.rb +1 -2
  24. data/generated/google/apis/compute_v1.rb +1 -1
  25. data/generated/google/apis/compute_v1/classes.rb +680 -4
  26. data/generated/google/apis/compute_v1/representations.rb +274 -0
  27. data/generated/google/apis/compute_v1/service.rb +442 -2
  28. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  29. data/generated/google/apis/dns_v1.rb +1 -1
  30. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  31. data/generated/google/apis/drive_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2/classes.rb +6 -0
  33. data/generated/google/apis/drive_v2/representations.rb +2 -0
  34. data/generated/google/apis/drive_v2/service.rb +8 -2
  35. data/generated/google/apis/drive_v3.rb +1 -1
  36. data/generated/google/apis/drive_v3/classes.rb +6 -0
  37. data/generated/google/apis/drive_v3/representations.rb +2 -0
  38. data/generated/google/apis/drive_v3/service.rb +4 -1
  39. data/generated/google/apis/fusiontables_v2.rb +1 -1
  40. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  41. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  42. data/generated/google/apis/games_management_v1management.rb +1 -1
  43. data/generated/google/apis/games_v1.rb +1 -1
  44. data/generated/google/apis/genomics_v1.rb +1 -1
  45. data/generated/google/apis/genomics_v1/classes.rb +63 -0
  46. data/generated/google/apis/genomics_v1/representations.rb +31 -0
  47. data/generated/google/apis/gmail_v1.rb +1 -1
  48. data/generated/google/apis/groupssettings_v1.rb +1 -1
  49. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  50. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  51. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  52. data/generated/google/apis/identitytoolkit_v3/classes.rb +30 -0
  53. data/generated/google/apis/identitytoolkit_v3/representations.rb +5 -0
  54. data/generated/google/apis/monitoring_v3.rb +45 -0
  55. data/generated/google/apis/monitoring_v3/classes.rb +1404 -0
  56. data/generated/google/apis/monitoring_v3/representations.rb +533 -0
  57. data/generated/google/apis/monitoring_v3/service.rb +743 -0
  58. data/generated/google/apis/oauth2_v2.rb +1 -1
  59. data/generated/google/apis/plus_domains_v1.rb +1 -1
  60. data/generated/google/apis/plus_v1.rb +1 -1
  61. data/generated/google/apis/sheets_v4.rb +1 -1
  62. data/generated/google/apis/vision_v1.rb +1 -1
  63. data/generated/google/apis/vision_v1/classes.rb +10 -9
  64. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  65. data/generated/google/apis/youtube_v3.rb +1 -1
  66. data/generated/google/apis/youtube_v3/classes.rb +155 -0
  67. data/generated/google/apis/youtube_v3/representations.rb +81 -0
  68. data/generated/google/apis/youtube_v3/service.rb +6 -2
  69. data/lib/google/apis/errors.rb +2 -2
  70. data/lib/google/apis/version.rb +1 -1
  71. data/samples/cli/lib/samples/bigquery.rb +101 -0
  72. data/samples/cli/lib/samples/sheets.rb +61 -0
  73. metadata +8 -2
@@ -160,6 +160,18 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class CustomerEncryptionKey
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class CustomerEncryptionKeyProtectedDisk
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
163
175
  class DeprecationStatus
164
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
177
 
@@ -586,6 +598,12 @@ module Google
586
598
  include Google::Apis::Core::JsonObjectSupport
587
599
  end
588
600
 
601
+ class InstancesStartWithEncryptionKeyRequest
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
589
607
  class License
590
608
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
609
 
@@ -820,6 +838,78 @@ module Google
820
838
  include Google::Apis::Core::JsonObjectSupport
821
839
  end
822
840
 
841
+ class Router
842
+ class Representation < Google::Apis::Core::JsonRepresentation; end
843
+
844
+ include Google::Apis::Core::JsonObjectSupport
845
+ end
846
+
847
+ class RouterAggregatedList
848
+ class Representation < Google::Apis::Core::JsonRepresentation; end
849
+
850
+ include Google::Apis::Core::JsonObjectSupport
851
+ end
852
+
853
+ class RouterBgp
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
859
+ class RouterBgpPeer
860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
861
+
862
+ include Google::Apis::Core::JsonObjectSupport
863
+ end
864
+
865
+ class RouterInterface
866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
867
+
868
+ include Google::Apis::Core::JsonObjectSupport
869
+ end
870
+
871
+ class RouterList
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
877
+ class RouterStatus
878
+ class Representation < Google::Apis::Core::JsonRepresentation; end
879
+
880
+ include Google::Apis::Core::JsonObjectSupport
881
+ end
882
+
883
+ class RouterStatusBgpPeerStatus
884
+ class Representation < Google::Apis::Core::JsonRepresentation; end
885
+
886
+ include Google::Apis::Core::JsonObjectSupport
887
+ end
888
+
889
+ class RouterStatusResponse
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
895
+ class RoutersScopedList
896
+ class Representation < Google::Apis::Core::JsonRepresentation; end
897
+
898
+ class Warning
899
+ class Representation < Google::Apis::Core::JsonRepresentation; end
900
+
901
+ class Datum
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ include Google::Apis::Core::JsonObjectSupport
908
+ end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
823
913
  class Scheduling
824
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
825
915
 
@@ -1264,6 +1354,8 @@ module Google
1264
1354
  property :auto_delete, as: 'autoDelete'
1265
1355
  property :boot, as: 'boot'
1266
1356
  property :device_name, as: 'deviceName'
1357
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1358
+
1267
1359
  property :index, as: 'index'
1268
1360
  property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeV1::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeV1::AttachedDiskInitializeParams::Representation
1269
1361
 
@@ -1283,6 +1375,8 @@ module Google
1283
1375
  property :disk_size_gb, as: 'diskSizeGb'
1284
1376
  property :disk_type, as: 'diskType'
1285
1377
  property :source_image, as: 'sourceImage'
1378
+ property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1379
+
1286
1380
  end
1287
1381
  end
1288
1382
 
@@ -1447,6 +1541,23 @@ module Google
1447
1541
  end
1448
1542
  end
1449
1543
 
1544
+ class CustomerEncryptionKey
1545
+ # @private
1546
+ class Representation < Google::Apis::Core::JsonRepresentation
1547
+ property :raw_key, as: 'rawKey'
1548
+ property :sha256, as: 'sha256'
1549
+ end
1550
+ end
1551
+
1552
+ class CustomerEncryptionKeyProtectedDisk
1553
+ # @private
1554
+ class Representation < Google::Apis::Core::JsonRepresentation
1555
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1556
+
1557
+ property :source, as: 'source'
1558
+ end
1559
+ end
1560
+
1450
1561
  class DeprecationStatus
1451
1562
  # @private
1452
1563
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1463,6 +1574,8 @@ module Google
1463
1574
  class Representation < Google::Apis::Core::JsonRepresentation
1464
1575
  property :creation_timestamp, as: 'creationTimestamp'
1465
1576
  property :description, as: 'description'
1577
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1578
+
1466
1579
  property :id, as: 'id'
1467
1580
  property :kind, as: 'kind'
1468
1581
  property :last_attach_timestamp, as: 'lastAttachTimestamp'
@@ -1473,8 +1586,12 @@ module Google
1473
1586
  property :self_link, as: 'selfLink'
1474
1587
  property :size_gb, as: 'sizeGb'
1475
1588
  property :source_image, as: 'sourceImage'
1589
+ property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1590
+
1476
1591
  property :source_image_id, as: 'sourceImageId'
1477
1592
  property :source_snapshot, as: 'sourceSnapshot'
1593
+ property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1594
+
1478
1595
  property :source_snapshot_id, as: 'sourceSnapshotId'
1479
1596
  property :status, as: 'status'
1480
1597
  property :type, as: 'type'
@@ -1825,6 +1942,8 @@ module Google
1825
1942
  property :disk_size_gb, as: 'diskSizeGb'
1826
1943
  property :family, as: 'family'
1827
1944
  property :id, as: 'id'
1945
+ property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1946
+
1828
1947
  property :kind, as: 'kind'
1829
1948
  collection :licenses, as: 'licenses'
1830
1949
  property :name, as: 'name'
@@ -1832,6 +1951,8 @@ module Google
1832
1951
 
1833
1952
  property :self_link, as: 'selfLink'
1834
1953
  property :source_disk, as: 'sourceDisk'
1954
+ property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
1955
+
1835
1956
  property :source_disk_id, as: 'sourceDiskId'
1836
1957
  property :source_type, as: 'sourceType'
1837
1958
  property :status, as: 'status'
@@ -2267,6 +2388,14 @@ module Google
2267
2388
  end
2268
2389
  end
2269
2390
 
2391
+ class InstancesStartWithEncryptionKeyRequest
2392
+ # @private
2393
+ class Representation < Google::Apis::Core::JsonRepresentation
2394
+ collection :disks, as: 'disks', class: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk::Representation
2395
+
2396
+ end
2397
+ end
2398
+
2270
2399
  class License
2271
2400
  # @private
2272
2401
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2287,6 +2416,7 @@ module Google
2287
2416
  property :guest_cpus, as: 'guestCpus'
2288
2417
  property :id, as: 'id'
2289
2418
  property :image_space_gb, as: 'imageSpaceGb'
2419
+ property :is_shared_cpu, as: 'isSharedCpu'
2290
2420
  property :kind, as: 'kind'
2291
2421
  property :maximum_persistent_disks, as: 'maximumPersistentDisks'
2292
2422
  property :maximum_persistent_disks_size_gb, as: 'maximumPersistentDisksSizeGb'
@@ -2604,6 +2734,7 @@ module Google
2604
2734
  property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
2605
2735
 
2606
2736
  property :creation_timestamp, as: 'creationTimestamp'
2737
+ property :default_service_account, as: 'defaultServiceAccount'
2607
2738
  property :description, as: 'description'
2608
2739
  collection :enabled_features, as: 'enabledFeatures'
2609
2740
  property :id, as: 'id'
@@ -2716,6 +2847,143 @@ module Google
2716
2847
  end
2717
2848
  end
2718
2849
 
2850
+ class Router
2851
+ # @private
2852
+ class Representation < Google::Apis::Core::JsonRepresentation
2853
+ property :bgp, as: 'bgp', class: Google::Apis::ComputeV1::RouterBgp, decorator: Google::Apis::ComputeV1::RouterBgp::Representation
2854
+
2855
+ collection :bgp_peers, as: 'bgpPeers', class: Google::Apis::ComputeV1::RouterBgpPeer, decorator: Google::Apis::ComputeV1::RouterBgpPeer::Representation
2856
+
2857
+ property :creation_timestamp, as: 'creationTimestamp'
2858
+ property :description, as: 'description'
2859
+ property :id, as: 'id'
2860
+ collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeV1::RouterInterface, decorator: Google::Apis::ComputeV1::RouterInterface::Representation
2861
+
2862
+ property :kind, as: 'kind'
2863
+ property :name, as: 'name'
2864
+ property :network, as: 'network'
2865
+ property :region, as: 'region'
2866
+ property :self_link, as: 'selfLink'
2867
+ end
2868
+ end
2869
+
2870
+ class RouterAggregatedList
2871
+ # @private
2872
+ class Representation < Google::Apis::Core::JsonRepresentation
2873
+ property :id, as: 'id'
2874
+ hash :items, as: 'items', class: Google::Apis::ComputeV1::RoutersScopedList, decorator: Google::Apis::ComputeV1::RoutersScopedList::Representation
2875
+
2876
+ property :kind, as: 'kind'
2877
+ property :next_page_token, as: 'nextPageToken'
2878
+ property :self_link, as: 'selfLink'
2879
+ end
2880
+ end
2881
+
2882
+ class RouterBgp
2883
+ # @private
2884
+ class Representation < Google::Apis::Core::JsonRepresentation
2885
+ property :asn, as: 'asn'
2886
+ end
2887
+ end
2888
+
2889
+ class RouterBgpPeer
2890
+ # @private
2891
+ class Representation < Google::Apis::Core::JsonRepresentation
2892
+ property :advertised_route_priority, as: 'advertisedRoutePriority'
2893
+ property :interface_name, as: 'interfaceName'
2894
+ property :ip_address, as: 'ipAddress'
2895
+ property :name, as: 'name'
2896
+ property :peer_asn, as: 'peerAsn'
2897
+ property :peer_ip_address, as: 'peerIpAddress'
2898
+ end
2899
+ end
2900
+
2901
+ class RouterInterface
2902
+ # @private
2903
+ class Representation < Google::Apis::Core::JsonRepresentation
2904
+ property :ip_range, as: 'ipRange'
2905
+ property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
2906
+ property :name, as: 'name'
2907
+ end
2908
+ end
2909
+
2910
+ class RouterList
2911
+ # @private
2912
+ class Representation < Google::Apis::Core::JsonRepresentation
2913
+ property :id, as: 'id'
2914
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::Router, decorator: Google::Apis::ComputeV1::Router::Representation
2915
+
2916
+ property :kind, as: 'kind'
2917
+ property :next_page_token, as: 'nextPageToken'
2918
+ property :self_link, as: 'selfLink'
2919
+ end
2920
+ end
2921
+
2922
+ class RouterStatus
2923
+ # @private
2924
+ class Representation < Google::Apis::Core::JsonRepresentation
2925
+ collection :best_routes, as: 'bestRoutes', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation
2926
+
2927
+ collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus::Representation
2928
+
2929
+ property :network, as: 'network'
2930
+ end
2931
+ end
2932
+
2933
+ class RouterStatusBgpPeerStatus
2934
+ # @private
2935
+ class Representation < Google::Apis::Core::JsonRepresentation
2936
+ collection :advertised_routes, as: 'advertisedRoutes', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation
2937
+
2938
+ property :ip_address, as: 'ipAddress'
2939
+ property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
2940
+ property :name, as: 'name'
2941
+ property :num_learned_routes, as: 'numLearnedRoutes'
2942
+ property :peer_ip_address, as: 'peerIpAddress'
2943
+ property :state, as: 'state'
2944
+ property :status, as: 'status'
2945
+ property :uptime, as: 'uptime'
2946
+ property :uptime_seconds, as: 'uptimeSeconds'
2947
+ end
2948
+ end
2949
+
2950
+ class RouterStatusResponse
2951
+ # @private
2952
+ class Representation < Google::Apis::Core::JsonRepresentation
2953
+ property :kind, as: 'kind'
2954
+ property :result, as: 'result', class: Google::Apis::ComputeV1::RouterStatus, decorator: Google::Apis::ComputeV1::RouterStatus::Representation
2955
+
2956
+ end
2957
+ end
2958
+
2959
+ class RoutersScopedList
2960
+ # @private
2961
+ class Representation < Google::Apis::Core::JsonRepresentation
2962
+ collection :routers, as: 'routers', class: Google::Apis::ComputeV1::Router, decorator: Google::Apis::ComputeV1::Router::Representation
2963
+
2964
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::RoutersScopedList::Warning, decorator: Google::Apis::ComputeV1::RoutersScopedList::Warning::Representation
2965
+
2966
+ end
2967
+
2968
+ class Warning
2969
+ # @private
2970
+ class Representation < Google::Apis::Core::JsonRepresentation
2971
+ property :code, as: 'code'
2972
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::RoutersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::RoutersScopedList::Warning::Datum::Representation
2973
+
2974
+ property :message, as: 'message'
2975
+ end
2976
+
2977
+ class Datum
2978
+ # @private
2979
+ class Representation < Google::Apis::Core::JsonRepresentation
2980
+ property :key, as: 'key'
2981
+ property :value, as: 'value'
2982
+ end
2983
+ end
2984
+ end
2985
+ end
2986
+
2719
2987
  class Scheduling
2720
2988
  # @private
2721
2989
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2753,7 +3021,11 @@ module Google
2753
3021
  collection :licenses, as: 'licenses'
2754
3022
  property :name, as: 'name'
2755
3023
  property :self_link, as: 'selfLink'
3024
+ property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
3025
+
2756
3026
  property :source_disk, as: 'sourceDisk'
3027
+ property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
3028
+
2757
3029
  property :source_disk_id, as: 'sourceDiskId'
2758
3030
  property :status, as: 'status'
2759
3031
  property :storage_bytes, as: 'storageBytes'
@@ -3294,6 +3566,8 @@ module Google
3294
3566
  property :name, as: 'name'
3295
3567
  property :peer_ip, as: 'peerIp'
3296
3568
  property :region, as: 'region'
3569
+ collection :remote_traffic_selector, as: 'remoteTrafficSelector'
3570
+ property :router, as: 'router'
3297
3571
  property :self_link, as: 'selfLink'
3298
3572
  property :shared_secret, as: 'sharedSecret'
3299
3573
  property :shared_secret_hash, as: 'sharedSecretHash'
@@ -3475,10 +3475,9 @@ module Google
3475
3475
  # Retrieves the list of private images available to the specified project.
3476
3476
  # Private images are images you create that belong to your project. This method
3477
3477
  # does not get any images that belong to other projects, including publicly-
3478
- # available images, like Debian 7. If you want to get a list of publicly-
3478
+ # available images, like Debian 8. If you want to get a list of publicly-
3479
3479
  # available images, use this method to make a request to the respective image
3480
3480
  # project, such as debian-cloud or windows-cloud.
3481
- # See Accessing images for more information.
3482
3481
  # @param [String] project
3483
3482
  # Project ID for this request.
3484
3483
  # @param [String] filter
@@ -5635,6 +5634,51 @@ module Google
5635
5634
  execute_or_queue_command(command, &block)
5636
5635
  end
5637
5636
 
5637
+ # Starts an instance that was stopped using the using the instances().stop
5638
+ # method. For more information, see Restart an instance.
5639
+ # @param [String] project
5640
+ # Project ID for this request.
5641
+ # @param [String] zone
5642
+ # The name of the zone for this request.
5643
+ # @param [String] instance
5644
+ # Name of the instance resource to start.
5645
+ # @param [Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
5646
+ # @param [String] fields
5647
+ # Selector specifying which fields to include in a partial response.
5648
+ # @param [String] quota_user
5649
+ # Available to use for quota purposes for server-side applications. Can be any
5650
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5651
+ # Overrides userIp if both are provided.
5652
+ # @param [String] user_ip
5653
+ # IP address of the site where the request originates. Use this if you want to
5654
+ # enforce per-user limits.
5655
+ # @param [Google::Apis::RequestOptions] options
5656
+ # Request-specific options
5657
+ #
5658
+ # @yield [result, err] Result & error if block supplied
5659
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
5660
+ # @yieldparam err [StandardError] error object if request failed
5661
+ #
5662
+ # @return [Google::Apis::ComputeV1::Operation]
5663
+ #
5664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5667
+ def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5668
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options)
5669
+ command.request_representation = Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest::Representation
5670
+ command.request_object = instances_start_with_encryption_key_request_object
5671
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
5672
+ command.response_class = Google::Apis::ComputeV1::Operation
5673
+ command.params['project'] = project unless project.nil?
5674
+ command.params['zone'] = zone unless zone.nil?
5675
+ command.params['instance'] = instance unless instance.nil?
5676
+ command.query['fields'] = fields unless fields.nil?
5677
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5678
+ command.query['userIp'] = user_ip unless user_ip.nil?
5679
+ execute_or_queue_command(command, &block)
5680
+ end
5681
+
5638
5682
  # Stops a running instance, shutting it down cleanly, and allows you to restart
5639
5683
  # the instance at a later time. Stopped instances do not incur per-minute,
5640
5684
  # virtual machine usage charges while they are stopped, but any resources that
@@ -6538,6 +6582,402 @@ module Google
6538
6582
  execute_or_queue_command(command, &block)
6539
6583
  end
6540
6584
 
6585
+ # Retrieves an aggregated list of routers.
6586
+ # @param [String] project
6587
+ # Project ID for this request.
6588
+ # @param [String] filter
6589
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6590
+ # expression`. Your `expression` must be in the format: field_name
6591
+ # comparison_string literal_string.
6592
+ # The field_name is the name of the field you want to compare. Only atomic field
6593
+ # types are supported (string, number, boolean). The comparison_string must be
6594
+ # either eq (equals) or ne (not equals). The literal_string is the string value
6595
+ # to filter to. The literal value must be valid for the type of field you are
6596
+ # filtering by (string, number, boolean). For string fields, the literal value
6597
+ # is interpreted as a regular expression using RE2 syntax. The literal value
6598
+ # must match the entire field.
6599
+ # For example, to filter for instances that do not have a name of example-
6600
+ # instance, you would use filter=name ne example-instance.
6601
+ # Compute Engine Beta API Only: When filtering in the Beta API, you can also
6602
+ # filter on nested fields. For example, you could filter on instances that have
6603
+ # set the scheduling.automaticRestart field to true. Use filtering on nested
6604
+ # fields to take advantage of labels to organize and search for results based on
6605
+ # label values.
6606
+ # The Beta API also supports filtering on multiple expressions by providing each
6607
+ # separate expression within parentheses. For example, (scheduling.
6608
+ # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
6609
+ # treated as AND expressions, meaning that resources must match all expressions
6610
+ # to pass the filters.
6611
+ # @param [Fixnum] max_results
6612
+ # The maximum number of results per page that should be returned. If the number
6613
+ # of available results is larger than maxResults, Compute Engine returns a
6614
+ # nextPageToken that can be used to get the next page of results in subsequent
6615
+ # list requests.
6616
+ # @param [String] page_token
6617
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
6618
+ # a previous list request to get the next page of results.
6619
+ # @param [String] fields
6620
+ # Selector specifying which fields to include in a partial response.
6621
+ # @param [String] quota_user
6622
+ # Available to use for quota purposes for server-side applications. Can be any
6623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6624
+ # Overrides userIp if both are provided.
6625
+ # @param [String] user_ip
6626
+ # IP address of the site where the request originates. Use this if you want to
6627
+ # enforce per-user limits.
6628
+ # @param [Google::Apis::RequestOptions] options
6629
+ # Request-specific options
6630
+ #
6631
+ # @yield [result, err] Result & error if block supplied
6632
+ # @yieldparam result [Google::Apis::ComputeV1::RouterAggregatedList] parsed result object
6633
+ # @yieldparam err [StandardError] error object if request failed
6634
+ #
6635
+ # @return [Google::Apis::ComputeV1::RouterAggregatedList]
6636
+ #
6637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6640
+ def aggregated_router_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6641
+ command = make_simple_command(:get, '{project}/aggregated/routers', options)
6642
+ command.response_representation = Google::Apis::ComputeV1::RouterAggregatedList::Representation
6643
+ command.response_class = Google::Apis::ComputeV1::RouterAggregatedList
6644
+ command.params['project'] = project unless project.nil?
6645
+ command.query['filter'] = filter unless filter.nil?
6646
+ command.query['maxResults'] = max_results unless max_results.nil?
6647
+ command.query['pageToken'] = page_token unless page_token.nil?
6648
+ command.query['fields'] = fields unless fields.nil?
6649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6650
+ command.query['userIp'] = user_ip unless user_ip.nil?
6651
+ execute_or_queue_command(command, &block)
6652
+ end
6653
+
6654
+ # Deletes the specified Router resource.
6655
+ # @param [String] project
6656
+ # Project ID for this request.
6657
+ # @param [String] region
6658
+ # Name of the region for this request.
6659
+ # @param [String] router
6660
+ # Name of the Router resource to delete.
6661
+ # @param [String] fields
6662
+ # Selector specifying which fields to include in a partial response.
6663
+ # @param [String] quota_user
6664
+ # Available to use for quota purposes for server-side applications. Can be any
6665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6666
+ # Overrides userIp if both are provided.
6667
+ # @param [String] user_ip
6668
+ # IP address of the site where the request originates. Use this if you want to
6669
+ # enforce per-user limits.
6670
+ # @param [Google::Apis::RequestOptions] options
6671
+ # Request-specific options
6672
+ #
6673
+ # @yield [result, err] Result & error if block supplied
6674
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6675
+ # @yieldparam err [StandardError] error object if request failed
6676
+ #
6677
+ # @return [Google::Apis::ComputeV1::Operation]
6678
+ #
6679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6682
+ def delete_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6683
+ command = make_simple_command(:delete, '{project}/regions/{region}/routers/{router}', options)
6684
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6685
+ command.response_class = Google::Apis::ComputeV1::Operation
6686
+ command.params['project'] = project unless project.nil?
6687
+ command.params['region'] = region unless region.nil?
6688
+ command.params['router'] = router unless router.nil?
6689
+ command.query['fields'] = fields unless fields.nil?
6690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6691
+ command.query['userIp'] = user_ip unless user_ip.nil?
6692
+ execute_or_queue_command(command, &block)
6693
+ end
6694
+
6695
+ # Returns the specified Router resource. Get a list of available routers by
6696
+ # making a list() request.
6697
+ # @param [String] project
6698
+ # Project ID for this request.
6699
+ # @param [String] region
6700
+ # Name of the region for this request.
6701
+ # @param [String] router
6702
+ # Name of the Router resource to return.
6703
+ # @param [String] fields
6704
+ # Selector specifying which fields to include in a partial response.
6705
+ # @param [String] quota_user
6706
+ # Available to use for quota purposes for server-side applications. Can be any
6707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6708
+ # Overrides userIp if both are provided.
6709
+ # @param [String] user_ip
6710
+ # IP address of the site where the request originates. Use this if you want to
6711
+ # enforce per-user limits.
6712
+ # @param [Google::Apis::RequestOptions] options
6713
+ # Request-specific options
6714
+ #
6715
+ # @yield [result, err] Result & error if block supplied
6716
+ # @yieldparam result [Google::Apis::ComputeV1::Router] parsed result object
6717
+ # @yieldparam err [StandardError] error object if request failed
6718
+ #
6719
+ # @return [Google::Apis::ComputeV1::Router]
6720
+ #
6721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6724
+ def get_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6725
+ command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}', options)
6726
+ command.response_representation = Google::Apis::ComputeV1::Router::Representation
6727
+ command.response_class = Google::Apis::ComputeV1::Router
6728
+ command.params['project'] = project unless project.nil?
6729
+ command.params['region'] = region unless region.nil?
6730
+ command.params['router'] = router unless router.nil?
6731
+ command.query['fields'] = fields unless fields.nil?
6732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6733
+ command.query['userIp'] = user_ip unless user_ip.nil?
6734
+ execute_or_queue_command(command, &block)
6735
+ end
6736
+
6737
+ # Retrieves runtime information of the specified router.
6738
+ # @param [String] project
6739
+ # Project ID for this request.
6740
+ # @param [String] region
6741
+ # Name of the region for this request.
6742
+ # @param [String] router
6743
+ # Name of the Router resource to query.
6744
+ # @param [String] fields
6745
+ # Selector specifying which fields to include in a partial response.
6746
+ # @param [String] quota_user
6747
+ # Available to use for quota purposes for server-side applications. Can be any
6748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6749
+ # Overrides userIp if both are provided.
6750
+ # @param [String] user_ip
6751
+ # IP address of the site where the request originates. Use this if you want to
6752
+ # enforce per-user limits.
6753
+ # @param [Google::Apis::RequestOptions] options
6754
+ # Request-specific options
6755
+ #
6756
+ # @yield [result, err] Result & error if block supplied
6757
+ # @yieldparam result [Google::Apis::ComputeV1::RouterStatusResponse] parsed result object
6758
+ # @yieldparam err [StandardError] error object if request failed
6759
+ #
6760
+ # @return [Google::Apis::ComputeV1::RouterStatusResponse]
6761
+ #
6762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6765
+ def get_router_router_status(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6766
+ command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getRouterStatus', options)
6767
+ command.response_representation = Google::Apis::ComputeV1::RouterStatusResponse::Representation
6768
+ command.response_class = Google::Apis::ComputeV1::RouterStatusResponse
6769
+ command.params['project'] = project unless project.nil?
6770
+ command.params['region'] = region unless region.nil?
6771
+ command.params['router'] = router unless router.nil?
6772
+ command.query['fields'] = fields unless fields.nil?
6773
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6774
+ command.query['userIp'] = user_ip unless user_ip.nil?
6775
+ execute_or_queue_command(command, &block)
6776
+ end
6777
+
6778
+ # Creates a Router resource in the specified project and region using the data
6779
+ # included in the request.
6780
+ # @param [String] project
6781
+ # Project ID for this request.
6782
+ # @param [String] region
6783
+ # Name of the region for this request.
6784
+ # @param [Google::Apis::ComputeV1::Router] router_object
6785
+ # @param [String] fields
6786
+ # Selector specifying which fields to include in a partial response.
6787
+ # @param [String] quota_user
6788
+ # Available to use for quota purposes for server-side applications. Can be any
6789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6790
+ # Overrides userIp if both are provided.
6791
+ # @param [String] user_ip
6792
+ # IP address of the site where the request originates. Use this if you want to
6793
+ # enforce per-user limits.
6794
+ # @param [Google::Apis::RequestOptions] options
6795
+ # Request-specific options
6796
+ #
6797
+ # @yield [result, err] Result & error if block supplied
6798
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6799
+ # @yieldparam err [StandardError] error object if request failed
6800
+ #
6801
+ # @return [Google::Apis::ComputeV1::Operation]
6802
+ #
6803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6806
+ def insert_router(project, region, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6807
+ command = make_simple_command(:post, '{project}/regions/{region}/routers', options)
6808
+ command.request_representation = Google::Apis::ComputeV1::Router::Representation
6809
+ command.request_object = router_object
6810
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6811
+ command.response_class = Google::Apis::ComputeV1::Operation
6812
+ command.params['project'] = project unless project.nil?
6813
+ command.params['region'] = region unless region.nil?
6814
+ command.query['fields'] = fields unless fields.nil?
6815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6816
+ command.query['userIp'] = user_ip unless user_ip.nil?
6817
+ execute_or_queue_command(command, &block)
6818
+ end
6819
+
6820
+ # Retrieves a list of Router resources available to the specified project.
6821
+ # @param [String] project
6822
+ # Project ID for this request.
6823
+ # @param [String] region
6824
+ # Name of the region for this request.
6825
+ # @param [String] filter
6826
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6827
+ # expression`. Your `expression` must be in the format: field_name
6828
+ # comparison_string literal_string.
6829
+ # The field_name is the name of the field you want to compare. Only atomic field
6830
+ # types are supported (string, number, boolean). The comparison_string must be
6831
+ # either eq (equals) or ne (not equals). The literal_string is the string value
6832
+ # to filter to. The literal value must be valid for the type of field you are
6833
+ # filtering by (string, number, boolean). For string fields, the literal value
6834
+ # is interpreted as a regular expression using RE2 syntax. The literal value
6835
+ # must match the entire field.
6836
+ # For example, to filter for instances that do not have a name of example-
6837
+ # instance, you would use filter=name ne example-instance.
6838
+ # Compute Engine Beta API Only: When filtering in the Beta API, you can also
6839
+ # filter on nested fields. For example, you could filter on instances that have
6840
+ # set the scheduling.automaticRestart field to true. Use filtering on nested
6841
+ # fields to take advantage of labels to organize and search for results based on
6842
+ # label values.
6843
+ # The Beta API also supports filtering on multiple expressions by providing each
6844
+ # separate expression within parentheses. For example, (scheduling.
6845
+ # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
6846
+ # treated as AND expressions, meaning that resources must match all expressions
6847
+ # to pass the filters.
6848
+ # @param [Fixnum] max_results
6849
+ # The maximum number of results per page that should be returned. If the number
6850
+ # of available results is larger than maxResults, Compute Engine returns a
6851
+ # nextPageToken that can be used to get the next page of results in subsequent
6852
+ # list requests.
6853
+ # @param [String] page_token
6854
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
6855
+ # a previous list request to get the next page of results.
6856
+ # @param [String] fields
6857
+ # Selector specifying which fields to include in a partial response.
6858
+ # @param [String] quota_user
6859
+ # Available to use for quota purposes for server-side applications. Can be any
6860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6861
+ # Overrides userIp if both are provided.
6862
+ # @param [String] user_ip
6863
+ # IP address of the site where the request originates. Use this if you want to
6864
+ # enforce per-user limits.
6865
+ # @param [Google::Apis::RequestOptions] options
6866
+ # Request-specific options
6867
+ #
6868
+ # @yield [result, err] Result & error if block supplied
6869
+ # @yieldparam result [Google::Apis::ComputeV1::RouterList] parsed result object
6870
+ # @yieldparam err [StandardError] error object if request failed
6871
+ #
6872
+ # @return [Google::Apis::ComputeV1::RouterList]
6873
+ #
6874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6877
+ def list_routers(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6878
+ command = make_simple_command(:get, '{project}/regions/{region}/routers', options)
6879
+ command.response_representation = Google::Apis::ComputeV1::RouterList::Representation
6880
+ command.response_class = Google::Apis::ComputeV1::RouterList
6881
+ command.params['project'] = project unless project.nil?
6882
+ command.params['region'] = region unless region.nil?
6883
+ command.query['filter'] = filter unless filter.nil?
6884
+ command.query['maxResults'] = max_results unless max_results.nil?
6885
+ command.query['pageToken'] = page_token unless page_token.nil?
6886
+ command.query['fields'] = fields unless fields.nil?
6887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6888
+ command.query['userIp'] = user_ip unless user_ip.nil?
6889
+ execute_or_queue_command(command, &block)
6890
+ end
6891
+
6892
+ # Updates the entire content of the Router resource. This method supports patch
6893
+ # semantics.
6894
+ # @param [String] project
6895
+ # Project ID for this request.
6896
+ # @param [String] region
6897
+ # Name of the region for this request.
6898
+ # @param [String] router
6899
+ # Name of the Router resource to update.
6900
+ # @param [Google::Apis::ComputeV1::Router] router_object
6901
+ # @param [String] fields
6902
+ # Selector specifying which fields to include in a partial response.
6903
+ # @param [String] quota_user
6904
+ # Available to use for quota purposes for server-side applications. Can be any
6905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6906
+ # Overrides userIp if both are provided.
6907
+ # @param [String] user_ip
6908
+ # IP address of the site where the request originates. Use this if you want to
6909
+ # enforce per-user limits.
6910
+ # @param [Google::Apis::RequestOptions] options
6911
+ # Request-specific options
6912
+ #
6913
+ # @yield [result, err] Result & error if block supplied
6914
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6915
+ # @yieldparam err [StandardError] error object if request failed
6916
+ #
6917
+ # @return [Google::Apis::ComputeV1::Operation]
6918
+ #
6919
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6920
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6921
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6922
+ def patch_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6923
+ command = make_simple_command(:patch, '{project}/regions/{region}/routers/{router}', options)
6924
+ command.request_representation = Google::Apis::ComputeV1::Router::Representation
6925
+ command.request_object = router_object
6926
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6927
+ command.response_class = Google::Apis::ComputeV1::Operation
6928
+ command.params['project'] = project unless project.nil?
6929
+ command.params['region'] = region unless region.nil?
6930
+ command.params['router'] = router unless router.nil?
6931
+ command.query['fields'] = fields unless fields.nil?
6932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6933
+ command.query['userIp'] = user_ip unless user_ip.nil?
6934
+ execute_or_queue_command(command, &block)
6935
+ end
6936
+
6937
+ # Updates the entire content of the Router resource.
6938
+ # @param [String] project
6939
+ # Project ID for this request.
6940
+ # @param [String] region
6941
+ # Name of the region for this request.
6942
+ # @param [String] router
6943
+ # Name of the Router resource to update.
6944
+ # @param [Google::Apis::ComputeV1::Router] router_object
6945
+ # @param [String] fields
6946
+ # Selector specifying which fields to include in a partial response.
6947
+ # @param [String] quota_user
6948
+ # Available to use for quota purposes for server-side applications. Can be any
6949
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6950
+ # Overrides userIp if both are provided.
6951
+ # @param [String] user_ip
6952
+ # IP address of the site where the request originates. Use this if you want to
6953
+ # enforce per-user limits.
6954
+ # @param [Google::Apis::RequestOptions] options
6955
+ # Request-specific options
6956
+ #
6957
+ # @yield [result, err] Result & error if block supplied
6958
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6959
+ # @yieldparam err [StandardError] error object if request failed
6960
+ #
6961
+ # @return [Google::Apis::ComputeV1::Operation]
6962
+ #
6963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6966
+ def update_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6967
+ command = make_simple_command(:put, '{project}/regions/{region}/routers/{router}', options)
6968
+ command.request_representation = Google::Apis::ComputeV1::Router::Representation
6969
+ command.request_object = router_object
6970
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6971
+ command.response_class = Google::Apis::ComputeV1::Operation
6972
+ command.params['project'] = project unless project.nil?
6973
+ command.params['region'] = region unless region.nil?
6974
+ command.params['router'] = router unless router.nil?
6975
+ command.query['fields'] = fields unless fields.nil?
6976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6977
+ command.query['userIp'] = user_ip unless user_ip.nil?
6978
+ execute_or_queue_command(command, &block)
6979
+ end
6980
+
6541
6981
  # Deletes the specified Route resource.
6542
6982
  # @param [String] project
6543
6983
  # Project ID for this request.