google-apis-compute_alpha 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeAlpha
18
18
  # Version of the google-apis-compute_alpha gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210301"
25
+ REVISION = "20210310"
26
26
  end
27
27
  end
28
28
  end
@@ -1660,6 +1660,18 @@ module Google
1660
1660
  include Google::Apis::Core::JsonObjectSupport
1661
1661
  end
1662
1662
 
1663
+ class InstanceGroupManagerInstanceLifecyclePolicy
1664
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1665
+
1666
+ include Google::Apis::Core::JsonObjectSupport
1667
+ end
1668
+
1669
+ class InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal
1670
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1671
+
1672
+ include Google::Apis::Core::JsonObjectSupport
1673
+ end
1674
+
1663
1675
  class InstanceGroupManagerList
1664
1676
  class Representation < Google::Apis::Core::JsonRepresentation; end
1665
1677
 
@@ -1792,6 +1804,12 @@ module Google
1792
1804
  include Google::Apis::Core::JsonObjectSupport
1793
1805
  end
1794
1806
 
1807
+ class InstanceGroupManagersResumeInstancesRequest
1808
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1809
+
1810
+ include Google::Apis::Core::JsonObjectSupport
1811
+ end
1812
+
1795
1813
  class InstanceGroupManagersScopedList
1796
1814
  class Representation < Google::Apis::Core::JsonRepresentation; end
1797
1815
 
@@ -1828,6 +1846,24 @@ module Google
1828
1846
  include Google::Apis::Core::JsonObjectSupport
1829
1847
  end
1830
1848
 
1849
+ class InstanceGroupManagersStartInstancesRequest
1850
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1851
+
1852
+ include Google::Apis::Core::JsonObjectSupport
1853
+ end
1854
+
1855
+ class InstanceGroupManagersStopInstancesRequest
1856
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1857
+
1858
+ include Google::Apis::Core::JsonObjectSupport
1859
+ end
1860
+
1861
+ class InstanceGroupManagersSuspendInstancesRequest
1862
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1863
+
1864
+ include Google::Apis::Core::JsonObjectSupport
1865
+ end
1866
+
1831
1867
  class InstanceGroupManagersUpdatePerInstanceConfigsReq
1832
1868
  class Representation < Google::Apis::Core::JsonRepresentation; end
1833
1869
 
@@ -3790,6 +3826,12 @@ module Google
3790
3826
  include Google::Apis::Core::JsonObjectSupport
3791
3827
  end
3792
3828
 
3829
+ class RegionInstanceGroupManagersResumeInstancesRequest
3830
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3831
+
3832
+ include Google::Apis::Core::JsonObjectSupport
3833
+ end
3834
+
3793
3835
  class RegionInstanceGroupManagersSetAutoHealingRequest
3794
3836
  class Representation < Google::Apis::Core::JsonRepresentation; end
3795
3837
 
@@ -3808,6 +3850,24 @@ module Google
3808
3850
  include Google::Apis::Core::JsonObjectSupport
3809
3851
  end
3810
3852
 
3853
+ class RegionInstanceGroupManagersStartInstancesRequest
3854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3855
+
3856
+ include Google::Apis::Core::JsonObjectSupport
3857
+ end
3858
+
3859
+ class RegionInstanceGroupManagersStopInstancesRequest
3860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3861
+
3862
+ include Google::Apis::Core::JsonObjectSupport
3863
+ end
3864
+
3865
+ class RegionInstanceGroupManagersSuspendInstancesRequest
3866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3867
+
3868
+ include Google::Apis::Core::JsonObjectSupport
3869
+ end
3870
+
3811
3871
  class RegionInstanceGroupsListInstances
3812
3872
  class Representation < Google::Apis::Core::JsonRepresentation; end
3813
3873
 
@@ -4462,6 +4522,18 @@ module Google
4462
4522
  include Google::Apis::Core::JsonObjectSupport
4463
4523
  end
4464
4524
 
4525
+ class SecurityPolicyRuleHttpHeaderAction
4526
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4527
+
4528
+ include Google::Apis::Core::JsonObjectSupport
4529
+ end
4530
+
4531
+ class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption
4532
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4533
+
4534
+ include Google::Apis::Core::JsonObjectSupport
4535
+ end
4536
+
4465
4537
  class SecurityPolicyRuleMatcher
4466
4538
  class Representation < Google::Apis::Core::JsonRepresentation; end
4467
4539
 
@@ -6131,6 +6203,7 @@ module Google
6131
6203
  class Representation < Google::Apis::Core::JsonRepresentation
6132
6204
  property :enable_nested_virtualization, as: 'enableNestedVirtualization'
6133
6205
  property :threads_per_core, as: 'threadsPerCore'
6206
+ property :visible_core_count, as: 'visibleCoreCount'
6134
6207
  end
6135
6208
  end
6136
6209
 
@@ -7771,11 +7844,13 @@ module Google
7771
7844
  property :kind, as: 'kind'
7772
7845
  property :name, as: 'name'
7773
7846
  property :parent, as: 'parent'
7847
+ property :region, as: 'region'
7774
7848
  property :rule_tuple_count, as: 'ruleTupleCount'
7775
7849
  collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
7776
7850
 
7777
7851
  property :self_link, as: 'selfLink'
7778
7852
  property :self_link_with_id, as: 'selfLinkWithId'
7853
+ property :short_name, as: 'shortName'
7779
7854
  end
7780
7855
  end
7781
7856
 
@@ -7786,6 +7861,7 @@ module Google
7786
7861
  property :display_name, as: 'displayName'
7787
7862
  property :firewall_policy_id, as: 'firewallPolicyId'
7788
7863
  property :name, as: 'name'
7864
+ property :short_name, as: 'shortName'
7789
7865
  end
7790
7866
  end
7791
7867
 
@@ -8147,6 +8223,7 @@ module Google
8147
8223
  property :proxy_header, as: 'proxyHeader'
8148
8224
  property :request_path, as: 'requestPath'
8149
8225
  property :response, as: 'response'
8226
+ property :weight_report_mode, as: 'weightReportMode'
8150
8227
  end
8151
8228
  end
8152
8229
 
@@ -8160,6 +8237,7 @@ module Google
8160
8237
  property :proxy_header, as: 'proxyHeader'
8161
8238
  property :request_path, as: 'requestPath'
8162
8239
  property :response, as: 'response'
8240
+ property :weight_report_mode, as: 'weightReportMode'
8163
8241
  end
8164
8242
  end
8165
8243
 
@@ -8173,6 +8251,7 @@ module Google
8173
8251
  property :proxy_header, as: 'proxyHeader'
8174
8252
  property :request_path, as: 'requestPath'
8175
8253
  property :response, as: 'response'
8254
+ property :weight_report_mode, as: 'weightReportMode'
8176
8255
  end
8177
8256
  end
8178
8257
 
@@ -8442,6 +8521,8 @@ module Google
8442
8521
  # @private
8443
8522
  class Representation < Google::Apis::Core::JsonRepresentation
8444
8523
  hash :annotations, as: 'annotations'
8524
+ property :forwarding_rule, as: 'forwardingRule'
8525
+ property :forwarding_rule_ip, as: 'forwardingRuleIp'
8445
8526
  property :health_state, as: 'healthState'
8446
8527
  property :instance, as: 'instance'
8447
8528
  property :ip_address, as: 'ipAddress'
@@ -9120,6 +9201,8 @@ module Google
9120
9201
  property :fingerprint, :base64 => true, as: 'fingerprint'
9121
9202
  property :id, :numeric_string => true, as: 'id'
9122
9203
  property :instance_group, as: 'instanceGroup'
9204
+ property :instance_lifecycle_policy, as: 'instanceLifecyclePolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy::Representation
9205
+
9123
9206
  property :instance_template, as: 'instanceTemplate'
9124
9207
  property :kind, as: 'kind'
9125
9208
  property :name, as: 'name'
@@ -9135,6 +9218,8 @@ module Google
9135
9218
 
9136
9219
  collection :target_pools, as: 'targetPools'
9137
9220
  property :target_size, as: 'targetSize'
9221
+ property :target_stopped_size, as: 'targetStoppedSize'
9222
+ property :target_suspended_size, as: 'targetSuspendedSize'
9138
9223
  property :update_policy, as: 'updatePolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy::Representation
9139
9224
 
9140
9225
  collection :versions, as: 'versions', class: Google::Apis::ComputeAlpha::InstanceGroupManagerVersion, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerVersion::Representation
@@ -9154,6 +9239,10 @@ module Google
9154
9239
  property :recreating, as: 'recreating'
9155
9240
  property :refreshing, as: 'refreshing'
9156
9241
  property :restarting, as: 'restarting'
9242
+ property :resuming, as: 'resuming'
9243
+ property :starting, as: 'starting'
9244
+ property :stopping, as: 'stopping'
9245
+ property :suspending, as: 'suspending'
9157
9246
  property :verifying, as: 'verifying'
9158
9247
  end
9159
9248
  end
@@ -9201,6 +9290,21 @@ module Google
9201
9290
  end
9202
9291
  end
9203
9292
 
9293
+ class InstanceGroupManagerInstanceLifecyclePolicy
9294
+ # @private
9295
+ class Representation < Google::Apis::Core::JsonRepresentation
9296
+ property :metadata_based_readiness_signal, as: 'metadataBasedReadinessSignal', class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal::Representation
9297
+
9298
+ end
9299
+ end
9300
+
9301
+ class InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal
9302
+ # @private
9303
+ class Representation < Google::Apis::Core::JsonRepresentation
9304
+ property :timeout_sec, as: 'timeoutSec'
9305
+ end
9306
+ end
9307
+
9204
9308
  class InstanceGroupManagerList
9205
9309
  # @private
9206
9310
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9406,6 +9510,13 @@ module Google
9406
9510
  end
9407
9511
  end
9408
9512
 
9513
+ class InstanceGroupManagersResumeInstancesRequest
9514
+ # @private
9515
+ class Representation < Google::Apis::Core::JsonRepresentation
9516
+ collection :instances, as: 'instances'
9517
+ end
9518
+ end
9519
+
9409
9520
  class InstanceGroupManagersScopedList
9410
9521
  # @private
9411
9522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9457,6 +9568,29 @@ module Google
9457
9568
  end
9458
9569
  end
9459
9570
 
9571
+ class InstanceGroupManagersStartInstancesRequest
9572
+ # @private
9573
+ class Representation < Google::Apis::Core::JsonRepresentation
9574
+ collection :instances, as: 'instances'
9575
+ end
9576
+ end
9577
+
9578
+ class InstanceGroupManagersStopInstancesRequest
9579
+ # @private
9580
+ class Representation < Google::Apis::Core::JsonRepresentation
9581
+ property :force_stop, as: 'forceStop'
9582
+ collection :instances, as: 'instances'
9583
+ end
9584
+ end
9585
+
9586
+ class InstanceGroupManagersSuspendInstancesRequest
9587
+ # @private
9588
+ class Representation < Google::Apis::Core::JsonRepresentation
9589
+ property :force_suspend, as: 'forceSuspend'
9590
+ collection :instances, as: 'instances'
9591
+ end
9592
+ end
9593
+
9460
9594
  class InstanceGroupManagersUpdatePerInstanceConfigsReq
9461
9595
  # @private
9462
9596
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9793,6 +9927,7 @@ module Google
9793
9927
  property :name, as: 'name'
9794
9928
  collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
9795
9929
 
9930
+ property :short_name, as: 'shortName'
9796
9931
  property :type, as: 'type'
9797
9932
  end
9798
9933
  end
@@ -10963,6 +11098,7 @@ module Google
10963
11098
  property :name, as: 'name'
10964
11099
  property :network, as: 'network'
10965
11100
  property :network_endpoint_type, as: 'networkEndpointType'
11101
+ property :psc_target_service, as: 'pscTargetService'
10966
11102
  property :region, as: 'region'
10967
11103
  property :self_link, as: 'selfLink'
10968
11104
  property :self_link_with_id, as: 'selfLinkWithId'
@@ -11320,6 +11456,7 @@ module Google
11320
11456
  property :name, as: 'name'
11321
11457
  collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
11322
11458
 
11459
+ property :short_name, as: 'shortName'
11323
11460
  property :type, as: 'type'
11324
11461
  end
11325
11462
  end
@@ -13036,6 +13173,13 @@ module Google
13036
13173
  end
13037
13174
  end
13038
13175
 
13176
+ class RegionInstanceGroupManagersResumeInstancesRequest
13177
+ # @private
13178
+ class Representation < Google::Apis::Core::JsonRepresentation
13179
+ collection :instances, as: 'instances'
13180
+ end
13181
+ end
13182
+
13039
13183
  class RegionInstanceGroupManagersSetAutoHealingRequest
13040
13184
  # @private
13041
13185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13059,6 +13203,29 @@ module Google
13059
13203
  end
13060
13204
  end
13061
13205
 
13206
+ class RegionInstanceGroupManagersStartInstancesRequest
13207
+ # @private
13208
+ class Representation < Google::Apis::Core::JsonRepresentation
13209
+ collection :instances, as: 'instances'
13210
+ end
13211
+ end
13212
+
13213
+ class RegionInstanceGroupManagersStopInstancesRequest
13214
+ # @private
13215
+ class Representation < Google::Apis::Core::JsonRepresentation
13216
+ property :force_stop, as: 'forceStop'
13217
+ collection :instances, as: 'instances'
13218
+ end
13219
+ end
13220
+
13221
+ class RegionInstanceGroupManagersSuspendInstancesRequest
13222
+ # @private
13223
+ class Representation < Google::Apis::Core::JsonRepresentation
13224
+ property :force_suspend, as: 'forceSuspend'
13225
+ collection :instances, as: 'instances'
13226
+ end
13227
+ end
13228
+
13062
13229
  class RegionInstanceGroupsListInstances
13063
13230
  # @private
13064
13231
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13633,6 +13800,7 @@ module Google
13633
13800
  class Route
13634
13801
  # @private
13635
13802
  class Representation < Google::Apis::Core::JsonRepresentation
13803
+ property :allow_conflicting_subnetworks, as: 'allowConflictingSubnetworks'
13636
13804
  property :creation_timestamp, as: 'creationTimestamp'
13637
13805
  property :description, as: 'description'
13638
13806
  property :dest_range, as: 'destRange'
@@ -13951,6 +14119,7 @@ module Google
13951
14119
  property :name, as: 'name'
13952
14120
  property :num_learned_routes, as: 'numLearnedRoutes'
13953
14121
  property :peer_ip_address, as: 'peerIpAddress'
14122
+ property :router_appliance_instance, as: 'routerApplianceInstance'
13954
14123
  property :state, as: 'state'
13955
14124
  property :status, as: 'status'
13956
14125
  property :uptime, as: 'uptime'
@@ -14254,6 +14423,8 @@ module Google
14254
14423
  property :description, as: 'description'
14255
14424
  property :direction, as: 'direction'
14256
14425
  property :enable_logging, as: 'enableLogging'
14426
+ property :header_action, as: 'headerAction', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleHttpHeaderAction, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleHttpHeaderAction::Representation
14427
+
14257
14428
  property :kind, as: 'kind'
14258
14429
  property :match, as: 'match', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher::Representation
14259
14430
 
@@ -14269,6 +14440,22 @@ module Google
14269
14440
  end
14270
14441
  end
14271
14442
 
14443
+ class SecurityPolicyRuleHttpHeaderAction
14444
+ # @private
14445
+ class Representation < Google::Apis::Core::JsonRepresentation
14446
+ collection :request_headers_to_adds, as: 'requestHeadersToAdds', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleHttpHeaderActionHttpHeaderOption::Representation
14447
+
14448
+ end
14449
+ end
14450
+
14451
+ class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption
14452
+ # @private
14453
+ class Representation < Google::Apis::Core::JsonRepresentation
14454
+ property :header_name, as: 'headerName'
14455
+ property :header_value, as: 'headerValue'
14456
+ end
14457
+ end
14458
+
14272
14459
  class SecurityPolicyRuleMatcher
14273
14460
  # @private
14274
14461
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14314,13 +14501,11 @@ module Google
14314
14501
  property :ban_duration_sec, as: 'banDurationSec'
14315
14502
  property :ban_threshold, as: 'banThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
14316
14503
 
14317
- property :block_duration, as: 'blockDuration'
14318
14504
  property :conform_action, as: 'conformAction'
14319
14505
  property :enforce_on_key, as: 'enforceOnKey'
14320
14506
  property :exceed_action, as: 'exceedAction'
14321
14507
  property :rate_limit_threshold, as: 'rateLimitThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
14322
14508
 
14323
- property :threshold_rps, as: 'thresholdRps'
14324
14509
  end
14325
14510
  end
14326
14511
 
@@ -9990,6 +9990,71 @@ module Google
9990
9990
  execute_or_queue_command(command, &block)
9991
9991
  end
9992
9992
 
9993
+ # Flags the specified instances in the managed instance group to be resumed.
9994
+ # This method increases the targetSize and decreases the targetSuspendedSize of
9995
+ # the managed instance group by the number of instances that you resume. The
9996
+ # resumeInstances operation is marked DONE if the resumeInstances request is
9997
+ # successful. The underlying actions take additional time. You must separately
9998
+ # verify the status of the RESUMING action with the listmanagedinstances method.
9999
+ # In this request, you can only specify instances that are suspended. For
10000
+ # example, if an instance was previously suspended using the suspendInstances
10001
+ # method, it can be resumed using the resumeInstances method.
10002
+ # If a health check is attached to the managed instance group, the specified
10003
+ # instances will be verified as healthy after they are resumed.
10004
+ # You can specify a maximum of 1000 instances with this method per request.
10005
+ # @param [String] project
10006
+ # Project ID for this request.
10007
+ # @param [String] zone
10008
+ # The name of the zone where the managed instance group is located.
10009
+ # @param [String] instance_group_manager
10010
+ # The name of the managed instance group.
10011
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest] instance_group_managers_resume_instances_request_object
10012
+ # @param [String] request_id
10013
+ # An optional request ID to identify requests. Specify a unique request ID so
10014
+ # that if you must retry your request, the server will know to ignore the
10015
+ # request if it has already been completed.
10016
+ # For example, consider a situation where you make an initial request and the
10017
+ # request times out. If you make the request again with the same request ID, the
10018
+ # server can check if original operation with the same request ID was received,
10019
+ # and if so, will ignore the second request. This prevents clients from
10020
+ # accidentally creating duplicate commitments.
10021
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10022
+ # supported (00000000-0000-0000-0000-000000000000).
10023
+ # @param [String] fields
10024
+ # Selector specifying which fields to include in a partial response.
10025
+ # @param [String] quota_user
10026
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10027
+ # characters.
10028
+ # @param [String] user_ip
10029
+ # Deprecated. Please use quotaUser instead.
10030
+ # @param [Google::Apis::RequestOptions] options
10031
+ # Request-specific options
10032
+ #
10033
+ # @yield [result, err] Result & error if block supplied
10034
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10035
+ # @yieldparam err [StandardError] error object if request failed
10036
+ #
10037
+ # @return [Google::Apis::ComputeAlpha::Operation]
10038
+ #
10039
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10040
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10041
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10042
+ def resume_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10043
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
10044
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest::Representation
10045
+ command.request_object = instance_group_managers_resume_instances_request_object
10046
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10047
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10048
+ command.params['project'] = project unless project.nil?
10049
+ command.params['zone'] = zone unless zone.nil?
10050
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10051
+ command.query['requestId'] = request_id unless request_id.nil?
10052
+ command.query['fields'] = fields unless fields.nil?
10053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10054
+ command.query['userIp'] = user_ip unless user_ip.nil?
10055
+ execute_or_queue_command(command, &block)
10056
+ end
10057
+
9993
10058
  # Motifies the autohealing policy for the instances in this managed instance
9994
10059
  # group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch
9995
10060
  # instead.
@@ -10162,6 +10227,222 @@ module Google
10162
10227
  execute_or_queue_command(command, &block)
10163
10228
  end
10164
10229
 
10230
+ # Flags the specified instances in the managed instance group to be started.
10231
+ # This method increases the targetSize and decreases the targetStoppedSize of
10232
+ # the managed instance group by the number of instances that you start. The
10233
+ # startInstances operation is marked DONE if the startInstances request is
10234
+ # successful. The underlying actions take additional time. You must separately
10235
+ # verify the status of the STARTING action with the listmanagedinstances method.
10236
+ # In this request, you can only specify instances that are stopped. For example,
10237
+ # if an instance was previously stopped using the stopInstances method, it can
10238
+ # be started using the startInstances method.
10239
+ # If a health check is attached to the managed instance group, the specified
10240
+ # instances will be verified as healthy after they are started.
10241
+ # You can specify a maximum of 1000 instances with this method per request.
10242
+ # @param [String] project
10243
+ # Project ID for this request.
10244
+ # @param [String] zone
10245
+ # The name of the zone where the managed instance group is located.
10246
+ # @param [String] instance_group_manager
10247
+ # The name of the managed instance group.
10248
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest] instance_group_managers_start_instances_request_object
10249
+ # @param [String] request_id
10250
+ # An optional request ID to identify requests. Specify a unique request ID so
10251
+ # that if you must retry your request, the server will know to ignore the
10252
+ # request if it has already been completed.
10253
+ # For example, consider a situation where you make an initial request and the
10254
+ # request times out. If you make the request again with the same request ID, the
10255
+ # server can check if original operation with the same request ID was received,
10256
+ # and if so, will ignore the second request. This prevents clients from
10257
+ # accidentally creating duplicate commitments.
10258
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10259
+ # supported (00000000-0000-0000-0000-000000000000).
10260
+ # @param [String] fields
10261
+ # Selector specifying which fields to include in a partial response.
10262
+ # @param [String] quota_user
10263
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10264
+ # characters.
10265
+ # @param [String] user_ip
10266
+ # Deprecated. Please use quotaUser instead.
10267
+ # @param [Google::Apis::RequestOptions] options
10268
+ # Request-specific options
10269
+ #
10270
+ # @yield [result, err] Result & error if block supplied
10271
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10272
+ # @yieldparam err [StandardError] error object if request failed
10273
+ #
10274
+ # @return [Google::Apis::ComputeAlpha::Operation]
10275
+ #
10276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10279
+ def start_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10280
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
10281
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest::Representation
10282
+ command.request_object = instance_group_managers_start_instances_request_object
10283
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10284
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10285
+ command.params['project'] = project unless project.nil?
10286
+ command.params['zone'] = zone unless zone.nil?
10287
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10288
+ command.query['requestId'] = request_id unless request_id.nil?
10289
+ command.query['fields'] = fields unless fields.nil?
10290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10291
+ command.query['userIp'] = user_ip unless user_ip.nil?
10292
+ execute_or_queue_command(command, &block)
10293
+ end
10294
+
10295
+ # Flags the specified instances in the managed instance group to be immediately
10296
+ # stopped. You can only specify instances that are running in this request. This
10297
+ # method reduces the targetSize and increases the targetStoppedSize of the
10298
+ # managed instance group by the number of instances that you stop. The
10299
+ # stopInstances operation is marked DONE if the stopInstances request is
10300
+ # successful. The underlying actions take additional time. You must separately
10301
+ # verify the status of the STOPPING action with the listmanagedinstances method.
10302
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
10303
+ # the Instance Group Manager, each instance will be initialized before it is
10304
+ # stopped, to give user programs time to perform necessary tasks. To initialize
10305
+ # an instance, the Instance Group Manager sets the metadata key google-compute-
10306
+ # initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
10307
+ # for the user program to signal it is ready. This is done by setting the guest
10308
+ # attribute path google-compute/initialization-state to value INITIALIZED. If
10309
+ # the instance does not signal successful initialization (does not set the guest
10310
+ # attribute to INITIALIZED) before timeout, the initialization is considered
10311
+ # failed and the instance is not stopped.
10312
+ # If the group is part of a backend service that has enabled connection draining,
10313
+ # it can take up to 60 seconds after the connection draining duration has
10314
+ # elapsed before the VM instance is suspended.
10315
+ # Stopped instances can be started using the startInstances method.
10316
+ # You can specify a maximum of 1000 instances with this method per request.
10317
+ # @param [String] project
10318
+ # Project ID for this request.
10319
+ # @param [String] zone
10320
+ # The name of the zone where the managed instance group is located.
10321
+ # @param [String] instance_group_manager
10322
+ # The name of the managed instance group.
10323
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest] instance_group_managers_stop_instances_request_object
10324
+ # @param [String] request_id
10325
+ # An optional request ID to identify requests. Specify a unique request ID so
10326
+ # that if you must retry your request, the server will know to ignore the
10327
+ # request if it has already been completed.
10328
+ # For example, consider a situation where you make an initial request and the
10329
+ # request times out. If you make the request again with the same request ID, the
10330
+ # server can check if original operation with the same request ID was received,
10331
+ # and if so, will ignore the second request. This prevents clients from
10332
+ # accidentally creating duplicate commitments.
10333
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10334
+ # supported (00000000-0000-0000-0000-000000000000).
10335
+ # @param [String] fields
10336
+ # Selector specifying which fields to include in a partial response.
10337
+ # @param [String] quota_user
10338
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10339
+ # characters.
10340
+ # @param [String] user_ip
10341
+ # Deprecated. Please use quotaUser instead.
10342
+ # @param [Google::Apis::RequestOptions] options
10343
+ # Request-specific options
10344
+ #
10345
+ # @yield [result, err] Result & error if block supplied
10346
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10347
+ # @yieldparam err [StandardError] error object if request failed
10348
+ #
10349
+ # @return [Google::Apis::ComputeAlpha::Operation]
10350
+ #
10351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10354
+ def stop_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10355
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
10356
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest::Representation
10357
+ command.request_object = instance_group_managers_stop_instances_request_object
10358
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10359
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10360
+ command.params['project'] = project unless project.nil?
10361
+ command.params['zone'] = zone unless zone.nil?
10362
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10363
+ command.query['requestId'] = request_id unless request_id.nil?
10364
+ command.query['fields'] = fields unless fields.nil?
10365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10366
+ command.query['userIp'] = user_ip unless user_ip.nil?
10367
+ execute_or_queue_command(command, &block)
10368
+ end
10369
+
10370
+ # Flags the specified instances in the managed instance group to be immediately
10371
+ # suspended. You can only specify instances that are running in this request.
10372
+ # This method reduces the targetSize and increases the targetSuspendedSize of
10373
+ # the managed instance group by the number of instances that you suspend. The
10374
+ # suspendInstances operation is marked DONE if the suspendInstances request is
10375
+ # successful. The underlying actions take additional time. You must separately
10376
+ # verify the status of the SUSPENDING action with the listmanagedinstances
10377
+ # method.
10378
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
10379
+ # the Instance Group Manager, each instance will be initialized before it is
10380
+ # suspended, to give user programs time to perform necessary tasks. To
10381
+ # initialize an instance, the Instance Group Manager sets the metadata key
10382
+ # google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
10383
+ # instance, and waits for the user program to signal it is ready. This is done
10384
+ # by setting the guest attribute path google-compute/initialization-state to
10385
+ # value INITIALIZED. If the instance does not signal successful initialization (
10386
+ # does not set the guest attribute to INITIALIZED) before timeout, the
10387
+ # initialization is considered failed and the instance is not suspended.
10388
+ # If the group is part of a backend service that has enabled connection draining,
10389
+ # it can take up to 60 seconds after the connection draining duration has
10390
+ # elapsed before the VM instance is suspended.
10391
+ # Suspended instances can be resumed using the resumeInstances method.
10392
+ # You can specify a maximum of 1000 instances with this method per request.
10393
+ # @param [String] project
10394
+ # Project ID for this request.
10395
+ # @param [String] zone
10396
+ # The name of the zone where the managed instance group is located.
10397
+ # @param [String] instance_group_manager
10398
+ # The name of the managed instance group.
10399
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest] instance_group_managers_suspend_instances_request_object
10400
+ # @param [String] request_id
10401
+ # An optional request ID to identify requests. Specify a unique request ID so
10402
+ # that if you must retry your request, the server will know to ignore the
10403
+ # request if it has already been completed.
10404
+ # For example, consider a situation where you make an initial request and the
10405
+ # request times out. If you make the request again with the same request ID, the
10406
+ # server can check if original operation with the same request ID was received,
10407
+ # and if so, will ignore the second request. This prevents clients from
10408
+ # accidentally creating duplicate commitments.
10409
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10410
+ # supported (00000000-0000-0000-0000-000000000000).
10411
+ # @param [String] fields
10412
+ # Selector specifying which fields to include in a partial response.
10413
+ # @param [String] quota_user
10414
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10415
+ # characters.
10416
+ # @param [String] user_ip
10417
+ # Deprecated. Please use quotaUser instead.
10418
+ # @param [Google::Apis::RequestOptions] options
10419
+ # Request-specific options
10420
+ #
10421
+ # @yield [result, err] Result & error if block supplied
10422
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10423
+ # @yieldparam err [StandardError] error object if request failed
10424
+ #
10425
+ # @return [Google::Apis::ComputeAlpha::Operation]
10426
+ #
10427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10430
+ def suspend_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10431
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
10432
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest::Representation
10433
+ command.request_object = instance_group_managers_suspend_instances_request_object
10434
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10435
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10436
+ command.params['project'] = project unless project.nil?
10437
+ command.params['zone'] = zone unless zone.nil?
10438
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10439
+ command.query['requestId'] = request_id unless request_id.nil?
10440
+ command.query['fields'] = fields unless fields.nil?
10441
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10442
+ command.query['userIp'] = user_ip unless user_ip.nil?
10443
+ execute_or_queue_command(command, &block)
10444
+ end
10445
+
10165
10446
  # Returns permissions that a caller has on the specified resource.
10166
10447
  # @param [String] project
10167
10448
  # Project ID for this request.
@@ -12469,6 +12750,44 @@ module Google
12469
12750
  execute_or_queue_command(command, &block)
12470
12751
  end
12471
12752
 
12753
+ # TODO(b/180520210): Add IAM permission for this API. Sends diagnostic interrupt
12754
+ # to the instance.
12755
+ # @param [String] project
12756
+ # Project ID for this request.
12757
+ # @param [String] zone
12758
+ # The name of the zone for this request.
12759
+ # @param [String] instance
12760
+ # Name of the instance scoping this request.
12761
+ # @param [String] fields
12762
+ # Selector specifying which fields to include in a partial response.
12763
+ # @param [String] quota_user
12764
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12765
+ # characters.
12766
+ # @param [String] user_ip
12767
+ # Deprecated. Please use quotaUser instead.
12768
+ # @param [Google::Apis::RequestOptions] options
12769
+ # Request-specific options
12770
+ #
12771
+ # @yield [result, err] Result & error if block supplied
12772
+ # @yieldparam result [NilClass] No result returned for this method
12773
+ # @yieldparam err [StandardError] error object if request failed
12774
+ #
12775
+ # @return [void]
12776
+ #
12777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12780
+ def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12781
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
12782
+ command.params['project'] = project unless project.nil?
12783
+ command.params['zone'] = zone unless zone.nil?
12784
+ command.params['instance'] = instance unless instance.nil?
12785
+ command.query['fields'] = fields unless fields.nil?
12786
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12787
+ command.query['userIp'] = user_ip unless user_ip.nil?
12788
+ execute_or_queue_command(command, &block)
12789
+ end
12790
+
12472
12791
  # Sets deletion protection on the instance.
12473
12792
  # @param [String] project
12474
12793
  # Project ID for this request.
@@ -26138,16 +26457,25 @@ module Google
26138
26457
  execute_or_queue_command(command, &block)
26139
26458
  end
26140
26459
 
26141
- # Modifies the autohealing policy for the instances in this managed instance
26142
- # group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
26143
- # patch instead.
26460
+ # Flags the specified instances in the managed instance group to be resumed.
26461
+ # This method increases the targetSize and decreases the targetSuspendedSize of
26462
+ # the managed instance group by the number of instances that you resume. The
26463
+ # resumeInstances operation is marked DONE if the resumeInstances request is
26464
+ # successful. The underlying actions take additional time. You must separately
26465
+ # verify the status of the RESUMING action with the listmanagedinstances method.
26466
+ # In this request, you can only specify instances that are suspended. For
26467
+ # example, if an instance was previously suspended using the suspendInstances
26468
+ # method, it can be resumed using the resumeInstances method.
26469
+ # If a health check is attached to the managed instance group, the specified
26470
+ # instances will be verified as healthy after they are resumed.
26471
+ # You can specify a maximum of 1000 instances with this method per request.
26144
26472
  # @param [String] project
26145
26473
  # Project ID for this request.
26146
26474
  # @param [String] region
26147
26475
  # Name of the region scoping this request.
26148
26476
  # @param [String] instance_group_manager
26149
26477
  # Name of the managed instance group.
26150
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetAutoHealingRequest] region_instance_group_managers_set_auto_healing_request_object
26478
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
26151
26479
  # @param [String] request_id
26152
26480
  # An optional request ID to identify requests. Specify a unique request ID so
26153
26481
  # that if you must retry your request, the server will know to ignore the
@@ -26178,10 +26506,10 @@ module Google
26178
26506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26179
26507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26180
26508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26181
- def set_region_instance_group_manager_auto_healing_policies(project, region, instance_group_manager, region_instance_group_managers_set_auto_healing_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26182
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options)
26183
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetAutoHealingRequest::Representation
26184
- command.request_object = region_instance_group_managers_set_auto_healing_request_object
26509
+ def resume_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26510
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
26511
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest::Representation
26512
+ command.request_object = region_instance_group_managers_resume_instances_request_object
26185
26513
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26186
26514
  command.response_class = Google::Apis::ComputeAlpha::Operation
26187
26515
  command.params['project'] = project unless project.nil?
@@ -26194,8 +26522,64 @@ module Google
26194
26522
  execute_or_queue_command(command, &block)
26195
26523
  end
26196
26524
 
26197
- # Sets the instance template to use when creating new instances or recreating
26198
- # instances in this group. Existing instances are not affected.
26525
+ # Modifies the autohealing policy for the instances in this managed instance
26526
+ # group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
26527
+ # patch instead.
26528
+ # @param [String] project
26529
+ # Project ID for this request.
26530
+ # @param [String] region
26531
+ # Name of the region scoping this request.
26532
+ # @param [String] instance_group_manager
26533
+ # Name of the managed instance group.
26534
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetAutoHealingRequest] region_instance_group_managers_set_auto_healing_request_object
26535
+ # @param [String] request_id
26536
+ # An optional request ID to identify requests. Specify a unique request ID so
26537
+ # that if you must retry your request, the server will know to ignore the
26538
+ # request if it has already been completed.
26539
+ # For example, consider a situation where you make an initial request and the
26540
+ # request times out. If you make the request again with the same request ID, the
26541
+ # server can check if original operation with the same request ID was received,
26542
+ # and if so, will ignore the second request. This prevents clients from
26543
+ # accidentally creating duplicate commitments.
26544
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26545
+ # supported (00000000-0000-0000-0000-000000000000).
26546
+ # @param [String] fields
26547
+ # Selector specifying which fields to include in a partial response.
26548
+ # @param [String] quota_user
26549
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26550
+ # characters.
26551
+ # @param [String] user_ip
26552
+ # Deprecated. Please use quotaUser instead.
26553
+ # @param [Google::Apis::RequestOptions] options
26554
+ # Request-specific options
26555
+ #
26556
+ # @yield [result, err] Result & error if block supplied
26557
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26558
+ # @yieldparam err [StandardError] error object if request failed
26559
+ #
26560
+ # @return [Google::Apis::ComputeAlpha::Operation]
26561
+ #
26562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26565
+ def set_region_instance_group_manager_auto_healing_policies(project, region, instance_group_manager, region_instance_group_managers_set_auto_healing_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26566
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options)
26567
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetAutoHealingRequest::Representation
26568
+ command.request_object = region_instance_group_managers_set_auto_healing_request_object
26569
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26570
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26571
+ command.params['project'] = project unless project.nil?
26572
+ command.params['region'] = region unless region.nil?
26573
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26574
+ command.query['requestId'] = request_id unless request_id.nil?
26575
+ command.query['fields'] = fields unless fields.nil?
26576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26577
+ command.query['userIp'] = user_ip unless user_ip.nil?
26578
+ execute_or_queue_command(command, &block)
26579
+ end
26580
+
26581
+ # Sets the instance template to use when creating new instances or recreating
26582
+ # instances in this group. Existing instances are not affected.
26199
26583
  # @param [String] project
26200
26584
  # Project ID for this request.
26201
26585
  # @param [String] region
@@ -26304,6 +26688,222 @@ module Google
26304
26688
  execute_or_queue_command(command, &block)
26305
26689
  end
26306
26690
 
26691
+ # Flags the specified instances in the managed instance group to be started.
26692
+ # This method increases the targetSize and decreases the targetStoppedSize of
26693
+ # the managed instance group by the number of instances that you start. The
26694
+ # startInstances operation is marked DONE if the startInstances request is
26695
+ # successful. The underlying actions take additional time. You must separately
26696
+ # verify the status of the STARTING action with the listmanagedinstances method.
26697
+ # In this request, you can only specify instances that are stopped. For example,
26698
+ # if an instance was previously stopped using the stopInstances method, it can
26699
+ # be started using the startInstances method.
26700
+ # If a health check is attached to the managed instance group, the specified
26701
+ # instances will be verified as healthy after they are started.
26702
+ # You can specify a maximum of 1000 instances with this method per request.
26703
+ # @param [String] project
26704
+ # Project ID for this request.
26705
+ # @param [String] region
26706
+ # Name of the region scoping this request.
26707
+ # @param [String] instance_group_manager
26708
+ # Name of the managed instance group.
26709
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
26710
+ # @param [String] request_id
26711
+ # An optional request ID to identify requests. Specify a unique request ID so
26712
+ # that if you must retry your request, the server will know to ignore the
26713
+ # request if it has already been completed.
26714
+ # For example, consider a situation where you make an initial request and the
26715
+ # request times out. If you make the request again with the same request ID, the
26716
+ # server can check if original operation with the same request ID was received,
26717
+ # and if so, will ignore the second request. This prevents clients from
26718
+ # accidentally creating duplicate commitments.
26719
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26720
+ # supported (00000000-0000-0000-0000-000000000000).
26721
+ # @param [String] fields
26722
+ # Selector specifying which fields to include in a partial response.
26723
+ # @param [String] quota_user
26724
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26725
+ # characters.
26726
+ # @param [String] user_ip
26727
+ # Deprecated. Please use quotaUser instead.
26728
+ # @param [Google::Apis::RequestOptions] options
26729
+ # Request-specific options
26730
+ #
26731
+ # @yield [result, err] Result & error if block supplied
26732
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26733
+ # @yieldparam err [StandardError] error object if request failed
26734
+ #
26735
+ # @return [Google::Apis::ComputeAlpha::Operation]
26736
+ #
26737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26740
+ def start_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26741
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
26742
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest::Representation
26743
+ command.request_object = region_instance_group_managers_start_instances_request_object
26744
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26745
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26746
+ command.params['project'] = project unless project.nil?
26747
+ command.params['region'] = region unless region.nil?
26748
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26749
+ command.query['requestId'] = request_id unless request_id.nil?
26750
+ command.query['fields'] = fields unless fields.nil?
26751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26752
+ command.query['userIp'] = user_ip unless user_ip.nil?
26753
+ execute_or_queue_command(command, &block)
26754
+ end
26755
+
26756
+ # Flags the specified instances in the managed instance group to be immediately
26757
+ # stopped. You can only specify instances that are running in this request. This
26758
+ # method reduces the targetSize and increases the targetStoppedSize of the
26759
+ # managed instance group by the number of instances that you stop. The
26760
+ # stopInstances operation is marked DONE if the stopInstances request is
26761
+ # successful. The underlying actions take additional time. You must separately
26762
+ # verify the status of the STOPPING action with the listmanagedinstances method.
26763
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
26764
+ # the Instance Group Manager, each instance will be initialized before it is
26765
+ # stopped, to give user programs time to perform necessary tasks. To initialize
26766
+ # an instance, the Instance Group Manager sets the metadata key google-compute-
26767
+ # initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
26768
+ # for the user program to signal it is ready. This is done by setting the guest
26769
+ # attribute path google-compute/initialization-state to value INITIALIZED. If
26770
+ # the instance does not signal successful initialization (does not set the guest
26771
+ # attribute to INITIALIZED) before timeout, the initialization is considered
26772
+ # failed and the instance is not stopped.
26773
+ # If the group is part of a backend service that has enabled connection draining,
26774
+ # it can take up to 60 seconds after the connection draining duration has
26775
+ # elapsed before the VM instance is suspended.
26776
+ # Stopped instances can be started using the startInstances method.
26777
+ # You can specify a maximum of 1000 instances with this method per request.
26778
+ # @param [String] project
26779
+ # Project ID for this request.
26780
+ # @param [String] region
26781
+ # Name of the region scoping this request.
26782
+ # @param [String] instance_group_manager
26783
+ # The name of the managed instance group.
26784
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
26785
+ # @param [String] request_id
26786
+ # An optional request ID to identify requests. Specify a unique request ID so
26787
+ # that if you must retry your request, the server will know to ignore the
26788
+ # request if it has already been completed.
26789
+ # For example, consider a situation where you make an initial request and the
26790
+ # request times out. If you make the request again with the same request ID, the
26791
+ # server can check if original operation with the same request ID was received,
26792
+ # and if so, will ignore the second request. This prevents clients from
26793
+ # accidentally creating duplicate commitments.
26794
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26795
+ # supported (00000000-0000-0000-0000-000000000000).
26796
+ # @param [String] fields
26797
+ # Selector specifying which fields to include in a partial response.
26798
+ # @param [String] quota_user
26799
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26800
+ # characters.
26801
+ # @param [String] user_ip
26802
+ # Deprecated. Please use quotaUser instead.
26803
+ # @param [Google::Apis::RequestOptions] options
26804
+ # Request-specific options
26805
+ #
26806
+ # @yield [result, err] Result & error if block supplied
26807
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26808
+ # @yieldparam err [StandardError] error object if request failed
26809
+ #
26810
+ # @return [Google::Apis::ComputeAlpha::Operation]
26811
+ #
26812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26815
+ def stop_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26816
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
26817
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest::Representation
26818
+ command.request_object = region_instance_group_managers_stop_instances_request_object
26819
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26820
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26821
+ command.params['project'] = project unless project.nil?
26822
+ command.params['region'] = region unless region.nil?
26823
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26824
+ command.query['requestId'] = request_id unless request_id.nil?
26825
+ command.query['fields'] = fields unless fields.nil?
26826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26827
+ command.query['userIp'] = user_ip unless user_ip.nil?
26828
+ execute_or_queue_command(command, &block)
26829
+ end
26830
+
26831
+ # Flags the specified instances in the managed instance group to be immediately
26832
+ # suspended. You can only specify instances that are running in this request.
26833
+ # This method reduces the targetSize and increases the targetSuspendedSize of
26834
+ # the managed instance group by the number of instances that you suspend. The
26835
+ # suspendInstances operation is marked DONE if the suspendInstances request is
26836
+ # successful. The underlying actions take additional time. You must separately
26837
+ # verify the status of the SUSPENDING action with the listmanagedinstances
26838
+ # method.
26839
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
26840
+ # the Instance Group Manager, each instance will be initialized before it is
26841
+ # suspended, to give user programs time to perform necessary tasks. To
26842
+ # initialize an instance, the Instance Group Manager sets the metadata key
26843
+ # google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
26844
+ # instance, and waits for the user program to signal it is ready. This is done
26845
+ # by setting the guest attribute path google-compute/initialization-state to
26846
+ # value INITIALIZED. If the instance does not signal successful initialization (
26847
+ # does not set the guest attribute to INITIALIZED) before timeout, the
26848
+ # initialization is considered failed and the instance is not suspended.
26849
+ # If the group is part of a backend service that has enabled connection draining,
26850
+ # it can take up to 60 seconds after the connection draining duration has
26851
+ # elapsed before the VM instance is suspended.
26852
+ # Suspended instances can be resumed using the resumeInstances method.
26853
+ # You can specify a maximum of 1000 instances with this method per request.
26854
+ # @param [String] project
26855
+ # Project ID for this request.
26856
+ # @param [String] region
26857
+ # Name of the region scoping this request.
26858
+ # @param [String] instance_group_manager
26859
+ # Name of the managed instance group.
26860
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
26861
+ # @param [String] request_id
26862
+ # An optional request ID to identify requests. Specify a unique request ID so
26863
+ # that if you must retry your request, the server will know to ignore the
26864
+ # request if it has already been completed.
26865
+ # For example, consider a situation where you make an initial request and the
26866
+ # request times out. If you make the request again with the same request ID, the
26867
+ # server can check if original operation with the same request ID was received,
26868
+ # and if so, will ignore the second request. This prevents clients from
26869
+ # accidentally creating duplicate commitments.
26870
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26871
+ # supported (00000000-0000-0000-0000-000000000000).
26872
+ # @param [String] fields
26873
+ # Selector specifying which fields to include in a partial response.
26874
+ # @param [String] quota_user
26875
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26876
+ # characters.
26877
+ # @param [String] user_ip
26878
+ # Deprecated. Please use quotaUser instead.
26879
+ # @param [Google::Apis::RequestOptions] options
26880
+ # Request-specific options
26881
+ #
26882
+ # @yield [result, err] Result & error if block supplied
26883
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26884
+ # @yieldparam err [StandardError] error object if request failed
26885
+ #
26886
+ # @return [Google::Apis::ComputeAlpha::Operation]
26887
+ #
26888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26891
+ def suspend_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26892
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
26893
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
26894
+ command.request_object = region_instance_group_managers_suspend_instances_request_object
26895
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26896
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26897
+ command.params['project'] = project unless project.nil?
26898
+ command.params['region'] = region unless region.nil?
26899
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26900
+ command.query['requestId'] = request_id unless request_id.nil?
26901
+ command.query['fields'] = fields unless fields.nil?
26902
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26903
+ command.query['userIp'] = user_ip unless user_ip.nil?
26904
+ execute_or_queue_command(command, &block)
26905
+ end
26906
+
26307
26907
  # Returns permissions that a caller has on the specified resource.
26308
26908
  # @param [String] project
26309
26909
  # Project ID for this request.
@@ -27504,6 +28104,824 @@ module Google
27504
28104
  execute_or_queue_command(command, &block)
27505
28105
  end
27506
28106
 
28107
+ # Inserts an association for the specified network firewall policy.
28108
+ # @param [String] project
28109
+ # Project ID for this request.
28110
+ # @param [String] region
28111
+ # Name of the region scoping this request.
28112
+ # @param [String] firewall_policy
28113
+ # Name of the firewall policy to update.
28114
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
28115
+ # @param [Boolean] replace_existing_association
28116
+ # Indicates whether or not to replace it if an association already exists. This
28117
+ # is false by default, in which case an error will be returned if an association
28118
+ # already exists.
28119
+ # @param [String] request_id
28120
+ # An optional request ID to identify requests. Specify a unique request ID so
28121
+ # that if you must retry your request, the server will know to ignore the
28122
+ # request if it has already been completed.
28123
+ # For example, consider a situation where you make an initial request and the
28124
+ # request times out. If you make the request again with the same request ID, the
28125
+ # server can check if original operation with the same request ID was received,
28126
+ # and if so, will ignore the second request. This prevents clients from
28127
+ # accidentally creating duplicate commitments.
28128
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28129
+ # supported (00000000-0000-0000-0000-000000000000).
28130
+ # @param [String] fields
28131
+ # Selector specifying which fields to include in a partial response.
28132
+ # @param [String] quota_user
28133
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28134
+ # characters.
28135
+ # @param [String] user_ip
28136
+ # Deprecated. Please use quotaUser instead.
28137
+ # @param [Google::Apis::RequestOptions] options
28138
+ # Request-specific options
28139
+ #
28140
+ # @yield [result, err] Result & error if block supplied
28141
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28142
+ # @yieldparam err [StandardError] error object if request failed
28143
+ #
28144
+ # @return [Google::Apis::ComputeAlpha::Operation]
28145
+ #
28146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28149
+ def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28150
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
28151
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
28152
+ command.request_object = firewall_policy_association_object
28153
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28154
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28155
+ command.params['project'] = project unless project.nil?
28156
+ command.params['region'] = region unless region.nil?
28157
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28158
+ command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
28159
+ command.query['requestId'] = request_id unless request_id.nil?
28160
+ command.query['fields'] = fields unless fields.nil?
28161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28162
+ command.query['userIp'] = user_ip unless user_ip.nil?
28163
+ execute_or_queue_command(command, &block)
28164
+ end
28165
+
28166
+ # Inserts a rule into a network firewall policy.
28167
+ # @param [String] project
28168
+ # Project ID for this request.
28169
+ # @param [String] region
28170
+ # Name of the region scoping this request.
28171
+ # @param [String] firewall_policy
28172
+ # Name of the firewall policy to update.
28173
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
28174
+ # @param [String] request_id
28175
+ # An optional request ID to identify requests. Specify a unique request ID so
28176
+ # that if you must retry your request, the server will know to ignore the
28177
+ # request if it has already been completed.
28178
+ # For example, consider a situation where you make an initial request and the
28179
+ # request times out. If you make the request again with the same request ID, the
28180
+ # server can check if original operation with the same request ID was received,
28181
+ # and if so, will ignore the second request. This prevents clients from
28182
+ # accidentally creating duplicate commitments.
28183
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28184
+ # supported (00000000-0000-0000-0000-000000000000).
28185
+ # @param [String] fields
28186
+ # Selector specifying which fields to include in a partial response.
28187
+ # @param [String] quota_user
28188
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28189
+ # characters.
28190
+ # @param [String] user_ip
28191
+ # Deprecated. Please use quotaUser instead.
28192
+ # @param [Google::Apis::RequestOptions] options
28193
+ # Request-specific options
28194
+ #
28195
+ # @yield [result, err] Result & error if block supplied
28196
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28197
+ # @yieldparam err [StandardError] error object if request failed
28198
+ #
28199
+ # @return [Google::Apis::ComputeAlpha::Operation]
28200
+ #
28201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28204
+ def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28205
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
28206
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
28207
+ command.request_object = firewall_policy_rule_object
28208
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28209
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28210
+ command.params['project'] = project unless project.nil?
28211
+ command.params['region'] = region unless region.nil?
28212
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28213
+ command.query['requestId'] = request_id unless request_id.nil?
28214
+ command.query['fields'] = fields unless fields.nil?
28215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28216
+ command.query['userIp'] = user_ip unless user_ip.nil?
28217
+ execute_or_queue_command(command, &block)
28218
+ end
28219
+
28220
+ # Copies rules to the specified network firewall policy.
28221
+ # @param [String] project
28222
+ # Project ID for this request.
28223
+ # @param [String] region
28224
+ # Name of the region scoping this request.
28225
+ # @param [String] firewall_policy
28226
+ # Name of the firewall policy to update.
28227
+ # @param [String] request_id
28228
+ # An optional request ID to identify requests. Specify a unique request ID so
28229
+ # that if you must retry your request, the server will know to ignore the
28230
+ # request if it has already been completed.
28231
+ # For example, consider a situation where you make an initial request and the
28232
+ # request times out. If you make the request again with the same request ID, the
28233
+ # server can check if original operation with the same request ID was received,
28234
+ # and if so, will ignore the second request. This prevents clients from
28235
+ # accidentally creating duplicate commitments.
28236
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28237
+ # supported (00000000-0000-0000-0000-000000000000).
28238
+ # @param [String] source_firewall_policy
28239
+ # The firewall policy from which to copy rules.
28240
+ # @param [String] fields
28241
+ # Selector specifying which fields to include in a partial response.
28242
+ # @param [String] quota_user
28243
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28244
+ # characters.
28245
+ # @param [String] user_ip
28246
+ # Deprecated. Please use quotaUser instead.
28247
+ # @param [Google::Apis::RequestOptions] options
28248
+ # Request-specific options
28249
+ #
28250
+ # @yield [result, err] Result & error if block supplied
28251
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28252
+ # @yieldparam err [StandardError] error object if request failed
28253
+ #
28254
+ # @return [Google::Apis::ComputeAlpha::Operation]
28255
+ #
28256
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28257
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28258
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28259
+ def clone_region_network_firewall_policy_rules(project, region, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28260
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules', options)
28261
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28262
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28263
+ command.params['project'] = project unless project.nil?
28264
+ command.params['region'] = region unless region.nil?
28265
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28266
+ command.query['requestId'] = request_id unless request_id.nil?
28267
+ command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
28268
+ command.query['fields'] = fields unless fields.nil?
28269
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28270
+ command.query['userIp'] = user_ip unless user_ip.nil?
28271
+ execute_or_queue_command(command, &block)
28272
+ end
28273
+
28274
+ # Deletes the specified network firewall policy.
28275
+ # @param [String] project
28276
+ # Project ID for this request.
28277
+ # @param [String] region
28278
+ # Name of the region scoping this request.
28279
+ # @param [String] firewall_policy
28280
+ # Name of the firewall policy to delete.
28281
+ # @param [String] request_id
28282
+ # An optional request ID to identify requests. Specify a unique request ID so
28283
+ # that if you must retry your request, the server will know to ignore the
28284
+ # request if it has already been completed.
28285
+ # For example, consider a situation where you make an initial request and the
28286
+ # request times out. If you make the request again with the same request ID, the
28287
+ # server can check if original operation with the same request ID was received,
28288
+ # and if so, will ignore the second request. This prevents clients from
28289
+ # accidentally creating duplicate commitments.
28290
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28291
+ # supported (00000000-0000-0000-0000-000000000000).
28292
+ # @param [String] fields
28293
+ # Selector specifying which fields to include in a partial response.
28294
+ # @param [String] quota_user
28295
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28296
+ # characters.
28297
+ # @param [String] user_ip
28298
+ # Deprecated. Please use quotaUser instead.
28299
+ # @param [Google::Apis::RequestOptions] options
28300
+ # Request-specific options
28301
+ #
28302
+ # @yield [result, err] Result & error if block supplied
28303
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28304
+ # @yieldparam err [StandardError] error object if request failed
28305
+ #
28306
+ # @return [Google::Apis::ComputeAlpha::Operation]
28307
+ #
28308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28311
+ def delete_region_network_firewall_policy(project, region, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28312
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
28313
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28314
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28315
+ command.params['project'] = project unless project.nil?
28316
+ command.params['region'] = region unless region.nil?
28317
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28318
+ command.query['requestId'] = request_id unless request_id.nil?
28319
+ command.query['fields'] = fields unless fields.nil?
28320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28321
+ command.query['userIp'] = user_ip unless user_ip.nil?
28322
+ execute_or_queue_command(command, &block)
28323
+ end
28324
+
28325
+ # Returns the specified network firewall policy.
28326
+ # @param [String] project
28327
+ # Project ID for this request.
28328
+ # @param [String] region
28329
+ # Name of the region scoping this request.
28330
+ # @param [String] firewall_policy
28331
+ # Name of the firewall policy to get.
28332
+ # @param [String] fields
28333
+ # Selector specifying which fields to include in a partial response.
28334
+ # @param [String] quota_user
28335
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28336
+ # characters.
28337
+ # @param [String] user_ip
28338
+ # Deprecated. Please use quotaUser instead.
28339
+ # @param [Google::Apis::RequestOptions] options
28340
+ # Request-specific options
28341
+ #
28342
+ # @yield [result, err] Result & error if block supplied
28343
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
28344
+ # @yieldparam err [StandardError] error object if request failed
28345
+ #
28346
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicy]
28347
+ #
28348
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28349
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28350
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28351
+ def get_region_network_firewall_policy(project, region, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28352
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
28353
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
28354
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
28355
+ command.params['project'] = project unless project.nil?
28356
+ command.params['region'] = region unless region.nil?
28357
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28358
+ command.query['fields'] = fields unless fields.nil?
28359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28360
+ command.query['userIp'] = user_ip unless user_ip.nil?
28361
+ execute_or_queue_command(command, &block)
28362
+ end
28363
+
28364
+ # Gets an association with the specified name.
28365
+ # @param [String] project
28366
+ # Project ID for this request.
28367
+ # @param [String] region
28368
+ # Name of the region scoping this request.
28369
+ # @param [String] firewall_policy
28370
+ # Name of the firewall policy to which the queried association belongs.
28371
+ # @param [String] name
28372
+ # The name of the association to get from the firewall policy.
28373
+ # @param [String] fields
28374
+ # Selector specifying which fields to include in a partial response.
28375
+ # @param [String] quota_user
28376
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28377
+ # characters.
28378
+ # @param [String] user_ip
28379
+ # Deprecated. Please use quotaUser instead.
28380
+ # @param [Google::Apis::RequestOptions] options
28381
+ # Request-specific options
28382
+ #
28383
+ # @yield [result, err] Result & error if block supplied
28384
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
28385
+ # @yieldparam err [StandardError] error object if request failed
28386
+ #
28387
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
28388
+ #
28389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28392
+ def get_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28393
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation', options)
28394
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
28395
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
28396
+ command.params['project'] = project unless project.nil?
28397
+ command.params['region'] = region unless region.nil?
28398
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28399
+ command.query['name'] = name unless name.nil?
28400
+ command.query['fields'] = fields unless fields.nil?
28401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28402
+ command.query['userIp'] = user_ip unless user_ip.nil?
28403
+ execute_or_queue_command(command, &block)
28404
+ end
28405
+
28406
+ # Gets the access control policy for a resource. May be empty if no such policy
28407
+ # or resource exists.
28408
+ # @param [String] project
28409
+ # Project ID for this request.
28410
+ # @param [String] region
28411
+ # The name of the region for this request.
28412
+ # @param [String] resource
28413
+ # Name or id of the resource for this request.
28414
+ # @param [Fixnum] options_requested_policy_version
28415
+ # Requested IAM Policy version.
28416
+ # @param [String] fields
28417
+ # Selector specifying which fields to include in a partial response.
28418
+ # @param [String] quota_user
28419
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28420
+ # characters.
28421
+ # @param [String] user_ip
28422
+ # Deprecated. Please use quotaUser instead.
28423
+ # @param [Google::Apis::RequestOptions] options
28424
+ # Request-specific options
28425
+ #
28426
+ # @yield [result, err] Result & error if block supplied
28427
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
28428
+ # @yieldparam err [StandardError] error object if request failed
28429
+ #
28430
+ # @return [Google::Apis::ComputeAlpha::Policy]
28431
+ #
28432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28435
+ def get_region_network_firewall_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28436
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy', options)
28437
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
28438
+ command.response_class = Google::Apis::ComputeAlpha::Policy
28439
+ command.params['project'] = project unless project.nil?
28440
+ command.params['region'] = region unless region.nil?
28441
+ command.params['resource'] = resource unless resource.nil?
28442
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
28443
+ command.query['fields'] = fields unless fields.nil?
28444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28445
+ command.query['userIp'] = user_ip unless user_ip.nil?
28446
+ execute_or_queue_command(command, &block)
28447
+ end
28448
+
28449
+ # Gets a rule of the specified priority.
28450
+ # @param [String] project
28451
+ # Project ID for this request.
28452
+ # @param [String] region
28453
+ # Name of the region scoping this request.
28454
+ # @param [String] firewall_policy
28455
+ # Name of the firewall policy to which the queried rule belongs.
28456
+ # @param [Fixnum] priority
28457
+ # The priority of the rule to get from the firewall policy.
28458
+ # @param [String] fields
28459
+ # Selector specifying which fields to include in a partial response.
28460
+ # @param [String] quota_user
28461
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28462
+ # characters.
28463
+ # @param [String] user_ip
28464
+ # Deprecated. Please use quotaUser instead.
28465
+ # @param [Google::Apis::RequestOptions] options
28466
+ # Request-specific options
28467
+ #
28468
+ # @yield [result, err] Result & error if block supplied
28469
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
28470
+ # @yieldparam err [StandardError] error object if request failed
28471
+ #
28472
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
28473
+ #
28474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28477
+ def get_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28478
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule', options)
28479
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
28480
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
28481
+ command.params['project'] = project unless project.nil?
28482
+ command.params['region'] = region unless region.nil?
28483
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28484
+ command.query['priority'] = priority unless priority.nil?
28485
+ command.query['fields'] = fields unless fields.nil?
28486
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28487
+ command.query['userIp'] = user_ip unless user_ip.nil?
28488
+ execute_or_queue_command(command, &block)
28489
+ end
28490
+
28491
+ # Creates a new network firewall policy in the specified project and region.
28492
+ # @param [String] project
28493
+ # Project ID for this request.
28494
+ # @param [String] region
28495
+ # Name of the region scoping this request.
28496
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
28497
+ # @param [String] request_id
28498
+ # An optional request ID to identify requests. Specify a unique request ID so
28499
+ # that if you must retry your request, the server will know to ignore the
28500
+ # request if it has already been completed.
28501
+ # For example, consider a situation where you make an initial request and the
28502
+ # request times out. If you make the request again with the same request ID, the
28503
+ # server can check if original operation with the same request ID was received,
28504
+ # and if so, will ignore the second request. This prevents clients from
28505
+ # accidentally creating duplicate commitments.
28506
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28507
+ # supported (00000000-0000-0000-0000-000000000000).
28508
+ # @param [String] fields
28509
+ # Selector specifying which fields to include in a partial response.
28510
+ # @param [String] quota_user
28511
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28512
+ # characters.
28513
+ # @param [String] user_ip
28514
+ # Deprecated. Please use quotaUser instead.
28515
+ # @param [Google::Apis::RequestOptions] options
28516
+ # Request-specific options
28517
+ #
28518
+ # @yield [result, err] Result & error if block supplied
28519
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28520
+ # @yieldparam err [StandardError] error object if request failed
28521
+ #
28522
+ # @return [Google::Apis::ComputeAlpha::Operation]
28523
+ #
28524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28527
+ def insert_region_network_firewall_policy(project, region, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28528
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies', options)
28529
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
28530
+ command.request_object = firewall_policy_object
28531
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28532
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28533
+ command.params['project'] = project unless project.nil?
28534
+ command.params['region'] = region unless region.nil?
28535
+ command.query['requestId'] = request_id unless request_id.nil?
28536
+ command.query['fields'] = fields unless fields.nil?
28537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28538
+ command.query['userIp'] = user_ip unless user_ip.nil?
28539
+ execute_or_queue_command(command, &block)
28540
+ end
28541
+
28542
+ # Lists all the network firewall policies that have been configured for the
28543
+ # specified project in the given region.
28544
+ # @param [String] project
28545
+ # Project ID for this request.
28546
+ # @param [String] region
28547
+ # Name of the region scoping this request.
28548
+ # @param [String] filter
28549
+ # A filter expression that filters resources listed in the response. The
28550
+ # expression must specify the field name, a comparison operator, and the value
28551
+ # that you want to use for filtering. The value must be a string, a number, or a
28552
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
28553
+ # For example, if you are filtering Compute Engine instances, you can exclude
28554
+ # instances named `example-instance` by specifying `name != example-instance`.
28555
+ # You can also filter nested fields. For example, you could specify `scheduling.
28556
+ # automaticRestart = false` to include instances only if they are not scheduled
28557
+ # for automatic restarts. You can use filtering on nested fields to filter based
28558
+ # on resource labels.
28559
+ # To filter on multiple expressions, provide each separate expression within
28560
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
28561
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
28562
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
28563
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
28564
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
28565
+ # @param [Fixnum] max_results
28566
+ # The maximum number of results per page that should be returned. If the number
28567
+ # of available results is larger than `maxResults`, Compute Engine returns a `
28568
+ # nextPageToken` that can be used to get the next page of results in subsequent
28569
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
28570
+ # @param [String] order_by
28571
+ # Sorts list results by a certain order. By default, results are returned in
28572
+ # alphanumerical order based on the resource name.
28573
+ # You can also sort results in descending order based on the creation timestamp
28574
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
28575
+ # creationTimestamp` field in reverse chronological order (newest result first).
28576
+ # Use this to sort resources like operations so that the newest operation is
28577
+ # returned first.
28578
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
28579
+ # @param [String] page_token
28580
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
28581
+ # by a previous list request to get the next page of results.
28582
+ # @param [Boolean] return_partial_success
28583
+ # Opt-in for partial success behavior which provides partial results in case of
28584
+ # failure. The default value is false.
28585
+ # @param [String] fields
28586
+ # Selector specifying which fields to include in a partial response.
28587
+ # @param [String] quota_user
28588
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28589
+ # characters.
28590
+ # @param [String] user_ip
28591
+ # Deprecated. Please use quotaUser instead.
28592
+ # @param [Google::Apis::RequestOptions] options
28593
+ # Request-specific options
28594
+ #
28595
+ # @yield [result, err] Result & error if block supplied
28596
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
28597
+ # @yieldparam err [StandardError] error object if request failed
28598
+ #
28599
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
28600
+ #
28601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28604
+ def list_region_network_firewall_policies(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)
28605
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
28606
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
28607
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
28608
+ command.params['project'] = project unless project.nil?
28609
+ command.params['region'] = region unless region.nil?
28610
+ command.query['filter'] = filter unless filter.nil?
28611
+ command.query['maxResults'] = max_results unless max_results.nil?
28612
+ command.query['orderBy'] = order_by unless order_by.nil?
28613
+ command.query['pageToken'] = page_token unless page_token.nil?
28614
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
28615
+ command.query['fields'] = fields unless fields.nil?
28616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28617
+ command.query['userIp'] = user_ip unless user_ip.nil?
28618
+ execute_or_queue_command(command, &block)
28619
+ end
28620
+
28621
+ # Patches the specified network firewall policy.
28622
+ # @param [String] project
28623
+ # Project ID for this request.
28624
+ # @param [String] region
28625
+ # Name of the region scoping this request.
28626
+ # @param [String] firewall_policy
28627
+ # Name of the firewall policy to update.
28628
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
28629
+ # @param [String] request_id
28630
+ # An optional request ID to identify requests. Specify a unique request ID so
28631
+ # that if you must retry your request, the server will know to ignore the
28632
+ # request if it has already been completed.
28633
+ # For example, consider a situation where you make an initial request and the
28634
+ # request times out. If you make the request again with the same request ID, the
28635
+ # server can check if original operation with the same request ID was received,
28636
+ # and if so, will ignore the second request. This prevents clients from
28637
+ # accidentally creating duplicate commitments.
28638
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28639
+ # supported (00000000-0000-0000-0000-000000000000).
28640
+ # @param [String] fields
28641
+ # Selector specifying which fields to include in a partial response.
28642
+ # @param [String] quota_user
28643
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28644
+ # characters.
28645
+ # @param [String] user_ip
28646
+ # Deprecated. Please use quotaUser instead.
28647
+ # @param [Google::Apis::RequestOptions] options
28648
+ # Request-specific options
28649
+ #
28650
+ # @yield [result, err] Result & error if block supplied
28651
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28652
+ # @yieldparam err [StandardError] error object if request failed
28653
+ #
28654
+ # @return [Google::Apis::ComputeAlpha::Operation]
28655
+ #
28656
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28657
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28658
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28659
+ def patch_region_network_firewall_policy(project, region, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28660
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
28661
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
28662
+ command.request_object = firewall_policy_object
28663
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28664
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28665
+ command.params['project'] = project unless project.nil?
28666
+ command.params['region'] = region unless region.nil?
28667
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28668
+ command.query['requestId'] = request_id unless request_id.nil?
28669
+ command.query['fields'] = fields unless fields.nil?
28670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28671
+ command.query['userIp'] = user_ip unless user_ip.nil?
28672
+ execute_or_queue_command(command, &block)
28673
+ end
28674
+
28675
+ # Patches a rule of the specified priority.
28676
+ # @param [String] project
28677
+ # Project ID for this request.
28678
+ # @param [String] region
28679
+ # Name of the region scoping this request.
28680
+ # @param [String] firewall_policy
28681
+ # Name of the firewall policy to update.
28682
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
28683
+ # @param [Fixnum] priority
28684
+ # The priority of the rule to patch.
28685
+ # @param [String] request_id
28686
+ # An optional request ID to identify requests. Specify a unique request ID so
28687
+ # that if you must retry your request, the server will know to ignore the
28688
+ # request if it has already been completed.
28689
+ # For example, consider a situation where you make an initial request and the
28690
+ # request times out. If you make the request again with the same request ID, the
28691
+ # server can check if original operation with the same request ID was received,
28692
+ # and if so, will ignore the second request. This prevents clients from
28693
+ # accidentally creating duplicate commitments.
28694
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28695
+ # supported (00000000-0000-0000-0000-000000000000).
28696
+ # @param [String] fields
28697
+ # Selector specifying which fields to include in a partial response.
28698
+ # @param [String] quota_user
28699
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28700
+ # characters.
28701
+ # @param [String] user_ip
28702
+ # Deprecated. Please use quotaUser instead.
28703
+ # @param [Google::Apis::RequestOptions] options
28704
+ # Request-specific options
28705
+ #
28706
+ # @yield [result, err] Result & error if block supplied
28707
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28708
+ # @yieldparam err [StandardError] error object if request failed
28709
+ #
28710
+ # @return [Google::Apis::ComputeAlpha::Operation]
28711
+ #
28712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28715
+ def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28716
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
28717
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
28718
+ command.request_object = firewall_policy_rule_object
28719
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28720
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28721
+ command.params['project'] = project unless project.nil?
28722
+ command.params['region'] = region unless region.nil?
28723
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28724
+ command.query['priority'] = priority unless priority.nil?
28725
+ command.query['requestId'] = request_id unless request_id.nil?
28726
+ command.query['fields'] = fields unless fields.nil?
28727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28728
+ command.query['userIp'] = user_ip unless user_ip.nil?
28729
+ execute_or_queue_command(command, &block)
28730
+ end
28731
+
28732
+ # Removes an association for the specified network firewall policy.
28733
+ # @param [String] project
28734
+ # Project ID for this request.
28735
+ # @param [String] region
28736
+ # Name of the region scoping this request.
28737
+ # @param [String] firewall_policy
28738
+ # Name of the firewall policy to update.
28739
+ # @param [String] name
28740
+ # Name for the association that will be removed.
28741
+ # @param [String] request_id
28742
+ # An optional request ID to identify requests. Specify a unique request ID so
28743
+ # that if you must retry your request, the server will know to ignore the
28744
+ # request if it has already been completed.
28745
+ # For example, consider a situation where you make an initial request and the
28746
+ # request times out. If you make the request again with the same request ID, the
28747
+ # server can check if original operation with the same request ID was received,
28748
+ # and if so, will ignore the second request. This prevents clients from
28749
+ # accidentally creating duplicate commitments.
28750
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28751
+ # supported (00000000-0000-0000-0000-000000000000).
28752
+ # @param [String] fields
28753
+ # Selector specifying which fields to include in a partial response.
28754
+ # @param [String] quota_user
28755
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28756
+ # characters.
28757
+ # @param [String] user_ip
28758
+ # Deprecated. Please use quotaUser instead.
28759
+ # @param [Google::Apis::RequestOptions] options
28760
+ # Request-specific options
28761
+ #
28762
+ # @yield [result, err] Result & error if block supplied
28763
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28764
+ # @yieldparam err [StandardError] error object if request failed
28765
+ #
28766
+ # @return [Google::Apis::ComputeAlpha::Operation]
28767
+ #
28768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28771
+ def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28772
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
28773
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28774
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28775
+ command.params['project'] = project unless project.nil?
28776
+ command.params['region'] = region unless region.nil?
28777
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28778
+ command.query['name'] = name unless name.nil?
28779
+ command.query['requestId'] = request_id unless request_id.nil?
28780
+ command.query['fields'] = fields unless fields.nil?
28781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28782
+ command.query['userIp'] = user_ip unless user_ip.nil?
28783
+ execute_or_queue_command(command, &block)
28784
+ end
28785
+
28786
+ # Deletes a rule of the specified priority.
28787
+ # @param [String] project
28788
+ # Project ID for this request.
28789
+ # @param [String] region
28790
+ # Name of the region scoping this request.
28791
+ # @param [String] firewall_policy
28792
+ # Name of the firewall policy to update.
28793
+ # @param [Fixnum] priority
28794
+ # The priority of the rule to remove from the firewall policy.
28795
+ # @param [String] request_id
28796
+ # An optional request ID to identify requests. Specify a unique request ID so
28797
+ # that if you must retry your request, the server will know to ignore the
28798
+ # request if it has already been completed.
28799
+ # For example, consider a situation where you make an initial request and the
28800
+ # request times out. If you make the request again with the same request ID, the
28801
+ # server can check if original operation with the same request ID was received,
28802
+ # and if so, will ignore the second request. This prevents clients from
28803
+ # accidentally creating duplicate commitments.
28804
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28805
+ # supported (00000000-0000-0000-0000-000000000000).
28806
+ # @param [String] fields
28807
+ # Selector specifying which fields to include in a partial response.
28808
+ # @param [String] quota_user
28809
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28810
+ # characters.
28811
+ # @param [String] user_ip
28812
+ # Deprecated. Please use quotaUser instead.
28813
+ # @param [Google::Apis::RequestOptions] options
28814
+ # Request-specific options
28815
+ #
28816
+ # @yield [result, err] Result & error if block supplied
28817
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28818
+ # @yieldparam err [StandardError] error object if request failed
28819
+ #
28820
+ # @return [Google::Apis::ComputeAlpha::Operation]
28821
+ #
28822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28825
+ def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28826
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
28827
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28828
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28829
+ command.params['project'] = project unless project.nil?
28830
+ command.params['region'] = region unless region.nil?
28831
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28832
+ command.query['priority'] = priority unless priority.nil?
28833
+ command.query['requestId'] = request_id unless request_id.nil?
28834
+ command.query['fields'] = fields unless fields.nil?
28835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28836
+ command.query['userIp'] = user_ip unless user_ip.nil?
28837
+ execute_or_queue_command(command, &block)
28838
+ end
28839
+
28840
+ # Sets the access control policy on the specified resource. Replaces any
28841
+ # existing policy.
28842
+ # @param [String] project
28843
+ # Project ID for this request.
28844
+ # @param [String] region
28845
+ # The name of the region for this request.
28846
+ # @param [String] resource
28847
+ # Name or id of the resource for this request.
28848
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
28849
+ # @param [String] fields
28850
+ # Selector specifying which fields to include in a partial response.
28851
+ # @param [String] quota_user
28852
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28853
+ # characters.
28854
+ # @param [String] user_ip
28855
+ # Deprecated. Please use quotaUser instead.
28856
+ # @param [Google::Apis::RequestOptions] options
28857
+ # Request-specific options
28858
+ #
28859
+ # @yield [result, err] Result & error if block supplied
28860
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
28861
+ # @yieldparam err [StandardError] error object if request failed
28862
+ #
28863
+ # @return [Google::Apis::ComputeAlpha::Policy]
28864
+ #
28865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28868
+ def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28869
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
28870
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
28871
+ command.request_object = region_set_policy_request_object
28872
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
28873
+ command.response_class = Google::Apis::ComputeAlpha::Policy
28874
+ command.params['project'] = project unless project.nil?
28875
+ command.params['region'] = region unless region.nil?
28876
+ command.params['resource'] = resource unless resource.nil?
28877
+ command.query['fields'] = fields unless fields.nil?
28878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28879
+ command.query['userIp'] = user_ip unless user_ip.nil?
28880
+ execute_or_queue_command(command, &block)
28881
+ end
28882
+
28883
+ # Returns permissions that a caller has on the specified resource.
28884
+ # @param [String] project
28885
+ # Project ID for this request.
28886
+ # @param [String] region
28887
+ # The name of the region for this request.
28888
+ # @param [String] resource
28889
+ # Name or id of the resource for this request.
28890
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
28891
+ # @param [String] fields
28892
+ # Selector specifying which fields to include in a partial response.
28893
+ # @param [String] quota_user
28894
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28895
+ # characters.
28896
+ # @param [String] user_ip
28897
+ # Deprecated. Please use quotaUser instead.
28898
+ # @param [Google::Apis::RequestOptions] options
28899
+ # Request-specific options
28900
+ #
28901
+ # @yield [result, err] Result & error if block supplied
28902
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
28903
+ # @yieldparam err [StandardError] error object if request failed
28904
+ #
28905
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
28906
+ #
28907
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28908
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28909
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28910
+ def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28911
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
28912
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
28913
+ command.request_object = test_permissions_request_object
28914
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
28915
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
28916
+ command.params['project'] = project unless project.nil?
28917
+ command.params['region'] = region unless region.nil?
28918
+ command.params['resource'] = resource unless resource.nil?
28919
+ command.query['fields'] = fields unless fields.nil?
28920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28921
+ command.query['userIp'] = user_ip unless user_ip.nil?
28922
+ execute_or_queue_command(command, &block)
28923
+ end
28924
+
27507
28925
  # Retrieves the list of all NotificationEndpoint resources, regional and global,
27508
28926
  # available to the specified project.
27509
28927
  # @param [String] project