google-apis-compute_beta 0.95.0 → 0.96.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13232,6 +13232,8 @@ module Google
13232
13232
  # Project ID for this request.
13233
13233
  # @param [String] instance_template
13234
13234
  # The name of the instance template.
13235
+ # @param [String] view
13236
+ # View of the instance template.
13235
13237
  # @param [String] fields
13236
13238
  # Selector specifying which fields to include in a partial response.
13237
13239
  # @param [String] quota_user
@@ -13251,12 +13253,13 @@ module Google
13251
13253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13252
13254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13253
13255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13254
- 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)
13255
13257
  command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options)
13256
13258
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
13257
13259
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplate
13258
13260
  command.params['project'] = project unless project.nil?
13259
13261
  command.params['instanceTemplate'] = instance_template unless instance_template.nil?
13262
+ command.query['view'] = view unless view.nil?
13260
13263
  command.query['fields'] = fields unless fields.nil?
13261
13264
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13262
13265
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -13410,6 +13413,8 @@ module Google
13410
13413
  # failure. The default value is false. For example, when partial success
13411
13414
  # behavior is enabled, aggregatedList for a single zone scope either returns all
13412
13415
  # resources in the zone or no resources, with an error code.
13416
+ # @param [String] view
13417
+ # View of the instance template.
13413
13418
  # @param [String] fields
13414
13419
  # Selector specifying which fields to include in a partial response.
13415
13420
  # @param [String] quota_user
@@ -13429,7 +13434,7 @@ module Google
13429
13434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13430
13435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13431
13436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13432
- 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)
13433
13438
  command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates', options)
13434
13439
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation
13435
13440
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList
@@ -13439,6 +13444,7 @@ module Google
13439
13444
  command.query['orderBy'] = order_by unless order_by.nil?
13440
13445
  command.query['pageToken'] = page_token unless page_token.nil?
13441
13446
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
13447
+ command.query['view'] = view unless view.nil?
13442
13448
  command.query['fields'] = fields unless fields.nil?
13443
13449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13444
13450
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14022,6 +14028,8 @@ module Google
14022
14028
  # The name of the zone for this request.
14023
14029
  # @param [String] instance
14024
14030
  # Name of the instance resource to return.
14031
+ # @param [String] view
14032
+ # View of the instance.
14025
14033
  # @param [String] fields
14026
14034
  # Selector specifying which fields to include in a partial response.
14027
14035
  # @param [String] quota_user
@@ -14041,13 +14049,14 @@ module Google
14041
14049
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14042
14050
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14043
14051
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14044
- 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)
14045
14053
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14046
14054
  command.response_representation = Google::Apis::ComputeBeta::Instance::Representation
14047
14055
  command.response_class = Google::Apis::ComputeBeta::Instance
14048
14056
  command.params['project'] = project unless project.nil?
14049
14057
  command.params['zone'] = zone unless zone.nil?
14050
14058
  command.params['instance'] = instance unless instance.nil?
14059
+ command.query['view'] = view unless view.nil?
14051
14060
  command.query['fields'] = fields unless fields.nil?
14052
14061
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14053
14062
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14184,6 +14193,48 @@ module Google
14184
14193
  execute_or_queue_command(command, &block)
14185
14194
  end
14186
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
+
14187
14238
  # Returns the screenshot from the specified instance.
14188
14239
  # @param [String] project
14189
14240
  # Project ID for this request.
@@ -14479,6 +14530,8 @@ module Google
14479
14530
  # failure. The default value is false. For example, when partial success
14480
14531
  # behavior is enabled, aggregatedList for a single zone scope either returns all
14481
14532
  # resources in the zone or no resources, with an error code.
14533
+ # @param [String] view
14534
+ # View of the instance.
14482
14535
  # @param [String] fields
14483
14536
  # Selector specifying which fields to include in a partial response.
14484
14537
  # @param [String] quota_user
@@ -14498,7 +14551,7 @@ module Google
14498
14551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14499
14552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14500
14553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14501
- 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)
14502
14555
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances', options)
14503
14556
  command.response_representation = Google::Apis::ComputeBeta::InstanceList::Representation
14504
14557
  command.response_class = Google::Apis::ComputeBeta::InstanceList
@@ -14509,6 +14562,7 @@ module Google
14509
14562
  command.query['orderBy'] = order_by unless order_by.nil?
14510
14563
  command.query['pageToken'] = page_token unless page_token.nil?
14511
14564
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
14565
+ command.query['view'] = view unless view.nil?
14512
14566
  command.query['fields'] = fields unless fields.nil?
14513
14567
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14514
14568
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14616,6 +14670,59 @@ module Google
14616
14670
  execute_or_queue_command(command, &block)
14617
14671
  end
14618
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
+
14619
14726
  # Perform a manual maintenance on the instance.
14620
14727
  # @param [String] project
14621
14728
  # Project ID for this request.
@@ -31662,6 +31769,8 @@ module Google
31662
31769
  # The name of the region for this request.
31663
31770
  # @param [String] instance_template
31664
31771
  # The name of the instance template.
31772
+ # @param [String] view
31773
+ # View of the instance template.
31665
31774
  # @param [String] fields
31666
31775
  # Selector specifying which fields to include in a partial response.
31667
31776
  # @param [String] quota_user
@@ -31681,13 +31790,14 @@ module Google
31681
31790
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31682
31791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31683
31792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31684
- 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)
31685
31794
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
31686
31795
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
31687
31796
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplate
31688
31797
  command.params['project'] = project unless project.nil?
31689
31798
  command.params['region'] = region unless region.nil?
31690
31799
  command.params['instanceTemplate'] = instance_template unless instance_template.nil?
31800
+ command.query['view'] = view unless view.nil?
31691
31801
  command.query['fields'] = fields unless fields.nil?
31692
31802
  command.query['quotaUser'] = quota_user unless quota_user.nil?
31693
31803
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -31804,6 +31914,8 @@ module Google
31804
31914
  # failure. The default value is false. For example, when partial success
31805
31915
  # behavior is enabled, aggregatedList for a single zone scope either returns all
31806
31916
  # resources in the zone or no resources, with an error code.
31917
+ # @param [String] view
31918
+ # View of the instance template.
31807
31919
  # @param [String] fields
31808
31920
  # Selector specifying which fields to include in a partial response.
31809
31921
  # @param [String] quota_user
@@ -31823,7 +31935,7 @@ module Google
31823
31935
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31824
31936
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31825
31937
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31826
- 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)
31827
31939
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
31828
31940
  command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation
31829
31941
  command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList
@@ -31834,6 +31946,7 @@ module Google
31834
31946
  command.query['orderBy'] = order_by unless order_by.nil?
31835
31947
  command.query['pageToken'] = page_token unless page_token.nil?
31836
31948
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31949
+ command.query['view'] = view unless view.nil?
31837
31950
  command.query['fields'] = fields unless fields.nil?
31838
31951
  command.query['quotaUser'] = quota_user unless quota_user.nil?
31839
31952
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -38292,6 +38405,59 @@ module Google
38292
38405
  execute_or_queue_command(command, &block)
38293
38406
  end
38294
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
+
38295
38461
  # Returns the specified Router resource.
38296
38462
  # @param [String] project
38297
38463
  # Project ID for this request.
@@ -38478,6 +38644,49 @@ module Google
38478
38644
  execute_or_queue_command(command, &block)
38479
38645
  end
38480
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
+
38481
38690
  # Retrieves runtime information of the specified router.
38482
38691
  # @param [String] project
38483
38692
  # Project ID for this request.
@@ -38662,6 +38871,218 @@ module Google
38662
38871
  execute_or_queue_command(command, &block)
38663
38872
  end
38664
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
+
38665
39086
  # Patches the specified Router resource with the data included in the request.
38666
39087
  # This method supports PATCH semantics and uses JSON merge patch format and
38667
39088
  # processing rules.
@@ -38858,6 +39279,59 @@ module Google
38858
39279
  execute_or_queue_command(command, &block)
38859
39280
  end
38860
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
+
38861
39335
  # Deletes the specified Route resource.
38862
39336
  # @param [String] project
38863
39337
  # Project ID for this request.