google-apis-compute_alpha 0.5.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2246,7 +2246,8 @@ module Google
2246
2246
  execute_or_queue_command(command, &block)
2247
2247
  end
2248
2248
 
2249
- # Sets the security policy for the specified backend service.
2249
+ # Sets the Google Cloud Armor security policy for the specified backend service.
2250
+ # For more information, see Google Cloud Armor Overview
2250
2251
  # @param [String] project
2251
2252
  # Project ID for this request.
2252
2253
  # @param [String] backend_service
@@ -5331,6 +5332,417 @@ module Google
5331
5332
  execute_or_queue_command(command, &block)
5332
5333
  end
5333
5334
 
5335
+ # Retrieves an aggregated list of future reservations.
5336
+ # @param [String] project
5337
+ # Project ID for this request.
5338
+ # @param [String] filter
5339
+ # A filter expression that filters resources listed in the response. The
5340
+ # expression must specify the field name, a comparison operator, and the value
5341
+ # that you want to use for filtering. The value must be a string, a number, or a
5342
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
5343
+ # For example, if you are filtering Compute Engine instances, you can exclude
5344
+ # instances named `example-instance` by specifying `name != example-instance`.
5345
+ # You can also filter nested fields. For example, you could specify `scheduling.
5346
+ # automaticRestart = false` to include instances only if they are not scheduled
5347
+ # for automatic restarts. You can use filtering on nested fields to filter based
5348
+ # on resource labels.
5349
+ # To filter on multiple expressions, provide each separate expression within
5350
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
5351
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
5352
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
5353
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
5354
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
5355
+ # @param [Boolean] include_all_scopes
5356
+ # Indicates whether every visible scope for each scope type (zone, region,
5357
+ # global) should be included in the response. For new resource types added after
5358
+ # this field, the flag has no effect as new resource types will always include
5359
+ # every visible scope for each scope type in response. For resource types which
5360
+ # predate this field, if this flag is omitted or false, only scopes of the scope
5361
+ # types where the resource type is expected to be found will be included.
5362
+ # @param [Fixnum] max_results
5363
+ # The maximum number of results per page that should be returned. If the number
5364
+ # of available results is larger than `maxResults`, Compute Engine returns a `
5365
+ # nextPageToken` that can be used to get the next page of results in subsequent
5366
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
5367
+ # @param [String] order_by
5368
+ # Sorts list results by a certain order. By default, results are returned in
5369
+ # alphanumerical order based on the resource name.
5370
+ # You can also sort results in descending order based on the creation timestamp
5371
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
5372
+ # creationTimestamp` field in reverse chronological order (newest result first).
5373
+ # Use this to sort resources like operations so that the newest operation is
5374
+ # returned first.
5375
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
5376
+ # @param [String] page_token
5377
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
5378
+ # by a previous list request to get the next page of results.
5379
+ # @param [Boolean] return_partial_success
5380
+ # Opt-in for partial success behavior which provides partial results in case of
5381
+ # failure. The default value is false.
5382
+ # @param [String] fields
5383
+ # Selector specifying which fields to include in a partial response.
5384
+ # @param [String] quota_user
5385
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5386
+ # characters.
5387
+ # @param [String] user_ip
5388
+ # Deprecated. Please use quotaUser instead.
5389
+ # @param [Google::Apis::RequestOptions] options
5390
+ # Request-specific options
5391
+ #
5392
+ # @yield [result, err] Result & error if block supplied
5393
+ # @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse] parsed result object
5394
+ # @yieldparam err [StandardError] error object if request failed
5395
+ #
5396
+ # @return [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse]
5397
+ #
5398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5401
+ def aggregated_future_reservation_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5402
+ command = make_simple_command(:get, 'projects/{project}/aggregated/futureReservations', options)
5403
+ command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse::Representation
5404
+ command.response_class = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse
5405
+ command.params['project'] = project unless project.nil?
5406
+ command.query['filter'] = filter unless filter.nil?
5407
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
5408
+ command.query['maxResults'] = max_results unless max_results.nil?
5409
+ command.query['orderBy'] = order_by unless order_by.nil?
5410
+ command.query['pageToken'] = page_token unless page_token.nil?
5411
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
5412
+ command.query['fields'] = fields unless fields.nil?
5413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5414
+ command.query['userIp'] = user_ip unless user_ip.nil?
5415
+ execute_or_queue_command(command, &block)
5416
+ end
5417
+
5418
+ # Cancel the specified future reservation.
5419
+ # @param [String] project
5420
+ # Project ID for this request.
5421
+ # @param [String] zone
5422
+ # Name of the zone for this request. Name should conform to RFC1035.
5423
+ # @param [String] future_reservation
5424
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
5425
+ # @param [String] request_id
5426
+ # An optional request ID to identify requests. Specify a unique request ID so
5427
+ # that if you must retry your request, the server will know to ignore the
5428
+ # request if it has already been completed.
5429
+ # For example, consider a situation where you make an initial request and the
5430
+ # request times out. If you make the request again with the same request ID, the
5431
+ # server can check if original operation with the same request ID was received,
5432
+ # and if so, will ignore the second request. This prevents clients from
5433
+ # accidentally creating duplicate commitments.
5434
+ # The request ID must be a valid UUID with the exception that zero UUID is not
5435
+ # supported (00000000-0000-0000-0000-000000000000).
5436
+ # @param [String] fields
5437
+ # Selector specifying which fields to include in a partial response.
5438
+ # @param [String] quota_user
5439
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5440
+ # characters.
5441
+ # @param [String] user_ip
5442
+ # Deprecated. Please use quotaUser instead.
5443
+ # @param [Google::Apis::RequestOptions] options
5444
+ # Request-specific options
5445
+ #
5446
+ # @yield [result, err] Result & error if block supplied
5447
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5448
+ # @yieldparam err [StandardError] error object if request failed
5449
+ #
5450
+ # @return [Google::Apis::ComputeAlpha::Operation]
5451
+ #
5452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5455
+ def cancel_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5456
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel', options)
5457
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5458
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5459
+ command.params['project'] = project unless project.nil?
5460
+ command.params['zone'] = zone unless zone.nil?
5461
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
5462
+ command.query['requestId'] = request_id unless request_id.nil?
5463
+ command.query['fields'] = fields unless fields.nil?
5464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5465
+ command.query['userIp'] = user_ip unless user_ip.nil?
5466
+ execute_or_queue_command(command, &block)
5467
+ end
5468
+
5469
+ # Deletes the specified future reservation.
5470
+ # @param [String] project
5471
+ # Project ID for this request.
5472
+ # @param [String] zone
5473
+ # Name of the zone for this request. Name should conform to RFC1035.
5474
+ # @param [String] future_reservation
5475
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
5476
+ # @param [String] request_id
5477
+ # An optional request ID to identify requests. Specify a unique request ID so
5478
+ # that if you must retry your request, the server will know to ignore the
5479
+ # request if it has already been completed.
5480
+ # For example, consider a situation where you make an initial request and the
5481
+ # request times out. If you make the request again with the same request ID, the
5482
+ # server can check if original operation with the same request ID was received,
5483
+ # and if so, will ignore the second request. This prevents clients from
5484
+ # accidentally creating duplicate commitments.
5485
+ # The request ID must be a valid UUID with the exception that zero UUID is not
5486
+ # supported (00000000-0000-0000-0000-000000000000).
5487
+ # @param [String] fields
5488
+ # Selector specifying which fields to include in a partial response.
5489
+ # @param [String] quota_user
5490
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5491
+ # characters.
5492
+ # @param [String] user_ip
5493
+ # Deprecated. Please use quotaUser instead.
5494
+ # @param [Google::Apis::RequestOptions] options
5495
+ # Request-specific options
5496
+ #
5497
+ # @yield [result, err] Result & error if block supplied
5498
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5499
+ # @yieldparam err [StandardError] error object if request failed
5500
+ #
5501
+ # @return [Google::Apis::ComputeAlpha::Operation]
5502
+ #
5503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5506
+ def delete_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5507
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
5508
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5509
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5510
+ command.params['project'] = project unless project.nil?
5511
+ command.params['zone'] = zone unless zone.nil?
5512
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
5513
+ command.query['requestId'] = request_id unless request_id.nil?
5514
+ command.query['fields'] = fields unless fields.nil?
5515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5516
+ command.query['userIp'] = user_ip unless user_ip.nil?
5517
+ execute_or_queue_command(command, &block)
5518
+ end
5519
+
5520
+ # Retrieves information about the specified future reservation.
5521
+ # @param [String] project
5522
+ # Project ID for this request.
5523
+ # @param [String] zone
5524
+ # Name of the zone for this request. Name should conform to RFC1035.
5525
+ # @param [String] future_reservation
5526
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
5527
+ # @param [String] fields
5528
+ # Selector specifying which fields to include in a partial response.
5529
+ # @param [String] quota_user
5530
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5531
+ # characters.
5532
+ # @param [String] user_ip
5533
+ # Deprecated. Please use quotaUser instead.
5534
+ # @param [Google::Apis::RequestOptions] options
5535
+ # Request-specific options
5536
+ #
5537
+ # @yield [result, err] Result & error if block supplied
5538
+ # @yieldparam result [Google::Apis::ComputeAlpha::FutureReservation] parsed result object
5539
+ # @yieldparam err [StandardError] error object if request failed
5540
+ #
5541
+ # @return [Google::Apis::ComputeAlpha::FutureReservation]
5542
+ #
5543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5546
+ def get_future_reservation(project, zone, future_reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5547
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
5548
+ command.response_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
5549
+ command.response_class = Google::Apis::ComputeAlpha::FutureReservation
5550
+ command.params['project'] = project unless project.nil?
5551
+ command.params['zone'] = zone unless zone.nil?
5552
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
5553
+ command.query['fields'] = fields unless fields.nil?
5554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5555
+ command.query['userIp'] = user_ip unless user_ip.nil?
5556
+ execute_or_queue_command(command, &block)
5557
+ end
5558
+
5559
+ # Creates a new Future Reservation.
5560
+ # @param [String] project
5561
+ # Project ID for this request.
5562
+ # @param [String] zone
5563
+ # Name of the zone for this request. Name should conform to RFC1035.
5564
+ # @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
5565
+ # @param [String] request_id
5566
+ # An optional request ID to identify requests. Specify a unique request ID so
5567
+ # that if you must retry your request, the server will know to ignore the
5568
+ # request if it has already been completed.
5569
+ # For example, consider a situation where you make an initial request and the
5570
+ # request times out. If you make the request again with the same request ID, the
5571
+ # server can check if original operation with the same request ID was received,
5572
+ # and if so, will ignore the second request. This prevents clients from
5573
+ # accidentally creating duplicate commitments.
5574
+ # The request ID must be a valid UUID with the exception that zero UUID is not
5575
+ # supported (00000000-0000-0000-0000-000000000000).
5576
+ # @param [String] fields
5577
+ # Selector specifying which fields to include in a partial response.
5578
+ # @param [String] quota_user
5579
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5580
+ # characters.
5581
+ # @param [String] user_ip
5582
+ # Deprecated. Please use quotaUser instead.
5583
+ # @param [Google::Apis::RequestOptions] options
5584
+ # Request-specific options
5585
+ #
5586
+ # @yield [result, err] Result & error if block supplied
5587
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5588
+ # @yieldparam err [StandardError] error object if request failed
5589
+ #
5590
+ # @return [Google::Apis::ComputeAlpha::Operation]
5591
+ #
5592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5595
+ def insert_future_reservation(project, zone, future_reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5596
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations', options)
5597
+ command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
5598
+ command.request_object = future_reservation_object
5599
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5600
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5601
+ command.params['project'] = project unless project.nil?
5602
+ command.params['zone'] = zone unless zone.nil?
5603
+ command.query['requestId'] = request_id unless request_id.nil?
5604
+ command.query['fields'] = fields unless fields.nil?
5605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5606
+ command.query['userIp'] = user_ip unless user_ip.nil?
5607
+ execute_or_queue_command(command, &block)
5608
+ end
5609
+
5610
+ # A list of all the future reservations that have been configured for the
5611
+ # specified project in specified zone.
5612
+ # @param [String] project
5613
+ # Project ID for this request.
5614
+ # @param [String] zone
5615
+ # Name of the zone for this request. Name should conform to RFC1035.
5616
+ # @param [String] filter
5617
+ # A filter expression that filters resources listed in the response. The
5618
+ # expression must specify the field name, a comparison operator, and the value
5619
+ # that you want to use for filtering. The value must be a string, a number, or a
5620
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
5621
+ # For example, if you are filtering Compute Engine instances, you can exclude
5622
+ # instances named `example-instance` by specifying `name != example-instance`.
5623
+ # You can also filter nested fields. For example, you could specify `scheduling.
5624
+ # automaticRestart = false` to include instances only if they are not scheduled
5625
+ # for automatic restarts. You can use filtering on nested fields to filter based
5626
+ # on resource labels.
5627
+ # To filter on multiple expressions, provide each separate expression within
5628
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
5629
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
5630
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
5631
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
5632
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
5633
+ # @param [Fixnum] max_results
5634
+ # The maximum number of results per page that should be returned. If the number
5635
+ # of available results is larger than `maxResults`, Compute Engine returns a `
5636
+ # nextPageToken` that can be used to get the next page of results in subsequent
5637
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
5638
+ # @param [String] order_by
5639
+ # Sorts list results by a certain order. By default, results are returned in
5640
+ # alphanumerical order based on the resource name.
5641
+ # You can also sort results in descending order based on the creation timestamp
5642
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
5643
+ # creationTimestamp` field in reverse chronological order (newest result first).
5644
+ # Use this to sort resources like operations so that the newest operation is
5645
+ # returned first.
5646
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
5647
+ # @param [String] page_token
5648
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
5649
+ # by a previous list request to get the next page of results.
5650
+ # @param [Boolean] return_partial_success
5651
+ # Opt-in for partial success behavior which provides partial results in case of
5652
+ # failure. The default value is false.
5653
+ # @param [String] fields
5654
+ # Selector specifying which fields to include in a partial response.
5655
+ # @param [String] quota_user
5656
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5657
+ # characters.
5658
+ # @param [String] user_ip
5659
+ # Deprecated. Please use quotaUser instead.
5660
+ # @param [Google::Apis::RequestOptions] options
5661
+ # Request-specific options
5662
+ #
5663
+ # @yield [result, err] Result & error if block supplied
5664
+ # @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsListResponse] parsed result object
5665
+ # @yieldparam err [StandardError] error object if request failed
5666
+ #
5667
+ # @return [Google::Apis::ComputeAlpha::FutureReservationsListResponse]
5668
+ #
5669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5672
+ def list_future_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5673
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations', options)
5674
+ command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsListResponse::Representation
5675
+ command.response_class = Google::Apis::ComputeAlpha::FutureReservationsListResponse
5676
+ command.params['project'] = project unless project.nil?
5677
+ command.params['zone'] = zone unless zone.nil?
5678
+ command.query['filter'] = filter unless filter.nil?
5679
+ command.query['maxResults'] = max_results unless max_results.nil?
5680
+ command.query['orderBy'] = order_by unless order_by.nil?
5681
+ command.query['pageToken'] = page_token unless page_token.nil?
5682
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
5683
+ command.query['fields'] = fields unless fields.nil?
5684
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5685
+ command.query['userIp'] = user_ip unless user_ip.nil?
5686
+ execute_or_queue_command(command, &block)
5687
+ end
5688
+
5689
+ # Updates the specified future reservation.
5690
+ # @param [String] project
5691
+ # Project ID for this request.
5692
+ # @param [String] zone
5693
+ # Name of the zone for this request. Name should conform to RFC1035.
5694
+ # @param [String] future_reservation
5695
+ # Name of the reservation to update. Name should conform to RFC1035.
5696
+ # @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
5697
+ # @param [Array<String>, String] paths
5698
+ # The set of field mask paths.
5699
+ # @param [String] request_id
5700
+ # An optional request ID to identify requests. Specify a unique request ID so
5701
+ # that if you must retry your request, the server will know to ignore the
5702
+ # request if it has already been completed.
5703
+ # For example, consider a situation where you make an initial request and the
5704
+ # request times out. If you make the request again with the same request ID, the
5705
+ # server can check if original operation with the same request ID was received,
5706
+ # and if so, will ignore the second request. This prevents clients from
5707
+ # accidentally creating duplicate commitments.
5708
+ # The request ID must be a valid UUID with the exception that zero UUID is not
5709
+ # supported (00000000-0000-0000-0000-000000000000).
5710
+ # @param [String] fields
5711
+ # Selector specifying which fields to include in a partial response.
5712
+ # @param [String] quota_user
5713
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5714
+ # characters.
5715
+ # @param [String] user_ip
5716
+ # Deprecated. Please use quotaUser instead.
5717
+ # @param [Google::Apis::RequestOptions] options
5718
+ # Request-specific options
5719
+ #
5720
+ # @yield [result, err] Result & error if block supplied
5721
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5722
+ # @yieldparam err [StandardError] error object if request failed
5723
+ #
5724
+ # @return [Google::Apis::ComputeAlpha::Operation]
5725
+ #
5726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5729
+ def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5730
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
5731
+ command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
5732
+ command.request_object = future_reservation_object
5733
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5734
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5735
+ command.params['project'] = project unless project.nil?
5736
+ command.params['zone'] = zone unless zone.nil?
5737
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
5738
+ command.query['paths'] = paths unless paths.nil?
5739
+ command.query['requestId'] = request_id unless request_id.nil?
5740
+ command.query['fields'] = fields unless fields.nil?
5741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5742
+ command.query['userIp'] = user_ip unless user_ip.nil?
5743
+ execute_or_queue_command(command, &block)
5744
+ end
5745
+
5334
5746
  # Deletes the specified address resource.
5335
5747
  # @param [String] project
5336
5748
  # Project ID for this request.
@@ -9790,12 +10202,12 @@ module Google
9790
10202
  execute_or_queue_command(command, &block)
9791
10203
  end
9792
10204
 
9793
- # Flags the specified instances in the managed instance group to be immediately
9794
- # recreated. The instances are deleted and recreated using the current instance
9795
- # template for the managed instance group. This operation is marked as DONE when
9796
- # the flag is set even if the instances have not yet been recreated. You must
9797
- # separately verify the status of the recreating action with the
9798
- # listmanagedinstances method.
10205
+ # Flags the specified VM instances in the managed instance group to be
10206
+ # immediately recreated. Each instance is recreated using the group's current
10207
+ # configuration. This operation is marked as DONE when the flag is set even if
10208
+ # the instances have not yet been recreated. You must separately verify the
10209
+ # status of each instance by checking its currentAction field; for more
10210
+ # information, see Checking the status of managed instances.
9799
10211
  # If the group is part of a backend service that has enabled connection draining,
9800
10212
  # it can take up to 60 seconds after the connection draining duration has
9801
10213
  # elapsed before the VM instance is removed or deleted.
@@ -9989,6 +10401,71 @@ module Google
9989
10401
  execute_or_queue_command(command, &block)
9990
10402
  end
9991
10403
 
10404
+ # Flags the specified instances in the managed instance group to be resumed.
10405
+ # This method increases the targetSize and decreases the targetSuspendedSize of
10406
+ # the managed instance group by the number of instances that you resume. The
10407
+ # resumeInstances operation is marked DONE if the resumeInstances request is
10408
+ # successful. The underlying actions take additional time. You must separately
10409
+ # verify the status of the RESUMING action with the listmanagedinstances method.
10410
+ # In this request, you can only specify instances that are suspended. For
10411
+ # example, if an instance was previously suspended using the suspendInstances
10412
+ # method, it can be resumed using the resumeInstances method.
10413
+ # If a health check is attached to the managed instance group, the specified
10414
+ # instances will be verified as healthy after they are resumed.
10415
+ # You can specify a maximum of 1000 instances with this method per request.
10416
+ # @param [String] project
10417
+ # Project ID for this request.
10418
+ # @param [String] zone
10419
+ # The name of the zone where the managed instance group is located.
10420
+ # @param [String] instance_group_manager
10421
+ # The name of the managed instance group.
10422
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest] instance_group_managers_resume_instances_request_object
10423
+ # @param [String] request_id
10424
+ # An optional request ID to identify requests. Specify a unique request ID so
10425
+ # that if you must retry your request, the server will know to ignore the
10426
+ # request if it has already been completed.
10427
+ # For example, consider a situation where you make an initial request and the
10428
+ # request times out. If you make the request again with the same request ID, the
10429
+ # server can check if original operation with the same request ID was received,
10430
+ # and if so, will ignore the second request. This prevents clients from
10431
+ # accidentally creating duplicate commitments.
10432
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10433
+ # supported (00000000-0000-0000-0000-000000000000).
10434
+ # @param [String] fields
10435
+ # Selector specifying which fields to include in a partial response.
10436
+ # @param [String] quota_user
10437
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10438
+ # characters.
10439
+ # @param [String] user_ip
10440
+ # Deprecated. Please use quotaUser instead.
10441
+ # @param [Google::Apis::RequestOptions] options
10442
+ # Request-specific options
10443
+ #
10444
+ # @yield [result, err] Result & error if block supplied
10445
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10446
+ # @yieldparam err [StandardError] error object if request failed
10447
+ #
10448
+ # @return [Google::Apis::ComputeAlpha::Operation]
10449
+ #
10450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10453
+ 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)
10454
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
10455
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest::Representation
10456
+ command.request_object = instance_group_managers_resume_instances_request_object
10457
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10458
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10459
+ command.params['project'] = project unless project.nil?
10460
+ command.params['zone'] = zone unless zone.nil?
10461
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10462
+ command.query['requestId'] = request_id unless request_id.nil?
10463
+ command.query['fields'] = fields unless fields.nil?
10464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10465
+ command.query['userIp'] = user_ip unless user_ip.nil?
10466
+ execute_or_queue_command(command, &block)
10467
+ end
10468
+
9992
10469
  # Motifies the autohealing policy for the instances in this managed instance
9993
10470
  # group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch
9994
10471
  # instead.
@@ -10161,6 +10638,222 @@ module Google
10161
10638
  execute_or_queue_command(command, &block)
10162
10639
  end
10163
10640
 
10641
+ # Flags the specified instances in the managed instance group to be started.
10642
+ # This method increases the targetSize and decreases the targetStoppedSize of
10643
+ # the managed instance group by the number of instances that you start. The
10644
+ # startInstances operation is marked DONE if the startInstances request is
10645
+ # successful. The underlying actions take additional time. You must separately
10646
+ # verify the status of the STARTING action with the listmanagedinstances method.
10647
+ # In this request, you can only specify instances that are stopped. For example,
10648
+ # if an instance was previously stopped using the stopInstances method, it can
10649
+ # be started using the startInstances method.
10650
+ # If a health check is attached to the managed instance group, the specified
10651
+ # instances will be verified as healthy after they are started.
10652
+ # You can specify a maximum of 1000 instances with this method per request.
10653
+ # @param [String] project
10654
+ # Project ID for this request.
10655
+ # @param [String] zone
10656
+ # The name of the zone where the managed instance group is located.
10657
+ # @param [String] instance_group_manager
10658
+ # The name of the managed instance group.
10659
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest] instance_group_managers_start_instances_request_object
10660
+ # @param [String] request_id
10661
+ # An optional request ID to identify requests. Specify a unique request ID so
10662
+ # that if you must retry your request, the server will know to ignore the
10663
+ # request if it has already been completed.
10664
+ # For example, consider a situation where you make an initial request and the
10665
+ # request times out. If you make the request again with the same request ID, the
10666
+ # server can check if original operation with the same request ID was received,
10667
+ # and if so, will ignore the second request. This prevents clients from
10668
+ # accidentally creating duplicate commitments.
10669
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10670
+ # supported (00000000-0000-0000-0000-000000000000).
10671
+ # @param [String] fields
10672
+ # Selector specifying which fields to include in a partial response.
10673
+ # @param [String] quota_user
10674
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10675
+ # characters.
10676
+ # @param [String] user_ip
10677
+ # Deprecated. Please use quotaUser instead.
10678
+ # @param [Google::Apis::RequestOptions] options
10679
+ # Request-specific options
10680
+ #
10681
+ # @yield [result, err] Result & error if block supplied
10682
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10683
+ # @yieldparam err [StandardError] error object if request failed
10684
+ #
10685
+ # @return [Google::Apis::ComputeAlpha::Operation]
10686
+ #
10687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10690
+ 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)
10691
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
10692
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest::Representation
10693
+ command.request_object = instance_group_managers_start_instances_request_object
10694
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10695
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10696
+ command.params['project'] = project unless project.nil?
10697
+ command.params['zone'] = zone unless zone.nil?
10698
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10699
+ command.query['requestId'] = request_id unless request_id.nil?
10700
+ command.query['fields'] = fields unless fields.nil?
10701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10702
+ command.query['userIp'] = user_ip unless user_ip.nil?
10703
+ execute_or_queue_command(command, &block)
10704
+ end
10705
+
10706
+ # Flags the specified instances in the managed instance group to be immediately
10707
+ # stopped. You can only specify instances that are running in this request. This
10708
+ # method reduces the targetSize and increases the targetStoppedSize of the
10709
+ # managed instance group by the number of instances that you stop. The
10710
+ # stopInstances operation is marked DONE if the stopInstances request is
10711
+ # successful. The underlying actions take additional time. You must separately
10712
+ # verify the status of the STOPPING action with the listmanagedinstances method.
10713
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
10714
+ # the Instance Group Manager, each instance will be initialized before it is
10715
+ # stopped, to give user programs time to perform necessary tasks. To initialize
10716
+ # an instance, the Instance Group Manager sets the metadata key google-compute-
10717
+ # initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
10718
+ # for the user program to signal it is ready. This is done by setting the guest
10719
+ # attribute path google-compute/initialization-state to value INITIALIZED. If
10720
+ # the instance does not signal successful initialization (does not set the guest
10721
+ # attribute to INITIALIZED) before timeout, the initialization is considered
10722
+ # failed and the instance is not stopped.
10723
+ # If the group is part of a backend service that has enabled connection draining,
10724
+ # it can take up to 60 seconds after the connection draining duration has
10725
+ # elapsed before the VM instance is suspended.
10726
+ # Stopped instances can be started using the startInstances method.
10727
+ # You can specify a maximum of 1000 instances with this method per request.
10728
+ # @param [String] project
10729
+ # Project ID for this request.
10730
+ # @param [String] zone
10731
+ # The name of the zone where the managed instance group is located.
10732
+ # @param [String] instance_group_manager
10733
+ # The name of the managed instance group.
10734
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest] instance_group_managers_stop_instances_request_object
10735
+ # @param [String] request_id
10736
+ # An optional request ID to identify requests. Specify a unique request ID so
10737
+ # that if you must retry your request, the server will know to ignore the
10738
+ # request if it has already been completed.
10739
+ # For example, consider a situation where you make an initial request and the
10740
+ # request times out. If you make the request again with the same request ID, the
10741
+ # server can check if original operation with the same request ID was received,
10742
+ # and if so, will ignore the second request. This prevents clients from
10743
+ # accidentally creating duplicate commitments.
10744
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10745
+ # supported (00000000-0000-0000-0000-000000000000).
10746
+ # @param [String] fields
10747
+ # Selector specifying which fields to include in a partial response.
10748
+ # @param [String] quota_user
10749
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10750
+ # characters.
10751
+ # @param [String] user_ip
10752
+ # Deprecated. Please use quotaUser instead.
10753
+ # @param [Google::Apis::RequestOptions] options
10754
+ # Request-specific options
10755
+ #
10756
+ # @yield [result, err] Result & error if block supplied
10757
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10758
+ # @yieldparam err [StandardError] error object if request failed
10759
+ #
10760
+ # @return [Google::Apis::ComputeAlpha::Operation]
10761
+ #
10762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10765
+ 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)
10766
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
10767
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest::Representation
10768
+ command.request_object = instance_group_managers_stop_instances_request_object
10769
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10770
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10771
+ command.params['project'] = project unless project.nil?
10772
+ command.params['zone'] = zone unless zone.nil?
10773
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10774
+ command.query['requestId'] = request_id unless request_id.nil?
10775
+ command.query['fields'] = fields unless fields.nil?
10776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10777
+ command.query['userIp'] = user_ip unless user_ip.nil?
10778
+ execute_or_queue_command(command, &block)
10779
+ end
10780
+
10781
+ # Flags the specified instances in the managed instance group to be immediately
10782
+ # suspended. You can only specify instances that are running in this request.
10783
+ # This method reduces the targetSize and increases the targetSuspendedSize of
10784
+ # the managed instance group by the number of instances that you suspend. The
10785
+ # suspendInstances operation is marked DONE if the suspendInstances request is
10786
+ # successful. The underlying actions take additional time. You must separately
10787
+ # verify the status of the SUSPENDING action with the listmanagedinstances
10788
+ # method.
10789
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
10790
+ # the Instance Group Manager, each instance will be initialized before it is
10791
+ # suspended, to give user programs time to perform necessary tasks. To
10792
+ # initialize an instance, the Instance Group Manager sets the metadata key
10793
+ # google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
10794
+ # instance, and waits for the user program to signal it is ready. This is done
10795
+ # by setting the guest attribute path google-compute/initialization-state to
10796
+ # value INITIALIZED. If the instance does not signal successful initialization (
10797
+ # does not set the guest attribute to INITIALIZED) before timeout, the
10798
+ # initialization is considered failed and the instance is not suspended.
10799
+ # If the group is part of a backend service that has enabled connection draining,
10800
+ # it can take up to 60 seconds after the connection draining duration has
10801
+ # elapsed before the VM instance is suspended.
10802
+ # Suspended instances can be resumed using the resumeInstances method.
10803
+ # You can specify a maximum of 1000 instances with this method per request.
10804
+ # @param [String] project
10805
+ # Project ID for this request.
10806
+ # @param [String] zone
10807
+ # The name of the zone where the managed instance group is located.
10808
+ # @param [String] instance_group_manager
10809
+ # The name of the managed instance group.
10810
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest] instance_group_managers_suspend_instances_request_object
10811
+ # @param [String] request_id
10812
+ # An optional request ID to identify requests. Specify a unique request ID so
10813
+ # that if you must retry your request, the server will know to ignore the
10814
+ # request if it has already been completed.
10815
+ # For example, consider a situation where you make an initial request and the
10816
+ # request times out. If you make the request again with the same request ID, the
10817
+ # server can check if original operation with the same request ID was received,
10818
+ # and if so, will ignore the second request. This prevents clients from
10819
+ # accidentally creating duplicate commitments.
10820
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10821
+ # supported (00000000-0000-0000-0000-000000000000).
10822
+ # @param [String] fields
10823
+ # Selector specifying which fields to include in a partial response.
10824
+ # @param [String] quota_user
10825
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10826
+ # characters.
10827
+ # @param [String] user_ip
10828
+ # Deprecated. Please use quotaUser instead.
10829
+ # @param [Google::Apis::RequestOptions] options
10830
+ # Request-specific options
10831
+ #
10832
+ # @yield [result, err] Result & error if block supplied
10833
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10834
+ # @yieldparam err [StandardError] error object if request failed
10835
+ #
10836
+ # @return [Google::Apis::ComputeAlpha::Operation]
10837
+ #
10838
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10839
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10840
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10841
+ 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)
10842
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
10843
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest::Representation
10844
+ command.request_object = instance_group_managers_suspend_instances_request_object
10845
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10846
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10847
+ command.params['project'] = project unless project.nil?
10848
+ command.params['zone'] = zone unless zone.nil?
10849
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10850
+ command.query['requestId'] = request_id unless request_id.nil?
10851
+ command.query['fields'] = fields unless fields.nil?
10852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10853
+ command.query['userIp'] = user_ip unless user_ip.nil?
10854
+ execute_or_queue_command(command, &block)
10855
+ end
10856
+
10164
10857
  # Returns permissions that a caller has on the specified resource.
10165
10858
  # @param [String] project
10166
10859
  # Project ID for this request.
@@ -11568,8 +12261,8 @@ module Google
11568
12261
  execute_or_queue_command(command, &block)
11569
12262
  end
11570
12263
 
11571
- # Deletes the specified Instance resource. For more information, see Stopping or
11572
- # Deleting an Instance.
12264
+ # Deletes the specified Instance resource. For more information, see Deleting an
12265
+ # instance.
11573
12266
  # @param [String] project
11574
12267
  # Project ID for this request.
11575
12268
  # @param [String] zone
@@ -12093,6 +12786,9 @@ module Google
12093
12786
  # accidentally creating duplicate commitments.
12094
12787
  # The request ID must be a valid UUID with the exception that zero UUID is not
12095
12788
  # supported (00000000-0000-0000-0000-000000000000).
12789
+ # @param [Array<String>, String] secure_tags
12790
+ # Secure tags to apply to this instance. These can be later modified by the
12791
+ # update method. Maximum number of secure tags allowed is 50.
12096
12792
  # @param [String] source_instance_template
12097
12793
  # Specifies instance template to create the instance.
12098
12794
  # This field is optional. It can be a full or partial URL. For example, the
@@ -12128,7 +12824,7 @@ module Google
12128
12824
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12129
12825
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12130
12826
  # @raise [Google::Apis::AuthorizationError] Authorization is required
12131
- def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12827
+ def insert_instance(project, zone, instance_object = nil, request_id: nil, secure_tags: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12132
12828
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options)
12133
12829
  command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
12134
12830
  command.request_object = instance_object
@@ -12137,6 +12833,7 @@ module Google
12137
12833
  command.params['project'] = project unless project.nil?
12138
12834
  command.params['zone'] = zone unless zone.nil?
12139
12835
  command.query['requestId'] = request_id unless request_id.nil?
12836
+ command.query['secureTags'] = secure_tags unless secure_tags.nil?
12140
12837
  command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
12141
12838
  command.query['sourceMachineImage'] = source_machine_image unless source_machine_image.nil?
12142
12839
  command.query['fields'] = fields unless fields.nil?
@@ -12468,6 +13165,44 @@ module Google
12468
13165
  execute_or_queue_command(command, &block)
12469
13166
  end
12470
13167
 
13168
+ # TODO(b/180520210): Add IAM permission for this API. Sends diagnostic interrupt
13169
+ # to the instance.
13170
+ # @param [String] project
13171
+ # Project ID for this request.
13172
+ # @param [String] zone
13173
+ # The name of the zone for this request.
13174
+ # @param [String] instance
13175
+ # Name of the instance scoping this request.
13176
+ # @param [String] fields
13177
+ # Selector specifying which fields to include in a partial response.
13178
+ # @param [String] quota_user
13179
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
13180
+ # characters.
13181
+ # @param [String] user_ip
13182
+ # Deprecated. Please use quotaUser instead.
13183
+ # @param [Google::Apis::RequestOptions] options
13184
+ # Request-specific options
13185
+ #
13186
+ # @yield [result, err] Result & error if block supplied
13187
+ # @yieldparam result [NilClass] No result returned for this method
13188
+ # @yieldparam err [StandardError] error object if request failed
13189
+ #
13190
+ # @return [void]
13191
+ #
13192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13195
+ def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13196
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
13197
+ command.params['project'] = project unless project.nil?
13198
+ command.params['zone'] = zone unless zone.nil?
13199
+ command.params['instance'] = instance unless instance.nil?
13200
+ command.query['fields'] = fields unless fields.nil?
13201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13202
+ command.query['userIp'] = user_ip unless user_ip.nil?
13203
+ execute_or_queue_command(command, &block)
13204
+ end
13205
+
12471
13206
  # Sets deletion protection on the instance.
12472
13207
  # @param [String] project
12473
13208
  # Project ID for this request.
@@ -13547,6 +14282,10 @@ module Google
13547
14282
  # @param [String] instance
13548
14283
  # Name of the instance resource to update.
13549
14284
  # @param [Google::Apis::ComputeAlpha::Instance] instance_object
14285
+ # @param [Boolean] clear_secure_tag
14286
+ # Whether to clear secure tags from the instance.
14287
+ # This property is mutually exclusive with the secure_tag property; you can only
14288
+ # specify one or the other, but not both.
13550
14289
  # @param [String] minimal_action
13551
14290
  # Specifies the action to take when updating an instance even if the updated
13552
14291
  # properties do not require it. If not specified, then Compute Engine acts based
@@ -13567,6 +14306,9 @@ module Google
13567
14306
  # accidentally creating duplicate commitments.
13568
14307
  # The request ID must be a valid UUID with the exception that zero UUID is not
13569
14308
  # supported (00000000-0000-0000-0000-000000000000).
14309
+ # @param [Array<String>, String] secure_tags
14310
+ # Secure tags to apply to this instance. Maximum number of secure tags allowed
14311
+ # is 50.
13570
14312
  # @param [String] fields
13571
14313
  # Selector specifying which fields to include in a partial response.
13572
14314
  # @param [String] quota_user
@@ -13586,7 +14328,7 @@ module Google
13586
14328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13587
14329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13588
14330
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13589
- def update_instance(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14331
+ def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, secure_tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13590
14332
  command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
13591
14333
  command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
13592
14334
  command.request_object = instance_object
@@ -13595,9 +14337,11 @@ module Google
13595
14337
  command.params['project'] = project unless project.nil?
13596
14338
  command.params['zone'] = zone unless zone.nil?
13597
14339
  command.params['instance'] = instance unless instance.nil?
14340
+ command.query['clearSecureTag'] = clear_secure_tag unless clear_secure_tag.nil?
13598
14341
  command.query['minimalAction'] = minimal_action unless minimal_action.nil?
13599
14342
  command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
13600
14343
  command.query['requestId'] = request_id unless request_id.nil?
14344
+ command.query['secureTags'] = secure_tags unless secure_tags.nil?
13601
14345
  command.query['fields'] = fields unless fields.nil?
13602
14346
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13603
14347
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -16085,9 +16829,10 @@ module Google
16085
16829
  execute_or_queue_command(command, &block)
16086
16830
  end
16087
16831
 
16088
- # Retrieves the list of network endpoint groups and sorts them by zone.
16832
+ # Retrieves the list of all NetworkEdgeSecurityService resources available to
16833
+ # the specified project.
16089
16834
  # @param [String] project
16090
- # Project ID for this request.
16835
+ # Name of the project scoping this request.
16091
16836
  # @param [String] filter
16092
16837
  # A filter expression that filters resources listed in the response. The
16093
16838
  # expression must specify the field name, a comparison operator, and the value
@@ -16143,18 +16888,18 @@ module Google
16143
16888
  # Request-specific options
16144
16889
  #
16145
16890
  # @yield [result, err] Result & error if block supplied
16146
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList] parsed result object
16891
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList] parsed result object
16147
16892
  # @yieldparam err [StandardError] error object if request failed
16148
16893
  #
16149
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList]
16894
+ # @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList]
16150
16895
  #
16151
16896
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16152
16897
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16153
16898
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16154
- def aggregated_network_endpoint_group_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16155
- command = make_simple_command(:get, 'projects/{project}/aggregated/networkEndpointGroups', options)
16156
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList::Representation
16157
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList
16899
+ def aggregated_network_edge_security_service_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16900
+ command = make_simple_command(:get, 'projects/{project}/aggregated/networkEdgeSecurityServices', options)
16901
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList::Representation
16902
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList
16158
16903
  command.params['project'] = project unless project.nil?
16159
16904
  command.query['filter'] = filter unless filter.nil?
16160
16905
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -16168,16 +16913,301 @@ module Google
16168
16913
  execute_or_queue_command(command, &block)
16169
16914
  end
16170
16915
 
16171
- # Attach a list of network endpoints to the specified network endpoint group.
16916
+ # Deletes the specified service.
16172
16917
  # @param [String] project
16173
16918
  # Project ID for this request.
16174
- # @param [String] zone
16175
- # The name of the zone where the network endpoint group is located. It should
16176
- # comply with RFC1035.
16177
- # @param [String] network_endpoint_group
16178
- # The name of the network endpoint group where you are attaching network
16179
- # endpoints to. It should comply with RFC1035.
16180
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsAttachEndpointsRequest] network_endpoint_groups_attach_endpoints_request_object
16919
+ # @param [String] region
16920
+ # Name of the region scoping this request.
16921
+ # @param [String] network_edge_security_service
16922
+ # Name of the network edge security service to delete.
16923
+ # @param [String] request_id
16924
+ # An optional request ID to identify requests. Specify a unique request ID so
16925
+ # that if you must retry your request, the server will know to ignore the
16926
+ # request if it has already been completed.
16927
+ # For example, consider a situation where you make an initial request and the
16928
+ # request times out. If you make the request again with the same request ID, the
16929
+ # server can check if original operation with the same request ID was received,
16930
+ # and if so, will ignore the second request. This prevents clients from
16931
+ # accidentally creating duplicate commitments.
16932
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16933
+ # supported (00000000-0000-0000-0000-000000000000).
16934
+ # @param [String] fields
16935
+ # Selector specifying which fields to include in a partial response.
16936
+ # @param [String] quota_user
16937
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16938
+ # characters.
16939
+ # @param [String] user_ip
16940
+ # Deprecated. Please use quotaUser instead.
16941
+ # @param [Google::Apis::RequestOptions] options
16942
+ # Request-specific options
16943
+ #
16944
+ # @yield [result, err] Result & error if block supplied
16945
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16946
+ # @yieldparam err [StandardError] error object if request failed
16947
+ #
16948
+ # @return [Google::Apis::ComputeAlpha::Operation]
16949
+ #
16950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16953
+ def delete_network_edge_security_service(project, region, network_edge_security_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16954
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
16955
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16956
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16957
+ command.params['project'] = project unless project.nil?
16958
+ command.params['region'] = region unless region.nil?
16959
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
16960
+ command.query['requestId'] = request_id unless request_id.nil?
16961
+ command.query['fields'] = fields unless fields.nil?
16962
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16963
+ command.query['userIp'] = user_ip unless user_ip.nil?
16964
+ execute_or_queue_command(command, &block)
16965
+ end
16966
+
16967
+ # Gets a specified NetworkEdgeSecurityService.
16968
+ # @param [String] project
16969
+ # Project ID for this request.
16970
+ # @param [String] region
16971
+ # Name of the region scoping this request.
16972
+ # @param [String] network_edge_security_service
16973
+ # Name of the network edge security service to get.
16974
+ # @param [String] fields
16975
+ # Selector specifying which fields to include in a partial response.
16976
+ # @param [String] quota_user
16977
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16978
+ # characters.
16979
+ # @param [String] user_ip
16980
+ # Deprecated. Please use quotaUser instead.
16981
+ # @param [Google::Apis::RequestOptions] options
16982
+ # Request-specific options
16983
+ #
16984
+ # @yield [result, err] Result & error if block supplied
16985
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] parsed result object
16986
+ # @yieldparam err [StandardError] error object if request failed
16987
+ #
16988
+ # @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService]
16989
+ #
16990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16993
+ def get_network_edge_security_service(project, region, network_edge_security_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16994
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
16995
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
16996
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService
16997
+ command.params['project'] = project unless project.nil?
16998
+ command.params['region'] = region unless region.nil?
16999
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
17000
+ command.query['fields'] = fields unless fields.nil?
17001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17002
+ command.query['userIp'] = user_ip unless user_ip.nil?
17003
+ execute_or_queue_command(command, &block)
17004
+ end
17005
+
17006
+ # Creates a new service in the specified project using the data included in the
17007
+ # request.
17008
+ # @param [String] project
17009
+ # Project ID for this request.
17010
+ # @param [String] region
17011
+ # Name of the region scoping this request.
17012
+ # @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
17013
+ # @param [String] request_id
17014
+ # An optional request ID to identify requests. Specify a unique request ID so
17015
+ # that if you must retry your request, the server will know to ignore the
17016
+ # request if it has already been completed.
17017
+ # For example, consider a situation where you make an initial request and the
17018
+ # request times out. If you make the request again with the same request ID, the
17019
+ # server can check if original operation with the same request ID was received,
17020
+ # and if so, will ignore the second request. This prevents clients from
17021
+ # accidentally creating duplicate commitments.
17022
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17023
+ # supported (00000000-0000-0000-0000-000000000000).
17024
+ # @param [Boolean] validate_only
17025
+ # If true, the request will not be committed.
17026
+ # @param [String] fields
17027
+ # Selector specifying which fields to include in a partial response.
17028
+ # @param [String] quota_user
17029
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17030
+ # characters.
17031
+ # @param [String] user_ip
17032
+ # Deprecated. Please use quotaUser instead.
17033
+ # @param [Google::Apis::RequestOptions] options
17034
+ # Request-specific options
17035
+ #
17036
+ # @yield [result, err] Result & error if block supplied
17037
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
17038
+ # @yieldparam err [StandardError] error object if request failed
17039
+ #
17040
+ # @return [Google::Apis::ComputeAlpha::Operation]
17041
+ #
17042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17045
+ def insert_network_edge_security_service(project, region, network_edge_security_service_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17046
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEdgeSecurityServices', options)
17047
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
17048
+ command.request_object = network_edge_security_service_object
17049
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
17050
+ command.response_class = Google::Apis::ComputeAlpha::Operation
17051
+ command.params['project'] = project unless project.nil?
17052
+ command.params['region'] = region unless region.nil?
17053
+ command.query['requestId'] = request_id unless request_id.nil?
17054
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
17055
+ command.query['fields'] = fields unless fields.nil?
17056
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17057
+ command.query['userIp'] = user_ip unless user_ip.nil?
17058
+ execute_or_queue_command(command, &block)
17059
+ end
17060
+
17061
+ # Patches the specified policy with the data included in the request.
17062
+ # @param [String] project
17063
+ # Project ID for this request.
17064
+ # @param [String] region
17065
+ # Name of the region scoping this request.
17066
+ # @param [String] network_edge_security_service
17067
+ # Name of the network edge security service to update.
17068
+ # @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
17069
+ # @param [Array<String>, String] paths
17070
+ # The set of field mask paths.
17071
+ # @param [String] request_id
17072
+ # An optional request ID to identify requests. Specify a unique request ID so
17073
+ # that if you must retry your request, the server will know to ignore the
17074
+ # request if it has already been completed.
17075
+ # For example, consider a situation where you make an initial request and the
17076
+ # request times out. If you make the request again with the same request ID, the
17077
+ # server can check if original operation with the same request ID was received,
17078
+ # and if so, will ignore the second request. This prevents clients from
17079
+ # accidentally creating duplicate commitments.
17080
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17081
+ # supported (00000000-0000-0000-0000-000000000000).
17082
+ # @param [String] fields
17083
+ # Selector specifying which fields to include in a partial response.
17084
+ # @param [String] quota_user
17085
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17086
+ # characters.
17087
+ # @param [String] user_ip
17088
+ # Deprecated. Please use quotaUser instead.
17089
+ # @param [Google::Apis::RequestOptions] options
17090
+ # Request-specific options
17091
+ #
17092
+ # @yield [result, err] Result & error if block supplied
17093
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
17094
+ # @yieldparam err [StandardError] error object if request failed
17095
+ #
17096
+ # @return [Google::Apis::ComputeAlpha::Operation]
17097
+ #
17098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17101
+ def patch_network_edge_security_service(project, region, network_edge_security_service, network_edge_security_service_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17102
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
17103
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
17104
+ command.request_object = network_edge_security_service_object
17105
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
17106
+ command.response_class = Google::Apis::ComputeAlpha::Operation
17107
+ command.params['project'] = project unless project.nil?
17108
+ command.params['region'] = region unless region.nil?
17109
+ command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
17110
+ command.query['paths'] = paths unless paths.nil?
17111
+ command.query['requestId'] = request_id unless request_id.nil?
17112
+ command.query['fields'] = fields unless fields.nil?
17113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17114
+ command.query['userIp'] = user_ip unless user_ip.nil?
17115
+ execute_or_queue_command(command, &block)
17116
+ end
17117
+
17118
+ # Retrieves the list of network endpoint groups and sorts them by zone.
17119
+ # @param [String] project
17120
+ # Project ID for this request.
17121
+ # @param [String] filter
17122
+ # A filter expression that filters resources listed in the response. The
17123
+ # expression must specify the field name, a comparison operator, and the value
17124
+ # that you want to use for filtering. The value must be a string, a number, or a
17125
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17126
+ # For example, if you are filtering Compute Engine instances, you can exclude
17127
+ # instances named `example-instance` by specifying `name != example-instance`.
17128
+ # You can also filter nested fields. For example, you could specify `scheduling.
17129
+ # automaticRestart = false` to include instances only if they are not scheduled
17130
+ # for automatic restarts. You can use filtering on nested fields to filter based
17131
+ # on resource labels.
17132
+ # To filter on multiple expressions, provide each separate expression within
17133
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17134
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17135
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17136
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17137
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17138
+ # @param [Boolean] include_all_scopes
17139
+ # Indicates whether every visible scope for each scope type (zone, region,
17140
+ # global) should be included in the response. For new resource types added after
17141
+ # this field, the flag has no effect as new resource types will always include
17142
+ # every visible scope for each scope type in response. For resource types which
17143
+ # predate this field, if this flag is omitted or false, only scopes of the scope
17144
+ # types where the resource type is expected to be found will be included.
17145
+ # @param [Fixnum] max_results
17146
+ # The maximum number of results per page that should be returned. If the number
17147
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17148
+ # nextPageToken` that can be used to get the next page of results in subsequent
17149
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17150
+ # @param [String] order_by
17151
+ # Sorts list results by a certain order. By default, results are returned in
17152
+ # alphanumerical order based on the resource name.
17153
+ # You can also sort results in descending order based on the creation timestamp
17154
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17155
+ # creationTimestamp` field in reverse chronological order (newest result first).
17156
+ # Use this to sort resources like operations so that the newest operation is
17157
+ # returned first.
17158
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17159
+ # @param [String] page_token
17160
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17161
+ # by a previous list request to get the next page of results.
17162
+ # @param [Boolean] return_partial_success
17163
+ # Opt-in for partial success behavior which provides partial results in case of
17164
+ # failure. The default value is false.
17165
+ # @param [String] fields
17166
+ # Selector specifying which fields to include in a partial response.
17167
+ # @param [String] quota_user
17168
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17169
+ # characters.
17170
+ # @param [String] user_ip
17171
+ # Deprecated. Please use quotaUser instead.
17172
+ # @param [Google::Apis::RequestOptions] options
17173
+ # Request-specific options
17174
+ #
17175
+ # @yield [result, err] Result & error if block supplied
17176
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList] parsed result object
17177
+ # @yieldparam err [StandardError] error object if request failed
17178
+ #
17179
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList]
17180
+ #
17181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17184
+ def aggregated_network_endpoint_group_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17185
+ command = make_simple_command(:get, 'projects/{project}/aggregated/networkEndpointGroups', options)
17186
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList::Representation
17187
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList
17188
+ command.params['project'] = project unless project.nil?
17189
+ command.query['filter'] = filter unless filter.nil?
17190
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
17191
+ command.query['maxResults'] = max_results unless max_results.nil?
17192
+ command.query['orderBy'] = order_by unless order_by.nil?
17193
+ command.query['pageToken'] = page_token unless page_token.nil?
17194
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17195
+ command.query['fields'] = fields unless fields.nil?
17196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17197
+ command.query['userIp'] = user_ip unless user_ip.nil?
17198
+ execute_or_queue_command(command, &block)
17199
+ end
17200
+
17201
+ # Attach a list of network endpoints to the specified network endpoint group.
17202
+ # @param [String] project
17203
+ # Project ID for this request.
17204
+ # @param [String] zone
17205
+ # The name of the zone where the network endpoint group is located. It should
17206
+ # comply with RFC1035.
17207
+ # @param [String] network_endpoint_group
17208
+ # The name of the network endpoint group where you are attaching network
17209
+ # endpoints to. It should comply with RFC1035.
17210
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsAttachEndpointsRequest] network_endpoint_groups_attach_endpoints_request_object
16181
17211
  # @param [String] request_id
16182
17212
  # An optional request ID to identify requests. Specify a unique request ID so
16183
17213
  # that if you must retry your request, the server will know to ignore the
@@ -16700,6 +17730,17 @@ module Google
16700
17730
  # @param [String] firewall_policy
16701
17731
  # Name of the firewall policy to update.
16702
17732
  # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
17733
+ # @param [String] request_id
17734
+ # An optional request ID to identify requests. Specify a unique request ID so
17735
+ # that if you must retry your request, the server will know to ignore the
17736
+ # request if it has already been completed.
17737
+ # For example, consider a situation where you make an initial request and the
17738
+ # request times out. If you make the request again with the same request ID, the
17739
+ # server can check if original operation with the same request ID was received,
17740
+ # and if so, will ignore the second request. This prevents clients from
17741
+ # accidentally creating duplicate commitments.
17742
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17743
+ # supported (00000000-0000-0000-0000-000000000000).
16703
17744
  # @param [String] fields
16704
17745
  # Selector specifying which fields to include in a partial response.
16705
17746
  # @param [String] quota_user
@@ -16719,7 +17760,7 @@ module Google
16719
17760
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16720
17761
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16721
17762
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16722
- def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17763
+ def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16723
17764
  command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
16724
17765
  command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
16725
17766
  command.request_object = firewall_policy_rule_object
@@ -16727,6 +17768,7 @@ module Google
16727
17768
  command.response_class = Google::Apis::ComputeAlpha::Operation
16728
17769
  command.params['project'] = project unless project.nil?
16729
17770
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
17771
+ command.query['requestId'] = request_id unless request_id.nil?
16730
17772
  command.query['fields'] = fields unless fields.nil?
16731
17773
  command.query['quotaUser'] = quota_user unless quota_user.nil?
16732
17774
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -17169,6 +18211,17 @@ module Google
17169
18211
  # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
17170
18212
  # @param [Fixnum] priority
17171
18213
  # The priority of the rule to patch.
18214
+ # @param [String] request_id
18215
+ # An optional request ID to identify requests. Specify a unique request ID so
18216
+ # that if you must retry your request, the server will know to ignore the
18217
+ # request if it has already been completed.
18218
+ # For example, consider a situation where you make an initial request and the
18219
+ # request times out. If you make the request again with the same request ID, the
18220
+ # server can check if original operation with the same request ID was received,
18221
+ # and if so, will ignore the second request. This prevents clients from
18222
+ # accidentally creating duplicate commitments.
18223
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18224
+ # supported (00000000-0000-0000-0000-000000000000).
17172
18225
  # @param [String] fields
17173
18226
  # Selector specifying which fields to include in a partial response.
17174
18227
  # @param [String] quota_user
@@ -17188,7 +18241,7 @@ module Google
17188
18241
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17189
18242
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17190
18243
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17191
- def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18244
+ def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17192
18245
  command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options)
17193
18246
  command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
17194
18247
  command.request_object = firewall_policy_rule_object
@@ -17197,6 +18250,7 @@ module Google
17197
18250
  command.params['project'] = project unless project.nil?
17198
18251
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
17199
18252
  command.query['priority'] = priority unless priority.nil?
18253
+ command.query['requestId'] = request_id unless request_id.nil?
17200
18254
  command.query['fields'] = fields unless fields.nil?
17201
18255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17202
18256
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -17261,6 +18315,17 @@ module Google
17261
18315
  # Name of the firewall policy to update.
17262
18316
  # @param [Fixnum] priority
17263
18317
  # The priority of the rule to remove from the firewall policy.
18318
+ # @param [String] request_id
18319
+ # An optional request ID to identify requests. Specify a unique request ID so
18320
+ # that if you must retry your request, the server will know to ignore the
18321
+ # request if it has already been completed.
18322
+ # For example, consider a situation where you make an initial request and the
18323
+ # request times out. If you make the request again with the same request ID, the
18324
+ # server can check if original operation with the same request ID was received,
18325
+ # and if so, will ignore the second request. This prevents clients from
18326
+ # accidentally creating duplicate commitments.
18327
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18328
+ # supported (00000000-0000-0000-0000-000000000000).
17264
18329
  # @param [String] fields
17265
18330
  # Selector specifying which fields to include in a partial response.
17266
18331
  # @param [String] quota_user
@@ -17280,13 +18345,14 @@ module Google
17280
18345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17281
18346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17282
18347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17283
- def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18348
+ def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17284
18349
  command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options)
17285
18350
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
17286
18351
  command.response_class = Google::Apis::ComputeAlpha::Operation
17287
18352
  command.params['project'] = project unless project.nil?
17288
18353
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
17289
18354
  command.query['priority'] = priority unless priority.nil?
18355
+ command.query['requestId'] = request_id unless request_id.nil?
17290
18356
  command.query['fields'] = fields unless fields.nil?
17291
18357
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17292
18358
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -23055,6 +24121,65 @@ module Google
23055
24121
  execute_or_queue_command(command, &block)
23056
24122
  end
23057
24123
 
24124
+ # Updates the specified commitment with the data included in the request. Update
24125
+ # is performed only on selected fields included as part of update-mask. Only the
24126
+ # following fields can be modified: auto_renew.
24127
+ # @param [String] project
24128
+ # Project ID for this request.
24129
+ # @param [String] region
24130
+ # Name of the region for this request.
24131
+ # @param [String] commitment
24132
+ # Name of the commitment for which auto renew is being updated.
24133
+ # @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
24134
+ # @param [Array<String>, String] paths
24135
+ # The set of field mask paths.
24136
+ # @param [String] request_id
24137
+ # An optional request ID to identify requests. Specify a unique request ID so
24138
+ # that if you must retry your request, the server will know to ignore the
24139
+ # request if it has already been completed.
24140
+ # For example, consider a situation where you make an initial request and the
24141
+ # request times out. If you make the request again with the same request ID, the
24142
+ # server can check if original operation with the same request ID was received,
24143
+ # and if so, will ignore the second request. This prevents clients from
24144
+ # accidentally creating duplicate commitments.
24145
+ # The request ID must be a valid UUID with the exception that zero UUID is not
24146
+ # supported (00000000-0000-0000-0000-000000000000).
24147
+ # @param [String] fields
24148
+ # Selector specifying which fields to include in a partial response.
24149
+ # @param [String] quota_user
24150
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24151
+ # characters.
24152
+ # @param [String] user_ip
24153
+ # Deprecated. Please use quotaUser instead.
24154
+ # @param [Google::Apis::RequestOptions] options
24155
+ # Request-specific options
24156
+ #
24157
+ # @yield [result, err] Result & error if block supplied
24158
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
24159
+ # @yieldparam err [StandardError] error object if request failed
24160
+ #
24161
+ # @return [Google::Apis::ComputeAlpha::Operation]
24162
+ #
24163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24166
+ def update_region_commitment(project, region, commitment, commitment_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24167
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/commitments/{commitment}', options)
24168
+ command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation
24169
+ command.request_object = commitment_object
24170
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
24171
+ command.response_class = Google::Apis::ComputeAlpha::Operation
24172
+ command.params['project'] = project unless project.nil?
24173
+ command.params['region'] = region unless region.nil?
24174
+ command.params['commitment'] = commitment unless commitment.nil?
24175
+ command.query['paths'] = paths unless paths.nil?
24176
+ command.query['requestId'] = request_id unless request_id.nil?
24177
+ command.query['fields'] = fields unless fields.nil?
24178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24179
+ command.query['userIp'] = user_ip unless user_ip.nil?
24180
+ execute_or_queue_command(command, &block)
24181
+ end
24182
+
23058
24183
  # Transfers GPUs or local SSDs between reservations within commitments.
23059
24184
  # @param [String] project
23060
24185
  # Project ID for this request.
@@ -25908,12 +27033,12 @@ module Google
25908
27033
  execute_or_queue_command(command, &block)
25909
27034
  end
25910
27035
 
25911
- # Flags the specified instances in the managed instance group to be immediately
25912
- # recreated. The instances are deleted and recreated using the current instance
25913
- # template for the managed instance group. This operation is marked as DONE when
25914
- # the flag is set even if the instances have not yet been recreated. You must
25915
- # separately verify the status of the recreating action with the
25916
- # listmanagedinstances method.
27036
+ # Flags the specified VM instances in the managed instance group to be
27037
+ # immediately recreated. Each instance is recreated using the group's current
27038
+ # configuration. This operation is marked as DONE when the flag is set even if
27039
+ # the instances have not yet been recreated. You must separately verify the
27040
+ # status of each instance by checking its currentAction field; for more
27041
+ # information, see Checking the status of managed instances.
25917
27042
  # If the group is part of a backend service that has enabled connection draining,
25918
27043
  # it can take up to 60 seconds after the connection draining duration has
25919
27044
  # elapsed before the VM instance is removed or deleted.
@@ -26101,6 +27226,71 @@ module Google
26101
27226
  execute_or_queue_command(command, &block)
26102
27227
  end
26103
27228
 
27229
+ # Flags the specified instances in the managed instance group to be resumed.
27230
+ # This method increases the targetSize and decreases the targetSuspendedSize of
27231
+ # the managed instance group by the number of instances that you resume. The
27232
+ # resumeInstances operation is marked DONE if the resumeInstances request is
27233
+ # successful. The underlying actions take additional time. You must separately
27234
+ # verify the status of the RESUMING action with the listmanagedinstances method.
27235
+ # In this request, you can only specify instances that are suspended. For
27236
+ # example, if an instance was previously suspended using the suspendInstances
27237
+ # method, it can be resumed using the resumeInstances method.
27238
+ # If a health check is attached to the managed instance group, the specified
27239
+ # instances will be verified as healthy after they are resumed.
27240
+ # You can specify a maximum of 1000 instances with this method per request.
27241
+ # @param [String] project
27242
+ # Project ID for this request.
27243
+ # @param [String] region
27244
+ # Name of the region scoping this request.
27245
+ # @param [String] instance_group_manager
27246
+ # Name of the managed instance group.
27247
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
27248
+ # @param [String] request_id
27249
+ # An optional request ID to identify requests. Specify a unique request ID so
27250
+ # that if you must retry your request, the server will know to ignore the
27251
+ # request if it has already been completed.
27252
+ # For example, consider a situation where you make an initial request and the
27253
+ # request times out. If you make the request again with the same request ID, the
27254
+ # server can check if original operation with the same request ID was received,
27255
+ # and if so, will ignore the second request. This prevents clients from
27256
+ # accidentally creating duplicate commitments.
27257
+ # The request ID must be a valid UUID with the exception that zero UUID is not
27258
+ # supported (00000000-0000-0000-0000-000000000000).
27259
+ # @param [String] fields
27260
+ # Selector specifying which fields to include in a partial response.
27261
+ # @param [String] quota_user
27262
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
27263
+ # characters.
27264
+ # @param [String] user_ip
27265
+ # Deprecated. Please use quotaUser instead.
27266
+ # @param [Google::Apis::RequestOptions] options
27267
+ # Request-specific options
27268
+ #
27269
+ # @yield [result, err] Result & error if block supplied
27270
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27271
+ # @yieldparam err [StandardError] error object if request failed
27272
+ #
27273
+ # @return [Google::Apis::ComputeAlpha::Operation]
27274
+ #
27275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27278
+ 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)
27279
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
27280
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest::Representation
27281
+ command.request_object = region_instance_group_managers_resume_instances_request_object
27282
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27283
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27284
+ command.params['project'] = project unless project.nil?
27285
+ command.params['region'] = region unless region.nil?
27286
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
27287
+ command.query['requestId'] = request_id unless request_id.nil?
27288
+ command.query['fields'] = fields unless fields.nil?
27289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27290
+ command.query['userIp'] = user_ip unless user_ip.nil?
27291
+ execute_or_queue_command(command, &block)
27292
+ end
27293
+
26104
27294
  # Modifies the autohealing policy for the instances in this managed instance
26105
27295
  # group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
26106
27296
  # patch instead.
@@ -26267,6 +27457,222 @@ module Google
26267
27457
  execute_or_queue_command(command, &block)
26268
27458
  end
26269
27459
 
27460
+ # Flags the specified instances in the managed instance group to be started.
27461
+ # This method increases the targetSize and decreases the targetStoppedSize of
27462
+ # the managed instance group by the number of instances that you start. The
27463
+ # startInstances operation is marked DONE if the startInstances request is
27464
+ # successful. The underlying actions take additional time. You must separately
27465
+ # verify the status of the STARTING action with the listmanagedinstances method.
27466
+ # In this request, you can only specify instances that are stopped. For example,
27467
+ # if an instance was previously stopped using the stopInstances method, it can
27468
+ # be started using the startInstances method.
27469
+ # If a health check is attached to the managed instance group, the specified
27470
+ # instances will be verified as healthy after they are started.
27471
+ # You can specify a maximum of 1000 instances with this method per request.
27472
+ # @param [String] project
27473
+ # Project ID for this request.
27474
+ # @param [String] region
27475
+ # Name of the region scoping this request.
27476
+ # @param [String] instance_group_manager
27477
+ # Name of the managed instance group.
27478
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
27479
+ # @param [String] request_id
27480
+ # An optional request ID to identify requests. Specify a unique request ID so
27481
+ # that if you must retry your request, the server will know to ignore the
27482
+ # request if it has already been completed.
27483
+ # For example, consider a situation where you make an initial request and the
27484
+ # request times out. If you make the request again with the same request ID, the
27485
+ # server can check if original operation with the same request ID was received,
27486
+ # and if so, will ignore the second request. This prevents clients from
27487
+ # accidentally creating duplicate commitments.
27488
+ # The request ID must be a valid UUID with the exception that zero UUID is not
27489
+ # supported (00000000-0000-0000-0000-000000000000).
27490
+ # @param [String] fields
27491
+ # Selector specifying which fields to include in a partial response.
27492
+ # @param [String] quota_user
27493
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
27494
+ # characters.
27495
+ # @param [String] user_ip
27496
+ # Deprecated. Please use quotaUser instead.
27497
+ # @param [Google::Apis::RequestOptions] options
27498
+ # Request-specific options
27499
+ #
27500
+ # @yield [result, err] Result & error if block supplied
27501
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27502
+ # @yieldparam err [StandardError] error object if request failed
27503
+ #
27504
+ # @return [Google::Apis::ComputeAlpha::Operation]
27505
+ #
27506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27509
+ 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)
27510
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
27511
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest::Representation
27512
+ command.request_object = region_instance_group_managers_start_instances_request_object
27513
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27514
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27515
+ command.params['project'] = project unless project.nil?
27516
+ command.params['region'] = region unless region.nil?
27517
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
27518
+ command.query['requestId'] = request_id unless request_id.nil?
27519
+ command.query['fields'] = fields unless fields.nil?
27520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27521
+ command.query['userIp'] = user_ip unless user_ip.nil?
27522
+ execute_or_queue_command(command, &block)
27523
+ end
27524
+
27525
+ # Flags the specified instances in the managed instance group to be immediately
27526
+ # stopped. You can only specify instances that are running in this request. This
27527
+ # method reduces the targetSize and increases the targetStoppedSize of the
27528
+ # managed instance group by the number of instances that you stop. The
27529
+ # stopInstances operation is marked DONE if the stopInstances request is
27530
+ # successful. The underlying actions take additional time. You must separately
27531
+ # verify the status of the STOPPING action with the listmanagedinstances method.
27532
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
27533
+ # the Instance Group Manager, each instance will be initialized before it is
27534
+ # stopped, to give user programs time to perform necessary tasks. To initialize
27535
+ # an instance, the Instance Group Manager sets the metadata key google-compute-
27536
+ # initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
27537
+ # for the user program to signal it is ready. This is done by setting the guest
27538
+ # attribute path google-compute/initialization-state to value INITIALIZED. If
27539
+ # the instance does not signal successful initialization (does not set the guest
27540
+ # attribute to INITIALIZED) before timeout, the initialization is considered
27541
+ # failed and the instance is not stopped.
27542
+ # If the group is part of a backend service that has enabled connection draining,
27543
+ # it can take up to 60 seconds after the connection draining duration has
27544
+ # elapsed before the VM instance is suspended.
27545
+ # Stopped instances can be started using the startInstances method.
27546
+ # You can specify a maximum of 1000 instances with this method per request.
27547
+ # @param [String] project
27548
+ # Project ID for this request.
27549
+ # @param [String] region
27550
+ # Name of the region scoping this request.
27551
+ # @param [String] instance_group_manager
27552
+ # The name of the managed instance group.
27553
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
27554
+ # @param [String] request_id
27555
+ # An optional request ID to identify requests. Specify a unique request ID so
27556
+ # that if you must retry your request, the server will know to ignore the
27557
+ # request if it has already been completed.
27558
+ # For example, consider a situation where you make an initial request and the
27559
+ # request times out. If you make the request again with the same request ID, the
27560
+ # server can check if original operation with the same request ID was received,
27561
+ # and if so, will ignore the second request. This prevents clients from
27562
+ # accidentally creating duplicate commitments.
27563
+ # The request ID must be a valid UUID with the exception that zero UUID is not
27564
+ # supported (00000000-0000-0000-0000-000000000000).
27565
+ # @param [String] fields
27566
+ # Selector specifying which fields to include in a partial response.
27567
+ # @param [String] quota_user
27568
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
27569
+ # characters.
27570
+ # @param [String] user_ip
27571
+ # Deprecated. Please use quotaUser instead.
27572
+ # @param [Google::Apis::RequestOptions] options
27573
+ # Request-specific options
27574
+ #
27575
+ # @yield [result, err] Result & error if block supplied
27576
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27577
+ # @yieldparam err [StandardError] error object if request failed
27578
+ #
27579
+ # @return [Google::Apis::ComputeAlpha::Operation]
27580
+ #
27581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27584
+ 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)
27585
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
27586
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest::Representation
27587
+ command.request_object = region_instance_group_managers_stop_instances_request_object
27588
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27589
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27590
+ command.params['project'] = project unless project.nil?
27591
+ command.params['region'] = region unless region.nil?
27592
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
27593
+ command.query['requestId'] = request_id unless request_id.nil?
27594
+ command.query['fields'] = fields unless fields.nil?
27595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27596
+ command.query['userIp'] = user_ip unless user_ip.nil?
27597
+ execute_or_queue_command(command, &block)
27598
+ end
27599
+
27600
+ # Flags the specified instances in the managed instance group to be immediately
27601
+ # suspended. You can only specify instances that are running in this request.
27602
+ # This method reduces the targetSize and increases the targetSuspendedSize of
27603
+ # the managed instance group by the number of instances that you suspend. The
27604
+ # suspendInstances operation is marked DONE if the suspendInstances request is
27605
+ # successful. The underlying actions take additional time. You must separately
27606
+ # verify the status of the SUSPENDING action with the listmanagedinstances
27607
+ # method.
27608
+ # If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
27609
+ # the Instance Group Manager, each instance will be initialized before it is
27610
+ # suspended, to give user programs time to perform necessary tasks. To
27611
+ # initialize an instance, the Instance Group Manager sets the metadata key
27612
+ # google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
27613
+ # instance, and waits for the user program to signal it is ready. This is done
27614
+ # by setting the guest attribute path google-compute/initialization-state to
27615
+ # value INITIALIZED. If the instance does not signal successful initialization (
27616
+ # does not set the guest attribute to INITIALIZED) before timeout, the
27617
+ # initialization is considered failed and the instance is not suspended.
27618
+ # If the group is part of a backend service that has enabled connection draining,
27619
+ # it can take up to 60 seconds after the connection draining duration has
27620
+ # elapsed before the VM instance is suspended.
27621
+ # Suspended instances can be resumed using the resumeInstances method.
27622
+ # You can specify a maximum of 1000 instances with this method per request.
27623
+ # @param [String] project
27624
+ # Project ID for this request.
27625
+ # @param [String] region
27626
+ # Name of the region scoping this request.
27627
+ # @param [String] instance_group_manager
27628
+ # Name of the managed instance group.
27629
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
27630
+ # @param [String] request_id
27631
+ # An optional request ID to identify requests. Specify a unique request ID so
27632
+ # that if you must retry your request, the server will know to ignore the
27633
+ # request if it has already been completed.
27634
+ # For example, consider a situation where you make an initial request and the
27635
+ # request times out. If you make the request again with the same request ID, the
27636
+ # server can check if original operation with the same request ID was received,
27637
+ # and if so, will ignore the second request. This prevents clients from
27638
+ # accidentally creating duplicate commitments.
27639
+ # The request ID must be a valid UUID with the exception that zero UUID is not
27640
+ # supported (00000000-0000-0000-0000-000000000000).
27641
+ # @param [String] fields
27642
+ # Selector specifying which fields to include in a partial response.
27643
+ # @param [String] quota_user
27644
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
27645
+ # characters.
27646
+ # @param [String] user_ip
27647
+ # Deprecated. Please use quotaUser instead.
27648
+ # @param [Google::Apis::RequestOptions] options
27649
+ # Request-specific options
27650
+ #
27651
+ # @yield [result, err] Result & error if block supplied
27652
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27653
+ # @yieldparam err [StandardError] error object if request failed
27654
+ #
27655
+ # @return [Google::Apis::ComputeAlpha::Operation]
27656
+ #
27657
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27658
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27659
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27660
+ 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)
27661
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
27662
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
27663
+ command.request_object = region_instance_group_managers_suspend_instances_request_object
27664
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27665
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27666
+ command.params['project'] = project unless project.nil?
27667
+ command.params['region'] = region unless region.nil?
27668
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
27669
+ command.query['requestId'] = request_id unless request_id.nil?
27670
+ command.query['fields'] = fields unless fields.nil?
27671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27672
+ command.query['userIp'] = user_ip unless user_ip.nil?
27673
+ execute_or_queue_command(command, &block)
27674
+ end
27675
+
26270
27676
  # Returns permissions that a caller has on the specified resource.
26271
27677
  # @param [String] project
26272
27678
  # Project ID for this request.
@@ -26832,7 +28238,7 @@ module Google
26832
28238
  execute_or_queue_command(command, &block)
26833
28239
  end
26834
28240
 
26835
- # Export the changed blocks between two instant snapshots to a customer?s bucket
28241
+ # Export the changed blocks between two instant snapshots to a customer's bucket
26836
28242
  # in the user specified format.
26837
28243
  # @param [String] project
26838
28244
  # Project ID for this request.
@@ -27467,6 +28873,824 @@ module Google
27467
28873
  execute_or_queue_command(command, &block)
27468
28874
  end
27469
28875
 
28876
+ # Inserts an association for the specified network firewall policy.
28877
+ # @param [String] project
28878
+ # Project ID for this request.
28879
+ # @param [String] region
28880
+ # Name of the region scoping this request.
28881
+ # @param [String] firewall_policy
28882
+ # Name of the firewall policy to update.
28883
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
28884
+ # @param [Boolean] replace_existing_association
28885
+ # Indicates whether or not to replace it if an association already exists. This
28886
+ # is false by default, in which case an error will be returned if an association
28887
+ # already exists.
28888
+ # @param [String] request_id
28889
+ # An optional request ID to identify requests. Specify a unique request ID so
28890
+ # that if you must retry your request, the server will know to ignore the
28891
+ # request if it has already been completed.
28892
+ # For example, consider a situation where you make an initial request and the
28893
+ # request times out. If you make the request again with the same request ID, the
28894
+ # server can check if original operation with the same request ID was received,
28895
+ # and if so, will ignore the second request. This prevents clients from
28896
+ # accidentally creating duplicate commitments.
28897
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28898
+ # supported (00000000-0000-0000-0000-000000000000).
28899
+ # @param [String] fields
28900
+ # Selector specifying which fields to include in a partial response.
28901
+ # @param [String] quota_user
28902
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28903
+ # characters.
28904
+ # @param [String] user_ip
28905
+ # Deprecated. Please use quotaUser instead.
28906
+ # @param [Google::Apis::RequestOptions] options
28907
+ # Request-specific options
28908
+ #
28909
+ # @yield [result, err] Result & error if block supplied
28910
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28911
+ # @yieldparam err [StandardError] error object if request failed
28912
+ #
28913
+ # @return [Google::Apis::ComputeAlpha::Operation]
28914
+ #
28915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28918
+ 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)
28919
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
28920
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
28921
+ command.request_object = firewall_policy_association_object
28922
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28923
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28924
+ command.params['project'] = project unless project.nil?
28925
+ command.params['region'] = region unless region.nil?
28926
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28927
+ command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
28928
+ command.query['requestId'] = request_id unless request_id.nil?
28929
+ command.query['fields'] = fields unless fields.nil?
28930
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28931
+ command.query['userIp'] = user_ip unless user_ip.nil?
28932
+ execute_or_queue_command(command, &block)
28933
+ end
28934
+
28935
+ # Inserts a rule into a network firewall policy.
28936
+ # @param [String] project
28937
+ # Project ID for this request.
28938
+ # @param [String] region
28939
+ # Name of the region scoping this request.
28940
+ # @param [String] firewall_policy
28941
+ # Name of the firewall policy to update.
28942
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
28943
+ # @param [String] request_id
28944
+ # An optional request ID to identify requests. Specify a unique request ID so
28945
+ # that if you must retry your request, the server will know to ignore the
28946
+ # request if it has already been completed.
28947
+ # For example, consider a situation where you make an initial request and the
28948
+ # request times out. If you make the request again with the same request ID, the
28949
+ # server can check if original operation with the same request ID was received,
28950
+ # and if so, will ignore the second request. This prevents clients from
28951
+ # accidentally creating duplicate commitments.
28952
+ # The request ID must be a valid UUID with the exception that zero UUID is not
28953
+ # supported (00000000-0000-0000-0000-000000000000).
28954
+ # @param [String] fields
28955
+ # Selector specifying which fields to include in a partial response.
28956
+ # @param [String] quota_user
28957
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28958
+ # characters.
28959
+ # @param [String] user_ip
28960
+ # Deprecated. Please use quotaUser instead.
28961
+ # @param [Google::Apis::RequestOptions] options
28962
+ # Request-specific options
28963
+ #
28964
+ # @yield [result, err] Result & error if block supplied
28965
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
28966
+ # @yieldparam err [StandardError] error object if request failed
28967
+ #
28968
+ # @return [Google::Apis::ComputeAlpha::Operation]
28969
+ #
28970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28973
+ 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)
28974
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
28975
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
28976
+ command.request_object = firewall_policy_rule_object
28977
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28978
+ command.response_class = Google::Apis::ComputeAlpha::Operation
28979
+ command.params['project'] = project unless project.nil?
28980
+ command.params['region'] = region unless region.nil?
28981
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
28982
+ command.query['requestId'] = request_id unless request_id.nil?
28983
+ command.query['fields'] = fields unless fields.nil?
28984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28985
+ command.query['userIp'] = user_ip unless user_ip.nil?
28986
+ execute_or_queue_command(command, &block)
28987
+ end
28988
+
28989
+ # Copies rules to the specified network firewall policy.
28990
+ # @param [String] project
28991
+ # Project ID for this request.
28992
+ # @param [String] region
28993
+ # Name of the region scoping this request.
28994
+ # @param [String] firewall_policy
28995
+ # Name of the firewall policy to update.
28996
+ # @param [String] request_id
28997
+ # An optional request ID to identify requests. Specify a unique request ID so
28998
+ # that if you must retry your request, the server will know to ignore the
28999
+ # request if it has already been completed.
29000
+ # For example, consider a situation where you make an initial request and the
29001
+ # request times out. If you make the request again with the same request ID, the
29002
+ # server can check if original operation with the same request ID was received,
29003
+ # and if so, will ignore the second request. This prevents clients from
29004
+ # accidentally creating duplicate commitments.
29005
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29006
+ # supported (00000000-0000-0000-0000-000000000000).
29007
+ # @param [String] source_firewall_policy
29008
+ # The firewall policy from which to copy rules.
29009
+ # @param [String] fields
29010
+ # Selector specifying which fields to include in a partial response.
29011
+ # @param [String] quota_user
29012
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29013
+ # characters.
29014
+ # @param [String] user_ip
29015
+ # Deprecated. Please use quotaUser instead.
29016
+ # @param [Google::Apis::RequestOptions] options
29017
+ # Request-specific options
29018
+ #
29019
+ # @yield [result, err] Result & error if block supplied
29020
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29021
+ # @yieldparam err [StandardError] error object if request failed
29022
+ #
29023
+ # @return [Google::Apis::ComputeAlpha::Operation]
29024
+ #
29025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29028
+ 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)
29029
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules', options)
29030
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29031
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29032
+ command.params['project'] = project unless project.nil?
29033
+ command.params['region'] = region unless region.nil?
29034
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29035
+ command.query['requestId'] = request_id unless request_id.nil?
29036
+ command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
29037
+ command.query['fields'] = fields unless fields.nil?
29038
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29039
+ command.query['userIp'] = user_ip unless user_ip.nil?
29040
+ execute_or_queue_command(command, &block)
29041
+ end
29042
+
29043
+ # Deletes the specified network firewall policy.
29044
+ # @param [String] project
29045
+ # Project ID for this request.
29046
+ # @param [String] region
29047
+ # Name of the region scoping this request.
29048
+ # @param [String] firewall_policy
29049
+ # Name of the firewall policy to delete.
29050
+ # @param [String] request_id
29051
+ # An optional request ID to identify requests. Specify a unique request ID so
29052
+ # that if you must retry your request, the server will know to ignore the
29053
+ # request if it has already been completed.
29054
+ # For example, consider a situation where you make an initial request and the
29055
+ # request times out. If you make the request again with the same request ID, the
29056
+ # server can check if original operation with the same request ID was received,
29057
+ # and if so, will ignore the second request. This prevents clients from
29058
+ # accidentally creating duplicate commitments.
29059
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29060
+ # supported (00000000-0000-0000-0000-000000000000).
29061
+ # @param [String] fields
29062
+ # Selector specifying which fields to include in a partial response.
29063
+ # @param [String] quota_user
29064
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29065
+ # characters.
29066
+ # @param [String] user_ip
29067
+ # Deprecated. Please use quotaUser instead.
29068
+ # @param [Google::Apis::RequestOptions] options
29069
+ # Request-specific options
29070
+ #
29071
+ # @yield [result, err] Result & error if block supplied
29072
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29073
+ # @yieldparam err [StandardError] error object if request failed
29074
+ #
29075
+ # @return [Google::Apis::ComputeAlpha::Operation]
29076
+ #
29077
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29078
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29079
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29080
+ def delete_region_network_firewall_policy(project, region, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29081
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
29082
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29083
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29084
+ command.params['project'] = project unless project.nil?
29085
+ command.params['region'] = region unless region.nil?
29086
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29087
+ command.query['requestId'] = request_id unless request_id.nil?
29088
+ command.query['fields'] = fields unless fields.nil?
29089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29090
+ command.query['userIp'] = user_ip unless user_ip.nil?
29091
+ execute_or_queue_command(command, &block)
29092
+ end
29093
+
29094
+ # Returns the specified network firewall policy.
29095
+ # @param [String] project
29096
+ # Project ID for this request.
29097
+ # @param [String] region
29098
+ # Name of the region scoping this request.
29099
+ # @param [String] firewall_policy
29100
+ # Name of the firewall policy to get.
29101
+ # @param [String] fields
29102
+ # Selector specifying which fields to include in a partial response.
29103
+ # @param [String] quota_user
29104
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29105
+ # characters.
29106
+ # @param [String] user_ip
29107
+ # Deprecated. Please use quotaUser instead.
29108
+ # @param [Google::Apis::RequestOptions] options
29109
+ # Request-specific options
29110
+ #
29111
+ # @yield [result, err] Result & error if block supplied
29112
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
29113
+ # @yieldparam err [StandardError] error object if request failed
29114
+ #
29115
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicy]
29116
+ #
29117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29120
+ def get_region_network_firewall_policy(project, region, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29121
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
29122
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
29123
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
29124
+ command.params['project'] = project unless project.nil?
29125
+ command.params['region'] = region unless region.nil?
29126
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29127
+ command.query['fields'] = fields unless fields.nil?
29128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29129
+ command.query['userIp'] = user_ip unless user_ip.nil?
29130
+ execute_or_queue_command(command, &block)
29131
+ end
29132
+
29133
+ # Gets an association with the specified name.
29134
+ # @param [String] project
29135
+ # Project ID for this request.
29136
+ # @param [String] region
29137
+ # Name of the region scoping this request.
29138
+ # @param [String] firewall_policy
29139
+ # Name of the firewall policy to which the queried association belongs.
29140
+ # @param [String] name
29141
+ # The name of the association to get from the firewall policy.
29142
+ # @param [String] fields
29143
+ # Selector specifying which fields to include in a partial response.
29144
+ # @param [String] quota_user
29145
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29146
+ # characters.
29147
+ # @param [String] user_ip
29148
+ # Deprecated. Please use quotaUser instead.
29149
+ # @param [Google::Apis::RequestOptions] options
29150
+ # Request-specific options
29151
+ #
29152
+ # @yield [result, err] Result & error if block supplied
29153
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
29154
+ # @yieldparam err [StandardError] error object if request failed
29155
+ #
29156
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
29157
+ #
29158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29161
+ def get_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29162
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation', options)
29163
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
29164
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
29165
+ command.params['project'] = project unless project.nil?
29166
+ command.params['region'] = region unless region.nil?
29167
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29168
+ command.query['name'] = name unless name.nil?
29169
+ command.query['fields'] = fields unless fields.nil?
29170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29171
+ command.query['userIp'] = user_ip unless user_ip.nil?
29172
+ execute_or_queue_command(command, &block)
29173
+ end
29174
+
29175
+ # Gets the access control policy for a resource. May be empty if no such policy
29176
+ # or resource exists.
29177
+ # @param [String] project
29178
+ # Project ID for this request.
29179
+ # @param [String] region
29180
+ # The name of the region for this request.
29181
+ # @param [String] resource
29182
+ # Name or id of the resource for this request.
29183
+ # @param [Fixnum] options_requested_policy_version
29184
+ # Requested IAM Policy version.
29185
+ # @param [String] fields
29186
+ # Selector specifying which fields to include in a partial response.
29187
+ # @param [String] quota_user
29188
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29189
+ # characters.
29190
+ # @param [String] user_ip
29191
+ # Deprecated. Please use quotaUser instead.
29192
+ # @param [Google::Apis::RequestOptions] options
29193
+ # Request-specific options
29194
+ #
29195
+ # @yield [result, err] Result & error if block supplied
29196
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
29197
+ # @yieldparam err [StandardError] error object if request failed
29198
+ #
29199
+ # @return [Google::Apis::ComputeAlpha::Policy]
29200
+ #
29201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29204
+ 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)
29205
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy', options)
29206
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
29207
+ command.response_class = Google::Apis::ComputeAlpha::Policy
29208
+ command.params['project'] = project unless project.nil?
29209
+ command.params['region'] = region unless region.nil?
29210
+ command.params['resource'] = resource unless resource.nil?
29211
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
29212
+ command.query['fields'] = fields unless fields.nil?
29213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29214
+ command.query['userIp'] = user_ip unless user_ip.nil?
29215
+ execute_or_queue_command(command, &block)
29216
+ end
29217
+
29218
+ # Gets a rule of the specified priority.
29219
+ # @param [String] project
29220
+ # Project ID for this request.
29221
+ # @param [String] region
29222
+ # Name of the region scoping this request.
29223
+ # @param [String] firewall_policy
29224
+ # Name of the firewall policy to which the queried rule belongs.
29225
+ # @param [Fixnum] priority
29226
+ # The priority of the rule to get from the firewall policy.
29227
+ # @param [String] fields
29228
+ # Selector specifying which fields to include in a partial response.
29229
+ # @param [String] quota_user
29230
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29231
+ # characters.
29232
+ # @param [String] user_ip
29233
+ # Deprecated. Please use quotaUser instead.
29234
+ # @param [Google::Apis::RequestOptions] options
29235
+ # Request-specific options
29236
+ #
29237
+ # @yield [result, err] Result & error if block supplied
29238
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
29239
+ # @yieldparam err [StandardError] error object if request failed
29240
+ #
29241
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
29242
+ #
29243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29246
+ def get_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29247
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule', options)
29248
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
29249
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
29250
+ command.params['project'] = project unless project.nil?
29251
+ command.params['region'] = region unless region.nil?
29252
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29253
+ command.query['priority'] = priority unless priority.nil?
29254
+ command.query['fields'] = fields unless fields.nil?
29255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29256
+ command.query['userIp'] = user_ip unless user_ip.nil?
29257
+ execute_or_queue_command(command, &block)
29258
+ end
29259
+
29260
+ # Creates a new network firewall policy in the specified project and region.
29261
+ # @param [String] project
29262
+ # Project ID for this request.
29263
+ # @param [String] region
29264
+ # Name of the region scoping this request.
29265
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
29266
+ # @param [String] request_id
29267
+ # An optional request ID to identify requests. Specify a unique request ID so
29268
+ # that if you must retry your request, the server will know to ignore the
29269
+ # request if it has already been completed.
29270
+ # For example, consider a situation where you make an initial request and the
29271
+ # request times out. If you make the request again with the same request ID, the
29272
+ # server can check if original operation with the same request ID was received,
29273
+ # and if so, will ignore the second request. This prevents clients from
29274
+ # accidentally creating duplicate commitments.
29275
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29276
+ # supported (00000000-0000-0000-0000-000000000000).
29277
+ # @param [String] fields
29278
+ # Selector specifying which fields to include in a partial response.
29279
+ # @param [String] quota_user
29280
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29281
+ # characters.
29282
+ # @param [String] user_ip
29283
+ # Deprecated. Please use quotaUser instead.
29284
+ # @param [Google::Apis::RequestOptions] options
29285
+ # Request-specific options
29286
+ #
29287
+ # @yield [result, err] Result & error if block supplied
29288
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29289
+ # @yieldparam err [StandardError] error object if request failed
29290
+ #
29291
+ # @return [Google::Apis::ComputeAlpha::Operation]
29292
+ #
29293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29296
+ 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)
29297
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies', options)
29298
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
29299
+ command.request_object = firewall_policy_object
29300
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29301
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29302
+ command.params['project'] = project unless project.nil?
29303
+ command.params['region'] = region unless region.nil?
29304
+ command.query['requestId'] = request_id unless request_id.nil?
29305
+ command.query['fields'] = fields unless fields.nil?
29306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29307
+ command.query['userIp'] = user_ip unless user_ip.nil?
29308
+ execute_or_queue_command(command, &block)
29309
+ end
29310
+
29311
+ # Lists all the network firewall policies that have been configured for the
29312
+ # specified project in the given region.
29313
+ # @param [String] project
29314
+ # Project ID for this request.
29315
+ # @param [String] region
29316
+ # Name of the region scoping this request.
29317
+ # @param [String] filter
29318
+ # A filter expression that filters resources listed in the response. The
29319
+ # expression must specify the field name, a comparison operator, and the value
29320
+ # that you want to use for filtering. The value must be a string, a number, or a
29321
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
29322
+ # For example, if you are filtering Compute Engine instances, you can exclude
29323
+ # instances named `example-instance` by specifying `name != example-instance`.
29324
+ # You can also filter nested fields. For example, you could specify `scheduling.
29325
+ # automaticRestart = false` to include instances only if they are not scheduled
29326
+ # for automatic restarts. You can use filtering on nested fields to filter based
29327
+ # on resource labels.
29328
+ # To filter on multiple expressions, provide each separate expression within
29329
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
29330
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
29331
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
29332
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
29333
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
29334
+ # @param [Fixnum] max_results
29335
+ # The maximum number of results per page that should be returned. If the number
29336
+ # of available results is larger than `maxResults`, Compute Engine returns a `
29337
+ # nextPageToken` that can be used to get the next page of results in subsequent
29338
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
29339
+ # @param [String] order_by
29340
+ # Sorts list results by a certain order. By default, results are returned in
29341
+ # alphanumerical order based on the resource name.
29342
+ # You can also sort results in descending order based on the creation timestamp
29343
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
29344
+ # creationTimestamp` field in reverse chronological order (newest result first).
29345
+ # Use this to sort resources like operations so that the newest operation is
29346
+ # returned first.
29347
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
29348
+ # @param [String] page_token
29349
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
29350
+ # by a previous list request to get the next page of results.
29351
+ # @param [Boolean] return_partial_success
29352
+ # Opt-in for partial success behavior which provides partial results in case of
29353
+ # failure. The default value is false.
29354
+ # @param [String] fields
29355
+ # Selector specifying which fields to include in a partial response.
29356
+ # @param [String] quota_user
29357
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29358
+ # characters.
29359
+ # @param [String] user_ip
29360
+ # Deprecated. Please use quotaUser instead.
29361
+ # @param [Google::Apis::RequestOptions] options
29362
+ # Request-specific options
29363
+ #
29364
+ # @yield [result, err] Result & error if block supplied
29365
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
29366
+ # @yieldparam err [StandardError] error object if request failed
29367
+ #
29368
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
29369
+ #
29370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29373
+ 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)
29374
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
29375
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
29376
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
29377
+ command.params['project'] = project unless project.nil?
29378
+ command.params['region'] = region unless region.nil?
29379
+ command.query['filter'] = filter unless filter.nil?
29380
+ command.query['maxResults'] = max_results unless max_results.nil?
29381
+ command.query['orderBy'] = order_by unless order_by.nil?
29382
+ command.query['pageToken'] = page_token unless page_token.nil?
29383
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
29384
+ command.query['fields'] = fields unless fields.nil?
29385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29386
+ command.query['userIp'] = user_ip unless user_ip.nil?
29387
+ execute_or_queue_command(command, &block)
29388
+ end
29389
+
29390
+ # Patches the specified network firewall policy.
29391
+ # @param [String] project
29392
+ # Project ID for this request.
29393
+ # @param [String] region
29394
+ # Name of the region scoping this request.
29395
+ # @param [String] firewall_policy
29396
+ # Name of the firewall policy to update.
29397
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
29398
+ # @param [String] request_id
29399
+ # An optional request ID to identify requests. Specify a unique request ID so
29400
+ # that if you must retry your request, the server will know to ignore the
29401
+ # request if it has already been completed.
29402
+ # For example, consider a situation where you make an initial request and the
29403
+ # request times out. If you make the request again with the same request ID, the
29404
+ # server can check if original operation with the same request ID was received,
29405
+ # and if so, will ignore the second request. This prevents clients from
29406
+ # accidentally creating duplicate commitments.
29407
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29408
+ # supported (00000000-0000-0000-0000-000000000000).
29409
+ # @param [String] fields
29410
+ # Selector specifying which fields to include in a partial response.
29411
+ # @param [String] quota_user
29412
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29413
+ # characters.
29414
+ # @param [String] user_ip
29415
+ # Deprecated. Please use quotaUser instead.
29416
+ # @param [Google::Apis::RequestOptions] options
29417
+ # Request-specific options
29418
+ #
29419
+ # @yield [result, err] Result & error if block supplied
29420
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29421
+ # @yieldparam err [StandardError] error object if request failed
29422
+ #
29423
+ # @return [Google::Apis::ComputeAlpha::Operation]
29424
+ #
29425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29428
+ 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)
29429
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
29430
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
29431
+ command.request_object = firewall_policy_object
29432
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29433
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29434
+ command.params['project'] = project unless project.nil?
29435
+ command.params['region'] = region unless region.nil?
29436
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29437
+ command.query['requestId'] = request_id unless request_id.nil?
29438
+ command.query['fields'] = fields unless fields.nil?
29439
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29440
+ command.query['userIp'] = user_ip unless user_ip.nil?
29441
+ execute_or_queue_command(command, &block)
29442
+ end
29443
+
29444
+ # Patches a rule of the specified priority.
29445
+ # @param [String] project
29446
+ # Project ID for this request.
29447
+ # @param [String] region
29448
+ # Name of the region scoping this request.
29449
+ # @param [String] firewall_policy
29450
+ # Name of the firewall policy to update.
29451
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
29452
+ # @param [Fixnum] priority
29453
+ # The priority of the rule to patch.
29454
+ # @param [String] request_id
29455
+ # An optional request ID to identify requests. Specify a unique request ID so
29456
+ # that if you must retry your request, the server will know to ignore the
29457
+ # request if it has already been completed.
29458
+ # For example, consider a situation where you make an initial request and the
29459
+ # request times out. If you make the request again with the same request ID, the
29460
+ # server can check if original operation with the same request ID was received,
29461
+ # and if so, will ignore the second request. This prevents clients from
29462
+ # accidentally creating duplicate commitments.
29463
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29464
+ # supported (00000000-0000-0000-0000-000000000000).
29465
+ # @param [String] fields
29466
+ # Selector specifying which fields to include in a partial response.
29467
+ # @param [String] quota_user
29468
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29469
+ # characters.
29470
+ # @param [String] user_ip
29471
+ # Deprecated. Please use quotaUser instead.
29472
+ # @param [Google::Apis::RequestOptions] options
29473
+ # Request-specific options
29474
+ #
29475
+ # @yield [result, err] Result & error if block supplied
29476
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29477
+ # @yieldparam err [StandardError] error object if request failed
29478
+ #
29479
+ # @return [Google::Apis::ComputeAlpha::Operation]
29480
+ #
29481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29484
+ 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)
29485
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
29486
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
29487
+ command.request_object = firewall_policy_rule_object
29488
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29489
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29490
+ command.params['project'] = project unless project.nil?
29491
+ command.params['region'] = region unless region.nil?
29492
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29493
+ command.query['priority'] = priority unless priority.nil?
29494
+ command.query['requestId'] = request_id unless request_id.nil?
29495
+ command.query['fields'] = fields unless fields.nil?
29496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29497
+ command.query['userIp'] = user_ip unless user_ip.nil?
29498
+ execute_or_queue_command(command, &block)
29499
+ end
29500
+
29501
+ # Removes an association for the specified network firewall policy.
29502
+ # @param [String] project
29503
+ # Project ID for this request.
29504
+ # @param [String] region
29505
+ # Name of the region scoping this request.
29506
+ # @param [String] firewall_policy
29507
+ # Name of the firewall policy to update.
29508
+ # @param [String] name
29509
+ # Name for the association that will be removed.
29510
+ # @param [String] request_id
29511
+ # An optional request ID to identify requests. Specify a unique request ID so
29512
+ # that if you must retry your request, the server will know to ignore the
29513
+ # request if it has already been completed.
29514
+ # For example, consider a situation where you make an initial request and the
29515
+ # request times out. If you make the request again with the same request ID, the
29516
+ # server can check if original operation with the same request ID was received,
29517
+ # and if so, will ignore the second request. This prevents clients from
29518
+ # accidentally creating duplicate commitments.
29519
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29520
+ # supported (00000000-0000-0000-0000-000000000000).
29521
+ # @param [String] fields
29522
+ # Selector specifying which fields to include in a partial response.
29523
+ # @param [String] quota_user
29524
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29525
+ # characters.
29526
+ # @param [String] user_ip
29527
+ # Deprecated. Please use quotaUser instead.
29528
+ # @param [Google::Apis::RequestOptions] options
29529
+ # Request-specific options
29530
+ #
29531
+ # @yield [result, err] Result & error if block supplied
29532
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29533
+ # @yieldparam err [StandardError] error object if request failed
29534
+ #
29535
+ # @return [Google::Apis::ComputeAlpha::Operation]
29536
+ #
29537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29540
+ 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)
29541
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
29542
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29543
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29544
+ command.params['project'] = project unless project.nil?
29545
+ command.params['region'] = region unless region.nil?
29546
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29547
+ command.query['name'] = name unless name.nil?
29548
+ command.query['requestId'] = request_id unless request_id.nil?
29549
+ command.query['fields'] = fields unless fields.nil?
29550
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29551
+ command.query['userIp'] = user_ip unless user_ip.nil?
29552
+ execute_or_queue_command(command, &block)
29553
+ end
29554
+
29555
+ # Deletes a rule of the specified priority.
29556
+ # @param [String] project
29557
+ # Project ID for this request.
29558
+ # @param [String] region
29559
+ # Name of the region scoping this request.
29560
+ # @param [String] firewall_policy
29561
+ # Name of the firewall policy to update.
29562
+ # @param [Fixnum] priority
29563
+ # The priority of the rule to remove from the firewall policy.
29564
+ # @param [String] request_id
29565
+ # An optional request ID to identify requests. Specify a unique request ID so
29566
+ # that if you must retry your request, the server will know to ignore the
29567
+ # request if it has already been completed.
29568
+ # For example, consider a situation where you make an initial request and the
29569
+ # request times out. If you make the request again with the same request ID, the
29570
+ # server can check if original operation with the same request ID was received,
29571
+ # and if so, will ignore the second request. This prevents clients from
29572
+ # accidentally creating duplicate commitments.
29573
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29574
+ # supported (00000000-0000-0000-0000-000000000000).
29575
+ # @param [String] fields
29576
+ # Selector specifying which fields to include in a partial response.
29577
+ # @param [String] quota_user
29578
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29579
+ # characters.
29580
+ # @param [String] user_ip
29581
+ # Deprecated. Please use quotaUser instead.
29582
+ # @param [Google::Apis::RequestOptions] options
29583
+ # Request-specific options
29584
+ #
29585
+ # @yield [result, err] Result & error if block supplied
29586
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29587
+ # @yieldparam err [StandardError] error object if request failed
29588
+ #
29589
+ # @return [Google::Apis::ComputeAlpha::Operation]
29590
+ #
29591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29594
+ 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)
29595
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
29596
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29597
+ command.response_class = Google::Apis::ComputeAlpha::Operation
29598
+ command.params['project'] = project unless project.nil?
29599
+ command.params['region'] = region unless region.nil?
29600
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29601
+ command.query['priority'] = priority unless priority.nil?
29602
+ command.query['requestId'] = request_id unless request_id.nil?
29603
+ command.query['fields'] = fields unless fields.nil?
29604
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29605
+ command.query['userIp'] = user_ip unless user_ip.nil?
29606
+ execute_or_queue_command(command, &block)
29607
+ end
29608
+
29609
+ # Sets the access control policy on the specified resource. Replaces any
29610
+ # existing policy.
29611
+ # @param [String] project
29612
+ # Project ID for this request.
29613
+ # @param [String] region
29614
+ # The name of the region for this request.
29615
+ # @param [String] resource
29616
+ # Name or id of the resource for this request.
29617
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
29618
+ # @param [String] fields
29619
+ # Selector specifying which fields to include in a partial response.
29620
+ # @param [String] quota_user
29621
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29622
+ # characters.
29623
+ # @param [String] user_ip
29624
+ # Deprecated. Please use quotaUser instead.
29625
+ # @param [Google::Apis::RequestOptions] options
29626
+ # Request-specific options
29627
+ #
29628
+ # @yield [result, err] Result & error if block supplied
29629
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
29630
+ # @yieldparam err [StandardError] error object if request failed
29631
+ #
29632
+ # @return [Google::Apis::ComputeAlpha::Policy]
29633
+ #
29634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29637
+ 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)
29638
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
29639
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
29640
+ command.request_object = region_set_policy_request_object
29641
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
29642
+ command.response_class = Google::Apis::ComputeAlpha::Policy
29643
+ command.params['project'] = project unless project.nil?
29644
+ command.params['region'] = region unless region.nil?
29645
+ command.params['resource'] = resource unless resource.nil?
29646
+ command.query['fields'] = fields unless fields.nil?
29647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29648
+ command.query['userIp'] = user_ip unless user_ip.nil?
29649
+ execute_or_queue_command(command, &block)
29650
+ end
29651
+
29652
+ # Returns permissions that a caller has on the specified resource.
29653
+ # @param [String] project
29654
+ # Project ID for this request.
29655
+ # @param [String] region
29656
+ # The name of the region for this request.
29657
+ # @param [String] resource
29658
+ # Name or id of the resource for this request.
29659
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
29660
+ # @param [String] fields
29661
+ # Selector specifying which fields to include in a partial response.
29662
+ # @param [String] quota_user
29663
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29664
+ # characters.
29665
+ # @param [String] user_ip
29666
+ # Deprecated. Please use quotaUser instead.
29667
+ # @param [Google::Apis::RequestOptions] options
29668
+ # Request-specific options
29669
+ #
29670
+ # @yield [result, err] Result & error if block supplied
29671
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
29672
+ # @yieldparam err [StandardError] error object if request failed
29673
+ #
29674
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
29675
+ #
29676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29679
+ 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)
29680
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
29681
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
29682
+ command.request_object = test_permissions_request_object
29683
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
29684
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
29685
+ command.params['project'] = project unless project.nil?
29686
+ command.params['region'] = region unless region.nil?
29687
+ command.params['resource'] = resource unless resource.nil?
29688
+ command.query['fields'] = fields unless fields.nil?
29689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29690
+ command.query['userIp'] = user_ip unless user_ip.nil?
29691
+ execute_or_queue_command(command, &block)
29692
+ end
29693
+
27470
29694
  # Retrieves the list of all NotificationEndpoint resources, regional and global,
27471
29695
  # available to the specified project.
27472
29696
  # @param [String] project
@@ -27746,18 +29970,214 @@ module Google
27746
29970
  # Request-specific options
27747
29971
  #
27748
29972
  # @yield [result, err] Result & error if block supplied
27749
- # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
29973
+ # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
29974
+ # @yieldparam err [StandardError] error object if request failed
29975
+ #
29976
+ # @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
29977
+ #
29978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29981
+ def list_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29982
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
29983
+ command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
29984
+ command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
29985
+ command.params['project'] = project unless project.nil?
29986
+ command.params['region'] = region unless region.nil?
29987
+ command.query['filter'] = filter unless filter.nil?
29988
+ command.query['maxResults'] = max_results unless max_results.nil?
29989
+ command.query['orderBy'] = order_by unless order_by.nil?
29990
+ command.query['pageToken'] = page_token unless page_token.nil?
29991
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
29992
+ command.query['fields'] = fields unless fields.nil?
29993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29994
+ command.query['userIp'] = user_ip unless user_ip.nil?
29995
+ execute_or_queue_command(command, &block)
29996
+ end
29997
+
29998
+ # Returns permissions that a caller has on the specified resource.
29999
+ # @param [String] project
30000
+ # Project ID for this request.
30001
+ # @param [String] region
30002
+ # The name of the region for this request.
30003
+ # @param [String] resource
30004
+ # Name or id of the resource for this request.
30005
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30006
+ # @param [String] fields
30007
+ # Selector specifying which fields to include in a partial response.
30008
+ # @param [String] quota_user
30009
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30010
+ # characters.
30011
+ # @param [String] user_ip
30012
+ # Deprecated. Please use quotaUser instead.
30013
+ # @param [Google::Apis::RequestOptions] options
30014
+ # Request-specific options
30015
+ #
30016
+ # @yield [result, err] Result & error if block supplied
30017
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30018
+ # @yieldparam err [StandardError] error object if request failed
30019
+ #
30020
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30021
+ #
30022
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30023
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30024
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30025
+ def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30026
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
30027
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
30028
+ command.request_object = test_permissions_request_object
30029
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
30030
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
30031
+ command.params['project'] = project unless project.nil?
30032
+ command.params['region'] = region unless region.nil?
30033
+ command.params['resource'] = resource unless resource.nil?
30034
+ command.query['fields'] = fields unless fields.nil?
30035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30036
+ command.query['userIp'] = user_ip unless user_ip.nil?
30037
+ execute_or_queue_command(command, &block)
30038
+ end
30039
+
30040
+ # Deletes the specified region-specific Operations resource.
30041
+ # @param [String] project
30042
+ # Project ID for this request.
30043
+ # @param [String] region
30044
+ # Name of the region for this request.
30045
+ # @param [String] operation
30046
+ # Name of the Operations resource to delete.
30047
+ # @param [String] fields
30048
+ # Selector specifying which fields to include in a partial response.
30049
+ # @param [String] quota_user
30050
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30051
+ # characters.
30052
+ # @param [String] user_ip
30053
+ # Deprecated. Please use quotaUser instead.
30054
+ # @param [Google::Apis::RequestOptions] options
30055
+ # Request-specific options
30056
+ #
30057
+ # @yield [result, err] Result & error if block supplied
30058
+ # @yieldparam result [NilClass] No result returned for this method
30059
+ # @yieldparam err [StandardError] error object if request failed
30060
+ #
30061
+ # @return [void]
30062
+ #
30063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30066
+ def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30067
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
30068
+ command.params['project'] = project unless project.nil?
30069
+ command.params['region'] = region unless region.nil?
30070
+ command.params['operation'] = operation unless operation.nil?
30071
+ command.query['fields'] = fields unless fields.nil?
30072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30073
+ command.query['userIp'] = user_ip unless user_ip.nil?
30074
+ execute_or_queue_command(command, &block)
30075
+ end
30076
+
30077
+ # Retrieves the specified region-specific Operations resource.
30078
+ # @param [String] project
30079
+ # Project ID for this request.
30080
+ # @param [String] region
30081
+ # Name of the region for this request.
30082
+ # @param [String] operation
30083
+ # Name of the Operations resource to return.
30084
+ # @param [String] fields
30085
+ # Selector specifying which fields to include in a partial response.
30086
+ # @param [String] quota_user
30087
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30088
+ # characters.
30089
+ # @param [String] user_ip
30090
+ # Deprecated. Please use quotaUser instead.
30091
+ # @param [Google::Apis::RequestOptions] options
30092
+ # Request-specific options
30093
+ #
30094
+ # @yield [result, err] Result & error if block supplied
30095
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30096
+ # @yieldparam err [StandardError] error object if request failed
30097
+ #
30098
+ # @return [Google::Apis::ComputeAlpha::Operation]
30099
+ #
30100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30103
+ def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30104
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options)
30105
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30106
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30107
+ command.params['project'] = project unless project.nil?
30108
+ command.params['region'] = region unless region.nil?
30109
+ command.params['operation'] = operation unless operation.nil?
30110
+ command.query['fields'] = fields unless fields.nil?
30111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30112
+ command.query['userIp'] = user_ip unless user_ip.nil?
30113
+ execute_or_queue_command(command, &block)
30114
+ end
30115
+
30116
+ # Retrieves a list of Operation resources contained within the specified region.
30117
+ # @param [String] project
30118
+ # Project ID for this request.
30119
+ # @param [String] region
30120
+ # Name of the region for this request.
30121
+ # @param [String] filter
30122
+ # A filter expression that filters resources listed in the response. The
30123
+ # expression must specify the field name, a comparison operator, and the value
30124
+ # that you want to use for filtering. The value must be a string, a number, or a
30125
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
30126
+ # For example, if you are filtering Compute Engine instances, you can exclude
30127
+ # instances named `example-instance` by specifying `name != example-instance`.
30128
+ # You can also filter nested fields. For example, you could specify `scheduling.
30129
+ # automaticRestart = false` to include instances only if they are not scheduled
30130
+ # for automatic restarts. You can use filtering on nested fields to filter based
30131
+ # on resource labels.
30132
+ # To filter on multiple expressions, provide each separate expression within
30133
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
30134
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
30135
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
30136
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
30137
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
30138
+ # @param [Fixnum] max_results
30139
+ # The maximum number of results per page that should be returned. If the number
30140
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30141
+ # nextPageToken` that can be used to get the next page of results in subsequent
30142
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30143
+ # @param [String] order_by
30144
+ # Sorts list results by a certain order. By default, results are returned in
30145
+ # alphanumerical order based on the resource name.
30146
+ # You can also sort results in descending order based on the creation timestamp
30147
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
30148
+ # creationTimestamp` field in reverse chronological order (newest result first).
30149
+ # Use this to sort resources like operations so that the newest operation is
30150
+ # returned first.
30151
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30152
+ # @param [String] page_token
30153
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30154
+ # by a previous list request to get the next page of results.
30155
+ # @param [Boolean] return_partial_success
30156
+ # Opt-in for partial success behavior which provides partial results in case of
30157
+ # failure. The default value is false.
30158
+ # @param [String] fields
30159
+ # Selector specifying which fields to include in a partial response.
30160
+ # @param [String] quota_user
30161
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30162
+ # characters.
30163
+ # @param [String] user_ip
30164
+ # Deprecated. Please use quotaUser instead.
30165
+ # @param [Google::Apis::RequestOptions] options
30166
+ # Request-specific options
30167
+ #
30168
+ # @yield [result, err] Result & error if block supplied
30169
+ # @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
27750
30170
  # @yieldparam err [StandardError] error object if request failed
27751
30171
  #
27752
- # @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
30172
+ # @return [Google::Apis::ComputeAlpha::OperationList]
27753
30173
  #
27754
30174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27755
30175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27756
30176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27757
- def list_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27758
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
27759
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
27760
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
30177
+ def list_region_operations(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)
30178
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
30179
+ command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
30180
+ command.response_class = Google::Apis::ComputeAlpha::OperationList
27761
30181
  command.params['project'] = project unless project.nil?
27762
30182
  command.params['region'] = region unless region.nil?
27763
30183
  command.query['filter'] = filter unless filter.nil?
@@ -27771,14 +30191,23 @@ module Google
27771
30191
  execute_or_queue_command(command, &block)
27772
30192
  end
27773
30193
 
27774
- # Returns permissions that a caller has on the specified resource.
30194
+ # Waits for the specified Operation resource to return as `DONE` or for the
30195
+ # request to approach the 2 minute deadline, and retrieves the specified
30196
+ # Operation resource. This method differs from the `GET` method in that it waits
30197
+ # for no more than the default deadline (2 minutes) and then returns the current
30198
+ # state of the operation, which might be `DONE` or still in progress.
30199
+ # This method is called on a best-effort basis. Specifically:
30200
+ # - In uncommon cases, when the server is overloaded, the request might return
30201
+ # before the default deadline is reached, or might return after zero seconds.
30202
+ # - If the default deadline is reached, there is no guarantee that the operation
30203
+ # is actually done when the method returns. Be prepared to retry if the
30204
+ # operation is not `DONE`.
27775
30205
  # @param [String] project
27776
30206
  # Project ID for this request.
27777
30207
  # @param [String] region
27778
- # The name of the region for this request.
27779
- # @param [String] resource
27780
- # Name or id of the resource for this request.
27781
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30208
+ # Name of the region for this request.
30209
+ # @param [String] operation
30210
+ # Name of the Operations resource to return.
27782
30211
  # @param [String] fields
27783
30212
  # Selector specifying which fields to include in a partial response.
27784
30213
  # @param [String] quota_user
@@ -27790,36 +30219,45 @@ module Google
27790
30219
  # Request-specific options
27791
30220
  #
27792
30221
  # @yield [result, err] Result & error if block supplied
27793
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30222
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27794
30223
  # @yieldparam err [StandardError] error object if request failed
27795
30224
  #
27796
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30225
+ # @return [Google::Apis::ComputeAlpha::Operation]
27797
30226
  #
27798
30227
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27799
30228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27800
30229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27801
- def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27802
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
27803
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
27804
- command.request_object = test_permissions_request_object
27805
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
27806
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
30230
+ def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30231
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options)
30232
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30233
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27807
30234
  command.params['project'] = project unless project.nil?
27808
30235
  command.params['region'] = region unless region.nil?
27809
- command.params['resource'] = resource unless resource.nil?
30236
+ command.params['operation'] = operation unless operation.nil?
27810
30237
  command.query['fields'] = fields unless fields.nil?
27811
30238
  command.query['quotaUser'] = quota_user unless quota_user.nil?
27812
30239
  command.query['userIp'] = user_ip unless user_ip.nil?
27813
30240
  execute_or_queue_command(command, &block)
27814
30241
  end
27815
30242
 
27816
- # Deletes the specified region-specific Operations resource.
30243
+ # Deletes the specified policy.
27817
30244
  # @param [String] project
27818
30245
  # Project ID for this request.
27819
30246
  # @param [String] region
27820
- # Name of the region for this request.
27821
- # @param [String] operation
27822
- # Name of the Operations resource to delete.
30247
+ # Name of the region scoping this request.
30248
+ # @param [String] security_policy
30249
+ # Name of the security policy to delete.
30250
+ # @param [String] request_id
30251
+ # An optional request ID to identify requests. Specify a unique request ID so
30252
+ # that if you must retry your request, the server will know to ignore the
30253
+ # request if it has already been completed.
30254
+ # For example, consider a situation where you make an initial request and the
30255
+ # request times out. If you make the request again with the same request ID, the
30256
+ # server can check if original operation with the same request ID was received,
30257
+ # and if so, will ignore the second request. This prevents clients from
30258
+ # accidentally creating duplicate commitments.
30259
+ # The request ID must be a valid UUID with the exception that zero UUID is not
30260
+ # supported (00000000-0000-0000-0000-000000000000).
27823
30261
  # @param [String] fields
27824
30262
  # Selector specifying which fields to include in a partial response.
27825
30263
  # @param [String] quota_user
@@ -27831,32 +30269,87 @@ module Google
27831
30269
  # Request-specific options
27832
30270
  #
27833
30271
  # @yield [result, err] Result & error if block supplied
27834
- # @yieldparam result [NilClass] No result returned for this method
30272
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27835
30273
  # @yieldparam err [StandardError] error object if request failed
27836
30274
  #
27837
- # @return [void]
30275
+ # @return [Google::Apis::ComputeAlpha::Operation]
27838
30276
  #
27839
30277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27840
30278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27841
30279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27842
- def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27843
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
30280
+ def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30281
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
30282
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30283
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27844
30284
  command.params['project'] = project unless project.nil?
27845
30285
  command.params['region'] = region unless region.nil?
27846
- command.params['operation'] = operation unless operation.nil?
30286
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30287
+ command.query['requestId'] = request_id unless request_id.nil?
27847
30288
  command.query['fields'] = fields unless fields.nil?
27848
30289
  command.query['quotaUser'] = quota_user unless quota_user.nil?
27849
30290
  command.query['userIp'] = user_ip unless user_ip.nil?
27850
30291
  execute_or_queue_command(command, &block)
27851
30292
  end
27852
30293
 
27853
- # Retrieves the specified region-specific Operations resource.
30294
+ # List all of the ordered rules present in a single specified policy.
27854
30295
  # @param [String] project
27855
30296
  # Project ID for this request.
27856
30297
  # @param [String] region
27857
- # Name of the region for this request.
27858
- # @param [String] operation
27859
- # Name of the Operations resource to return.
30298
+ # Name of the region scoping this request.
30299
+ # @param [String] security_policy
30300
+ # Name of the security policy to get.
30301
+ # @param [String] fields
30302
+ # Selector specifying which fields to include in a partial response.
30303
+ # @param [String] quota_user
30304
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30305
+ # characters.
30306
+ # @param [String] user_ip
30307
+ # Deprecated. Please use quotaUser instead.
30308
+ # @param [Google::Apis::RequestOptions] options
30309
+ # Request-specific options
30310
+ #
30311
+ # @yield [result, err] Result & error if block supplied
30312
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
30313
+ # @yieldparam err [StandardError] error object if request failed
30314
+ #
30315
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicy]
30316
+ #
30317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30320
+ def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30321
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
30322
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
30323
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
30324
+ command.params['project'] = project unless project.nil?
30325
+ command.params['region'] = region unless region.nil?
30326
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30327
+ command.query['fields'] = fields unless fields.nil?
30328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30329
+ command.query['userIp'] = user_ip unless user_ip.nil?
30330
+ execute_or_queue_command(command, &block)
30331
+ end
30332
+
30333
+ # Creates a new policy in the specified project using the data included in the
30334
+ # request.
30335
+ # @param [String] project
30336
+ # Project ID for this request.
30337
+ # @param [String] region
30338
+ # Name of the region scoping this request.
30339
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
30340
+ # @param [String] request_id
30341
+ # An optional request ID to identify requests. Specify a unique request ID so
30342
+ # that if you must retry your request, the server will know to ignore the
30343
+ # request if it has already been completed.
30344
+ # For example, consider a situation where you make an initial request and the
30345
+ # request times out. If you make the request again with the same request ID, the
30346
+ # server can check if original operation with the same request ID was received,
30347
+ # and if so, will ignore the second request. This prevents clients from
30348
+ # accidentally creating duplicate commitments.
30349
+ # The request ID must be a valid UUID with the exception that zero UUID is not
30350
+ # supported (00000000-0000-0000-0000-000000000000).
30351
+ # @param [Boolean] validate_only
30352
+ # If true, the request will not be committed.
27860
30353
  # @param [String] fields
27861
30354
  # Selector specifying which fields to include in a partial response.
27862
30355
  # @param [String] quota_user
@@ -27876,24 +30369,28 @@ module Google
27876
30369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27877
30370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27878
30371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27879
- def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27880
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options)
30372
+ def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30373
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
30374
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
30375
+ command.request_object = security_policy_object
27881
30376
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27882
30377
  command.response_class = Google::Apis::ComputeAlpha::Operation
27883
30378
  command.params['project'] = project unless project.nil?
27884
30379
  command.params['region'] = region unless region.nil?
27885
- command.params['operation'] = operation unless operation.nil?
30380
+ command.query['requestId'] = request_id unless request_id.nil?
30381
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
27886
30382
  command.query['fields'] = fields unless fields.nil?
27887
30383
  command.query['quotaUser'] = quota_user unless quota_user.nil?
27888
30384
  command.query['userIp'] = user_ip unless user_ip.nil?
27889
30385
  execute_or_queue_command(command, &block)
27890
30386
  end
27891
30387
 
27892
- # Retrieves a list of Operation resources contained within the specified region.
30388
+ # List all the policies that have been configured for the specified project and
30389
+ # region.
27893
30390
  # @param [String] project
27894
30391
  # Project ID for this request.
27895
30392
  # @param [String] region
27896
- # Name of the region for this request.
30393
+ # Name of the region scoping this request.
27897
30394
  # @param [String] filter
27898
30395
  # A filter expression that filters resources listed in the response. The
27899
30396
  # expression must specify the field name, a comparison operator, and the value
@@ -27942,18 +30439,18 @@ module Google
27942
30439
  # Request-specific options
27943
30440
  #
27944
30441
  # @yield [result, err] Result & error if block supplied
27945
- # @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
30442
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
27946
30443
  # @yieldparam err [StandardError] error object if request failed
27947
30444
  #
27948
- # @return [Google::Apis::ComputeAlpha::OperationList]
30445
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
27949
30446
  #
27950
30447
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27951
30448
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27952
30449
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27953
- def list_region_operations(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)
27954
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
27955
- command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
27956
- command.response_class = Google::Apis::ComputeAlpha::OperationList
30450
+ def list_region_security_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)
30451
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
30452
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
30453
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
27957
30454
  command.params['project'] = project unless project.nil?
27958
30455
  command.params['region'] = region unless region.nil?
27959
30456
  command.query['filter'] = filter unless filter.nil?
@@ -27967,23 +30464,25 @@ module Google
27967
30464
  execute_or_queue_command(command, &block)
27968
30465
  end
27969
30466
 
27970
- # Waits for the specified Operation resource to return as `DONE` or for the
27971
- # request to approach the 2 minute deadline, and retrieves the specified
27972
- # Operation resource. This method differs from the `GET` method in that it waits
27973
- # for no more than the default deadline (2 minutes) and then returns the current
27974
- # state of the operation, which might be `DONE` or still in progress.
27975
- # This method is called on a best-effort basis. Specifically:
27976
- # - In uncommon cases, when the server is overloaded, the request might return
27977
- # before the default deadline is reached, or might return after zero seconds.
27978
- # - If the default deadline is reached, there is no guarantee that the operation
27979
- # is actually done when the method returns. Be prepared to retry if the
27980
- # operation is not `DONE`.
30467
+ # Patches the specified policy with the data included in the request.
27981
30468
  # @param [String] project
27982
30469
  # Project ID for this request.
27983
30470
  # @param [String] region
27984
- # Name of the region for this request.
27985
- # @param [String] operation
27986
- # Name of the Operations resource to return.
30471
+ # Name of the region scoping this request.
30472
+ # @param [String] security_policy
30473
+ # Name of the security policy to update.
30474
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
30475
+ # @param [String] request_id
30476
+ # An optional request ID to identify requests. Specify a unique request ID so
30477
+ # that if you must retry your request, the server will know to ignore the
30478
+ # request if it has already been completed.
30479
+ # For example, consider a situation where you make an initial request and the
30480
+ # request times out. If you make the request again with the same request ID, the
30481
+ # server can check if original operation with the same request ID was received,
30482
+ # and if so, will ignore the second request. This prevents clients from
30483
+ # accidentally creating duplicate commitments.
30484
+ # The request ID must be a valid UUID with the exception that zero UUID is not
30485
+ # supported (00000000-0000-0000-0000-000000000000).
27987
30486
  # @param [String] fields
27988
30487
  # Selector specifying which fields to include in a partial response.
27989
30488
  # @param [String] quota_user
@@ -28003,13 +30502,16 @@ module Google
28003
30502
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28004
30503
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28005
30504
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28006
- def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28007
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options)
30505
+ def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30506
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
30507
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
30508
+ command.request_object = security_policy_object
28008
30509
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
28009
30510
  command.response_class = Google::Apis::ComputeAlpha::Operation
28010
30511
  command.params['project'] = project unless project.nil?
28011
30512
  command.params['region'] = region unless region.nil?
28012
- command.params['operation'] = operation unless operation.nil?
30513
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30514
+ command.query['requestId'] = request_id unless request_id.nil?
28013
30515
  command.query['fields'] = fields unless fields.nil?
28014
30516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
28015
30517
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -31347,6 +33849,90 @@ module Google
31347
33849
  execute_or_queue_command(command, &block)
31348
33850
  end
31349
33851
 
33852
+ # Retrieves the list of all SecurityPolicy resources, regional and global,
33853
+ # available to the specified project.
33854
+ # @param [String] project
33855
+ # Name of the project scoping this request.
33856
+ # @param [String] filter
33857
+ # A filter expression that filters resources listed in the response. The
33858
+ # expression must specify the field name, a comparison operator, and the value
33859
+ # that you want to use for filtering. The value must be a string, a number, or a
33860
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
33861
+ # For example, if you are filtering Compute Engine instances, you can exclude
33862
+ # instances named `example-instance` by specifying `name != example-instance`.
33863
+ # You can also filter nested fields. For example, you could specify `scheduling.
33864
+ # automaticRestart = false` to include instances only if they are not scheduled
33865
+ # for automatic restarts. You can use filtering on nested fields to filter based
33866
+ # on resource labels.
33867
+ # To filter on multiple expressions, provide each separate expression within
33868
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
33869
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
33870
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
33871
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
33872
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
33873
+ # @param [Boolean] include_all_scopes
33874
+ # Indicates whether every visible scope for each scope type (zone, region,
33875
+ # global) should be included in the response. For new resource types added after
33876
+ # this field, the flag has no effect as new resource types will always include
33877
+ # every visible scope for each scope type in response. For resource types which
33878
+ # predate this field, if this flag is omitted or false, only scopes of the scope
33879
+ # types where the resource type is expected to be found will be included.
33880
+ # @param [Fixnum] max_results
33881
+ # The maximum number of results per page that should be returned. If the number
33882
+ # of available results is larger than `maxResults`, Compute Engine returns a `
33883
+ # nextPageToken` that can be used to get the next page of results in subsequent
33884
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33885
+ # @param [String] order_by
33886
+ # Sorts list results by a certain order. By default, results are returned in
33887
+ # alphanumerical order based on the resource name.
33888
+ # You can also sort results in descending order based on the creation timestamp
33889
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
33890
+ # creationTimestamp` field in reverse chronological order (newest result first).
33891
+ # Use this to sort resources like operations so that the newest operation is
33892
+ # returned first.
33893
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33894
+ # @param [String] page_token
33895
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33896
+ # by a previous list request to get the next page of results.
33897
+ # @param [Boolean] return_partial_success
33898
+ # Opt-in for partial success behavior which provides partial results in case of
33899
+ # failure. The default value is false.
33900
+ # @param [String] fields
33901
+ # Selector specifying which fields to include in a partial response.
33902
+ # @param [String] quota_user
33903
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33904
+ # characters.
33905
+ # @param [String] user_ip
33906
+ # Deprecated. Please use quotaUser instead.
33907
+ # @param [Google::Apis::RequestOptions] options
33908
+ # Request-specific options
33909
+ #
33910
+ # @yield [result, err] Result & error if block supplied
33911
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList] parsed result object
33912
+ # @yieldparam err [StandardError] error object if request failed
33913
+ #
33914
+ # @return [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList]
33915
+ #
33916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33919
+ def aggregated_security_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33920
+ command = make_simple_command(:get, 'projects/{project}/aggregated/securityPolicies', options)
33921
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList::Representation
33922
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList
33923
+ command.params['project'] = project unless project.nil?
33924
+ command.query['filter'] = filter unless filter.nil?
33925
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
33926
+ command.query['maxResults'] = max_results unless max_results.nil?
33927
+ command.query['orderBy'] = order_by unless order_by.nil?
33928
+ command.query['pageToken'] = page_token unless page_token.nil?
33929
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33930
+ command.query['fields'] = fields unless fields.nil?
33931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33932
+ command.query['userIp'] = user_ip unless user_ip.nil?
33933
+ execute_or_queue_command(command, &block)
33934
+ end
33935
+
31350
33936
  # Deletes the specified policy.
31351
33937
  # @param [String] project
31352
33938
  # Project ID for this request.
@@ -32236,6 +34822,63 @@ module Google
32236
34822
  execute_or_queue_command(command, &block)
32237
34823
  end
32238
34824
 
34825
+ # Patches the specified ServiceAttachment resource with the data included in the
34826
+ # request. This method supports PATCH semantics and uses JSON merge patch format
34827
+ # and processing rules.
34828
+ # @param [String] project
34829
+ # Project ID for this request.
34830
+ # @param [String] region
34831
+ # The region scoping this request and should conform to RFC1035.
34832
+ # @param [String] service_attachment
34833
+ # The resource id of the ServiceAttachment to patch. It should conform to
34834
+ # RFC1035 resource name or be a string form on an unsigned long number.
34835
+ # @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
34836
+ # @param [String] request_id
34837
+ # An optional request ID to identify requests. Specify a unique request ID so
34838
+ # that if you must retry your request, the server will know to ignore the
34839
+ # request if it has already been completed.
34840
+ # For example, consider a situation where you make an initial request and the
34841
+ # request times out. If you make the request again with the same request ID, the
34842
+ # server can check if original operation with the same request ID was received,
34843
+ # and if so, will ignore the second request. This prevents clients from
34844
+ # accidentally creating duplicate commitments.
34845
+ # The request ID must be a valid UUID with the exception that zero UUID is not
34846
+ # supported (00000000-0000-0000-0000-000000000000).
34847
+ # @param [String] fields
34848
+ # Selector specifying which fields to include in a partial response.
34849
+ # @param [String] quota_user
34850
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
34851
+ # characters.
34852
+ # @param [String] user_ip
34853
+ # Deprecated. Please use quotaUser instead.
34854
+ # @param [Google::Apis::RequestOptions] options
34855
+ # Request-specific options
34856
+ #
34857
+ # @yield [result, err] Result & error if block supplied
34858
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
34859
+ # @yieldparam err [StandardError] error object if request failed
34860
+ #
34861
+ # @return [Google::Apis::ComputeAlpha::Operation]
34862
+ #
34863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34866
+ def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34867
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
34868
+ command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
34869
+ command.request_object = service_attachment_object
34870
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
34871
+ command.response_class = Google::Apis::ComputeAlpha::Operation
34872
+ command.params['project'] = project unless project.nil?
34873
+ command.params['region'] = region unless region.nil?
34874
+ command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
34875
+ command.query['requestId'] = request_id unless request_id.nil?
34876
+ command.query['fields'] = fields unless fields.nil?
34877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34878
+ command.query['userIp'] = user_ip unless user_ip.nil?
34879
+ execute_or_queue_command(command, &block)
34880
+ end
34881
+
32239
34882
  # Sets the access control policy on the specified resource. Replaces any
32240
34883
  # existing policy.
32241
34884
  # @param [String] project
@@ -39578,7 +42221,7 @@ module Google
39578
42221
  execute_or_queue_command(command, &block)
39579
42222
  end
39580
42223
 
39581
- # Export the changed blocks between two instant snapshots to a customer?s bucket
42224
+ # Export the changed blocks between two instant snapshots to a customer's bucket
39582
42225
  # in the user specified format.
39583
42226
  # @param [String] project
39584
42227
  # Project ID for this request.