google-apis-compute_alpha 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5332,6 +5332,417 @@ module Google
5332
5332
  execute_or_queue_command(command, &block)
5333
5333
  end
5334
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
+
5335
5746
  # Deletes the specified address resource.
5336
5747
  # @param [String] project
5337
5748
  # Project ID for this request.
@@ -12377,7 +12788,7 @@ module Google
12377
12788
  # supported (00000000-0000-0000-0000-000000000000).
12378
12789
  # @param [Array<String>, String] secure_tags
12379
12790
  # Secure tags to apply to this instance. These can be later modified by the
12380
- # update method. Maximum number of secure tags allowed is 300.
12791
+ # update method. Maximum number of secure tags allowed is 50.
12381
12792
  # @param [String] source_instance_template
12382
12793
  # Specifies instance template to create the instance.
12383
12794
  # This field is optional. It can be a full or partial URL. For example, the
@@ -13897,7 +14308,7 @@ module Google
13897
14308
  # supported (00000000-0000-0000-0000-000000000000).
13898
14309
  # @param [Array<String>, String] secure_tags
13899
14310
  # Secure tags to apply to this instance. Maximum number of secure tags allowed
13900
- # is 300.
14311
+ # is 50.
13901
14312
  # @param [String] fields
13902
14313
  # Selector specifying which fields to include in a partial response.
13903
14314
  # @param [String] quota_user
@@ -16195,31 +16606,233 @@ module Google
16195
16606
  # Request-specific options
16196
16607
  #
16197
16608
  # @yield [result, err] Result & error if block supplied
16198
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
16609
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
16610
+ # @yieldparam err [StandardError] error object if request failed
16611
+ #
16612
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
16613
+ #
16614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16617
+ def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16618
+ command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/testIamPermissions', options)
16619
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
16620
+ command.request_object = test_permissions_request_object
16621
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
16622
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
16623
+ command.params['project'] = project unless project.nil?
16624
+ command.params['resource'] = resource unless resource.nil?
16625
+ command.query['fields'] = fields unless fields.nil?
16626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16627
+ command.query['userIp'] = user_ip unless user_ip.nil?
16628
+ execute_or_queue_command(command, &block)
16629
+ end
16630
+
16631
+ # Retrieves an aggregated list of machine types.
16632
+ # @param [String] project
16633
+ # Project ID for this request.
16634
+ # @param [String] filter
16635
+ # A filter expression that filters resources listed in the response. The
16636
+ # expression must specify the field name, a comparison operator, and the value
16637
+ # that you want to use for filtering. The value must be a string, a number, or a
16638
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
16639
+ # For example, if you are filtering Compute Engine instances, you can exclude
16640
+ # instances named `example-instance` by specifying `name != example-instance`.
16641
+ # You can also filter nested fields. For example, you could specify `scheduling.
16642
+ # automaticRestart = false` to include instances only if they are not scheduled
16643
+ # for automatic restarts. You can use filtering on nested fields to filter based
16644
+ # on resource labels.
16645
+ # To filter on multiple expressions, provide each separate expression within
16646
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
16647
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
16648
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
16649
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
16650
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
16651
+ # @param [Boolean] include_all_scopes
16652
+ # Indicates whether every visible scope for each scope type (zone, region,
16653
+ # global) should be included in the response. For new resource types added after
16654
+ # this field, the flag has no effect as new resource types will always include
16655
+ # every visible scope for each scope type in response. For resource types which
16656
+ # predate this field, if this flag is omitted or false, only scopes of the scope
16657
+ # types where the resource type is expected to be found will be included.
16658
+ # @param [Fixnum] max_results
16659
+ # The maximum number of results per page that should be returned. If the number
16660
+ # of available results is larger than `maxResults`, Compute Engine returns a `
16661
+ # nextPageToken` that can be used to get the next page of results in subsequent
16662
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16663
+ # @param [String] order_by
16664
+ # Sorts list results by a certain order. By default, results are returned in
16665
+ # alphanumerical order based on the resource name.
16666
+ # You can also sort results in descending order based on the creation timestamp
16667
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
16668
+ # creationTimestamp` field in reverse chronological order (newest result first).
16669
+ # Use this to sort resources like operations so that the newest operation is
16670
+ # returned first.
16671
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16672
+ # @param [String] page_token
16673
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16674
+ # by a previous list request to get the next page of results.
16675
+ # @param [Boolean] return_partial_success
16676
+ # Opt-in for partial success behavior which provides partial results in case of
16677
+ # failure. The default value is false.
16678
+ # @param [String] fields
16679
+ # Selector specifying which fields to include in a partial response.
16680
+ # @param [String] quota_user
16681
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16682
+ # characters.
16683
+ # @param [String] user_ip
16684
+ # Deprecated. Please use quotaUser instead.
16685
+ # @param [Google::Apis::RequestOptions] options
16686
+ # Request-specific options
16687
+ #
16688
+ # @yield [result, err] Result & error if block supplied
16689
+ # @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeAggregatedList] parsed result object
16690
+ # @yieldparam err [StandardError] error object if request failed
16691
+ #
16692
+ # @return [Google::Apis::ComputeAlpha::MachineTypeAggregatedList]
16693
+ #
16694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16697
+ def aggregated_machine_type_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)
16698
+ command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
16699
+ command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation
16700
+ command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList
16701
+ command.params['project'] = project unless project.nil?
16702
+ command.query['filter'] = filter unless filter.nil?
16703
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
16704
+ command.query['maxResults'] = max_results unless max_results.nil?
16705
+ command.query['orderBy'] = order_by unless order_by.nil?
16706
+ command.query['pageToken'] = page_token unless page_token.nil?
16707
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16708
+ command.query['fields'] = fields unless fields.nil?
16709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16710
+ command.query['userIp'] = user_ip unless user_ip.nil?
16711
+ execute_or_queue_command(command, &block)
16712
+ end
16713
+
16714
+ # Returns the specified machine type. Gets a list of available machine types by
16715
+ # making a list() request.
16716
+ # @param [String] project
16717
+ # Project ID for this request.
16718
+ # @param [String] zone
16719
+ # The name of the zone for this request.
16720
+ # @param [String] machine_type
16721
+ # Name of the machine type to return.
16722
+ # @param [String] fields
16723
+ # Selector specifying which fields to include in a partial response.
16724
+ # @param [String] quota_user
16725
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16726
+ # characters.
16727
+ # @param [String] user_ip
16728
+ # Deprecated. Please use quotaUser instead.
16729
+ # @param [Google::Apis::RequestOptions] options
16730
+ # Request-specific options
16731
+ #
16732
+ # @yield [result, err] Result & error if block supplied
16733
+ # @yieldparam result [Google::Apis::ComputeAlpha::MachineType] parsed result object
16734
+ # @yieldparam err [StandardError] error object if request failed
16735
+ #
16736
+ # @return [Google::Apis::ComputeAlpha::MachineType]
16737
+ #
16738
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16739
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16740
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16741
+ def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16742
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options)
16743
+ command.response_representation = Google::Apis::ComputeAlpha::MachineType::Representation
16744
+ command.response_class = Google::Apis::ComputeAlpha::MachineType
16745
+ command.params['project'] = project unless project.nil?
16746
+ command.params['zone'] = zone unless zone.nil?
16747
+ command.params['machineType'] = machine_type unless machine_type.nil?
16748
+ command.query['fields'] = fields unless fields.nil?
16749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16750
+ command.query['userIp'] = user_ip unless user_ip.nil?
16751
+ execute_or_queue_command(command, &block)
16752
+ end
16753
+
16754
+ # Retrieves a list of machine types available to the specified project.
16755
+ # @param [String] project
16756
+ # Project ID for this request.
16757
+ # @param [String] zone
16758
+ # The name of the zone for this request.
16759
+ # @param [String] filter
16760
+ # A filter expression that filters resources listed in the response. The
16761
+ # expression must specify the field name, a comparison operator, and the value
16762
+ # that you want to use for filtering. The value must be a string, a number, or a
16763
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
16764
+ # For example, if you are filtering Compute Engine instances, you can exclude
16765
+ # instances named `example-instance` by specifying `name != example-instance`.
16766
+ # You can also filter nested fields. For example, you could specify `scheduling.
16767
+ # automaticRestart = false` to include instances only if they are not scheduled
16768
+ # for automatic restarts. You can use filtering on nested fields to filter based
16769
+ # on resource labels.
16770
+ # To filter on multiple expressions, provide each separate expression within
16771
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
16772
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
16773
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
16774
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
16775
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
16776
+ # @param [Fixnum] max_results
16777
+ # The maximum number of results per page that should be returned. If the number
16778
+ # of available results is larger than `maxResults`, Compute Engine returns a `
16779
+ # nextPageToken` that can be used to get the next page of results in subsequent
16780
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16781
+ # @param [String] order_by
16782
+ # Sorts list results by a certain order. By default, results are returned in
16783
+ # alphanumerical order based on the resource name.
16784
+ # You can also sort results in descending order based on the creation timestamp
16785
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
16786
+ # creationTimestamp` field in reverse chronological order (newest result first).
16787
+ # Use this to sort resources like operations so that the newest operation is
16788
+ # returned first.
16789
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16790
+ # @param [String] page_token
16791
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16792
+ # by a previous list request to get the next page of results.
16793
+ # @param [Boolean] return_partial_success
16794
+ # Opt-in for partial success behavior which provides partial results in case of
16795
+ # failure. The default value is false.
16796
+ # @param [String] fields
16797
+ # Selector specifying which fields to include in a partial response.
16798
+ # @param [String] quota_user
16799
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16800
+ # characters.
16801
+ # @param [String] user_ip
16802
+ # Deprecated. Please use quotaUser instead.
16803
+ # @param [Google::Apis::RequestOptions] options
16804
+ # Request-specific options
16805
+ #
16806
+ # @yield [result, err] Result & error if block supplied
16807
+ # @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeList] parsed result object
16199
16808
  # @yieldparam err [StandardError] error object if request failed
16200
16809
  #
16201
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
16810
+ # @return [Google::Apis::ComputeAlpha::MachineTypeList]
16202
16811
  #
16203
16812
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16204
16813
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16205
16814
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16206
- def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16207
- command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/testIamPermissions', options)
16208
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
16209
- command.request_object = test_permissions_request_object
16210
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
16211
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
16815
+ def list_machine_types(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)
16816
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options)
16817
+ command.response_representation = Google::Apis::ComputeAlpha::MachineTypeList::Representation
16818
+ command.response_class = Google::Apis::ComputeAlpha::MachineTypeList
16212
16819
  command.params['project'] = project unless project.nil?
16213
- command.params['resource'] = resource unless resource.nil?
16820
+ command.params['zone'] = zone unless zone.nil?
16821
+ command.query['filter'] = filter unless filter.nil?
16822
+ command.query['maxResults'] = max_results unless max_results.nil?
16823
+ command.query['orderBy'] = order_by unless order_by.nil?
16824
+ command.query['pageToken'] = page_token unless page_token.nil?
16825
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16214
16826
  command.query['fields'] = fields unless fields.nil?
16215
16827
  command.query['quotaUser'] = quota_user unless quota_user.nil?
16216
16828
  command.query['userIp'] = user_ip unless user_ip.nil?
16217
16829
  execute_or_queue_command(command, &block)
16218
16830
  end
16219
16831
 
16220
- # Retrieves an aggregated list of machine types.
16832
+ # Retrieves the list of all NetworkEdgeSecurityService resources available to
16833
+ # the specified project.
16221
16834
  # @param [String] project
16222
- # Project ID for this request.
16835
+ # Name of the project scoping this request.
16223
16836
  # @param [String] filter
16224
16837
  # A filter expression that filters resources listed in the response. The
16225
16838
  # expression must specify the field name, a comparison operator, and the value
@@ -16275,18 +16888,18 @@ module Google
16275
16888
  # Request-specific options
16276
16889
  #
16277
16890
  # @yield [result, err] Result & error if block supplied
16278
- # @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeAggregatedList] parsed result object
16891
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList] parsed result object
16279
16892
  # @yieldparam err [StandardError] error object if request failed
16280
16893
  #
16281
- # @return [Google::Apis::ComputeAlpha::MachineTypeAggregatedList]
16894
+ # @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList]
16282
16895
  #
16283
16896
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16284
16897
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16285
16898
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16286
- def aggregated_machine_type_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)
16287
- command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
16288
- command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation
16289
- command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList
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
16290
16903
  command.params['project'] = project unless project.nil?
16291
16904
  command.query['filter'] = filter unless filter.nil?
16292
16905
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -16300,14 +16913,24 @@ module Google
16300
16913
  execute_or_queue_command(command, &block)
16301
16914
  end
16302
16915
 
16303
- # Returns the specified machine type. Gets a list of available machine types by
16304
- # making a list() request.
16916
+ # Deletes the specified service.
16305
16917
  # @param [String] project
16306
16918
  # Project ID for this request.
16307
- # @param [String] zone
16308
- # The name of the zone for this request.
16309
- # @param [String] machine_type
16310
- # Name of the machine type to return.
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).
16311
16934
  # @param [String] fields
16312
16935
  # Selector specifying which fields to include in a partial response.
16313
16936
  # @param [String] quota_user
@@ -16319,69 +16942,35 @@ module Google
16319
16942
  # Request-specific options
16320
16943
  #
16321
16944
  # @yield [result, err] Result & error if block supplied
16322
- # @yieldparam result [Google::Apis::ComputeAlpha::MachineType] parsed result object
16945
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16323
16946
  # @yieldparam err [StandardError] error object if request failed
16324
16947
  #
16325
- # @return [Google::Apis::ComputeAlpha::MachineType]
16948
+ # @return [Google::Apis::ComputeAlpha::Operation]
16326
16949
  #
16327
16950
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16328
16951
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16329
16952
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16330
- def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16331
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options)
16332
- command.response_representation = Google::Apis::ComputeAlpha::MachineType::Representation
16333
- command.response_class = Google::Apis::ComputeAlpha::MachineType
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
16334
16957
  command.params['project'] = project unless project.nil?
16335
- command.params['zone'] = zone unless zone.nil?
16336
- command.params['machineType'] = machine_type unless machine_type.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?
16337
16961
  command.query['fields'] = fields unless fields.nil?
16338
16962
  command.query['quotaUser'] = quota_user unless quota_user.nil?
16339
16963
  command.query['userIp'] = user_ip unless user_ip.nil?
16340
16964
  execute_or_queue_command(command, &block)
16341
16965
  end
16342
16966
 
16343
- # Retrieves a list of machine types available to the specified project.
16967
+ # Gets a specified NetworkEdgeSecurityService.
16344
16968
  # @param [String] project
16345
16969
  # Project ID for this request.
16346
- # @param [String] zone
16347
- # The name of the zone for this request.
16348
- # @param [String] filter
16349
- # A filter expression that filters resources listed in the response. The
16350
- # expression must specify the field name, a comparison operator, and the value
16351
- # that you want to use for filtering. The value must be a string, a number, or a
16352
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
16353
- # For example, if you are filtering Compute Engine instances, you can exclude
16354
- # instances named `example-instance` by specifying `name != example-instance`.
16355
- # You can also filter nested fields. For example, you could specify `scheduling.
16356
- # automaticRestart = false` to include instances only if they are not scheduled
16357
- # for automatic restarts. You can use filtering on nested fields to filter based
16358
- # on resource labels.
16359
- # To filter on multiple expressions, provide each separate expression within
16360
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
16361
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
16362
- # expression. However, you can include `AND` and `OR` expressions explicitly.
16363
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
16364
- # Broadwell") AND (scheduling.automaticRestart = true) ```
16365
- # @param [Fixnum] max_results
16366
- # The maximum number of results per page that should be returned. If the number
16367
- # of available results is larger than `maxResults`, Compute Engine returns a `
16368
- # nextPageToken` that can be used to get the next page of results in subsequent
16369
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16370
- # @param [String] order_by
16371
- # Sorts list results by a certain order. By default, results are returned in
16372
- # alphanumerical order based on the resource name.
16373
- # You can also sort results in descending order based on the creation timestamp
16374
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
16375
- # creationTimestamp` field in reverse chronological order (newest result first).
16376
- # Use this to sort resources like operations so that the newest operation is
16377
- # returned first.
16378
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16379
- # @param [String] page_token
16380
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16381
- # by a previous list request to get the next page of results.
16382
- # @param [Boolean] return_partial_success
16383
- # Opt-in for partial success behavior which provides partial results in case of
16384
- # failure. The default value is false.
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.
16385
16974
  # @param [String] fields
16386
16975
  # Selector specifying which fields to include in a partial response.
16387
16976
  # @param [String] quota_user
@@ -16393,25 +16982,133 @@ module Google
16393
16982
  # Request-specific options
16394
16983
  #
16395
16984
  # @yield [result, err] Result & error if block supplied
16396
- # @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeList] parsed result object
16985
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] parsed result object
16397
16986
  # @yieldparam err [StandardError] error object if request failed
16398
16987
  #
16399
- # @return [Google::Apis::ComputeAlpha::MachineTypeList]
16988
+ # @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService]
16400
16989
  #
16401
16990
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16402
16991
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16403
16992
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16404
- def list_machine_types(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)
16405
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options)
16406
- command.response_representation = Google::Apis::ComputeAlpha::MachineTypeList::Representation
16407
- command.response_class = Google::Apis::ComputeAlpha::MachineTypeList
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
16408
16997
  command.params['project'] = project unless project.nil?
16409
- command.params['zone'] = zone unless zone.nil?
16410
- command.query['filter'] = filter unless filter.nil?
16411
- command.query['maxResults'] = max_results unless max_results.nil?
16412
- command.query['orderBy'] = order_by unless order_by.nil?
16413
- command.query['pageToken'] = page_token unless page_token.nil?
16414
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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?
16415
17112
  command.query['fields'] = fields unless fields.nil?
16416
17113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
16417
17114
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -23401,23 +24098,82 @@ module Google
23401
24098
  # Request-specific options
23402
24099
  #
23403
24100
  # @yield [result, err] Result & error if block supplied
23404
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
24101
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
24102
+ # @yieldparam err [StandardError] error object if request failed
24103
+ #
24104
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
24105
+ #
24106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24109
+ def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24110
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
24111
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
24112
+ command.request_object = test_permissions_request_object
24113
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
24114
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
24115
+ command.params['project'] = project unless project.nil?
24116
+ command.params['region'] = region unless region.nil?
24117
+ command.params['resource'] = resource unless resource.nil?
24118
+ command.query['fields'] = fields unless fields.nil?
24119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24120
+ command.query['userIp'] = user_ip unless user_ip.nil?
24121
+ execute_or_queue_command(command, &block)
24122
+ end
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
23405
24159
  # @yieldparam err [StandardError] error object if request failed
23406
24160
  #
23407
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
24161
+ # @return [Google::Apis::ComputeAlpha::Operation]
23408
24162
  #
23409
24163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23410
24164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23411
24165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
23412
- def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23413
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
23414
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
23415
- command.request_object = test_permissions_request_object
23416
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
23417
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
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
23418
24172
  command.params['project'] = project unless project.nil?
23419
24173
  command.params['region'] = region unless region.nil?
23420
- command.params['resource'] = resource unless resource.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?
23421
24177
  command.query['fields'] = fields unless fields.nil?
23422
24178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
23423
24179
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -29214,39 +29970,294 @@ module Google
29214
29970
  # Request-specific options
29215
29971
  #
29216
29972
  # @yield [result, err] Result & error if block supplied
29217
- # @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
30170
+ # @yieldparam err [StandardError] error object if request failed
30171
+ #
30172
+ # @return [Google::Apis::ComputeAlpha::OperationList]
30173
+ #
30174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
30181
+ command.params['project'] = project unless project.nil?
30182
+ command.params['region'] = region unless region.nil?
30183
+ command.query['filter'] = filter unless filter.nil?
30184
+ command.query['maxResults'] = max_results unless max_results.nil?
30185
+ command.query['orderBy'] = order_by unless order_by.nil?
30186
+ command.query['pageToken'] = page_token unless page_token.nil?
30187
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30188
+ command.query['fields'] = fields unless fields.nil?
30189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30190
+ command.query['userIp'] = user_ip unless user_ip.nil?
30191
+ execute_or_queue_command(command, &block)
30192
+ end
30193
+
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`.
30205
+ # @param [String] project
30206
+ # Project ID for this request.
30207
+ # @param [String] region
30208
+ # Name of the region for this request.
30209
+ # @param [String] operation
30210
+ # Name of the Operations resource to return.
30211
+ # @param [String] fields
30212
+ # Selector specifying which fields to include in a partial response.
30213
+ # @param [String] quota_user
30214
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30215
+ # characters.
30216
+ # @param [String] user_ip
30217
+ # Deprecated. Please use quotaUser instead.
30218
+ # @param [Google::Apis::RequestOptions] options
30219
+ # Request-specific options
30220
+ #
30221
+ # @yield [result, err] Result & error if block supplied
30222
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29218
30223
  # @yieldparam err [StandardError] error object if request failed
29219
30224
  #
29220
- # @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
30225
+ # @return [Google::Apis::ComputeAlpha::Operation]
29221
30226
  #
29222
30227
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29223
30228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29224
30229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29225
- 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)
29226
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
29227
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
29228
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
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
29229
30234
  command.params['project'] = project unless project.nil?
29230
30235
  command.params['region'] = region unless region.nil?
29231
- command.query['filter'] = filter unless filter.nil?
29232
- command.query['maxResults'] = max_results unless max_results.nil?
29233
- command.query['orderBy'] = order_by unless order_by.nil?
29234
- command.query['pageToken'] = page_token unless page_token.nil?
29235
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30236
+ command.params['operation'] = operation unless operation.nil?
29236
30237
  command.query['fields'] = fields unless fields.nil?
29237
30238
  command.query['quotaUser'] = quota_user unless quota_user.nil?
29238
30239
  command.query['userIp'] = user_ip unless user_ip.nil?
29239
30240
  execute_or_queue_command(command, &block)
29240
30241
  end
29241
30242
 
29242
- # Returns permissions that a caller has on the specified resource.
30243
+ # Deletes the specified policy.
29243
30244
  # @param [String] project
29244
30245
  # Project ID for this request.
29245
30246
  # @param [String] region
29246
- # The name of the region for this request.
29247
- # @param [String] resource
29248
- # Name or id of the resource for this request.
29249
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
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).
29250
30261
  # @param [String] fields
29251
30262
  # Selector specifying which fields to include in a partial response.
29252
30263
  # @param [String] quota_user
@@ -29258,36 +30269,35 @@ module Google
29258
30269
  # Request-specific options
29259
30270
  #
29260
30271
  # @yield [result, err] Result & error if block supplied
29261
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30272
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
29262
30273
  # @yieldparam err [StandardError] error object if request failed
29263
30274
  #
29264
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30275
+ # @return [Google::Apis::ComputeAlpha::Operation]
29265
30276
  #
29266
30277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29267
30278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29268
30279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29269
- 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)
29270
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
29271
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
29272
- command.request_object = test_permissions_request_object
29273
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
29274
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
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
29275
30284
  command.params['project'] = project unless project.nil?
29276
30285
  command.params['region'] = region unless region.nil?
29277
- command.params['resource'] = resource unless resource.nil?
30286
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30287
+ command.query['requestId'] = request_id unless request_id.nil?
29278
30288
  command.query['fields'] = fields unless fields.nil?
29279
30289
  command.query['quotaUser'] = quota_user unless quota_user.nil?
29280
30290
  command.query['userIp'] = user_ip unless user_ip.nil?
29281
30291
  execute_or_queue_command(command, &block)
29282
30292
  end
29283
30293
 
29284
- # Deletes the specified region-specific Operations resource.
30294
+ # List all of the ordered rules present in a single specified policy.
29285
30295
  # @param [String] project
29286
30296
  # Project ID for this request.
29287
30297
  # @param [String] region
29288
- # Name of the region for this request.
29289
- # @param [String] operation
29290
- # Name of the Operations resource to delete.
30298
+ # Name of the region scoping this request.
30299
+ # @param [String] security_policy
30300
+ # Name of the security policy to get.
29291
30301
  # @param [String] fields
29292
30302
  # Selector specifying which fields to include in a partial response.
29293
30303
  # @param [String] quota_user
@@ -29299,32 +30309,47 @@ module Google
29299
30309
  # Request-specific options
29300
30310
  #
29301
30311
  # @yield [result, err] Result & error if block supplied
29302
- # @yieldparam result [NilClass] No result returned for this method
30312
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
29303
30313
  # @yieldparam err [StandardError] error object if request failed
29304
30314
  #
29305
- # @return [void]
30315
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicy]
29306
30316
  #
29307
30317
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29308
30318
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29309
30319
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29310
- def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29311
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
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
29312
30324
  command.params['project'] = project unless project.nil?
29313
30325
  command.params['region'] = region unless region.nil?
29314
- command.params['operation'] = operation unless operation.nil?
30326
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
29315
30327
  command.query['fields'] = fields unless fields.nil?
29316
30328
  command.query['quotaUser'] = quota_user unless quota_user.nil?
29317
30329
  command.query['userIp'] = user_ip unless user_ip.nil?
29318
30330
  execute_or_queue_command(command, &block)
29319
30331
  end
29320
30332
 
29321
- # Retrieves the specified region-specific Operations resource.
30333
+ # Creates a new policy in the specified project using the data included in the
30334
+ # request.
29322
30335
  # @param [String] project
29323
30336
  # Project ID for this request.
29324
30337
  # @param [String] region
29325
- # Name of the region for this request.
29326
- # @param [String] operation
29327
- # Name of the Operations resource to return.
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.
29328
30353
  # @param [String] fields
29329
30354
  # Selector specifying which fields to include in a partial response.
29330
30355
  # @param [String] quota_user
@@ -29344,24 +30369,28 @@ module Google
29344
30369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29345
30370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29346
30371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29347
- def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29348
- 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
29349
30376
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29350
30377
  command.response_class = Google::Apis::ComputeAlpha::Operation
29351
30378
  command.params['project'] = project unless project.nil?
29352
30379
  command.params['region'] = region unless region.nil?
29353
- 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?
29354
30382
  command.query['fields'] = fields unless fields.nil?
29355
30383
  command.query['quotaUser'] = quota_user unless quota_user.nil?
29356
30384
  command.query['userIp'] = user_ip unless user_ip.nil?
29357
30385
  execute_or_queue_command(command, &block)
29358
30386
  end
29359
30387
 
29360
- # 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.
29361
30390
  # @param [String] project
29362
30391
  # Project ID for this request.
29363
30392
  # @param [String] region
29364
- # Name of the region for this request.
30393
+ # Name of the region scoping this request.
29365
30394
  # @param [String] filter
29366
30395
  # A filter expression that filters resources listed in the response. The
29367
30396
  # expression must specify the field name, a comparison operator, and the value
@@ -29410,18 +30439,18 @@ module Google
29410
30439
  # Request-specific options
29411
30440
  #
29412
30441
  # @yield [result, err] Result & error if block supplied
29413
- # @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
30442
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
29414
30443
  # @yieldparam err [StandardError] error object if request failed
29415
30444
  #
29416
- # @return [Google::Apis::ComputeAlpha::OperationList]
30445
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
29417
30446
  #
29418
30447
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29419
30448
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29420
30449
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29421
- 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)
29422
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
29423
- command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
29424
- 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
29425
30454
  command.params['project'] = project unless project.nil?
29426
30455
  command.params['region'] = region unless region.nil?
29427
30456
  command.query['filter'] = filter unless filter.nil?
@@ -29435,23 +30464,25 @@ module Google
29435
30464
  execute_or_queue_command(command, &block)
29436
30465
  end
29437
30466
 
29438
- # Waits for the specified Operation resource to return as `DONE` or for the
29439
- # request to approach the 2 minute deadline, and retrieves the specified
29440
- # Operation resource. This method differs from the `GET` method in that it waits
29441
- # for no more than the default deadline (2 minutes) and then returns the current
29442
- # state of the operation, which might be `DONE` or still in progress.
29443
- # This method is called on a best-effort basis. Specifically:
29444
- # - In uncommon cases, when the server is overloaded, the request might return
29445
- # before the default deadline is reached, or might return after zero seconds.
29446
- # - If the default deadline is reached, there is no guarantee that the operation
29447
- # is actually done when the method returns. Be prepared to retry if the
29448
- # operation is not `DONE`.
30467
+ # Patches the specified policy with the data included in the request.
29449
30468
  # @param [String] project
29450
30469
  # Project ID for this request.
29451
30470
  # @param [String] region
29452
- # Name of the region for this request.
29453
- # @param [String] operation
29454
- # 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).
29455
30486
  # @param [String] fields
29456
30487
  # Selector specifying which fields to include in a partial response.
29457
30488
  # @param [String] quota_user
@@ -29471,13 +30502,16 @@ module Google
29471
30502
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29472
30503
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29473
30504
  # @raise [Google::Apis::AuthorizationError] Authorization is required
29474
- def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29475
- 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
29476
30509
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
29477
30510
  command.response_class = Google::Apis::ComputeAlpha::Operation
29478
30511
  command.params['project'] = project unless project.nil?
29479
30512
  command.params['region'] = region unless region.nil?
29480
- 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?
29481
30515
  command.query['fields'] = fields unless fields.nil?
29482
30516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
29483
30517
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -32815,6 +33849,90 @@ module Google
32815
33849
  execute_or_queue_command(command, &block)
32816
33850
  end
32817
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
+
32818
33936
  # Deletes the specified policy.
32819
33937
  # @param [String] project
32820
33938
  # Project ID for this request.