google-api-client 0.9.20 → 0.9.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class BackendServiceAggregatedList
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class BackendServiceGroupHealth
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -160,6 +166,24 @@ module Google
160
166
  include Google::Apis::Core::JsonObjectSupport
161
167
  end
162
168
 
169
+ class BackendServicesScopedList
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ class Warning
173
+ class Representation < Google::Apis::Core::JsonRepresentation; end
174
+
175
+ class Datum
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ include Google::Apis::Core::JsonObjectSupport
182
+ end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
163
187
  class CacheInvalidationRule
164
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
189
 
@@ -328,7 +352,7 @@ module Google
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
354
 
331
- class Http2HealthCheck
355
+ class GuestOsFeature
332
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
357
 
334
358
  include Google::Apis::Core::JsonObjectSupport
@@ -640,6 +664,12 @@ module Google
640
664
  include Google::Apis::Core::JsonObjectSupport
641
665
  end
642
666
 
667
+ class InstancesSetServiceAccountRequest
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
643
673
  class InstancesStartWithEncryptionKeyRequest
644
674
  class Representation < Google::Apis::Core::JsonRepresentation; end
645
675
 
@@ -844,6 +874,78 @@ module Google
844
874
  include Google::Apis::Core::JsonObjectSupport
845
875
  end
846
876
 
877
+ class RegionAutoscalerList
878
+ class Representation < Google::Apis::Core::JsonRepresentation; end
879
+
880
+ include Google::Apis::Core::JsonObjectSupport
881
+ end
882
+
883
+ class RegionInstanceGroupList
884
+ class Representation < Google::Apis::Core::JsonRepresentation; end
885
+
886
+ include Google::Apis::Core::JsonObjectSupport
887
+ end
888
+
889
+ class RegionInstanceGroupManagerList
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
895
+ class RegionInstanceGroupManagersAbandonInstancesRequest
896
+ class Representation < Google::Apis::Core::JsonRepresentation; end
897
+
898
+ include Google::Apis::Core::JsonObjectSupport
899
+ end
900
+
901
+ class RegionInstanceGroupManagersDeleteInstancesRequest
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ class RegionInstanceGroupManagersListInstancesResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
913
+ class RegionInstanceGroupManagersRecreateRequest
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
919
+ class RegionInstanceGroupManagersSetTargetPoolsRequest
920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
921
+
922
+ include Google::Apis::Core::JsonObjectSupport
923
+ end
924
+
925
+ class RegionInstanceGroupManagersSetTemplateRequest
926
+ class Representation < Google::Apis::Core::JsonRepresentation; end
927
+
928
+ include Google::Apis::Core::JsonObjectSupport
929
+ end
930
+
931
+ class RegionInstanceGroupsListInstances
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
937
+ class RegionInstanceGroupsListInstancesRequest
938
+ class Representation < Google::Apis::Core::JsonRepresentation; end
939
+
940
+ include Google::Apis::Core::JsonObjectSupport
941
+ end
942
+
943
+ class RegionInstanceGroupsSetNamedPortsRequest
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
847
949
  class RegionList
848
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
951
 
@@ -1613,6 +1715,7 @@ module Google
1613
1715
  collection :health_checks, as: 'healthChecks'
1614
1716
  property :id, as: 'id'
1615
1717
  property :kind, as: 'kind'
1718
+ property :load_balancing_scheme, as: 'loadBalancingScheme'
1616
1719
  property :name, as: 'name'
1617
1720
  property :port, as: 'port'
1618
1721
  property :port_name, as: 'portName'
@@ -1624,6 +1727,18 @@ module Google
1624
1727
  end
1625
1728
  end
1626
1729
 
1730
+ class BackendServiceAggregatedList
1731
+ # @private
1732
+ class Representation < Google::Apis::Core::JsonRepresentation
1733
+ property :id, as: 'id'
1734
+ hash :items, as: 'items', class: Google::Apis::ComputeV1::BackendServicesScopedList, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Representation
1735
+
1736
+ property :kind, as: 'kind'
1737
+ property :next_page_token, as: 'nextPageToken'
1738
+ property :self_link, as: 'selfLink'
1739
+ end
1740
+ end
1741
+
1627
1742
  class BackendServiceGroupHealth
1628
1743
  # @private
1629
1744
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1645,9 +1760,38 @@ module Google
1645
1760
  end
1646
1761
  end
1647
1762
 
1763
+ class BackendServicesScopedList
1764
+ # @private
1765
+ class Representation < Google::Apis::Core::JsonRepresentation
1766
+ collection :backend_services, as: 'backendServices', class: Google::Apis::ComputeV1::BackendService, decorator: Google::Apis::ComputeV1::BackendService::Representation
1767
+
1768
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::BackendServicesScopedList::Warning, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Representation
1769
+
1770
+ end
1771
+
1772
+ class Warning
1773
+ # @private
1774
+ class Representation < Google::Apis::Core::JsonRepresentation
1775
+ property :code, as: 'code'
1776
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Datum::Representation
1777
+
1778
+ property :message, as: 'message'
1779
+ end
1780
+
1781
+ class Datum
1782
+ # @private
1783
+ class Representation < Google::Apis::Core::JsonRepresentation
1784
+ property :key, as: 'key'
1785
+ property :value, as: 'value'
1786
+ end
1787
+ end
1788
+ end
1789
+ end
1790
+
1648
1791
  class CacheInvalidationRule
1649
1792
  # @private
1650
1793
  class Representation < Google::Apis::Core::JsonRepresentation
1794
+ property :host, as: 'host'
1651
1795
  property :path, as: 'path'
1652
1796
  end
1653
1797
  end
@@ -1897,14 +2041,19 @@ module Google
1897
2041
  class Representation < Google::Apis::Core::JsonRepresentation
1898
2042
  property :ip_address, as: 'IPAddress'
1899
2043
  property :ip_protocol, as: 'IPProtocol'
2044
+ property :backend_service, as: 'backendService'
1900
2045
  property :creation_timestamp, as: 'creationTimestamp'
1901
2046
  property :description, as: 'description'
1902
2047
  property :id, as: 'id'
1903
2048
  property :kind, as: 'kind'
2049
+ property :load_balancing_scheme, as: 'loadBalancingScheme'
1904
2050
  property :name, as: 'name'
2051
+ property :network, as: 'network'
1905
2052
  property :port_range, as: 'portRange'
2053
+ collection :ports, as: 'ports'
1906
2054
  property :region, as: 'region'
1907
2055
  property :self_link, as: 'selfLink'
2056
+ property :subnetwork, as: 'subnetwork'
1908
2057
  property :target, as: 'target'
1909
2058
  end
1910
2059
  end
@@ -1961,14 +2110,10 @@ module Google
1961
2110
  end
1962
2111
  end
1963
2112
 
1964
- class Http2HealthCheck
2113
+ class GuestOsFeature
1965
2114
  # @private
1966
2115
  class Representation < Google::Apis::Core::JsonRepresentation
1967
- property :host, as: 'host'
1968
- property :port, as: 'port'
1969
- property :port_name, as: 'portName'
1970
- property :proxy_header, as: 'proxyHeader'
1971
- property :request_path, as: 'requestPath'
2116
+ property :type, as: 'type'
1972
2117
  end
1973
2118
  end
1974
2119
 
@@ -2001,8 +2146,6 @@ module Google
2001
2146
  property :creation_timestamp, as: 'creationTimestamp'
2002
2147
  property :description, as: 'description'
2003
2148
  property :healthy_threshold, as: 'healthyThreshold'
2004
- property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeV1::Http2HealthCheck, decorator: Google::Apis::ComputeV1::Http2HealthCheck::Representation
2005
-
2006
2149
  property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeV1::HttpHealthCheck, decorator: Google::Apis::ComputeV1::HttpHealthCheck::Representation
2007
2150
 
2008
2151
  property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeV1::HttpsHealthCheck, decorator: Google::Apis::ComputeV1::HttpsHealthCheck::Representation
@@ -2131,6 +2274,8 @@ module Google
2131
2274
  property :description, as: 'description'
2132
2275
  property :disk_size_gb, as: 'diskSizeGb'
2133
2276
  property :family, as: 'family'
2277
+ collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
2278
+
2134
2279
  property :id, as: 'id'
2135
2280
  property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
2136
2281
 
@@ -2581,6 +2726,14 @@ module Google
2581
2726
  end
2582
2727
  end
2583
2728
 
2729
+ class InstancesSetServiceAccountRequest
2730
+ # @private
2731
+ class Representation < Google::Apis::Core::JsonRepresentation
2732
+ property :email, as: 'email'
2733
+ collection :scopes, as: 'scopes'
2734
+ end
2735
+ end
2736
+
2584
2737
  class InstancesStartWithEncryptionKeyRequest
2585
2738
  # @private
2586
2739
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2765,6 +2918,7 @@ module Google
2765
2918
  class Representation < Google::Apis::Core::JsonRepresentation
2766
2919
  collection :access_configs, as: 'accessConfigs', class: Google::Apis::ComputeV1::AccessConfig, decorator: Google::Apis::ComputeV1::AccessConfig::Representation
2767
2920
 
2921
+ property :kind, as: 'kind'
2768
2922
  property :name, as: 'name'
2769
2923
  property :network, as: 'network'
2770
2924
  property :network_ip, as: 'networkIP'
@@ -2968,6 +3122,115 @@ module Google
2968
3122
  end
2969
3123
  end
2970
3124
 
3125
+ class RegionAutoscalerList
3126
+ # @private
3127
+ class Representation < Google::Apis::Core::JsonRepresentation
3128
+ property :id, as: 'id'
3129
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation
3130
+
3131
+ property :kind, as: 'kind'
3132
+ property :next_page_token, as: 'nextPageToken'
3133
+ property :self_link, as: 'selfLink'
3134
+ end
3135
+ end
3136
+
3137
+ class RegionInstanceGroupList
3138
+ # @private
3139
+ class Representation < Google::Apis::Core::JsonRepresentation
3140
+ property :id, as: 'id'
3141
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation
3142
+
3143
+ property :kind, as: 'kind'
3144
+ property :next_page_token, as: 'nextPageToken'
3145
+ property :self_link, as: 'selfLink'
3146
+ end
3147
+ end
3148
+
3149
+ class RegionInstanceGroupManagerList
3150
+ # @private
3151
+ class Representation < Google::Apis::Core::JsonRepresentation
3152
+ property :id, as: 'id'
3153
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation
3154
+
3155
+ property :kind, as: 'kind'
3156
+ property :next_page_token, as: 'nextPageToken'
3157
+ property :self_link, as: 'selfLink'
3158
+ end
3159
+ end
3160
+
3161
+ class RegionInstanceGroupManagersAbandonInstancesRequest
3162
+ # @private
3163
+ class Representation < Google::Apis::Core::JsonRepresentation
3164
+ collection :instances, as: 'instances'
3165
+ end
3166
+ end
3167
+
3168
+ class RegionInstanceGroupManagersDeleteInstancesRequest
3169
+ # @private
3170
+ class Representation < Google::Apis::Core::JsonRepresentation
3171
+ collection :instances, as: 'instances'
3172
+ end
3173
+ end
3174
+
3175
+ class RegionInstanceGroupManagersListInstancesResponse
3176
+ # @private
3177
+ class Representation < Google::Apis::Core::JsonRepresentation
3178
+ collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeV1::ManagedInstance, decorator: Google::Apis::ComputeV1::ManagedInstance::Representation
3179
+
3180
+ end
3181
+ end
3182
+
3183
+ class RegionInstanceGroupManagersRecreateRequest
3184
+ # @private
3185
+ class Representation < Google::Apis::Core::JsonRepresentation
3186
+ collection :instances, as: 'instances'
3187
+ end
3188
+ end
3189
+
3190
+ class RegionInstanceGroupManagersSetTargetPoolsRequest
3191
+ # @private
3192
+ class Representation < Google::Apis::Core::JsonRepresentation
3193
+ property :fingerprint, :base64 => true, as: 'fingerprint'
3194
+ collection :target_pools, as: 'targetPools'
3195
+ end
3196
+ end
3197
+
3198
+ class RegionInstanceGroupManagersSetTemplateRequest
3199
+ # @private
3200
+ class Representation < Google::Apis::Core::JsonRepresentation
3201
+ property :instance_template, as: 'instanceTemplate'
3202
+ end
3203
+ end
3204
+
3205
+ class RegionInstanceGroupsListInstances
3206
+ # @private
3207
+ class Representation < Google::Apis::Core::JsonRepresentation
3208
+ property :id, as: 'id'
3209
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceWithNamedPorts, decorator: Google::Apis::ComputeV1::InstanceWithNamedPorts::Representation
3210
+
3211
+ property :kind, as: 'kind'
3212
+ property :next_page_token, as: 'nextPageToken'
3213
+ property :self_link, as: 'selfLink'
3214
+ end
3215
+ end
3216
+
3217
+ class RegionInstanceGroupsListInstancesRequest
3218
+ # @private
3219
+ class Representation < Google::Apis::Core::JsonRepresentation
3220
+ property :instance_state, as: 'instanceState'
3221
+ property :port_name, as: 'portName'
3222
+ end
3223
+ end
3224
+
3225
+ class RegionInstanceGroupsSetNamedPortsRequest
3226
+ # @private
3227
+ class Representation < Google::Apis::Core::JsonRepresentation
3228
+ property :fingerprint, :base64 => true, as: 'fingerprint'
3229
+ collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
3230
+
3231
+ end
3232
+ end
3233
+
2971
3234
  class RegionList
2972
3235
  # @private
2973
3236
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3210,7 +3473,9 @@ module Google
3210
3473
  class Representation < Google::Apis::Core::JsonRepresentation
3211
3474
  property :contents, as: 'contents'
3212
3475
  property :kind, as: 'kind'
3476
+ property :next, as: 'next'
3213
3477
  property :self_link, as: 'selfLink'
3478
+ property :start, as: 'start'
3214
3479
  end
3215
3480
  end
3216
3481
 
@@ -705,6 +705,84 @@ module Google
705
705
  execute_or_queue_command(command, &block)
706
706
  end
707
707
 
708
+ # Retrieves the list of all BackendService resources, regional and global,
709
+ # available to the specified project.
710
+ # @param [String] project
711
+ # Name of the project scoping this request.
712
+ # @param [String] filter
713
+ # Sets a filter expression for filtering listed resources, in the form filter=`
714
+ # expression`. Your `expression` must be in the format: field_name
715
+ # comparison_string literal_string.
716
+ # The field_name is the name of the field you want to compare. Only atomic field
717
+ # types are supported (string, number, boolean). The comparison_string must be
718
+ # either eq (equals) or ne (not equals). The literal_string is the string value
719
+ # to filter to. The literal value must be valid for the type of field you are
720
+ # filtering by (string, number, boolean). For string fields, the literal value
721
+ # is interpreted as a regular expression using RE2 syntax. The literal value
722
+ # must match the entire field.
723
+ # For example, to filter for instances that do not have a name of example-
724
+ # instance, you would use filter=name ne example-instance.
725
+ # You can filter on nested fields. For example, you could filter on instances
726
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
727
+ # nested fields to take advantage of labels to organize and search for results
728
+ # based on label values.
729
+ # To filter on multiple expressions, provide each separate expression within
730
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
731
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
732
+ # resources must match all expressions to pass the filters.
733
+ # @param [Fixnum] max_results
734
+ # The maximum number of results per page that should be returned. If the number
735
+ # of available results is larger than maxResults, Compute Engine returns a
736
+ # nextPageToken that can be used to get the next page of results in subsequent
737
+ # list requests.
738
+ # @param [String] order_by
739
+ # Sorts list results by a certain order. By default, results are returned in
740
+ # alphanumerical order based on the resource name.
741
+ # You can also sort results in descending order based on the creation timestamp
742
+ # using orderBy="creationTimestamp desc". This sorts results based on the
743
+ # creationTimestamp field in reverse chronological order (newest result first).
744
+ # Use this to sort resources like operations so that the newest operation is
745
+ # returned first.
746
+ # Currently, only sorting by name or creationTimestamp desc is supported.
747
+ # @param [String] page_token
748
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
749
+ # a previous list request to get the next page of results.
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # Overrides userIp if both are provided.
756
+ # @param [String] user_ip
757
+ # IP address of the site where the request originates. Use this if you want to
758
+ # enforce per-user limits.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceAggregatedList] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::ComputeV1::BackendServiceAggregatedList]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def aggregated_backend_service_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
772
+ command = make_simple_command(:get, '{project}/aggregated/backendServices', options)
773
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceAggregatedList::Representation
774
+ command.response_class = Google::Apis::ComputeV1::BackendServiceAggregatedList
775
+ command.params['project'] = project unless project.nil?
776
+ command.query['filter'] = filter unless filter.nil?
777
+ command.query['maxResults'] = max_results unless max_results.nil?
778
+ command.query['orderBy'] = order_by unless order_by.nil?
779
+ command.query['pageToken'] = page_token unless page_token.nil?
780
+ command.query['fields'] = fields unless fields.nil?
781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
782
+ command.query['userIp'] = user_ip unless user_ip.nil?
783
+ execute_or_queue_command(command, &block)
784
+ end
785
+
708
786
  # Deletes the specified BackendService resource.
709
787
  # @param [String] project
710
788
  # Project ID for this request.
@@ -4379,6 +4457,7 @@ module Google
4379
4457
  # The name of the managed instance group.
4380
4458
  # @param [String] filter
4381
4459
  # @param [Fixnum] max_results
4460
+ # @param [String] order_by
4382
4461
  # @param [String] page_token
4383
4462
  # @param [String] fields
4384
4463
  # Selector specifying which fields to include in a partial response.
@@ -4401,7 +4480,7 @@ module Google
4401
4480
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4402
4481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4403
4482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4404
- def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4483
+ def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4405
4484
  command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
4406
4485
  command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse::Representation
4407
4486
  command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse
@@ -4410,6 +4489,7 @@ module Google
4410
4489
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
4411
4490
  command.query['filter'] = filter unless filter.nil?
4412
4491
  command.query['maxResults'] = max_results unless max_results.nil?
4492
+ command.query['order_by'] = order_by unless order_by.nil?
4413
4493
  command.query['pageToken'] = page_token unless page_token.nil?
4414
4494
  command.query['fields'] = fields unless fields.nil?
4415
4495
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -5670,6 +5750,10 @@ module Google
5670
5750
  # Name of the instance scoping this request.
5671
5751
  # @param [Fixnum] port
5672
5752
  # Specifies which COM or serial port to retrieve data from.
5753
+ # @param [String] start
5754
+ # For the initial request, leave this field unspecified. For subsequent calls,
5755
+ # this field should be set to the next value that was returned in the previous
5756
+ # call.
5673
5757
  # @param [String] fields
5674
5758
  # Selector specifying which fields to include in a partial response.
5675
5759
  # @param [String] quota_user
@@ -5691,7 +5775,7 @@ module Google
5691
5775
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5692
5776
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5693
5777
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5694
- def get_instance_serial_port_output(project, zone, instance, port: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5778
+ def get_instance_serial_port_output(project, zone, instance, port: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5695
5779
  command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options)
5696
5780
  command.response_representation = Google::Apis::ComputeV1::SerialPortOutput::Representation
5697
5781
  command.response_class = Google::Apis::ComputeV1::SerialPortOutput
@@ -5699,6 +5783,7 @@ module Google
5699
5783
  command.params['zone'] = zone unless zone.nil?
5700
5784
  command.params['instance'] = instance unless instance.nil?
5701
5785
  command.query['port'] = port unless port.nil?
5786
+ command.query['start'] = start unless start.nil?
5702
5787
  command.query['fields'] = fields unless fields.nil?
5703
5788
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5704
5789
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -6048,6 +6133,50 @@ module Google
6048
6133
  execute_or_queue_command(command, &block)
6049
6134
  end
6050
6135
 
6136
+ # Sets the service account on the instance.
6137
+ # @param [String] project
6138
+ # Project ID for this request.
6139
+ # @param [String] zone
6140
+ # The name of the zone for this request.
6141
+ # @param [String] instance
6142
+ # Name of the instance resource to start.
6143
+ # @param [Google::Apis::ComputeV1::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
6144
+ # @param [String] fields
6145
+ # Selector specifying which fields to include in a partial response.
6146
+ # @param [String] quota_user
6147
+ # Available to use for quota purposes for server-side applications. Can be any
6148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6149
+ # Overrides userIp if both are provided.
6150
+ # @param [String] user_ip
6151
+ # IP address of the site where the request originates. Use this if you want to
6152
+ # enforce per-user limits.
6153
+ # @param [Google::Apis::RequestOptions] options
6154
+ # Request-specific options
6155
+ #
6156
+ # @yield [result, err] Result & error if block supplied
6157
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6158
+ # @yieldparam err [StandardError] error object if request failed
6159
+ #
6160
+ # @return [Google::Apis::ComputeV1::Operation]
6161
+ #
6162
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6163
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6164
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6165
+ def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6166
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
6167
+ command.request_representation = Google::Apis::ComputeV1::InstancesSetServiceAccountRequest::Representation
6168
+ command.request_object = instances_set_service_account_request_object
6169
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6170
+ command.response_class = Google::Apis::ComputeV1::Operation
6171
+ command.params['project'] = project unless project.nil?
6172
+ command.params['zone'] = zone unless zone.nil?
6173
+ command.params['instance'] = instance unless instance.nil?
6174
+ command.query['fields'] = fields unless fields.nil?
6175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6176
+ command.query['userIp'] = user_ip unless user_ip.nil?
6177
+ execute_or_queue_command(command, &block)
6178
+ end
6179
+
6051
6180
  # Sets tags for the specified instance to the data included in the request.
6052
6181
  # @param [String] project
6053
6182
  # Project ID for this request.
@@ -6884,6 +7013,1449 @@ module Google
6884
7013
  execute_or_queue_command(command, &block)
6885
7014
  end
6886
7015
 
7016
+ # Deletes the specified autoscaler.
7017
+ # @param [String] project
7018
+ # Project ID for this request.
7019
+ # @param [String] region
7020
+ # Name of the region scoping this request.
7021
+ # @param [String] autoscaler
7022
+ # Name of the autoscaler to delete.
7023
+ # @param [String] fields
7024
+ # Selector specifying which fields to include in a partial response.
7025
+ # @param [String] quota_user
7026
+ # Available to use for quota purposes for server-side applications. Can be any
7027
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7028
+ # Overrides userIp if both are provided.
7029
+ # @param [String] user_ip
7030
+ # IP address of the site where the request originates. Use this if you want to
7031
+ # enforce per-user limits.
7032
+ # @param [Google::Apis::RequestOptions] options
7033
+ # Request-specific options
7034
+ #
7035
+ # @yield [result, err] Result & error if block supplied
7036
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7037
+ # @yieldparam err [StandardError] error object if request failed
7038
+ #
7039
+ # @return [Google::Apis::ComputeV1::Operation]
7040
+ #
7041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7044
+ def delete_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7045
+ command = make_simple_command(:delete, '{project}/regions/{region}/autoscalers/{autoscaler}', options)
7046
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7047
+ command.response_class = Google::Apis::ComputeV1::Operation
7048
+ command.params['project'] = project unless project.nil?
7049
+ command.params['region'] = region unless region.nil?
7050
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
7051
+ command.query['fields'] = fields unless fields.nil?
7052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7053
+ command.query['userIp'] = user_ip unless user_ip.nil?
7054
+ execute_or_queue_command(command, &block)
7055
+ end
7056
+
7057
+ # Returns the specified autoscaler.
7058
+ # @param [String] project
7059
+ # Project ID for this request.
7060
+ # @param [String] region
7061
+ # Name of the region scoping this request.
7062
+ # @param [String] autoscaler
7063
+ # Name of the autoscaler to return.
7064
+ # @param [String] fields
7065
+ # Selector specifying which fields to include in a partial response.
7066
+ # @param [String] quota_user
7067
+ # Available to use for quota purposes for server-side applications. Can be any
7068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7069
+ # Overrides userIp if both are provided.
7070
+ # @param [String] user_ip
7071
+ # IP address of the site where the request originates. Use this if you want to
7072
+ # enforce per-user limits.
7073
+ # @param [Google::Apis::RequestOptions] options
7074
+ # Request-specific options
7075
+ #
7076
+ # @yield [result, err] Result & error if block supplied
7077
+ # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object
7078
+ # @yieldparam err [StandardError] error object if request failed
7079
+ #
7080
+ # @return [Google::Apis::ComputeV1::Autoscaler]
7081
+ #
7082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7085
+ def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7086
+ command = make_simple_command(:get, '{project}/regions/{region}/autoscalers/{autoscaler}', options)
7087
+ command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation
7088
+ command.response_class = Google::Apis::ComputeV1::Autoscaler
7089
+ command.params['project'] = project unless project.nil?
7090
+ command.params['region'] = region unless region.nil?
7091
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
7092
+ command.query['fields'] = fields unless fields.nil?
7093
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7094
+ command.query['userIp'] = user_ip unless user_ip.nil?
7095
+ execute_or_queue_command(command, &block)
7096
+ end
7097
+
7098
+ # Creates an autoscaler in the specified project using the data included in the
7099
+ # request.
7100
+ # @param [String] project
7101
+ # Project ID for this request.
7102
+ # @param [String] region
7103
+ # Name of the region scoping this request.
7104
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
7105
+ # @param [String] fields
7106
+ # Selector specifying which fields to include in a partial response.
7107
+ # @param [String] quota_user
7108
+ # Available to use for quota purposes for server-side applications. Can be any
7109
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7110
+ # Overrides userIp if both are provided.
7111
+ # @param [String] user_ip
7112
+ # IP address of the site where the request originates. Use this if you want to
7113
+ # enforce per-user limits.
7114
+ # @param [Google::Apis::RequestOptions] options
7115
+ # Request-specific options
7116
+ #
7117
+ # @yield [result, err] Result & error if block supplied
7118
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7119
+ # @yieldparam err [StandardError] error object if request failed
7120
+ #
7121
+ # @return [Google::Apis::ComputeV1::Operation]
7122
+ #
7123
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7124
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7125
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7126
+ def insert_region_autoscaler(project, region, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7127
+ command = make_simple_command(:post, '{project}/regions/{region}/autoscalers', options)
7128
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
7129
+ command.request_object = autoscaler_object
7130
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7131
+ command.response_class = Google::Apis::ComputeV1::Operation
7132
+ command.params['project'] = project unless project.nil?
7133
+ command.params['region'] = region unless region.nil?
7134
+ command.query['fields'] = fields unless fields.nil?
7135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7136
+ command.query['userIp'] = user_ip unless user_ip.nil?
7137
+ execute_or_queue_command(command, &block)
7138
+ end
7139
+
7140
+ # Retrieves a list of autoscalers contained within the specified region.
7141
+ # @param [String] project
7142
+ # Project ID for this request.
7143
+ # @param [String] region
7144
+ # Name of the region scoping this request.
7145
+ # @param [String] filter
7146
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7147
+ # expression`. Your `expression` must be in the format: field_name
7148
+ # comparison_string literal_string.
7149
+ # The field_name is the name of the field you want to compare. Only atomic field
7150
+ # types are supported (string, number, boolean). The comparison_string must be
7151
+ # either eq (equals) or ne (not equals). The literal_string is the string value
7152
+ # to filter to. The literal value must be valid for the type of field you are
7153
+ # filtering by (string, number, boolean). For string fields, the literal value
7154
+ # is interpreted as a regular expression using RE2 syntax. The literal value
7155
+ # must match the entire field.
7156
+ # For example, to filter for instances that do not have a name of example-
7157
+ # instance, you would use filter=name ne example-instance.
7158
+ # You can filter on nested fields. For example, you could filter on instances
7159
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
7160
+ # nested fields to take advantage of labels to organize and search for results
7161
+ # based on label values.
7162
+ # To filter on multiple expressions, provide each separate expression within
7163
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
7164
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
7165
+ # resources must match all expressions to pass the filters.
7166
+ # @param [Fixnum] max_results
7167
+ # The maximum number of results per page that should be returned. If the number
7168
+ # of available results is larger than maxResults, Compute Engine returns a
7169
+ # nextPageToken that can be used to get the next page of results in subsequent
7170
+ # list requests.
7171
+ # @param [String] order_by
7172
+ # Sorts list results by a certain order. By default, results are returned in
7173
+ # alphanumerical order based on the resource name.
7174
+ # You can also sort results in descending order based on the creation timestamp
7175
+ # using orderBy="creationTimestamp desc". This sorts results based on the
7176
+ # creationTimestamp field in reverse chronological order (newest result first).
7177
+ # Use this to sort resources like operations so that the newest operation is
7178
+ # returned first.
7179
+ # Currently, only sorting by name or creationTimestamp desc is supported.
7180
+ # @param [String] page_token
7181
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
7182
+ # a previous list request to get the next page of results.
7183
+ # @param [String] fields
7184
+ # Selector specifying which fields to include in a partial response.
7185
+ # @param [String] quota_user
7186
+ # Available to use for quota purposes for server-side applications. Can be any
7187
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7188
+ # Overrides userIp if both are provided.
7189
+ # @param [String] user_ip
7190
+ # IP address of the site where the request originates. Use this if you want to
7191
+ # enforce per-user limits.
7192
+ # @param [Google::Apis::RequestOptions] options
7193
+ # Request-specific options
7194
+ #
7195
+ # @yield [result, err] Result & error if block supplied
7196
+ # @yieldparam result [Google::Apis::ComputeV1::RegionAutoscalerList] parsed result object
7197
+ # @yieldparam err [StandardError] error object if request failed
7198
+ #
7199
+ # @return [Google::Apis::ComputeV1::RegionAutoscalerList]
7200
+ #
7201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7204
+ def list_region_autoscalers(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7205
+ command = make_simple_command(:get, '{project}/regions/{region}/autoscalers', options)
7206
+ command.response_representation = Google::Apis::ComputeV1::RegionAutoscalerList::Representation
7207
+ command.response_class = Google::Apis::ComputeV1::RegionAutoscalerList
7208
+ command.params['project'] = project unless project.nil?
7209
+ command.params['region'] = region unless region.nil?
7210
+ command.query['filter'] = filter unless filter.nil?
7211
+ command.query['maxResults'] = max_results unless max_results.nil?
7212
+ command.query['orderBy'] = order_by unless order_by.nil?
7213
+ command.query['pageToken'] = page_token unless page_token.nil?
7214
+ command.query['fields'] = fields unless fields.nil?
7215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7216
+ command.query['userIp'] = user_ip unless user_ip.nil?
7217
+ execute_or_queue_command(command, &block)
7218
+ end
7219
+
7220
+ # Updates an autoscaler in the specified project using the data included in the
7221
+ # request. This method supports patch semantics.
7222
+ # @param [String] project
7223
+ # Project ID for this request.
7224
+ # @param [String] region
7225
+ # Name of the region scoping this request.
7226
+ # @param [String] autoscaler
7227
+ # Name of the autoscaler to update.
7228
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
7229
+ # @param [String] fields
7230
+ # Selector specifying which fields to include in a partial response.
7231
+ # @param [String] quota_user
7232
+ # Available to use for quota purposes for server-side applications. Can be any
7233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7234
+ # Overrides userIp if both are provided.
7235
+ # @param [String] user_ip
7236
+ # IP address of the site where the request originates. Use this if you want to
7237
+ # enforce per-user limits.
7238
+ # @param [Google::Apis::RequestOptions] options
7239
+ # Request-specific options
7240
+ #
7241
+ # @yield [result, err] Result & error if block supplied
7242
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7243
+ # @yieldparam err [StandardError] error object if request failed
7244
+ #
7245
+ # @return [Google::Apis::ComputeV1::Operation]
7246
+ #
7247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7250
+ def patch_region_autoscaler(project, region, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7251
+ command = make_simple_command(:patch, '{project}/regions/{region}/autoscalers', options)
7252
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
7253
+ command.request_object = autoscaler_object
7254
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7255
+ command.response_class = Google::Apis::ComputeV1::Operation
7256
+ command.params['project'] = project unless project.nil?
7257
+ command.params['region'] = region unless region.nil?
7258
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
7259
+ command.query['fields'] = fields unless fields.nil?
7260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7261
+ command.query['userIp'] = user_ip unless user_ip.nil?
7262
+ execute_or_queue_command(command, &block)
7263
+ end
7264
+
7265
+ # Updates an autoscaler in the specified project using the data included in the
7266
+ # request.
7267
+ # @param [String] project
7268
+ # Project ID for this request.
7269
+ # @param [String] region
7270
+ # Name of the region scoping this request.
7271
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
7272
+ # @param [String] autoscaler
7273
+ # Name of the autoscaler to update.
7274
+ # @param [String] fields
7275
+ # Selector specifying which fields to include in a partial response.
7276
+ # @param [String] quota_user
7277
+ # Available to use for quota purposes for server-side applications. Can be any
7278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7279
+ # Overrides userIp if both are provided.
7280
+ # @param [String] user_ip
7281
+ # IP address of the site where the request originates. Use this if you want to
7282
+ # enforce per-user limits.
7283
+ # @param [Google::Apis::RequestOptions] options
7284
+ # Request-specific options
7285
+ #
7286
+ # @yield [result, err] Result & error if block supplied
7287
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7288
+ # @yieldparam err [StandardError] error object if request failed
7289
+ #
7290
+ # @return [Google::Apis::ComputeV1::Operation]
7291
+ #
7292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7295
+ def update_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7296
+ command = make_simple_command(:put, '{project}/regions/{region}/autoscalers', options)
7297
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
7298
+ command.request_object = autoscaler_object
7299
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7300
+ command.response_class = Google::Apis::ComputeV1::Operation
7301
+ command.params['project'] = project unless project.nil?
7302
+ command.params['region'] = region unless region.nil?
7303
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
7304
+ command.query['fields'] = fields unless fields.nil?
7305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7306
+ command.query['userIp'] = user_ip unless user_ip.nil?
7307
+ execute_or_queue_command(command, &block)
7308
+ end
7309
+
7310
+ # Deletes the specified regional BackendService resource.
7311
+ # @param [String] project
7312
+ # Project ID for this request.
7313
+ # @param [String] region
7314
+ # Name of the region scoping this request.
7315
+ # @param [String] backend_service
7316
+ # Name of the BackendService resource to delete.
7317
+ # @param [String] fields
7318
+ # Selector specifying which fields to include in a partial response.
7319
+ # @param [String] quota_user
7320
+ # Available to use for quota purposes for server-side applications. Can be any
7321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7322
+ # Overrides userIp if both are provided.
7323
+ # @param [String] user_ip
7324
+ # IP address of the site where the request originates. Use this if you want to
7325
+ # enforce per-user limits.
7326
+ # @param [Google::Apis::RequestOptions] options
7327
+ # Request-specific options
7328
+ #
7329
+ # @yield [result, err] Result & error if block supplied
7330
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7331
+ # @yieldparam err [StandardError] error object if request failed
7332
+ #
7333
+ # @return [Google::Apis::ComputeV1::Operation]
7334
+ #
7335
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7336
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7337
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7338
+ def delete_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7339
+ command = make_simple_command(:delete, '{project}/regions/{region}/backendServices/{backendService}', options)
7340
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7341
+ command.response_class = Google::Apis::ComputeV1::Operation
7342
+ command.params['project'] = project unless project.nil?
7343
+ command.params['region'] = region unless region.nil?
7344
+ command.params['backendService'] = backend_service unless backend_service.nil?
7345
+ command.query['fields'] = fields unless fields.nil?
7346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7347
+ command.query['userIp'] = user_ip unless user_ip.nil?
7348
+ execute_or_queue_command(command, &block)
7349
+ end
7350
+
7351
+ # Returns the specified regional BackendService resource.
7352
+ # @param [String] project
7353
+ # Project ID for this request.
7354
+ # @param [String] region
7355
+ # Name of the region scoping this request.
7356
+ # @param [String] backend_service
7357
+ # Name of the BackendService resource to return.
7358
+ # @param [String] fields
7359
+ # Selector specifying which fields to include in a partial response.
7360
+ # @param [String] quota_user
7361
+ # Available to use for quota purposes for server-side applications. Can be any
7362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7363
+ # Overrides userIp if both are provided.
7364
+ # @param [String] user_ip
7365
+ # IP address of the site where the request originates. Use this if you want to
7366
+ # enforce per-user limits.
7367
+ # @param [Google::Apis::RequestOptions] options
7368
+ # Request-specific options
7369
+ #
7370
+ # @yield [result, err] Result & error if block supplied
7371
+ # @yieldparam result [Google::Apis::ComputeV1::BackendService] parsed result object
7372
+ # @yieldparam err [StandardError] error object if request failed
7373
+ #
7374
+ # @return [Google::Apis::ComputeV1::BackendService]
7375
+ #
7376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7379
+ def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7380
+ command = make_simple_command(:get, '{project}/regions/{region}/backendServices/{backendService}', options)
7381
+ command.response_representation = Google::Apis::ComputeV1::BackendService::Representation
7382
+ command.response_class = Google::Apis::ComputeV1::BackendService
7383
+ command.params['project'] = project unless project.nil?
7384
+ command.params['region'] = region unless region.nil?
7385
+ command.params['backendService'] = backend_service unless backend_service.nil?
7386
+ command.query['fields'] = fields unless fields.nil?
7387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7388
+ command.query['userIp'] = user_ip unless user_ip.nil?
7389
+ execute_or_queue_command(command, &block)
7390
+ end
7391
+
7392
+ # Gets the most recent health check results for this regional BackendService.
7393
+ # @param [String] project
7394
+ # @param [String] region
7395
+ # Name of the region scoping this request.
7396
+ # @param [String] backend_service
7397
+ # Name of the BackendService resource to which the queried instance belongs.
7398
+ # @param [Google::Apis::ComputeV1::ResourceGroupReference] resource_group_reference_object
7399
+ # @param [String] fields
7400
+ # Selector specifying which fields to include in a partial response.
7401
+ # @param [String] quota_user
7402
+ # Available to use for quota purposes for server-side applications. Can be any
7403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7404
+ # Overrides userIp if both are provided.
7405
+ # @param [String] user_ip
7406
+ # IP address of the site where the request originates. Use this if you want to
7407
+ # enforce per-user limits.
7408
+ # @param [Google::Apis::RequestOptions] options
7409
+ # Request-specific options
7410
+ #
7411
+ # @yield [result, err] Result & error if block supplied
7412
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceGroupHealth] parsed result object
7413
+ # @yieldparam err [StandardError] error object if request failed
7414
+ #
7415
+ # @return [Google::Apis::ComputeV1::BackendServiceGroupHealth]
7416
+ #
7417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7420
+ def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7421
+ command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{backendService}/getHealth', options)
7422
+ command.request_representation = Google::Apis::ComputeV1::ResourceGroupReference::Representation
7423
+ command.request_object = resource_group_reference_object
7424
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceGroupHealth::Representation
7425
+ command.response_class = Google::Apis::ComputeV1::BackendServiceGroupHealth
7426
+ command.params['project'] = project unless project.nil?
7427
+ command.params['region'] = region unless region.nil?
7428
+ command.params['backendService'] = backend_service unless backend_service.nil?
7429
+ command.query['fields'] = fields unless fields.nil?
7430
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7431
+ command.query['userIp'] = user_ip unless user_ip.nil?
7432
+ execute_or_queue_command(command, &block)
7433
+ end
7434
+
7435
+ # Creates a regional BackendService resource in the specified project using the
7436
+ # data included in the request. There are several restrictions and guidelines to
7437
+ # keep in mind when creating a regional backend service. Read Restrictions and
7438
+ # Guidelines for more information.
7439
+ # @param [String] project
7440
+ # Project ID for this request.
7441
+ # @param [String] region
7442
+ # Name of the region scoping this request.
7443
+ # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
7444
+ # @param [String] fields
7445
+ # Selector specifying which fields to include in a partial response.
7446
+ # @param [String] quota_user
7447
+ # Available to use for quota purposes for server-side applications. Can be any
7448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7449
+ # Overrides userIp if both are provided.
7450
+ # @param [String] user_ip
7451
+ # IP address of the site where the request originates. Use this if you want to
7452
+ # enforce per-user limits.
7453
+ # @param [Google::Apis::RequestOptions] options
7454
+ # Request-specific options
7455
+ #
7456
+ # @yield [result, err] Result & error if block supplied
7457
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7458
+ # @yieldparam err [StandardError] error object if request failed
7459
+ #
7460
+ # @return [Google::Apis::ComputeV1::Operation]
7461
+ #
7462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7465
+ def insert_region_backend_service(project, region, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7466
+ command = make_simple_command(:post, '{project}/regions/{region}/backendServices', options)
7467
+ command.request_representation = Google::Apis::ComputeV1::BackendService::Representation
7468
+ command.request_object = backend_service_object
7469
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7470
+ command.response_class = Google::Apis::ComputeV1::Operation
7471
+ command.params['project'] = project unless project.nil?
7472
+ command.params['region'] = region unless region.nil?
7473
+ command.query['fields'] = fields unless fields.nil?
7474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7475
+ command.query['userIp'] = user_ip unless user_ip.nil?
7476
+ execute_or_queue_command(command, &block)
7477
+ end
7478
+
7479
+ # Retrieves the list of regional BackendService resources available to the
7480
+ # specified project in the given region.
7481
+ # @param [String] project
7482
+ # Project ID for this request.
7483
+ # @param [String] region
7484
+ # Name of the region scoping this request.
7485
+ # @param [String] filter
7486
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7487
+ # expression`. Your `expression` must be in the format: field_name
7488
+ # comparison_string literal_string.
7489
+ # The field_name is the name of the field you want to compare. Only atomic field
7490
+ # types are supported (string, number, boolean). The comparison_string must be
7491
+ # either eq (equals) or ne (not equals). The literal_string is the string value
7492
+ # to filter to. The literal value must be valid for the type of field you are
7493
+ # filtering by (string, number, boolean). For string fields, the literal value
7494
+ # is interpreted as a regular expression using RE2 syntax. The literal value
7495
+ # must match the entire field.
7496
+ # For example, to filter for instances that do not have a name of example-
7497
+ # instance, you would use filter=name ne example-instance.
7498
+ # You can filter on nested fields. For example, you could filter on instances
7499
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
7500
+ # nested fields to take advantage of labels to organize and search for results
7501
+ # based on label values.
7502
+ # To filter on multiple expressions, provide each separate expression within
7503
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
7504
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
7505
+ # resources must match all expressions to pass the filters.
7506
+ # @param [Fixnum] max_results
7507
+ # The maximum number of results per page that should be returned. If the number
7508
+ # of available results is larger than maxResults, Compute Engine returns a
7509
+ # nextPageToken that can be used to get the next page of results in subsequent
7510
+ # list requests.
7511
+ # @param [String] order_by
7512
+ # Sorts list results by a certain order. By default, results are returned in
7513
+ # alphanumerical order based on the resource name.
7514
+ # You can also sort results in descending order based on the creation timestamp
7515
+ # using orderBy="creationTimestamp desc". This sorts results based on the
7516
+ # creationTimestamp field in reverse chronological order (newest result first).
7517
+ # Use this to sort resources like operations so that the newest operation is
7518
+ # returned first.
7519
+ # Currently, only sorting by name or creationTimestamp desc is supported.
7520
+ # @param [String] page_token
7521
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
7522
+ # a previous list request to get the next page of results.
7523
+ # @param [String] fields
7524
+ # Selector specifying which fields to include in a partial response.
7525
+ # @param [String] quota_user
7526
+ # Available to use for quota purposes for server-side applications. Can be any
7527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7528
+ # Overrides userIp if both are provided.
7529
+ # @param [String] user_ip
7530
+ # IP address of the site where the request originates. Use this if you want to
7531
+ # enforce per-user limits.
7532
+ # @param [Google::Apis::RequestOptions] options
7533
+ # Request-specific options
7534
+ #
7535
+ # @yield [result, err] Result & error if block supplied
7536
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceList] parsed result object
7537
+ # @yieldparam err [StandardError] error object if request failed
7538
+ #
7539
+ # @return [Google::Apis::ComputeV1::BackendServiceList]
7540
+ #
7541
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7542
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7543
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7544
+ def list_region_backend_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7545
+ command = make_simple_command(:get, '{project}/regions/{region}/backendServices', options)
7546
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceList::Representation
7547
+ command.response_class = Google::Apis::ComputeV1::BackendServiceList
7548
+ command.params['project'] = project unless project.nil?
7549
+ command.params['region'] = region unless region.nil?
7550
+ command.query['filter'] = filter unless filter.nil?
7551
+ command.query['maxResults'] = max_results unless max_results.nil?
7552
+ command.query['orderBy'] = order_by unless order_by.nil?
7553
+ command.query['pageToken'] = page_token unless page_token.nil?
7554
+ command.query['fields'] = fields unless fields.nil?
7555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7556
+ command.query['userIp'] = user_ip unless user_ip.nil?
7557
+ execute_or_queue_command(command, &block)
7558
+ end
7559
+
7560
+ # Updates the specified regional BackendService resource with the data included
7561
+ # in the request. There are several restrictions and guidelines to keep in mind
7562
+ # when updating a backend service. Read Restrictions and Guidelines for more
7563
+ # information. This method supports patch semantics.
7564
+ # @param [String] project
7565
+ # Project ID for this request.
7566
+ # @param [String] region
7567
+ # Name of the region scoping this request.
7568
+ # @param [String] backend_service
7569
+ # Name of the BackendService resource to update.
7570
+ # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
7571
+ # @param [String] fields
7572
+ # Selector specifying which fields to include in a partial response.
7573
+ # @param [String] quota_user
7574
+ # Available to use for quota purposes for server-side applications. Can be any
7575
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7576
+ # Overrides userIp if both are provided.
7577
+ # @param [String] user_ip
7578
+ # IP address of the site where the request originates. Use this if you want to
7579
+ # enforce per-user limits.
7580
+ # @param [Google::Apis::RequestOptions] options
7581
+ # Request-specific options
7582
+ #
7583
+ # @yield [result, err] Result & error if block supplied
7584
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7585
+ # @yieldparam err [StandardError] error object if request failed
7586
+ #
7587
+ # @return [Google::Apis::ComputeV1::Operation]
7588
+ #
7589
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7590
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7591
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7592
+ def patch_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7593
+ command = make_simple_command(:patch, '{project}/regions/{region}/backendServices/{backendService}', options)
7594
+ command.request_representation = Google::Apis::ComputeV1::BackendService::Representation
7595
+ command.request_object = backend_service_object
7596
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7597
+ command.response_class = Google::Apis::ComputeV1::Operation
7598
+ command.params['project'] = project unless project.nil?
7599
+ command.params['region'] = region unless region.nil?
7600
+ command.params['backendService'] = backend_service unless backend_service.nil?
7601
+ command.query['fields'] = fields unless fields.nil?
7602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7603
+ command.query['userIp'] = user_ip unless user_ip.nil?
7604
+ execute_or_queue_command(command, &block)
7605
+ end
7606
+
7607
+ # Updates the specified regional BackendService resource with the data included
7608
+ # in the request. There are several restrictions and guidelines to keep in mind
7609
+ # when updating a backend service. Read Restrictions and Guidelines for more
7610
+ # information.
7611
+ # @param [String] project
7612
+ # Project ID for this request.
7613
+ # @param [String] region
7614
+ # Name of the region scoping this request.
7615
+ # @param [String] backend_service
7616
+ # Name of the BackendService resource to update.
7617
+ # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
7618
+ # @param [String] fields
7619
+ # Selector specifying which fields to include in a partial response.
7620
+ # @param [String] quota_user
7621
+ # Available to use for quota purposes for server-side applications. Can be any
7622
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7623
+ # Overrides userIp if both are provided.
7624
+ # @param [String] user_ip
7625
+ # IP address of the site where the request originates. Use this if you want to
7626
+ # enforce per-user limits.
7627
+ # @param [Google::Apis::RequestOptions] options
7628
+ # Request-specific options
7629
+ #
7630
+ # @yield [result, err] Result & error if block supplied
7631
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7632
+ # @yieldparam err [StandardError] error object if request failed
7633
+ #
7634
+ # @return [Google::Apis::ComputeV1::Operation]
7635
+ #
7636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7639
+ def update_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7640
+ command = make_simple_command(:put, '{project}/regions/{region}/backendServices/{backendService}', options)
7641
+ command.request_representation = Google::Apis::ComputeV1::BackendService::Representation
7642
+ command.request_object = backend_service_object
7643
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7644
+ command.response_class = Google::Apis::ComputeV1::Operation
7645
+ command.params['project'] = project unless project.nil?
7646
+ command.params['region'] = region unless region.nil?
7647
+ command.params['backendService'] = backend_service unless backend_service.nil?
7648
+ command.query['fields'] = fields unless fields.nil?
7649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7650
+ command.query['userIp'] = user_ip unless user_ip.nil?
7651
+ execute_or_queue_command(command, &block)
7652
+ end
7653
+
7654
+ # Schedules a group action to remove the specified instances from the managed
7655
+ # instance group. Abandoning an instance does not delete the instance, but it
7656
+ # does remove the instance from any target pools that are applied by the managed
7657
+ # instance group. This method reduces the targetSize of the managed instance
7658
+ # group by the number of instances that you abandon. This operation is marked as
7659
+ # DONE when the action is scheduled even if the instances have not yet been
7660
+ # removed from the group. You must separately verify the status of the
7661
+ # abandoning action with the listmanagedinstances method.
7662
+ # @param [String] project
7663
+ # Project ID for this request.
7664
+ # @param [String] region
7665
+ # Name of the region scoping this request.
7666
+ # @param [String] instance_group_manager
7667
+ # Name of the managed instance group.
7668
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
7669
+ # @param [String] fields
7670
+ # Selector specifying which fields to include in a partial response.
7671
+ # @param [String] quota_user
7672
+ # Available to use for quota purposes for server-side applications. Can be any
7673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7674
+ # Overrides userIp if both are provided.
7675
+ # @param [String] user_ip
7676
+ # IP address of the site where the request originates. Use this if you want to
7677
+ # enforce per-user limits.
7678
+ # @param [Google::Apis::RequestOptions] options
7679
+ # Request-specific options
7680
+ #
7681
+ # @yield [result, err] Result & error if block supplied
7682
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7683
+ # @yieldparam err [StandardError] error object if request failed
7684
+ #
7685
+ # @return [Google::Apis::ComputeV1::Operation]
7686
+ #
7687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7690
+ def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7691
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
7692
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
7693
+ command.request_object = region_instance_group_managers_abandon_instances_request_object
7694
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7695
+ command.response_class = Google::Apis::ComputeV1::Operation
7696
+ command.params['project'] = project unless project.nil?
7697
+ command.params['region'] = region unless region.nil?
7698
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
7699
+ command.query['fields'] = fields unless fields.nil?
7700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7701
+ command.query['userIp'] = user_ip unless user_ip.nil?
7702
+ execute_or_queue_command(command, &block)
7703
+ end
7704
+
7705
+ # Deletes the specified managed instance group and all of the instances in that
7706
+ # group.
7707
+ # @param [String] project
7708
+ # Project ID for this request.
7709
+ # @param [String] region
7710
+ # Name of the region scoping this request.
7711
+ # @param [String] instance_group_manager
7712
+ # Name of the managed instance group to delete.
7713
+ # @param [String] fields
7714
+ # Selector specifying which fields to include in a partial response.
7715
+ # @param [String] quota_user
7716
+ # Available to use for quota purposes for server-side applications. Can be any
7717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7718
+ # Overrides userIp if both are provided.
7719
+ # @param [String] user_ip
7720
+ # IP address of the site where the request originates. Use this if you want to
7721
+ # enforce per-user limits.
7722
+ # @param [Google::Apis::RequestOptions] options
7723
+ # Request-specific options
7724
+ #
7725
+ # @yield [result, err] Result & error if block supplied
7726
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7727
+ # @yieldparam err [StandardError] error object if request failed
7728
+ #
7729
+ # @return [Google::Apis::ComputeV1::Operation]
7730
+ #
7731
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7732
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7733
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7734
+ def delete_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7735
+ command = make_simple_command(:delete, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
7736
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7737
+ command.response_class = Google::Apis::ComputeV1::Operation
7738
+ command.params['project'] = project unless project.nil?
7739
+ command.params['region'] = region unless region.nil?
7740
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
7741
+ command.query['fields'] = fields unless fields.nil?
7742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7743
+ command.query['userIp'] = user_ip unless user_ip.nil?
7744
+ execute_or_queue_command(command, &block)
7745
+ end
7746
+
7747
+ # Schedules a group action to delete the specified instances in the managed
7748
+ # instance group. The instances are also removed from any target pools of which
7749
+ # they were a member. This method reduces the targetSize of the managed instance
7750
+ # group by the number of instances that you delete. This operation is marked as
7751
+ # DONE when the action is scheduled even if the instances are still being
7752
+ # deleted. You must separately verify the status of the deleting action with the
7753
+ # listmanagedinstances method.
7754
+ # @param [String] project
7755
+ # Project ID for this request.
7756
+ # @param [String] region
7757
+ # Name of the region scoping this request.
7758
+ # @param [String] instance_group_manager
7759
+ # Name of the managed instance group.
7760
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
7761
+ # @param [String] fields
7762
+ # Selector specifying which fields to include in a partial response.
7763
+ # @param [String] quota_user
7764
+ # Available to use for quota purposes for server-side applications. Can be any
7765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7766
+ # Overrides userIp if both are provided.
7767
+ # @param [String] user_ip
7768
+ # IP address of the site where the request originates. Use this if you want to
7769
+ # enforce per-user limits.
7770
+ # @param [Google::Apis::RequestOptions] options
7771
+ # Request-specific options
7772
+ #
7773
+ # @yield [result, err] Result & error if block supplied
7774
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7775
+ # @yieldparam err [StandardError] error object if request failed
7776
+ #
7777
+ # @return [Google::Apis::ComputeV1::Operation]
7778
+ #
7779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7782
+ def delete_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7783
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
7784
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersDeleteInstancesRequest::Representation
7785
+ command.request_object = region_instance_group_managers_delete_instances_request_object
7786
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7787
+ command.response_class = Google::Apis::ComputeV1::Operation
7788
+ command.params['project'] = project unless project.nil?
7789
+ command.params['region'] = region unless region.nil?
7790
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
7791
+ command.query['fields'] = fields unless fields.nil?
7792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7793
+ command.query['userIp'] = user_ip unless user_ip.nil?
7794
+ execute_or_queue_command(command, &block)
7795
+ end
7796
+
7797
+ # Returns all of the details about the specified managed instance group.
7798
+ # @param [String] project
7799
+ # Project ID for this request.
7800
+ # @param [String] region
7801
+ # Name of the region scoping this request.
7802
+ # @param [String] instance_group_manager
7803
+ # Name of the managed instance group to return.
7804
+ # @param [String] fields
7805
+ # Selector specifying which fields to include in a partial response.
7806
+ # @param [String] quota_user
7807
+ # Available to use for quota purposes for server-side applications. Can be any
7808
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7809
+ # Overrides userIp if both are provided.
7810
+ # @param [String] user_ip
7811
+ # IP address of the site where the request originates. Use this if you want to
7812
+ # enforce per-user limits.
7813
+ # @param [Google::Apis::RequestOptions] options
7814
+ # Request-specific options
7815
+ #
7816
+ # @yield [result, err] Result & error if block supplied
7817
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManager] parsed result object
7818
+ # @yieldparam err [StandardError] error object if request failed
7819
+ #
7820
+ # @return [Google::Apis::ComputeV1::InstanceGroupManager]
7821
+ #
7822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7825
+ def get_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7826
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
7827
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
7828
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManager
7829
+ command.params['project'] = project unless project.nil?
7830
+ command.params['region'] = region unless region.nil?
7831
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
7832
+ command.query['fields'] = fields unless fields.nil?
7833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7834
+ command.query['userIp'] = user_ip unless user_ip.nil?
7835
+ execute_or_queue_command(command, &block)
7836
+ end
7837
+
7838
+ # Creates a managed instance group using the information that you specify in the
7839
+ # request. After the group is created, it schedules an action to create
7840
+ # instances in the group using the specified instance template. This operation
7841
+ # is marked as DONE when the group is created even if the instances in the group
7842
+ # have not yet been created. You must separately verify the status of the
7843
+ # individual instances with the listmanagedinstances method.
7844
+ # @param [String] project
7845
+ # Project ID for this request.
7846
+ # @param [String] region
7847
+ # Name of the region scoping this request.
7848
+ # @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_object
7849
+ # @param [String] fields
7850
+ # Selector specifying which fields to include in a partial response.
7851
+ # @param [String] quota_user
7852
+ # Available to use for quota purposes for server-side applications. Can be any
7853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7854
+ # Overrides userIp if both are provided.
7855
+ # @param [String] user_ip
7856
+ # IP address of the site where the request originates. Use this if you want to
7857
+ # enforce per-user limits.
7858
+ # @param [Google::Apis::RequestOptions] options
7859
+ # Request-specific options
7860
+ #
7861
+ # @yield [result, err] Result & error if block supplied
7862
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7863
+ # @yieldparam err [StandardError] error object if request failed
7864
+ #
7865
+ # @return [Google::Apis::ComputeV1::Operation]
7866
+ #
7867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7870
+ def insert_region_instance_group_manager(project, region, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7871
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers', options)
7872
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
7873
+ command.request_object = instance_group_manager_object
7874
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7875
+ command.response_class = Google::Apis::ComputeV1::Operation
7876
+ command.params['project'] = project unless project.nil?
7877
+ command.params['region'] = region unless region.nil?
7878
+ command.query['fields'] = fields unless fields.nil?
7879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7880
+ command.query['userIp'] = user_ip unless user_ip.nil?
7881
+ execute_or_queue_command(command, &block)
7882
+ end
7883
+
7884
+ # Retrieves the list of managed instance groups that are contained within the
7885
+ # specified region.
7886
+ # @param [String] project
7887
+ # Project ID for this request.
7888
+ # @param [String] region
7889
+ # Name of the region scoping this request.
7890
+ # @param [String] filter
7891
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7892
+ # expression`. Your `expression` must be in the format: field_name
7893
+ # comparison_string literal_string.
7894
+ # The field_name is the name of the field you want to compare. Only atomic field
7895
+ # types are supported (string, number, boolean). The comparison_string must be
7896
+ # either eq (equals) or ne (not equals). The literal_string is the string value
7897
+ # to filter to. The literal value must be valid for the type of field you are
7898
+ # filtering by (string, number, boolean). For string fields, the literal value
7899
+ # is interpreted as a regular expression using RE2 syntax. The literal value
7900
+ # must match the entire field.
7901
+ # For example, to filter for instances that do not have a name of example-
7902
+ # instance, you would use filter=name ne example-instance.
7903
+ # You can filter on nested fields. For example, you could filter on instances
7904
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
7905
+ # nested fields to take advantage of labels to organize and search for results
7906
+ # based on label values.
7907
+ # To filter on multiple expressions, provide each separate expression within
7908
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
7909
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
7910
+ # resources must match all expressions to pass the filters.
7911
+ # @param [Fixnum] max_results
7912
+ # The maximum number of results per page that should be returned. If the number
7913
+ # of available results is larger than maxResults, Compute Engine returns a
7914
+ # nextPageToken that can be used to get the next page of results in subsequent
7915
+ # list requests.
7916
+ # @param [String] order_by
7917
+ # Sorts list results by a certain order. By default, results are returned in
7918
+ # alphanumerical order based on the resource name.
7919
+ # You can also sort results in descending order based on the creation timestamp
7920
+ # using orderBy="creationTimestamp desc". This sorts results based on the
7921
+ # creationTimestamp field in reverse chronological order (newest result first).
7922
+ # Use this to sort resources like operations so that the newest operation is
7923
+ # returned first.
7924
+ # Currently, only sorting by name or creationTimestamp desc is supported.
7925
+ # @param [String] page_token
7926
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
7927
+ # a previous list request to get the next page of results.
7928
+ # @param [String] fields
7929
+ # Selector specifying which fields to include in a partial response.
7930
+ # @param [String] quota_user
7931
+ # Available to use for quota purposes for server-side applications. Can be any
7932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7933
+ # Overrides userIp if both are provided.
7934
+ # @param [String] user_ip
7935
+ # IP address of the site where the request originates. Use this if you want to
7936
+ # enforce per-user limits.
7937
+ # @param [Google::Apis::RequestOptions] options
7938
+ # Request-specific options
7939
+ #
7940
+ # @yield [result, err] Result & error if block supplied
7941
+ # @yieldparam result [Google::Apis::ComputeV1::RegionInstanceGroupManagerList] parsed result object
7942
+ # @yieldparam err [StandardError] error object if request failed
7943
+ #
7944
+ # @return [Google::Apis::ComputeV1::RegionInstanceGroupManagerList]
7945
+ #
7946
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7947
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7948
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7949
+ def list_region_instance_group_managers(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7950
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers', options)
7951
+ command.response_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagerList::Representation
7952
+ command.response_class = Google::Apis::ComputeV1::RegionInstanceGroupManagerList
7953
+ command.params['project'] = project unless project.nil?
7954
+ command.params['region'] = region unless region.nil?
7955
+ command.query['filter'] = filter unless filter.nil?
7956
+ command.query['maxResults'] = max_results unless max_results.nil?
7957
+ command.query['orderBy'] = order_by unless order_by.nil?
7958
+ command.query['pageToken'] = page_token unless page_token.nil?
7959
+ command.query['fields'] = fields unless fields.nil?
7960
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7961
+ command.query['userIp'] = user_ip unless user_ip.nil?
7962
+ execute_or_queue_command(command, &block)
7963
+ end
7964
+
7965
+ # Lists the instances in the managed instance group and instances that are
7966
+ # scheduled to be created. The list includes any current actions that the group
7967
+ # has scheduled for its instances.
7968
+ # @param [String] project
7969
+ # Project ID for this request.
7970
+ # @param [String] region
7971
+ # Name of the region scoping this request.
7972
+ # @param [String] instance_group_manager
7973
+ # The name of the managed instance group.
7974
+ # @param [String] filter
7975
+ # @param [Fixnum] max_results
7976
+ # @param [String] order_by
7977
+ # @param [String] page_token
7978
+ # @param [String] fields
7979
+ # Selector specifying which fields to include in a partial response.
7980
+ # @param [String] quota_user
7981
+ # Available to use for quota purposes for server-side applications. Can be any
7982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7983
+ # Overrides userIp if both are provided.
7984
+ # @param [String] user_ip
7985
+ # IP address of the site where the request originates. Use this if you want to
7986
+ # enforce per-user limits.
7987
+ # @param [Google::Apis::RequestOptions] options
7988
+ # Request-specific options
7989
+ #
7990
+ # @yield [result, err] Result & error if block supplied
7991
+ # @yieldparam result [Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstancesResponse] parsed result object
7992
+ # @yieldparam err [StandardError] error object if request failed
7993
+ #
7994
+ # @return [Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstancesResponse]
7995
+ #
7996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7999
+ def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8000
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
8001
+ command.response_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstancesResponse::Representation
8002
+ command.response_class = Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstancesResponse
8003
+ command.params['project'] = project unless project.nil?
8004
+ command.params['region'] = region unless region.nil?
8005
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
8006
+ command.query['filter'] = filter unless filter.nil?
8007
+ command.query['maxResults'] = max_results unless max_results.nil?
8008
+ command.query['order_by'] = order_by unless order_by.nil?
8009
+ command.query['pageToken'] = page_token unless page_token.nil?
8010
+ command.query['fields'] = fields unless fields.nil?
8011
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8012
+ command.query['userIp'] = user_ip unless user_ip.nil?
8013
+ execute_or_queue_command(command, &block)
8014
+ end
8015
+
8016
+ # Schedules a group action to recreate the specified instances in the managed
8017
+ # instance group. The instances are deleted and recreated using the current
8018
+ # instance template for the managed instance group. This operation is marked as
8019
+ # DONE when the action is scheduled even if the instances have not yet been
8020
+ # recreated. You must separately verify the status of the recreating action with
8021
+ # the listmanagedinstances method.
8022
+ # @param [String] project
8023
+ # Project ID for this request.
8024
+ # @param [String] region
8025
+ # Name of the region scoping this request.
8026
+ # @param [String] instance_group_manager
8027
+ # Name of the managed instance group.
8028
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersRecreateRequest] region_instance_group_managers_recreate_request_object
8029
+ # @param [String] fields
8030
+ # Selector specifying which fields to include in a partial response.
8031
+ # @param [String] quota_user
8032
+ # Available to use for quota purposes for server-side applications. Can be any
8033
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8034
+ # Overrides userIp if both are provided.
8035
+ # @param [String] user_ip
8036
+ # IP address of the site where the request originates. Use this if you want to
8037
+ # enforce per-user limits.
8038
+ # @param [Google::Apis::RequestOptions] options
8039
+ # Request-specific options
8040
+ #
8041
+ # @yield [result, err] Result & error if block supplied
8042
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8043
+ # @yieldparam err [StandardError] error object if request failed
8044
+ #
8045
+ # @return [Google::Apis::ComputeV1::Operation]
8046
+ #
8047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8050
+ def recreate_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_recreate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8051
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options)
8052
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersRecreateRequest::Representation
8053
+ command.request_object = region_instance_group_managers_recreate_request_object
8054
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8055
+ command.response_class = Google::Apis::ComputeV1::Operation
8056
+ command.params['project'] = project unless project.nil?
8057
+ command.params['region'] = region unless region.nil?
8058
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
8059
+ command.query['fields'] = fields unless fields.nil?
8060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8061
+ command.query['userIp'] = user_ip unless user_ip.nil?
8062
+ execute_or_queue_command(command, &block)
8063
+ end
8064
+
8065
+ # Changes the intended size for the managed instance group. If you increase the
8066
+ # size, the group schedules actions to create new instances using the current
8067
+ # instance template. If you decrease the size, the group schedules delete
8068
+ # actions on one or more instances. The resize operation is marked DONE when the
8069
+ # resize actions are scheduled even if the group has not yet added or deleted
8070
+ # any instances. You must separately verify the status of the creating or
8071
+ # deleting actions with the listmanagedinstances method.
8072
+ # @param [String] project
8073
+ # Project ID for this request.
8074
+ # @param [String] region
8075
+ # Name of the region scoping this request.
8076
+ # @param [String] instance_group_manager
8077
+ # Name of the managed instance group.
8078
+ # @param [Fixnum] size
8079
+ # Number of instances that should exist in this instance group manager.
8080
+ # @param [String] fields
8081
+ # Selector specifying which fields to include in a partial response.
8082
+ # @param [String] quota_user
8083
+ # Available to use for quota purposes for server-side applications. Can be any
8084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8085
+ # Overrides userIp if both are provided.
8086
+ # @param [String] user_ip
8087
+ # IP address of the site where the request originates. Use this if you want to
8088
+ # enforce per-user limits.
8089
+ # @param [Google::Apis::RequestOptions] options
8090
+ # Request-specific options
8091
+ #
8092
+ # @yield [result, err] Result & error if block supplied
8093
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8094
+ # @yieldparam err [StandardError] error object if request failed
8095
+ #
8096
+ # @return [Google::Apis::ComputeV1::Operation]
8097
+ #
8098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8101
+ def resize_region_instance_group_manager(project, region, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8102
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options)
8103
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8104
+ command.response_class = Google::Apis::ComputeV1::Operation
8105
+ command.params['project'] = project unless project.nil?
8106
+ command.params['region'] = region unless region.nil?
8107
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
8108
+ command.query['size'] = size unless size.nil?
8109
+ command.query['fields'] = fields unless fields.nil?
8110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8111
+ command.query['userIp'] = user_ip unless user_ip.nil?
8112
+ execute_or_queue_command(command, &block)
8113
+ end
8114
+
8115
+ # Sets the instance template to use when creating new instances or recreating
8116
+ # instances in this group. Existing instances are not affected.
8117
+ # @param [String] project
8118
+ # Project ID for this request.
8119
+ # @param [String] region
8120
+ # Name of the region scoping this request.
8121
+ # @param [String] instance_group_manager
8122
+ # The name of the managed instance group.
8123
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersSetTemplateRequest] region_instance_group_managers_set_template_request_object
8124
+ # @param [String] fields
8125
+ # Selector specifying which fields to include in a partial response.
8126
+ # @param [String] quota_user
8127
+ # Available to use for quota purposes for server-side applications. Can be any
8128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8129
+ # Overrides userIp if both are provided.
8130
+ # @param [String] user_ip
8131
+ # IP address of the site where the request originates. Use this if you want to
8132
+ # enforce per-user limits.
8133
+ # @param [Google::Apis::RequestOptions] options
8134
+ # Request-specific options
8135
+ #
8136
+ # @yield [result, err] Result & error if block supplied
8137
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8138
+ # @yieldparam err [StandardError] error object if request failed
8139
+ #
8140
+ # @return [Google::Apis::ComputeV1::Operation]
8141
+ #
8142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8145
+ def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8146
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
8147
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersSetTemplateRequest::Representation
8148
+ command.request_object = region_instance_group_managers_set_template_request_object
8149
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8150
+ command.response_class = Google::Apis::ComputeV1::Operation
8151
+ command.params['project'] = project unless project.nil?
8152
+ command.params['region'] = region unless region.nil?
8153
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
8154
+ command.query['fields'] = fields unless fields.nil?
8155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8156
+ command.query['userIp'] = user_ip unless user_ip.nil?
8157
+ execute_or_queue_command(command, &block)
8158
+ end
8159
+
8160
+ # Modifies the target pools to which all new instances in this group are
8161
+ # assigned. Existing instances in the group are not affected.
8162
+ # @param [String] project
8163
+ # Project ID for this request.
8164
+ # @param [String] region
8165
+ # Name of the region scoping this request.
8166
+ # @param [String] instance_group_manager
8167
+ # Name of the managed instance group.
8168
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersSetTargetPoolsRequest] region_instance_group_managers_set_target_pools_request_object
8169
+ # @param [String] fields
8170
+ # Selector specifying which fields to include in a partial response.
8171
+ # @param [String] quota_user
8172
+ # Available to use for quota purposes for server-side applications. Can be any
8173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8174
+ # Overrides userIp if both are provided.
8175
+ # @param [String] user_ip
8176
+ # IP address of the site where the request originates. Use this if you want to
8177
+ # enforce per-user limits.
8178
+ # @param [Google::Apis::RequestOptions] options
8179
+ # Request-specific options
8180
+ #
8181
+ # @yield [result, err] Result & error if block supplied
8182
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8183
+ # @yieldparam err [StandardError] error object if request failed
8184
+ #
8185
+ # @return [Google::Apis::ComputeV1::Operation]
8186
+ #
8187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8190
+ def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8191
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
8192
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation
8193
+ command.request_object = region_instance_group_managers_set_target_pools_request_object
8194
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8195
+ command.response_class = Google::Apis::ComputeV1::Operation
8196
+ command.params['project'] = project unless project.nil?
8197
+ command.params['region'] = region unless region.nil?
8198
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
8199
+ command.query['fields'] = fields unless fields.nil?
8200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8201
+ command.query['userIp'] = user_ip unless user_ip.nil?
8202
+ execute_or_queue_command(command, &block)
8203
+ end
8204
+
8205
+ # Returns the specified instance group resource.
8206
+ # @param [String] project
8207
+ # Project ID for this request.
8208
+ # @param [String] region
8209
+ # Name of the region scoping this request.
8210
+ # @param [String] instance_group
8211
+ # Name of the instance group resource to return.
8212
+ # @param [String] fields
8213
+ # Selector specifying which fields to include in a partial response.
8214
+ # @param [String] quota_user
8215
+ # Available to use for quota purposes for server-side applications. Can be any
8216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8217
+ # Overrides userIp if both are provided.
8218
+ # @param [String] user_ip
8219
+ # IP address of the site where the request originates. Use this if you want to
8220
+ # enforce per-user limits.
8221
+ # @param [Google::Apis::RequestOptions] options
8222
+ # Request-specific options
8223
+ #
8224
+ # @yield [result, err] Result & error if block supplied
8225
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroup] parsed result object
8226
+ # @yieldparam err [StandardError] error object if request failed
8227
+ #
8228
+ # @return [Google::Apis::ComputeV1::InstanceGroup]
8229
+ #
8230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8233
+ def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8234
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups/{instanceGroup}', options)
8235
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroup::Representation
8236
+ command.response_class = Google::Apis::ComputeV1::InstanceGroup
8237
+ command.params['project'] = project unless project.nil?
8238
+ command.params['region'] = region unless region.nil?
8239
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
8240
+ command.query['fields'] = fields unless fields.nil?
8241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8242
+ command.query['userIp'] = user_ip unless user_ip.nil?
8243
+ execute_or_queue_command(command, &block)
8244
+ end
8245
+
8246
+ # Retrieves the list of instance group resources contained within the specified
8247
+ # region.
8248
+ # @param [String] project
8249
+ # Project ID for this request.
8250
+ # @param [String] region
8251
+ # Name of the region scoping this request.
8252
+ # @param [String] filter
8253
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8254
+ # expression`. Your `expression` must be in the format: field_name
8255
+ # comparison_string literal_string.
8256
+ # The field_name is the name of the field you want to compare. Only atomic field
8257
+ # types are supported (string, number, boolean). The comparison_string must be
8258
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8259
+ # to filter to. The literal value must be valid for the type of field you are
8260
+ # filtering by (string, number, boolean). For string fields, the literal value
8261
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8262
+ # must match the entire field.
8263
+ # For example, to filter for instances that do not have a name of example-
8264
+ # instance, you would use filter=name ne example-instance.
8265
+ # You can filter on nested fields. For example, you could filter on instances
8266
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8267
+ # nested fields to take advantage of labels to organize and search for results
8268
+ # based on label values.
8269
+ # To filter on multiple expressions, provide each separate expression within
8270
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8271
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8272
+ # resources must match all expressions to pass the filters.
8273
+ # @param [Fixnum] max_results
8274
+ # The maximum number of results per page that should be returned. If the number
8275
+ # of available results is larger than maxResults, Compute Engine returns a
8276
+ # nextPageToken that can be used to get the next page of results in subsequent
8277
+ # list requests.
8278
+ # @param [String] order_by
8279
+ # Sorts list results by a certain order. By default, results are returned in
8280
+ # alphanumerical order based on the resource name.
8281
+ # You can also sort results in descending order based on the creation timestamp
8282
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8283
+ # creationTimestamp field in reverse chronological order (newest result first).
8284
+ # Use this to sort resources like operations so that the newest operation is
8285
+ # returned first.
8286
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8287
+ # @param [String] page_token
8288
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8289
+ # a previous list request to get the next page of results.
8290
+ # @param [String] fields
8291
+ # Selector specifying which fields to include in a partial response.
8292
+ # @param [String] quota_user
8293
+ # Available to use for quota purposes for server-side applications. Can be any
8294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8295
+ # Overrides userIp if both are provided.
8296
+ # @param [String] user_ip
8297
+ # IP address of the site where the request originates. Use this if you want to
8298
+ # enforce per-user limits.
8299
+ # @param [Google::Apis::RequestOptions] options
8300
+ # Request-specific options
8301
+ #
8302
+ # @yield [result, err] Result & error if block supplied
8303
+ # @yieldparam result [Google::Apis::ComputeV1::RegionInstanceGroupList] parsed result object
8304
+ # @yieldparam err [StandardError] error object if request failed
8305
+ #
8306
+ # @return [Google::Apis::ComputeV1::RegionInstanceGroupList]
8307
+ #
8308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8311
+ def list_region_instance_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8312
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups', options)
8313
+ command.response_representation = Google::Apis::ComputeV1::RegionInstanceGroupList::Representation
8314
+ command.response_class = Google::Apis::ComputeV1::RegionInstanceGroupList
8315
+ command.params['project'] = project unless project.nil?
8316
+ command.params['region'] = region unless region.nil?
8317
+ command.query['filter'] = filter unless filter.nil?
8318
+ command.query['maxResults'] = max_results unless max_results.nil?
8319
+ command.query['orderBy'] = order_by unless order_by.nil?
8320
+ command.query['pageToken'] = page_token unless page_token.nil?
8321
+ command.query['fields'] = fields unless fields.nil?
8322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8323
+ command.query['userIp'] = user_ip unless user_ip.nil?
8324
+ execute_or_queue_command(command, &block)
8325
+ end
8326
+
8327
+ # Lists the instances in the specified instance group and displays information
8328
+ # about the named ports. Depending on the specified options, this method can
8329
+ # list all instances or only the instances that are running.
8330
+ # @param [String] project
8331
+ # Project ID for this request.
8332
+ # @param [String] region
8333
+ # Name of the region scoping this request.
8334
+ # @param [String] instance_group
8335
+ # Name of the regional instance group for which we want to list the instances.
8336
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupsListInstancesRequest] region_instance_groups_list_instances_request_object
8337
+ # @param [String] filter
8338
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8339
+ # expression`. Your `expression` must be in the format: field_name
8340
+ # comparison_string literal_string.
8341
+ # The field_name is the name of the field you want to compare. Only atomic field
8342
+ # types are supported (string, number, boolean). The comparison_string must be
8343
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8344
+ # to filter to. The literal value must be valid for the type of field you are
8345
+ # filtering by (string, number, boolean). For string fields, the literal value
8346
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8347
+ # must match the entire field.
8348
+ # For example, to filter for instances that do not have a name of example-
8349
+ # instance, you would use filter=name ne example-instance.
8350
+ # You can filter on nested fields. For example, you could filter on instances
8351
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8352
+ # nested fields to take advantage of labels to organize and search for results
8353
+ # based on label values.
8354
+ # To filter on multiple expressions, provide each separate expression within
8355
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8356
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8357
+ # resources must match all expressions to pass the filters.
8358
+ # @param [Fixnum] max_results
8359
+ # The maximum number of results per page that should be returned. If the number
8360
+ # of available results is larger than maxResults, Compute Engine returns a
8361
+ # nextPageToken that can be used to get the next page of results in subsequent
8362
+ # list requests.
8363
+ # @param [String] order_by
8364
+ # Sorts list results by a certain order. By default, results are returned in
8365
+ # alphanumerical order based on the resource name.
8366
+ # You can also sort results in descending order based on the creation timestamp
8367
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8368
+ # creationTimestamp field in reverse chronological order (newest result first).
8369
+ # Use this to sort resources like operations so that the newest operation is
8370
+ # returned first.
8371
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8372
+ # @param [String] page_token
8373
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8374
+ # a previous list request to get the next page of results.
8375
+ # @param [String] fields
8376
+ # Selector specifying which fields to include in a partial response.
8377
+ # @param [String] quota_user
8378
+ # Available to use for quota purposes for server-side applications. Can be any
8379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8380
+ # Overrides userIp if both are provided.
8381
+ # @param [String] user_ip
8382
+ # IP address of the site where the request originates. Use this if you want to
8383
+ # enforce per-user limits.
8384
+ # @param [Google::Apis::RequestOptions] options
8385
+ # Request-specific options
8386
+ #
8387
+ # @yield [result, err] Result & error if block supplied
8388
+ # @yieldparam result [Google::Apis::ComputeV1::RegionInstanceGroupsListInstances] parsed result object
8389
+ # @yieldparam err [StandardError] error object if request failed
8390
+ #
8391
+ # @return [Google::Apis::ComputeV1::RegionInstanceGroupsListInstances]
8392
+ #
8393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8396
+ def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8397
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options)
8398
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupsListInstancesRequest::Representation
8399
+ command.request_object = region_instance_groups_list_instances_request_object
8400
+ command.response_representation = Google::Apis::ComputeV1::RegionInstanceGroupsListInstances::Representation
8401
+ command.response_class = Google::Apis::ComputeV1::RegionInstanceGroupsListInstances
8402
+ command.params['project'] = project unless project.nil?
8403
+ command.params['region'] = region unless region.nil?
8404
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
8405
+ command.query['filter'] = filter unless filter.nil?
8406
+ command.query['maxResults'] = max_results unless max_results.nil?
8407
+ command.query['orderBy'] = order_by unless order_by.nil?
8408
+ command.query['pageToken'] = page_token unless page_token.nil?
8409
+ command.query['fields'] = fields unless fields.nil?
8410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8411
+ command.query['userIp'] = user_ip unless user_ip.nil?
8412
+ execute_or_queue_command(command, &block)
8413
+ end
8414
+
8415
+ # Sets the named ports for the specified regional instance group.
8416
+ # @param [String] project
8417
+ # Project ID for this request.
8418
+ # @param [String] region
8419
+ # Name of the region scoping this request.
8420
+ # @param [String] instance_group
8421
+ # The name of the regional instance group where the named ports are updated.
8422
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
8423
+ # @param [String] fields
8424
+ # Selector specifying which fields to include in a partial response.
8425
+ # @param [String] quota_user
8426
+ # Available to use for quota purposes for server-side applications. Can be any
8427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8428
+ # Overrides userIp if both are provided.
8429
+ # @param [String] user_ip
8430
+ # IP address of the site where the request originates. Use this if you want to
8431
+ # enforce per-user limits.
8432
+ # @param [Google::Apis::RequestOptions] options
8433
+ # Request-specific options
8434
+ #
8435
+ # @yield [result, err] Result & error if block supplied
8436
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8437
+ # @yieldparam err [StandardError] error object if request failed
8438
+ #
8439
+ # @return [Google::Apis::ComputeV1::Operation]
8440
+ #
8441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8444
+ def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8445
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
8446
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupsSetNamedPortsRequest::Representation
8447
+ command.request_object = region_instance_groups_set_named_ports_request_object
8448
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8449
+ command.response_class = Google::Apis::ComputeV1::Operation
8450
+ command.params['project'] = project unless project.nil?
8451
+ command.params['region'] = region unless region.nil?
8452
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
8453
+ command.query['fields'] = fields unless fields.nil?
8454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8455
+ command.query['userIp'] = user_ip unless user_ip.nil?
8456
+ execute_or_queue_command(command, &block)
8457
+ end
8458
+
6887
8459
  # Deletes the specified region-specific Operations resource.
6888
8460
  # @param [String] project
6889
8461
  # Project ID for this request.