google-api-client 0.45.1 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
  5. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  6. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
  9. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +5 -5
  12. data/generated/google/apis/apigee_v1/service.rb +21 -19
  13. data/generated/google/apis/appsmarket_v2.rb +1 -1
  14. data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
  15. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +264 -0
  16. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +129 -0
  17. data/generated/google/apis/bigquery_v2.rb +1 -1
  18. data/generated/google/apis/bigquery_v2/classes.rb +38 -18
  19. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  20. data/generated/google/apis/books_v1.rb +1 -1
  21. data/generated/google/apis/books_v1/service.rb +2 -2
  22. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  23. data/generated/google/apis/cloudidentity_v1/classes.rb +78 -64
  24. data/generated/google/apis/cloudidentity_v1/service.rb +85 -69
  25. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  26. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +3 -0
  27. data/generated/google/apis/cloudidentity_v1beta1/service.rb +26 -11
  28. data/generated/google/apis/composer_v1beta1.rb +1 -1
  29. data/generated/google/apis/composer_v1beta1/classes.rb +2 -1
  30. data/generated/google/apis/compute_alpha.rb +1 -1
  31. data/generated/google/apis/compute_alpha/classes.rb +513 -131
  32. data/generated/google/apis/compute_alpha/representations.rb +124 -8
  33. data/generated/google/apis/compute_alpha/service.rb +1685 -762
  34. data/generated/google/apis/compute_beta.rb +1 -1
  35. data/generated/google/apis/compute_beta/classes.rb +491 -83
  36. data/generated/google/apis/compute_beta/representations.rb +96 -1
  37. data/generated/google/apis/compute_beta/service.rb +802 -133
  38. data/generated/google/apis/compute_v1.rb +1 -1
  39. data/generated/google/apis/compute_v1/classes.rb +308 -45
  40. data/generated/google/apis/compute_v1/representations.rb +54 -1
  41. data/generated/google/apis/compute_v1/service.rb +736 -130
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +2 -1
  44. data/generated/google/apis/content_v2_1.rb +1 -1
  45. data/generated/google/apis/content_v2_1/classes.rb +2 -1
  46. data/generated/google/apis/datafusion_v1.rb +1 -1
  47. data/generated/google/apis/dataproc_v1.rb +1 -1
  48. data/generated/google/apis/dataproc_v1/classes.rb +28 -2
  49. data/generated/google/apis/dataproc_v1/representations.rb +15 -0
  50. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  51. data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
  52. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  53. data/generated/google/apis/dialogflow_v2.rb +1 -1
  54. data/generated/google/apis/dialogflow_v2/classes.rb +87 -0
  55. data/generated/google/apis/dialogflow_v2/representations.rb +45 -0
  56. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  57. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -8
  58. data/generated/google/apis/dialogflow_v2beta1/representations.rb +45 -0
  59. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  60. data/generated/google/apis/dialogflow_v3beta1/classes.rb +87 -0
  61. data/generated/google/apis/dialogflow_v3beta1/representations.rb +45 -0
  62. data/generated/google/apis/file_v1.rb +1 -1
  63. data/generated/google/apis/file_v1/classes.rb +1 -1
  64. data/generated/google/apis/file_v1beta1.rb +1 -1
  65. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  66. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  67. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  68. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  69. data/generated/google/apis/jobs_v2.rb +1 -1
  70. data/generated/google/apis/jobs_v2/classes.rb +798 -0
  71. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  72. data/generated/google/apis/jobs_v3.rb +1 -1
  73. data/generated/google/apis/jobs_v3/classes.rb +798 -0
  74. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  75. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  76. data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
  77. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  78. data/generated/google/apis/managedidentities_v1.rb +1 -1
  79. data/generated/google/apis/managedidentities_v1/classes.rb +7 -0
  80. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  81. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  82. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +7 -0
  83. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  84. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  85. data/generated/google/apis/managedidentities_v1beta1/classes.rb +7 -0
  86. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  87. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  88. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  89. data/generated/google/apis/monitoring_v3.rb +1 -1
  90. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  91. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  92. data/generated/google/apis/osconfig_v1.rb +3 -3
  93. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  94. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  95. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  96. data/generated/google/apis/pubsublite_v1.rb +1 -1
  97. data/generated/google/apis/pubsublite_v1/classes.rb +2 -2
  98. data/generated/google/apis/recommender_v1.rb +1 -1
  99. data/generated/google/apis/recommender_v1/service.rb +4 -2
  100. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  101. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  102. data/generated/google/apis/redis_v1.rb +1 -1
  103. data/generated/google/apis/redis_v1/classes.rb +5 -5
  104. data/generated/google/apis/redis_v1/service.rb +2 -2
  105. data/generated/google/apis/redis_v1beta1.rb +1 -1
  106. data/generated/google/apis/redis_v1beta1/classes.rb +33 -5
  107. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  108. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  109. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  110. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -1
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +174 -84
  113. data/generated/google/apis/storage_v1.rb +1 -1
  114. data/generated/google/apis/storage_v1/classes.rb +2 -10
  115. data/generated/google/apis/storage_v1/representations.rb +0 -1
  116. data/generated/google/apis/storage_v1/service.rb +3 -2
  117. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  118. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  119. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  120. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  121. data/generated/google/apis/translate_v3.rb +1 -1
  122. data/generated/google/apis/translate_v3/classes.rb +2 -2
  123. data/generated/google/apis/videointelligence_v1.rb +1 -1
  124. data/generated/google/apis/videointelligence_v1/classes.rb +308 -13
  125. data/generated/google/apis/videointelligence_v1/representations.rb +162 -3
  126. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  127. data/generated/google/apis/videointelligence_v1beta2/classes.rb +308 -13
  128. data/generated/google/apis/videointelligence_v1beta2/representations.rb +162 -3
  129. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  130. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +308 -13
  131. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +162 -3
  132. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  133. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +308 -13
  134. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +162 -3
  135. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  136. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +224 -13
  137. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +128 -3
  138. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  139. data/generated/google/apis/youtube_v3.rb +1 -1
  140. data/generated/google/apis/youtube_v3/service.rb +2 -2
  141. data/lib/google/apis/version.rb +1 -1
  142. metadata +3 -15
  143. data/generated/google/apis/apigateway_v1alpha1.rb +0 -34
  144. data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
  145. data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
  146. data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
  147. data/generated/google/apis/apigateway_v1alpha2.rb +0 -34
  148. data/generated/google/apis/apigateway_v1alpha2/classes.rb +0 -633
  149. data/generated/google/apis/apigateway_v1alpha2/representations.rb +0 -250
  150. data/generated/google/apis/apigateway_v1alpha2/service.rb +0 -623
  151. data/generated/google/apis/appsactivity_v1.rb +0 -34
  152. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  153. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  154. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
@@ -2008,6 +2008,30 @@ module Google
2008
2008
  include Google::Apis::Core::JsonObjectSupport
2009
2009
  end
2010
2010
 
2011
+ class InstantSnapshot
2012
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2013
+
2014
+ include Google::Apis::Core::JsonObjectSupport
2015
+ end
2016
+
2017
+ class InstantSnapshotList
2018
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2019
+
2020
+ class Warning
2021
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2022
+
2023
+ class Datum
2024
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2025
+
2026
+ include Google::Apis::Core::JsonObjectSupport
2027
+ end
2028
+
2029
+ include Google::Apis::Core::JsonObjectSupport
2030
+ end
2031
+
2032
+ include Google::Apis::Core::JsonObjectSupport
2033
+ end
2034
+
2011
2035
  class Int64RangeMatch
2012
2036
  class Representation < Google::Apis::Core::JsonRepresentation; end
2013
2037
 
@@ -4240,6 +4264,12 @@ module Google
4240
4264
  include Google::Apis::Core::JsonObjectSupport
4241
4265
  end
4242
4266
 
4267
+ class SecurityPolicyRuleRateLimitOptionsThreshold
4268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4269
+
4270
+ include Google::Apis::Core::JsonObjectSupport
4271
+ end
4272
+
4243
4273
  class SecuritySettings
4244
4274
  class Representation < Google::Apis::Core::JsonRepresentation; end
4245
4275
 
@@ -4618,6 +4648,12 @@ module Google
4618
4648
  include Google::Apis::Core::JsonObjectSupport
4619
4649
  end
4620
4650
 
4651
+ class Subsetting
4652
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4653
+
4654
+ include Google::Apis::Core::JsonObjectSupport
4655
+ end
4656
+
4621
4657
  class TcpHealthCheck
4622
4658
  class Representation < Google::Apis::Core::JsonRepresentation; end
4623
4659
 
@@ -5834,7 +5870,6 @@ module Google
5834
5870
  property :location_hint, as: 'locationHint'
5835
5871
  property :machine_type, as: 'machineType'
5836
5872
  property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
5837
- property :maintenance_interval, as: 'maintenanceInterval'
5838
5873
  property :min_cpu_platform, as: 'minCpuPlatform'
5839
5874
  end
5840
5875
  end
@@ -6296,6 +6331,8 @@ module Google
6296
6331
  property :self_link, as: 'selfLink'
6297
6332
  property :self_link_with_id, as: 'selfLinkWithId'
6298
6333
  property :session_affinity, as: 'sessionAffinity'
6334
+ property :subsetting, as: 'subsetting', class: Google::Apis::ComputeAlpha::Subsetting, decorator: Google::Apis::ComputeAlpha::Subsetting::Representation
6335
+
6299
6336
  property :timeout_sec, as: 'timeoutSec'
6300
6337
  end
6301
6338
  end
@@ -6545,6 +6582,7 @@ module Google
6545
6582
  class Binding
6546
6583
  # @private
6547
6584
  class Representation < Google::Apis::Core::JsonRepresentation
6585
+ property :binding_id, as: 'bindingId'
6548
6586
  property :condition, as: 'condition', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
6549
6587
 
6550
6588
  collection :members, as: 'members'
@@ -6864,7 +6902,7 @@ module Google
6864
6902
  property :region, as: 'region'
6865
6903
  collection :replica_zones, as: 'replicaZones'
6866
6904
  collection :resource_policies, as: 'resourcePolicies'
6867
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
6905
+ property :satisfies_pzs, as: 'satisfiesPzs'
6868
6906
  property :self_link, as: 'selfLink'
6869
6907
  property :self_link_with_id, as: 'selfLinkWithId'
6870
6908
  property :size_gb, :numeric_string => true, as: 'sizeGb'
@@ -8460,9 +8498,10 @@ module Google
8460
8498
  property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
8461
8499
 
8462
8500
  collection :resource_policies, as: 'resourcePolicies'
8463
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
8501
+ property :satisfies_pzs, as: 'satisfiesPzs'
8464
8502
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
8465
8503
 
8504
+ collection :secure_labels, as: 'secureLabels'
8466
8505
  property :self_link, as: 'selfLink'
8467
8506
  property :self_link_with_id, as: 'selfLinkWithId'
8468
8507
  collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
@@ -9407,6 +9446,60 @@ module Google
9407
9446
  end
9408
9447
  end
9409
9448
 
9449
+ class InstantSnapshot
9450
+ # @private
9451
+ class Representation < Google::Apis::Core::JsonRepresentation
9452
+ property :creation_timestamp, as: 'creationTimestamp'
9453
+ property :description, as: 'description'
9454
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
9455
+ property :guest_flush, as: 'guestFlush'
9456
+ property :id, :numeric_string => true, as: 'id'
9457
+ property :kind, as: 'kind'
9458
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
9459
+ hash :labels, as: 'labels'
9460
+ property :name, as: 'name'
9461
+ property :region, as: 'region'
9462
+ property :self_link, as: 'selfLink'
9463
+ property :self_link_with_id, as: 'selfLinkWithId'
9464
+ property :source_disk, as: 'sourceDisk'
9465
+ property :source_disk_id, as: 'sourceDiskId'
9466
+ property :status, as: 'status'
9467
+ property :zone, as: 'zone'
9468
+ end
9469
+ end
9470
+
9471
+ class InstantSnapshotList
9472
+ # @private
9473
+ class Representation < Google::Apis::Core::JsonRepresentation
9474
+ property :id, as: 'id'
9475
+ collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InstantSnapshot, decorator: Google::Apis::ComputeAlpha::InstantSnapshot::Representation
9476
+
9477
+ property :kind, as: 'kind'
9478
+ property :next_page_token, as: 'nextPageToken'
9479
+ property :self_link, as: 'selfLink'
9480
+ property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning, decorator: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Representation
9481
+
9482
+ end
9483
+
9484
+ class Warning
9485
+ # @private
9486
+ class Representation < Google::Apis::Core::JsonRepresentation
9487
+ property :code, as: 'code'
9488
+ collection :data, as: 'data', class: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Datum::Representation
9489
+
9490
+ property :message, as: 'message'
9491
+ end
9492
+
9493
+ class Datum
9494
+ # @private
9495
+ class Representation < Google::Apis::Core::JsonRepresentation
9496
+ property :key, as: 'key'
9497
+ property :value, as: 'value'
9498
+ end
9499
+ end
9500
+ end
9501
+ end
9502
+
9410
9503
  class Int64RangeMatch
9411
9504
  # @private
9412
9505
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10605,6 +10698,7 @@ module Google
10605
10698
  property :name, as: 'name'
10606
10699
  property :network, as: 'network'
10607
10700
  property :network_ip, as: 'networkIP'
10701
+ property :queue_count, as: 'queueCount'
10608
10702
  property :subnetwork, as: 'subnetwork'
10609
10703
  end
10610
10704
  end
@@ -10830,7 +10924,7 @@ module Google
10830
10924
  collection :instances, as: 'instances'
10831
10925
  property :name, as: 'name'
10832
10926
  property :node_type, as: 'nodeType'
10833
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
10927
+ property :satisfies_pzs, as: 'satisfiesPzs'
10834
10928
  property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeAlpha::ServerBinding, decorator: Google::Apis::ComputeAlpha::ServerBinding::Representation
10835
10929
 
10836
10930
  property :server_id, as: 'serverId'
@@ -12032,7 +12126,7 @@ module Google
12032
12126
  property :self_link, as: 'selfLink'
12033
12127
  property :self_link_with_id, as: 'selfLinkWithId'
12034
12128
  property :status, as: 'status'
12035
- property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
12129
+ property :supports_pzs, as: 'supportsPzs'
12036
12130
  collection :zones, as: 'zones'
12037
12131
  end
12038
12132
  end
@@ -13498,14 +13592,27 @@ module Google
13498
13592
  class SecurityPolicyRuleRateLimitOptions
13499
13593
  # @private
13500
13594
  class Representation < Google::Apis::Core::JsonRepresentation
13595
+ property :ban_duration_sec, as: 'banDurationSec'
13596
+ property :ban_threshold, as: 'banThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
13597
+
13501
13598
  property :block_duration, as: 'blockDuration'
13502
13599
  property :conform_action, as: 'conformAction'
13503
13600
  property :enforce_on_key, as: 'enforceOnKey'
13504
13601
  property :exceed_action, as: 'exceedAction'
13602
+ property :rate_limit_threshold, as: 'rateLimitThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
13603
+
13505
13604
  property :threshold_rps, as: 'thresholdRps'
13506
13605
  end
13507
13606
  end
13508
13607
 
13608
+ class SecurityPolicyRuleRateLimitOptionsThreshold
13609
+ # @private
13610
+ class Representation < Google::Apis::Core::JsonRepresentation
13611
+ property :count, as: 'count'
13612
+ property :interval_sec, as: 'intervalSec'
13613
+ end
13614
+ end
13615
+
13509
13616
  class SecuritySettings
13510
13617
  # @private
13511
13618
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13568,7 +13675,7 @@ module Google
13568
13675
  property :id, :numeric_string => true, as: 'id'
13569
13676
  property :kind, as: 'kind'
13570
13677
  property :name, as: 'name'
13571
- collection :nat_ip_cidr_ranges, as: 'natIpCidrRanges'
13678
+ collection :nat_subnets, as: 'natSubnets'
13572
13679
  property :producer_forwarding_rule, as: 'producerForwardingRule'
13573
13680
  property :region, as: 'region'
13574
13681
  property :self_link, as: 'selfLink'
@@ -13702,6 +13809,7 @@ module Google
13702
13809
  property :description, as: 'description'
13703
13810
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
13704
13811
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
13812
+ property :guest_flush, as: 'guestFlush'
13705
13813
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
13706
13814
 
13707
13815
  property :id, :numeric_string => true, as: 'id'
@@ -13711,7 +13819,7 @@ module Google
13711
13819
  collection :license_codes, as: 'licenseCodes'
13712
13820
  collection :licenses, as: 'licenses'
13713
13821
  property :name, as: 'name'
13714
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
13822
+ property :satisfies_pzs, as: 'satisfiesPzs'
13715
13823
  property :self_link, as: 'selfLink'
13716
13824
  property :self_link_with_id, as: 'selfLinkWithId'
13717
13825
  property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@@ -14206,6 +14314,13 @@ module Google
14206
14314
  end
14207
14315
  end
14208
14316
 
14317
+ class Subsetting
14318
+ # @private
14319
+ class Representation < Google::Apis::Core::JsonRepresentation
14320
+ property :policy, as: 'policy'
14321
+ end
14322
+ end
14323
+
14209
14324
  class TcpHealthCheck
14210
14325
  # @private
14211
14326
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14307,6 +14422,7 @@ module Google
14307
14422
  class Representation < Google::Apis::Core::JsonRepresentation
14308
14423
  property :creation_timestamp, as: 'creationTimestamp'
14309
14424
  property :description, as: 'description'
14425
+ property :fingerprint, :base64 => true, as: 'fingerprint'
14310
14426
  collection :http_filters, as: 'httpFilters'
14311
14427
  property :id, :numeric_string => true, as: 'id'
14312
14428
  property :kind, as: 'kind'
@@ -15791,7 +15907,7 @@ module Google
15791
15907
  property :region, as: 'region'
15792
15908
  property :self_link, as: 'selfLink'
15793
15909
  property :status, as: 'status'
15794
- property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
15910
+ property :supports_pzs, as: 'supportsPzs'
15795
15911
  end
15796
15912
  end
15797
15913
 
@@ -2631,7 +2631,7 @@ module Google
2631
2631
  # Name of the persistent disk to snapshot.
2632
2632
  # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
2633
2633
  # @param [Boolean] guest_flush
2634
- # [Input Only] Specifies to create an application consistent snapshot by
2634
+ # [Input Only] Whether to attempt an application consistent snapshot by
2635
2635
  # informing the OS to prepare for the snapshot process. Currently only supported
2636
2636
  # on Windows instances using the Volume Shadow Copy Service (VSS).
2637
2637
  # @param [String] request_id
@@ -9489,8 +9489,10 @@ module Google
9489
9489
  execute_or_queue_command(command, &block)
9490
9490
  end
9491
9491
 
9492
- # Returns the specified instance group. Gets a list of available instance groups
9493
- # by making a list() request.
9492
+ # Returns the specified zonal instance group. Get a list of available zonal
9493
+ # instance groups by making a list() request.
9494
+ # For managed instance groups, use the instanceGroupManagers or
9495
+ # regionInstanceGroupManagers methods instead.
9494
9496
  # @param [String] project
9495
9497
  # Project ID for this request.
9496
9498
  # @param [String] zone
@@ -9581,8 +9583,10 @@ module Google
9581
9583
  execute_or_queue_command(command, &block)
9582
9584
  end
9583
9585
 
9584
- # Retrieves the list of instance groups that are located in the specified
9585
- # project and zone.
9586
+ # Retrieves the list of zonal instance group resources contained within the
9587
+ # specified zone.
9588
+ # For managed instance groups, use the instanceGroupManagers or
9589
+ # regionInstanceGroupManagers methods instead.
9586
9590
  # @param [String] project
9587
9591
  # Project ID for this request.
9588
9592
  # @param [String] zone
@@ -10443,7 +10447,8 @@ module Google
10443
10447
  # @param [Google::Apis::ComputeAlpha::AttachedDisk] attached_disk_object
10444
10448
  # @param [Boolean] force_attach
10445
10449
  # Whether to force attach the regional disk even if it's currently attached to
10446
- # another instance.
10450
+ # another instance. If you try to force attach a zonal disk to an instance, you
10451
+ # will receive an error.
10447
10452
  # @param [String] request_id
10448
10453
  # An optional request ID to identify requests. Specify a unique request ID so
10449
10454
  # that if you must retry your request, the server will know to ignore the
@@ -25593,16 +25598,18 @@ module Google
25593
25598
  execute_or_queue_command(command, &block)
25594
25599
  end
25595
25600
 
25596
- # Deletes the specified network endpoint group. Note that the NEG cannot be
25597
- # deleted if it is configured as a backend of a backend service.
25601
+ # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
25602
+ # single instantSnapshot might not necessarily delete all the data on that
25603
+ # instantSnapshot. If any data on the instantSnapshot that is marked for
25604
+ # deletion is needed for subsequent instantSnapshots, the data will be moved to
25605
+ # the next corresponding instantSnapshot.
25606
+ # For more information, see Deleting instantSnapshots.
25598
25607
  # @param [String] project
25599
25608
  # Project ID for this request.
25600
25609
  # @param [String] region
25601
- # The name of the region where the network endpoint group is located. It should
25602
- # comply with RFC1035.
25603
- # @param [String] network_endpoint_group
25604
- # The name of the network endpoint group to delete. It should comply with
25605
- # RFC1035.
25610
+ # The name of the region for this request.
25611
+ # @param [String] instant_snapshot
25612
+ # Name of the InstantSnapshot resource to delete.
25606
25613
  # @param [String] request_id
25607
25614
  # An optional request ID to identify requests. Specify a unique request ID so
25608
25615
  # that if you must retry your request, the server will know to ignore the
@@ -25633,13 +25640,13 @@ module Google
25633
25640
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25634
25641
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25635
25642
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25636
- def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25637
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
25643
+ def delete_region_instant_snapshot(project, region, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25644
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
25638
25645
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25639
25646
  command.response_class = Google::Apis::ComputeAlpha::Operation
25640
25647
  command.params['project'] = project unless project.nil?
25641
25648
  command.params['region'] = region unless region.nil?
25642
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
25649
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
25643
25650
  command.query['requestId'] = request_id unless request_id.nil?
25644
25651
  command.query['fields'] = fields unless fields.nil?
25645
25652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25647,15 +25654,13 @@ module Google
25647
25654
  execute_or_queue_command(command, &block)
25648
25655
  end
25649
25656
 
25650
- # Returns the specified network endpoint group. Gets a list of available network
25651
- # endpoint groups by making a list() request.
25657
+ # Returns the specified InstantSnapshot resource in the specified region.
25652
25658
  # @param [String] project
25653
25659
  # Project ID for this request.
25654
25660
  # @param [String] region
25655
- # The name of the region where the network endpoint group is located. It should
25656
- # comply with RFC1035.
25657
- # @param [String] network_endpoint_group
25658
- # The name of the network endpoint group. It should comply with RFC1035.
25661
+ # The name of the region for this request.
25662
+ # @param [String] instant_snapshot
25663
+ # Name of the InstantSnapshot resource to return.
25659
25664
  # @param [String] fields
25660
25665
  # Selector specifying which fields to include in a partial response.
25661
25666
  # @param [String] quota_user
@@ -25667,35 +25672,76 @@ module Google
25667
25672
  # Request-specific options
25668
25673
  #
25669
25674
  # @yield [result, err] Result & error if block supplied
25670
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
25675
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshot] parsed result object
25671
25676
  # @yieldparam err [StandardError] error object if request failed
25672
25677
  #
25673
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
25678
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshot]
25674
25679
  #
25675
25680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25676
25681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25677
25682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25678
- def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25679
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
25680
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
25681
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
25683
+ def get_region_instant_snapshot(project, region, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25684
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
25685
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
25686
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshot
25682
25687
  command.params['project'] = project unless project.nil?
25683
25688
  command.params['region'] = region unless region.nil?
25684
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
25689
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
25685
25690
  command.query['fields'] = fields unless fields.nil?
25686
25691
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25687
25692
  command.query['userIp'] = user_ip unless user_ip.nil?
25688
25693
  execute_or_queue_command(command, &block)
25689
25694
  end
25690
25695
 
25691
- # Creates a network endpoint group in the specified project using the parameters
25692
- # that are included in the request.
25696
+ # Gets the access control policy for a resource. May be empty if no such policy
25697
+ # or resource exists.
25693
25698
  # @param [String] project
25694
25699
  # Project ID for this request.
25695
25700
  # @param [String] region
25696
- # The name of the region where you want to create the network endpoint group. It
25697
- # should comply with RFC1035.
25698
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
25701
+ # The name of the region for this request.
25702
+ # @param [String] resource
25703
+ # Name or id of the resource for this request.
25704
+ # @param [Fixnum] options_requested_policy_version
25705
+ # Requested IAM Policy version.
25706
+ # @param [String] fields
25707
+ # Selector specifying which fields to include in a partial response.
25708
+ # @param [String] quota_user
25709
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25710
+ # characters.
25711
+ # @param [String] user_ip
25712
+ # Deprecated. Please use quotaUser instead.
25713
+ # @param [Google::Apis::RequestOptions] options
25714
+ # Request-specific options
25715
+ #
25716
+ # @yield [result, err] Result & error if block supplied
25717
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
25718
+ # @yieldparam err [StandardError] error object if request failed
25719
+ #
25720
+ # @return [Google::Apis::ComputeAlpha::Policy]
25721
+ #
25722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25725
+ def get_region_instant_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25726
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy', options)
25727
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
25728
+ command.response_class = Google::Apis::ComputeAlpha::Policy
25729
+ command.params['project'] = project unless project.nil?
25730
+ command.params['region'] = region unless region.nil?
25731
+ command.params['resource'] = resource unless resource.nil?
25732
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
25733
+ command.query['fields'] = fields unless fields.nil?
25734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25735
+ command.query['userIp'] = user_ip unless user_ip.nil?
25736
+ execute_or_queue_command(command, &block)
25737
+ end
25738
+
25739
+ # Creates an instant snapshot in the specified region.
25740
+ # @param [String] project
25741
+ # Project ID for this request.
25742
+ # @param [String] region
25743
+ # Name of the region for this request.
25744
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshot] instant_snapshot_object
25699
25745
  # @param [String] request_id
25700
25746
  # An optional request ID to identify requests. Specify a unique request ID so
25701
25747
  # that if you must retry your request, the server will know to ignore the
@@ -25726,10 +25772,10 @@ module Google
25726
25772
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25727
25773
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25728
25774
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25729
- def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25730
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
25731
- command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
25732
- command.request_object = network_endpoint_group_object
25775
+ def insert_region_instant_snapshot(project, region, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25776
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots', options)
25777
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
25778
+ command.request_object = instant_snapshot_object
25733
25779
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25734
25780
  command.response_class = Google::Apis::ComputeAlpha::Operation
25735
25781
  command.params['project'] = project unless project.nil?
@@ -25741,13 +25787,12 @@ module Google
25741
25787
  execute_or_queue_command(command, &block)
25742
25788
  end
25743
25789
 
25744
- # Retrieves the list of regional network endpoint groups available to the
25745
- # specified project in the given region.
25790
+ # Retrieves the list of InstantSnapshot resources contained within the specified
25791
+ # region.
25746
25792
  # @param [String] project
25747
25793
  # Project ID for this request.
25748
25794
  # @param [String] region
25749
- # The name of the region where the network endpoint group is located. It should
25750
- # comply with RFC1035.
25795
+ # The name of the region for this request.
25751
25796
  # @param [String] filter
25752
25797
  # A filter expression that filters resources listed in the response. The
25753
25798
  # expression must specify the field name, a comparison operator, and the value
@@ -25796,18 +25841,18 @@ module Google
25796
25841
  # Request-specific options
25797
25842
  #
25798
25843
  # @yield [result, err] Result & error if block supplied
25799
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
25844
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotList] parsed result object
25800
25845
  # @yieldparam err [StandardError] error object if request failed
25801
25846
  #
25802
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
25847
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotList]
25803
25848
  #
25804
25849
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25805
25850
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25806
25851
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25807
- def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25808
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
25809
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
25810
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
25852
+ def list_region_instant_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25853
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots', options)
25854
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotList::Representation
25855
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotList
25811
25856
  command.params['project'] = project unless project.nil?
25812
25857
  command.params['region'] = region unless region.nil?
25813
25858
  command.query['filter'] = filter unless filter.nil?
@@ -25821,64 +25866,15 @@ module Google
25821
25866
  execute_or_queue_command(command, &block)
25822
25867
  end
25823
25868
 
25824
- # Deletes the specified NotificationEndpoint in the given region
25825
- # @param [String] project
25826
- # Project ID for this request.
25827
- # @param [String] region
25828
- # Name of the region scoping this request.
25829
- # @param [String] notification_endpoint
25830
- # Name of the NotificationEndpoint resource to delete.
25831
- # @param [String] request_id
25832
- # An optional request ID to identify requests. Specify a unique request ID so
25833
- # that if you must retry your request, the server will know to ignore the
25834
- # request if it has already been completed.
25835
- # For example, consider a situation where you make an initial request and the
25836
- # request times out. If you make the request again with the same request ID, the
25837
- # server can check if original operation with the same request ID was received,
25838
- # and if so, will ignore the second request. This prevents clients from
25839
- # accidentally creating duplicate commitments.
25840
- # The request ID must be a valid UUID with the exception that zero UUID is not
25841
- # supported (00000000-0000-0000-0000-000000000000).
25842
- # @param [String] fields
25843
- # Selector specifying which fields to include in a partial response.
25844
- # @param [String] quota_user
25845
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25846
- # characters.
25847
- # @param [String] user_ip
25848
- # Deprecated. Please use quotaUser instead.
25849
- # @param [Google::Apis::RequestOptions] options
25850
- # Request-specific options
25851
- #
25852
- # @yield [result, err] Result & error if block supplied
25853
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
25854
- # @yieldparam err [StandardError] error object if request failed
25855
- #
25856
- # @return [Google::Apis::ComputeAlpha::Operation]
25857
- #
25858
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25859
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25860
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25861
- def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25862
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
25863
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25864
- command.response_class = Google::Apis::ComputeAlpha::Operation
25865
- command.params['project'] = project unless project.nil?
25866
- command.params['region'] = region unless region.nil?
25867
- command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
25868
- command.query['requestId'] = request_id unless request_id.nil?
25869
- command.query['fields'] = fields unless fields.nil?
25870
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25871
- command.query['userIp'] = user_ip unless user_ip.nil?
25872
- execute_or_queue_command(command, &block)
25873
- end
25874
-
25875
- # Returns the specified NotificationEndpoint resource in the given region.
25869
+ # Sets the access control policy on the specified resource. Replaces any
25870
+ # existing policy.
25876
25871
  # @param [String] project
25877
25872
  # Project ID for this request.
25878
25873
  # @param [String] region
25879
- # Name of the region scoping this request.
25880
- # @param [String] notification_endpoint
25881
- # Name of the NotificationEndpoint resource to return.
25874
+ # The name of the region for this request.
25875
+ # @param [String] resource
25876
+ # Name or id of the resource for this request.
25877
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
25882
25878
  # @param [String] fields
25883
25879
  # Selector specifying which fields to include in a partial response.
25884
25880
  # @param [String] quota_user
@@ -25890,34 +25886,38 @@ module Google
25890
25886
  # Request-specific options
25891
25887
  #
25892
25888
  # @yield [result, err] Result & error if block supplied
25893
- # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
25889
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
25894
25890
  # @yieldparam err [StandardError] error object if request failed
25895
25891
  #
25896
- # @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
25892
+ # @return [Google::Apis::ComputeAlpha::Policy]
25897
25893
  #
25898
25894
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25899
25895
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25900
25896
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25901
- def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25902
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
25903
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
25904
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
25897
+ def set_region_instant_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25898
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy', options)
25899
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
25900
+ command.request_object = region_set_policy_request_object
25901
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
25902
+ command.response_class = Google::Apis::ComputeAlpha::Policy
25905
25903
  command.params['project'] = project unless project.nil?
25906
25904
  command.params['region'] = region unless region.nil?
25907
- command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
25905
+ command.params['resource'] = resource unless resource.nil?
25908
25906
  command.query['fields'] = fields unless fields.nil?
25909
25907
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25910
25908
  command.query['userIp'] = user_ip unless user_ip.nil?
25911
25909
  execute_or_queue_command(command, &block)
25912
25910
  end
25913
25911
 
25914
- # Create a NotificationEndpoint in the specified project in the given region
25915
- # using the parameters that are included in the request.
25912
+ # Sets the labels on a instantSnapshot in the given region. To learn more about
25913
+ # labels, read the Labeling Resources documentation.
25916
25914
  # @param [String] project
25917
25915
  # Project ID for this request.
25918
25916
  # @param [String] region
25919
- # Name of the region scoping this request.
25920
- # @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
25917
+ # The region for this request.
25918
+ # @param [String] resource
25919
+ # Name or id of the resource for this request.
25920
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
25921
25921
  # @param [String] request_id
25922
25922
  # An optional request ID to identify requests. Specify a unique request ID so
25923
25923
  # that if you must retry your request, the server will know to ignore the
@@ -25948,14 +25948,15 @@ module Google
25948
25948
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25949
25949
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25950
25950
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25951
- def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25952
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
25953
- command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
25954
- command.request_object = notification_endpoint_object
25951
+ def set_region_instant_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25952
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels', options)
25953
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
25954
+ command.request_object = region_set_labels_request_object
25955
25955
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25956
25956
  command.response_class = Google::Apis::ComputeAlpha::Operation
25957
25957
  command.params['project'] = project unless project.nil?
25958
25958
  command.params['region'] = region unless region.nil?
25959
+ command.params['resource'] = resource unless resource.nil?
25959
25960
  command.query['requestId'] = request_id unless request_id.nil?
25960
25961
  command.query['fields'] = fields unless fields.nil?
25961
25962
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25963,84 +25964,496 @@ module Google
25963
25964
  execute_or_queue_command(command, &block)
25964
25965
  end
25965
25966
 
25966
- # Lists the NotificationEndpoints for a project in the given region.
25967
- # @param [String] project
25968
- # Project ID for this request.
25969
- # @param [String] region
25970
- # Name of the region scoping this request.
25971
- # @param [String] filter
25972
- # A filter expression that filters resources listed in the response. The
25973
- # expression must specify the field name, a comparison operator, and the value
25974
- # that you want to use for filtering. The value must be a string, a number, or a
25975
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
25976
- # For example, if you are filtering Compute Engine instances, you can exclude
25977
- # instances named `example-instance` by specifying `name != example-instance`.
25978
- # You can also filter nested fields. For example, you could specify `scheduling.
25979
- # automaticRestart = false` to include instances only if they are not scheduled
25980
- # for automatic restarts. You can use filtering on nested fields to filter based
25981
- # on resource labels.
25982
- # To filter on multiple expressions, provide each separate expression within
25983
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
25984
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
25985
- # expression. However, you can include `AND` and `OR` expressions explicitly.
25986
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
25987
- # Broadwell") AND (scheduling.automaticRestart = true) ```
25988
- # @param [Fixnum] max_results
25989
- # The maximum number of results per page that should be returned. If the number
25990
- # of available results is larger than `maxResults`, Compute Engine returns a `
25991
- # nextPageToken` that can be used to get the next page of results in subsequent
25992
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25993
- # @param [String] order_by
25994
- # Sorts list results by a certain order. By default, results are returned in
25995
- # alphanumerical order based on the resource name.
25996
- # You can also sort results in descending order based on the creation timestamp
25997
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
25998
- # creationTimestamp` field in reverse chronological order (newest result first).
25999
- # Use this to sort resources like operations so that the newest operation is
26000
- # returned first.
26001
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26002
- # @param [String] page_token
26003
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26004
- # by a previous list request to get the next page of results.
26005
- # @param [Boolean] return_partial_success
26006
- # Opt-in for partial success behavior which provides partial results in case of
26007
- # failure. The default value is false and the logic is the same as today.
26008
- # @param [String] fields
26009
- # Selector specifying which fields to include in a partial response.
26010
- # @param [String] quota_user
26011
- # An opaque string that represents a user for quota purposes. Must not exceed 40
26012
- # characters.
26013
- # @param [String] user_ip
26014
- # Deprecated. Please use quotaUser instead.
26015
- # @param [Google::Apis::RequestOptions] options
26016
- # Request-specific options
26017
- #
26018
- # @yield [result, err] Result & error if block supplied
26019
- # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
26020
- # @yieldparam err [StandardError] error object if request failed
26021
- #
26022
- # @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
26023
- #
26024
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26025
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26026
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26027
- def list_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26028
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
26029
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
26030
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
26031
- command.params['project'] = project unless project.nil?
26032
- command.params['region'] = region unless region.nil?
26033
- command.query['filter'] = filter unless filter.nil?
26034
- command.query['maxResults'] = max_results unless max_results.nil?
26035
- command.query['orderBy'] = order_by unless order_by.nil?
26036
- command.query['pageToken'] = page_token unless page_token.nil?
26037
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26038
- command.query['fields'] = fields unless fields.nil?
26039
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26040
- command.query['userIp'] = user_ip unless user_ip.nil?
26041
- execute_or_queue_command(command, &block)
26042
- end
26043
-
25967
+ # Returns permissions that a caller has on the specified resource.
25968
+ # @param [String] project
25969
+ # Project ID for this request.
25970
+ # @param [String] region
25971
+ # The name of the region for this request.
25972
+ # @param [String] resource
25973
+ # Name or id of the resource for this request.
25974
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
25975
+ # @param [String] fields
25976
+ # Selector specifying which fields to include in a partial response.
25977
+ # @param [String] quota_user
25978
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25979
+ # characters.
25980
+ # @param [String] user_ip
25981
+ # Deprecated. Please use quotaUser instead.
25982
+ # @param [Google::Apis::RequestOptions] options
25983
+ # Request-specific options
25984
+ #
25985
+ # @yield [result, err] Result & error if block supplied
25986
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
25987
+ # @yieldparam err [StandardError] error object if request failed
25988
+ #
25989
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
25990
+ #
25991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25994
+ def test_region_instant_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25995
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions', options)
25996
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
25997
+ command.request_object = test_permissions_request_object
25998
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
25999
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
26000
+ command.params['project'] = project unless project.nil?
26001
+ command.params['region'] = region unless region.nil?
26002
+ command.params['resource'] = resource unless resource.nil?
26003
+ command.query['fields'] = fields unless fields.nil?
26004
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26005
+ command.query['userIp'] = user_ip unless user_ip.nil?
26006
+ execute_or_queue_command(command, &block)
26007
+ end
26008
+
26009
+ # Deletes the specified network endpoint group. Note that the NEG cannot be
26010
+ # deleted if it is configured as a backend of a backend service.
26011
+ # @param [String] project
26012
+ # Project ID for this request.
26013
+ # @param [String] region
26014
+ # The name of the region where the network endpoint group is located. It should
26015
+ # comply with RFC1035.
26016
+ # @param [String] network_endpoint_group
26017
+ # The name of the network endpoint group to delete. It should comply with
26018
+ # RFC1035.
26019
+ # @param [String] request_id
26020
+ # An optional request ID to identify requests. Specify a unique request ID so
26021
+ # that if you must retry your request, the server will know to ignore the
26022
+ # request if it has already been completed.
26023
+ # For example, consider a situation where you make an initial request and the
26024
+ # request times out. If you make the request again with the same request ID, the
26025
+ # server can check if original operation with the same request ID was received,
26026
+ # and if so, will ignore the second request. This prevents clients from
26027
+ # accidentally creating duplicate commitments.
26028
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26029
+ # supported (00000000-0000-0000-0000-000000000000).
26030
+ # @param [String] fields
26031
+ # Selector specifying which fields to include in a partial response.
26032
+ # @param [String] quota_user
26033
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26034
+ # characters.
26035
+ # @param [String] user_ip
26036
+ # Deprecated. Please use quotaUser instead.
26037
+ # @param [Google::Apis::RequestOptions] options
26038
+ # Request-specific options
26039
+ #
26040
+ # @yield [result, err] Result & error if block supplied
26041
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26042
+ # @yieldparam err [StandardError] error object if request failed
26043
+ #
26044
+ # @return [Google::Apis::ComputeAlpha::Operation]
26045
+ #
26046
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26047
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26048
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26049
+ def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26050
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
26051
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26052
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26053
+ command.params['project'] = project unless project.nil?
26054
+ command.params['region'] = region unless region.nil?
26055
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
26056
+ command.query['requestId'] = request_id unless request_id.nil?
26057
+ command.query['fields'] = fields unless fields.nil?
26058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26059
+ command.query['userIp'] = user_ip unless user_ip.nil?
26060
+ execute_or_queue_command(command, &block)
26061
+ end
26062
+
26063
+ # Returns the specified network endpoint group. Gets a list of available network
26064
+ # endpoint groups by making a list() request.
26065
+ # @param [String] project
26066
+ # Project ID for this request.
26067
+ # @param [String] region
26068
+ # The name of the region where the network endpoint group is located. It should
26069
+ # comply with RFC1035.
26070
+ # @param [String] network_endpoint_group
26071
+ # The name of the network endpoint group. It should comply with RFC1035.
26072
+ # @param [String] fields
26073
+ # Selector specifying which fields to include in a partial response.
26074
+ # @param [String] quota_user
26075
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26076
+ # characters.
26077
+ # @param [String] user_ip
26078
+ # Deprecated. Please use quotaUser instead.
26079
+ # @param [Google::Apis::RequestOptions] options
26080
+ # Request-specific options
26081
+ #
26082
+ # @yield [result, err] Result & error if block supplied
26083
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
26084
+ # @yieldparam err [StandardError] error object if request failed
26085
+ #
26086
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
26087
+ #
26088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26091
+ def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26092
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
26093
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
26094
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
26095
+ command.params['project'] = project unless project.nil?
26096
+ command.params['region'] = region unless region.nil?
26097
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
26098
+ command.query['fields'] = fields unless fields.nil?
26099
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26100
+ command.query['userIp'] = user_ip unless user_ip.nil?
26101
+ execute_or_queue_command(command, &block)
26102
+ end
26103
+
26104
+ # Creates a network endpoint group in the specified project using the parameters
26105
+ # that are included in the request.
26106
+ # @param [String] project
26107
+ # Project ID for this request.
26108
+ # @param [String] region
26109
+ # The name of the region where you want to create the network endpoint group. It
26110
+ # should comply with RFC1035.
26111
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
26112
+ # @param [String] request_id
26113
+ # An optional request ID to identify requests. Specify a unique request ID so
26114
+ # that if you must retry your request, the server will know to ignore the
26115
+ # request if it has already been completed.
26116
+ # For example, consider a situation where you make an initial request and the
26117
+ # request times out. If you make the request again with the same request ID, the
26118
+ # server can check if original operation with the same request ID was received,
26119
+ # and if so, will ignore the second request. This prevents clients from
26120
+ # accidentally creating duplicate commitments.
26121
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26122
+ # supported (00000000-0000-0000-0000-000000000000).
26123
+ # @param [String] fields
26124
+ # Selector specifying which fields to include in a partial response.
26125
+ # @param [String] quota_user
26126
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26127
+ # characters.
26128
+ # @param [String] user_ip
26129
+ # Deprecated. Please use quotaUser instead.
26130
+ # @param [Google::Apis::RequestOptions] options
26131
+ # Request-specific options
26132
+ #
26133
+ # @yield [result, err] Result & error if block supplied
26134
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26135
+ # @yieldparam err [StandardError] error object if request failed
26136
+ #
26137
+ # @return [Google::Apis::ComputeAlpha::Operation]
26138
+ #
26139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26142
+ def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26143
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
26144
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
26145
+ command.request_object = network_endpoint_group_object
26146
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26147
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26148
+ command.params['project'] = project unless project.nil?
26149
+ command.params['region'] = region unless region.nil?
26150
+ command.query['requestId'] = request_id unless request_id.nil?
26151
+ command.query['fields'] = fields unless fields.nil?
26152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26153
+ command.query['userIp'] = user_ip unless user_ip.nil?
26154
+ execute_or_queue_command(command, &block)
26155
+ end
26156
+
26157
+ # Retrieves the list of regional network endpoint groups available to the
26158
+ # specified project in the given region.
26159
+ # @param [String] project
26160
+ # Project ID for this request.
26161
+ # @param [String] region
26162
+ # The name of the region where the network endpoint group is located. It should
26163
+ # comply with RFC1035.
26164
+ # @param [String] filter
26165
+ # A filter expression that filters resources listed in the response. The
26166
+ # expression must specify the field name, a comparison operator, and the value
26167
+ # that you want to use for filtering. The value must be a string, a number, or a
26168
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
26169
+ # For example, if you are filtering Compute Engine instances, you can exclude
26170
+ # instances named `example-instance` by specifying `name != example-instance`.
26171
+ # You can also filter nested fields. For example, you could specify `scheduling.
26172
+ # automaticRestart = false` to include instances only if they are not scheduled
26173
+ # for automatic restarts. You can use filtering on nested fields to filter based
26174
+ # on resource labels.
26175
+ # To filter on multiple expressions, provide each separate expression within
26176
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
26177
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
26178
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
26179
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
26180
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
26181
+ # @param [Fixnum] max_results
26182
+ # The maximum number of results per page that should be returned. If the number
26183
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26184
+ # nextPageToken` that can be used to get the next page of results in subsequent
26185
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26186
+ # @param [String] order_by
26187
+ # Sorts list results by a certain order. By default, results are returned in
26188
+ # alphanumerical order based on the resource name.
26189
+ # You can also sort results in descending order based on the creation timestamp
26190
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
26191
+ # creationTimestamp` field in reverse chronological order (newest result first).
26192
+ # Use this to sort resources like operations so that the newest operation is
26193
+ # returned first.
26194
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26195
+ # @param [String] page_token
26196
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26197
+ # by a previous list request to get the next page of results.
26198
+ # @param [Boolean] return_partial_success
26199
+ # Opt-in for partial success behavior which provides partial results in case of
26200
+ # failure. The default value is false and the logic is the same as today.
26201
+ # @param [String] fields
26202
+ # Selector specifying which fields to include in a partial response.
26203
+ # @param [String] quota_user
26204
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26205
+ # characters.
26206
+ # @param [String] user_ip
26207
+ # Deprecated. Please use quotaUser instead.
26208
+ # @param [Google::Apis::RequestOptions] options
26209
+ # Request-specific options
26210
+ #
26211
+ # @yield [result, err] Result & error if block supplied
26212
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
26213
+ # @yieldparam err [StandardError] error object if request failed
26214
+ #
26215
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
26216
+ #
26217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26220
+ def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26221
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
26222
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
26223
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
26224
+ command.params['project'] = project unless project.nil?
26225
+ command.params['region'] = region unless region.nil?
26226
+ command.query['filter'] = filter unless filter.nil?
26227
+ command.query['maxResults'] = max_results unless max_results.nil?
26228
+ command.query['orderBy'] = order_by unless order_by.nil?
26229
+ command.query['pageToken'] = page_token unless page_token.nil?
26230
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26231
+ command.query['fields'] = fields unless fields.nil?
26232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26233
+ command.query['userIp'] = user_ip unless user_ip.nil?
26234
+ execute_or_queue_command(command, &block)
26235
+ end
26236
+
26237
+ # Deletes the specified NotificationEndpoint in the given region
26238
+ # @param [String] project
26239
+ # Project ID for this request.
26240
+ # @param [String] region
26241
+ # Name of the region scoping this request.
26242
+ # @param [String] notification_endpoint
26243
+ # Name of the NotificationEndpoint resource to delete.
26244
+ # @param [String] request_id
26245
+ # An optional request ID to identify requests. Specify a unique request ID so
26246
+ # that if you must retry your request, the server will know to ignore the
26247
+ # request if it has already been completed.
26248
+ # For example, consider a situation where you make an initial request and the
26249
+ # request times out. If you make the request again with the same request ID, the
26250
+ # server can check if original operation with the same request ID was received,
26251
+ # and if so, will ignore the second request. This prevents clients from
26252
+ # accidentally creating duplicate commitments.
26253
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26254
+ # supported (00000000-0000-0000-0000-000000000000).
26255
+ # @param [String] fields
26256
+ # Selector specifying which fields to include in a partial response.
26257
+ # @param [String] quota_user
26258
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26259
+ # characters.
26260
+ # @param [String] user_ip
26261
+ # Deprecated. Please use quotaUser instead.
26262
+ # @param [Google::Apis::RequestOptions] options
26263
+ # Request-specific options
26264
+ #
26265
+ # @yield [result, err] Result & error if block supplied
26266
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26267
+ # @yieldparam err [StandardError] error object if request failed
26268
+ #
26269
+ # @return [Google::Apis::ComputeAlpha::Operation]
26270
+ #
26271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26274
+ def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26275
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
26276
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26277
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26278
+ command.params['project'] = project unless project.nil?
26279
+ command.params['region'] = region unless region.nil?
26280
+ command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
26281
+ command.query['requestId'] = request_id unless request_id.nil?
26282
+ command.query['fields'] = fields unless fields.nil?
26283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26284
+ command.query['userIp'] = user_ip unless user_ip.nil?
26285
+ execute_or_queue_command(command, &block)
26286
+ end
26287
+
26288
+ # Returns the specified NotificationEndpoint resource in the given region.
26289
+ # @param [String] project
26290
+ # Project ID for this request.
26291
+ # @param [String] region
26292
+ # Name of the region scoping this request.
26293
+ # @param [String] notification_endpoint
26294
+ # Name of the NotificationEndpoint resource to return.
26295
+ # @param [String] fields
26296
+ # Selector specifying which fields to include in a partial response.
26297
+ # @param [String] quota_user
26298
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26299
+ # characters.
26300
+ # @param [String] user_ip
26301
+ # Deprecated. Please use quotaUser instead.
26302
+ # @param [Google::Apis::RequestOptions] options
26303
+ # Request-specific options
26304
+ #
26305
+ # @yield [result, err] Result & error if block supplied
26306
+ # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
26307
+ # @yieldparam err [StandardError] error object if request failed
26308
+ #
26309
+ # @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
26310
+ #
26311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26314
+ def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26315
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
26316
+ command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
26317
+ command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
26318
+ command.params['project'] = project unless project.nil?
26319
+ command.params['region'] = region unless region.nil?
26320
+ command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
26321
+ command.query['fields'] = fields unless fields.nil?
26322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26323
+ command.query['userIp'] = user_ip unless user_ip.nil?
26324
+ execute_or_queue_command(command, &block)
26325
+ end
26326
+
26327
+ # Create a NotificationEndpoint in the specified project in the given region
26328
+ # using the parameters that are included in the request.
26329
+ # @param [String] project
26330
+ # Project ID for this request.
26331
+ # @param [String] region
26332
+ # Name of the region scoping this request.
26333
+ # @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
26334
+ # @param [String] request_id
26335
+ # An optional request ID to identify requests. Specify a unique request ID so
26336
+ # that if you must retry your request, the server will know to ignore the
26337
+ # request if it has already been completed.
26338
+ # For example, consider a situation where you make an initial request and the
26339
+ # request times out. If you make the request again with the same request ID, the
26340
+ # server can check if original operation with the same request ID was received,
26341
+ # and if so, will ignore the second request. This prevents clients from
26342
+ # accidentally creating duplicate commitments.
26343
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26344
+ # supported (00000000-0000-0000-0000-000000000000).
26345
+ # @param [String] fields
26346
+ # Selector specifying which fields to include in a partial response.
26347
+ # @param [String] quota_user
26348
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26349
+ # characters.
26350
+ # @param [String] user_ip
26351
+ # Deprecated. Please use quotaUser instead.
26352
+ # @param [Google::Apis::RequestOptions] options
26353
+ # Request-specific options
26354
+ #
26355
+ # @yield [result, err] Result & error if block supplied
26356
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26357
+ # @yieldparam err [StandardError] error object if request failed
26358
+ #
26359
+ # @return [Google::Apis::ComputeAlpha::Operation]
26360
+ #
26361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26364
+ def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26365
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
26366
+ command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
26367
+ command.request_object = notification_endpoint_object
26368
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26369
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26370
+ command.params['project'] = project unless project.nil?
26371
+ command.params['region'] = region unless region.nil?
26372
+ command.query['requestId'] = request_id unless request_id.nil?
26373
+ command.query['fields'] = fields unless fields.nil?
26374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26375
+ command.query['userIp'] = user_ip unless user_ip.nil?
26376
+ execute_or_queue_command(command, &block)
26377
+ end
26378
+
26379
+ # Lists the NotificationEndpoints for a project in the given region.
26380
+ # @param [String] project
26381
+ # Project ID for this request.
26382
+ # @param [String] region
26383
+ # Name of the region scoping this request.
26384
+ # @param [String] filter
26385
+ # A filter expression that filters resources listed in the response. The
26386
+ # expression must specify the field name, a comparison operator, and the value
26387
+ # that you want to use for filtering. The value must be a string, a number, or a
26388
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
26389
+ # For example, if you are filtering Compute Engine instances, you can exclude
26390
+ # instances named `example-instance` by specifying `name != example-instance`.
26391
+ # You can also filter nested fields. For example, you could specify `scheduling.
26392
+ # automaticRestart = false` to include instances only if they are not scheduled
26393
+ # for automatic restarts. You can use filtering on nested fields to filter based
26394
+ # on resource labels.
26395
+ # To filter on multiple expressions, provide each separate expression within
26396
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
26397
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
26398
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
26399
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
26400
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
26401
+ # @param [Fixnum] max_results
26402
+ # The maximum number of results per page that should be returned. If the number
26403
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26404
+ # nextPageToken` that can be used to get the next page of results in subsequent
26405
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26406
+ # @param [String] order_by
26407
+ # Sorts list results by a certain order. By default, results are returned in
26408
+ # alphanumerical order based on the resource name.
26409
+ # You can also sort results in descending order based on the creation timestamp
26410
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
26411
+ # creationTimestamp` field in reverse chronological order (newest result first).
26412
+ # Use this to sort resources like operations so that the newest operation is
26413
+ # returned first.
26414
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26415
+ # @param [String] page_token
26416
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26417
+ # by a previous list request to get the next page of results.
26418
+ # @param [Boolean] return_partial_success
26419
+ # Opt-in for partial success behavior which provides partial results in case of
26420
+ # failure. The default value is false and the logic is the same as today.
26421
+ # @param [String] fields
26422
+ # Selector specifying which fields to include in a partial response.
26423
+ # @param [String] quota_user
26424
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26425
+ # characters.
26426
+ # @param [String] user_ip
26427
+ # Deprecated. Please use quotaUser instead.
26428
+ # @param [Google::Apis::RequestOptions] options
26429
+ # Request-specific options
26430
+ #
26431
+ # @yield [result, err] Result & error if block supplied
26432
+ # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
26433
+ # @yieldparam err [StandardError] error object if request failed
26434
+ #
26435
+ # @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
26436
+ #
26437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26440
+ def list_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26441
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
26442
+ command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
26443
+ command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
26444
+ command.params['project'] = project unless project.nil?
26445
+ command.params['region'] = region unless region.nil?
26446
+ command.query['filter'] = filter unless filter.nil?
26447
+ command.query['maxResults'] = max_results unless max_results.nil?
26448
+ command.query['orderBy'] = order_by unless order_by.nil?
26449
+ command.query['pageToken'] = page_token unless page_token.nil?
26450
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26451
+ command.query['fields'] = fields unless fields.nil?
26452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26453
+ command.query['userIp'] = user_ip unless user_ip.nil?
26454
+ execute_or_queue_command(command, &block)
26455
+ end
26456
+
26044
26457
  # Returns permissions that a caller has on the specified resource.
26045
26458
  # @param [String] project
26046
26459
  # Project ID for this request.
@@ -30632,6 +31045,55 @@ module Google
30632
31045
  execute_or_queue_command(command, &block)
30633
31046
  end
30634
31047
 
31048
+ # Creates a snapshot in the specified project using the data included in the
31049
+ # request.
31050
+ # @param [String] project
31051
+ # Project ID for this request.
31052
+ # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
31053
+ # @param [String] request_id
31054
+ # An optional request ID to identify requests. Specify a unique request ID so
31055
+ # that if you must retry your request, the server will know to ignore the
31056
+ # request if it has already been completed.
31057
+ # For example, consider a situation where you make an initial request and the
31058
+ # request times out. If you make the request again with the same request ID, the
31059
+ # server can check if original operation with the same request ID was received,
31060
+ # and if so, will ignore the second request. This prevents clients from
31061
+ # accidentally creating duplicate commitments.
31062
+ # The request ID must be a valid UUID with the exception that zero UUID is not
31063
+ # supported (00000000-0000-0000-0000-000000000000).
31064
+ # @param [String] fields
31065
+ # Selector specifying which fields to include in a partial response.
31066
+ # @param [String] quota_user
31067
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
31068
+ # characters.
31069
+ # @param [String] user_ip
31070
+ # Deprecated. Please use quotaUser instead.
31071
+ # @param [Google::Apis::RequestOptions] options
31072
+ # Request-specific options
31073
+ #
31074
+ # @yield [result, err] Result & error if block supplied
31075
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31076
+ # @yieldparam err [StandardError] error object if request failed
31077
+ #
31078
+ # @return [Google::Apis::ComputeAlpha::Operation]
31079
+ #
31080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31083
+ def insert_snapshot(project, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31084
+ command = make_simple_command(:post, 'projects/{project}/global/snapshots', options)
31085
+ command.request_representation = Google::Apis::ComputeAlpha::Snapshot::Representation
31086
+ command.request_object = snapshot_object
31087
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
31088
+ command.response_class = Google::Apis::ComputeAlpha::Operation
31089
+ command.params['project'] = project unless project.nil?
31090
+ command.query['requestId'] = request_id unless request_id.nil?
31091
+ command.query['fields'] = fields unless fields.nil?
31092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31093
+ command.query['userIp'] = user_ip unless user_ip.nil?
31094
+ execute_or_queue_command(command, &block)
31095
+ end
31096
+
30635
31097
  # Retrieves the list of Snapshot resources contained within the specified
30636
31098
  # project.
30637
31099
  # @param [String] project
@@ -32814,12 +33276,14 @@ module Google
32814
33276
  execute_or_queue_command(command, &block)
32815
33277
  end
32816
33278
 
32817
- # Changes the URL map for TargetHttpProxy.
33279
+ # Patches the specified TargetHttpProxy resource with the data included in the
33280
+ # request. This method supports PATCH semantics and uses JSON merge patch format
33281
+ # and processing rules. (== suppress_warning http-rest-shadowed ==)
32818
33282
  # @param [String] project
32819
33283
  # Project ID for this request.
32820
33284
  # @param [String] target_http_proxy
32821
- # Name of the TargetHttpProxy to set a URL map for.
32822
- # @param [Google::Apis::ComputeAlpha::UrlMapReference] url_map_reference_object
33285
+ # Name of the TargetHttpProxy resource to patch.
33286
+ # @param [Google::Apis::ComputeAlpha::TargetHttpProxy] target_http_proxy_object
32823
33287
  # @param [String] request_id
32824
33288
  # An optional request ID to identify requests. Specify a unique request ID so
32825
33289
  # that if you must retry your request, the server will know to ignore the
@@ -32850,10 +33314,10 @@ module Google
32850
33314
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32851
33315
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32852
33316
  # @raise [Google::Apis::AuthorizationError] Authorization is required
32853
- def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32854
- command = make_simple_command(:post, 'projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options)
32855
- command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation
32856
- command.request_object = url_map_reference_object
33317
+ def patch_target_http_proxy(project, target_http_proxy, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33318
+ command = make_simple_command(:patch, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options)
33319
+ command.request_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation
33320
+ command.request_object = target_http_proxy_object
32857
33321
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32858
33322
  command.response_class = Google::Apis::ComputeAlpha::Operation
32859
33323
  command.params['project'] = project unless project.nil?
@@ -32865,134 +33329,12 @@ module Google
32865
33329
  execute_or_queue_command(command, &block)
32866
33330
  end
32867
33331
 
32868
- # Returns permissions that a caller has on the specified resource.
32869
- # @param [String] project
32870
- # Project ID for this request.
32871
- # @param [String] resource
32872
- # Name or id of the resource for this request.
32873
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
32874
- # @param [String] fields
32875
- # Selector specifying which fields to include in a partial response.
32876
- # @param [String] quota_user
32877
- # An opaque string that represents a user for quota purposes. Must not exceed 40
32878
- # characters.
32879
- # @param [String] user_ip
32880
- # Deprecated. Please use quotaUser instead.
32881
- # @param [Google::Apis::RequestOptions] options
32882
- # Request-specific options
32883
- #
32884
- # @yield [result, err] Result & error if block supplied
32885
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
32886
- # @yieldparam err [StandardError] error object if request failed
32887
- #
32888
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
32889
- #
32890
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32891
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32892
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32893
- def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32894
- command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions', options)
32895
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
32896
- command.request_object = test_permissions_request_object
32897
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
32898
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
32899
- command.params['project'] = project unless project.nil?
32900
- command.params['resource'] = resource unless resource.nil?
32901
- command.query['fields'] = fields unless fields.nil?
32902
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32903
- command.query['userIp'] = user_ip unless user_ip.nil?
32904
- execute_or_queue_command(command, &block)
32905
- end
32906
-
32907
- # Retrieves the list of all TargetHttpsProxy resources, regional and global,
32908
- # available to the specified project.
32909
- # @param [String] project
32910
- # Name of the project scoping this request.
32911
- # @param [String] filter
32912
- # A filter expression that filters resources listed in the response. The
32913
- # expression must specify the field name, a comparison operator, and the value
32914
- # that you want to use for filtering. The value must be a string, a number, or a
32915
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
32916
- # For example, if you are filtering Compute Engine instances, you can exclude
32917
- # instances named `example-instance` by specifying `name != example-instance`.
32918
- # You can also filter nested fields. For example, you could specify `scheduling.
32919
- # automaticRestart = false` to include instances only if they are not scheduled
32920
- # for automatic restarts. You can use filtering on nested fields to filter based
32921
- # on resource labels.
32922
- # To filter on multiple expressions, provide each separate expression within
32923
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
32924
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
32925
- # expression. However, you can include `AND` and `OR` expressions explicitly.
32926
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
32927
- # Broadwell") AND (scheduling.automaticRestart = true) ```
32928
- # @param [Boolean] include_all_scopes
32929
- # Indicates whether every visible scope for each scope type (zone, region,
32930
- # global) should be included in the response. For new resource types added after
32931
- # this field, the flag has no effect as new resource types will always include
32932
- # every visible scope for each scope type in response. For resource types which
32933
- # predate this field, if this flag is omitted or false, only scopes of the scope
32934
- # types where the resource type is expected to be found will be included.
32935
- # @param [Fixnum] max_results
32936
- # The maximum number of results per page that should be returned. If the number
32937
- # of available results is larger than `maxResults`, Compute Engine returns a `
32938
- # nextPageToken` that can be used to get the next page of results in subsequent
32939
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
32940
- # @param [String] order_by
32941
- # Sorts list results by a certain order. By default, results are returned in
32942
- # alphanumerical order based on the resource name.
32943
- # You can also sort results in descending order based on the creation timestamp
32944
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
32945
- # creationTimestamp` field in reverse chronological order (newest result first).
32946
- # Use this to sort resources like operations so that the newest operation is
32947
- # returned first.
32948
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
32949
- # @param [String] page_token
32950
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
32951
- # by a previous list request to get the next page of results.
32952
- # @param [Boolean] return_partial_success
32953
- # Opt-in for partial success behavior which provides partial results in case of
32954
- # failure. The default value is false and the logic is the same as today.
32955
- # @param [String] fields
32956
- # Selector specifying which fields to include in a partial response.
32957
- # @param [String] quota_user
32958
- # An opaque string that represents a user for quota purposes. Must not exceed 40
32959
- # characters.
32960
- # @param [String] user_ip
32961
- # Deprecated. Please use quotaUser instead.
32962
- # @param [Google::Apis::RequestOptions] options
32963
- # Request-specific options
32964
- #
32965
- # @yield [result, err] Result & error if block supplied
32966
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList] parsed result object
32967
- # @yieldparam err [StandardError] error object if request failed
32968
- #
32969
- # @return [Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList]
32970
- #
32971
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32972
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32973
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32974
- def aggregated_target_https_proxy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32975
- command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpsProxies', options)
32976
- command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList::Representation
32977
- command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList
32978
- command.params['project'] = project unless project.nil?
32979
- command.query['filter'] = filter unless filter.nil?
32980
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
32981
- command.query['maxResults'] = max_results unless max_results.nil?
32982
- command.query['orderBy'] = order_by unless order_by.nil?
32983
- command.query['pageToken'] = page_token unless page_token.nil?
32984
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
32985
- command.query['fields'] = fields unless fields.nil?
32986
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32987
- command.query['userIp'] = user_ip unless user_ip.nil?
32988
- execute_or_queue_command(command, &block)
32989
- end
32990
-
32991
- # Deletes the specified TargetHttpsProxy resource.
33332
+ # Changes the URL map for TargetHttpProxy.
32992
33333
  # @param [String] project
32993
33334
  # Project ID for this request.
32994
- # @param [String] target_https_proxy
32995
- # Name of the TargetHttpsProxy resource to delete.
33335
+ # @param [String] target_http_proxy
33336
+ # Name of the TargetHttpProxy to set a URL map for.
33337
+ # @param [Google::Apis::ComputeAlpha::UrlMapReference] url_map_reference_object
32996
33338
  # @param [String] request_id
32997
33339
  # An optional request ID to identify requests. Specify a unique request ID so
32998
33340
  # that if you must retry your request, the server will know to ignore the
@@ -33023,12 +33365,14 @@ module Google
33023
33365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33024
33366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33025
33367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33026
- def delete_target_https_proxy(project, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33027
- command = make_simple_command(:delete, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
33368
+ def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33369
+ command = make_simple_command(:post, 'projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options)
33370
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation
33371
+ command.request_object = url_map_reference_object
33028
33372
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33029
33373
  command.response_class = Google::Apis::ComputeAlpha::Operation
33030
33374
  command.params['project'] = project unless project.nil?
33031
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
33375
+ command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
33032
33376
  command.query['requestId'] = request_id unless request_id.nil?
33033
33377
  command.query['fields'] = fields unless fields.nil?
33034
33378
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -33036,59 +33380,12 @@ module Google
33036
33380
  execute_or_queue_command(command, &block)
33037
33381
  end
33038
33382
 
33039
- # Returns the specified TargetHttpsProxy resource. Gets a list of available
33040
- # target HTTPS proxies by making a list() request.
33041
- # @param [String] project
33042
- # Project ID for this request.
33043
- # @param [String] target_https_proxy
33044
- # Name of the TargetHttpsProxy resource to return.
33045
- # @param [String] fields
33046
- # Selector specifying which fields to include in a partial response.
33047
- # @param [String] quota_user
33048
- # An opaque string that represents a user for quota purposes. Must not exceed 40
33049
- # characters.
33050
- # @param [String] user_ip
33051
- # Deprecated. Please use quotaUser instead.
33052
- # @param [Google::Apis::RequestOptions] options
33053
- # Request-specific options
33054
- #
33055
- # @yield [result, err] Result & error if block supplied
33056
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetHttpsProxy] parsed result object
33057
- # @yieldparam err [StandardError] error object if request failed
33058
- #
33059
- # @return [Google::Apis::ComputeAlpha::TargetHttpsProxy]
33060
- #
33061
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33062
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33063
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33064
- def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33065
- command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
33066
- command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation
33067
- command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxy
33068
- command.params['project'] = project unless project.nil?
33069
- command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
33070
- command.query['fields'] = fields unless fields.nil?
33071
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33072
- command.query['userIp'] = user_ip unless user_ip.nil?
33073
- execute_or_queue_command(command, &block)
33074
- end
33075
-
33076
- # Creates a TargetHttpsProxy resource in the specified project using the data
33077
- # included in the request.
33383
+ # Returns permissions that a caller has on the specified resource.
33078
33384
  # @param [String] project
33079
33385
  # Project ID for this request.
33080
- # @param [Google::Apis::ComputeAlpha::TargetHttpsProxy] target_https_proxy_object
33081
- # @param [String] request_id
33082
- # An optional request ID to identify requests. Specify a unique request ID so
33083
- # that if you must retry your request, the server will know to ignore the
33084
- # request if it has already been completed.
33085
- # For example, consider a situation where you make an initial request and the
33086
- # request times out. If you make the request again with the same request ID, the
33087
- # server can check if original operation with the same request ID was received,
33088
- # and if so, will ignore the second request. This prevents clients from
33089
- # accidentally creating duplicate commitments.
33090
- # The request ID must be a valid UUID with the exception that zero UUID is not
33091
- # supported (00000000-0000-0000-0000-000000000000).
33386
+ # @param [String] resource
33387
+ # Name or id of the resource for this request.
33388
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
33092
33389
  # @param [String] fields
33093
33390
  # Selector specifying which fields to include in a partial response.
33094
33391
  # @param [String] quota_user
@@ -33100,32 +33397,250 @@ module Google
33100
33397
  # Request-specific options
33101
33398
  #
33102
33399
  # @yield [result, err] Result & error if block supplied
33103
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33400
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
33104
33401
  # @yieldparam err [StandardError] error object if request failed
33105
33402
  #
33106
- # @return [Google::Apis::ComputeAlpha::Operation]
33403
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
33107
33404
  #
33108
33405
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33109
33406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33110
33407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33111
- def insert_target_https_proxy(project, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33112
- command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies', options)
33113
- command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation
33114
- command.request_object = target_https_proxy_object
33115
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33116
- command.response_class = Google::Apis::ComputeAlpha::Operation
33408
+ def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33409
+ command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions', options)
33410
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
33411
+ command.request_object = test_permissions_request_object
33412
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
33413
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
33117
33414
  command.params['project'] = project unless project.nil?
33118
- command.query['requestId'] = request_id unless request_id.nil?
33415
+ command.params['resource'] = resource unless resource.nil?
33119
33416
  command.query['fields'] = fields unless fields.nil?
33120
33417
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33121
33418
  command.query['userIp'] = user_ip unless user_ip.nil?
33122
33419
  execute_or_queue_command(command, &block)
33123
33420
  end
33124
33421
 
33125
- # Retrieves the list of TargetHttpsProxy resources available to the specified
33126
- # project.
33422
+ # Retrieves the list of all TargetHttpsProxy resources, regional and global,
33423
+ # available to the specified project.
33127
33424
  # @param [String] project
33128
- # Project ID for this request.
33425
+ # Name of the project scoping this request.
33426
+ # @param [String] filter
33427
+ # A filter expression that filters resources listed in the response. The
33428
+ # expression must specify the field name, a comparison operator, and the value
33429
+ # that you want to use for filtering. The value must be a string, a number, or a
33430
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
33431
+ # For example, if you are filtering Compute Engine instances, you can exclude
33432
+ # instances named `example-instance` by specifying `name != example-instance`.
33433
+ # You can also filter nested fields. For example, you could specify `scheduling.
33434
+ # automaticRestart = false` to include instances only if they are not scheduled
33435
+ # for automatic restarts. You can use filtering on nested fields to filter based
33436
+ # on resource labels.
33437
+ # To filter on multiple expressions, provide each separate expression within
33438
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
33439
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
33440
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
33441
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
33442
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
33443
+ # @param [Boolean] include_all_scopes
33444
+ # Indicates whether every visible scope for each scope type (zone, region,
33445
+ # global) should be included in the response. For new resource types added after
33446
+ # this field, the flag has no effect as new resource types will always include
33447
+ # every visible scope for each scope type in response. For resource types which
33448
+ # predate this field, if this flag is omitted or false, only scopes of the scope
33449
+ # types where the resource type is expected to be found will be included.
33450
+ # @param [Fixnum] max_results
33451
+ # The maximum number of results per page that should be returned. If the number
33452
+ # of available results is larger than `maxResults`, Compute Engine returns a `
33453
+ # nextPageToken` that can be used to get the next page of results in subsequent
33454
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33455
+ # @param [String] order_by
33456
+ # Sorts list results by a certain order. By default, results are returned in
33457
+ # alphanumerical order based on the resource name.
33458
+ # You can also sort results in descending order based on the creation timestamp
33459
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
33460
+ # creationTimestamp` field in reverse chronological order (newest result first).
33461
+ # Use this to sort resources like operations so that the newest operation is
33462
+ # returned first.
33463
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33464
+ # @param [String] page_token
33465
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33466
+ # by a previous list request to get the next page of results.
33467
+ # @param [Boolean] return_partial_success
33468
+ # Opt-in for partial success behavior which provides partial results in case of
33469
+ # failure. The default value is false and the logic is the same as today.
33470
+ # @param [String] fields
33471
+ # Selector specifying which fields to include in a partial response.
33472
+ # @param [String] quota_user
33473
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33474
+ # characters.
33475
+ # @param [String] user_ip
33476
+ # Deprecated. Please use quotaUser instead.
33477
+ # @param [Google::Apis::RequestOptions] options
33478
+ # Request-specific options
33479
+ #
33480
+ # @yield [result, err] Result & error if block supplied
33481
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList] parsed result object
33482
+ # @yieldparam err [StandardError] error object if request failed
33483
+ #
33484
+ # @return [Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList]
33485
+ #
33486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33489
+ def aggregated_target_https_proxy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33490
+ command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpsProxies', options)
33491
+ command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList::Representation
33492
+ command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList
33493
+ command.params['project'] = project unless project.nil?
33494
+ command.query['filter'] = filter unless filter.nil?
33495
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
33496
+ command.query['maxResults'] = max_results unless max_results.nil?
33497
+ command.query['orderBy'] = order_by unless order_by.nil?
33498
+ command.query['pageToken'] = page_token unless page_token.nil?
33499
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33500
+ command.query['fields'] = fields unless fields.nil?
33501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33502
+ command.query['userIp'] = user_ip unless user_ip.nil?
33503
+ execute_or_queue_command(command, &block)
33504
+ end
33505
+
33506
+ # Deletes the specified TargetHttpsProxy resource.
33507
+ # @param [String] project
33508
+ # Project ID for this request.
33509
+ # @param [String] target_https_proxy
33510
+ # Name of the TargetHttpsProxy resource to delete.
33511
+ # @param [String] request_id
33512
+ # An optional request ID to identify requests. Specify a unique request ID so
33513
+ # that if you must retry your request, the server will know to ignore the
33514
+ # request if it has already been completed.
33515
+ # For example, consider a situation where you make an initial request and the
33516
+ # request times out. If you make the request again with the same request ID, the
33517
+ # server can check if original operation with the same request ID was received,
33518
+ # and if so, will ignore the second request. This prevents clients from
33519
+ # accidentally creating duplicate commitments.
33520
+ # The request ID must be a valid UUID with the exception that zero UUID is not
33521
+ # supported (00000000-0000-0000-0000-000000000000).
33522
+ # @param [String] fields
33523
+ # Selector specifying which fields to include in a partial response.
33524
+ # @param [String] quota_user
33525
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33526
+ # characters.
33527
+ # @param [String] user_ip
33528
+ # Deprecated. Please use quotaUser instead.
33529
+ # @param [Google::Apis::RequestOptions] options
33530
+ # Request-specific options
33531
+ #
33532
+ # @yield [result, err] Result & error if block supplied
33533
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33534
+ # @yieldparam err [StandardError] error object if request failed
33535
+ #
33536
+ # @return [Google::Apis::ComputeAlpha::Operation]
33537
+ #
33538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33541
+ def delete_target_https_proxy(project, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33542
+ command = make_simple_command(:delete, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
33543
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33544
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33545
+ command.params['project'] = project unless project.nil?
33546
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
33547
+ command.query['requestId'] = request_id unless request_id.nil?
33548
+ command.query['fields'] = fields unless fields.nil?
33549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33550
+ command.query['userIp'] = user_ip unless user_ip.nil?
33551
+ execute_or_queue_command(command, &block)
33552
+ end
33553
+
33554
+ # Returns the specified TargetHttpsProxy resource. Gets a list of available
33555
+ # target HTTPS proxies by making a list() request.
33556
+ # @param [String] project
33557
+ # Project ID for this request.
33558
+ # @param [String] target_https_proxy
33559
+ # Name of the TargetHttpsProxy resource to return.
33560
+ # @param [String] fields
33561
+ # Selector specifying which fields to include in a partial response.
33562
+ # @param [String] quota_user
33563
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33564
+ # characters.
33565
+ # @param [String] user_ip
33566
+ # Deprecated. Please use quotaUser instead.
33567
+ # @param [Google::Apis::RequestOptions] options
33568
+ # Request-specific options
33569
+ #
33570
+ # @yield [result, err] Result & error if block supplied
33571
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetHttpsProxy] parsed result object
33572
+ # @yieldparam err [StandardError] error object if request failed
33573
+ #
33574
+ # @return [Google::Apis::ComputeAlpha::TargetHttpsProxy]
33575
+ #
33576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33579
+ def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33580
+ command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
33581
+ command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation
33582
+ command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxy
33583
+ command.params['project'] = project unless project.nil?
33584
+ command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
33585
+ command.query['fields'] = fields unless fields.nil?
33586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33587
+ command.query['userIp'] = user_ip unless user_ip.nil?
33588
+ execute_or_queue_command(command, &block)
33589
+ end
33590
+
33591
+ # Creates a TargetHttpsProxy resource in the specified project using the data
33592
+ # included in the request.
33593
+ # @param [String] project
33594
+ # Project ID for this request.
33595
+ # @param [Google::Apis::ComputeAlpha::TargetHttpsProxy] target_https_proxy_object
33596
+ # @param [String] request_id
33597
+ # An optional request ID to identify requests. Specify a unique request ID so
33598
+ # that if you must retry your request, the server will know to ignore the
33599
+ # request if it has already been completed.
33600
+ # For example, consider a situation where you make an initial request and the
33601
+ # request times out. If you make the request again with the same request ID, the
33602
+ # server can check if original operation with the same request ID was received,
33603
+ # and if so, will ignore the second request. This prevents clients from
33604
+ # accidentally creating duplicate commitments.
33605
+ # The request ID must be a valid UUID with the exception that zero UUID is not
33606
+ # supported (00000000-0000-0000-0000-000000000000).
33607
+ # @param [String] fields
33608
+ # Selector specifying which fields to include in a partial response.
33609
+ # @param [String] quota_user
33610
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33611
+ # characters.
33612
+ # @param [String] user_ip
33613
+ # Deprecated. Please use quotaUser instead.
33614
+ # @param [Google::Apis::RequestOptions] options
33615
+ # Request-specific options
33616
+ #
33617
+ # @yield [result, err] Result & error if block supplied
33618
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33619
+ # @yieldparam err [StandardError] error object if request failed
33620
+ #
33621
+ # @return [Google::Apis::ComputeAlpha::Operation]
33622
+ #
33623
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33624
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33625
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33626
+ def insert_target_https_proxy(project, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33627
+ command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies', options)
33628
+ command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation
33629
+ command.request_object = target_https_proxy_object
33630
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33631
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33632
+ command.params['project'] = project unless project.nil?
33633
+ command.query['requestId'] = request_id unless request_id.nil?
33634
+ command.query['fields'] = fields unless fields.nil?
33635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33636
+ command.query['userIp'] = user_ip unless user_ip.nil?
33637
+ execute_or_queue_command(command, &block)
33638
+ end
33639
+
33640
+ # Retrieves the list of TargetHttpsProxy resources available to the specified
33641
+ # project.
33642
+ # @param [String] project
33643
+ # Project ID for this request.
33129
33644
  # @param [String] filter
33130
33645
  # A filter expression that filters resources listed in the response. The
33131
33646
  # expression must specify the field name, a comparison operator, and the value
@@ -36090,19 +36605,545 @@ module Google
36090
36605
  # Request-specific options
36091
36606
  #
36092
36607
  # @yield [result, err] Result & error if block supplied
36093
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapList] parsed result object
36608
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapList] parsed result object
36609
+ # @yieldparam err [StandardError] error object if request failed
36610
+ #
36611
+ # @return [Google::Apis::ComputeAlpha::UrlMapList]
36612
+ #
36613
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36614
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36615
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36616
+ def list_url_maps(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36617
+ command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options)
36618
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation
36619
+ command.response_class = Google::Apis::ComputeAlpha::UrlMapList
36620
+ command.params['project'] = project unless project.nil?
36621
+ command.query['filter'] = filter unless filter.nil?
36622
+ command.query['maxResults'] = max_results unless max_results.nil?
36623
+ command.query['orderBy'] = order_by unless order_by.nil?
36624
+ command.query['pageToken'] = page_token unless page_token.nil?
36625
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36626
+ command.query['fields'] = fields unless fields.nil?
36627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36628
+ command.query['userIp'] = user_ip unless user_ip.nil?
36629
+ execute_or_queue_command(command, &block)
36630
+ end
36631
+
36632
+ # Patches the specified UrlMap resource with the data included in the request.
36633
+ # This method supports PATCH semantics and uses the JSON merge patch format and
36634
+ # processing rules.
36635
+ # @param [String] project
36636
+ # Project ID for this request.
36637
+ # @param [String] url_map
36638
+ # Name of the UrlMap resource to patch.
36639
+ # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
36640
+ # @param [String] request_id
36641
+ # An optional request ID to identify requests. Specify a unique request ID so
36642
+ # that if you must retry your request, the server will know to ignore the
36643
+ # request if it has already been completed.
36644
+ # For example, consider a situation where you make an initial request and the
36645
+ # request times out. If you make the request again with the same request ID, the
36646
+ # server can check if original operation with the same request ID was received,
36647
+ # and if so, will ignore the second request. This prevents clients from
36648
+ # accidentally creating duplicate commitments.
36649
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36650
+ # supported (00000000-0000-0000-0000-000000000000).
36651
+ # @param [String] fields
36652
+ # Selector specifying which fields to include in a partial response.
36653
+ # @param [String] quota_user
36654
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36655
+ # characters.
36656
+ # @param [String] user_ip
36657
+ # Deprecated. Please use quotaUser instead.
36658
+ # @param [Google::Apis::RequestOptions] options
36659
+ # Request-specific options
36660
+ #
36661
+ # @yield [result, err] Result & error if block supplied
36662
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36663
+ # @yieldparam err [StandardError] error object if request failed
36664
+ #
36665
+ # @return [Google::Apis::ComputeAlpha::Operation]
36666
+ #
36667
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36668
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36669
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36670
+ def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36671
+ command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options)
36672
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36673
+ command.request_object = url_map_object
36674
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36675
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36676
+ command.params['project'] = project unless project.nil?
36677
+ command.params['urlMap'] = url_map unless url_map.nil?
36678
+ command.query['requestId'] = request_id unless request_id.nil?
36679
+ command.query['fields'] = fields unless fields.nil?
36680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36681
+ command.query['userIp'] = user_ip unless user_ip.nil?
36682
+ execute_or_queue_command(command, &block)
36683
+ end
36684
+
36685
+ # Returns permissions that a caller has on the specified resource.
36686
+ # @param [String] project
36687
+ # Project ID for this request.
36688
+ # @param [String] resource
36689
+ # Name or id of the resource for this request.
36690
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
36691
+ # @param [String] fields
36692
+ # Selector specifying which fields to include in a partial response.
36693
+ # @param [String] quota_user
36694
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36695
+ # characters.
36696
+ # @param [String] user_ip
36697
+ # Deprecated. Please use quotaUser instead.
36698
+ # @param [Google::Apis::RequestOptions] options
36699
+ # Request-specific options
36700
+ #
36701
+ # @yield [result, err] Result & error if block supplied
36702
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
36703
+ # @yieldparam err [StandardError] error object if request failed
36704
+ #
36705
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
36706
+ #
36707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36710
+ def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36711
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
36712
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36713
+ command.request_object = test_permissions_request_object
36714
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36715
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36716
+ command.params['project'] = project unless project.nil?
36717
+ command.params['resource'] = resource unless resource.nil?
36718
+ command.query['fields'] = fields unless fields.nil?
36719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36720
+ command.query['userIp'] = user_ip unless user_ip.nil?
36721
+ execute_or_queue_command(command, &block)
36722
+ end
36723
+
36724
+ # Updates the specified UrlMap resource with the data included in the request.
36725
+ # @param [String] project
36726
+ # Project ID for this request.
36727
+ # @param [String] url_map
36728
+ # Name of the UrlMap resource to update.
36729
+ # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
36730
+ # @param [String] request_id
36731
+ # An optional request ID to identify requests. Specify a unique request ID so
36732
+ # that if you must retry your request, the server will know to ignore the
36733
+ # request if it has already been completed.
36734
+ # For example, consider a situation where you make an initial request and the
36735
+ # request times out. If you make the request again with the same request ID, the
36736
+ # server can check if original operation with the same request ID was received,
36737
+ # and if so, will ignore the second request. This prevents clients from
36738
+ # accidentally creating duplicate commitments.
36739
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36740
+ # supported (00000000-0000-0000-0000-000000000000).
36741
+ # @param [String] fields
36742
+ # Selector specifying which fields to include in a partial response.
36743
+ # @param [String] quota_user
36744
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36745
+ # characters.
36746
+ # @param [String] user_ip
36747
+ # Deprecated. Please use quotaUser instead.
36748
+ # @param [Google::Apis::RequestOptions] options
36749
+ # Request-specific options
36750
+ #
36751
+ # @yield [result, err] Result & error if block supplied
36752
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36753
+ # @yieldparam err [StandardError] error object if request failed
36754
+ #
36755
+ # @return [Google::Apis::ComputeAlpha::Operation]
36756
+ #
36757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36760
+ def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36761
+ command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options)
36762
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36763
+ command.request_object = url_map_object
36764
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36765
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36766
+ command.params['project'] = project unless project.nil?
36767
+ command.params['urlMap'] = url_map unless url_map.nil?
36768
+ command.query['requestId'] = request_id unless request_id.nil?
36769
+ command.query['fields'] = fields unless fields.nil?
36770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36771
+ command.query['userIp'] = user_ip unless user_ip.nil?
36772
+ execute_or_queue_command(command, &block)
36773
+ end
36774
+
36775
+ # Runs static validation for the UrlMap. In particular, the tests of the
36776
+ # provided UrlMap will be run. Calling this method does NOT create the UrlMap.
36777
+ # @param [String] project
36778
+ # Project ID for this request.
36779
+ # @param [String] url_map
36780
+ # Name of the UrlMap resource to be validated as.
36781
+ # @param [Google::Apis::ComputeAlpha::UrlMapsValidateRequest] url_maps_validate_request_object
36782
+ # @param [String] fields
36783
+ # Selector specifying which fields to include in a partial response.
36784
+ # @param [String] quota_user
36785
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36786
+ # characters.
36787
+ # @param [String] user_ip
36788
+ # Deprecated. Please use quotaUser instead.
36789
+ # @param [Google::Apis::RequestOptions] options
36790
+ # Request-specific options
36791
+ #
36792
+ # @yield [result, err] Result & error if block supplied
36793
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsValidateResponse] parsed result object
36794
+ # @yieldparam err [StandardError] error object if request failed
36795
+ #
36796
+ # @return [Google::Apis::ComputeAlpha::UrlMapsValidateResponse]
36797
+ #
36798
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36799
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36800
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36801
+ def validate_url_map(project, url_map, url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36802
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options)
36803
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMapsValidateRequest::Representation
36804
+ command.request_object = url_maps_validate_request_object
36805
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation
36806
+ command.response_class = Google::Apis::ComputeAlpha::UrlMapsValidateResponse
36807
+ command.params['project'] = project unless project.nil?
36808
+ command.params['urlMap'] = url_map unless url_map.nil?
36809
+ command.query['fields'] = fields unless fields.nil?
36810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36811
+ command.query['userIp'] = user_ip unless user_ip.nil?
36812
+ execute_or_queue_command(command, &block)
36813
+ end
36814
+
36815
+ # Retrieves an aggregated list of VPN gateways.
36816
+ # @param [String] project
36817
+ # Project ID for this request.
36818
+ # @param [String] filter
36819
+ # A filter expression that filters resources listed in the response. The
36820
+ # expression must specify the field name, a comparison operator, and the value
36821
+ # that you want to use for filtering. The value must be a string, a number, or a
36822
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
36823
+ # For example, if you are filtering Compute Engine instances, you can exclude
36824
+ # instances named `example-instance` by specifying `name != example-instance`.
36825
+ # You can also filter nested fields. For example, you could specify `scheduling.
36826
+ # automaticRestart = false` to include instances only if they are not scheduled
36827
+ # for automatic restarts. You can use filtering on nested fields to filter based
36828
+ # on resource labels.
36829
+ # To filter on multiple expressions, provide each separate expression within
36830
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
36831
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
36832
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
36833
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
36834
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
36835
+ # @param [Boolean] include_all_scopes
36836
+ # Indicates whether every visible scope for each scope type (zone, region,
36837
+ # global) should be included in the response. For new resource types added after
36838
+ # this field, the flag has no effect as new resource types will always include
36839
+ # every visible scope for each scope type in response. For resource types which
36840
+ # predate this field, if this flag is omitted or false, only scopes of the scope
36841
+ # types where the resource type is expected to be found will be included.
36842
+ # @param [Fixnum] max_results
36843
+ # The maximum number of results per page that should be returned. If the number
36844
+ # of available results is larger than `maxResults`, Compute Engine returns a `
36845
+ # nextPageToken` that can be used to get the next page of results in subsequent
36846
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
36847
+ # @param [String] order_by
36848
+ # Sorts list results by a certain order. By default, results are returned in
36849
+ # alphanumerical order based on the resource name.
36850
+ # You can also sort results in descending order based on the creation timestamp
36851
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
36852
+ # creationTimestamp` field in reverse chronological order (newest result first).
36853
+ # Use this to sort resources like operations so that the newest operation is
36854
+ # returned first.
36855
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
36856
+ # @param [String] page_token
36857
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
36858
+ # by a previous list request to get the next page of results.
36859
+ # @param [Boolean] return_partial_success
36860
+ # Opt-in for partial success behavior which provides partial results in case of
36861
+ # failure. The default value is false and the logic is the same as today.
36862
+ # @param [String] fields
36863
+ # Selector specifying which fields to include in a partial response.
36864
+ # @param [String] quota_user
36865
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36866
+ # characters.
36867
+ # @param [String] user_ip
36868
+ # Deprecated. Please use quotaUser instead.
36869
+ # @param [Google::Apis::RequestOptions] options
36870
+ # Request-specific options
36871
+ #
36872
+ # @yield [result, err] Result & error if block supplied
36873
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList] parsed result object
36874
+ # @yieldparam err [StandardError] error object if request failed
36875
+ #
36876
+ # @return [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList]
36877
+ #
36878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36881
+ def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36882
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options)
36883
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation
36884
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList
36885
+ command.params['project'] = project unless project.nil?
36886
+ command.query['filter'] = filter unless filter.nil?
36887
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36888
+ command.query['maxResults'] = max_results unless max_results.nil?
36889
+ command.query['orderBy'] = order_by unless order_by.nil?
36890
+ command.query['pageToken'] = page_token unless page_token.nil?
36891
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36892
+ command.query['fields'] = fields unless fields.nil?
36893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36894
+ command.query['userIp'] = user_ip unless user_ip.nil?
36895
+ execute_or_queue_command(command, &block)
36896
+ end
36897
+
36898
+ # Deletes the specified VPN gateway.
36899
+ # @param [String] project
36900
+ # Project ID for this request.
36901
+ # @param [String] region
36902
+ # Name of the region for this request.
36903
+ # @param [String] vpn_gateway
36904
+ # Name of the VPN gateway to delete.
36905
+ # @param [String] request_id
36906
+ # An optional request ID to identify requests. Specify a unique request ID so
36907
+ # that if you must retry your request, the server will know to ignore the
36908
+ # request if it has already been completed.
36909
+ # For example, consider a situation where you make an initial request and the
36910
+ # request times out. If you make the request again with the same request ID, the
36911
+ # server can check if original operation with the same request ID was received,
36912
+ # and if so, will ignore the second request. This prevents clients from
36913
+ # accidentally creating duplicate commitments.
36914
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36915
+ # supported (00000000-0000-0000-0000-000000000000).
36916
+ # @param [String] fields
36917
+ # Selector specifying which fields to include in a partial response.
36918
+ # @param [String] quota_user
36919
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36920
+ # characters.
36921
+ # @param [String] user_ip
36922
+ # Deprecated. Please use quotaUser instead.
36923
+ # @param [Google::Apis::RequestOptions] options
36924
+ # Request-specific options
36925
+ #
36926
+ # @yield [result, err] Result & error if block supplied
36927
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36928
+ # @yieldparam err [StandardError] error object if request failed
36929
+ #
36930
+ # @return [Google::Apis::ComputeAlpha::Operation]
36931
+ #
36932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36935
+ def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36936
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
36937
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36938
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36939
+ command.params['project'] = project unless project.nil?
36940
+ command.params['region'] = region unless region.nil?
36941
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
36942
+ command.query['requestId'] = request_id unless request_id.nil?
36943
+ command.query['fields'] = fields unless fields.nil?
36944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36945
+ command.query['userIp'] = user_ip unless user_ip.nil?
36946
+ execute_or_queue_command(command, &block)
36947
+ end
36948
+
36949
+ # Returns the specified VPN gateway. Gets a list of available VPN gateways by
36950
+ # making a list() request.
36951
+ # @param [String] project
36952
+ # Project ID for this request.
36953
+ # @param [String] region
36954
+ # Name of the region for this request.
36955
+ # @param [String] vpn_gateway
36956
+ # Name of the VPN gateway to return.
36957
+ # @param [String] fields
36958
+ # Selector specifying which fields to include in a partial response.
36959
+ # @param [String] quota_user
36960
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36961
+ # characters.
36962
+ # @param [String] user_ip
36963
+ # Deprecated. Please use quotaUser instead.
36964
+ # @param [Google::Apis::RequestOptions] options
36965
+ # Request-specific options
36966
+ #
36967
+ # @yield [result, err] Result & error if block supplied
36968
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
36969
+ # @yieldparam err [StandardError] error object if request failed
36970
+ #
36971
+ # @return [Google::Apis::ComputeAlpha::VpnGateway]
36972
+ #
36973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36976
+ def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36977
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
36978
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
36979
+ command.response_class = Google::Apis::ComputeAlpha::VpnGateway
36980
+ command.params['project'] = project unless project.nil?
36981
+ command.params['region'] = region unless region.nil?
36982
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
36983
+ command.query['fields'] = fields unless fields.nil?
36984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36985
+ command.query['userIp'] = user_ip unless user_ip.nil?
36986
+ execute_or_queue_command(command, &block)
36987
+ end
36988
+
36989
+ # Returns the status for the specified VPN gateway.
36990
+ # @param [String] project
36991
+ # Project ID for this request.
36992
+ # @param [String] region
36993
+ # Name of the region for this request.
36994
+ # @param [String] vpn_gateway
36995
+ # Name of the VPN gateway to return.
36996
+ # @param [String] fields
36997
+ # Selector specifying which fields to include in a partial response.
36998
+ # @param [String] quota_user
36999
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
37000
+ # characters.
37001
+ # @param [String] user_ip
37002
+ # Deprecated. Please use quotaUser instead.
37003
+ # @param [Google::Apis::RequestOptions] options
37004
+ # Request-specific options
37005
+ #
37006
+ # @yield [result, err] Result & error if block supplied
37007
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
37008
+ # @yieldparam err [StandardError] error object if request failed
37009
+ #
37010
+ # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
37011
+ #
37012
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37013
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37014
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37015
+ def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37016
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
37017
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
37018
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
37019
+ command.params['project'] = project unless project.nil?
37020
+ command.params['region'] = region unless region.nil?
37021
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
37022
+ command.query['fields'] = fields unless fields.nil?
37023
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37024
+ command.query['userIp'] = user_ip unless user_ip.nil?
37025
+ execute_or_queue_command(command, &block)
37026
+ end
37027
+
37028
+ # Creates a VPN gateway in the specified project and region using the data
37029
+ # included in the request.
37030
+ # @param [String] project
37031
+ # Project ID for this request.
37032
+ # @param [String] region
37033
+ # Name of the region for this request.
37034
+ # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
37035
+ # @param [String] request_id
37036
+ # An optional request ID to identify requests. Specify a unique request ID so
37037
+ # that if you must retry your request, the server will know to ignore the
37038
+ # request if it has already been completed.
37039
+ # For example, consider a situation where you make an initial request and the
37040
+ # request times out. If you make the request again with the same request ID, the
37041
+ # server can check if original operation with the same request ID was received,
37042
+ # and if so, will ignore the second request. This prevents clients from
37043
+ # accidentally creating duplicate commitments.
37044
+ # The request ID must be a valid UUID with the exception that zero UUID is not
37045
+ # supported (00000000-0000-0000-0000-000000000000).
37046
+ # @param [String] fields
37047
+ # Selector specifying which fields to include in a partial response.
37048
+ # @param [String] quota_user
37049
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
37050
+ # characters.
37051
+ # @param [String] user_ip
37052
+ # Deprecated. Please use quotaUser instead.
37053
+ # @param [Google::Apis::RequestOptions] options
37054
+ # Request-specific options
37055
+ #
37056
+ # @yield [result, err] Result & error if block supplied
37057
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37058
+ # @yieldparam err [StandardError] error object if request failed
37059
+ #
37060
+ # @return [Google::Apis::ComputeAlpha::Operation]
37061
+ #
37062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37065
+ def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37066
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
37067
+ command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
37068
+ command.request_object = vpn_gateway_object
37069
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37070
+ command.response_class = Google::Apis::ComputeAlpha::Operation
37071
+ command.params['project'] = project unless project.nil?
37072
+ command.params['region'] = region unless region.nil?
37073
+ command.query['requestId'] = request_id unless request_id.nil?
37074
+ command.query['fields'] = fields unless fields.nil?
37075
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37076
+ command.query['userIp'] = user_ip unless user_ip.nil?
37077
+ execute_or_queue_command(command, &block)
37078
+ end
37079
+
37080
+ # Retrieves a list of VPN gateways available to the specified project and region.
37081
+ # @param [String] project
37082
+ # Project ID for this request.
37083
+ # @param [String] region
37084
+ # Name of the region for this request.
37085
+ # @param [String] filter
37086
+ # A filter expression that filters resources listed in the response. The
37087
+ # expression must specify the field name, a comparison operator, and the value
37088
+ # that you want to use for filtering. The value must be a string, a number, or a
37089
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
37090
+ # For example, if you are filtering Compute Engine instances, you can exclude
37091
+ # instances named `example-instance` by specifying `name != example-instance`.
37092
+ # You can also filter nested fields. For example, you could specify `scheduling.
37093
+ # automaticRestart = false` to include instances only if they are not scheduled
37094
+ # for automatic restarts. You can use filtering on nested fields to filter based
37095
+ # on resource labels.
37096
+ # To filter on multiple expressions, provide each separate expression within
37097
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
37098
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
37099
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
37100
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
37101
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
37102
+ # @param [Fixnum] max_results
37103
+ # The maximum number of results per page that should be returned. If the number
37104
+ # of available results is larger than `maxResults`, Compute Engine returns a `
37105
+ # nextPageToken` that can be used to get the next page of results in subsequent
37106
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
37107
+ # @param [String] order_by
37108
+ # Sorts list results by a certain order. By default, results are returned in
37109
+ # alphanumerical order based on the resource name.
37110
+ # You can also sort results in descending order based on the creation timestamp
37111
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
37112
+ # creationTimestamp` field in reverse chronological order (newest result first).
37113
+ # Use this to sort resources like operations so that the newest operation is
37114
+ # returned first.
37115
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
37116
+ # @param [String] page_token
37117
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
37118
+ # by a previous list request to get the next page of results.
37119
+ # @param [Boolean] return_partial_success
37120
+ # Opt-in for partial success behavior which provides partial results in case of
37121
+ # failure. The default value is false and the logic is the same as today.
37122
+ # @param [String] fields
37123
+ # Selector specifying which fields to include in a partial response.
37124
+ # @param [String] quota_user
37125
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
37126
+ # characters.
37127
+ # @param [String] user_ip
37128
+ # Deprecated. Please use quotaUser instead.
37129
+ # @param [Google::Apis::RequestOptions] options
37130
+ # Request-specific options
37131
+ #
37132
+ # @yield [result, err] Result & error if block supplied
37133
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
36094
37134
  # @yieldparam err [StandardError] error object if request failed
36095
37135
  #
36096
- # @return [Google::Apis::ComputeAlpha::UrlMapList]
37136
+ # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
36097
37137
  #
36098
37138
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36099
37139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36100
37140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36101
- def list_url_maps(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36102
- command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options)
36103
- command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation
36104
- command.response_class = Google::Apis::ComputeAlpha::UrlMapList
37141
+ def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37142
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
37143
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
37144
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
36105
37145
  command.params['project'] = project unless project.nil?
37146
+ command.params['region'] = region unless region.nil?
36106
37147
  command.query['filter'] = filter unless filter.nil?
36107
37148
  command.query['maxResults'] = max_results unless max_results.nil?
36108
37149
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -36114,14 +37155,15 @@ module Google
36114
37155
  execute_or_queue_command(command, &block)
36115
37156
  end
36116
37157
 
36117
- # Patches the specified UrlMap resource with the data included in the request.
36118
- # This method supports PATCH semantics and uses the JSON merge patch format and
36119
- # processing rules.
37158
+ # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
37159
+ # Resources documentation.
36120
37160
  # @param [String] project
36121
37161
  # Project ID for this request.
36122
- # @param [String] url_map
36123
- # Name of the UrlMap resource to patch.
36124
- # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
37162
+ # @param [String] region
37163
+ # The region for this request.
37164
+ # @param [String] resource
37165
+ # Name or id of the resource for this request.
37166
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
36125
37167
  # @param [String] request_id
36126
37168
  # An optional request ID to identify requests. Specify a unique request ID so
36127
37169
  # that if you must retry your request, the server will know to ignore the
@@ -36152,14 +37194,15 @@ module Google
36152
37194
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36153
37195
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36154
37196
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36155
- def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36156
- command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options)
36157
- command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36158
- command.request_object = url_map_object
37197
+ def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37198
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
37199
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
37200
+ command.request_object = region_set_labels_request_object
36159
37201
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36160
37202
  command.response_class = Google::Apis::ComputeAlpha::Operation
36161
37203
  command.params['project'] = project unless project.nil?
36162
- command.params['urlMap'] = url_map unless url_map.nil?
37204
+ command.params['region'] = region unless region.nil?
37205
+ command.params['resource'] = resource unless resource.nil?
36163
37206
  command.query['requestId'] = request_id unless request_id.nil?
36164
37207
  command.query['fields'] = fields unless fields.nil?
36165
37208
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36170,6 +37213,8 @@ module Google
36170
37213
  # Returns permissions that a caller has on the specified resource.
36171
37214
  # @param [String] project
36172
37215
  # Project ID for this request.
37216
+ # @param [String] region
37217
+ # The name of the region for this request.
36173
37218
  # @param [String] resource
36174
37219
  # Name or id of the resource for this request.
36175
37220
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -36192,13 +37237,14 @@ module Google
36192
37237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36193
37238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36194
37239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36195
- def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36196
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
37240
+ def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37241
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
36197
37242
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36198
37243
  command.request_object = test_permissions_request_object
36199
37244
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36200
37245
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36201
37246
  command.params['project'] = project unless project.nil?
37247
+ command.params['region'] = region unless region.nil?
36202
37248
  command.params['resource'] = resource unless resource.nil?
36203
37249
  command.query['fields'] = fields unless fields.nil?
36204
37250
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36206,98 +37252,7 @@ module Google
36206
37252
  execute_or_queue_command(command, &block)
36207
37253
  end
36208
37254
 
36209
- # Updates the specified UrlMap resource with the data included in the request.
36210
- # @param [String] project
36211
- # Project ID for this request.
36212
- # @param [String] url_map
36213
- # Name of the UrlMap resource to update.
36214
- # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
36215
- # @param [String] request_id
36216
- # An optional request ID to identify requests. Specify a unique request ID so
36217
- # that if you must retry your request, the server will know to ignore the
36218
- # request if it has already been completed.
36219
- # For example, consider a situation where you make an initial request and the
36220
- # request times out. If you make the request again with the same request ID, the
36221
- # server can check if original operation with the same request ID was received,
36222
- # and if so, will ignore the second request. This prevents clients from
36223
- # accidentally creating duplicate commitments.
36224
- # The request ID must be a valid UUID with the exception that zero UUID is not
36225
- # supported (00000000-0000-0000-0000-000000000000).
36226
- # @param [String] fields
36227
- # Selector specifying which fields to include in a partial response.
36228
- # @param [String] quota_user
36229
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36230
- # characters.
36231
- # @param [String] user_ip
36232
- # Deprecated. Please use quotaUser instead.
36233
- # @param [Google::Apis::RequestOptions] options
36234
- # Request-specific options
36235
- #
36236
- # @yield [result, err] Result & error if block supplied
36237
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36238
- # @yieldparam err [StandardError] error object if request failed
36239
- #
36240
- # @return [Google::Apis::ComputeAlpha::Operation]
36241
- #
36242
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36243
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36244
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36245
- def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36246
- command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options)
36247
- command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36248
- command.request_object = url_map_object
36249
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36250
- command.response_class = Google::Apis::ComputeAlpha::Operation
36251
- command.params['project'] = project unless project.nil?
36252
- command.params['urlMap'] = url_map unless url_map.nil?
36253
- command.query['requestId'] = request_id unless request_id.nil?
36254
- command.query['fields'] = fields unless fields.nil?
36255
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36256
- command.query['userIp'] = user_ip unless user_ip.nil?
36257
- execute_or_queue_command(command, &block)
36258
- end
36259
-
36260
- # Runs static validation for the UrlMap. In particular, the tests of the
36261
- # provided UrlMap will be run. Calling this method does NOT create the UrlMap.
36262
- # @param [String] project
36263
- # Project ID for this request.
36264
- # @param [String] url_map
36265
- # Name of the UrlMap resource to be validated as.
36266
- # @param [Google::Apis::ComputeAlpha::UrlMapsValidateRequest] url_maps_validate_request_object
36267
- # @param [String] fields
36268
- # Selector specifying which fields to include in a partial response.
36269
- # @param [String] quota_user
36270
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36271
- # characters.
36272
- # @param [String] user_ip
36273
- # Deprecated. Please use quotaUser instead.
36274
- # @param [Google::Apis::RequestOptions] options
36275
- # Request-specific options
36276
- #
36277
- # @yield [result, err] Result & error if block supplied
36278
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsValidateResponse] parsed result object
36279
- # @yieldparam err [StandardError] error object if request failed
36280
- #
36281
- # @return [Google::Apis::ComputeAlpha::UrlMapsValidateResponse]
36282
- #
36283
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36284
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36285
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36286
- def validate_url_map(project, url_map, url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36287
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options)
36288
- command.request_representation = Google::Apis::ComputeAlpha::UrlMapsValidateRequest::Representation
36289
- command.request_object = url_maps_validate_request_object
36290
- command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation
36291
- command.response_class = Google::Apis::ComputeAlpha::UrlMapsValidateResponse
36292
- command.params['project'] = project unless project.nil?
36293
- command.params['urlMap'] = url_map unless url_map.nil?
36294
- command.query['fields'] = fields unless fields.nil?
36295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36296
- command.query['userIp'] = user_ip unless user_ip.nil?
36297
- execute_or_queue_command(command, &block)
36298
- end
36299
-
36300
- # Retrieves an aggregated list of VPN gateways.
37255
+ # Retrieves an aggregated list of VPN tunnels.
36301
37256
  # @param [String] project
36302
37257
  # Project ID for this request.
36303
37258
  # @param [String] filter
@@ -36355,18 +37310,18 @@ module Google
36355
37310
  # Request-specific options
36356
37311
  #
36357
37312
  # @yield [result, err] Result & error if block supplied
36358
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList] parsed result object
37313
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
36359
37314
  # @yieldparam err [StandardError] error object if request failed
36360
37315
  #
36361
- # @return [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList]
37316
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
36362
37317
  #
36363
37318
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36364
37319
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36365
37320
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36366
- def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36367
- command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options)
36368
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation
36369
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList
37321
+ def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37322
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
37323
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
37324
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
36370
37325
  command.params['project'] = project unless project.nil?
36371
37326
  command.query['filter'] = filter unless filter.nil?
36372
37327
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -36380,13 +37335,13 @@ module Google
36380
37335
  execute_or_queue_command(command, &block)
36381
37336
  end
36382
37337
 
36383
- # Deletes the specified VPN gateway.
37338
+ # Deletes the specified VpnTunnel resource.
36384
37339
  # @param [String] project
36385
37340
  # Project ID for this request.
36386
37341
  # @param [String] region
36387
37342
  # Name of the region for this request.
36388
- # @param [String] vpn_gateway
36389
- # Name of the VPN gateway to delete.
37343
+ # @param [String] vpn_tunnel
37344
+ # Name of the VpnTunnel resource to delete.
36390
37345
  # @param [String] request_id
36391
37346
  # An optional request ID to identify requests. Specify a unique request ID so
36392
37347
  # that if you must retry your request, the server will know to ignore the
@@ -36417,13 +37372,13 @@ module Google
36417
37372
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36418
37373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36419
37374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36420
- def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36421
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
37375
+ def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37376
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36422
37377
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36423
37378
  command.response_class = Google::Apis::ComputeAlpha::Operation
36424
37379
  command.params['project'] = project unless project.nil?
36425
37380
  command.params['region'] = region unless region.nil?
36426
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
37381
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36427
37382
  command.query['requestId'] = request_id unless request_id.nil?
36428
37383
  command.query['fields'] = fields unless fields.nil?
36429
37384
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36431,53 +37386,14 @@ module Google
36431
37386
  execute_or_queue_command(command, &block)
36432
37387
  end
36433
37388
 
36434
- # Returns the specified VPN gateway. Gets a list of available VPN gateways by
36435
- # making a list() request.
36436
- # @param [String] project
36437
- # Project ID for this request.
36438
- # @param [String] region
36439
- # Name of the region for this request.
36440
- # @param [String] vpn_gateway
36441
- # Name of the VPN gateway to return.
36442
- # @param [String] fields
36443
- # Selector specifying which fields to include in a partial response.
36444
- # @param [String] quota_user
36445
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36446
- # characters.
36447
- # @param [String] user_ip
36448
- # Deprecated. Please use quotaUser instead.
36449
- # @param [Google::Apis::RequestOptions] options
36450
- # Request-specific options
36451
- #
36452
- # @yield [result, err] Result & error if block supplied
36453
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
36454
- # @yieldparam err [StandardError] error object if request failed
36455
- #
36456
- # @return [Google::Apis::ComputeAlpha::VpnGateway]
36457
- #
36458
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36459
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36460
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36461
- def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36462
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
36463
- command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
36464
- command.response_class = Google::Apis::ComputeAlpha::VpnGateway
36465
- command.params['project'] = project unless project.nil?
36466
- command.params['region'] = region unless region.nil?
36467
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
36468
- command.query['fields'] = fields unless fields.nil?
36469
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36470
- command.query['userIp'] = user_ip unless user_ip.nil?
36471
- execute_or_queue_command(command, &block)
36472
- end
36473
-
36474
- # Returns the status for the specified VPN gateway.
37389
+ # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
37390
+ # by making a list() request.
36475
37391
  # @param [String] project
36476
37392
  # Project ID for this request.
36477
37393
  # @param [String] region
36478
37394
  # Name of the region for this request.
36479
- # @param [String] vpn_gateway
36480
- # Name of the VPN gateway to return.
37395
+ # @param [String] vpn_tunnel
37396
+ # Name of the VpnTunnel resource to return.
36481
37397
  # @param [String] fields
36482
37398
  # Selector specifying which fields to include in a partial response.
36483
37399
  # @param [String] quota_user
@@ -36489,34 +37405,34 @@ module Google
36489
37405
  # Request-specific options
36490
37406
  #
36491
37407
  # @yield [result, err] Result & error if block supplied
36492
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
37408
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
36493
37409
  # @yieldparam err [StandardError] error object if request failed
36494
37410
  #
36495
- # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
37411
+ # @return [Google::Apis::ComputeAlpha::VpnTunnel]
36496
37412
  #
36497
37413
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36498
37414
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36499
37415
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36500
- def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36501
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
36502
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
36503
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
37416
+ def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37417
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
37418
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
37419
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
36504
37420
  command.params['project'] = project unless project.nil?
36505
37421
  command.params['region'] = region unless region.nil?
36506
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
37422
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36507
37423
  command.query['fields'] = fields unless fields.nil?
36508
37424
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36509
37425
  command.query['userIp'] = user_ip unless user_ip.nil?
36510
37426
  execute_or_queue_command(command, &block)
36511
37427
  end
36512
37428
 
36513
- # Creates a VPN gateway in the specified project and region using the data
36514
- # included in the request.
37429
+ # Creates a VpnTunnel resource in the specified project and region using the
37430
+ # data included in the request.
36515
37431
  # @param [String] project
36516
37432
  # Project ID for this request.
36517
37433
  # @param [String] region
36518
37434
  # Name of the region for this request.
36519
- # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
37435
+ # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
36520
37436
  # @param [String] request_id
36521
37437
  # An optional request ID to identify requests. Specify a unique request ID so
36522
37438
  # that if you must retry your request, the server will know to ignore the
@@ -36547,10 +37463,10 @@ module Google
36547
37463
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36548
37464
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36549
37465
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36550
- def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36551
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
36552
- command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
36553
- command.request_object = vpn_gateway_object
37466
+ def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37467
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
37468
+ command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
37469
+ command.request_object = vpn_tunnel_object
36554
37470
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36555
37471
  command.response_class = Google::Apis::ComputeAlpha::Operation
36556
37472
  command.params['project'] = project unless project.nil?
@@ -36562,7 +37478,8 @@ module Google
36562
37478
  execute_or_queue_command(command, &block)
36563
37479
  end
36564
37480
 
36565
- # Retrieves a list of VPN gateways available to the specified project and region.
37481
+ # Retrieves a list of VpnTunnel resources contained in the specified project and
37482
+ # region.
36566
37483
  # @param [String] project
36567
37484
  # Project ID for this request.
36568
37485
  # @param [String] region
@@ -36615,18 +37532,18 @@ module Google
36615
37532
  # Request-specific options
36616
37533
  #
36617
37534
  # @yield [result, err] Result & error if block supplied
36618
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
37535
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
36619
37536
  # @yieldparam err [StandardError] error object if request failed
36620
37537
  #
36621
- # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
37538
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
36622
37539
  #
36623
37540
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36624
37541
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36625
37542
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36626
- def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36627
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
36628
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
36629
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
37543
+ def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37544
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
37545
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
37546
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
36630
37547
  command.params['project'] = project unless project.nil?
36631
37548
  command.params['region'] = region unless region.nil?
36632
37549
  command.query['filter'] = filter unless filter.nil?
@@ -36640,7 +37557,7 @@ module Google
36640
37557
  execute_or_queue_command(command, &block)
36641
37558
  end
36642
37559
 
36643
- # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
37560
+ # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
36644
37561
  # Resources documentation.
36645
37562
  # @param [String] project
36646
37563
  # Project ID for this request.
@@ -36679,8 +37596,8 @@ module Google
36679
37596
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36680
37597
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36681
37598
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36682
- def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36683
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
37599
+ def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37600
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
36684
37601
  command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
36685
37602
  command.request_object = region_set_labels_request_object
36686
37603
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
@@ -36722,8 +37639,8 @@ module Google
36722
37639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36723
37640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36724
37641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36725
- def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36726
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
37642
+ def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37643
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
36727
37644
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36728
37645
  command.request_object = test_permissions_request_object
36729
37646
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
@@ -36737,53 +37654,29 @@ module Google
36737
37654
  execute_or_queue_command(command, &block)
36738
37655
  end
36739
37656
 
36740
- # Retrieves an aggregated list of VPN tunnels.
37657
+ # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
37658
+ # single inPlaceSnapshot might not necessarily delete all the data on that
37659
+ # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
37660
+ # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
37661
+ # the next corresponding inPlaceSnapshot.
37662
+ # For more information, see Deleting inPlaceSnapshots.
36741
37663
  # @param [String] project
36742
37664
  # Project ID for this request.
36743
- # @param [String] filter
36744
- # A filter expression that filters resources listed in the response. The
36745
- # expression must specify the field name, a comparison operator, and the value
36746
- # that you want to use for filtering. The value must be a string, a number, or a
36747
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
36748
- # For example, if you are filtering Compute Engine instances, you can exclude
36749
- # instances named `example-instance` by specifying `name != example-instance`.
36750
- # You can also filter nested fields. For example, you could specify `scheduling.
36751
- # automaticRestart = false` to include instances only if they are not scheduled
36752
- # for automatic restarts. You can use filtering on nested fields to filter based
36753
- # on resource labels.
36754
- # To filter on multiple expressions, provide each separate expression within
36755
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
36756
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
36757
- # expression. However, you can include `AND` and `OR` expressions explicitly.
36758
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
36759
- # Broadwell") AND (scheduling.automaticRestart = true) ```
36760
- # @param [Boolean] include_all_scopes
36761
- # Indicates whether every visible scope for each scope type (zone, region,
36762
- # global) should be included in the response. For new resource types added after
36763
- # this field, the flag has no effect as new resource types will always include
36764
- # every visible scope for each scope type in response. For resource types which
36765
- # predate this field, if this flag is omitted or false, only scopes of the scope
36766
- # types where the resource type is expected to be found will be included.
36767
- # @param [Fixnum] max_results
36768
- # The maximum number of results per page that should be returned. If the number
36769
- # of available results is larger than `maxResults`, Compute Engine returns a `
36770
- # nextPageToken` that can be used to get the next page of results in subsequent
36771
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
36772
- # @param [String] order_by
36773
- # Sorts list results by a certain order. By default, results are returned in
36774
- # alphanumerical order based on the resource name.
36775
- # You can also sort results in descending order based on the creation timestamp
36776
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
36777
- # creationTimestamp` field in reverse chronological order (newest result first).
36778
- # Use this to sort resources like operations so that the newest operation is
36779
- # returned first.
36780
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
36781
- # @param [String] page_token
36782
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
36783
- # by a previous list request to get the next page of results.
36784
- # @param [Boolean] return_partial_success
36785
- # Opt-in for partial success behavior which provides partial results in case of
36786
- # failure. The default value is false and the logic is the same as today.
37665
+ # @param [String] zone
37666
+ # The name of the zone for this request.
37667
+ # @param [String] in_place_snapshot
37668
+ # Name of the InPlaceSnapshot resource to delete.
37669
+ # @param [String] request_id
37670
+ # An optional request ID to identify requests. Specify a unique request ID so
37671
+ # that if you must retry your request, the server will know to ignore the
37672
+ # request if it has already been completed.
37673
+ # For example, consider a situation where you make an initial request and the
37674
+ # request times out. If you make the request again with the same request ID, the
37675
+ # server can check if original operation with the same request ID was received,
37676
+ # and if so, will ignore the second request. This prevents clients from
37677
+ # accidentally creating duplicate commitments.
37678
+ # The request ID must be a valid UUID with the exception that zero UUID is not
37679
+ # supported (00000000-0000-0000-0000-000000000000).
36787
37680
  # @param [String] fields
36788
37681
  # Selector specifying which fields to include in a partial response.
36789
37682
  # @param [String] quota_user
@@ -36795,49 +37688,35 @@ module Google
36795
37688
  # Request-specific options
36796
37689
  #
36797
37690
  # @yield [result, err] Result & error if block supplied
36798
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
37691
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36799
37692
  # @yieldparam err [StandardError] error object if request failed
36800
37693
  #
36801
- # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
37694
+ # @return [Google::Apis::ComputeAlpha::Operation]
36802
37695
  #
36803
37696
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36804
37697
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36805
37698
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36806
- def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36807
- command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
36808
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
36809
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
37699
+ def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37700
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37701
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37702
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36810
37703
  command.params['project'] = project unless project.nil?
36811
- command.query['filter'] = filter unless filter.nil?
36812
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36813
- command.query['maxResults'] = max_results unless max_results.nil?
36814
- command.query['orderBy'] = order_by unless order_by.nil?
36815
- command.query['pageToken'] = page_token unless page_token.nil?
36816
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
37704
+ command.params['zone'] = zone unless zone.nil?
37705
+ command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
37706
+ command.query['requestId'] = request_id unless request_id.nil?
36817
37707
  command.query['fields'] = fields unless fields.nil?
36818
37708
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36819
37709
  command.query['userIp'] = user_ip unless user_ip.nil?
36820
37710
  execute_or_queue_command(command, &block)
36821
37711
  end
36822
37712
 
36823
- # Deletes the specified VpnTunnel resource.
37713
+ # Returns the specified InPlaceSnapshot resource in the specified zone.
36824
37714
  # @param [String] project
36825
37715
  # Project ID for this request.
36826
- # @param [String] region
36827
- # Name of the region for this request.
36828
- # @param [String] vpn_tunnel
36829
- # Name of the VpnTunnel resource to delete.
36830
- # @param [String] request_id
36831
- # An optional request ID to identify requests. Specify a unique request ID so
36832
- # that if you must retry your request, the server will know to ignore the
36833
- # request if it has already been completed.
36834
- # For example, consider a situation where you make an initial request and the
36835
- # request times out. If you make the request again with the same request ID, the
36836
- # server can check if original operation with the same request ID was received,
36837
- # and if so, will ignore the second request. This prevents clients from
36838
- # accidentally creating duplicate commitments.
36839
- # The request ID must be a valid UUID with the exception that zero UUID is not
36840
- # supported (00000000-0000-0000-0000-000000000000).
37716
+ # @param [String] zone
37717
+ # The name of the zone for this request.
37718
+ # @param [String] in_place_snapshot
37719
+ # Name of the InPlaceSnapshot resource to return.
36841
37720
  # @param [String] fields
36842
37721
  # Selector specifying which fields to include in a partial response.
36843
37722
  # @param [String] quota_user
@@ -36849,36 +37728,37 @@ module Google
36849
37728
  # Request-specific options
36850
37729
  #
36851
37730
  # @yield [result, err] Result & error if block supplied
36852
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37731
+ # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
36853
37732
  # @yieldparam err [StandardError] error object if request failed
36854
37733
  #
36855
- # @return [Google::Apis::ComputeAlpha::Operation]
37734
+ # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
36856
37735
  #
36857
37736
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36858
37737
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36859
37738
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36860
- def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36861
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36862
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36863
- command.response_class = Google::Apis::ComputeAlpha::Operation
37739
+ def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37740
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37741
+ command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37742
+ command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
36864
37743
  command.params['project'] = project unless project.nil?
36865
- command.params['region'] = region unless region.nil?
36866
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36867
- command.query['requestId'] = request_id unless request_id.nil?
37744
+ command.params['zone'] = zone unless zone.nil?
37745
+ command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
36868
37746
  command.query['fields'] = fields unless fields.nil?
36869
37747
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36870
37748
  command.query['userIp'] = user_ip unless user_ip.nil?
36871
37749
  execute_or_queue_command(command, &block)
36872
37750
  end
36873
37751
 
36874
- # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
36875
- # by making a list() request.
37752
+ # Gets the access control policy for a resource. May be empty if no such policy
37753
+ # or resource exists.
36876
37754
  # @param [String] project
36877
37755
  # Project ID for this request.
36878
- # @param [String] region
36879
- # Name of the region for this request.
36880
- # @param [String] vpn_tunnel
36881
- # Name of the VpnTunnel resource to return.
37756
+ # @param [String] zone
37757
+ # The name of the zone for this request.
37758
+ # @param [String] resource
37759
+ # Name or id of the resource for this request.
37760
+ # @param [Fixnum] options_requested_policy_version
37761
+ # Requested IAM Policy version.
36882
37762
  # @param [String] fields
36883
37763
  # Selector specifying which fields to include in a partial response.
36884
37764
  # @param [String] quota_user
@@ -36890,34 +37770,34 @@ module Google
36890
37770
  # Request-specific options
36891
37771
  #
36892
37772
  # @yield [result, err] Result & error if block supplied
36893
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
37773
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
36894
37774
  # @yieldparam err [StandardError] error object if request failed
36895
37775
  #
36896
- # @return [Google::Apis::ComputeAlpha::VpnTunnel]
37776
+ # @return [Google::Apis::ComputeAlpha::Policy]
36897
37777
  #
36898
37778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36899
37779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36900
37780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36901
- def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36902
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36903
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
36904
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
37781
+ def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37782
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options)
37783
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
37784
+ command.response_class = Google::Apis::ComputeAlpha::Policy
36905
37785
  command.params['project'] = project unless project.nil?
36906
- command.params['region'] = region unless region.nil?
36907
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
37786
+ command.params['zone'] = zone unless zone.nil?
37787
+ command.params['resource'] = resource unless resource.nil?
37788
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
36908
37789
  command.query['fields'] = fields unless fields.nil?
36909
37790
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36910
37791
  command.query['userIp'] = user_ip unless user_ip.nil?
36911
37792
  execute_or_queue_command(command, &block)
36912
37793
  end
36913
37794
 
36914
- # Creates a VpnTunnel resource in the specified project and region using the
36915
- # data included in the request.
37795
+ # Creates an in-place snapshot in the specified zone.
36916
37796
  # @param [String] project
36917
37797
  # Project ID for this request.
36918
- # @param [String] region
36919
- # Name of the region for this request.
36920
- # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
37798
+ # @param [String] zone
37799
+ # Name of the zone for this request.
37800
+ # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
36921
37801
  # @param [String] request_id
36922
37802
  # An optional request ID to identify requests. Specify a unique request ID so
36923
37803
  # that if you must retry your request, the server will know to ignore the
@@ -36948,14 +37828,14 @@ module Google
36948
37828
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36949
37829
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36950
37830
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36951
- def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36952
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
36953
- command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
36954
- command.request_object = vpn_tunnel_object
37831
+ def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37832
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37833
+ command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37834
+ command.request_object = in_place_snapshot_object
36955
37835
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36956
37836
  command.response_class = Google::Apis::ComputeAlpha::Operation
36957
37837
  command.params['project'] = project unless project.nil?
36958
- command.params['region'] = region unless region.nil?
37838
+ command.params['zone'] = zone unless zone.nil?
36959
37839
  command.query['requestId'] = request_id unless request_id.nil?
36960
37840
  command.query['fields'] = fields unless fields.nil?
36961
37841
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36963,12 +37843,12 @@ module Google
36963
37843
  execute_or_queue_command(command, &block)
36964
37844
  end
36965
37845
 
36966
- # Retrieves a list of VpnTunnel resources contained in the specified project and
36967
- # region.
37846
+ # Retrieves the list of InPlaceSnapshot resources contained within the specified
37847
+ # zone.
36968
37848
  # @param [String] project
36969
37849
  # Project ID for this request.
36970
- # @param [String] region
36971
- # Name of the region for this request.
37850
+ # @param [String] zone
37851
+ # The name of the zone for this request.
36972
37852
  # @param [String] filter
36973
37853
  # A filter expression that filters resources listed in the response. The
36974
37854
  # expression must specify the field name, a comparison operator, and the value
@@ -37017,20 +37897,20 @@ module Google
37017
37897
  # Request-specific options
37018
37898
  #
37019
37899
  # @yield [result, err] Result & error if block supplied
37020
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
37900
+ # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
37021
37901
  # @yieldparam err [StandardError] error object if request failed
37022
37902
  #
37023
- # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
37903
+ # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
37024
37904
  #
37025
37905
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37026
37906
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37027
37907
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37028
- def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37029
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
37030
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
37031
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
37908
+ def list_zone_in_place_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37909
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37910
+ command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
37911
+ command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
37032
37912
  command.params['project'] = project unless project.nil?
37033
- command.params['region'] = region unless region.nil?
37913
+ command.params['zone'] = zone unless zone.nil?
37034
37914
  command.query['filter'] = filter unless filter.nil?
37035
37915
  command.query['maxResults'] = max_results unless max_results.nil?
37036
37916
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -37042,15 +37922,58 @@ module Google
37042
37922
  execute_or_queue_command(command, &block)
37043
37923
  end
37044
37924
 
37045
- # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
37046
- # Resources documentation.
37925
+ # Sets the access control policy on the specified resource. Replaces any
37926
+ # existing policy.
37047
37927
  # @param [String] project
37048
37928
  # Project ID for this request.
37049
- # @param [String] region
37050
- # The region for this request.
37929
+ # @param [String] zone
37930
+ # The name of the zone for this request.
37051
37931
  # @param [String] resource
37052
37932
  # Name or id of the resource for this request.
37053
- # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
37933
+ # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
37934
+ # @param [String] fields
37935
+ # Selector specifying which fields to include in a partial response.
37936
+ # @param [String] quota_user
37937
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
37938
+ # characters.
37939
+ # @param [String] user_ip
37940
+ # Deprecated. Please use quotaUser instead.
37941
+ # @param [Google::Apis::RequestOptions] options
37942
+ # Request-specific options
37943
+ #
37944
+ # @yield [result, err] Result & error if block supplied
37945
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
37946
+ # @yieldparam err [StandardError] error object if request failed
37947
+ #
37948
+ # @return [Google::Apis::ComputeAlpha::Policy]
37949
+ #
37950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37953
+ def set_zone_in_place_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37954
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy', options)
37955
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
37956
+ command.request_object = zone_set_policy_request_object
37957
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
37958
+ command.response_class = Google::Apis::ComputeAlpha::Policy
37959
+ command.params['project'] = project unless project.nil?
37960
+ command.params['zone'] = zone unless zone.nil?
37961
+ command.params['resource'] = resource unless resource.nil?
37962
+ command.query['fields'] = fields unless fields.nil?
37963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37964
+ command.query['userIp'] = user_ip unless user_ip.nil?
37965
+ execute_or_queue_command(command, &block)
37966
+ end
37967
+
37968
+ # Sets the labels on a inPlaceSnapshot in the given zone. To learn more about
37969
+ # labels, read the Labeling Resources documentation.
37970
+ # @param [String] project
37971
+ # Project ID for this request.
37972
+ # @param [String] zone
37973
+ # The name of the zone for this request.
37974
+ # @param [String] resource
37975
+ # Name or id of the resource for this request.
37976
+ # @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
37054
37977
  # @param [String] request_id
37055
37978
  # An optional request ID to identify requests. Specify a unique request ID so
37056
37979
  # that if you must retry your request, the server will know to ignore the
@@ -37081,14 +38004,14 @@ module Google
37081
38004
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37082
38005
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37083
38006
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37084
- def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37085
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
37086
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
37087
- command.request_object = region_set_labels_request_object
38007
+ def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38008
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options)
38009
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
38010
+ command.request_object = zone_set_labels_request_object
37088
38011
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37089
38012
  command.response_class = Google::Apis::ComputeAlpha::Operation
37090
38013
  command.params['project'] = project unless project.nil?
37091
- command.params['region'] = region unless region.nil?
38014
+ command.params['zone'] = zone unless zone.nil?
37092
38015
  command.params['resource'] = resource unless resource.nil?
37093
38016
  command.query['requestId'] = request_id unless request_id.nil?
37094
38017
  command.query['fields'] = fields unless fields.nil?
@@ -37100,8 +38023,8 @@ module Google
37100
38023
  # Returns permissions that a caller has on the specified resource.
37101
38024
  # @param [String] project
37102
38025
  # Project ID for this request.
37103
- # @param [String] region
37104
- # The name of the region for this request.
38026
+ # @param [String] zone
38027
+ # The name of the zone for this request.
37105
38028
  # @param [String] resource
37106
38029
  # Name or id of the resource for this request.
37107
38030
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -37124,14 +38047,14 @@ module Google
37124
38047
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37125
38048
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37126
38049
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37127
- def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37128
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
38050
+ def test_zone_in_place_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38051
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions', options)
37129
38052
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
37130
38053
  command.request_object = test_permissions_request_object
37131
38054
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
37132
38055
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
37133
38056
  command.params['project'] = project unless project.nil?
37134
- command.params['region'] = region unless region.nil?
38057
+ command.params['zone'] = zone unless zone.nil?
37135
38058
  command.params['resource'] = resource unless resource.nil?
37136
38059
  command.query['fields'] = fields unless fields.nil?
37137
38060
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -37139,18 +38062,18 @@ module Google
37139
38062
  execute_or_queue_command(command, &block)
37140
38063
  end
37141
38064
 
37142
- # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
37143
- # single inPlaceSnapshot might not necessarily delete all the data on that
37144
- # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
37145
- # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
37146
- # the next corresponding inPlaceSnapshot.
37147
- # For more information, see Deleting inPlaceSnapshots.
38065
+ # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
38066
+ # single instantSnapshot might not necessarily delete all the data on that
38067
+ # instantSnapshot. If any data on the instantSnapshot that is marked for
38068
+ # deletion is needed for subsequent instantSnapshots, the data will be moved to
38069
+ # the next corresponding instantSnapshot.
38070
+ # For more information, see Deleting instantSnapshots.
37148
38071
  # @param [String] project
37149
38072
  # Project ID for this request.
37150
38073
  # @param [String] zone
37151
38074
  # The name of the zone for this request.
37152
- # @param [String] in_place_snapshot
37153
- # Name of the InPlaceSnapshot resource to delete.
38075
+ # @param [String] instant_snapshot
38076
+ # Name of the InstantSnapshot resource to delete.
37154
38077
  # @param [String] request_id
37155
38078
  # An optional request ID to identify requests. Specify a unique request ID so
37156
38079
  # that if you must retry your request, the server will know to ignore the
@@ -37181,13 +38104,13 @@ module Google
37181
38104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37182
38105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37183
38106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37184
- def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37185
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
38107
+ def delete_zone_instant_snapshot(project, zone, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38108
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
37186
38109
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37187
38110
  command.response_class = Google::Apis::ComputeAlpha::Operation
37188
38111
  command.params['project'] = project unless project.nil?
37189
38112
  command.params['zone'] = zone unless zone.nil?
37190
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
38113
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
37191
38114
  command.query['requestId'] = request_id unless request_id.nil?
37192
38115
  command.query['fields'] = fields unless fields.nil?
37193
38116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -37195,13 +38118,13 @@ module Google
37195
38118
  execute_or_queue_command(command, &block)
37196
38119
  end
37197
38120
 
37198
- # Returns the specified InPlaceSnapshot resource in the specified zone.
38121
+ # Returns the specified InstantSnapshot resource in the specified zone.
37199
38122
  # @param [String] project
37200
38123
  # Project ID for this request.
37201
38124
  # @param [String] zone
37202
38125
  # The name of the zone for this request.
37203
- # @param [String] in_place_snapshot
37204
- # Name of the InPlaceSnapshot resource to return.
38126
+ # @param [String] instant_snapshot
38127
+ # Name of the InstantSnapshot resource to return.
37205
38128
  # @param [String] fields
37206
38129
  # Selector specifying which fields to include in a partial response.
37207
38130
  # @param [String] quota_user
@@ -37213,21 +38136,21 @@ module Google
37213
38136
  # Request-specific options
37214
38137
  #
37215
38138
  # @yield [result, err] Result & error if block supplied
37216
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
38139
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshot] parsed result object
37217
38140
  # @yieldparam err [StandardError] error object if request failed
37218
38141
  #
37219
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
38142
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshot]
37220
38143
  #
37221
38144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37222
38145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37223
38146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37224
- def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37225
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37226
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37227
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
38147
+ def get_zone_instant_snapshot(project, zone, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38148
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
38149
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
38150
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshot
37228
38151
  command.params['project'] = project unless project.nil?
37229
38152
  command.params['zone'] = zone unless zone.nil?
37230
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
38153
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
37231
38154
  command.query['fields'] = fields unless fields.nil?
37232
38155
  command.query['quotaUser'] = quota_user unless quota_user.nil?
37233
38156
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -37263,8 +38186,8 @@ module Google
37263
38186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37264
38187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37265
38188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37266
- def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37267
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options)
38189
+ def get_zone_instant_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38190
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy', options)
37268
38191
  command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
37269
38192
  command.response_class = Google::Apis::ComputeAlpha::Policy
37270
38193
  command.params['project'] = project unless project.nil?
@@ -37277,12 +38200,12 @@ module Google
37277
38200
  execute_or_queue_command(command, &block)
37278
38201
  end
37279
38202
 
37280
- # Creates an in-place snapshot in the specified zone.
38203
+ # Creates an instant snapshot in the specified zone.
37281
38204
  # @param [String] project
37282
38205
  # Project ID for this request.
37283
38206
  # @param [String] zone
37284
38207
  # Name of the zone for this request.
37285
- # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
38208
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshot] instant_snapshot_object
37286
38209
  # @param [String] request_id
37287
38210
  # An optional request ID to identify requests. Specify a unique request ID so
37288
38211
  # that if you must retry your request, the server will know to ignore the
@@ -37313,10 +38236,10 @@ module Google
37313
38236
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37314
38237
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37315
38238
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37316
- def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37317
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37318
- command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37319
- command.request_object = in_place_snapshot_object
38239
+ def insert_zone_instant_snapshot(project, zone, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38240
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots', options)
38241
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
38242
+ command.request_object = instant_snapshot_object
37320
38243
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37321
38244
  command.response_class = Google::Apis::ComputeAlpha::Operation
37322
38245
  command.params['project'] = project unless project.nil?
@@ -37328,7 +38251,7 @@ module Google
37328
38251
  execute_or_queue_command(command, &block)
37329
38252
  end
37330
38253
 
37331
- # Retrieves the list of InPlaceSnapshot resources contained within the specified
38254
+ # Retrieves the list of InstantSnapshot resources contained within the specified
37332
38255
  # zone.
37333
38256
  # @param [String] project
37334
38257
  # Project ID for this request.
@@ -37382,18 +38305,18 @@ module Google
37382
38305
  # Request-specific options
37383
38306
  #
37384
38307
  # @yield [result, err] Result & error if block supplied
37385
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
38308
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotList] parsed result object
37386
38309
  # @yieldparam err [StandardError] error object if request failed
37387
38310
  #
37388
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
38311
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotList]
37389
38312
  #
37390
38313
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37391
38314
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37392
38315
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37393
- def list_zone_in_place_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37394
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37395
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
37396
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
38316
+ def list_zone_instant_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38317
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots', options)
38318
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotList::Representation
38319
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotList
37397
38320
  command.params['project'] = project unless project.nil?
37398
38321
  command.params['zone'] = zone unless zone.nil?
37399
38322
  command.query['filter'] = filter unless filter.nil?
@@ -37435,8 +38358,8 @@ module Google
37435
38358
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37436
38359
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37437
38360
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37438
- def set_zone_in_place_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37439
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy', options)
38361
+ def set_zone_instant_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38362
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy', options)
37440
38363
  command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
37441
38364
  command.request_object = zone_set_policy_request_object
37442
38365
  command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
@@ -37450,7 +38373,7 @@ module Google
37450
38373
  execute_or_queue_command(command, &block)
37451
38374
  end
37452
38375
 
37453
- # Sets the labels on a inPlaceSnapshot in the given zone. To learn more about
38376
+ # Sets the labels on a instantSnapshot in the given zone. To learn more about
37454
38377
  # labels, read the Labeling Resources documentation.
37455
38378
  # @param [String] project
37456
38379
  # Project ID for this request.
@@ -37489,8 +38412,8 @@ module Google
37489
38412
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37490
38413
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37491
38414
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37492
- def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37493
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options)
38415
+ def set_zone_instant_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38416
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels', options)
37494
38417
  command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
37495
38418
  command.request_object = zone_set_labels_request_object
37496
38419
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
@@ -37532,8 +38455,8 @@ module Google
37532
38455
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37533
38456
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37534
38457
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37535
- def test_zone_in_place_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37536
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions', options)
38458
+ def test_zone_instant_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38459
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions', options)
37537
38460
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
37538
38461
  command.request_object = test_permissions_request_object
37539
38462
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation