google-api-client 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -1186,6 +1186,138 @@ module Google
1186
1186
  include Google::Apis::Core::JsonObjectSupport
1187
1187
  end
1188
1188
 
1189
+ class Interconnect
1190
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1191
+
1192
+ include Google::Apis::Core::JsonObjectSupport
1193
+ end
1194
+
1195
+ class InterconnectAttachment
1196
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1197
+
1198
+ include Google::Apis::Core::JsonObjectSupport
1199
+ end
1200
+
1201
+ class InterconnectAttachmentAggregatedList
1202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1203
+
1204
+ class Warning
1205
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1206
+
1207
+ class Datum
1208
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1209
+
1210
+ include Google::Apis::Core::JsonObjectSupport
1211
+ end
1212
+
1213
+ include Google::Apis::Core::JsonObjectSupport
1214
+ end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1219
+ class InterconnectAttachmentList
1220
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1221
+
1222
+ class Warning
1223
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1224
+
1225
+ class Datum
1226
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1227
+
1228
+ include Google::Apis::Core::JsonObjectSupport
1229
+ end
1230
+
1231
+ include Google::Apis::Core::JsonObjectSupport
1232
+ end
1233
+
1234
+ include Google::Apis::Core::JsonObjectSupport
1235
+ end
1236
+
1237
+ class InterconnectAttachmentPrivateInfo
1238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1239
+
1240
+ include Google::Apis::Core::JsonObjectSupport
1241
+ end
1242
+
1243
+ class InterconnectAttachmentsScopedList
1244
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1245
+
1246
+ class Warning
1247
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1248
+
1249
+ class Datum
1250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1251
+
1252
+ include Google::Apis::Core::JsonObjectSupport
1253
+ end
1254
+
1255
+ include Google::Apis::Core::JsonObjectSupport
1256
+ end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1261
+ class InterconnectCircuitInfo
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1267
+ class InterconnectList
1268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1269
+
1270
+ class Warning
1271
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1272
+
1273
+ class Datum
1274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1275
+
1276
+ include Google::Apis::Core::JsonObjectSupport
1277
+ end
1278
+
1279
+ include Google::Apis::Core::JsonObjectSupport
1280
+ end
1281
+
1282
+ include Google::Apis::Core::JsonObjectSupport
1283
+ end
1284
+
1285
+ class InterconnectLocation
1286
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1287
+
1288
+ include Google::Apis::Core::JsonObjectSupport
1289
+ end
1290
+
1291
+ class InterconnectLocationList
1292
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1293
+
1294
+ class Warning
1295
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1296
+
1297
+ class Datum
1298
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1299
+
1300
+ include Google::Apis::Core::JsonObjectSupport
1301
+ end
1302
+
1303
+ include Google::Apis::Core::JsonObjectSupport
1304
+ end
1305
+
1306
+ include Google::Apis::Core::JsonObjectSupport
1307
+ end
1308
+
1309
+ class InterconnectLocationRegionInfo
1310
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1311
+
1312
+ include Google::Apis::Core::JsonObjectSupport
1313
+ end
1314
+
1315
+ class InterconnectOutageNotification
1316
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1317
+
1318
+ include Google::Apis::Core::JsonObjectSupport
1319
+ end
1320
+
1189
1321
  class License
1190
1322
  class Representation < Google::Apis::Core::JsonRepresentation; end
1191
1323
 
@@ -3549,7 +3681,9 @@ module Google
3549
3681
  property :priority, as: 'priority'
3550
3682
  property :self_link, as: 'selfLink'
3551
3683
  collection :source_ranges, as: 'sourceRanges'
3684
+ collection :source_service_accounts, as: 'sourceServiceAccounts'
3552
3685
  collection :source_tags, as: 'sourceTags'
3686
+ collection :target_service_accounts, as: 'targetServiceAccounts'
3553
3687
  collection :target_tags, as: 'targetTags'
3554
3688
  end
3555
3689
 
@@ -4022,6 +4156,7 @@ module Google
4022
4156
  property :can_ip_forward, as: 'canIpForward'
4023
4157
  property :cpu_platform, as: 'cpuPlatform'
4024
4158
  property :creation_timestamp, as: 'creationTimestamp'
4159
+ property :deletion_protection, as: 'deletionProtection'
4025
4160
  property :description, as: 'description'
4026
4161
  collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
4027
4162
 
@@ -4636,6 +4771,272 @@ module Google
4636
4771
  end
4637
4772
  end
4638
4773
 
4774
+ class Interconnect
4775
+ # @private
4776
+ class Representation < Google::Apis::Core::JsonRepresentation
4777
+ property :admin_enabled, as: 'adminEnabled'
4778
+ collection :circuit_infos, as: 'circuitInfos', class: Google::Apis::ComputeV1::InterconnectCircuitInfo, decorator: Google::Apis::ComputeV1::InterconnectCircuitInfo::Representation
4779
+
4780
+ property :creation_timestamp, as: 'creationTimestamp'
4781
+ property :customer_name, as: 'customerName'
4782
+ property :description, as: 'description'
4783
+ collection :expected_outages, as: 'expectedOutages', class: Google::Apis::ComputeV1::InterconnectOutageNotification, decorator: Google::Apis::ComputeV1::InterconnectOutageNotification::Representation
4784
+
4785
+ property :google_ip_address, as: 'googleIpAddress'
4786
+ property :google_reference_id, as: 'googleReferenceId'
4787
+ property :id, :numeric_string => true, as: 'id'
4788
+ collection :interconnect_attachments, as: 'interconnectAttachments'
4789
+ property :interconnect_type, as: 'interconnectType'
4790
+ property :kind, as: 'kind'
4791
+ property :link_type, as: 'linkType'
4792
+ property :location, as: 'location'
4793
+ property :name, as: 'name'
4794
+ property :noc_contact_email, as: 'nocContactEmail'
4795
+ property :operational_status, as: 'operationalStatus'
4796
+ property :peer_ip_address, as: 'peerIpAddress'
4797
+ property :provisioned_link_count, as: 'provisionedLinkCount'
4798
+ property :requested_link_count, as: 'requestedLinkCount'
4799
+ property :self_link, as: 'selfLink'
4800
+ end
4801
+ end
4802
+
4803
+ class InterconnectAttachment
4804
+ # @private
4805
+ class Representation < Google::Apis::Core::JsonRepresentation
4806
+ property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
4807
+ property :creation_timestamp, as: 'creationTimestamp'
4808
+ property :customer_router_ip_address, as: 'customerRouterIpAddress'
4809
+ property :description, as: 'description'
4810
+ property :google_reference_id, as: 'googleReferenceId'
4811
+ property :id, :numeric_string => true, as: 'id'
4812
+ property :interconnect, as: 'interconnect'
4813
+ property :kind, as: 'kind'
4814
+ property :name, as: 'name'
4815
+ property :operational_status, as: 'operationalStatus'
4816
+ property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo::Representation
4817
+
4818
+ property :region, as: 'region'
4819
+ property :router, as: 'router'
4820
+ property :self_link, as: 'selfLink'
4821
+ end
4822
+ end
4823
+
4824
+ class InterconnectAttachmentAggregatedList
4825
+ # @private
4826
+ class Representation < Google::Apis::Core::JsonRepresentation
4827
+ property :id, as: 'id'
4828
+ hash :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Representation
4829
+
4830
+ property :kind, as: 'kind'
4831
+ property :next_page_token, as: 'nextPageToken'
4832
+ property :self_link, as: 'selfLink'
4833
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning::Representation
4834
+
4835
+ end
4836
+
4837
+ class Warning
4838
+ # @private
4839
+ class Representation < Google::Apis::Core::JsonRepresentation
4840
+ property :code, as: 'code'
4841
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning::Datum::Representation
4842
+
4843
+ property :message, as: 'message'
4844
+ end
4845
+
4846
+ class Datum
4847
+ # @private
4848
+ class Representation < Google::Apis::Core::JsonRepresentation
4849
+ property :key, as: 'key'
4850
+ property :value, as: 'value'
4851
+ end
4852
+ end
4853
+ end
4854
+ end
4855
+
4856
+ class InterconnectAttachmentList
4857
+ # @private
4858
+ class Representation < Google::Apis::Core::JsonRepresentation
4859
+ property :id, as: 'id'
4860
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectAttachment, decorator: Google::Apis::ComputeV1::InterconnectAttachment::Representation
4861
+
4862
+ property :kind, as: 'kind'
4863
+ property :next_page_token, as: 'nextPageToken'
4864
+ property :self_link, as: 'selfLink'
4865
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning::Representation
4866
+
4867
+ end
4868
+
4869
+ class Warning
4870
+ # @private
4871
+ class Representation < Google::Apis::Core::JsonRepresentation
4872
+ property :code, as: 'code'
4873
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning::Datum::Representation
4874
+
4875
+ property :message, as: 'message'
4876
+ end
4877
+
4878
+ class Datum
4879
+ # @private
4880
+ class Representation < Google::Apis::Core::JsonRepresentation
4881
+ property :key, as: 'key'
4882
+ property :value, as: 'value'
4883
+ end
4884
+ end
4885
+ end
4886
+ end
4887
+
4888
+ class InterconnectAttachmentPrivateInfo
4889
+ # @private
4890
+ class Representation < Google::Apis::Core::JsonRepresentation
4891
+ property :tag8021q, as: 'tag8021q'
4892
+ end
4893
+ end
4894
+
4895
+ class InterconnectAttachmentsScopedList
4896
+ # @private
4897
+ class Representation < Google::Apis::Core::JsonRepresentation
4898
+ collection :interconnect_attachments, as: 'interconnectAttachments', class: Google::Apis::ComputeV1::InterconnectAttachment, decorator: Google::Apis::ComputeV1::InterconnectAttachment::Representation
4899
+
4900
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning::Representation
4901
+
4902
+ end
4903
+
4904
+ class Warning
4905
+ # @private
4906
+ class Representation < Google::Apis::Core::JsonRepresentation
4907
+ property :code, as: 'code'
4908
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning::Datum::Representation
4909
+
4910
+ property :message, as: 'message'
4911
+ end
4912
+
4913
+ class Datum
4914
+ # @private
4915
+ class Representation < Google::Apis::Core::JsonRepresentation
4916
+ property :key, as: 'key'
4917
+ property :value, as: 'value'
4918
+ end
4919
+ end
4920
+ end
4921
+ end
4922
+
4923
+ class InterconnectCircuitInfo
4924
+ # @private
4925
+ class Representation < Google::Apis::Core::JsonRepresentation
4926
+ property :customer_demarc_id, as: 'customerDemarcId'
4927
+ property :google_circuit_id, as: 'googleCircuitId'
4928
+ property :google_demarc_id, as: 'googleDemarcId'
4929
+ end
4930
+ end
4931
+
4932
+ class InterconnectList
4933
+ # @private
4934
+ class Representation < Google::Apis::Core::JsonRepresentation
4935
+ property :id, as: 'id'
4936
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::Interconnect, decorator: Google::Apis::ComputeV1::Interconnect::Representation
4937
+
4938
+ property :kind, as: 'kind'
4939
+ property :next_page_token, as: 'nextPageToken'
4940
+ property :self_link, as: 'selfLink'
4941
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectList::Warning, decorator: Google::Apis::ComputeV1::InterconnectList::Warning::Representation
4942
+
4943
+ end
4944
+
4945
+ class Warning
4946
+ # @private
4947
+ class Representation < Google::Apis::Core::JsonRepresentation
4948
+ property :code, as: 'code'
4949
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectList::Warning::Datum::Representation
4950
+
4951
+ property :message, as: 'message'
4952
+ end
4953
+
4954
+ class Datum
4955
+ # @private
4956
+ class Representation < Google::Apis::Core::JsonRepresentation
4957
+ property :key, as: 'key'
4958
+ property :value, as: 'value'
4959
+ end
4960
+ end
4961
+ end
4962
+ end
4963
+
4964
+ class InterconnectLocation
4965
+ # @private
4966
+ class Representation < Google::Apis::Core::JsonRepresentation
4967
+ property :address, as: 'address'
4968
+ property :availability_zone, as: 'availabilityZone'
4969
+ property :city, as: 'city'
4970
+ property :continent, as: 'continent'
4971
+ property :creation_timestamp, as: 'creationTimestamp'
4972
+ property :description, as: 'description'
4973
+ property :facility_provider, as: 'facilityProvider'
4974
+ property :facility_provider_facility_id, as: 'facilityProviderFacilityId'
4975
+ property :id, :numeric_string => true, as: 'id'
4976
+ property :kind, as: 'kind'
4977
+ property :name, as: 'name'
4978
+ property :peeringdb_facility_id, as: 'peeringdbFacilityId'
4979
+ collection :region_infos, as: 'regionInfos', class: Google::Apis::ComputeV1::InterconnectLocationRegionInfo, decorator: Google::Apis::ComputeV1::InterconnectLocationRegionInfo::Representation
4980
+
4981
+ property :self_link, as: 'selfLink'
4982
+ end
4983
+ end
4984
+
4985
+ class InterconnectLocationList
4986
+ # @private
4987
+ class Representation < Google::Apis::Core::JsonRepresentation
4988
+ property :id, as: 'id'
4989
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectLocation, decorator: Google::Apis::ComputeV1::InterconnectLocation::Representation
4990
+
4991
+ property :kind, as: 'kind'
4992
+ property :next_page_token, as: 'nextPageToken'
4993
+ property :self_link, as: 'selfLink'
4994
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectLocationList::Warning, decorator: Google::Apis::ComputeV1::InterconnectLocationList::Warning::Representation
4995
+
4996
+ end
4997
+
4998
+ class Warning
4999
+ # @private
5000
+ class Representation < Google::Apis::Core::JsonRepresentation
5001
+ property :code, as: 'code'
5002
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectLocationList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectLocationList::Warning::Datum::Representation
5003
+
5004
+ property :message, as: 'message'
5005
+ end
5006
+
5007
+ class Datum
5008
+ # @private
5009
+ class Representation < Google::Apis::Core::JsonRepresentation
5010
+ property :key, as: 'key'
5011
+ property :value, as: 'value'
5012
+ end
5013
+ end
5014
+ end
5015
+ end
5016
+
5017
+ class InterconnectLocationRegionInfo
5018
+ # @private
5019
+ class Representation < Google::Apis::Core::JsonRepresentation
5020
+ property :expected_rtt_ms, :numeric_string => true, as: 'expectedRttMs'
5021
+ property :location_presence, as: 'locationPresence'
5022
+ property :region, as: 'region'
5023
+ end
5024
+ end
5025
+
5026
+ class InterconnectOutageNotification
5027
+ # @private
5028
+ class Representation < Google::Apis::Core::JsonRepresentation
5029
+ collection :affected_circuits, as: 'affectedCircuits'
5030
+ property :description, as: 'description'
5031
+ property :end_time, :numeric_string => true, as: 'endTime'
5032
+ property :issue_type, as: 'issueType'
5033
+ property :name, as: 'name'
5034
+ property :source, as: 'source'
5035
+ property :start_time, :numeric_string => true, as: 'startTime'
5036
+ property :state, as: 'state'
5037
+ end
5038
+ end
5039
+
4639
5040
  class License
4640
5041
  # @private
4641
5042
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5575,6 +5976,7 @@ module Google
5575
5976
  # @private
5576
5977
  class Representation < Google::Apis::Core::JsonRepresentation
5577
5978
  property :ip_range, as: 'ipRange'
5979
+ property :linked_interconnect_attachment, as: 'linkedInterconnectAttachment'
5578
5980
  property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
5579
5981
  property :name, as: 'name'
5580
5982
  end
@@ -7341,6 +7341,62 @@ module Google
7341
7341
  execute_or_queue_command(command, &block)
7342
7342
  end
7343
7343
 
7344
+ # Sets deletion protection on the instance.
7345
+ # @param [String] project
7346
+ # Project ID for this request.
7347
+ # @param [String] zone
7348
+ # The name of the zone for this request.
7349
+ # @param [String] resource
7350
+ # Name of the resource for this request.
7351
+ # @param [Boolean] deletion_protection
7352
+ # Whether the resource should be protected against deletion.
7353
+ # @param [String] request_id
7354
+ # An optional request ID to identify requests. Specify a unique request ID so
7355
+ # that if you must retry your request, the server will know to ignore the
7356
+ # request if it has already been completed.
7357
+ # For example, consider a situation where you make an initial request and the
7358
+ # request times out. If you make the request again with the same request ID, the
7359
+ # server can check if original operation with the same request ID was received,
7360
+ # and if so, will ignore the second request. This prevents clients from
7361
+ # accidentally creating duplicate commitments.
7362
+ # The request ID must be a valid UUID with the exception that zero UUID is not
7363
+ # supported (00000000-0000-0000-0000-000000000000).
7364
+ # @param [String] fields
7365
+ # Selector specifying which fields to include in a partial response.
7366
+ # @param [String] quota_user
7367
+ # Available to use for quota purposes for server-side applications. Can be any
7368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7369
+ # Overrides userIp if both are provided.
7370
+ # @param [String] user_ip
7371
+ # IP address of the site where the request originates. Use this if you want to
7372
+ # enforce per-user limits.
7373
+ # @param [Google::Apis::RequestOptions] options
7374
+ # Request-specific options
7375
+ #
7376
+ # @yield [result, err] Result & error if block supplied
7377
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7378
+ # @yieldparam err [StandardError] error object if request failed
7379
+ #
7380
+ # @return [Google::Apis::ComputeV1::Operation]
7381
+ #
7382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7385
+ def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7386
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
7387
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7388
+ command.response_class = Google::Apis::ComputeV1::Operation
7389
+ command.params['project'] = project unless project.nil?
7390
+ command.params['zone'] = zone unless zone.nil?
7391
+ command.params['resource'] = resource unless resource.nil?
7392
+ command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
7393
+ command.query['requestId'] = request_id unless request_id.nil?
7394
+ command.query['fields'] = fields unless fields.nil?
7395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7396
+ command.query['userIp'] = user_ip unless user_ip.nil?
7397
+ execute_or_queue_command(command, &block)
7398
+ end
7399
+
7344
7400
  # Sets the auto-delete flag for a disk attached to an instance.
7345
7401
  # @param [String] project
7346
7402
  # Project ID for this request.
@@ -7966,11 +8022,10 @@ module Google
7966
8022
  end
7967
8023
 
7968
8024
  # Stops a running instance, shutting it down cleanly, and allows you to restart
7969
- # the instance at a later time. Stopped instances do not incur per-minute,
7970
- # virtual machine usage charges while they are stopped, but any resources that
7971
- # the virtual machine is using, such as persistent disks and static IP addresses,
7972
- # will continue to be charged until they are deleted. For more information, see
7973
- # Stopping an instance.
8025
+ # the instance at a later time. Stopped instances do not incur VM usage charges
8026
+ # while they are stopped. However, resources that the VM is using, such as
8027
+ # persistent disks and static IP addresses, will continue to be charged until
8028
+ # they are deleted. For more information, see Stopping an instance.
7974
8029
  # @param [String] project
7975
8030
  # Project ID for this request.
7976
8031
  # @param [String] zone
@@ -8023,6 +8078,697 @@ module Google
8023
8078
  execute_or_queue_command(command, &block)
8024
8079
  end
8025
8080
 
8081
+ # Retrieves an aggregated list of interconnect attachments.
8082
+ # @param [String] project
8083
+ # Project ID for this request.
8084
+ # @param [String] filter
8085
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
8086
+ # must be in the format: field_name comparison_string literal_string.
8087
+ # The field_name is the name of the field you want to compare. Only atomic field
8088
+ # types are supported (string, number, boolean). The comparison_string must be
8089
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8090
+ # to filter to. The literal value must be valid for the type of field you are
8091
+ # filtering by (string, number, boolean). For string fields, the literal value
8092
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8093
+ # must match the entire field.
8094
+ # For example, to filter for instances that do not have a name of example-
8095
+ # instance, you would use name ne example-instance.
8096
+ # You can filter on nested fields. For example, you could filter on instances
8097
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8098
+ # nested fields to take advantage of labels to organize and search for results
8099
+ # based on label values.
8100
+ # To filter on multiple expressions, provide each separate expression within
8101
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8102
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8103
+ # resources must match all expressions to pass the filters.
8104
+ # @param [Fixnum] max_results
8105
+ # The maximum number of results per page that should be returned. If the number
8106
+ # of available results is larger than maxResults, Compute Engine returns a
8107
+ # nextPageToken that can be used to get the next page of results in subsequent
8108
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
8109
+ # @param [String] order_by
8110
+ # Sorts list results by a certain order. By default, results are returned in
8111
+ # alphanumerical order based on the resource name.
8112
+ # You can also sort results in descending order based on the creation timestamp
8113
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8114
+ # creationTimestamp field in reverse chronological order (newest result first).
8115
+ # Use this to sort resources like operations so that the newest operation is
8116
+ # returned first.
8117
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8118
+ # @param [String] page_token
8119
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8120
+ # a previous list request to get the next page of results.
8121
+ # @param [String] fields
8122
+ # Selector specifying which fields to include in a partial response.
8123
+ # @param [String] quota_user
8124
+ # Available to use for quota purposes for server-side applications. Can be any
8125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8126
+ # Overrides userIp if both are provided.
8127
+ # @param [String] user_ip
8128
+ # IP address of the site where the request originates. Use this if you want to
8129
+ # enforce per-user limits.
8130
+ # @param [Google::Apis::RequestOptions] options
8131
+ # Request-specific options
8132
+ #
8133
+ # @yield [result, err] Result & error if block supplied
8134
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList] parsed result object
8135
+ # @yieldparam err [StandardError] error object if request failed
8136
+ #
8137
+ # @return [Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList]
8138
+ #
8139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8142
+ def aggregated_interconnect_attachment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8143
+ command = make_simple_command(:get, '{project}/aggregated/interconnectAttachments', options)
8144
+ command.response_representation = Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Representation
8145
+ command.response_class = Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList
8146
+ command.params['project'] = project unless project.nil?
8147
+ command.query['filter'] = filter unless filter.nil?
8148
+ command.query['maxResults'] = max_results unless max_results.nil?
8149
+ command.query['orderBy'] = order_by unless order_by.nil?
8150
+ command.query['pageToken'] = page_token unless page_token.nil?
8151
+ command.query['fields'] = fields unless fields.nil?
8152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8153
+ command.query['userIp'] = user_ip unless user_ip.nil?
8154
+ execute_or_queue_command(command, &block)
8155
+ end
8156
+
8157
+ # Deletes the specified interconnect attachment.
8158
+ # @param [String] project
8159
+ # Project ID for this request.
8160
+ # @param [String] region
8161
+ # Name of the region for this request.
8162
+ # @param [String] interconnect_attachment
8163
+ # Name of the interconnect attachment to delete.
8164
+ # @param [String] request_id
8165
+ # An optional request ID to identify requests. Specify a unique request ID so
8166
+ # that if you must retry your request, the server will know to ignore the
8167
+ # request if it has already been completed.
8168
+ # For example, consider a situation where you make an initial request and the
8169
+ # request times out. If you make the request again with the same request ID, the
8170
+ # server can check if original operation with the same request ID was received,
8171
+ # and if so, will ignore the second request. This prevents clients from
8172
+ # accidentally creating duplicate commitments.
8173
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8174
+ # supported (00000000-0000-0000-0000-000000000000).
8175
+ # @param [String] fields
8176
+ # Selector specifying which fields to include in a partial response.
8177
+ # @param [String] quota_user
8178
+ # Available to use for quota purposes for server-side applications. Can be any
8179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8180
+ # Overrides userIp if both are provided.
8181
+ # @param [String] user_ip
8182
+ # IP address of the site where the request originates. Use this if you want to
8183
+ # enforce per-user limits.
8184
+ # @param [Google::Apis::RequestOptions] options
8185
+ # Request-specific options
8186
+ #
8187
+ # @yield [result, err] Result & error if block supplied
8188
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8189
+ # @yieldparam err [StandardError] error object if request failed
8190
+ #
8191
+ # @return [Google::Apis::ComputeV1::Operation]
8192
+ #
8193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8196
+ def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8197
+ command = make_simple_command(:delete, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
8198
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8199
+ command.response_class = Google::Apis::ComputeV1::Operation
8200
+ command.params['project'] = project unless project.nil?
8201
+ command.params['region'] = region unless region.nil?
8202
+ command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
8203
+ command.query['requestId'] = request_id unless request_id.nil?
8204
+ command.query['fields'] = fields unless fields.nil?
8205
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8206
+ command.query['userIp'] = user_ip unless user_ip.nil?
8207
+ execute_or_queue_command(command, &block)
8208
+ end
8209
+
8210
+ # Returns the specified interconnect attachment.
8211
+ # @param [String] project
8212
+ # Project ID for this request.
8213
+ # @param [String] region
8214
+ # Name of the region for this request.
8215
+ # @param [String] interconnect_attachment
8216
+ # Name of the interconnect attachment to return.
8217
+ # @param [String] fields
8218
+ # Selector specifying which fields to include in a partial response.
8219
+ # @param [String] quota_user
8220
+ # Available to use for quota purposes for server-side applications. Can be any
8221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8222
+ # Overrides userIp if both are provided.
8223
+ # @param [String] user_ip
8224
+ # IP address of the site where the request originates. Use this if you want to
8225
+ # enforce per-user limits.
8226
+ # @param [Google::Apis::RequestOptions] options
8227
+ # Request-specific options
8228
+ #
8229
+ # @yield [result, err] Result & error if block supplied
8230
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachment] parsed result object
8231
+ # @yieldparam err [StandardError] error object if request failed
8232
+ #
8233
+ # @return [Google::Apis::ComputeV1::InterconnectAttachment]
8234
+ #
8235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8238
+ def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8239
+ command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
8240
+ command.response_representation = Google::Apis::ComputeV1::InterconnectAttachment::Representation
8241
+ command.response_class = Google::Apis::ComputeV1::InterconnectAttachment
8242
+ command.params['project'] = project unless project.nil?
8243
+ command.params['region'] = region unless region.nil?
8244
+ command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
8245
+ command.query['fields'] = fields unless fields.nil?
8246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8247
+ command.query['userIp'] = user_ip unless user_ip.nil?
8248
+ execute_or_queue_command(command, &block)
8249
+ end
8250
+
8251
+ # Creates an InterconnectAttachment in the specified project using the data
8252
+ # included in the request.
8253
+ # @param [String] project
8254
+ # Project ID for this request.
8255
+ # @param [String] region
8256
+ # Name of the region for this request.
8257
+ # @param [Google::Apis::ComputeV1::InterconnectAttachment] interconnect_attachment_object
8258
+ # @param [String] request_id
8259
+ # An optional request ID to identify requests. Specify a unique request ID so
8260
+ # that if you must retry your request, the server will know to ignore the
8261
+ # request if it has already been completed.
8262
+ # For example, consider a situation where you make an initial request and the
8263
+ # request times out. If you make the request again with the same request ID, the
8264
+ # server can check if original operation with the same request ID was received,
8265
+ # and if so, will ignore the second request. This prevents clients from
8266
+ # accidentally creating duplicate commitments.
8267
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8268
+ # supported (00000000-0000-0000-0000-000000000000).
8269
+ # @param [String] fields
8270
+ # Selector specifying which fields to include in a partial response.
8271
+ # @param [String] quota_user
8272
+ # Available to use for quota purposes for server-side applications. Can be any
8273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8274
+ # Overrides userIp if both are provided.
8275
+ # @param [String] user_ip
8276
+ # IP address of the site where the request originates. Use this if you want to
8277
+ # enforce per-user limits.
8278
+ # @param [Google::Apis::RequestOptions] options
8279
+ # Request-specific options
8280
+ #
8281
+ # @yield [result, err] Result & error if block supplied
8282
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8283
+ # @yieldparam err [StandardError] error object if request failed
8284
+ #
8285
+ # @return [Google::Apis::ComputeV1::Operation]
8286
+ #
8287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8290
+ def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8291
+ command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options)
8292
+ command.request_representation = Google::Apis::ComputeV1::InterconnectAttachment::Representation
8293
+ command.request_object = interconnect_attachment_object
8294
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8295
+ command.response_class = Google::Apis::ComputeV1::Operation
8296
+ command.params['project'] = project unless project.nil?
8297
+ command.params['region'] = region unless region.nil?
8298
+ command.query['requestId'] = request_id unless request_id.nil?
8299
+ command.query['fields'] = fields unless fields.nil?
8300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8301
+ command.query['userIp'] = user_ip unless user_ip.nil?
8302
+ execute_or_queue_command(command, &block)
8303
+ end
8304
+
8305
+ # Retrieves the list of interconnect attachments contained within the specified
8306
+ # region.
8307
+ # @param [String] project
8308
+ # Project ID for this request.
8309
+ # @param [String] region
8310
+ # Name of the region for this request.
8311
+ # @param [String] filter
8312
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
8313
+ # must be in the format: field_name comparison_string literal_string.
8314
+ # The field_name is the name of the field you want to compare. Only atomic field
8315
+ # types are supported (string, number, boolean). The comparison_string must be
8316
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8317
+ # to filter to. The literal value must be valid for the type of field you are
8318
+ # filtering by (string, number, boolean). For string fields, the literal value
8319
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8320
+ # must match the entire field.
8321
+ # For example, to filter for instances that do not have a name of example-
8322
+ # instance, you would use name ne example-instance.
8323
+ # You can filter on nested fields. For example, you could filter on instances
8324
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8325
+ # nested fields to take advantage of labels to organize and search for results
8326
+ # based on label values.
8327
+ # To filter on multiple expressions, provide each separate expression within
8328
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8329
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8330
+ # resources must match all expressions to pass the filters.
8331
+ # @param [Fixnum] max_results
8332
+ # The maximum number of results per page that should be returned. If the number
8333
+ # of available results is larger than maxResults, Compute Engine returns a
8334
+ # nextPageToken that can be used to get the next page of results in subsequent
8335
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
8336
+ # @param [String] order_by
8337
+ # Sorts list results by a certain order. By default, results are returned in
8338
+ # alphanumerical order based on the resource name.
8339
+ # You can also sort results in descending order based on the creation timestamp
8340
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8341
+ # creationTimestamp field in reverse chronological order (newest result first).
8342
+ # Use this to sort resources like operations so that the newest operation is
8343
+ # returned first.
8344
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8345
+ # @param [String] page_token
8346
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8347
+ # a previous list request to get the next page of results.
8348
+ # @param [String] fields
8349
+ # Selector specifying which fields to include in a partial response.
8350
+ # @param [String] quota_user
8351
+ # Available to use for quota purposes for server-side applications. Can be any
8352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8353
+ # Overrides userIp if both are provided.
8354
+ # @param [String] user_ip
8355
+ # IP address of the site where the request originates. Use this if you want to
8356
+ # enforce per-user limits.
8357
+ # @param [Google::Apis::RequestOptions] options
8358
+ # Request-specific options
8359
+ #
8360
+ # @yield [result, err] Result & error if block supplied
8361
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachmentList] parsed result object
8362
+ # @yieldparam err [StandardError] error object if request failed
8363
+ #
8364
+ # @return [Google::Apis::ComputeV1::InterconnectAttachmentList]
8365
+ #
8366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8369
+ def list_interconnect_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8370
+ command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments', options)
8371
+ command.response_representation = Google::Apis::ComputeV1::InterconnectAttachmentList::Representation
8372
+ command.response_class = Google::Apis::ComputeV1::InterconnectAttachmentList
8373
+ command.params['project'] = project unless project.nil?
8374
+ command.params['region'] = region unless region.nil?
8375
+ command.query['filter'] = filter unless filter.nil?
8376
+ command.query['maxResults'] = max_results unless max_results.nil?
8377
+ command.query['orderBy'] = order_by unless order_by.nil?
8378
+ command.query['pageToken'] = page_token unless page_token.nil?
8379
+ command.query['fields'] = fields unless fields.nil?
8380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8381
+ command.query['userIp'] = user_ip unless user_ip.nil?
8382
+ execute_or_queue_command(command, &block)
8383
+ end
8384
+
8385
+ # Returns the details for the specified interconnect location. Get a list of
8386
+ # available interconnect locations by making a list() request.
8387
+ # @param [String] project
8388
+ # Project ID for this request.
8389
+ # @param [String] interconnect_location
8390
+ # Name of the interconnect location to return.
8391
+ # @param [String] fields
8392
+ # Selector specifying which fields to include in a partial response.
8393
+ # @param [String] quota_user
8394
+ # Available to use for quota purposes for server-side applications. Can be any
8395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8396
+ # Overrides userIp if both are provided.
8397
+ # @param [String] user_ip
8398
+ # IP address of the site where the request originates. Use this if you want to
8399
+ # enforce per-user limits.
8400
+ # @param [Google::Apis::RequestOptions] options
8401
+ # Request-specific options
8402
+ #
8403
+ # @yield [result, err] Result & error if block supplied
8404
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectLocation] parsed result object
8405
+ # @yieldparam err [StandardError] error object if request failed
8406
+ #
8407
+ # @return [Google::Apis::ComputeV1::InterconnectLocation]
8408
+ #
8409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8412
+ def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8413
+ command = make_simple_command(:get, '{project}/global/interconnectLocations/{interconnectLocation}', options)
8414
+ command.response_representation = Google::Apis::ComputeV1::InterconnectLocation::Representation
8415
+ command.response_class = Google::Apis::ComputeV1::InterconnectLocation
8416
+ command.params['project'] = project unless project.nil?
8417
+ command.params['interconnectLocation'] = interconnect_location unless interconnect_location.nil?
8418
+ command.query['fields'] = fields unless fields.nil?
8419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8420
+ command.query['userIp'] = user_ip unless user_ip.nil?
8421
+ execute_or_queue_command(command, &block)
8422
+ end
8423
+
8424
+ # Retrieves the list of interconnect locations available to the specified
8425
+ # project.
8426
+ # @param [String] project
8427
+ # Project ID for this request.
8428
+ # @param [String] filter
8429
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
8430
+ # must be in the format: field_name comparison_string literal_string.
8431
+ # The field_name is the name of the field you want to compare. Only atomic field
8432
+ # types are supported (string, number, boolean). The comparison_string must be
8433
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8434
+ # to filter to. The literal value must be valid for the type of field you are
8435
+ # filtering by (string, number, boolean). For string fields, the literal value
8436
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8437
+ # must match the entire field.
8438
+ # For example, to filter for instances that do not have a name of example-
8439
+ # instance, you would use name ne example-instance.
8440
+ # You can filter on nested fields. For example, you could filter on instances
8441
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8442
+ # nested fields to take advantage of labels to organize and search for results
8443
+ # based on label values.
8444
+ # To filter on multiple expressions, provide each separate expression within
8445
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8446
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8447
+ # resources must match all expressions to pass the filters.
8448
+ # @param [Fixnum] max_results
8449
+ # The maximum number of results per page that should be returned. If the number
8450
+ # of available results is larger than maxResults, Compute Engine returns a
8451
+ # nextPageToken that can be used to get the next page of results in subsequent
8452
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
8453
+ # @param [String] order_by
8454
+ # Sorts list results by a certain order. By default, results are returned in
8455
+ # alphanumerical order based on the resource name.
8456
+ # You can also sort results in descending order based on the creation timestamp
8457
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8458
+ # creationTimestamp field in reverse chronological order (newest result first).
8459
+ # Use this to sort resources like operations so that the newest operation is
8460
+ # returned first.
8461
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8462
+ # @param [String] page_token
8463
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8464
+ # a previous list request to get the next page of results.
8465
+ # @param [String] fields
8466
+ # Selector specifying which fields to include in a partial response.
8467
+ # @param [String] quota_user
8468
+ # Available to use for quota purposes for server-side applications. Can be any
8469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8470
+ # Overrides userIp if both are provided.
8471
+ # @param [String] user_ip
8472
+ # IP address of the site where the request originates. Use this if you want to
8473
+ # enforce per-user limits.
8474
+ # @param [Google::Apis::RequestOptions] options
8475
+ # Request-specific options
8476
+ #
8477
+ # @yield [result, err] Result & error if block supplied
8478
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectLocationList] parsed result object
8479
+ # @yieldparam err [StandardError] error object if request failed
8480
+ #
8481
+ # @return [Google::Apis::ComputeV1::InterconnectLocationList]
8482
+ #
8483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8486
+ def list_interconnect_locations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8487
+ command = make_simple_command(:get, '{project}/global/interconnectLocations', options)
8488
+ command.response_representation = Google::Apis::ComputeV1::InterconnectLocationList::Representation
8489
+ command.response_class = Google::Apis::ComputeV1::InterconnectLocationList
8490
+ command.params['project'] = project unless project.nil?
8491
+ command.query['filter'] = filter unless filter.nil?
8492
+ command.query['maxResults'] = max_results unless max_results.nil?
8493
+ command.query['orderBy'] = order_by unless order_by.nil?
8494
+ command.query['pageToken'] = page_token unless page_token.nil?
8495
+ command.query['fields'] = fields unless fields.nil?
8496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8497
+ command.query['userIp'] = user_ip unless user_ip.nil?
8498
+ execute_or_queue_command(command, &block)
8499
+ end
8500
+
8501
+ # Deletes the specified interconnect.
8502
+ # @param [String] project
8503
+ # Project ID for this request.
8504
+ # @param [String] interconnect
8505
+ # Name of the interconnect to delete.
8506
+ # @param [String] request_id
8507
+ # An optional request ID to identify requests. Specify a unique request ID so
8508
+ # that if you must retry your request, the server will know to ignore the
8509
+ # request if it has already been completed.
8510
+ # For example, consider a situation where you make an initial request and the
8511
+ # request times out. If you make the request again with the same request ID, the
8512
+ # server can check if original operation with the same request ID was received,
8513
+ # and if so, will ignore the second request. This prevents clients from
8514
+ # accidentally creating duplicate commitments.
8515
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8516
+ # supported (00000000-0000-0000-0000-000000000000).
8517
+ # @param [String] fields
8518
+ # Selector specifying which fields to include in a partial response.
8519
+ # @param [String] quota_user
8520
+ # Available to use for quota purposes for server-side applications. Can be any
8521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8522
+ # Overrides userIp if both are provided.
8523
+ # @param [String] user_ip
8524
+ # IP address of the site where the request originates. Use this if you want to
8525
+ # enforce per-user limits.
8526
+ # @param [Google::Apis::RequestOptions] options
8527
+ # Request-specific options
8528
+ #
8529
+ # @yield [result, err] Result & error if block supplied
8530
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8531
+ # @yieldparam err [StandardError] error object if request failed
8532
+ #
8533
+ # @return [Google::Apis::ComputeV1::Operation]
8534
+ #
8535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8538
+ def delete_interconnect(project, interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8539
+ command = make_simple_command(:delete, '{project}/global/interconnects/{interconnect}', options)
8540
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8541
+ command.response_class = Google::Apis::ComputeV1::Operation
8542
+ command.params['project'] = project unless project.nil?
8543
+ command.params['interconnect'] = interconnect unless interconnect.nil?
8544
+ command.query['requestId'] = request_id unless request_id.nil?
8545
+ command.query['fields'] = fields unless fields.nil?
8546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8547
+ command.query['userIp'] = user_ip unless user_ip.nil?
8548
+ execute_or_queue_command(command, &block)
8549
+ end
8550
+
8551
+ # Returns the specified interconnect. Get a list of available interconnects by
8552
+ # making a list() request.
8553
+ # @param [String] project
8554
+ # Project ID for this request.
8555
+ # @param [String] interconnect
8556
+ # Name of the interconnect to return.
8557
+ # @param [String] fields
8558
+ # Selector specifying which fields to include in a partial response.
8559
+ # @param [String] quota_user
8560
+ # Available to use for quota purposes for server-side applications. Can be any
8561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8562
+ # Overrides userIp if both are provided.
8563
+ # @param [String] user_ip
8564
+ # IP address of the site where the request originates. Use this if you want to
8565
+ # enforce per-user limits.
8566
+ # @param [Google::Apis::RequestOptions] options
8567
+ # Request-specific options
8568
+ #
8569
+ # @yield [result, err] Result & error if block supplied
8570
+ # @yieldparam result [Google::Apis::ComputeV1::Interconnect] parsed result object
8571
+ # @yieldparam err [StandardError] error object if request failed
8572
+ #
8573
+ # @return [Google::Apis::ComputeV1::Interconnect]
8574
+ #
8575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8578
+ def get_interconnect(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8579
+ command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}', options)
8580
+ command.response_representation = Google::Apis::ComputeV1::Interconnect::Representation
8581
+ command.response_class = Google::Apis::ComputeV1::Interconnect
8582
+ command.params['project'] = project unless project.nil?
8583
+ command.params['interconnect'] = interconnect unless interconnect.nil?
8584
+ command.query['fields'] = fields unless fields.nil?
8585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8586
+ command.query['userIp'] = user_ip unless user_ip.nil?
8587
+ execute_or_queue_command(command, &block)
8588
+ end
8589
+
8590
+ # Creates a Interconnect in the specified project using the data included in the
8591
+ # request.
8592
+ # @param [String] project
8593
+ # Project ID for this request.
8594
+ # @param [Google::Apis::ComputeV1::Interconnect] interconnect_object
8595
+ # @param [String] request_id
8596
+ # An optional request ID to identify requests. Specify a unique request ID so
8597
+ # that if you must retry your request, the server will know to ignore the
8598
+ # request if it has already been completed.
8599
+ # For example, consider a situation where you make an initial request and the
8600
+ # request times out. If you make the request again with the same request ID, the
8601
+ # server can check if original operation with the same request ID was received,
8602
+ # and if so, will ignore the second request. This prevents clients from
8603
+ # accidentally creating duplicate commitments.
8604
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8605
+ # supported (00000000-0000-0000-0000-000000000000).
8606
+ # @param [String] fields
8607
+ # Selector specifying which fields to include in a partial response.
8608
+ # @param [String] quota_user
8609
+ # Available to use for quota purposes for server-side applications. Can be any
8610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8611
+ # Overrides userIp if both are provided.
8612
+ # @param [String] user_ip
8613
+ # IP address of the site where the request originates. Use this if you want to
8614
+ # enforce per-user limits.
8615
+ # @param [Google::Apis::RequestOptions] options
8616
+ # Request-specific options
8617
+ #
8618
+ # @yield [result, err] Result & error if block supplied
8619
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8620
+ # @yieldparam err [StandardError] error object if request failed
8621
+ #
8622
+ # @return [Google::Apis::ComputeV1::Operation]
8623
+ #
8624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8627
+ def insert_interconnect(project, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8628
+ command = make_simple_command(:post, '{project}/global/interconnects', options)
8629
+ command.request_representation = Google::Apis::ComputeV1::Interconnect::Representation
8630
+ command.request_object = interconnect_object
8631
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8632
+ command.response_class = Google::Apis::ComputeV1::Operation
8633
+ command.params['project'] = project unless project.nil?
8634
+ command.query['requestId'] = request_id unless request_id.nil?
8635
+ command.query['fields'] = fields unless fields.nil?
8636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8637
+ command.query['userIp'] = user_ip unless user_ip.nil?
8638
+ execute_or_queue_command(command, &block)
8639
+ end
8640
+
8641
+ # Retrieves the list of interconnect available to the specified project.
8642
+ # @param [String] project
8643
+ # Project ID for this request.
8644
+ # @param [String] filter
8645
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
8646
+ # must be in the format: field_name comparison_string literal_string.
8647
+ # The field_name is the name of the field you want to compare. Only atomic field
8648
+ # types are supported (string, number, boolean). The comparison_string must be
8649
+ # either eq (equals) or ne (not equals). The literal_string is the string value
8650
+ # to filter to. The literal value must be valid for the type of field you are
8651
+ # filtering by (string, number, boolean). For string fields, the literal value
8652
+ # is interpreted as a regular expression using RE2 syntax. The literal value
8653
+ # must match the entire field.
8654
+ # For example, to filter for instances that do not have a name of example-
8655
+ # instance, you would use name ne example-instance.
8656
+ # You can filter on nested fields. For example, you could filter on instances
8657
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
8658
+ # nested fields to take advantage of labels to organize and search for results
8659
+ # based on label values.
8660
+ # To filter on multiple expressions, provide each separate expression within
8661
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
8662
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
8663
+ # resources must match all expressions to pass the filters.
8664
+ # @param [Fixnum] max_results
8665
+ # The maximum number of results per page that should be returned. If the number
8666
+ # of available results is larger than maxResults, Compute Engine returns a
8667
+ # nextPageToken that can be used to get the next page of results in subsequent
8668
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
8669
+ # @param [String] order_by
8670
+ # Sorts list results by a certain order. By default, results are returned in
8671
+ # alphanumerical order based on the resource name.
8672
+ # You can also sort results in descending order based on the creation timestamp
8673
+ # using orderBy="creationTimestamp desc". This sorts results based on the
8674
+ # creationTimestamp field in reverse chronological order (newest result first).
8675
+ # Use this to sort resources like operations so that the newest operation is
8676
+ # returned first.
8677
+ # Currently, only sorting by name or creationTimestamp desc is supported.
8678
+ # @param [String] page_token
8679
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
8680
+ # a previous list request to get the next page of results.
8681
+ # @param [String] fields
8682
+ # Selector specifying which fields to include in a partial response.
8683
+ # @param [String] quota_user
8684
+ # Available to use for quota purposes for server-side applications. Can be any
8685
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8686
+ # Overrides userIp if both are provided.
8687
+ # @param [String] user_ip
8688
+ # IP address of the site where the request originates. Use this if you want to
8689
+ # enforce per-user limits.
8690
+ # @param [Google::Apis::RequestOptions] options
8691
+ # Request-specific options
8692
+ #
8693
+ # @yield [result, err] Result & error if block supplied
8694
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectList] parsed result object
8695
+ # @yieldparam err [StandardError] error object if request failed
8696
+ #
8697
+ # @return [Google::Apis::ComputeV1::InterconnectList]
8698
+ #
8699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8702
+ def list_interconnects(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8703
+ command = make_simple_command(:get, '{project}/global/interconnects', options)
8704
+ command.response_representation = Google::Apis::ComputeV1::InterconnectList::Representation
8705
+ command.response_class = Google::Apis::ComputeV1::InterconnectList
8706
+ command.params['project'] = project unless project.nil?
8707
+ command.query['filter'] = filter unless filter.nil?
8708
+ command.query['maxResults'] = max_results unless max_results.nil?
8709
+ command.query['orderBy'] = order_by unless order_by.nil?
8710
+ command.query['pageToken'] = page_token unless page_token.nil?
8711
+ command.query['fields'] = fields unless fields.nil?
8712
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8713
+ command.query['userIp'] = user_ip unless user_ip.nil?
8714
+ execute_or_queue_command(command, &block)
8715
+ end
8716
+
8717
+ # Updates the specified interconnect with the data included in the request. This
8718
+ # method supports PATCH semantics and uses the JSON merge patch format and
8719
+ # processing rules.
8720
+ # @param [String] project
8721
+ # Project ID for this request.
8722
+ # @param [String] interconnect
8723
+ # Name of the interconnect to update.
8724
+ # @param [Google::Apis::ComputeV1::Interconnect] interconnect_object
8725
+ # @param [String] request_id
8726
+ # An optional request ID to identify requests. Specify a unique request ID so
8727
+ # that if you must retry your request, the server will know to ignore the
8728
+ # request if it has already been completed.
8729
+ # For example, consider a situation where you make an initial request and the
8730
+ # request times out. If you make the request again with the same request ID, the
8731
+ # server can check if original operation with the same request ID was received,
8732
+ # and if so, will ignore the second request. This prevents clients from
8733
+ # accidentally creating duplicate commitments.
8734
+ # The request ID must be a valid UUID with the exception that zero UUID is not
8735
+ # supported (00000000-0000-0000-0000-000000000000).
8736
+ # @param [String] fields
8737
+ # Selector specifying which fields to include in a partial response.
8738
+ # @param [String] quota_user
8739
+ # Available to use for quota purposes for server-side applications. Can be any
8740
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8741
+ # Overrides userIp if both are provided.
8742
+ # @param [String] user_ip
8743
+ # IP address of the site where the request originates. Use this if you want to
8744
+ # enforce per-user limits.
8745
+ # @param [Google::Apis::RequestOptions] options
8746
+ # Request-specific options
8747
+ #
8748
+ # @yield [result, err] Result & error if block supplied
8749
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
8750
+ # @yieldparam err [StandardError] error object if request failed
8751
+ #
8752
+ # @return [Google::Apis::ComputeV1::Operation]
8753
+ #
8754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8757
+ def patch_interconnect(project, interconnect, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8758
+ command = make_simple_command(:patch, '{project}/global/interconnects/{interconnect}', options)
8759
+ command.request_representation = Google::Apis::ComputeV1::Interconnect::Representation
8760
+ command.request_object = interconnect_object
8761
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
8762
+ command.response_class = Google::Apis::ComputeV1::Operation
8763
+ command.params['project'] = project unless project.nil?
8764
+ command.params['interconnect'] = interconnect unless interconnect.nil?
8765
+ command.query['requestId'] = request_id unless request_id.nil?
8766
+ command.query['fields'] = fields unless fields.nil?
8767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8768
+ command.query['userIp'] = user_ip unless user_ip.nil?
8769
+ execute_or_queue_command(command, &block)
8770
+ end
8771
+
8026
8772
  # Returns the specified License resource.
8027
8773
  # @param [String] project
8028
8774
  # Project ID for this request.