google-api-client 0.9.9 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +8 -0
  4. data/api_names.yaml +62 -55
  5. data/generated/google/apis/adsense_v1_4.rb +1 -1
  6. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  7. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +534 -39
  10. data/generated/google/apis/androidenterprise_v1/representations.rb +222 -0
  11. data/generated/google/apis/androidenterprise_v1/service.rb +595 -10
  12. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  13. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  14. data/generated/google/apis/appengine_v1beta5/classes.rb +66 -6
  15. data/generated/google/apis/appengine_v1beta5/representations.rb +29 -0
  16. data/generated/google/apis/appengine_v1beta5/service.rb +15 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +12 -4
  20. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  21. data/generated/google/apis/books_v1.rb +2 -2
  22. data/generated/google/apis/books_v1/classes.rb +77 -0
  23. data/generated/google/apis/books_v1/representations.rb +34 -0
  24. data/generated/google/apis/books_v1/service.rb +2 -2
  25. data/generated/google/apis/calendar_v3.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  27. data/generated/google/apis/cloudbuild_v1/classes.rb +110 -0
  28. data/generated/google/apis/cloudbuild_v1/representations.rb +60 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  31. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  32. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  33. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  34. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  35. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  36. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  37. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  38. data/generated/google/apis/compute_beta.rb +1 -1
  39. data/generated/google/apis/compute_beta/classes.rb +678 -17
  40. data/generated/google/apis/compute_beta/representations.rb +235 -0
  41. data/generated/google/apis/compute_beta/service.rb +1280 -600
  42. data/generated/google/apis/compute_v1.rb +1 -1
  43. data/generated/google/apis/compute_v1/classes.rb +34 -13
  44. data/generated/google/apis/compute_v1/representations.rb +14 -0
  45. data/generated/google/apis/compute_v1/service.rb +42 -0
  46. data/generated/google/apis/content_v2.rb +1 -1
  47. data/generated/google/apis/content_v2/classes.rb +14 -0
  48. data/generated/google/apis/content_v2/representations.rb +2 -0
  49. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  50. data/generated/google/apis/datastore_v1beta3/classes.rb +1237 -0
  51. data/generated/google/apis/datastore_v1beta3/representations.rb +567 -0
  52. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  53. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  54. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -0
  55. data/generated/google/apis/deploymentmanager_v2/representations.rb +2 -0
  56. data/generated/google/apis/deploymentmanager_v2/service.rb +40 -50
  57. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  58. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  59. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  60. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  61. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  62. data/generated/google/apis/drive_v2.rb +1 -1
  63. data/generated/google/apis/drive_v3.rb +1 -1
  64. data/generated/google/apis/fitness_v1.rb +2 -2
  65. data/generated/google/apis/fitness_v1/classes.rb +48 -5
  66. data/generated/google/apis/fitness_v1/representations.rb +18 -0
  67. data/generated/google/apis/fitness_v1/service.rb +15 -16
  68. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  69. data/generated/google/apis/games_management_v1management.rb +1 -1
  70. data/generated/google/apis/games_v1.rb +1 -1
  71. data/generated/google/apis/genomics_v1.rb +2 -4
  72. data/generated/google/apis/genomics_v1/classes.rb +35 -7
  73. data/generated/google/apis/genomics_v1/representations.rb +7 -3
  74. data/generated/google/apis/genomics_v1/service.rb +1 -3
  75. data/generated/google/apis/gmail_v1.rb +7 -1
  76. data/generated/google/apis/gmail_v1/classes.rb +543 -0
  77. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  78. data/generated/google/apis/gmail_v1/service.rb +898 -1
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/mirror_v1.rb +2 -2
  81. data/generated/google/apis/mirror_v1/service.rb +1 -1
  82. data/generated/google/apis/monitoring_v3.rb +1 -1
  83. data/generated/google/apis/monitoring_v3/classes.rb +7 -6
  84. data/generated/google/apis/oauth2_v2.rb +1 -1
  85. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  89. data/generated/google/apis/sheets_v4.rb +1 -1
  90. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  91. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -8
  92. data/generated/google/apis/storage_v1.rb +1 -1
  93. data/generated/google/apis/storage_v1/classes.rb +17 -9
  94. data/generated/google/apis/translate_v2.rb +2 -2
  95. data/generated/google/apis/translate_v2/service.rb +1 -1
  96. data/generated/google/apis/vision_v1.rb +1 -1
  97. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  98. data/generated/google/apis/youtube_v3.rb +1 -1
  99. data/generated/google/apis/youtube_v3/classes.rb +8 -2
  100. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  101. data/lib/google/apis/core/base_service.rb +3 -2
  102. data/lib/google/apis/core/upload.rb +7 -1
  103. data/lib/google/apis/version.rb +1 -1
  104. data/sync.rb +71 -0
  105. metadata +11 -2
@@ -166,6 +166,12 @@ module Google
166
166
  include Google::Apis::Core::JsonObjectSupport
167
167
  end
168
168
 
169
+ class ConnectionDraining
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
169
175
  class CustomerEncryptionKey
170
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
177
 
@@ -328,6 +334,36 @@ module Google
328
334
  include Google::Apis::Core::JsonObjectSupport
329
335
  end
330
336
 
337
+ class Http2HealthCheck
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class HttpHealthCheck
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class HttpsHealthCheck
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class HealthCheck
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class HealthCheckList
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
331
367
  class HealthCheckReference
332
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
369
 
@@ -940,6 +976,12 @@ module Google
940
976
  include Google::Apis::Core::JsonObjectSupport
941
977
  end
942
978
 
979
+ class SslHealthCheck
980
+ class Representation < Google::Apis::Core::JsonRepresentation; end
981
+
982
+ include Google::Apis::Core::JsonObjectSupport
983
+ end
984
+
943
985
  class Scheduling
944
986
  class Representation < Google::Apis::Core::JsonRepresentation; end
945
987
 
@@ -1018,6 +1060,12 @@ module Google
1018
1060
  include Google::Apis::Core::JsonObjectSupport
1019
1061
  end
1020
1062
 
1063
+ class TcpHealthCheck
1064
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1065
+
1066
+ include Google::Apis::Core::JsonObjectSupport
1067
+ end
1068
+
1021
1069
  class Tags
1022
1070
  class Representation < Google::Apis::Core::JsonRepresentation; end
1023
1071
 
@@ -1162,6 +1210,36 @@ module Google
1162
1210
  include Google::Apis::Core::JsonObjectSupport
1163
1211
  end
1164
1212
 
1213
+ class TargetSslProxiesSetBackendServiceRequest
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1219
+ class TargetSslProxiesSetProxyHeaderRequest
1220
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1221
+
1222
+ include Google::Apis::Core::JsonObjectSupport
1223
+ end
1224
+
1225
+ class TargetSslProxiesSetSslCertificatesRequest
1226
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1227
+
1228
+ include Google::Apis::Core::JsonObjectSupport
1229
+ end
1230
+
1231
+ class TargetSslProxy
1232
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1233
+
1234
+ include Google::Apis::Core::JsonObjectSupport
1235
+ end
1236
+
1237
+ class TargetSslProxyList
1238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1239
+
1240
+ include Google::Apis::Core::JsonObjectSupport
1241
+ end
1242
+
1165
1243
  class TargetVpnGateway
1166
1244
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
1245
 
@@ -1439,6 +1517,7 @@ module Google
1439
1517
  property :id, as: 'id'
1440
1518
  property :kind, as: 'kind'
1441
1519
  property :name, as: 'name'
1520
+ property :region, as: 'region'
1442
1521
  property :self_link, as: 'selfLink'
1443
1522
  property :target, as: 'target'
1444
1523
  property :zone, as: 'zone'
@@ -1542,6 +1621,8 @@ module Google
1542
1621
  property :capacity_scaler, as: 'capacityScaler'
1543
1622
  property :description, as: 'description'
1544
1623
  property :group, as: 'group'
1624
+ property :max_connections, as: 'maxConnections'
1625
+ property :max_connections_per_instance, as: 'maxConnectionsPerInstance'
1545
1626
  property :max_rate, as: 'maxRate'
1546
1627
  property :max_rate_per_instance, as: 'maxRatePerInstance'
1547
1628
  property :max_utilization, as: 'maxUtilization'
@@ -1554,6 +1635,8 @@ module Google
1554
1635
  property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
1555
1636
  collection :backends, as: 'backends', class: Google::Apis::ComputeBeta::Backend, decorator: Google::Apis::ComputeBeta::Backend::Representation
1556
1637
 
1638
+ property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
1639
+
1557
1640
  property :creation_timestamp, as: 'creationTimestamp'
1558
1641
  property :description, as: 'description'
1559
1642
  property :enable_cdn, as: 'enableCDN'
@@ -1600,6 +1683,13 @@ module Google
1600
1683
  end
1601
1684
  end
1602
1685
 
1686
+ class ConnectionDraining
1687
+ # @private
1688
+ class Representation < Google::Apis::Core::JsonRepresentation
1689
+ property :draining_timeout_sec, as: 'drainingTimeoutSec'
1690
+ end
1691
+ end
1692
+
1603
1693
  class CustomerEncryptionKey
1604
1694
  # @private
1605
1695
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1914,6 +2004,78 @@ module Google
1914
2004
  end
1915
2005
  end
1916
2006
 
2007
+ class Http2HealthCheck
2008
+ # @private
2009
+ class Representation < Google::Apis::Core::JsonRepresentation
2010
+ property :host, as: 'host'
2011
+ property :port, as: 'port'
2012
+ property :port_name, as: 'portName'
2013
+ property :proxy_header, as: 'proxyHeader'
2014
+ property :request_path, as: 'requestPath'
2015
+ end
2016
+ end
2017
+
2018
+ class HttpHealthCheck
2019
+ # @private
2020
+ class Representation < Google::Apis::Core::JsonRepresentation
2021
+ property :host, as: 'host'
2022
+ property :port, as: 'port'
2023
+ property :port_name, as: 'portName'
2024
+ property :proxy_header, as: 'proxyHeader'
2025
+ property :request_path, as: 'requestPath'
2026
+ end
2027
+ end
2028
+
2029
+ class HttpsHealthCheck
2030
+ # @private
2031
+ class Representation < Google::Apis::Core::JsonRepresentation
2032
+ property :host, as: 'host'
2033
+ property :port, as: 'port'
2034
+ property :port_name, as: 'portName'
2035
+ property :proxy_header, as: 'proxyHeader'
2036
+ property :request_path, as: 'requestPath'
2037
+ end
2038
+ end
2039
+
2040
+ class HealthCheck
2041
+ # @private
2042
+ class Representation < Google::Apis::Core::JsonRepresentation
2043
+ property :check_interval_sec, as: 'checkIntervalSec'
2044
+ property :creation_timestamp, as: 'creationTimestamp'
2045
+ property :description, as: 'description'
2046
+ property :healthy_threshold, as: 'healthyThreshold'
2047
+ property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation
2048
+
2049
+ property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeBeta::HttpHealthCheck, decorator: Google::Apis::ComputeBeta::HttpHealthCheck::Representation
2050
+
2051
+ property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeBeta::HttpsHealthCheck, decorator: Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
2052
+
2053
+ property :id, as: 'id'
2054
+ property :kind, as: 'kind'
2055
+ property :name, as: 'name'
2056
+ property :self_link, as: 'selfLink'
2057
+ property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeBeta::SslHealthCheck, decorator: Google::Apis::ComputeBeta::SslHealthCheck::Representation
2058
+
2059
+ property :tcp_health_check, as: 'tcpHealthCheck', class: Google::Apis::ComputeBeta::TcpHealthCheck, decorator: Google::Apis::ComputeBeta::TcpHealthCheck::Representation
2060
+
2061
+ property :timeout_sec, as: 'timeoutSec'
2062
+ property :type, as: 'type'
2063
+ property :unhealthy_threshold, as: 'unhealthyThreshold'
2064
+ end
2065
+ end
2066
+
2067
+ class HealthCheckList
2068
+ # @private
2069
+ class Representation < Google::Apis::Core::JsonRepresentation
2070
+ property :id, as: 'id'
2071
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::HealthCheck, decorator: Google::Apis::ComputeBeta::HealthCheck::Representation
2072
+
2073
+ property :kind, as: 'kind'
2074
+ property :next_page_token, as: 'nextPageToken'
2075
+ property :self_link, as: 'selfLink'
2076
+ end
2077
+ end
2078
+
1917
2079
  class HealthCheckReference
1918
2080
  # @private
1919
2081
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2109,6 +2271,7 @@ module Google
2109
2271
  collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
2110
2272
 
2111
2273
  property :network, as: 'network'
2274
+ property :region, as: 'region'
2112
2275
  property :self_link, as: 'selfLink'
2113
2276
  property :size, as: 'size'
2114
2277
  property :subnetwork, as: 'subnetwork'
@@ -2150,6 +2313,7 @@ module Google
2150
2313
  property :current_actions, as: 'currentActions', class: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary::Representation
2151
2314
 
2152
2315
  property :description, as: 'description'
2316
+ property :failover_action, as: 'failoverAction'
2153
2317
  property :fingerprint, :base64 => true, as: 'fingerprint'
2154
2318
  property :id, as: 'id'
2155
2319
  property :instance_group, as: 'instanceGroup'
@@ -2158,6 +2322,7 @@ module Google
2158
2322
  property :name, as: 'name'
2159
2323
  collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
2160
2324
 
2325
+ property :region, as: 'region'
2161
2326
  property :self_link, as: 'selfLink'
2162
2327
  collection :target_pools, as: 'targetPools'
2163
2328
  property :target_size, as: 'targetSize'
@@ -3084,6 +3249,17 @@ module Google
3084
3249
  end
3085
3250
  end
3086
3251
 
3252
+ class SslHealthCheck
3253
+ # @private
3254
+ class Representation < Google::Apis::Core::JsonRepresentation
3255
+ property :port, as: 'port'
3256
+ property :port_name, as: 'portName'
3257
+ property :proxy_header, as: 'proxyHeader'
3258
+ property :request, as: 'request'
3259
+ property :response, as: 'response'
3260
+ end
3261
+ end
3262
+
3087
3263
  class Scheduling
3088
3264
  # @private
3089
3265
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3243,6 +3419,17 @@ module Google
3243
3419
  end
3244
3420
  end
3245
3421
 
3422
+ class TcpHealthCheck
3423
+ # @private
3424
+ class Representation < Google::Apis::Core::JsonRepresentation
3425
+ property :port, as: 'port'
3426
+ property :port_name, as: 'portName'
3427
+ property :proxy_header, as: 'proxyHeader'
3428
+ property :request, as: 'request'
3429
+ property :response, as: 'response'
3430
+ end
3431
+ end
3432
+
3246
3433
  class Tags
3247
3434
  # @private
3248
3435
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3494,6 +3681,54 @@ module Google
3494
3681
  end
3495
3682
  end
3496
3683
 
3684
+ class TargetSslProxiesSetBackendServiceRequest
3685
+ # @private
3686
+ class Representation < Google::Apis::Core::JsonRepresentation
3687
+ property :service, as: 'service'
3688
+ end
3689
+ end
3690
+
3691
+ class TargetSslProxiesSetProxyHeaderRequest
3692
+ # @private
3693
+ class Representation < Google::Apis::Core::JsonRepresentation
3694
+ property :proxy_header, as: 'proxyHeader'
3695
+ end
3696
+ end
3697
+
3698
+ class TargetSslProxiesSetSslCertificatesRequest
3699
+ # @private
3700
+ class Representation < Google::Apis::Core::JsonRepresentation
3701
+ collection :ssl_certificates, as: 'sslCertificates'
3702
+ end
3703
+ end
3704
+
3705
+ class TargetSslProxy
3706
+ # @private
3707
+ class Representation < Google::Apis::Core::JsonRepresentation
3708
+ property :creation_timestamp, as: 'creationTimestamp'
3709
+ property :description, as: 'description'
3710
+ property :id, as: 'id'
3711
+ property :kind, as: 'kind'
3712
+ property :name, as: 'name'
3713
+ property :proxy_header, as: 'proxyHeader'
3714
+ property :self_link, as: 'selfLink'
3715
+ property :service, as: 'service'
3716
+ collection :ssl_certificates, as: 'sslCertificates'
3717
+ end
3718
+ end
3719
+
3720
+ class TargetSslProxyList
3721
+ # @private
3722
+ class Representation < Google::Apis::Core::JsonRepresentation
3723
+ property :id, as: 'id'
3724
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::TargetSslProxy, decorator: Google::Apis::ComputeBeta::TargetSslProxy::Representation
3725
+
3726
+ property :kind, as: 'kind'
3727
+ property :next_page_token, as: 'nextPageToken'
3728
+ property :self_link, as: 'selfLink'
3729
+ end
3730
+ end
3731
+
3497
3732
  class TargetVpnGateway
3498
3733
  # @private
3499
3734
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3281,11 +3281,11 @@ module Google
3281
3281
  execute_or_queue_command(command, &block)
3282
3282
  end
3283
3283
 
3284
- # Deletes the specified HttpHealthCheck resource.
3284
+ # Deletes the specified HealthCheck resource.
3285
3285
  # @param [String] project
3286
3286
  # Project ID for this request.
3287
- # @param [String] http_health_check
3288
- # Name of the HttpHealthCheck resource to delete.
3287
+ # @param [String] health_check
3288
+ # Name of the HealthCheck resource to delete.
3289
3289
  # @param [String] fields
3290
3290
  # Selector specifying which fields to include in a partial response.
3291
3291
  # @param [String] quota_user
@@ -3307,24 +3307,24 @@ module Google
3307
3307
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3308
3308
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3309
3309
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3310
- def delete_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3311
- command = make_simple_command(:delete, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3310
+ def delete_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3311
+ command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options)
3312
3312
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3313
3313
  command.response_class = Google::Apis::ComputeBeta::Operation
3314
3314
  command.params['project'] = project unless project.nil?
3315
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3315
+ command.params['healthCheck'] = health_check unless health_check.nil?
3316
3316
  command.query['fields'] = fields unless fields.nil?
3317
3317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3318
3318
  command.query['userIp'] = user_ip unless user_ip.nil?
3319
3319
  execute_or_queue_command(command, &block)
3320
3320
  end
3321
3321
 
3322
- # Returns the specified HttpHealthCheck resource. Get a list of available HTTP
3323
- # health checks by making a list() request.
3322
+ # Returns the specified HealthCheck resource. Get a list of available health
3323
+ # checks by making a list() request.
3324
3324
  # @param [String] project
3325
3325
  # Project ID for this request.
3326
- # @param [String] http_health_check
3327
- # Name of the HttpHealthCheck resource to return.
3326
+ # @param [String] health_check
3327
+ # Name of the HealthCheck resource to return.
3328
3328
  # @param [String] fields
3329
3329
  # Selector specifying which fields to include in a partial response.
3330
3330
  # @param [String] quota_user
@@ -3338,31 +3338,31 @@ module Google
3338
3338
  # Request-specific options
3339
3339
  #
3340
3340
  # @yield [result, err] Result & error if block supplied
3341
- # @yieldparam result [Google::Apis::ComputeBeta::HttpHealthCheck] parsed result object
3341
+ # @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
3342
3342
  # @yieldparam err [StandardError] error object if request failed
3343
3343
  #
3344
- # @return [Google::Apis::ComputeBeta::HttpHealthCheck]
3344
+ # @return [Google::Apis::ComputeBeta::HealthCheck]
3345
3345
  #
3346
3346
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3347
3347
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3348
3348
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3349
- def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3350
- command = make_simple_command(:get, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3351
- command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3352
- command.response_class = Google::Apis::ComputeBeta::HttpHealthCheck
3349
+ def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3350
+ command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options)
3351
+ command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
3352
+ command.response_class = Google::Apis::ComputeBeta::HealthCheck
3353
3353
  command.params['project'] = project unless project.nil?
3354
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3354
+ command.params['healthCheck'] = health_check unless health_check.nil?
3355
3355
  command.query['fields'] = fields unless fields.nil?
3356
3356
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3357
3357
  command.query['userIp'] = user_ip unless user_ip.nil?
3358
3358
  execute_or_queue_command(command, &block)
3359
3359
  end
3360
3360
 
3361
- # Creates a HttpHealthCheck resource in the specified project using the data
3361
+ # Creates a HealthCheck resource in the specified project using the data
3362
3362
  # included in the request.
3363
3363
  # @param [String] project
3364
3364
  # Project ID for this request.
3365
- # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3365
+ # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
3366
3366
  # @param [String] fields
3367
3367
  # Selector specifying which fields to include in a partial response.
3368
3368
  # @param [String] quota_user
@@ -3384,10 +3384,10 @@ module Google
3384
3384
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3385
3385
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3386
3386
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3387
- def insert_http_health_check(project, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3388
- command = make_simple_command(:post, '{project}/global/httpHealthChecks', options)
3389
- command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3390
- command.request_object = http_health_check_object
3387
+ def insert_health_check(project, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3388
+ command = make_simple_command(:post, '{project}/global/healthChecks', options)
3389
+ command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
3390
+ command.request_object = health_check_object
3391
3391
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3392
3392
  command.response_class = Google::Apis::ComputeBeta::Operation
3393
3393
  command.params['project'] = project unless project.nil?
@@ -3397,8 +3397,7 @@ module Google
3397
3397
  execute_or_queue_command(command, &block)
3398
3398
  end
3399
3399
 
3400
- # Retrieves the list of HttpHealthCheck resources available to the specified
3401
- # project.
3400
+ # Retrieves the list of HealthCheck resources available to the specified project.
3402
3401
  # @param [String] project
3403
3402
  # Project ID for this request.
3404
3403
  # @param [String] filter
@@ -3454,18 +3453,18 @@ module Google
3454
3453
  # Request-specific options
3455
3454
  #
3456
3455
  # @yield [result, err] Result & error if block supplied
3457
- # @yieldparam result [Google::Apis::ComputeBeta::HttpHealthCheckList] parsed result object
3456
+ # @yieldparam result [Google::Apis::ComputeBeta::HealthCheckList] parsed result object
3458
3457
  # @yieldparam err [StandardError] error object if request failed
3459
3458
  #
3460
- # @return [Google::Apis::ComputeBeta::HttpHealthCheckList]
3459
+ # @return [Google::Apis::ComputeBeta::HealthCheckList]
3461
3460
  #
3462
3461
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3463
3462
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3464
3463
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3465
- def list_http_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3466
- command = make_simple_command(:get, '{project}/global/httpHealthChecks', options)
3467
- command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheckList::Representation
3468
- command.response_class = Google::Apis::ComputeBeta::HttpHealthCheckList
3464
+ def list_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3465
+ command = make_simple_command(:get, '{project}/global/healthChecks', options)
3466
+ command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation
3467
+ command.response_class = Google::Apis::ComputeBeta::HealthCheckList
3469
3468
  command.params['project'] = project unless project.nil?
3470
3469
  command.query['filter'] = filter unless filter.nil?
3471
3470
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -3477,13 +3476,13 @@ module Google
3477
3476
  execute_or_queue_command(command, &block)
3478
3477
  end
3479
3478
 
3480
- # Updates a HttpHealthCheck resource in the specified project using the data
3479
+ # Updates a HealthCheck resource in the specified project using the data
3481
3480
  # included in the request. This method supports patch semantics.
3482
3481
  # @param [String] project
3483
3482
  # Project ID for this request.
3484
- # @param [String] http_health_check
3485
- # Name of the HttpHealthCheck resource to update.
3486
- # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3483
+ # @param [String] health_check
3484
+ # Name of the HealthCheck resource to update.
3485
+ # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
3487
3486
  # @param [String] fields
3488
3487
  # Selector specifying which fields to include in a partial response.
3489
3488
  # @param [String] quota_user
@@ -3505,14 +3504,14 @@ module Google
3505
3504
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3506
3505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3507
3506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3508
- def patch_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3509
- command = make_simple_command(:patch, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3510
- command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3511
- command.request_object = http_health_check_object
3507
+ def patch_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3508
+ command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options)
3509
+ command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
3510
+ command.request_object = health_check_object
3512
3511
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3513
3512
  command.response_class = Google::Apis::ComputeBeta::Operation
3514
3513
  command.params['project'] = project unless project.nil?
3515
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3514
+ command.params['healthCheck'] = health_check unless health_check.nil?
3516
3515
  command.query['fields'] = fields unless fields.nil?
3517
3516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3518
3517
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -3546,8 +3545,8 @@ module Google
3546
3545
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3547
3546
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3548
3547
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3549
- def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3550
- command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options)
3548
+ def test_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3549
+ command = make_simple_command(:post, '{project}/global/healthChecks/{resource}/testIamPermissions', options)
3551
3550
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
3552
3551
  command.request_object = test_permissions_request_object
3553
3552
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
@@ -3560,13 +3559,13 @@ module Google
3560
3559
  execute_or_queue_command(command, &block)
3561
3560
  end
3562
3561
 
3563
- # Updates a HttpHealthCheck resource in the specified project using the data
3562
+ # Updates a HealthCheck resource in the specified project using the data
3564
3563
  # included in the request.
3565
3564
  # @param [String] project
3566
3565
  # Project ID for this request.
3567
- # @param [String] http_health_check
3568
- # Name of the HttpHealthCheck resource to update.
3569
- # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3566
+ # @param [String] health_check
3567
+ # Name of the HealthCheck resource to update.
3568
+ # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
3570
3569
  # @param [String] fields
3571
3570
  # Selector specifying which fields to include in a partial response.
3572
3571
  # @param [String] quota_user
@@ -3588,25 +3587,25 @@ module Google
3588
3587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3589
3588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3590
3589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3591
- def update_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3592
- command = make_simple_command(:put, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3593
- command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3594
- command.request_object = http_health_check_object
3590
+ def update_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3591
+ command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options)
3592
+ command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
3593
+ command.request_object = health_check_object
3595
3594
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3596
3595
  command.response_class = Google::Apis::ComputeBeta::Operation
3597
3596
  command.params['project'] = project unless project.nil?
3598
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3597
+ command.params['healthCheck'] = health_check unless health_check.nil?
3599
3598
  command.query['fields'] = fields unless fields.nil?
3600
3599
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3601
3600
  command.query['userIp'] = user_ip unless user_ip.nil?
3602
3601
  execute_or_queue_command(command, &block)
3603
3602
  end
3604
3603
 
3605
- # Deletes the specified HttpsHealthCheck resource.
3604
+ # Deletes the specified HttpHealthCheck resource.
3606
3605
  # @param [String] project
3607
3606
  # Project ID for this request.
3608
- # @param [String] https_health_check
3609
- # Name of the HttpsHealthCheck resource to delete.
3607
+ # @param [String] http_health_check
3608
+ # Name of the HttpHealthCheck resource to delete.
3610
3609
  # @param [String] fields
3611
3610
  # Selector specifying which fields to include in a partial response.
3612
3611
  # @param [String] quota_user
@@ -3628,24 +3627,24 @@ module Google
3628
3627
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3629
3628
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3630
3629
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3631
- def delete_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3632
- command = make_simple_command(:delete, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3630
+ def delete_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3631
+ command = make_simple_command(:delete, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3633
3632
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3634
3633
  command.response_class = Google::Apis::ComputeBeta::Operation
3635
3634
  command.params['project'] = project unless project.nil?
3636
- command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
3635
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3637
3636
  command.query['fields'] = fields unless fields.nil?
3638
3637
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3639
3638
  command.query['userIp'] = user_ip unless user_ip.nil?
3640
3639
  execute_or_queue_command(command, &block)
3641
3640
  end
3642
3641
 
3643
- # Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS
3642
+ # Returns the specified HttpHealthCheck resource. Get a list of available HTTP
3644
3643
  # health checks by making a list() request.
3645
3644
  # @param [String] project
3646
3645
  # Project ID for this request.
3647
- # @param [String] https_health_check
3648
- # Name of the HttpsHealthCheck resource to return.
3646
+ # @param [String] http_health_check
3647
+ # Name of the HttpHealthCheck resource to return.
3649
3648
  # @param [String] fields
3650
3649
  # Selector specifying which fields to include in a partial response.
3651
3650
  # @param [String] quota_user
@@ -3659,31 +3658,31 @@ module Google
3659
3658
  # Request-specific options
3660
3659
  #
3661
3660
  # @yield [result, err] Result & error if block supplied
3662
- # @yieldparam result [Google::Apis::ComputeBeta::HttpsHealthCheck] parsed result object
3661
+ # @yieldparam result [Google::Apis::ComputeBeta::HttpHealthCheck] parsed result object
3663
3662
  # @yieldparam err [StandardError] error object if request failed
3664
3663
  #
3665
- # @return [Google::Apis::ComputeBeta::HttpsHealthCheck]
3664
+ # @return [Google::Apis::ComputeBeta::HttpHealthCheck]
3666
3665
  #
3667
3666
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3668
3667
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3669
3668
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3670
- def get_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3671
- command = make_simple_command(:get, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3672
- command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
3673
- command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheck
3669
+ def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3670
+ command = make_simple_command(:get, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3671
+ command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3672
+ command.response_class = Google::Apis::ComputeBeta::HttpHealthCheck
3674
3673
  command.params['project'] = project unless project.nil?
3675
- command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
3674
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3676
3675
  command.query['fields'] = fields unless fields.nil?
3677
3676
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3678
3677
  command.query['userIp'] = user_ip unless user_ip.nil?
3679
3678
  execute_or_queue_command(command, &block)
3680
3679
  end
3681
3680
 
3682
- # Creates a HttpsHealthCheck resource in the specified project using the data
3681
+ # Creates a HttpHealthCheck resource in the specified project using the data
3683
3682
  # included in the request.
3684
3683
  # @param [String] project
3685
3684
  # Project ID for this request.
3686
- # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
3685
+ # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3687
3686
  # @param [String] fields
3688
3687
  # Selector specifying which fields to include in a partial response.
3689
3688
  # @param [String] quota_user
@@ -3705,10 +3704,10 @@ module Google
3705
3704
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3706
3705
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3707
3706
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3708
- def insert_https_health_check(project, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3709
- command = make_simple_command(:post, '{project}/global/httpsHealthChecks', options)
3710
- command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
3711
- command.request_object = https_health_check_object
3707
+ def insert_http_health_check(project, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3708
+ command = make_simple_command(:post, '{project}/global/httpHealthChecks', options)
3709
+ command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3710
+ command.request_object = http_health_check_object
3712
3711
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3713
3712
  command.response_class = Google::Apis::ComputeBeta::Operation
3714
3713
  command.params['project'] = project unless project.nil?
@@ -3718,7 +3717,7 @@ module Google
3718
3717
  execute_or_queue_command(command, &block)
3719
3718
  end
3720
3719
 
3721
- # Retrieves the list of HttpsHealthCheck resources available to the specified
3720
+ # Retrieves the list of HttpHealthCheck resources available to the specified
3722
3721
  # project.
3723
3722
  # @param [String] project
3724
3723
  # Project ID for this request.
@@ -3775,18 +3774,18 @@ module Google
3775
3774
  # Request-specific options
3776
3775
  #
3777
3776
  # @yield [result, err] Result & error if block supplied
3778
- # @yieldparam result [Google::Apis::ComputeBeta::HttpsHealthCheckList] parsed result object
3777
+ # @yieldparam result [Google::Apis::ComputeBeta::HttpHealthCheckList] parsed result object
3779
3778
  # @yieldparam err [StandardError] error object if request failed
3780
3779
  #
3781
- # @return [Google::Apis::ComputeBeta::HttpsHealthCheckList]
3780
+ # @return [Google::Apis::ComputeBeta::HttpHealthCheckList]
3782
3781
  #
3783
3782
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3784
3783
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3785
3784
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3786
- def list_https_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3787
- command = make_simple_command(:get, '{project}/global/httpsHealthChecks', options)
3788
- command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheckList::Representation
3789
- command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheckList
3785
+ def list_http_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3786
+ command = make_simple_command(:get, '{project}/global/httpHealthChecks', options)
3787
+ command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheckList::Representation
3788
+ command.response_class = Google::Apis::ComputeBeta::HttpHealthCheckList
3790
3789
  command.params['project'] = project unless project.nil?
3791
3790
  command.query['filter'] = filter unless filter.nil?
3792
3791
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -3798,13 +3797,13 @@ module Google
3798
3797
  execute_or_queue_command(command, &block)
3799
3798
  end
3800
3799
 
3801
- # Updates a HttpsHealthCheck resource in the specified project using the data
3800
+ # Updates a HttpHealthCheck resource in the specified project using the data
3802
3801
  # included in the request. This method supports patch semantics.
3803
3802
  # @param [String] project
3804
3803
  # Project ID for this request.
3805
- # @param [String] https_health_check
3806
- # Name of the HttpsHealthCheck resource to update.
3807
- # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
3804
+ # @param [String] http_health_check
3805
+ # Name of the HttpHealthCheck resource to update.
3806
+ # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3808
3807
  # @param [String] fields
3809
3808
  # Selector specifying which fields to include in a partial response.
3810
3809
  # @param [String] quota_user
@@ -3826,14 +3825,14 @@ module Google
3826
3825
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3827
3826
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3828
3827
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3829
- def patch_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3830
- command = make_simple_command(:patch, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3831
- command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
3832
- command.request_object = https_health_check_object
3828
+ def patch_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3829
+ command = make_simple_command(:patch, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3830
+ command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3831
+ command.request_object = http_health_check_object
3833
3832
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3834
3833
  command.response_class = Google::Apis::ComputeBeta::Operation
3835
3834
  command.params['project'] = project unless project.nil?
3836
- command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
3835
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3837
3836
  command.query['fields'] = fields unless fields.nil?
3838
3837
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3839
3838
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -3867,8 +3866,8 @@ module Google
3867
3866
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3868
3867
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3869
3868
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3870
- def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3871
- command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options)
3869
+ def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3870
+ command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options)
3872
3871
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
3873
3872
  command.request_object = test_permissions_request_object
3874
3873
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
@@ -3881,13 +3880,13 @@ module Google
3881
3880
  execute_or_queue_command(command, &block)
3882
3881
  end
3883
3882
 
3884
- # Updates a HttpsHealthCheck resource in the specified project using the data
3883
+ # Updates a HttpHealthCheck resource in the specified project using the data
3885
3884
  # included in the request.
3886
3885
  # @param [String] project
3887
3886
  # Project ID for this request.
3888
- # @param [String] https_health_check
3889
- # Name of the HttpsHealthCheck resource to update.
3890
- # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
3887
+ # @param [String] http_health_check
3888
+ # Name of the HttpHealthCheck resource to update.
3889
+ # @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
3891
3890
  # @param [String] fields
3892
3891
  # Selector specifying which fields to include in a partial response.
3893
3892
  # @param [String] quota_user
@@ -3909,25 +3908,25 @@ module Google
3909
3908
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3910
3909
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3911
3910
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3912
- def update_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3913
- command = make_simple_command(:put, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3914
- command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
3915
- command.request_object = https_health_check_object
3911
+ def update_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3912
+ command = make_simple_command(:put, '{project}/global/httpHealthChecks/{httpHealthCheck}', options)
3913
+ command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation
3914
+ command.request_object = http_health_check_object
3916
3915
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3917
3916
  command.response_class = Google::Apis::ComputeBeta::Operation
3918
3917
  command.params['project'] = project unless project.nil?
3919
- command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
3918
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3920
3919
  command.query['fields'] = fields unless fields.nil?
3921
3920
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3922
3921
  command.query['userIp'] = user_ip unless user_ip.nil?
3923
3922
  execute_or_queue_command(command, &block)
3924
3923
  end
3925
3924
 
3926
- # Deletes the specified image.
3925
+ # Deletes the specified HttpsHealthCheck resource.
3927
3926
  # @param [String] project
3928
3927
  # Project ID for this request.
3929
- # @param [String] image
3930
- # Name of the image resource to delete.
3928
+ # @param [String] https_health_check
3929
+ # Name of the HttpsHealthCheck resource to delete.
3931
3930
  # @param [String] fields
3932
3931
  # Selector specifying which fields to include in a partial response.
3933
3932
  # @param [String] quota_user
@@ -3949,25 +3948,24 @@ module Google
3949
3948
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3950
3949
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3951
3950
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3952
- def delete_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3953
- command = make_simple_command(:delete, '{project}/global/images/{image}', options)
3951
+ def delete_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3952
+ command = make_simple_command(:delete, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3954
3953
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3955
3954
  command.response_class = Google::Apis::ComputeBeta::Operation
3956
3955
  command.params['project'] = project unless project.nil?
3957
- command.params['image'] = image unless image.nil?
3956
+ command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
3958
3957
  command.query['fields'] = fields unless fields.nil?
3959
3958
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3960
3959
  command.query['userIp'] = user_ip unless user_ip.nil?
3961
3960
  execute_or_queue_command(command, &block)
3962
3961
  end
3963
3962
 
3964
- # Sets the deprecation status of an image.
3965
- # If an empty request body is given, clears the deprecation status instead.
3963
+ # Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS
3964
+ # health checks by making a list() request.
3966
3965
  # @param [String] project
3967
3966
  # Project ID for this request.
3968
- # @param [String] image
3969
- # Image name.
3970
- # @param [Google::Apis::ComputeBeta::DeprecationStatus] deprecation_status_object
3967
+ # @param [String] https_health_check
3968
+ # Name of the HttpsHealthCheck resource to return.
3971
3969
  # @param [String] fields
3972
3970
  # Selector specifying which fields to include in a partial response.
3973
3971
  # @param [String] quota_user
@@ -3981,34 +3979,31 @@ module Google
3981
3979
  # Request-specific options
3982
3980
  #
3983
3981
  # @yield [result, err] Result & error if block supplied
3984
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
3982
+ # @yieldparam result [Google::Apis::ComputeBeta::HttpsHealthCheck] parsed result object
3985
3983
  # @yieldparam err [StandardError] error object if request failed
3986
3984
  #
3987
- # @return [Google::Apis::ComputeBeta::Operation]
3985
+ # @return [Google::Apis::ComputeBeta::HttpsHealthCheck]
3988
3986
  #
3989
3987
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3990
3988
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3991
3989
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3992
- def deprecate_image(project, image, deprecation_status_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3993
- command = make_simple_command(:post, '{project}/global/images/{image}/deprecate', options)
3994
- command.request_representation = Google::Apis::ComputeBeta::DeprecationStatus::Representation
3995
- command.request_object = deprecation_status_object
3996
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
3997
- command.response_class = Google::Apis::ComputeBeta::Operation
3990
+ def get_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3991
+ command = make_simple_command(:get, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
3992
+ command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
3993
+ command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheck
3998
3994
  command.params['project'] = project unless project.nil?
3999
- command.params['image'] = image unless image.nil?
3995
+ command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
4000
3996
  command.query['fields'] = fields unless fields.nil?
4001
3997
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4002
3998
  command.query['userIp'] = user_ip unless user_ip.nil?
4003
3999
  execute_or_queue_command(command, &block)
4004
4000
  end
4005
4001
 
4006
- # Returns the specified image. Get a list of available images by making a list()
4007
- # request.
4002
+ # Creates a HttpsHealthCheck resource in the specified project using the data
4003
+ # included in the request.
4008
4004
  # @param [String] project
4009
4005
  # Project ID for this request.
4010
- # @param [String] image
4011
- # Name of the image resource to return.
4006
+ # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
4012
4007
  # @param [String] fields
4013
4008
  # Selector specifying which fields to include in a partial response.
4014
4009
  # @param [String] quota_user
@@ -4022,31 +4017,71 @@ module Google
4022
4017
  # Request-specific options
4023
4018
  #
4024
4019
  # @yield [result, err] Result & error if block supplied
4025
- # @yieldparam result [Google::Apis::ComputeBeta::Image] parsed result object
4020
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4026
4021
  # @yieldparam err [StandardError] error object if request failed
4027
4022
  #
4028
- # @return [Google::Apis::ComputeBeta::Image]
4023
+ # @return [Google::Apis::ComputeBeta::Operation]
4029
4024
  #
4030
4025
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4031
4026
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4032
4027
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4033
- def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4034
- command = make_simple_command(:get, '{project}/global/images/{image}', options)
4035
- command.response_representation = Google::Apis::ComputeBeta::Image::Representation
4036
- command.response_class = Google::Apis::ComputeBeta::Image
4028
+ def insert_https_health_check(project, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4029
+ command = make_simple_command(:post, '{project}/global/httpsHealthChecks', options)
4030
+ command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
4031
+ command.request_object = https_health_check_object
4032
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4033
+ command.response_class = Google::Apis::ComputeBeta::Operation
4037
4034
  command.params['project'] = project unless project.nil?
4038
- command.params['image'] = image unless image.nil?
4039
4035
  command.query['fields'] = fields unless fields.nil?
4040
4036
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4041
4037
  command.query['userIp'] = user_ip unless user_ip.nil?
4042
4038
  execute_or_queue_command(command, &block)
4043
4039
  end
4044
4040
 
4045
- # Returns the latest image that is part of an image family and is not deprecated.
4041
+ # Retrieves the list of HttpsHealthCheck resources available to the specified
4042
+ # project.
4046
4043
  # @param [String] project
4047
4044
  # Project ID for this request.
4048
- # @param [String] family
4049
- # Name of the image resource to return.
4045
+ # @param [String] filter
4046
+ # Sets a filter expression for filtering listed resources, in the form filter=`
4047
+ # expression`. Your `expression` must be in the format: field_name
4048
+ # comparison_string literal_string.
4049
+ # The field_name is the name of the field you want to compare. Only atomic field
4050
+ # types are supported (string, number, boolean). The comparison_string must be
4051
+ # either eq (equals) or ne (not equals). The literal_string is the string value
4052
+ # to filter to. The literal value must be valid for the type of field you are
4053
+ # filtering by (string, number, boolean). For string fields, the literal value
4054
+ # is interpreted as a regular expression using RE2 syntax. The literal value
4055
+ # must match the entire field.
4056
+ # For example, to filter for instances that do not have a name of example-
4057
+ # instance, you would use filter=name ne example-instance.
4058
+ # Compute Engine Beta API Only: When filtering in the Beta API, you can also
4059
+ # filter on nested fields. For example, you could filter on instances that have
4060
+ # set the scheduling.automaticRestart field to true. Use filtering on nested
4061
+ # fields to take advantage of labels to organize and search for results based on
4062
+ # label values.
4063
+ # The Beta API also supports filtering on multiple expressions by providing each
4064
+ # separate expression within parentheses. For example, (scheduling.
4065
+ # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
4066
+ # treated as AND expressions, meaning that resources must match all expressions
4067
+ # to pass the filters.
4068
+ # @param [Fixnum] max_results
4069
+ # The maximum number of results per page that should be returned. If the number
4070
+ # of available results is larger than maxResults, Compute Engine returns a
4071
+ # nextPageToken that can be used to get the next page of results in subsequent
4072
+ # list requests.
4073
+ # @param [String] order_by
4074
+ # Sorts list results by a certain order. By default, results are returned in
4075
+ # alphanumerical order based on the resource name.
4076
+ # You can also sort results in descending order based on the creation timestamp
4077
+ # using orderBy="creationTimestamp desc". This sorts results based on the
4078
+ # creationTimestamp field in reverse chronological order (newest result first).
4079
+ # Use this to sort resources like operations so that the newest operation is
4080
+ # returned first.
4081
+ # Currently, only sorting by name or creationTimestamp desc is supported.
4082
+ # @param [String] page_token
4083
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
4084
+ # a previous list request to get the next page of results.
4050
4085
  # @param [String] fields
4051
4086
  # Selector specifying which fields to include in a partial response.
4052
4087
  # @param [String] quota_user
@@ -4060,10 +4095,295 @@ module Google
4060
4095
  # Request-specific options
4061
4096
  #
4062
4097
  # @yield [result, err] Result & error if block supplied
4063
- # @yieldparam result [Google::Apis::ComputeBeta::Image] parsed result object
4098
+ # @yieldparam result [Google::Apis::ComputeBeta::HttpsHealthCheckList] parsed result object
4064
4099
  # @yieldparam err [StandardError] error object if request failed
4065
4100
  #
4066
- # @return [Google::Apis::ComputeBeta::Image]
4101
+ # @return [Google::Apis::ComputeBeta::HttpsHealthCheckList]
4102
+ #
4103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4106
+ def list_https_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4107
+ command = make_simple_command(:get, '{project}/global/httpsHealthChecks', options)
4108
+ command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheckList::Representation
4109
+ command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheckList
4110
+ command.params['project'] = project unless project.nil?
4111
+ command.query['filter'] = filter unless filter.nil?
4112
+ command.query['maxResults'] = max_results unless max_results.nil?
4113
+ command.query['orderBy'] = order_by unless order_by.nil?
4114
+ command.query['pageToken'] = page_token unless page_token.nil?
4115
+ command.query['fields'] = fields unless fields.nil?
4116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4117
+ command.query['userIp'] = user_ip unless user_ip.nil?
4118
+ execute_or_queue_command(command, &block)
4119
+ end
4120
+
4121
+ # Updates a HttpsHealthCheck resource in the specified project using the data
4122
+ # included in the request. This method supports patch semantics.
4123
+ # @param [String] project
4124
+ # Project ID for this request.
4125
+ # @param [String] https_health_check
4126
+ # Name of the HttpsHealthCheck resource to update.
4127
+ # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
4128
+ # @param [String] fields
4129
+ # Selector specifying which fields to include in a partial response.
4130
+ # @param [String] quota_user
4131
+ # Available to use for quota purposes for server-side applications. Can be any
4132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4133
+ # Overrides userIp if both are provided.
4134
+ # @param [String] user_ip
4135
+ # IP address of the site where the request originates. Use this if you want to
4136
+ # enforce per-user limits.
4137
+ # @param [Google::Apis::RequestOptions] options
4138
+ # Request-specific options
4139
+ #
4140
+ # @yield [result, err] Result & error if block supplied
4141
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4142
+ # @yieldparam err [StandardError] error object if request failed
4143
+ #
4144
+ # @return [Google::Apis::ComputeBeta::Operation]
4145
+ #
4146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4149
+ def patch_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4150
+ command = make_simple_command(:patch, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
4151
+ command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
4152
+ command.request_object = https_health_check_object
4153
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4154
+ command.response_class = Google::Apis::ComputeBeta::Operation
4155
+ command.params['project'] = project unless project.nil?
4156
+ command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
4157
+ command.query['fields'] = fields unless fields.nil?
4158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4159
+ command.query['userIp'] = user_ip unless user_ip.nil?
4160
+ execute_or_queue_command(command, &block)
4161
+ end
4162
+
4163
+ # Returns permissions that a caller has on the specified resource.
4164
+ # @param [String] project
4165
+ # Project ID for this request.
4166
+ # @param [String] resource
4167
+ # Name of the resource for this request.
4168
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
4169
+ # @param [String] fields
4170
+ # Selector specifying which fields to include in a partial response.
4171
+ # @param [String] quota_user
4172
+ # Available to use for quota purposes for server-side applications. Can be any
4173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4174
+ # Overrides userIp if both are provided.
4175
+ # @param [String] user_ip
4176
+ # IP address of the site where the request originates. Use this if you want to
4177
+ # enforce per-user limits.
4178
+ # @param [Google::Apis::RequestOptions] options
4179
+ # Request-specific options
4180
+ #
4181
+ # @yield [result, err] Result & error if block supplied
4182
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
4183
+ # @yieldparam err [StandardError] error object if request failed
4184
+ #
4185
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
4186
+ #
4187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4190
+ def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4191
+ command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options)
4192
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
4193
+ command.request_object = test_permissions_request_object
4194
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
4195
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
4196
+ command.params['project'] = project unless project.nil?
4197
+ command.params['resource'] = resource unless resource.nil?
4198
+ command.query['fields'] = fields unless fields.nil?
4199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4200
+ command.query['userIp'] = user_ip unless user_ip.nil?
4201
+ execute_or_queue_command(command, &block)
4202
+ end
4203
+
4204
+ # Updates a HttpsHealthCheck resource in the specified project using the data
4205
+ # included in the request.
4206
+ # @param [String] project
4207
+ # Project ID for this request.
4208
+ # @param [String] https_health_check
4209
+ # Name of the HttpsHealthCheck resource to update.
4210
+ # @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
4211
+ # @param [String] fields
4212
+ # Selector specifying which fields to include in a partial response.
4213
+ # @param [String] quota_user
4214
+ # Available to use for quota purposes for server-side applications. Can be any
4215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4216
+ # Overrides userIp if both are provided.
4217
+ # @param [String] user_ip
4218
+ # IP address of the site where the request originates. Use this if you want to
4219
+ # enforce per-user limits.
4220
+ # @param [Google::Apis::RequestOptions] options
4221
+ # Request-specific options
4222
+ #
4223
+ # @yield [result, err] Result & error if block supplied
4224
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4225
+ # @yieldparam err [StandardError] error object if request failed
4226
+ #
4227
+ # @return [Google::Apis::ComputeBeta::Operation]
4228
+ #
4229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4232
+ def update_https_health_check(project, https_health_check, https_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4233
+ command = make_simple_command(:put, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options)
4234
+ command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
4235
+ command.request_object = https_health_check_object
4236
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4237
+ command.response_class = Google::Apis::ComputeBeta::Operation
4238
+ command.params['project'] = project unless project.nil?
4239
+ command.params['httpsHealthCheck'] = https_health_check unless https_health_check.nil?
4240
+ command.query['fields'] = fields unless fields.nil?
4241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4242
+ command.query['userIp'] = user_ip unless user_ip.nil?
4243
+ execute_or_queue_command(command, &block)
4244
+ end
4245
+
4246
+ # Deletes the specified image.
4247
+ # @param [String] project
4248
+ # Project ID for this request.
4249
+ # @param [String] image
4250
+ # Name of the image resource to delete.
4251
+ # @param [String] fields
4252
+ # Selector specifying which fields to include in a partial response.
4253
+ # @param [String] quota_user
4254
+ # Available to use for quota purposes for server-side applications. Can be any
4255
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4256
+ # Overrides userIp if both are provided.
4257
+ # @param [String] user_ip
4258
+ # IP address of the site where the request originates. Use this if you want to
4259
+ # enforce per-user limits.
4260
+ # @param [Google::Apis::RequestOptions] options
4261
+ # Request-specific options
4262
+ #
4263
+ # @yield [result, err] Result & error if block supplied
4264
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4265
+ # @yieldparam err [StandardError] error object if request failed
4266
+ #
4267
+ # @return [Google::Apis::ComputeBeta::Operation]
4268
+ #
4269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4272
+ def delete_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4273
+ command = make_simple_command(:delete, '{project}/global/images/{image}', options)
4274
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4275
+ command.response_class = Google::Apis::ComputeBeta::Operation
4276
+ command.params['project'] = project unless project.nil?
4277
+ command.params['image'] = image unless image.nil?
4278
+ command.query['fields'] = fields unless fields.nil?
4279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4280
+ command.query['userIp'] = user_ip unless user_ip.nil?
4281
+ execute_or_queue_command(command, &block)
4282
+ end
4283
+
4284
+ # Sets the deprecation status of an image.
4285
+ # If an empty request body is given, clears the deprecation status instead.
4286
+ # @param [String] project
4287
+ # Project ID for this request.
4288
+ # @param [String] image
4289
+ # Image name.
4290
+ # @param [Google::Apis::ComputeBeta::DeprecationStatus] deprecation_status_object
4291
+ # @param [String] fields
4292
+ # Selector specifying which fields to include in a partial response.
4293
+ # @param [String] quota_user
4294
+ # Available to use for quota purposes for server-side applications. Can be any
4295
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4296
+ # Overrides userIp if both are provided.
4297
+ # @param [String] user_ip
4298
+ # IP address of the site where the request originates. Use this if you want to
4299
+ # enforce per-user limits.
4300
+ # @param [Google::Apis::RequestOptions] options
4301
+ # Request-specific options
4302
+ #
4303
+ # @yield [result, err] Result & error if block supplied
4304
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
4305
+ # @yieldparam err [StandardError] error object if request failed
4306
+ #
4307
+ # @return [Google::Apis::ComputeBeta::Operation]
4308
+ #
4309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4312
+ def deprecate_image(project, image, deprecation_status_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4313
+ command = make_simple_command(:post, '{project}/global/images/{image}/deprecate', options)
4314
+ command.request_representation = Google::Apis::ComputeBeta::DeprecationStatus::Representation
4315
+ command.request_object = deprecation_status_object
4316
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
4317
+ command.response_class = Google::Apis::ComputeBeta::Operation
4318
+ command.params['project'] = project unless project.nil?
4319
+ command.params['image'] = image unless image.nil?
4320
+ command.query['fields'] = fields unless fields.nil?
4321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4322
+ command.query['userIp'] = user_ip unless user_ip.nil?
4323
+ execute_or_queue_command(command, &block)
4324
+ end
4325
+
4326
+ # Returns the specified image. Get a list of available images by making a list()
4327
+ # request.
4328
+ # @param [String] project
4329
+ # Project ID for this request.
4330
+ # @param [String] image
4331
+ # Name of the image resource to return.
4332
+ # @param [String] fields
4333
+ # Selector specifying which fields to include in a partial response.
4334
+ # @param [String] quota_user
4335
+ # Available to use for quota purposes for server-side applications. Can be any
4336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4337
+ # Overrides userIp if both are provided.
4338
+ # @param [String] user_ip
4339
+ # IP address of the site where the request originates. Use this if you want to
4340
+ # enforce per-user limits.
4341
+ # @param [Google::Apis::RequestOptions] options
4342
+ # Request-specific options
4343
+ #
4344
+ # @yield [result, err] Result & error if block supplied
4345
+ # @yieldparam result [Google::Apis::ComputeBeta::Image] parsed result object
4346
+ # @yieldparam err [StandardError] error object if request failed
4347
+ #
4348
+ # @return [Google::Apis::ComputeBeta::Image]
4349
+ #
4350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4353
+ def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4354
+ command = make_simple_command(:get, '{project}/global/images/{image}', options)
4355
+ command.response_representation = Google::Apis::ComputeBeta::Image::Representation
4356
+ command.response_class = Google::Apis::ComputeBeta::Image
4357
+ command.params['project'] = project unless project.nil?
4358
+ command.params['image'] = image unless image.nil?
4359
+ command.query['fields'] = fields unless fields.nil?
4360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4361
+ command.query['userIp'] = user_ip unless user_ip.nil?
4362
+ execute_or_queue_command(command, &block)
4363
+ end
4364
+
4365
+ # Returns the latest image that is part of an image family and is not deprecated.
4366
+ # @param [String] project
4367
+ # Project ID for this request.
4368
+ # @param [String] family
4369
+ # Name of the image resource to return.
4370
+ # @param [String] fields
4371
+ # Selector specifying which fields to include in a partial response.
4372
+ # @param [String] quota_user
4373
+ # Available to use for quota purposes for server-side applications. Can be any
4374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4375
+ # Overrides userIp if both are provided.
4376
+ # @param [String] user_ip
4377
+ # IP address of the site where the request originates. Use this if you want to
4378
+ # enforce per-user limits.
4379
+ # @param [Google::Apis::RequestOptions] options
4380
+ # Request-specific options
4381
+ #
4382
+ # @yield [result, err] Result & error if block supplied
4383
+ # @yieldparam result [Google::Apis::ComputeBeta::Image] parsed result object
4384
+ # @yieldparam err [StandardError] error object if request failed
4385
+ #
4386
+ # @return [Google::Apis::ComputeBeta::Image]
4067
4387
  #
4068
4388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4069
4389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -8923,35 +9243,239 @@ module Google
8923
9243
  # Request-specific options
8924
9244
  #
8925
9245
  # @yield [result, err] Result & error if block supplied
8926
- # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateList] parsed result object
9246
+ # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateList] parsed result object
9247
+ # @yieldparam err [StandardError] error object if request failed
9248
+ #
9249
+ # @return [Google::Apis::ComputeBeta::SslCertificateList]
9250
+ #
9251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9254
+ def list_ssl_certificates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9255
+ command = make_simple_command(:get, '{project}/global/sslCertificates', options)
9256
+ command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation
9257
+ command.response_class = Google::Apis::ComputeBeta::SslCertificateList
9258
+ command.params['project'] = project unless project.nil?
9259
+ command.query['filter'] = filter unless filter.nil?
9260
+ command.query['maxResults'] = max_results unless max_results.nil?
9261
+ command.query['orderBy'] = order_by unless order_by.nil?
9262
+ command.query['pageToken'] = page_token unless page_token.nil?
9263
+ command.query['fields'] = fields unless fields.nil?
9264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9265
+ command.query['userIp'] = user_ip unless user_ip.nil?
9266
+ execute_or_queue_command(command, &block)
9267
+ end
9268
+
9269
+ # Returns permissions that a caller has on the specified resource.
9270
+ # @param [String] project
9271
+ # Project ID for this request.
9272
+ # @param [String] resource
9273
+ # Name of the resource for this request.
9274
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
9275
+ # @param [String] fields
9276
+ # Selector specifying which fields to include in a partial response.
9277
+ # @param [String] quota_user
9278
+ # Available to use for quota purposes for server-side applications. Can be any
9279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9280
+ # Overrides userIp if both are provided.
9281
+ # @param [String] user_ip
9282
+ # IP address of the site where the request originates. Use this if you want to
9283
+ # enforce per-user limits.
9284
+ # @param [Google::Apis::RequestOptions] options
9285
+ # Request-specific options
9286
+ #
9287
+ # @yield [result, err] Result & error if block supplied
9288
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
9289
+ # @yieldparam err [StandardError] error object if request failed
9290
+ #
9291
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
9292
+ #
9293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9296
+ def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9297
+ command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options)
9298
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
9299
+ command.request_object = test_permissions_request_object
9300
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
9301
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
9302
+ command.params['project'] = project unless project.nil?
9303
+ command.params['resource'] = resource unless resource.nil?
9304
+ command.query['fields'] = fields unless fields.nil?
9305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9306
+ command.query['userIp'] = user_ip unless user_ip.nil?
9307
+ execute_or_queue_command(command, &block)
9308
+ end
9309
+
9310
+ # Retrieves an aggregated list of subnetworks.
9311
+ # @param [String] project
9312
+ # Project ID for this request.
9313
+ # @param [String] filter
9314
+ # Sets a filter expression for filtering listed resources, in the form filter=`
9315
+ # expression`. Your `expression` must be in the format: field_name
9316
+ # comparison_string literal_string.
9317
+ # The field_name is the name of the field you want to compare. Only atomic field
9318
+ # types are supported (string, number, boolean). The comparison_string must be
9319
+ # either eq (equals) or ne (not equals). The literal_string is the string value
9320
+ # to filter to. The literal value must be valid for the type of field you are
9321
+ # filtering by (string, number, boolean). For string fields, the literal value
9322
+ # is interpreted as a regular expression using RE2 syntax. The literal value
9323
+ # must match the entire field.
9324
+ # For example, to filter for instances that do not have a name of example-
9325
+ # instance, you would use filter=name ne example-instance.
9326
+ # Compute Engine Beta API Only: When filtering in the Beta API, you can also
9327
+ # filter on nested fields. For example, you could filter on instances that have
9328
+ # set the scheduling.automaticRestart field to true. Use filtering on nested
9329
+ # fields to take advantage of labels to organize and search for results based on
9330
+ # label values.
9331
+ # The Beta API also supports filtering on multiple expressions by providing each
9332
+ # separate expression within parentheses. For example, (scheduling.
9333
+ # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
9334
+ # treated as AND expressions, meaning that resources must match all expressions
9335
+ # to pass the filters.
9336
+ # @param [Fixnum] max_results
9337
+ # The maximum number of results per page that should be returned. If the number
9338
+ # of available results is larger than maxResults, Compute Engine returns a
9339
+ # nextPageToken that can be used to get the next page of results in subsequent
9340
+ # list requests.
9341
+ # @param [String] order_by
9342
+ # Sorts list results by a certain order. By default, results are returned in
9343
+ # alphanumerical order based on the resource name.
9344
+ # You can also sort results in descending order based on the creation timestamp
9345
+ # using orderBy="creationTimestamp desc". This sorts results based on the
9346
+ # creationTimestamp field in reverse chronological order (newest result first).
9347
+ # Use this to sort resources like operations so that the newest operation is
9348
+ # returned first.
9349
+ # Currently, only sorting by name or creationTimestamp desc is supported.
9350
+ # @param [String] page_token
9351
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
9352
+ # a previous list request to get the next page of results.
9353
+ # @param [String] fields
9354
+ # Selector specifying which fields to include in a partial response.
9355
+ # @param [String] quota_user
9356
+ # Available to use for quota purposes for server-side applications. Can be any
9357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9358
+ # Overrides userIp if both are provided.
9359
+ # @param [String] user_ip
9360
+ # IP address of the site where the request originates. Use this if you want to
9361
+ # enforce per-user limits.
9362
+ # @param [Google::Apis::RequestOptions] options
9363
+ # Request-specific options
9364
+ #
9365
+ # @yield [result, err] Result & error if block supplied
9366
+ # @yieldparam result [Google::Apis::ComputeBeta::SubnetworkAggregatedList] parsed result object
9367
+ # @yieldparam err [StandardError] error object if request failed
9368
+ #
9369
+ # @return [Google::Apis::ComputeBeta::SubnetworkAggregatedList]
9370
+ #
9371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9374
+ def list_aggregated_subnetworks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9375
+ command = make_simple_command(:get, '{project}/aggregated/subnetworks', options)
9376
+ command.response_representation = Google::Apis::ComputeBeta::SubnetworkAggregatedList::Representation
9377
+ command.response_class = Google::Apis::ComputeBeta::SubnetworkAggregatedList
9378
+ command.params['project'] = project unless project.nil?
9379
+ command.query['filter'] = filter unless filter.nil?
9380
+ command.query['maxResults'] = max_results unless max_results.nil?
9381
+ command.query['orderBy'] = order_by unless order_by.nil?
9382
+ command.query['pageToken'] = page_token unless page_token.nil?
9383
+ command.query['fields'] = fields unless fields.nil?
9384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9385
+ command.query['userIp'] = user_ip unless user_ip.nil?
9386
+ execute_or_queue_command(command, &block)
9387
+ end
9388
+
9389
+ # Deletes the specified subnetwork.
9390
+ # @param [String] project
9391
+ # Project ID for this request.
9392
+ # @param [String] region
9393
+ # Name of the region scoping this request.
9394
+ # @param [String] subnetwork
9395
+ # Name of the Subnetwork resource to delete.
9396
+ # @param [String] fields
9397
+ # Selector specifying which fields to include in a partial response.
9398
+ # @param [String] quota_user
9399
+ # Available to use for quota purposes for server-side applications. Can be any
9400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9401
+ # Overrides userIp if both are provided.
9402
+ # @param [String] user_ip
9403
+ # IP address of the site where the request originates. Use this if you want to
9404
+ # enforce per-user limits.
9405
+ # @param [Google::Apis::RequestOptions] options
9406
+ # Request-specific options
9407
+ #
9408
+ # @yield [result, err] Result & error if block supplied
9409
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9410
+ # @yieldparam err [StandardError] error object if request failed
9411
+ #
9412
+ # @return [Google::Apis::ComputeBeta::Operation]
9413
+ #
9414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9417
+ def delete_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9418
+ command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
9419
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9420
+ command.response_class = Google::Apis::ComputeBeta::Operation
9421
+ command.params['project'] = project unless project.nil?
9422
+ command.params['region'] = region unless region.nil?
9423
+ command.params['subnetwork'] = subnetwork unless subnetwork.nil?
9424
+ command.query['fields'] = fields unless fields.nil?
9425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9426
+ command.query['userIp'] = user_ip unless user_ip.nil?
9427
+ execute_or_queue_command(command, &block)
9428
+ end
9429
+
9430
+ # Returns the specified subnetwork. Get a list of available subnetworks list()
9431
+ # request.
9432
+ # @param [String] project
9433
+ # Project ID for this request.
9434
+ # @param [String] region
9435
+ # Name of the region scoping this request.
9436
+ # @param [String] subnetwork
9437
+ # Name of the Subnetwork resource to return.
9438
+ # @param [String] fields
9439
+ # Selector specifying which fields to include in a partial response.
9440
+ # @param [String] quota_user
9441
+ # Available to use for quota purposes for server-side applications. Can be any
9442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9443
+ # Overrides userIp if both are provided.
9444
+ # @param [String] user_ip
9445
+ # IP address of the site where the request originates. Use this if you want to
9446
+ # enforce per-user limits.
9447
+ # @param [Google::Apis::RequestOptions] options
9448
+ # Request-specific options
9449
+ #
9450
+ # @yield [result, err] Result & error if block supplied
9451
+ # @yieldparam result [Google::Apis::ComputeBeta::Subnetwork] parsed result object
8927
9452
  # @yieldparam err [StandardError] error object if request failed
8928
9453
  #
8929
- # @return [Google::Apis::ComputeBeta::SslCertificateList]
9454
+ # @return [Google::Apis::ComputeBeta::Subnetwork]
8930
9455
  #
8931
9456
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8932
9457
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8933
9458
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8934
- def list_ssl_certificates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8935
- command = make_simple_command(:get, '{project}/global/sslCertificates', options)
8936
- command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation
8937
- command.response_class = Google::Apis::ComputeBeta::SslCertificateList
9459
+ def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9460
+ command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
9461
+ command.response_representation = Google::Apis::ComputeBeta::Subnetwork::Representation
9462
+ command.response_class = Google::Apis::ComputeBeta::Subnetwork
8938
9463
  command.params['project'] = project unless project.nil?
8939
- command.query['filter'] = filter unless filter.nil?
8940
- command.query['maxResults'] = max_results unless max_results.nil?
8941
- command.query['orderBy'] = order_by unless order_by.nil?
8942
- command.query['pageToken'] = page_token unless page_token.nil?
9464
+ command.params['region'] = region unless region.nil?
9465
+ command.params['subnetwork'] = subnetwork unless subnetwork.nil?
8943
9466
  command.query['fields'] = fields unless fields.nil?
8944
9467
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8945
9468
  command.query['userIp'] = user_ip unless user_ip.nil?
8946
9469
  execute_or_queue_command(command, &block)
8947
9470
  end
8948
9471
 
8949
- # Returns permissions that a caller has on the specified resource.
9472
+ # Creates a subnetwork in the specified project using the data included in the
9473
+ # request.
8950
9474
  # @param [String] project
8951
9475
  # Project ID for this request.
8952
- # @param [String] resource
8953
- # Name of the resource for this request.
8954
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
9476
+ # @param [String] region
9477
+ # Name of the region scoping this request.
9478
+ # @param [Google::Apis::ComputeBeta::Subnetwork] subnetwork_object
8955
9479
  # @param [String] fields
8956
9480
  # Selector specifying which fields to include in a partial response.
8957
9481
  # @param [String] quota_user
@@ -8965,31 +9489,33 @@ module Google
8965
9489
  # Request-specific options
8966
9490
  #
8967
9491
  # @yield [result, err] Result & error if block supplied
8968
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
9492
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
8969
9493
  # @yieldparam err [StandardError] error object if request failed
8970
9494
  #
8971
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
9495
+ # @return [Google::Apis::ComputeBeta::Operation]
8972
9496
  #
8973
9497
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8974
9498
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8975
9499
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8976
- def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8977
- command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options)
8978
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
8979
- command.request_object = test_permissions_request_object
8980
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
8981
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
9500
+ def insert_subnetwork(project, region, subnetwork_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9501
+ command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options)
9502
+ command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation
9503
+ command.request_object = subnetwork_object
9504
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9505
+ command.response_class = Google::Apis::ComputeBeta::Operation
8982
9506
  command.params['project'] = project unless project.nil?
8983
- command.params['resource'] = resource unless resource.nil?
9507
+ command.params['region'] = region unless region.nil?
8984
9508
  command.query['fields'] = fields unless fields.nil?
8985
9509
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8986
9510
  command.query['userIp'] = user_ip unless user_ip.nil?
8987
9511
  execute_or_queue_command(command, &block)
8988
9512
  end
8989
9513
 
8990
- # Retrieves an aggregated list of subnetworks.
9514
+ # Retrieves a list of subnetworks available to the specified project.
8991
9515
  # @param [String] project
8992
9516
  # Project ID for this request.
9517
+ # @param [String] region
9518
+ # Name of the region scoping this request.
8993
9519
  # @param [String] filter
8994
9520
  # Sets a filter expression for filtering listed resources, in the form filter=`
8995
9521
  # expression`. Your `expression` must be in the format: field_name
@@ -9043,19 +9569,20 @@ module Google
9043
9569
  # Request-specific options
9044
9570
  #
9045
9571
  # @yield [result, err] Result & error if block supplied
9046
- # @yieldparam result [Google::Apis::ComputeBeta::SubnetworkAggregatedList] parsed result object
9572
+ # @yieldparam result [Google::Apis::ComputeBeta::SubnetworkList] parsed result object
9047
9573
  # @yieldparam err [StandardError] error object if request failed
9048
9574
  #
9049
- # @return [Google::Apis::ComputeBeta::SubnetworkAggregatedList]
9575
+ # @return [Google::Apis::ComputeBeta::SubnetworkList]
9050
9576
  #
9051
9577
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9052
9578
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9053
9579
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9054
- def list_aggregated_subnetworks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9055
- command = make_simple_command(:get, '{project}/aggregated/subnetworks', options)
9056
- command.response_representation = Google::Apis::ComputeBeta::SubnetworkAggregatedList::Representation
9057
- command.response_class = Google::Apis::ComputeBeta::SubnetworkAggregatedList
9580
+ def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9581
+ command = make_simple_command(:get, '{project}/regions/{region}/subnetworks', options)
9582
+ command.response_representation = Google::Apis::ComputeBeta::SubnetworkList::Representation
9583
+ command.response_class = Google::Apis::ComputeBeta::SubnetworkList
9058
9584
  command.params['project'] = project unless project.nil?
9585
+ command.params['region'] = region unless region.nil?
9059
9586
  command.query['filter'] = filter unless filter.nil?
9060
9587
  command.query['maxResults'] = max_results unless max_results.nil?
9061
9588
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -9066,13 +9593,55 @@ module Google
9066
9593
  execute_or_queue_command(command, &block)
9067
9594
  end
9068
9595
 
9069
- # Deletes the specified subnetwork.
9596
+ # Returns permissions that a caller has on the specified resource.
9070
9597
  # @param [String] project
9071
9598
  # Project ID for this request.
9072
9599
  # @param [String] region
9073
- # Name of the region scoping this request.
9074
- # @param [String] subnetwork
9075
- # Name of the Subnetwork resource to delete.
9600
+ # The name of the region for this request.
9601
+ # @param [String] resource
9602
+ # Name of the resource for this request.
9603
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
9604
+ # @param [String] fields
9605
+ # Selector specifying which fields to include in a partial response.
9606
+ # @param [String] quota_user
9607
+ # Available to use for quota purposes for server-side applications. Can be any
9608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9609
+ # Overrides userIp if both are provided.
9610
+ # @param [String] user_ip
9611
+ # IP address of the site where the request originates. Use this if you want to
9612
+ # enforce per-user limits.
9613
+ # @param [Google::Apis::RequestOptions] options
9614
+ # Request-specific options
9615
+ #
9616
+ # @yield [result, err] Result & error if block supplied
9617
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
9618
+ # @yieldparam err [StandardError] error object if request failed
9619
+ #
9620
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
9621
+ #
9622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9625
+ def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9626
+ command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options)
9627
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
9628
+ command.request_object = test_permissions_request_object
9629
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
9630
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
9631
+ command.params['project'] = project unless project.nil?
9632
+ command.params['region'] = region unless region.nil?
9633
+ command.params['resource'] = resource unless resource.nil?
9634
+ command.query['fields'] = fields unless fields.nil?
9635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9636
+ command.query['userIp'] = user_ip unless user_ip.nil?
9637
+ execute_or_queue_command(command, &block)
9638
+ end
9639
+
9640
+ # Deletes the specified TargetHttpProxy resource.
9641
+ # @param [String] project
9642
+ # Project ID for this request.
9643
+ # @param [String] target_http_proxy
9644
+ # Name of the TargetHttpProxy resource to delete.
9076
9645
  # @param [String] fields
9077
9646
  # Selector specifying which fields to include in a partial response.
9078
9647
  # @param [String] quota_user
@@ -9094,27 +9663,24 @@ module Google
9094
9663
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9095
9664
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9096
9665
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9097
- def delete_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9098
- command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
9666
+ def delete_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9667
+ command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
9099
9668
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9100
9669
  command.response_class = Google::Apis::ComputeBeta::Operation
9101
9670
  command.params['project'] = project unless project.nil?
9102
- command.params['region'] = region unless region.nil?
9103
- command.params['subnetwork'] = subnetwork unless subnetwork.nil?
9671
+ command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
9104
9672
  command.query['fields'] = fields unless fields.nil?
9105
9673
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9106
9674
  command.query['userIp'] = user_ip unless user_ip.nil?
9107
9675
  execute_or_queue_command(command, &block)
9108
9676
  end
9109
9677
 
9110
- # Returns the specified subnetwork. Get a list of available subnetworks list()
9111
- # request.
9678
+ # Returns the specified TargetHttpProxy resource. Get a list of available target
9679
+ # HTTP proxies by making a list() request.
9112
9680
  # @param [String] project
9113
9681
  # Project ID for this request.
9114
- # @param [String] region
9115
- # Name of the region scoping this request.
9116
- # @param [String] subnetwork
9117
- # Name of the Subnetwork resource to return.
9682
+ # @param [String] target_http_proxy
9683
+ # Name of the TargetHttpProxy resource to return.
9118
9684
  # @param [String] fields
9119
9685
  # Selector specifying which fields to include in a partial response.
9120
9686
  # @param [String] quota_user
@@ -9128,34 +9694,31 @@ module Google
9128
9694
  # Request-specific options
9129
9695
  #
9130
9696
  # @yield [result, err] Result & error if block supplied
9131
- # @yieldparam result [Google::Apis::ComputeBeta::Subnetwork] parsed result object
9697
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxy] parsed result object
9132
9698
  # @yieldparam err [StandardError] error object if request failed
9133
9699
  #
9134
- # @return [Google::Apis::ComputeBeta::Subnetwork]
9700
+ # @return [Google::Apis::ComputeBeta::TargetHttpProxy]
9135
9701
  #
9136
9702
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9137
9703
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9138
9704
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9139
- def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9140
- command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
9141
- command.response_representation = Google::Apis::ComputeBeta::Subnetwork::Representation
9142
- command.response_class = Google::Apis::ComputeBeta::Subnetwork
9705
+ def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9706
+ command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
9707
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation
9708
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpProxy
9143
9709
  command.params['project'] = project unless project.nil?
9144
- command.params['region'] = region unless region.nil?
9145
- command.params['subnetwork'] = subnetwork unless subnetwork.nil?
9710
+ command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
9146
9711
  command.query['fields'] = fields unless fields.nil?
9147
9712
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9148
9713
  command.query['userIp'] = user_ip unless user_ip.nil?
9149
9714
  execute_or_queue_command(command, &block)
9150
9715
  end
9151
9716
 
9152
- # Creates a subnetwork in the specified project using the data included in the
9153
- # request.
9717
+ # Creates a TargetHttpProxy resource in the specified project using the data
9718
+ # included in the request.
9154
9719
  # @param [String] project
9155
9720
  # Project ID for this request.
9156
- # @param [String] region
9157
- # Name of the region scoping this request.
9158
- # @param [Google::Apis::ComputeBeta::Subnetwork] subnetwork_object
9721
+ # @param [Google::Apis::ComputeBeta::TargetHttpProxy] target_http_proxy_object
9159
9722
  # @param [String] fields
9160
9723
  # Selector specifying which fields to include in a partial response.
9161
9724
  # @param [String] quota_user
@@ -9177,25 +9740,23 @@ module Google
9177
9740
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9178
9741
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9179
9742
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9180
- def insert_subnetwork(project, region, subnetwork_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9181
- command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options)
9182
- command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation
9183
- command.request_object = subnetwork_object
9743
+ def insert_target_http_proxy(project, target_http_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9744
+ command = make_simple_command(:post, '{project}/global/targetHttpProxies', options)
9745
+ command.request_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation
9746
+ command.request_object = target_http_proxy_object
9184
9747
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9185
9748
  command.response_class = Google::Apis::ComputeBeta::Operation
9186
9749
  command.params['project'] = project unless project.nil?
9187
- command.params['region'] = region unless region.nil?
9188
9750
  command.query['fields'] = fields unless fields.nil?
9189
9751
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9190
9752
  command.query['userIp'] = user_ip unless user_ip.nil?
9191
9753
  execute_or_queue_command(command, &block)
9192
9754
  end
9193
9755
 
9194
- # Retrieves a list of subnetworks available to the specified project.
9756
+ # Retrieves the list of TargetHttpProxy resources available to the specified
9757
+ # project.
9195
9758
  # @param [String] project
9196
9759
  # Project ID for this request.
9197
- # @param [String] region
9198
- # Name of the region scoping this request.
9199
9760
  # @param [String] filter
9200
9761
  # Sets a filter expression for filtering listed resources, in the form filter=`
9201
9762
  # expression`. Your `expression` must be in the format: field_name
@@ -9249,20 +9810,19 @@ module Google
9249
9810
  # Request-specific options
9250
9811
  #
9251
9812
  # @yield [result, err] Result & error if block supplied
9252
- # @yieldparam result [Google::Apis::ComputeBeta::SubnetworkList] parsed result object
9813
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxyList] parsed result object
9253
9814
  # @yieldparam err [StandardError] error object if request failed
9254
9815
  #
9255
- # @return [Google::Apis::ComputeBeta::SubnetworkList]
9816
+ # @return [Google::Apis::ComputeBeta::TargetHttpProxyList]
9256
9817
  #
9257
9818
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9258
9819
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9259
9820
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9260
- def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9261
- command = make_simple_command(:get, '{project}/regions/{region}/subnetworks', options)
9262
- command.response_representation = Google::Apis::ComputeBeta::SubnetworkList::Representation
9263
- command.response_class = Google::Apis::ComputeBeta::SubnetworkList
9821
+ def list_target_http_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9822
+ command = make_simple_command(:get, '{project}/global/targetHttpProxies', options)
9823
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyList::Representation
9824
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyList
9264
9825
  command.params['project'] = project unless project.nil?
9265
- command.params['region'] = region unless region.nil?
9266
9826
  command.query['filter'] = filter unless filter.nil?
9267
9827
  command.query['maxResults'] = max_results unless max_results.nil?
9268
9828
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -9273,11 +9833,50 @@ module Google
9273
9833
  execute_or_queue_command(command, &block)
9274
9834
  end
9275
9835
 
9836
+ # Changes the URL map for TargetHttpProxy.
9837
+ # @param [String] project
9838
+ # Project ID for this request.
9839
+ # @param [String] target_http_proxy
9840
+ # Name of the TargetHttpProxy to set a URL map for.
9841
+ # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object
9842
+ # @param [String] fields
9843
+ # Selector specifying which fields to include in a partial response.
9844
+ # @param [String] quota_user
9845
+ # Available to use for quota purposes for server-side applications. Can be any
9846
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9847
+ # Overrides userIp if both are provided.
9848
+ # @param [String] user_ip
9849
+ # IP address of the site where the request originates. Use this if you want to
9850
+ # enforce per-user limits.
9851
+ # @param [Google::Apis::RequestOptions] options
9852
+ # Request-specific options
9853
+ #
9854
+ # @yield [result, err] Result & error if block supplied
9855
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9856
+ # @yieldparam err [StandardError] error object if request failed
9857
+ #
9858
+ # @return [Google::Apis::ComputeBeta::Operation]
9859
+ #
9860
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9861
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9862
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9863
+ def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9864
+ command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options)
9865
+ command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation
9866
+ command.request_object = url_map_reference_object
9867
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9868
+ command.response_class = Google::Apis::ComputeBeta::Operation
9869
+ command.params['project'] = project unless project.nil?
9870
+ command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
9871
+ command.query['fields'] = fields unless fields.nil?
9872
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9873
+ command.query['userIp'] = user_ip unless user_ip.nil?
9874
+ execute_or_queue_command(command, &block)
9875
+ end
9876
+
9276
9877
  # Returns permissions that a caller has on the specified resource.
9277
9878
  # @param [String] project
9278
9879
  # Project ID for this request.
9279
- # @param [String] region
9280
- # The name of the region for this request.
9281
9880
  # @param [String] resource
9282
9881
  # Name of the resource for this request.
9283
9882
  # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
@@ -9302,14 +9901,13 @@ module Google
9302
9901
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9303
9902
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9304
9903
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9305
- def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9306
- command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options)
9904
+ def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9905
+ command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options)
9307
9906
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
9308
9907
  command.request_object = test_permissions_request_object
9309
9908
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
9310
9909
  command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
9311
9910
  command.params['project'] = project unless project.nil?
9312
- command.params['region'] = region unless region.nil?
9313
9911
  command.params['resource'] = resource unless resource.nil?
9314
9912
  command.query['fields'] = fields unless fields.nil?
9315
9913
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -9317,11 +9915,11 @@ module Google
9317
9915
  execute_or_queue_command(command, &block)
9318
9916
  end
9319
9917
 
9320
- # Deletes the specified TargetHttpProxy resource.
9918
+ # Deletes the specified TargetHttpsProxy resource.
9321
9919
  # @param [String] project
9322
9920
  # Project ID for this request.
9323
- # @param [String] target_http_proxy
9324
- # Name of the TargetHttpProxy resource to delete.
9921
+ # @param [String] target_https_proxy
9922
+ # Name of the TargetHttpsProxy resource to delete.
9325
9923
  # @param [String] fields
9326
9924
  # Selector specifying which fields to include in a partial response.
9327
9925
  # @param [String] quota_user
@@ -9343,24 +9941,24 @@ module Google
9343
9941
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9344
9942
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9345
9943
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9346
- def delete_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9347
- command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
9944
+ def delete_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9945
+ command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
9348
9946
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9349
9947
  command.response_class = Google::Apis::ComputeBeta::Operation
9350
9948
  command.params['project'] = project unless project.nil?
9351
- command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
9949
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
9352
9950
  command.query['fields'] = fields unless fields.nil?
9353
9951
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9354
9952
  command.query['userIp'] = user_ip unless user_ip.nil?
9355
9953
  execute_or_queue_command(command, &block)
9356
9954
  end
9357
9955
 
9358
- # Returns the specified TargetHttpProxy resource. Get a list of available target
9359
- # HTTP proxies by making a list() request.
9956
+ # Returns the specified TargetHttpsProxy resource. Get a list of available
9957
+ # target HTTPS proxies by making a list() request.
9360
9958
  # @param [String] project
9361
9959
  # Project ID for this request.
9362
- # @param [String] target_http_proxy
9363
- # Name of the TargetHttpProxy resource to return.
9960
+ # @param [String] target_https_proxy
9961
+ # Name of the TargetHttpsProxy resource to return.
9364
9962
  # @param [String] fields
9365
9963
  # Selector specifying which fields to include in a partial response.
9366
9964
  # @param [String] quota_user
@@ -9374,31 +9972,31 @@ module Google
9374
9972
  # Request-specific options
9375
9973
  #
9376
9974
  # @yield [result, err] Result & error if block supplied
9377
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxy] parsed result object
9975
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
9378
9976
  # @yieldparam err [StandardError] error object if request failed
9379
9977
  #
9380
- # @return [Google::Apis::ComputeBeta::TargetHttpProxy]
9978
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
9381
9979
  #
9382
9980
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9383
9981
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9384
- # @raise [Google::Apis::AuthorizationError] Authorization is required
9385
- def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9386
- command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
9387
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation
9388
- command.response_class = Google::Apis::ComputeBeta::TargetHttpProxy
9982
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9983
+ def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9984
+ command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
9985
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
9986
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
9389
9987
  command.params['project'] = project unless project.nil?
9390
- command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
9988
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
9391
9989
  command.query['fields'] = fields unless fields.nil?
9392
9990
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9393
9991
  command.query['userIp'] = user_ip unless user_ip.nil?
9394
9992
  execute_or_queue_command(command, &block)
9395
9993
  end
9396
9994
 
9397
- # Creates a TargetHttpProxy resource in the specified project using the data
9995
+ # Creates a TargetHttpsProxy resource in the specified project using the data
9398
9996
  # included in the request.
9399
9997
  # @param [String] project
9400
9998
  # Project ID for this request.
9401
- # @param [Google::Apis::ComputeBeta::TargetHttpProxy] target_http_proxy_object
9999
+ # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
9402
10000
  # @param [String] fields
9403
10001
  # Selector specifying which fields to include in a partial response.
9404
10002
  # @param [String] quota_user
@@ -9420,10 +10018,10 @@ module Google
9420
10018
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9421
10019
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9422
10020
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9423
- def insert_target_http_proxy(project, target_http_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9424
- command = make_simple_command(:post, '{project}/global/targetHttpProxies', options)
9425
- command.request_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation
9426
- command.request_object = target_http_proxy_object
10021
+ def insert_target_https_proxy(project, target_https_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10022
+ command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options)
10023
+ command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
10024
+ command.request_object = target_https_proxy_object
9427
10025
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9428
10026
  command.response_class = Google::Apis::ComputeBeta::Operation
9429
10027
  command.params['project'] = project unless project.nil?
@@ -9433,7 +10031,7 @@ module Google
9433
10031
  execute_or_queue_command(command, &block)
9434
10032
  end
9435
10033
 
9436
- # Retrieves the list of TargetHttpProxy resources available to the specified
10034
+ # Retrieves the list of TargetHttpsProxy resources available to the specified
9437
10035
  # project.
9438
10036
  # @param [String] project
9439
10037
  # Project ID for this request.
@@ -9490,18 +10088,18 @@ module Google
9490
10088
  # Request-specific options
9491
10089
  #
9492
10090
  # @yield [result, err] Result & error if block supplied
9493
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxyList] parsed result object
10091
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyList] parsed result object
9494
10092
  # @yieldparam err [StandardError] error object if request failed
9495
10093
  #
9496
- # @return [Google::Apis::ComputeBeta::TargetHttpProxyList]
10094
+ # @return [Google::Apis::ComputeBeta::TargetHttpsProxyList]
9497
10095
  #
9498
10096
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9499
10097
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9500
10098
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9501
- def list_target_http_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9502
- command = make_simple_command(:get, '{project}/global/targetHttpProxies', options)
9503
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyList::Representation
9504
- command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyList
10099
+ def list_target_https_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10100
+ command = make_simple_command(:get, '{project}/global/targetHttpsProxies', options)
10101
+ command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation
10102
+ command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList
9505
10103
  command.params['project'] = project unless project.nil?
9506
10104
  command.query['filter'] = filter unless filter.nil?
9507
10105
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -9513,11 +10111,52 @@ module Google
9513
10111
  execute_or_queue_command(command, &block)
9514
10112
  end
9515
10113
 
9516
- # Changes the URL map for TargetHttpProxy.
10114
+ # Replaces SslCertificates for TargetHttpsProxy.
9517
10115
  # @param [String] project
9518
10116
  # Project ID for this request.
9519
- # @param [String] target_http_proxy
9520
- # Name of the TargetHttpProxy to set a URL map for.
10117
+ # @param [String] target_https_proxy
10118
+ # Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
10119
+ # @param [Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object
10120
+ # @param [String] fields
10121
+ # Selector specifying which fields to include in a partial response.
10122
+ # @param [String] quota_user
10123
+ # Available to use for quota purposes for server-side applications. Can be any
10124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10125
+ # Overrides userIp if both are provided.
10126
+ # @param [String] user_ip
10127
+ # IP address of the site where the request originates. Use this if you want to
10128
+ # enforce per-user limits.
10129
+ # @param [Google::Apis::RequestOptions] options
10130
+ # Request-specific options
10131
+ #
10132
+ # @yield [result, err] Result & error if block supplied
10133
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10134
+ # @yieldparam err [StandardError] error object if request failed
10135
+ #
10136
+ # @return [Google::Apis::ComputeBeta::Operation]
10137
+ #
10138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10141
+ def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10142
+ command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options)
10143
+ command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest::Representation
10144
+ command.request_object = target_https_proxies_set_ssl_certificates_request_object
10145
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10146
+ command.response_class = Google::Apis::ComputeBeta::Operation
10147
+ command.params['project'] = project unless project.nil?
10148
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
10149
+ command.query['fields'] = fields unless fields.nil?
10150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10151
+ command.query['userIp'] = user_ip unless user_ip.nil?
10152
+ execute_or_queue_command(command, &block)
10153
+ end
10154
+
10155
+ # Changes the URL map for TargetHttpsProxy.
10156
+ # @param [String] project
10157
+ # Project ID for this request.
10158
+ # @param [String] target_https_proxy
10159
+ # Name of the TargetHttpsProxy resource whose URL map is to be set.
9521
10160
  # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object
9522
10161
  # @param [String] fields
9523
10162
  # Selector specifying which fields to include in a partial response.
@@ -9540,14 +10179,14 @@ module Google
9540
10179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9541
10180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9542
10181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9543
- def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9544
- command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options)
10182
+ def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10183
+ command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options)
9545
10184
  command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation
9546
10185
  command.request_object = url_map_reference_object
9547
10186
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9548
10187
  command.response_class = Google::Apis::ComputeBeta::Operation
9549
10188
  command.params['project'] = project unless project.nil?
9550
- command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
10189
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
9551
10190
  command.query['fields'] = fields unless fields.nil?
9552
10191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9553
10192
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -9581,8 +10220,8 @@ module Google
9581
10220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9582
10221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9583
10222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9584
- def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9585
- command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options)
10223
+ def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10224
+ command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options)
9586
10225
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
9587
10226
  command.request_object = test_permissions_request_object
9588
10227
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
@@ -9595,11 +10234,92 @@ module Google
9595
10234
  execute_or_queue_command(command, &block)
9596
10235
  end
9597
10236
 
9598
- # Deletes the specified TargetHttpsProxy resource.
10237
+ # Retrieves an aggregated list of target instances.
9599
10238
  # @param [String] project
9600
10239
  # Project ID for this request.
9601
- # @param [String] target_https_proxy
9602
- # Name of the TargetHttpsProxy resource to delete.
10240
+ # @param [String] filter
10241
+ # Sets a filter expression for filtering listed resources, in the form filter=`
10242
+ # expression`. Your `expression` must be in the format: field_name
10243
+ # comparison_string literal_string.
10244
+ # The field_name is the name of the field you want to compare. Only atomic field
10245
+ # types are supported (string, number, boolean). The comparison_string must be
10246
+ # either eq (equals) or ne (not equals). The literal_string is the string value
10247
+ # to filter to. The literal value must be valid for the type of field you are
10248
+ # filtering by (string, number, boolean). For string fields, the literal value
10249
+ # is interpreted as a regular expression using RE2 syntax. The literal value
10250
+ # must match the entire field.
10251
+ # For example, to filter for instances that do not have a name of example-
10252
+ # instance, you would use filter=name ne example-instance.
10253
+ # Compute Engine Beta API Only: When filtering in the Beta API, you can also
10254
+ # filter on nested fields. For example, you could filter on instances that have
10255
+ # set the scheduling.automaticRestart field to true. Use filtering on nested
10256
+ # fields to take advantage of labels to organize and search for results based on
10257
+ # label values.
10258
+ # The Beta API also supports filtering on multiple expressions by providing each
10259
+ # separate expression within parentheses. For example, (scheduling.
10260
+ # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
10261
+ # treated as AND expressions, meaning that resources must match all expressions
10262
+ # to pass the filters.
10263
+ # @param [Fixnum] max_results
10264
+ # The maximum number of results per page that should be returned. If the number
10265
+ # of available results is larger than maxResults, Compute Engine returns a
10266
+ # nextPageToken that can be used to get the next page of results in subsequent
10267
+ # list requests.
10268
+ # @param [String] order_by
10269
+ # Sorts list results by a certain order. By default, results are returned in
10270
+ # alphanumerical order based on the resource name.
10271
+ # You can also sort results in descending order based on the creation timestamp
10272
+ # using orderBy="creationTimestamp desc". This sorts results based on the
10273
+ # creationTimestamp field in reverse chronological order (newest result first).
10274
+ # Use this to sort resources like operations so that the newest operation is
10275
+ # returned first.
10276
+ # Currently, only sorting by name or creationTimestamp desc is supported.
10277
+ # @param [String] page_token
10278
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
10279
+ # a previous list request to get the next page of results.
10280
+ # @param [String] fields
10281
+ # Selector specifying which fields to include in a partial response.
10282
+ # @param [String] quota_user
10283
+ # Available to use for quota purposes for server-side applications. Can be any
10284
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10285
+ # Overrides userIp if both are provided.
10286
+ # @param [String] user_ip
10287
+ # IP address of the site where the request originates. Use this if you want to
10288
+ # enforce per-user limits.
10289
+ # @param [Google::Apis::RequestOptions] options
10290
+ # Request-specific options
10291
+ #
10292
+ # @yield [result, err] Result & error if block supplied
10293
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetInstanceAggregatedList] parsed result object
10294
+ # @yieldparam err [StandardError] error object if request failed
10295
+ #
10296
+ # @return [Google::Apis::ComputeBeta::TargetInstanceAggregatedList]
10297
+ #
10298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10301
+ def list_aggregated_target_instance(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10302
+ command = make_simple_command(:get, '{project}/aggregated/targetInstances', options)
10303
+ command.response_representation = Google::Apis::ComputeBeta::TargetInstanceAggregatedList::Representation
10304
+ command.response_class = Google::Apis::ComputeBeta::TargetInstanceAggregatedList
10305
+ command.params['project'] = project unless project.nil?
10306
+ command.query['filter'] = filter unless filter.nil?
10307
+ command.query['maxResults'] = max_results unless max_results.nil?
10308
+ command.query['orderBy'] = order_by unless order_by.nil?
10309
+ command.query['pageToken'] = page_token unless page_token.nil?
10310
+ command.query['fields'] = fields unless fields.nil?
10311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10312
+ command.query['userIp'] = user_ip unless user_ip.nil?
10313
+ execute_or_queue_command(command, &block)
10314
+ end
10315
+
10316
+ # Deletes the specified TargetInstance resource.
10317
+ # @param [String] project
10318
+ # Project ID for this request.
10319
+ # @param [String] zone
10320
+ # Name of the zone scoping this request.
10321
+ # @param [String] target_instance
10322
+ # Name of the TargetInstance resource to delete.
9603
10323
  # @param [String] fields
9604
10324
  # Selector specifying which fields to include in a partial response.
9605
10325
  # @param [String] quota_user
@@ -9621,24 +10341,27 @@ module Google
9621
10341
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9622
10342
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9623
10343
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9624
- def delete_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9625
- command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
10344
+ def delete_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10345
+ command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
9626
10346
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9627
10347
  command.response_class = Google::Apis::ComputeBeta::Operation
9628
10348
  command.params['project'] = project unless project.nil?
9629
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
10349
+ command.params['zone'] = zone unless zone.nil?
10350
+ command.params['targetInstance'] = target_instance unless target_instance.nil?
9630
10351
  command.query['fields'] = fields unless fields.nil?
9631
10352
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9632
10353
  command.query['userIp'] = user_ip unless user_ip.nil?
9633
10354
  execute_or_queue_command(command, &block)
9634
10355
  end
9635
10356
 
9636
- # Returns the specified TargetHttpsProxy resource. Get a list of available
9637
- # target HTTPS proxies by making a list() request.
10357
+ # Returns the specified TargetInstance resource. Get a list of available target
10358
+ # instances by making a list() request.
9638
10359
  # @param [String] project
9639
10360
  # Project ID for this request.
9640
- # @param [String] target_https_proxy
9641
- # Name of the TargetHttpsProxy resource to return.
10361
+ # @param [String] zone
10362
+ # Name of the zone scoping this request.
10363
+ # @param [String] target_instance
10364
+ # Name of the TargetInstance resource to return.
9642
10365
  # @param [String] fields
9643
10366
  # Selector specifying which fields to include in a partial response.
9644
10367
  # @param [String] quota_user
@@ -9652,31 +10375,34 @@ module Google
9652
10375
  # Request-specific options
9653
10376
  #
9654
10377
  # @yield [result, err] Result & error if block supplied
9655
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object
10378
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetInstance] parsed result object
9656
10379
  # @yieldparam err [StandardError] error object if request failed
9657
10380
  #
9658
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxy]
10381
+ # @return [Google::Apis::ComputeBeta::TargetInstance]
9659
10382
  #
9660
10383
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9661
10384
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9662
10385
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9663
- def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9664
- command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
9665
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
9666
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy
10386
+ def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10387
+ command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
10388
+ command.response_representation = Google::Apis::ComputeBeta::TargetInstance::Representation
10389
+ command.response_class = Google::Apis::ComputeBeta::TargetInstance
9667
10390
  command.params['project'] = project unless project.nil?
9668
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
10391
+ command.params['zone'] = zone unless zone.nil?
10392
+ command.params['targetInstance'] = target_instance unless target_instance.nil?
9669
10393
  command.query['fields'] = fields unless fields.nil?
9670
10394
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9671
10395
  command.query['userIp'] = user_ip unless user_ip.nil?
9672
10396
  execute_or_queue_command(command, &block)
9673
10397
  end
9674
10398
 
9675
- # Creates a TargetHttpsProxy resource in the specified project using the data
9676
- # included in the request.
10399
+ # Creates a TargetInstance resource in the specified project and zone using the
10400
+ # data included in the request.
9677
10401
  # @param [String] project
9678
10402
  # Project ID for this request.
9679
- # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object
10403
+ # @param [String] zone
10404
+ # Name of the zone scoping this request.
10405
+ # @param [Google::Apis::ComputeBeta::TargetInstance] target_instance_object
9680
10406
  # @param [String] fields
9681
10407
  # Selector specifying which fields to include in a partial response.
9682
10408
  # @param [String] quota_user
@@ -9698,23 +10424,26 @@ module Google
9698
10424
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9699
10425
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9700
10426
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9701
- def insert_target_https_proxy(project, target_https_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9702
- command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options)
9703
- command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation
9704
- command.request_object = target_https_proxy_object
10427
+ def insert_target_instance(project, zone, target_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10428
+ command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options)
10429
+ command.request_representation = Google::Apis::ComputeBeta::TargetInstance::Representation
10430
+ command.request_object = target_instance_object
9705
10431
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9706
10432
  command.response_class = Google::Apis::ComputeBeta::Operation
9707
10433
  command.params['project'] = project unless project.nil?
10434
+ command.params['zone'] = zone unless zone.nil?
9708
10435
  command.query['fields'] = fields unless fields.nil?
9709
10436
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9710
10437
  command.query['userIp'] = user_ip unless user_ip.nil?
9711
10438
  execute_or_queue_command(command, &block)
9712
10439
  end
9713
10440
 
9714
- # Retrieves the list of TargetHttpsProxy resources available to the specified
9715
- # project.
10441
+ # Retrieves a list of TargetInstance resources available to the specified
10442
+ # project and zone.
9716
10443
  # @param [String] project
9717
10444
  # Project ID for this request.
10445
+ # @param [String] zone
10446
+ # Name of the zone scoping this request.
9718
10447
  # @param [String] filter
9719
10448
  # Sets a filter expression for filtering listed resources, in the form filter=`
9720
10449
  # expression`. Your `expression` must be in the format: field_name
@@ -9768,19 +10497,20 @@ module Google
9768
10497
  # Request-specific options
9769
10498
  #
9770
10499
  # @yield [result, err] Result & error if block supplied
9771
- # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyList] parsed result object
10500
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetInstanceList] parsed result object
9772
10501
  # @yieldparam err [StandardError] error object if request failed
9773
10502
  #
9774
- # @return [Google::Apis::ComputeBeta::TargetHttpsProxyList]
10503
+ # @return [Google::Apis::ComputeBeta::TargetInstanceList]
9775
10504
  #
9776
10505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9777
10506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9778
10507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9779
- def list_target_https_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9780
- command = make_simple_command(:get, '{project}/global/targetHttpsProxies', options)
9781
- command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation
9782
- command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList
10508
+ def list_target_instances(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10509
+ command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances', options)
10510
+ command.response_representation = Google::Apis::ComputeBeta::TargetInstanceList::Representation
10511
+ command.response_class = Google::Apis::ComputeBeta::TargetInstanceList
9783
10512
  command.params['project'] = project unless project.nil?
10513
+ command.params['zone'] = zone unless zone.nil?
9784
10514
  command.query['filter'] = filter unless filter.nil?
9785
10515
  command.query['maxResults'] = max_results unless max_results.nil?
9786
10516
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -9791,12 +10521,14 @@ module Google
9791
10521
  execute_or_queue_command(command, &block)
9792
10522
  end
9793
10523
 
9794
- # Replaces SslCertificates for TargetHttpsProxy.
10524
+ # Returns permissions that a caller has on the specified resource.
9795
10525
  # @param [String] project
9796
10526
  # Project ID for this request.
9797
- # @param [String] target_https_proxy
9798
- # Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
9799
- # @param [Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object
10527
+ # @param [String] zone
10528
+ # The name of the zone for this request.
10529
+ # @param [String] resource
10530
+ # Name of the resource for this request.
10531
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
9800
10532
  # @param [String] fields
9801
10533
  # Selector specifying which fields to include in a partial response.
9802
10534
  # @param [String] quota_user
@@ -9810,34 +10542,37 @@ module Google
9810
10542
  # Request-specific options
9811
10543
  #
9812
10544
  # @yield [result, err] Result & error if block supplied
9813
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10545
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
9814
10546
  # @yieldparam err [StandardError] error object if request failed
9815
10547
  #
9816
- # @return [Google::Apis::ComputeBeta::Operation]
10548
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
9817
10549
  #
9818
10550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9819
10551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9820
10552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9821
- def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9822
- command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options)
9823
- command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest::Representation
9824
- command.request_object = target_https_proxies_set_ssl_certificates_request_object
9825
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9826
- command.response_class = Google::Apis::ComputeBeta::Operation
10553
+ def test_target_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10554
+ command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions', options)
10555
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
10556
+ command.request_object = test_permissions_request_object
10557
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
10558
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
9827
10559
  command.params['project'] = project unless project.nil?
9828
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
10560
+ command.params['zone'] = zone unless zone.nil?
10561
+ command.params['resource'] = resource unless resource.nil?
9829
10562
  command.query['fields'] = fields unless fields.nil?
9830
10563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9831
10564
  command.query['userIp'] = user_ip unless user_ip.nil?
9832
10565
  execute_or_queue_command(command, &block)
9833
10566
  end
9834
10567
 
9835
- # Changes the URL map for TargetHttpsProxy.
10568
+ # Adds health check URLs to a target pool.
9836
10569
  # @param [String] project
9837
10570
  # Project ID for this request.
9838
- # @param [String] target_https_proxy
9839
- # Name of the TargetHttpsProxy resource whose URL map is to be set.
9840
- # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object
10571
+ # @param [String] region
10572
+ # Name of the region scoping this request.
10573
+ # @param [String] target_pool
10574
+ # Name of the target pool to add a health check to.
10575
+ # @param [Google::Apis::ComputeBeta::AddTargetPoolsHealthCheckRequest] add_target_pools_health_check_request_object
9841
10576
  # @param [String] fields
9842
10577
  # Selector specifying which fields to include in a partial response.
9843
10578
  # @param [String] quota_user
@@ -9859,26 +10594,29 @@ module Google
9859
10594
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9860
10595
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9861
10596
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9862
- def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9863
- command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options)
9864
- command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation
9865
- command.request_object = url_map_reference_object
10597
+ def add_target_pool_health_check(project, region, target_pool, add_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10598
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options)
10599
+ command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsHealthCheckRequest::Representation
10600
+ command.request_object = add_target_pools_health_check_request_object
9866
10601
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9867
10602
  command.response_class = Google::Apis::ComputeBeta::Operation
9868
10603
  command.params['project'] = project unless project.nil?
9869
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
10604
+ command.params['region'] = region unless region.nil?
10605
+ command.params['targetPool'] = target_pool unless target_pool.nil?
9870
10606
  command.query['fields'] = fields unless fields.nil?
9871
10607
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9872
10608
  command.query['userIp'] = user_ip unless user_ip.nil?
9873
10609
  execute_or_queue_command(command, &block)
9874
10610
  end
9875
10611
 
9876
- # Returns permissions that a caller has on the specified resource.
10612
+ # Adds an instance to a target pool.
9877
10613
  # @param [String] project
9878
10614
  # Project ID for this request.
9879
- # @param [String] resource
9880
- # Name of the resource for this request.
9881
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
10615
+ # @param [String] region
10616
+ # Name of the region scoping this request.
10617
+ # @param [String] target_pool
10618
+ # Name of the TargetPool resource to add instances to.
10619
+ # @param [Google::Apis::ComputeBeta::AddTargetPoolsInstanceRequest] add_target_pools_instance_request_object
9882
10620
  # @param [String] fields
9883
10621
  # Selector specifying which fields to include in a partial response.
9884
10622
  # @param [String] quota_user
@@ -9892,29 +10630,30 @@ module Google
9892
10630
  # Request-specific options
9893
10631
  #
9894
10632
  # @yield [result, err] Result & error if block supplied
9895
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
10633
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9896
10634
  # @yieldparam err [StandardError] error object if request failed
9897
10635
  #
9898
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
10636
+ # @return [Google::Apis::ComputeBeta::Operation]
9899
10637
  #
9900
10638
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9901
10639
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9902
10640
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9903
- def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9904
- command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options)
9905
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
9906
- command.request_object = test_permissions_request_object
9907
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
9908
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
10641
+ def add_target_pool_instance(project, region, target_pool, add_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10642
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addInstance', options)
10643
+ command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsInstanceRequest::Representation
10644
+ command.request_object = add_target_pools_instance_request_object
10645
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10646
+ command.response_class = Google::Apis::ComputeBeta::Operation
9909
10647
  command.params['project'] = project unless project.nil?
9910
- command.params['resource'] = resource unless resource.nil?
10648
+ command.params['region'] = region unless region.nil?
10649
+ command.params['targetPool'] = target_pool unless target_pool.nil?
9911
10650
  command.query['fields'] = fields unless fields.nil?
9912
10651
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9913
10652
  command.query['userIp'] = user_ip unless user_ip.nil?
9914
10653
  execute_or_queue_command(command, &block)
9915
10654
  end
9916
10655
 
9917
- # Retrieves an aggregated list of target instances.
10656
+ # Retrieves an aggregated list of target pools.
9918
10657
  # @param [String] project
9919
10658
  # Project ID for this request.
9920
10659
  # @param [String] filter
@@ -9970,18 +10709,18 @@ module Google
9970
10709
  # Request-specific options
9971
10710
  #
9972
10711
  # @yield [result, err] Result & error if block supplied
9973
- # @yieldparam result [Google::Apis::ComputeBeta::TargetInstanceAggregatedList] parsed result object
10712
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolAggregatedList] parsed result object
9974
10713
  # @yieldparam err [StandardError] error object if request failed
9975
10714
  #
9976
- # @return [Google::Apis::ComputeBeta::TargetInstanceAggregatedList]
10715
+ # @return [Google::Apis::ComputeBeta::TargetPoolAggregatedList]
9977
10716
  #
9978
10717
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9979
10718
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9980
10719
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9981
- def list_aggregated_target_instance(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9982
- command = make_simple_command(:get, '{project}/aggregated/targetInstances', options)
9983
- command.response_representation = Google::Apis::ComputeBeta::TargetInstanceAggregatedList::Representation
9984
- command.response_class = Google::Apis::ComputeBeta::TargetInstanceAggregatedList
10720
+ def list_aggregated_target_pools(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10721
+ command = make_simple_command(:get, '{project}/aggregated/targetPools', options)
10722
+ command.response_representation = Google::Apis::ComputeBeta::TargetPoolAggregatedList::Representation
10723
+ command.response_class = Google::Apis::ComputeBeta::TargetPoolAggregatedList
9985
10724
  command.params['project'] = project unless project.nil?
9986
10725
  command.query['filter'] = filter unless filter.nil?
9987
10726
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -9993,13 +10732,13 @@ module Google
9993
10732
  execute_or_queue_command(command, &block)
9994
10733
  end
9995
10734
 
9996
- # Deletes the specified TargetInstance resource.
10735
+ # Deletes the specified target pool.
9997
10736
  # @param [String] project
9998
10737
  # Project ID for this request.
9999
- # @param [String] zone
10000
- # Name of the zone scoping this request.
10001
- # @param [String] target_instance
10002
- # Name of the TargetInstance resource to delete.
10738
+ # @param [String] region
10739
+ # Name of the region scoping this request.
10740
+ # @param [String] target_pool
10741
+ # Name of the TargetPool resource to delete.
10003
10742
  # @param [String] fields
10004
10743
  # Selector specifying which fields to include in a partial response.
10005
10744
  # @param [String] quota_user
@@ -10021,27 +10760,27 @@ module Google
10021
10760
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10022
10761
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10023
10762
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10024
- def delete_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10025
- command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
10763
+ def delete_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10764
+ command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options)
10026
10765
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10027
10766
  command.response_class = Google::Apis::ComputeBeta::Operation
10028
10767
  command.params['project'] = project unless project.nil?
10029
- command.params['zone'] = zone unless zone.nil?
10030
- command.params['targetInstance'] = target_instance unless target_instance.nil?
10768
+ command.params['region'] = region unless region.nil?
10769
+ command.params['targetPool'] = target_pool unless target_pool.nil?
10031
10770
  command.query['fields'] = fields unless fields.nil?
10032
10771
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10033
10772
  command.query['userIp'] = user_ip unless user_ip.nil?
10034
10773
  execute_or_queue_command(command, &block)
10035
10774
  end
10036
10775
 
10037
- # Returns the specified TargetInstance resource. Get a list of available target
10038
- # instances by making a list() request.
10776
+ # Returns the specified target pool. Get a list of available target pools by
10777
+ # making a list() request.
10039
10778
  # @param [String] project
10040
10779
  # Project ID for this request.
10041
- # @param [String] zone
10042
- # Name of the zone scoping this request.
10043
- # @param [String] target_instance
10044
- # Name of the TargetInstance resource to return.
10780
+ # @param [String] region
10781
+ # Name of the region scoping this request.
10782
+ # @param [String] target_pool
10783
+ # Name of the TargetPool resource to return.
10045
10784
  # @param [String] fields
10046
10785
  # Selector specifying which fields to include in a partial response.
10047
10786
  # @param [String] quota_user
@@ -10055,34 +10794,79 @@ module Google
10055
10794
  # Request-specific options
10056
10795
  #
10057
10796
  # @yield [result, err] Result & error if block supplied
10058
- # @yieldparam result [Google::Apis::ComputeBeta::TargetInstance] parsed result object
10797
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetPool] parsed result object
10059
10798
  # @yieldparam err [StandardError] error object if request failed
10060
10799
  #
10061
- # @return [Google::Apis::ComputeBeta::TargetInstance]
10800
+ # @return [Google::Apis::ComputeBeta::TargetPool]
10062
10801
  #
10063
10802
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10064
10803
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10065
10804
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10066
- def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10067
- command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
10068
- command.response_representation = Google::Apis::ComputeBeta::TargetInstance::Representation
10069
- command.response_class = Google::Apis::ComputeBeta::TargetInstance
10805
+ def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10806
+ command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options)
10807
+ command.response_representation = Google::Apis::ComputeBeta::TargetPool::Representation
10808
+ command.response_class = Google::Apis::ComputeBeta::TargetPool
10070
10809
  command.params['project'] = project unless project.nil?
10071
- command.params['zone'] = zone unless zone.nil?
10072
- command.params['targetInstance'] = target_instance unless target_instance.nil?
10810
+ command.params['region'] = region unless region.nil?
10811
+ command.params['targetPool'] = target_pool unless target_pool.nil?
10073
10812
  command.query['fields'] = fields unless fields.nil?
10074
10813
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10075
10814
  command.query['userIp'] = user_ip unless user_ip.nil?
10076
10815
  execute_or_queue_command(command, &block)
10077
10816
  end
10078
10817
 
10079
- # Creates a TargetInstance resource in the specified project and zone using the
10080
- # data included in the request.
10818
+ # Gets the most recent health check results for each IP for the instance that is
10819
+ # referenced by the given target pool.
10081
10820
  # @param [String] project
10082
10821
  # Project ID for this request.
10083
- # @param [String] zone
10084
- # Name of the zone scoping this request.
10085
- # @param [Google::Apis::ComputeBeta::TargetInstance] target_instance_object
10822
+ # @param [String] region
10823
+ # Name of the region scoping this request.
10824
+ # @param [String] target_pool
10825
+ # Name of the TargetPool resource to which the queried instance belongs.
10826
+ # @param [Google::Apis::ComputeBeta::InstanceReference] instance_reference_object
10827
+ # @param [String] fields
10828
+ # Selector specifying which fields to include in a partial response.
10829
+ # @param [String] quota_user
10830
+ # Available to use for quota purposes for server-side applications. Can be any
10831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10832
+ # Overrides userIp if both are provided.
10833
+ # @param [String] user_ip
10834
+ # IP address of the site where the request originates. Use this if you want to
10835
+ # enforce per-user limits.
10836
+ # @param [Google::Apis::RequestOptions] options
10837
+ # Request-specific options
10838
+ #
10839
+ # @yield [result, err] Result & error if block supplied
10840
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolInstanceHealth] parsed result object
10841
+ # @yieldparam err [StandardError] error object if request failed
10842
+ #
10843
+ # @return [Google::Apis::ComputeBeta::TargetPoolInstanceHealth]
10844
+ #
10845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10848
+ def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10849
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options)
10850
+ command.request_representation = Google::Apis::ComputeBeta::InstanceReference::Representation
10851
+ command.request_object = instance_reference_object
10852
+ command.response_representation = Google::Apis::ComputeBeta::TargetPoolInstanceHealth::Representation
10853
+ command.response_class = Google::Apis::ComputeBeta::TargetPoolInstanceHealth
10854
+ command.params['project'] = project unless project.nil?
10855
+ command.params['region'] = region unless region.nil?
10856
+ command.params['targetPool'] = target_pool unless target_pool.nil?
10857
+ command.query['fields'] = fields unless fields.nil?
10858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10859
+ command.query['userIp'] = user_ip unless user_ip.nil?
10860
+ execute_or_queue_command(command, &block)
10861
+ end
10862
+
10863
+ # Creates a target pool in the specified project and region using the data
10864
+ # included in the request.
10865
+ # @param [String] project
10866
+ # Project ID for this request.
10867
+ # @param [String] region
10868
+ # Name of the region scoping this request.
10869
+ # @param [Google::Apis::ComputeBeta::TargetPool] target_pool_object
10086
10870
  # @param [String] fields
10087
10871
  # Selector specifying which fields to include in a partial response.
10088
10872
  # @param [String] quota_user
@@ -10104,26 +10888,25 @@ module Google
10104
10888
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10105
10889
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10106
10890
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10107
- def insert_target_instance(project, zone, target_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10108
- command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options)
10109
- command.request_representation = Google::Apis::ComputeBeta::TargetInstance::Representation
10110
- command.request_object = target_instance_object
10891
+ def insert_target_pool(project, region, target_pool_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10892
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options)
10893
+ command.request_representation = Google::Apis::ComputeBeta::TargetPool::Representation
10894
+ command.request_object = target_pool_object
10111
10895
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10112
10896
  command.response_class = Google::Apis::ComputeBeta::Operation
10113
10897
  command.params['project'] = project unless project.nil?
10114
- command.params['zone'] = zone unless zone.nil?
10898
+ command.params['region'] = region unless region.nil?
10115
10899
  command.query['fields'] = fields unless fields.nil?
10116
10900
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10117
10901
  command.query['userIp'] = user_ip unless user_ip.nil?
10118
10902
  execute_or_queue_command(command, &block)
10119
10903
  end
10120
10904
 
10121
- # Retrieves a list of TargetInstance resources available to the specified
10122
- # project and zone.
10905
+ # Retrieves a list of target pools available to the specified project and region.
10123
10906
  # @param [String] project
10124
10907
  # Project ID for this request.
10125
- # @param [String] zone
10126
- # Name of the zone scoping this request.
10908
+ # @param [String] region
10909
+ # Name of the region scoping this request.
10127
10910
  # @param [String] filter
10128
10911
  # Sets a filter expression for filtering listed resources, in the form filter=`
10129
10912
  # expression`. Your `expression` must be in the format: field_name
@@ -10153,62 +10936,17 @@ module Google
10153
10936
  # nextPageToken that can be used to get the next page of results in subsequent
10154
10937
  # list requests.
10155
10938
  # @param [String] order_by
10156
- # Sorts list results by a certain order. By default, results are returned in
10157
- # alphanumerical order based on the resource name.
10158
- # You can also sort results in descending order based on the creation timestamp
10159
- # using orderBy="creationTimestamp desc". This sorts results based on the
10160
- # creationTimestamp field in reverse chronological order (newest result first).
10161
- # Use this to sort resources like operations so that the newest operation is
10162
- # returned first.
10163
- # Currently, only sorting by name or creationTimestamp desc is supported.
10164
- # @param [String] page_token
10165
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
10166
- # a previous list request to get the next page of results.
10167
- # @param [String] fields
10168
- # Selector specifying which fields to include in a partial response.
10169
- # @param [String] quota_user
10170
- # Available to use for quota purposes for server-side applications. Can be any
10171
- # arbitrary string assigned to a user, but should not exceed 40 characters.
10172
- # Overrides userIp if both are provided.
10173
- # @param [String] user_ip
10174
- # IP address of the site where the request originates. Use this if you want to
10175
- # enforce per-user limits.
10176
- # @param [Google::Apis::RequestOptions] options
10177
- # Request-specific options
10178
- #
10179
- # @yield [result, err] Result & error if block supplied
10180
- # @yieldparam result [Google::Apis::ComputeBeta::TargetInstanceList] parsed result object
10181
- # @yieldparam err [StandardError] error object if request failed
10182
- #
10183
- # @return [Google::Apis::ComputeBeta::TargetInstanceList]
10184
- #
10185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
10188
- def list_target_instances(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10189
- command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances', options)
10190
- command.response_representation = Google::Apis::ComputeBeta::TargetInstanceList::Representation
10191
- command.response_class = Google::Apis::ComputeBeta::TargetInstanceList
10192
- command.params['project'] = project unless project.nil?
10193
- command.params['zone'] = zone unless zone.nil?
10194
- command.query['filter'] = filter unless filter.nil?
10195
- command.query['maxResults'] = max_results unless max_results.nil?
10196
- command.query['orderBy'] = order_by unless order_by.nil?
10197
- command.query['pageToken'] = page_token unless page_token.nil?
10198
- command.query['fields'] = fields unless fields.nil?
10199
- command.query['quotaUser'] = quota_user unless quota_user.nil?
10200
- command.query['userIp'] = user_ip unless user_ip.nil?
10201
- execute_or_queue_command(command, &block)
10202
- end
10203
-
10204
- # Returns permissions that a caller has on the specified resource.
10205
- # @param [String] project
10206
- # Project ID for this request.
10207
- # @param [String] zone
10208
- # The name of the zone for this request.
10209
- # @param [String] resource
10210
- # Name of the resource for this request.
10211
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
10939
+ # Sorts list results by a certain order. By default, results are returned in
10940
+ # alphanumerical order based on the resource name.
10941
+ # You can also sort results in descending order based on the creation timestamp
10942
+ # using orderBy="creationTimestamp desc". This sorts results based on the
10943
+ # creationTimestamp field in reverse chronological order (newest result first).
10944
+ # Use this to sort resources like operations so that the newest operation is
10945
+ # returned first.
10946
+ # Currently, only sorting by name or creationTimestamp desc is supported.
10947
+ # @param [String] page_token
10948
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
10949
+ # a previous list request to get the next page of results.
10212
10950
  # @param [String] fields
10213
10951
  # Selector specifying which fields to include in a partial response.
10214
10952
  # @param [String] quota_user
@@ -10222,37 +10960,38 @@ module Google
10222
10960
  # Request-specific options
10223
10961
  #
10224
10962
  # @yield [result, err] Result & error if block supplied
10225
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
10963
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolList] parsed result object
10226
10964
  # @yieldparam err [StandardError] error object if request failed
10227
10965
  #
10228
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
10966
+ # @return [Google::Apis::ComputeBeta::TargetPoolList]
10229
10967
  #
10230
10968
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10231
10969
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10232
10970
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10233
- def test_target_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10234
- command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions', options)
10235
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
10236
- command.request_object = test_permissions_request_object
10237
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
10238
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
10971
+ def list_target_pools(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10972
+ command = make_simple_command(:get, '{project}/regions/{region}/targetPools', options)
10973
+ command.response_representation = Google::Apis::ComputeBeta::TargetPoolList::Representation
10974
+ command.response_class = Google::Apis::ComputeBeta::TargetPoolList
10239
10975
  command.params['project'] = project unless project.nil?
10240
- command.params['zone'] = zone unless zone.nil?
10241
- command.params['resource'] = resource unless resource.nil?
10976
+ command.params['region'] = region unless region.nil?
10977
+ command.query['filter'] = filter unless filter.nil?
10978
+ command.query['maxResults'] = max_results unless max_results.nil?
10979
+ command.query['orderBy'] = order_by unless order_by.nil?
10980
+ command.query['pageToken'] = page_token unless page_token.nil?
10242
10981
  command.query['fields'] = fields unless fields.nil?
10243
10982
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10244
10983
  command.query['userIp'] = user_ip unless user_ip.nil?
10245
10984
  execute_or_queue_command(command, &block)
10246
10985
  end
10247
10986
 
10248
- # Adds health check URLs to a target pool.
10987
+ # Removes health check URL from a target pool.
10249
10988
  # @param [String] project
10250
10989
  # Project ID for this request.
10251
10990
  # @param [String] region
10252
- # Name of the region scoping this request.
10991
+ # Name of the region for this request.
10253
10992
  # @param [String] target_pool
10254
- # Name of the target pool to add a health check to.
10255
- # @param [Google::Apis::ComputeBeta::AddTargetPoolsHealthCheckRequest] add_target_pools_health_check_request_object
10993
+ # Name of the target pool to remove health checks from.
10994
+ # @param [Google::Apis::ComputeBeta::RemoveTargetPoolsHealthCheckRequest] remove_target_pools_health_check_request_object
10256
10995
  # @param [String] fields
10257
10996
  # Selector specifying which fields to include in a partial response.
10258
10997
  # @param [String] quota_user
@@ -10274,10 +11013,10 @@ module Google
10274
11013
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10275
11014
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10276
11015
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10277
- def add_target_pool_health_check(project, region, target_pool, add_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10278
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options)
10279
- command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsHealthCheckRequest::Representation
10280
- command.request_object = add_target_pools_health_check_request_object
11016
+ def remove_target_pool_health_check(project, region, target_pool, remove_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11017
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options)
11018
+ command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsHealthCheckRequest::Representation
11019
+ command.request_object = remove_target_pools_health_check_request_object
10281
11020
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10282
11021
  command.response_class = Google::Apis::ComputeBeta::Operation
10283
11022
  command.params['project'] = project unless project.nil?
@@ -10289,14 +11028,14 @@ module Google
10289
11028
  execute_or_queue_command(command, &block)
10290
11029
  end
10291
11030
 
10292
- # Adds an instance to a target pool.
11031
+ # Removes instance URL from a target pool.
10293
11032
  # @param [String] project
10294
11033
  # Project ID for this request.
10295
11034
  # @param [String] region
10296
11035
  # Name of the region scoping this request.
10297
11036
  # @param [String] target_pool
10298
- # Name of the TargetPool resource to add instances to.
10299
- # @param [Google::Apis::ComputeBeta::AddTargetPoolsInstanceRequest] add_target_pools_instance_request_object
11037
+ # Name of the TargetPool resource to remove instances from.
11038
+ # @param [Google::Apis::ComputeBeta::RemoveTargetPoolsInstanceRequest] remove_target_pools_instance_request_object
10300
11039
  # @param [String] fields
10301
11040
  # Selector specifying which fields to include in a partial response.
10302
11041
  # @param [String] quota_user
@@ -10318,10 +11057,10 @@ module Google
10318
11057
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10319
11058
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10320
11059
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10321
- def add_target_pool_instance(project, region, target_pool, add_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10322
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addInstance', options)
10323
- command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsInstanceRequest::Representation
10324
- command.request_object = add_target_pools_instance_request_object
11060
+ def remove_target_pool_instance(project, region, target_pool, remove_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11061
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options)
11062
+ command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsInstanceRequest::Representation
11063
+ command.request_object = remove_target_pools_instance_request_object
10325
11064
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10326
11065
  command.response_class = Google::Apis::ComputeBeta::Operation
10327
11066
  command.params['project'] = project unless project.nil?
@@ -10333,49 +11072,16 @@ module Google
10333
11072
  execute_or_queue_command(command, &block)
10334
11073
  end
10335
11074
 
10336
- # Retrieves an aggregated list of target pools.
11075
+ # Changes a backup target pool's configurations.
10337
11076
  # @param [String] project
10338
11077
  # Project ID for this request.
10339
- # @param [String] filter
10340
- # Sets a filter expression for filtering listed resources, in the form filter=`
10341
- # expression`. Your `expression` must be in the format: field_name
10342
- # comparison_string literal_string.
10343
- # The field_name is the name of the field you want to compare. Only atomic field
10344
- # types are supported (string, number, boolean). The comparison_string must be
10345
- # either eq (equals) or ne (not equals). The literal_string is the string value
10346
- # to filter to. The literal value must be valid for the type of field you are
10347
- # filtering by (string, number, boolean). For string fields, the literal value
10348
- # is interpreted as a regular expression using RE2 syntax. The literal value
10349
- # must match the entire field.
10350
- # For example, to filter for instances that do not have a name of example-
10351
- # instance, you would use filter=name ne example-instance.
10352
- # Compute Engine Beta API Only: When filtering in the Beta API, you can also
10353
- # filter on nested fields. For example, you could filter on instances that have
10354
- # set the scheduling.automaticRestart field to true. Use filtering on nested
10355
- # fields to take advantage of labels to organize and search for results based on
10356
- # label values.
10357
- # The Beta API also supports filtering on multiple expressions by providing each
10358
- # separate expression within parentheses. For example, (scheduling.
10359
- # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
10360
- # treated as AND expressions, meaning that resources must match all expressions
10361
- # to pass the filters.
10362
- # @param [Fixnum] max_results
10363
- # The maximum number of results per page that should be returned. If the number
10364
- # of available results is larger than maxResults, Compute Engine returns a
10365
- # nextPageToken that can be used to get the next page of results in subsequent
10366
- # list requests.
10367
- # @param [String] order_by
10368
- # Sorts list results by a certain order. By default, results are returned in
10369
- # alphanumerical order based on the resource name.
10370
- # You can also sort results in descending order based on the creation timestamp
10371
- # using orderBy="creationTimestamp desc". This sorts results based on the
10372
- # creationTimestamp field in reverse chronological order (newest result first).
10373
- # Use this to sort resources like operations so that the newest operation is
10374
- # returned first.
10375
- # Currently, only sorting by name or creationTimestamp desc is supported.
10376
- # @param [String] page_token
10377
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
10378
- # a previous list request to get the next page of results.
11078
+ # @param [String] region
11079
+ # Name of the region scoping this request.
11080
+ # @param [String] target_pool
11081
+ # Name of the TargetPool resource to set a backup pool for.
11082
+ # @param [Google::Apis::ComputeBeta::TargetReference] target_reference_object
11083
+ # @param [Float] failover_ratio
11084
+ # New failoverRatio value for the target pool.
10379
11085
  # @param [String] fields
10380
11086
  # Selector specifying which fields to include in a partial response.
10381
11087
  # @param [String] quota_user
@@ -10389,36 +11095,38 @@ module Google
10389
11095
  # Request-specific options
10390
11096
  #
10391
11097
  # @yield [result, err] Result & error if block supplied
10392
- # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolAggregatedList] parsed result object
11098
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10393
11099
  # @yieldparam err [StandardError] error object if request failed
10394
11100
  #
10395
- # @return [Google::Apis::ComputeBeta::TargetPoolAggregatedList]
11101
+ # @return [Google::Apis::ComputeBeta::Operation]
10396
11102
  #
10397
11103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10398
11104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10399
11105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10400
- def list_aggregated_target_pools(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10401
- command = make_simple_command(:get, '{project}/aggregated/targetPools', options)
10402
- command.response_representation = Google::Apis::ComputeBeta::TargetPoolAggregatedList::Representation
10403
- command.response_class = Google::Apis::ComputeBeta::TargetPoolAggregatedList
11106
+ def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11107
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options)
11108
+ command.request_representation = Google::Apis::ComputeBeta::TargetReference::Representation
11109
+ command.request_object = target_reference_object
11110
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11111
+ command.response_class = Google::Apis::ComputeBeta::Operation
10404
11112
  command.params['project'] = project unless project.nil?
10405
- command.query['filter'] = filter unless filter.nil?
10406
- command.query['maxResults'] = max_results unless max_results.nil?
10407
- command.query['orderBy'] = order_by unless order_by.nil?
10408
- command.query['pageToken'] = page_token unless page_token.nil?
11113
+ command.params['region'] = region unless region.nil?
11114
+ command.params['targetPool'] = target_pool unless target_pool.nil?
11115
+ command.query['failoverRatio'] = failover_ratio unless failover_ratio.nil?
10409
11116
  command.query['fields'] = fields unless fields.nil?
10410
11117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10411
11118
  command.query['userIp'] = user_ip unless user_ip.nil?
10412
11119
  execute_or_queue_command(command, &block)
10413
11120
  end
10414
11121
 
10415
- # Deletes the specified target pool.
11122
+ # Returns permissions that a caller has on the specified resource.
10416
11123
  # @param [String] project
10417
11124
  # Project ID for this request.
10418
11125
  # @param [String] region
10419
- # Name of the region scoping this request.
10420
- # @param [String] target_pool
10421
- # Name of the TargetPool resource to delete.
11126
+ # The name of the region for this request.
11127
+ # @param [String] resource
11128
+ # Name of the resource for this request.
11129
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
10422
11130
  # @param [String] fields
10423
11131
  # Selector specifying which fields to include in a partial response.
10424
11132
  # @param [String] quota_user
@@ -10432,35 +11140,34 @@ module Google
10432
11140
  # Request-specific options
10433
11141
  #
10434
11142
  # @yield [result, err] Result & error if block supplied
10435
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11143
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
10436
11144
  # @yieldparam err [StandardError] error object if request failed
10437
11145
  #
10438
- # @return [Google::Apis::ComputeBeta::Operation]
11146
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
10439
11147
  #
10440
11148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10441
11149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10442
11150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10443
- def delete_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10444
- command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options)
10445
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10446
- command.response_class = Google::Apis::ComputeBeta::Operation
11151
+ def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11152
+ command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options)
11153
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
11154
+ command.request_object = test_permissions_request_object
11155
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
11156
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
10447
11157
  command.params['project'] = project unless project.nil?
10448
11158
  command.params['region'] = region unless region.nil?
10449
- command.params['targetPool'] = target_pool unless target_pool.nil?
11159
+ command.params['resource'] = resource unless resource.nil?
10450
11160
  command.query['fields'] = fields unless fields.nil?
10451
11161
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10452
11162
  command.query['userIp'] = user_ip unless user_ip.nil?
10453
11163
  execute_or_queue_command(command, &block)
10454
11164
  end
10455
11165
 
10456
- # Returns the specified target pool. Get a list of available target pools by
10457
- # making a list() request.
11166
+ # Deletes the specified TargetSslProxy resource.
10458
11167
  # @param [String] project
10459
11168
  # Project ID for this request.
10460
- # @param [String] region
10461
- # Name of the region scoping this request.
10462
- # @param [String] target_pool
10463
- # Name of the TargetPool resource to return.
11169
+ # @param [String] target_ssl_proxy
11170
+ # Name of the TargetSslProxy resource to delete.
10464
11171
  # @param [String] fields
10465
11172
  # Selector specifying which fields to include in a partial response.
10466
11173
  # @param [String] quota_user
@@ -10474,36 +11181,32 @@ module Google
10474
11181
  # Request-specific options
10475
11182
  #
10476
11183
  # @yield [result, err] Result & error if block supplied
10477
- # @yieldparam result [Google::Apis::ComputeBeta::TargetPool] parsed result object
11184
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
10478
11185
  # @yieldparam err [StandardError] error object if request failed
10479
11186
  #
10480
- # @return [Google::Apis::ComputeBeta::TargetPool]
11187
+ # @return [Google::Apis::ComputeBeta::Operation]
10481
11188
  #
10482
11189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10483
11190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10484
11191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10485
- def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10486
- command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options)
10487
- command.response_representation = Google::Apis::ComputeBeta::TargetPool::Representation
10488
- command.response_class = Google::Apis::ComputeBeta::TargetPool
11192
+ def delete_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11193
+ command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options)
11194
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11195
+ command.response_class = Google::Apis::ComputeBeta::Operation
10489
11196
  command.params['project'] = project unless project.nil?
10490
- command.params['region'] = region unless region.nil?
10491
- command.params['targetPool'] = target_pool unless target_pool.nil?
11197
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
10492
11198
  command.query['fields'] = fields unless fields.nil?
10493
11199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10494
11200
  command.query['userIp'] = user_ip unless user_ip.nil?
10495
11201
  execute_or_queue_command(command, &block)
10496
11202
  end
10497
11203
 
10498
- # Gets the most recent health check results for each IP for the instance that is
10499
- # referenced by the given target pool.
11204
+ # Returns the specified TargetSslProxy resource. Get a list of available target
11205
+ # SSL proxies by making a list() request.
10500
11206
  # @param [String] project
10501
11207
  # Project ID for this request.
10502
- # @param [String] region
10503
- # Name of the region scoping this request.
10504
- # @param [String] target_pool
10505
- # Name of the TargetPool resource to which the queried instance belongs.
10506
- # @param [Google::Apis::ComputeBeta::InstanceReference] instance_reference_object
11208
+ # @param [String] target_ssl_proxy
11209
+ # Name of the TargetSslProxy resource to return.
10507
11210
  # @param [String] fields
10508
11211
  # Selector specifying which fields to include in a partial response.
10509
11212
  # @param [String] quota_user
@@ -10517,36 +11220,31 @@ module Google
10517
11220
  # Request-specific options
10518
11221
  #
10519
11222
  # @yield [result, err] Result & error if block supplied
10520
- # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolInstanceHealth] parsed result object
11223
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetSslProxy] parsed result object
10521
11224
  # @yieldparam err [StandardError] error object if request failed
10522
11225
  #
10523
- # @return [Google::Apis::ComputeBeta::TargetPoolInstanceHealth]
11226
+ # @return [Google::Apis::ComputeBeta::TargetSslProxy]
10524
11227
  #
10525
11228
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10526
11229
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10527
11230
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10528
- def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10529
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options)
10530
- command.request_representation = Google::Apis::ComputeBeta::InstanceReference::Representation
10531
- command.request_object = instance_reference_object
10532
- command.response_representation = Google::Apis::ComputeBeta::TargetPoolInstanceHealth::Representation
10533
- command.response_class = Google::Apis::ComputeBeta::TargetPoolInstanceHealth
11231
+ def get_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11232
+ command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options)
11233
+ command.response_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation
11234
+ command.response_class = Google::Apis::ComputeBeta::TargetSslProxy
10534
11235
  command.params['project'] = project unless project.nil?
10535
- command.params['region'] = region unless region.nil?
10536
- command.params['targetPool'] = target_pool unless target_pool.nil?
11236
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
10537
11237
  command.query['fields'] = fields unless fields.nil?
10538
11238
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10539
11239
  command.query['userIp'] = user_ip unless user_ip.nil?
10540
11240
  execute_or_queue_command(command, &block)
10541
11241
  end
10542
11242
 
10543
- # Creates a target pool in the specified project and region using the data
11243
+ # Creates a TargetSslProxy resource in the specified project using the data
10544
11244
  # included in the request.
10545
11245
  # @param [String] project
10546
11246
  # Project ID for this request.
10547
- # @param [String] region
10548
- # Name of the region scoping this request.
10549
- # @param [Google::Apis::ComputeBeta::TargetPool] target_pool_object
11247
+ # @param [Google::Apis::ComputeBeta::TargetSslProxy] target_ssl_proxy_object
10550
11248
  # @param [String] fields
10551
11249
  # Selector specifying which fields to include in a partial response.
10552
11250
  # @param [String] quota_user
@@ -10568,25 +11266,23 @@ module Google
10568
11266
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10569
11267
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10570
11268
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10571
- def insert_target_pool(project, region, target_pool_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10572
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options)
10573
- command.request_representation = Google::Apis::ComputeBeta::TargetPool::Representation
10574
- command.request_object = target_pool_object
11269
+ def insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11270
+ command = make_simple_command(:post, '{project}/global/targetSslProxies', options)
11271
+ command.request_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation
11272
+ command.request_object = target_ssl_proxy_object
10575
11273
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10576
11274
  command.response_class = Google::Apis::ComputeBeta::Operation
10577
11275
  command.params['project'] = project unless project.nil?
10578
- command.params['region'] = region unless region.nil?
10579
11276
  command.query['fields'] = fields unless fields.nil?
10580
11277
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10581
11278
  command.query['userIp'] = user_ip unless user_ip.nil?
10582
11279
  execute_or_queue_command(command, &block)
10583
11280
  end
10584
11281
 
10585
- # Retrieves a list of target pools available to the specified project and region.
11282
+ # Retrieves the list of TargetSslProxy resources available to the specified
11283
+ # project.
10586
11284
  # @param [String] project
10587
11285
  # Project ID for this request.
10588
- # @param [String] region
10589
- # Name of the region scoping this request.
10590
11286
  # @param [String] filter
10591
11287
  # Sets a filter expression for filtering listed resources, in the form filter=`
10592
11288
  # expression`. Your `expression` must be in the format: field_name
@@ -10640,20 +11336,19 @@ module Google
10640
11336
  # Request-specific options
10641
11337
  #
10642
11338
  # @yield [result, err] Result & error if block supplied
10643
- # @yieldparam result [Google::Apis::ComputeBeta::TargetPoolList] parsed result object
11339
+ # @yieldparam result [Google::Apis::ComputeBeta::TargetSslProxyList] parsed result object
10644
11340
  # @yieldparam err [StandardError] error object if request failed
10645
11341
  #
10646
- # @return [Google::Apis::ComputeBeta::TargetPoolList]
11342
+ # @return [Google::Apis::ComputeBeta::TargetSslProxyList]
10647
11343
  #
10648
11344
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10649
11345
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10650
11346
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10651
- def list_target_pools(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10652
- command = make_simple_command(:get, '{project}/regions/{region}/targetPools', options)
10653
- command.response_representation = Google::Apis::ComputeBeta::TargetPoolList::Representation
10654
- command.response_class = Google::Apis::ComputeBeta::TargetPoolList
11347
+ def list_target_ssl_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11348
+ command = make_simple_command(:get, '{project}/global/targetSslProxies', options)
11349
+ command.response_representation = Google::Apis::ComputeBeta::TargetSslProxyList::Representation
11350
+ command.response_class = Google::Apis::ComputeBeta::TargetSslProxyList
10655
11351
  command.params['project'] = project unless project.nil?
10656
- command.params['region'] = region unless region.nil?
10657
11352
  command.query['filter'] = filter unless filter.nil?
10658
11353
  command.query['maxResults'] = max_results unless max_results.nil?
10659
11354
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -10664,14 +11359,12 @@ module Google
10664
11359
  execute_or_queue_command(command, &block)
10665
11360
  end
10666
11361
 
10667
- # Removes health check URL from a target pool.
11362
+ # Changes the BackendService for TargetSslProxy.
10668
11363
  # @param [String] project
10669
11364
  # Project ID for this request.
10670
- # @param [String] region
10671
- # Name of the region for this request.
10672
- # @param [String] target_pool
10673
- # Name of the target pool to remove health checks from.
10674
- # @param [Google::Apis::ComputeBeta::RemoveTargetPoolsHealthCheckRequest] remove_target_pools_health_check_request_object
11365
+ # @param [String] target_ssl_proxy
11366
+ # Name of the TargetSslProxy resource whose BackendService resource is to be set.
11367
+ # @param [Google::Apis::ComputeBeta::TargetSslProxiesSetBackendServiceRequest] target_ssl_proxies_set_backend_service_request_object
10675
11368
  # @param [String] fields
10676
11369
  # Selector specifying which fields to include in a partial response.
10677
11370
  # @param [String] quota_user
@@ -10693,29 +11386,26 @@ module Google
10693
11386
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10694
11387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10695
11388
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10696
- def remove_target_pool_health_check(project, region, target_pool, remove_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10697
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options)
10698
- command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsHealthCheckRequest::Representation
10699
- command.request_object = remove_target_pools_health_check_request_object
11389
+ def set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11390
+ command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options)
11391
+ command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetBackendServiceRequest::Representation
11392
+ command.request_object = target_ssl_proxies_set_backend_service_request_object
10700
11393
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10701
11394
  command.response_class = Google::Apis::ComputeBeta::Operation
10702
11395
  command.params['project'] = project unless project.nil?
10703
- command.params['region'] = region unless region.nil?
10704
- command.params['targetPool'] = target_pool unless target_pool.nil?
11396
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
10705
11397
  command.query['fields'] = fields unless fields.nil?
10706
11398
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10707
11399
  command.query['userIp'] = user_ip unless user_ip.nil?
10708
11400
  execute_or_queue_command(command, &block)
10709
11401
  end
10710
11402
 
10711
- # Removes instance URL from a target pool.
11403
+ # Changes the ProxyHeaderType for TargetSslProxy.
10712
11404
  # @param [String] project
10713
11405
  # Project ID for this request.
10714
- # @param [String] region
10715
- # Name of the region scoping this request.
10716
- # @param [String] target_pool
10717
- # Name of the TargetPool resource to remove instances from.
10718
- # @param [Google::Apis::ComputeBeta::RemoveTargetPoolsInstanceRequest] remove_target_pools_instance_request_object
11406
+ # @param [String] target_ssl_proxy
11407
+ # Name of the TargetSslProxy resource whose ProxyHeader is to be set.
11408
+ # @param [Google::Apis::ComputeBeta::TargetSslProxiesSetProxyHeaderRequest] target_ssl_proxies_set_proxy_header_request_object
10719
11409
  # @param [String] fields
10720
11410
  # Selector specifying which fields to include in a partial response.
10721
11411
  # @param [String] quota_user
@@ -10737,31 +11427,26 @@ module Google
10737
11427
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10738
11428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10739
11429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10740
- def remove_target_pool_instance(project, region, target_pool, remove_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10741
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options)
10742
- command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsInstanceRequest::Representation
10743
- command.request_object = remove_target_pools_instance_request_object
11430
+ def set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11431
+ command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options)
11432
+ command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetProxyHeaderRequest::Representation
11433
+ command.request_object = target_ssl_proxies_set_proxy_header_request_object
10744
11434
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10745
11435
  command.response_class = Google::Apis::ComputeBeta::Operation
10746
11436
  command.params['project'] = project unless project.nil?
10747
- command.params['region'] = region unless region.nil?
10748
- command.params['targetPool'] = target_pool unless target_pool.nil?
11437
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
10749
11438
  command.query['fields'] = fields unless fields.nil?
10750
11439
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10751
11440
  command.query['userIp'] = user_ip unless user_ip.nil?
10752
11441
  execute_or_queue_command(command, &block)
10753
11442
  end
10754
11443
 
10755
- # Changes a backup target pool's configurations.
11444
+ # Changes SslCertificates for TargetSslProxy.
10756
11445
  # @param [String] project
10757
11446
  # Project ID for this request.
10758
- # @param [String] region
10759
- # Name of the region scoping this request.
10760
- # @param [String] target_pool
10761
- # Name of the TargetPool resource to set a backup pool for.
10762
- # @param [Google::Apis::ComputeBeta::TargetReference] target_reference_object
10763
- # @param [Float] failover_ratio
10764
- # New failoverRatio value for the target pool.
11447
+ # @param [String] target_ssl_proxy
11448
+ # Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
11449
+ # @param [Google::Apis::ComputeBeta::TargetSslProxiesSetSslCertificatesRequest] target_ssl_proxies_set_ssl_certificates_request_object
10765
11450
  # @param [String] fields
10766
11451
  # Selector specifying which fields to include in a partial response.
10767
11452
  # @param [String] quota_user
@@ -10783,16 +11468,14 @@ module Google
10783
11468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10784
11469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10785
11470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10786
- def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10787
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options)
10788
- command.request_representation = Google::Apis::ComputeBeta::TargetReference::Representation
10789
- command.request_object = target_reference_object
11471
+ def set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11472
+ command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options)
11473
+ command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetSslCertificatesRequest::Representation
11474
+ command.request_object = target_ssl_proxies_set_ssl_certificates_request_object
10790
11475
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
10791
11476
  command.response_class = Google::Apis::ComputeBeta::Operation
10792
11477
  command.params['project'] = project unless project.nil?
10793
- command.params['region'] = region unless region.nil?
10794
- command.params['targetPool'] = target_pool unless target_pool.nil?
10795
- command.query['failoverRatio'] = failover_ratio unless failover_ratio.nil?
11478
+ command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
10796
11479
  command.query['fields'] = fields unless fields.nil?
10797
11480
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10798
11481
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -10802,8 +11485,6 @@ module Google
10802
11485
  # Returns permissions that a caller has on the specified resource.
10803
11486
  # @param [String] project
10804
11487
  # Project ID for this request.
10805
- # @param [String] region
10806
- # The name of the region for this request.
10807
11488
  # @param [String] resource
10808
11489
  # Name of the resource for this request.
10809
11490
  # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
@@ -10828,14 +11509,13 @@ module Google
10828
11509
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10829
11510
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10830
11511
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10831
- def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10832
- command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options)
11512
+ def test_target_ssl_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11513
+ command = make_simple_command(:post, '{project}/global/targetSslProxies/{resource}/testIamPermissions', options)
10833
11514
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
10834
11515
  command.request_object = test_permissions_request_object
10835
11516
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
10836
11517
  command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
10837
11518
  command.params['project'] = project unless project.nil?
10838
- command.params['region'] = region unless region.nil?
10839
11519
  command.params['resource'] = resource unless resource.nil?
10840
11520
  command.query['fields'] = fields unless fields.nil?
10841
11521
  command.query['quotaUser'] = quota_user unless quota_user.nil?