google-api-client 0.9.20 → 0.9.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class AuditLogConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Autoscaler
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -178,12 +184,24 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class BackendServiceCdnPolicy
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class BackendServiceGroupHealth
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
184
196
  include Google::Apis::Core::JsonObjectSupport
185
197
  end
186
198
 
199
+ class BackendServiceIap
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class BackendServiceList
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -220,6 +238,12 @@ module Google
220
238
  include Google::Apis::Core::JsonObjectSupport
221
239
  end
222
240
 
241
+ class CacheKeyPolicy
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
223
247
  class Condition
224
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
249
 
@@ -400,12 +424,6 @@ module Google
400
424
  include Google::Apis::Core::JsonObjectSupport
401
425
  end
402
426
 
403
- class Http2HealthCheck
404
- class Representation < Google::Apis::Core::JsonRepresentation; end
405
-
406
- include Google::Apis::Core::JsonObjectSupport
407
- end
408
-
409
427
  class HttpHealthCheck
410
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
429
 
@@ -736,6 +754,12 @@ module Google
736
754
  include Google::Apis::Core::JsonObjectSupport
737
755
  end
738
756
 
757
+ class InstancesSetServiceAccountRequest
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
739
763
  class InstancesStartWithEncryptionKeyRequest
740
764
  class Representation < Google::Apis::Core::JsonRepresentation; end
741
765
 
@@ -940,6 +964,12 @@ module Google
940
964
  include Google::Apis::Core::JsonObjectSupport
941
965
  end
942
966
 
967
+ class ProjectsListXpnHostsRequest
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
943
973
  class Quota
944
974
  class Representation < Google::Apis::Core::JsonRepresentation; end
945
975
 
@@ -1474,6 +1504,12 @@ module Google
1474
1504
  include Google::Apis::Core::JsonObjectSupport
1475
1505
  end
1476
1506
 
1507
+ class UdpHealthCheck
1508
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1509
+
1510
+ include Google::Apis::Core::JsonObjectSupport
1511
+ end
1512
+
1477
1513
  class UrlMap
1478
1514
  class Representation < Google::Apis::Core::JsonRepresentation; end
1479
1515
 
@@ -1558,6 +1594,12 @@ module Google
1558
1594
  include Google::Apis::Core::JsonObjectSupport
1559
1595
  end
1560
1596
 
1597
+ class XpnHostList
1598
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1599
+
1600
+ include Google::Apis::Core::JsonObjectSupport
1601
+ end
1602
+
1561
1603
  class Zone
1562
1604
  class Representation < Google::Apis::Core::JsonRepresentation; end
1563
1605
 
@@ -1690,11 +1732,21 @@ module Google
1690
1732
  class AuditConfig
1691
1733
  # @private
1692
1734
  class Representation < Google::Apis::Core::JsonRepresentation
1735
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ComputeBeta::AuditLogConfig, decorator: Google::Apis::ComputeBeta::AuditLogConfig::Representation
1736
+
1693
1737
  collection :exempted_members, as: 'exemptedMembers'
1694
1738
  property :service, as: 'service'
1695
1739
  end
1696
1740
  end
1697
1741
 
1742
+ class AuditLogConfig
1743
+ # @private
1744
+ class Representation < Google::Apis::Core::JsonRepresentation
1745
+ collection :exempted_members, as: 'exemptedMembers'
1746
+ property :log_type, as: 'logType'
1747
+ end
1748
+ end
1749
+
1698
1750
  class Autoscaler
1699
1751
  # @private
1700
1752
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1860,6 +1912,8 @@ module Google
1860
1912
  property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
1861
1913
  collection :backends, as: 'backends', class: Google::Apis::ComputeBeta::Backend, decorator: Google::Apis::ComputeBeta::Backend::Representation
1862
1914
 
1915
+ property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicy::Representation
1916
+
1863
1917
  property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
1864
1918
 
1865
1919
  property :creation_timestamp, as: 'creationTimestamp'
@@ -1867,6 +1921,8 @@ module Google
1867
1921
  property :enable_cdn, as: 'enableCDN'
1868
1922
  property :fingerprint, :base64 => true, as: 'fingerprint'
1869
1923
  collection :health_checks, as: 'healthChecks'
1924
+ property :iap, as: 'iap', class: Google::Apis::ComputeBeta::BackendServiceIap, decorator: Google::Apis::ComputeBeta::BackendServiceIap::Representation
1925
+
1870
1926
  property :id, as: 'id'
1871
1927
  property :kind, as: 'kind'
1872
1928
  property :load_balancing_scheme, as: 'loadBalancingScheme'
@@ -1893,6 +1949,14 @@ module Google
1893
1949
  end
1894
1950
  end
1895
1951
 
1952
+ class BackendServiceCdnPolicy
1953
+ # @private
1954
+ class Representation < Google::Apis::Core::JsonRepresentation
1955
+ property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation
1956
+
1957
+ end
1958
+ end
1959
+
1896
1960
  class BackendServiceGroupHealth
1897
1961
  # @private
1898
1962
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1902,6 +1966,16 @@ module Google
1902
1966
  end
1903
1967
  end
1904
1968
 
1969
+ class BackendServiceIap
1970
+ # @private
1971
+ class Representation < Google::Apis::Core::JsonRepresentation
1972
+ property :enabled, as: 'enabled'
1973
+ property :oauth2_client_id, as: 'oauth2ClientId'
1974
+ property :oauth2_client_secret, as: 'oauth2ClientSecret'
1975
+ property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
1976
+ end
1977
+ end
1978
+
1905
1979
  class BackendServiceList
1906
1980
  # @private
1907
1981
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1958,6 +2032,17 @@ module Google
1958
2032
  end
1959
2033
  end
1960
2034
 
2035
+ class CacheKeyPolicy
2036
+ # @private
2037
+ class Representation < Google::Apis::Core::JsonRepresentation
2038
+ property :include_host, as: 'includeHost'
2039
+ property :include_protocol, as: 'includeProtocol'
2040
+ property :include_query_string, as: 'includeQueryString'
2041
+ collection :query_string_blacklist, as: 'queryStringBlacklist'
2042
+ collection :query_string_whitelist, as: 'queryStringWhitelist'
2043
+ end
2044
+ end
2045
+
1961
2046
  class Condition
1962
2047
  # @private
1963
2048
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2303,17 +2388,6 @@ module Google
2303
2388
  end
2304
2389
  end
2305
2390
 
2306
- class Http2HealthCheck
2307
- # @private
2308
- class Representation < Google::Apis::Core::JsonRepresentation
2309
- property :host, as: 'host'
2310
- property :port, as: 'port'
2311
- property :port_name, as: 'portName'
2312
- property :proxy_header, as: 'proxyHeader'
2313
- property :request_path, as: 'requestPath'
2314
- end
2315
- end
2316
-
2317
2391
  class HttpHealthCheck
2318
2392
  # @private
2319
2393
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2343,8 +2417,6 @@ module Google
2343
2417
  property :creation_timestamp, as: 'creationTimestamp'
2344
2418
  property :description, as: 'description'
2345
2419
  property :healthy_threshold, as: 'healthyThreshold'
2346
- property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation
2347
-
2348
2420
  property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeBeta::HttpHealthCheck, decorator: Google::Apis::ComputeBeta::HttpHealthCheck::Representation
2349
2421
 
2350
2422
  property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeBeta::HttpsHealthCheck, decorator: Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
@@ -2359,6 +2431,8 @@ module Google
2359
2431
 
2360
2432
  property :timeout_sec, as: 'timeoutSec'
2361
2433
  property :type, as: 'type'
2434
+ property :udp_health_check, as: 'udpHealthCheck', class: Google::Apis::ComputeBeta::UdpHealthCheck, decorator: Google::Apis::ComputeBeta::UdpHealthCheck::Representation
2435
+
2362
2436
  property :unhealthy_threshold, as: 'unhealthyThreshold'
2363
2437
  end
2364
2438
  end
@@ -2625,6 +2699,7 @@ module Google
2625
2699
 
2626
2700
  property :region, as: 'region'
2627
2701
  property :self_link, as: 'selfLink'
2702
+ property :service_account, as: 'serviceAccount'
2628
2703
  collection :target_pools, as: 'targetPools'
2629
2704
  property :target_size, as: 'targetSize'
2630
2705
  property :zone, as: 'zone'
@@ -2965,6 +3040,14 @@ module Google
2965
3040
  end
2966
3041
  end
2967
3042
 
3043
+ class InstancesSetServiceAccountRequest
3044
+ # @private
3045
+ class Representation < Google::Apis::Core::JsonRepresentation
3046
+ property :email, as: 'email'
3047
+ collection :scopes, as: 'scopes'
3048
+ end
3049
+ end
3050
+
2968
3051
  class InstancesStartWithEncryptionKeyRequest
2969
3052
  # @private
2970
3053
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3155,6 +3238,7 @@ module Google
3155
3238
  class Representation < Google::Apis::Core::JsonRepresentation
3156
3239
  collection :access_configs, as: 'accessConfigs', class: Google::Apis::ComputeBeta::AccessConfig, decorator: Google::Apis::ComputeBeta::AccessConfig::Representation
3157
3240
 
3241
+ property :kind, as: 'kind'
3158
3242
  property :name, as: 'name'
3159
3243
  property :network, as: 'network'
3160
3244
  property :network_ip, as: 'networkIP'
@@ -3347,6 +3431,13 @@ module Google
3347
3431
  end
3348
3432
  end
3349
3433
 
3434
+ class ProjectsListXpnHostsRequest
3435
+ # @private
3436
+ class Representation < Google::Apis::Core::JsonRepresentation
3437
+ property :organization, as: 'organization'
3438
+ end
3439
+ end
3440
+
3350
3441
  class Quota
3351
3442
  # @private
3352
3443
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4303,6 +4394,16 @@ module Google
4303
4394
  end
4304
4395
  end
4305
4396
 
4397
+ class UdpHealthCheck
4398
+ # @private
4399
+ class Representation < Google::Apis::Core::JsonRepresentation
4400
+ property :port, as: 'port'
4401
+ property :port_name, as: 'portName'
4402
+ property :request, as: 'request'
4403
+ property :response, as: 'response'
4404
+ end
4405
+ end
4406
+
4306
4407
  class UrlMap
4307
4408
  # @private
4308
4409
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4462,6 +4563,18 @@ module Google
4462
4563
  end
4463
4564
  end
4464
4565
 
4566
+ class XpnHostList
4567
+ # @private
4568
+ class Representation < Google::Apis::Core::JsonRepresentation
4569
+ property :id, as: 'id'
4570
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::Project, decorator: Google::Apis::ComputeBeta::Project::Representation
4571
+
4572
+ property :kind, as: 'kind'
4573
+ property :next_page_token, as: 'nextPageToken'
4574
+ property :self_link, as: 'selfLink'
4575
+ end
4576
+ end
4577
+
4465
4578
  class Zone
4466
4579
  # @private
4467
4580
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5368,6 +5368,54 @@ module Google
5368
5368
  execute_or_queue_command(command, &block)
5369
5369
  end
5370
5370
 
5371
+ # Updates a managed instance group using the information that you specify in the
5372
+ # request. This operation is marked as DONE when the group is updated even if
5373
+ # the instances in the group have not yet been updated. You must separately
5374
+ # verify the status of the individual instances with the listmanagedinstances
5375
+ # method. This method supports patch semantics.
5376
+ # @param [String] project
5377
+ # Project ID for this request.
5378
+ # @param [String] zone
5379
+ # The name of the zone where you want to create the managed instance group.
5380
+ # @param [String] instance_group_manager
5381
+ # The name of the instance group manager.
5382
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
5383
+ # @param [String] fields
5384
+ # Selector specifying which fields to include in a partial response.
5385
+ # @param [String] quota_user
5386
+ # Available to use for quota purposes for server-side applications. Can be any
5387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5388
+ # Overrides userIp if both are provided.
5389
+ # @param [String] user_ip
5390
+ # IP address of the site where the request originates. Use this if you want to
5391
+ # enforce per-user limits.
5392
+ # @param [Google::Apis::RequestOptions] options
5393
+ # Request-specific options
5394
+ #
5395
+ # @yield [result, err] Result & error if block supplied
5396
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
5397
+ # @yieldparam err [StandardError] error object if request failed
5398
+ #
5399
+ # @return [Google::Apis::ComputeBeta::Operation]
5400
+ #
5401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5404
+ def patch_instance_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5405
+ command = make_simple_command(:patch, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
5406
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
5407
+ command.request_object = instance_group_manager_object
5408
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
5409
+ command.response_class = Google::Apis::ComputeBeta::Operation
5410
+ command.params['project'] = project unless project.nil?
5411
+ command.params['zone'] = zone unless zone.nil?
5412
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
5413
+ command.query['fields'] = fields unless fields.nil?
5414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5415
+ command.query['userIp'] = user_ip unless user_ip.nil?
5416
+ execute_or_queue_command(command, &block)
5417
+ end
5418
+
5371
5419
  # Schedules a group action to recreate the specified instances in the managed
5372
5420
  # instance group. The instances are deleted and recreated using the current
5373
5421
  # instance template for the managed instance group. This operation is marked as
@@ -5703,6 +5751,54 @@ module Google
5703
5751
  execute_or_queue_command(command, &block)
5704
5752
  end
5705
5753
 
5754
+ # Updates a managed instance group using the information that you specify in the
5755
+ # request. This operation is marked as DONE when the group is updated even if
5756
+ # the instances in the group have not yet been updated. You must separately
5757
+ # verify the status of the individual instances with the listmanagedinstances
5758
+ # method.
5759
+ # @param [String] project
5760
+ # Project ID for this request.
5761
+ # @param [String] zone
5762
+ # The name of the zone where you want to create the managed instance group.
5763
+ # @param [String] instance_group_manager
5764
+ # The name of the instance group manager.
5765
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
5766
+ # @param [String] fields
5767
+ # Selector specifying which fields to include in a partial response.
5768
+ # @param [String] quota_user
5769
+ # Available to use for quota purposes for server-side applications. Can be any
5770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5771
+ # Overrides userIp if both are provided.
5772
+ # @param [String] user_ip
5773
+ # IP address of the site where the request originates. Use this if you want to
5774
+ # enforce per-user limits.
5775
+ # @param [Google::Apis::RequestOptions] options
5776
+ # Request-specific options
5777
+ #
5778
+ # @yield [result, err] Result & error if block supplied
5779
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
5780
+ # @yieldparam err [StandardError] error object if request failed
5781
+ #
5782
+ # @return [Google::Apis::ComputeBeta::Operation]
5783
+ #
5784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5787
+ def update_instance_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5788
+ command = make_simple_command(:put, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
5789
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
5790
+ command.request_object = instance_group_manager_object
5791
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
5792
+ command.response_class = Google::Apis::ComputeBeta::Operation
5793
+ command.params['project'] = project unless project.nil?
5794
+ command.params['zone'] = zone unless zone.nil?
5795
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
5796
+ command.query['fields'] = fields unless fields.nil?
5797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5798
+ command.query['userIp'] = user_ip unless user_ip.nil?
5799
+ execute_or_queue_command(command, &block)
5800
+ end
5801
+
5706
5802
  # Adds a list of instances to the specified instance group. All of the instances
5707
5803
  # in the instance group must be in the same network/subnetwork. Read Adding
5708
5804
  # instances for more information.
@@ -7274,6 +7370,50 @@ module Google
7274
7370
  execute_or_queue_command(command, &block)
7275
7371
  end
7276
7372
 
7373
+ # Sets the service account on the instance.
7374
+ # @param [String] project
7375
+ # Project ID for this request.
7376
+ # @param [String] zone
7377
+ # The name of the zone for this request.
7378
+ # @param [String] instance
7379
+ # Name of the instance resource to start.
7380
+ # @param [Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
7381
+ # @param [String] fields
7382
+ # Selector specifying which fields to include in a partial response.
7383
+ # @param [String] quota_user
7384
+ # Available to use for quota purposes for server-side applications. Can be any
7385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7386
+ # Overrides userIp if both are provided.
7387
+ # @param [String] user_ip
7388
+ # IP address of the site where the request originates. Use this if you want to
7389
+ # enforce per-user limits.
7390
+ # @param [Google::Apis::RequestOptions] options
7391
+ # Request-specific options
7392
+ #
7393
+ # @yield [result, err] Result & error if block supplied
7394
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
7395
+ # @yieldparam err [StandardError] error object if request failed
7396
+ #
7397
+ # @return [Google::Apis::ComputeBeta::Operation]
7398
+ #
7399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7402
+ def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7403
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
7404
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation
7405
+ command.request_object = instances_set_service_account_request_object
7406
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
7407
+ command.response_class = Google::Apis::ComputeBeta::Operation
7408
+ command.params['project'] = project unless project.nil?
7409
+ command.params['zone'] = zone unless zone.nil?
7410
+ command.params['instance'] = instance unless instance.nil?
7411
+ command.query['fields'] = fields unless fields.nil?
7412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7413
+ command.query['userIp'] = user_ip unless user_ip.nil?
7414
+ execute_or_queue_command(command, &block)
7415
+ end
7416
+
7277
7417
  # Sets tags for the specified instance to the data included in the request.
7278
7418
  # @param [String] project
7279
7419
  # Project ID for this request.
@@ -8040,6 +8180,80 @@ module Google
8040
8180
  execute_or_queue_command(command, &block)
8041
8181
  end
8042
8182
 
8183
+ # Get the XPN host project that this project links to. May be empty if no link
8184
+ # exists.
8185
+ # @param [String] project
8186
+ # Project ID for this request.
8187
+ # @param [String] fields
8188
+ # Selector specifying which fields to include in a partial response.
8189
+ # @param [String] quota_user
8190
+ # Available to use for quota purposes for server-side applications. Can be any
8191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8192
+ # Overrides userIp if both are provided.
8193
+ # @param [String] user_ip
8194
+ # IP address of the site where the request originates. Use this if you want to
8195
+ # enforce per-user limits.
8196
+ # @param [Google::Apis::RequestOptions] options
8197
+ # Request-specific options
8198
+ #
8199
+ # @yield [result, err] Result & error if block supplied
8200
+ # @yieldparam result [Google::Apis::ComputeBeta::Project] parsed result object
8201
+ # @yieldparam err [StandardError] error object if request failed
8202
+ #
8203
+ # @return [Google::Apis::ComputeBeta::Project]
8204
+ #
8205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8208
+ def get_project_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8209
+ command = make_simple_command(:get, '{project}/getXpnHost', options)
8210
+ command.response_representation = Google::Apis::ComputeBeta::Project::Representation
8211
+ command.response_class = Google::Apis::ComputeBeta::Project
8212
+ command.params['project'] = project unless project.nil?
8213
+ command.query['fields'] = fields unless fields.nil?
8214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8215
+ command.query['userIp'] = user_ip unless user_ip.nil?
8216
+ execute_or_queue_command(command, &block)
8217
+ end
8218
+
8219
+ # List all XPN host projects visible to the user in an organization.
8220
+ # @param [String] project
8221
+ # Project ID for this request.
8222
+ # @param [Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object
8223
+ # @param [String] fields
8224
+ # Selector specifying which fields to include in a partial response.
8225
+ # @param [String] quota_user
8226
+ # Available to use for quota purposes for server-side applications. Can be any
8227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8228
+ # Overrides userIp if both are provided.
8229
+ # @param [String] user_ip
8230
+ # IP address of the site where the request originates. Use this if you want to
8231
+ # enforce per-user limits.
8232
+ # @param [Google::Apis::RequestOptions] options
8233
+ # Request-specific options
8234
+ #
8235
+ # @yield [result, err] Result & error if block supplied
8236
+ # @yieldparam result [Google::Apis::ComputeBeta::XpnHostList] parsed result object
8237
+ # @yieldparam err [StandardError] error object if request failed
8238
+ #
8239
+ # @return [Google::Apis::ComputeBeta::XpnHostList]
8240
+ #
8241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8244
+ def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8245
+ command = make_simple_command(:post, '{project}/listXpnHosts', options)
8246
+ command.request_representation = Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest::Representation
8247
+ command.request_object = projects_list_xpn_hosts_request_object
8248
+ command.response_representation = Google::Apis::ComputeBeta::XpnHostList::Representation
8249
+ command.response_class = Google::Apis::ComputeBeta::XpnHostList
8250
+ command.params['project'] = project unless project.nil?
8251
+ command.query['fields'] = fields unless fields.nil?
8252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8253
+ command.query['userIp'] = user_ip unless user_ip.nil?
8254
+ execute_or_queue_command(command, &block)
8255
+ end
8256
+
8043
8257
  # Moves a persistent disk from one zone to another.
8044
8258
  # @param [String] project
8045
8259
  # Project ID for this request.