google-apis-compute_beta 0.94.0 → 0.96.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.
@@ -6437,7 +6437,6 @@ module Google
6437
6437
  # @param [String] future_reservation
6438
6438
  # Name of the reservation to update. Name should conform to RFC1035.
6439
6439
  # @param [Google::Apis::ComputeBeta::FutureReservation] future_reservation_object
6440
- # @param [Array<String>, String] paths
6441
6440
  # @param [String] request_id
6442
6441
  # An optional request ID to identify requests. Specify a unique request ID so
6443
6442
  # that if you must retry your request, the server will know to ignore the
@@ -6469,7 +6468,7 @@ module Google
6469
6468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6470
6469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6471
6470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
6472
- def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6471
+ def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6473
6472
  command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
6474
6473
  command.request_representation = Google::Apis::ComputeBeta::FutureReservation::Representation
6475
6474
  command.request_object = future_reservation_object
@@ -6478,7 +6477,6 @@ module Google
6478
6477
  command.params['project'] = project unless project.nil?
6479
6478
  command.params['zone'] = zone unless zone.nil?
6480
6479
  command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6481
- command.query['paths'] = paths unless paths.nil?
6482
6480
  command.query['requestId'] = request_id unless request_id.nil?
6483
6481
  command.query['updateMask'] = update_mask unless update_mask.nil?
6484
6482
  command.query['fields'] = fields unless fields.nil?
@@ -13234,6 +13232,8 @@ module Google
13234
13232
  # Project ID for this request.
13235
13233
  # @param [String] instance_template
13236
13234
  # The name of the instance template.
13235
+ # @param [String] view
13236
+ # View of the instance template.
13237
13237
  # @param [String] fields
13238
13238
  # Selector specifying which fields to include in a partial response.
13239
13239
  # @param [String] quota_user
@@ -13253,12 +13253,13 @@ module Google
13253
13253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13254
13254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13255
13255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13256
- def get_instance_template(project, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13256
+ def get_instance_template(project, instance_template, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13257
13257
  command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options)
13258
13258
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
13259
13259
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplate
13260
13260
  command.params['project'] = project unless project.nil?
13261
13261
  command.params['instanceTemplate'] = instance_template unless instance_template.nil?
13262
+ command.query['view'] = view unless view.nil?
13262
13263
  command.query['fields'] = fields unless fields.nil?
13263
13264
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13264
13265
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -13412,6 +13413,8 @@ module Google
13412
13413
  # failure. The default value is false. For example, when partial success
13413
13414
  # behavior is enabled, aggregatedList for a single zone scope either returns all
13414
13415
  # resources in the zone or no resources, with an error code.
13416
+ # @param [String] view
13417
+ # View of the instance template.
13415
13418
  # @param [String] fields
13416
13419
  # Selector specifying which fields to include in a partial response.
13417
13420
  # @param [String] quota_user
@@ -13431,7 +13434,7 @@ module Google
13431
13434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13432
13435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13433
13436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13434
- def list_instance_templates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13437
+ def list_instance_templates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13435
13438
  command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates', options)
13436
13439
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation
13437
13440
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList
@@ -13441,6 +13444,7 @@ module Google
13441
13444
  command.query['orderBy'] = order_by unless order_by.nil?
13442
13445
  command.query['pageToken'] = page_token unless page_token.nil?
13443
13446
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
13447
+ command.query['view'] = view unless view.nil?
13444
13448
  command.query['fields'] = fields unless fields.nil?
13445
13449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13446
13450
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14024,6 +14028,8 @@ module Google
14024
14028
  # The name of the zone for this request.
14025
14029
  # @param [String] instance
14026
14030
  # Name of the instance resource to return.
14031
+ # @param [String] view
14032
+ # View of the instance.
14027
14033
  # @param [String] fields
14028
14034
  # Selector specifying which fields to include in a partial response.
14029
14035
  # @param [String] quota_user
@@ -14043,13 +14049,14 @@ module Google
14043
14049
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14044
14050
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14045
14051
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14046
- def get_instance(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14052
+ def get_instance(project, zone, instance, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14047
14053
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14048
14054
  command.response_representation = Google::Apis::ComputeBeta::Instance::Representation
14049
14055
  command.response_class = Google::Apis::ComputeBeta::Instance
14050
14056
  command.params['project'] = project unless project.nil?
14051
14057
  command.params['zone'] = zone unless zone.nil?
14052
14058
  command.params['instance'] = instance unless instance.nil?
14059
+ command.query['view'] = view unless view.nil?
14053
14060
  command.query['fields'] = fields unless fields.nil?
14054
14061
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14055
14062
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14186,6 +14193,48 @@ module Google
14186
14193
  execute_or_queue_command(command, &block)
14187
14194
  end
14188
14195
 
14196
+ # Gets partner metadata of the specified instance and namespaces.
14197
+ # @param [String] project
14198
+ # Project ID for this request.
14199
+ # @param [String] zone
14200
+ # The name of the zone for this request.
14201
+ # @param [String] instance
14202
+ # Name of the instance scoping this request.
14203
+ # @param [String] namespaces
14204
+ # Comma separated partner metadata namespaces.
14205
+ # @param [String] fields
14206
+ # Selector specifying which fields to include in a partial response.
14207
+ # @param [String] quota_user
14208
+ # Available to use for quota purposes for server-side applications. Can be any
14209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14210
+ # @param [String] user_ip
14211
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14212
+ # @param [Google::Apis::RequestOptions] options
14213
+ # Request-specific options
14214
+ #
14215
+ # @yield [result, err] Result & error if block supplied
14216
+ # @yieldparam result [Google::Apis::ComputeBeta::PartnerMetadata] parsed result object
14217
+ # @yieldparam err [StandardError] error object if request failed
14218
+ #
14219
+ # @return [Google::Apis::ComputeBeta::PartnerMetadata]
14220
+ #
14221
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14222
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14223
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14224
+ def get_instance_partner_metadata(project, zone, instance, namespaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14225
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata', options)
14226
+ command.response_representation = Google::Apis::ComputeBeta::PartnerMetadata::Representation
14227
+ command.response_class = Google::Apis::ComputeBeta::PartnerMetadata
14228
+ command.params['project'] = project unless project.nil?
14229
+ command.params['zone'] = zone unless zone.nil?
14230
+ command.params['instance'] = instance unless instance.nil?
14231
+ command.query['namespaces'] = namespaces unless namespaces.nil?
14232
+ command.query['fields'] = fields unless fields.nil?
14233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14234
+ command.query['userIp'] = user_ip unless user_ip.nil?
14235
+ execute_or_queue_command(command, &block)
14236
+ end
14237
+
14189
14238
  # Returns the screenshot from the specified instance.
14190
14239
  # @param [String] project
14191
14240
  # Project ID for this request.
@@ -14481,6 +14530,8 @@ module Google
14481
14530
  # failure. The default value is false. For example, when partial success
14482
14531
  # behavior is enabled, aggregatedList for a single zone scope either returns all
14483
14532
  # resources in the zone or no resources, with an error code.
14533
+ # @param [String] view
14534
+ # View of the instance.
14484
14535
  # @param [String] fields
14485
14536
  # Selector specifying which fields to include in a partial response.
14486
14537
  # @param [String] quota_user
@@ -14500,7 +14551,7 @@ module Google
14500
14551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14501
14552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14502
14553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14503
- def list_instances(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)
14554
+ def list_instances(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14504
14555
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances', options)
14505
14556
  command.response_representation = Google::Apis::ComputeBeta::InstanceList::Representation
14506
14557
  command.response_class = Google::Apis::ComputeBeta::InstanceList
@@ -14511,6 +14562,7 @@ module Google
14511
14562
  command.query['orderBy'] = order_by unless order_by.nil?
14512
14563
  command.query['pageToken'] = page_token unless page_token.nil?
14513
14564
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
14565
+ command.query['view'] = view unless view.nil?
14514
14566
  command.query['fields'] = fields unless fields.nil?
14515
14567
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14516
14568
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14618,6 +14670,59 @@ module Google
14618
14670
  execute_or_queue_command(command, &block)
14619
14671
  end
14620
14672
 
14673
+ # Patches partner metadata of the specified instance.
14674
+ # @param [String] project
14675
+ # Project ID for this request.
14676
+ # @param [String] zone
14677
+ # The name of the zone for this request.
14678
+ # @param [String] instance
14679
+ # Name of the instance scoping this request.
14680
+ # @param [Google::Apis::ComputeBeta::PartnerMetadata] partner_metadata_object
14681
+ # @param [String] request_id
14682
+ # An optional request ID to identify requests. Specify a unique request ID so
14683
+ # that if you must retry your request, the server will know to ignore the
14684
+ # request if it has already been completed. For example, consider a situation
14685
+ # where you make an initial request and the request times out. If you make the
14686
+ # request again with the same request ID, the server can check if original
14687
+ # operation with the same request ID was received, and if so, will ignore the
14688
+ # second request. This prevents clients from accidentally creating duplicate
14689
+ # commitments. The request ID must be a valid UUID with the exception that zero
14690
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
14691
+ # @param [String] fields
14692
+ # Selector specifying which fields to include in a partial response.
14693
+ # @param [String] quota_user
14694
+ # Available to use for quota purposes for server-side applications. Can be any
14695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14696
+ # @param [String] user_ip
14697
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14698
+ # @param [Google::Apis::RequestOptions] options
14699
+ # Request-specific options
14700
+ #
14701
+ # @yield [result, err] Result & error if block supplied
14702
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
14703
+ # @yieldparam err [StandardError] error object if request failed
14704
+ #
14705
+ # @return [Google::Apis::ComputeBeta::Operation]
14706
+ #
14707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14710
+ def patch_instance_partner_metadata(project, zone, instance, partner_metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14711
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata', options)
14712
+ command.request_representation = Google::Apis::ComputeBeta::PartnerMetadata::Representation
14713
+ command.request_object = partner_metadata_object
14714
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14715
+ command.response_class = Google::Apis::ComputeBeta::Operation
14716
+ command.params['project'] = project unless project.nil?
14717
+ command.params['zone'] = zone unless zone.nil?
14718
+ command.params['instance'] = instance unless instance.nil?
14719
+ command.query['requestId'] = request_id unless request_id.nil?
14720
+ command.query['fields'] = fields unless fields.nil?
14721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14722
+ command.query['userIp'] = user_ip unless user_ip.nil?
14723
+ execute_or_queue_command(command, &block)
14724
+ end
14725
+
14621
14726
  # Perform a manual maintenance on the instance.
14622
14727
  # @param [String] project
14623
14728
  # Project ID for this request.
@@ -31664,6 +31769,8 @@ module Google
31664
31769
  # The name of the region for this request.
31665
31770
  # @param [String] instance_template
31666
31771
  # The name of the instance template.
31772
+ # @param [String] view
31773
+ # View of the instance template.
31667
31774
  # @param [String] fields
31668
31775
  # Selector specifying which fields to include in a partial response.
31669
31776
  # @param [String] quota_user
@@ -31683,13 +31790,14 @@ module Google
31683
31790
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31684
31791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31685
31792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31686
- def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31793
+ def get_region_instance_template(project, region, instance_template, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31687
31794
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
31688
31795
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
31689
31796
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplate
31690
31797
  command.params['project'] = project unless project.nil?
31691
31798
  command.params['region'] = region unless region.nil?
31692
31799
  command.params['instanceTemplate'] = instance_template unless instance_template.nil?
31800
+ command.query['view'] = view unless view.nil?
31693
31801
  command.query['fields'] = fields unless fields.nil?
31694
31802
  command.query['quotaUser'] = quota_user unless quota_user.nil?
31695
31803
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -31806,6 +31914,8 @@ module Google
31806
31914
  # failure. The default value is false. For example, when partial success
31807
31915
  # behavior is enabled, aggregatedList for a single zone scope either returns all
31808
31916
  # resources in the zone or no resources, with an error code.
31917
+ # @param [String] view
31918
+ # View of the instance template.
31809
31919
  # @param [String] fields
31810
31920
  # Selector specifying which fields to include in a partial response.
31811
31921
  # @param [String] quota_user
@@ -31825,7 +31935,7 @@ module Google
31825
31935
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31826
31936
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31827
31937
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31828
- def list_region_instance_templates(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)
31938
+ def list_region_instance_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31829
31939
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
31830
31940
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation
31831
31941
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList
@@ -31836,6 +31946,7 @@ module Google
31836
31946
  command.query['orderBy'] = order_by unless order_by.nil?
31837
31947
  command.query['pageToken'] = page_token unless page_token.nil?
31838
31948
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31949
+ command.query['view'] = view unless view.nil?
31839
31950
  command.query['fields'] = fields unless fields.nil?
31840
31951
  command.query['quotaUser'] = quota_user unless quota_user.nil?
31841
31952
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -38294,6 +38405,59 @@ module Google
38294
38405
  execute_or_queue_command(command, &block)
38295
38406
  end
38296
38407
 
38408
+ # Deletes Route Policy
38409
+ # @param [String] project
38410
+ # Project ID for this request.
38411
+ # @param [String] region
38412
+ # Name of the region for this request.
38413
+ # @param [String] router
38414
+ # Name of the Router resource where Route Policy is defined.
38415
+ # @param [String] policy
38416
+ # The Policy name for this request. Name must conform to RFC1035
38417
+ # @param [String] request_id
38418
+ # An optional request ID to identify requests. Specify a unique request ID so
38419
+ # that if you must retry your request, the server will know to ignore the
38420
+ # request if it has already been completed. For example, consider a situation
38421
+ # where you make an initial request and the request times out. If you make the
38422
+ # request again with the same request ID, the server can check if original
38423
+ # operation with the same request ID was received, and if so, will ignore the
38424
+ # second request. This prevents clients from accidentally creating duplicate
38425
+ # commitments. The request ID must be a valid UUID with the exception that zero
38426
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
38427
+ # @param [String] fields
38428
+ # Selector specifying which fields to include in a partial response.
38429
+ # @param [String] quota_user
38430
+ # Available to use for quota purposes for server-side applications. Can be any
38431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38432
+ # @param [String] user_ip
38433
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38434
+ # @param [Google::Apis::RequestOptions] options
38435
+ # Request-specific options
38436
+ #
38437
+ # @yield [result, err] Result & error if block supplied
38438
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
38439
+ # @yieldparam err [StandardError] error object if request failed
38440
+ #
38441
+ # @return [Google::Apis::ComputeBeta::Operation]
38442
+ #
38443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38446
+ def delete_router_route_policy(project, region, router, policy: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38447
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy', options)
38448
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
38449
+ command.response_class = Google::Apis::ComputeBeta::Operation
38450
+ command.params['project'] = project unless project.nil?
38451
+ command.params['region'] = region unless region.nil?
38452
+ command.params['router'] = router unless router.nil?
38453
+ command.query['policy'] = policy unless policy.nil?
38454
+ command.query['requestId'] = request_id unless request_id.nil?
38455
+ command.query['fields'] = fields unless fields.nil?
38456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38457
+ command.query['userIp'] = user_ip unless user_ip.nil?
38458
+ execute_or_queue_command(command, &block)
38459
+ end
38460
+
38297
38461
  # Returns the specified Router resource.
38298
38462
  # @param [String] project
38299
38463
  # Project ID for this request.
@@ -38480,6 +38644,49 @@ module Google
38480
38644
  execute_or_queue_command(command, &block)
38481
38645
  end
38482
38646
 
38647
+ # Returns specified Route Policy
38648
+ # @param [String] project
38649
+ # Project ID for this request.
38650
+ # @param [String] region
38651
+ # Name of the region for this request.
38652
+ # @param [String] router
38653
+ # Name of the Router resource to query for the route policy. The name should
38654
+ # conform to RFC1035.
38655
+ # @param [String] policy
38656
+ # The Policy name for this request. Name must conform to RFC1035
38657
+ # @param [String] fields
38658
+ # Selector specifying which fields to include in a partial response.
38659
+ # @param [String] quota_user
38660
+ # Available to use for quota purposes for server-side applications. Can be any
38661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38662
+ # @param [String] user_ip
38663
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38664
+ # @param [Google::Apis::RequestOptions] options
38665
+ # Request-specific options
38666
+ #
38667
+ # @yield [result, err] Result & error if block supplied
38668
+ # @yieldparam result [Google::Apis::ComputeBeta::RoutersGetRoutePolicyResponse] parsed result object
38669
+ # @yieldparam err [StandardError] error object if request failed
38670
+ #
38671
+ # @return [Google::Apis::ComputeBeta::RoutersGetRoutePolicyResponse]
38672
+ #
38673
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38674
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38675
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38676
+ def get_router_route_policy(project, region, router, policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38677
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getRoutePolicy', options)
38678
+ command.response_representation = Google::Apis::ComputeBeta::RoutersGetRoutePolicyResponse::Representation
38679
+ command.response_class = Google::Apis::ComputeBeta::RoutersGetRoutePolicyResponse
38680
+ command.params['project'] = project unless project.nil?
38681
+ command.params['region'] = region unless region.nil?
38682
+ command.params['router'] = router unless router.nil?
38683
+ command.query['policy'] = policy unless policy.nil?
38684
+ command.query['fields'] = fields unless fields.nil?
38685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38686
+ command.query['userIp'] = user_ip unless user_ip.nil?
38687
+ execute_or_queue_command(command, &block)
38688
+ end
38689
+
38483
38690
  # Retrieves runtime information of the specified router.
38484
38691
  # @param [String] project
38485
38692
  # Project ID for this request.
@@ -38664,6 +38871,218 @@ module Google
38664
38871
  execute_or_queue_command(command, &block)
38665
38872
  end
38666
38873
 
38874
+ # Retrieves a list of router bgp routes available to the specified project.
38875
+ # @param [String] project
38876
+ # Project ID for this request.
38877
+ # @param [String] region
38878
+ # Name of the region for this request.
38879
+ # @param [String] router
38880
+ # Name or id of the resource for this request. Name should conform to RFC1035.
38881
+ # @param [String] address_family
38882
+ # (Required) limit results to this address family (either IPv4 or IPv6)
38883
+ # @param [String] destination_prefix
38884
+ # Limit results to destinations that are subnets of this CIDR range
38885
+ # @param [String] filter
38886
+ # A filter expression that filters resources listed in the response. Most
38887
+ # Compute resources support two types of filter expressions: expressions that
38888
+ # support regular expressions and expressions that follow API improvement
38889
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
38890
+ # request. If you want to use AIP-160, your expression must specify the field
38891
+ # name, an operator, and the value that you want to use for filtering. The value
38892
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
38893
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
38894
+ # Engine instances, you can exclude instances named `example-instance` by
38895
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
38896
+ # whether a key has been defined. For example, to find all objects with `owner`
38897
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
38898
+ # example, you could specify `scheduling.automaticRestart = false` to include
38899
+ # instances only if they are not scheduled for automatic restarts. You can use
38900
+ # filtering on nested fields to filter based on resource labels. To filter on
38901
+ # multiple expressions, provide each separate expression within parentheses. For
38902
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
38903
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
38904
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
38905
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
38906
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
38907
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
38908
+ # un-parenthesized expression with or without quotes or against multiple
38909
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
38910
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
38911
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
38912
+ # interpreted as a regular expression using Google RE2 library syntax. The
38913
+ # literal value must match the entire field. For example, to filter for
38914
+ # instances that do not end with name "instance", you would use `name ne .*
38915
+ # instance`. You cannot combine constraints on multiple fields using regular
38916
+ # expressions.
38917
+ # @param [Fixnum] max_results
38918
+ # The maximum number of results per page that should be returned. If the number
38919
+ # of available results is larger than `maxResults`, Compute Engine returns a `
38920
+ # nextPageToken` that can be used to get the next page of results in subsequent
38921
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
38922
+ # @param [String] order_by
38923
+ # Sorts list results by a certain order. By default, results are returned in
38924
+ # alphanumerical order based on the resource name. You can also sort results in
38925
+ # descending order based on the creation timestamp using `orderBy="
38926
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
38927
+ # field in reverse chronological order (newest result first). Use this to sort
38928
+ # resources like operations so that the newest operation is returned first.
38929
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
38930
+ # @param [String] page_token
38931
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
38932
+ # by a previous list request to get the next page of results.
38933
+ # @param [String] peer
38934
+ # (Required) limit results to the BGP peer with the given name. Name should
38935
+ # conform to RFC1035.
38936
+ # @param [Boolean] policy_applied
38937
+ # When true, the method returns post-policy routes. Otherwise, it returns pre-
38938
+ # policy routes.
38939
+ # @param [Boolean] return_partial_success
38940
+ # Opt-in for partial success behavior which provides partial results in case of
38941
+ # failure. The default value is false. For example, when partial success
38942
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
38943
+ # resources in the zone or no resources, with an error code.
38944
+ # @param [String] route_type
38945
+ # (Required) limit results to this type of route (either LEARNED or ADVERTISED)
38946
+ # @param [String] fields
38947
+ # Selector specifying which fields to include in a partial response.
38948
+ # @param [String] quota_user
38949
+ # Available to use for quota purposes for server-side applications. Can be any
38950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38951
+ # @param [String] user_ip
38952
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38953
+ # @param [Google::Apis::RequestOptions] options
38954
+ # Request-specific options
38955
+ #
38956
+ # @yield [result, err] Result & error if block supplied
38957
+ # @yieldparam result [Google::Apis::ComputeBeta::RoutersListBgpRoutes] parsed result object
38958
+ # @yieldparam err [StandardError] error object if request failed
38959
+ #
38960
+ # @return [Google::Apis::ComputeBeta::RoutersListBgpRoutes]
38961
+ #
38962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38965
+ def list_router_bgp_routes(project, region, router, address_family: nil, destination_prefix: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peer: nil, policy_applied: nil, return_partial_success: nil, route_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38966
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listBgpRoutes', options)
38967
+ command.response_representation = Google::Apis::ComputeBeta::RoutersListBgpRoutes::Representation
38968
+ command.response_class = Google::Apis::ComputeBeta::RoutersListBgpRoutes
38969
+ command.params['project'] = project unless project.nil?
38970
+ command.params['region'] = region unless region.nil?
38971
+ command.params['router'] = router unless router.nil?
38972
+ command.query['addressFamily'] = address_family unless address_family.nil?
38973
+ command.query['destinationPrefix'] = destination_prefix unless destination_prefix.nil?
38974
+ command.query['filter'] = filter unless filter.nil?
38975
+ command.query['maxResults'] = max_results unless max_results.nil?
38976
+ command.query['orderBy'] = order_by unless order_by.nil?
38977
+ command.query['pageToken'] = page_token unless page_token.nil?
38978
+ command.query['peer'] = peer unless peer.nil?
38979
+ command.query['policyApplied'] = policy_applied unless policy_applied.nil?
38980
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
38981
+ command.query['routeType'] = route_type unless route_type.nil?
38982
+ command.query['fields'] = fields unless fields.nil?
38983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38984
+ command.query['userIp'] = user_ip unless user_ip.nil?
38985
+ execute_or_queue_command(command, &block)
38986
+ end
38987
+
38988
+ # Retrieves a list of router route policy subresources available to the
38989
+ # specified project.
38990
+ # @param [String] project
38991
+ # Project ID for this request.
38992
+ # @param [String] region
38993
+ # Name of the region for this request.
38994
+ # @param [String] router
38995
+ # Name or id of the resource for this request. Name should conform to RFC1035.
38996
+ # @param [String] filter
38997
+ # A filter expression that filters resources listed in the response. Most
38998
+ # Compute resources support two types of filter expressions: expressions that
38999
+ # support regular expressions and expressions that follow API improvement
39000
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
39001
+ # request. If you want to use AIP-160, your expression must specify the field
39002
+ # name, an operator, and the value that you want to use for filtering. The value
39003
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
39004
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
39005
+ # Engine instances, you can exclude instances named `example-instance` by
39006
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
39007
+ # whether a key has been defined. For example, to find all objects with `owner`
39008
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
39009
+ # example, you could specify `scheduling.automaticRestart = false` to include
39010
+ # instances only if they are not scheduled for automatic restarts. You can use
39011
+ # filtering on nested fields to filter based on resource labels. To filter on
39012
+ # multiple expressions, provide each separate expression within parentheses. For
39013
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
39014
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
39015
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
39016
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
39017
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
39018
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
39019
+ # un-parenthesized expression with or without quotes or against multiple
39020
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
39021
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
39022
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
39023
+ # interpreted as a regular expression using Google RE2 library syntax. The
39024
+ # literal value must match the entire field. For example, to filter for
39025
+ # instances that do not end with name "instance", you would use `name ne .*
39026
+ # instance`. You cannot combine constraints on multiple fields using regular
39027
+ # expressions.
39028
+ # @param [Fixnum] max_results
39029
+ # The maximum number of results per page that should be returned. If the number
39030
+ # of available results is larger than `maxResults`, Compute Engine returns a `
39031
+ # nextPageToken` that can be used to get the next page of results in subsequent
39032
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
39033
+ # @param [String] order_by
39034
+ # Sorts list results by a certain order. By default, results are returned in
39035
+ # alphanumerical order based on the resource name. You can also sort results in
39036
+ # descending order based on the creation timestamp using `orderBy="
39037
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
39038
+ # field in reverse chronological order (newest result first). Use this to sort
39039
+ # resources like operations so that the newest operation is returned first.
39040
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
39041
+ # @param [String] page_token
39042
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
39043
+ # by a previous list request to get the next page of results.
39044
+ # @param [Boolean] return_partial_success
39045
+ # Opt-in for partial success behavior which provides partial results in case of
39046
+ # failure. The default value is false. For example, when partial success
39047
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
39048
+ # resources in the zone or no resources, with an error code.
39049
+ # @param [String] fields
39050
+ # Selector specifying which fields to include in a partial response.
39051
+ # @param [String] quota_user
39052
+ # Available to use for quota purposes for server-side applications. Can be any
39053
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39054
+ # @param [String] user_ip
39055
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39056
+ # @param [Google::Apis::RequestOptions] options
39057
+ # Request-specific options
39058
+ #
39059
+ # @yield [result, err] Result & error if block supplied
39060
+ # @yieldparam result [Google::Apis::ComputeBeta::RoutersListRoutePolicies] parsed result object
39061
+ # @yieldparam err [StandardError] error object if request failed
39062
+ #
39063
+ # @return [Google::Apis::ComputeBeta::RoutersListRoutePolicies]
39064
+ #
39065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39068
+ def list_router_route_policies(project, region, router, 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)
39069
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listRoutePolicies', options)
39070
+ command.response_representation = Google::Apis::ComputeBeta::RoutersListRoutePolicies::Representation
39071
+ command.response_class = Google::Apis::ComputeBeta::RoutersListRoutePolicies
39072
+ command.params['project'] = project unless project.nil?
39073
+ command.params['region'] = region unless region.nil?
39074
+ command.params['router'] = router unless router.nil?
39075
+ command.query['filter'] = filter unless filter.nil?
39076
+ command.query['maxResults'] = max_results unless max_results.nil?
39077
+ command.query['orderBy'] = order_by unless order_by.nil?
39078
+ command.query['pageToken'] = page_token unless page_token.nil?
39079
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
39080
+ command.query['fields'] = fields unless fields.nil?
39081
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39082
+ command.query['userIp'] = user_ip unless user_ip.nil?
39083
+ execute_or_queue_command(command, &block)
39084
+ end
39085
+
38667
39086
  # Patches the specified Router resource with the data included in the request.
38668
39087
  # This method supports PATCH semantics and uses JSON merge patch format and
38669
39088
  # processing rules.
@@ -38860,6 +39279,59 @@ module Google
38860
39279
  execute_or_queue_command(command, &block)
38861
39280
  end
38862
39281
 
39282
+ # Updates or creates new Route Policy
39283
+ # @param [String] project
39284
+ # Project ID for this request.
39285
+ # @param [String] region
39286
+ # Name of the region for this request.
39287
+ # @param [String] router
39288
+ # Name of the Router resource where Route Policy is defined.
39289
+ # @param [Google::Apis::ComputeBeta::RoutePolicy] route_policy_object
39290
+ # @param [String] request_id
39291
+ # An optional request ID to identify requests. Specify a unique request ID so
39292
+ # that if you must retry your request, the server will know to ignore the
39293
+ # request if it has already been completed. For example, consider a situation
39294
+ # where you make an initial request and the request times out. If you make the
39295
+ # request again with the same request ID, the server can check if original
39296
+ # operation with the same request ID was received, and if so, will ignore the
39297
+ # second request. This prevents clients from accidentally creating duplicate
39298
+ # commitments. The request ID must be a valid UUID with the exception that zero
39299
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
39300
+ # @param [String] fields
39301
+ # Selector specifying which fields to include in a partial response.
39302
+ # @param [String] quota_user
39303
+ # Available to use for quota purposes for server-side applications. Can be any
39304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39305
+ # @param [String] user_ip
39306
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39307
+ # @param [Google::Apis::RequestOptions] options
39308
+ # Request-specific options
39309
+ #
39310
+ # @yield [result, err] Result & error if block supplied
39311
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
39312
+ # @yieldparam err [StandardError] error object if request failed
39313
+ #
39314
+ # @return [Google::Apis::ComputeBeta::Operation]
39315
+ #
39316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39319
+ def update_router_route_policy(project, region, router, route_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
39320
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy', options)
39321
+ command.request_representation = Google::Apis::ComputeBeta::RoutePolicy::Representation
39322
+ command.request_object = route_policy_object
39323
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
39324
+ command.response_class = Google::Apis::ComputeBeta::Operation
39325
+ command.params['project'] = project unless project.nil?
39326
+ command.params['region'] = region unless region.nil?
39327
+ command.params['router'] = router unless router.nil?
39328
+ command.query['requestId'] = request_id unless request_id.nil?
39329
+ command.query['fields'] = fields unless fields.nil?
39330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39331
+ command.query['userIp'] = user_ip unless user_ip.nil?
39332
+ execute_or_queue_command(command, &block)
39333
+ end
39334
+
38863
39335
  # Deletes the specified Route resource.
38864
39336
  # @param [String] project
38865
39337
  # Project ID for this request.