google-apis-compute_alpha 0.75.0 → 0.77.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.
@@ -2329,6 +2329,95 @@ module Google
2329
2329
  execute_or_queue_command(command, &block)
2330
2330
  end
2331
2331
 
2332
+ # Retrieves an aggregated list of all usable backend services in the specified
2333
+ # project.
2334
+ # @param [String] project
2335
+ # Project ID for this request.
2336
+ # @param [String] filter
2337
+ # A filter expression that filters resources listed in the response. Most
2338
+ # Compute resources support two types of filter expressions: expressions that
2339
+ # support regular expressions and expressions that follow API improvement
2340
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
2341
+ # field name, an operator, and the value that you want to use for filtering. The
2342
+ # value must be a string, a number, or a boolean. The operator must be either `=`
2343
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
2344
+ # Engine instances, you can exclude instances named `example-instance` by
2345
+ # specifying `name != example-instance`. The `:` operator can be used with
2346
+ # string fields to match substrings. For non-string fields it is equivalent to
2347
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
2348
+ # been defined. For example, to find all objects with `owner` label use: ```
2349
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
2350
+ # specify `scheduling.automaticRestart = false` to include instances only if
2351
+ # they are not scheduled for automatic restarts. You can use filtering on nested
2352
+ # fields to filter based on resource labels. To filter on multiple expressions,
2353
+ # provide each separate expression within parentheses. For example: ``` (
2354
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
2355
+ # default, each expression is an `AND` expression. However, you can include `AND`
2356
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
2357
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
2358
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
2359
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
2360
+ # expression with or without quotes or against multiple parenthesized
2361
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
2362
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
2363
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
2364
+ # regular expression using Google RE2 library syntax. The literal value must
2365
+ # match the entire field. For example, to filter for instances that do not end
2366
+ # with name "instance", you would use `name ne .*instance`.
2367
+ # @param [Fixnum] max_results
2368
+ # The maximum number of results per page that should be returned. If the number
2369
+ # of available results is larger than `maxResults`, Compute Engine returns a `
2370
+ # nextPageToken` that can be used to get the next page of results in subsequent
2371
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2372
+ # @param [String] order_by
2373
+ # Sorts list results by a certain order. By default, results are returned in
2374
+ # alphanumerical order based on the resource name. You can also sort results in
2375
+ # descending order based on the creation timestamp using `orderBy="
2376
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
2377
+ # field in reverse chronological order (newest result first). Use this to sort
2378
+ # resources like operations so that the newest operation is returned first.
2379
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2380
+ # @param [String] page_token
2381
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
2382
+ # by a previous list request to get the next page of results.
2383
+ # @param [Boolean] return_partial_success
2384
+ # Opt-in for partial success behavior which provides partial results in case of
2385
+ # failure. The default value is false.
2386
+ # @param [String] fields
2387
+ # Selector specifying which fields to include in a partial response.
2388
+ # @param [String] quota_user
2389
+ # Available to use for quota purposes for server-side applications. Can be any
2390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2391
+ # @param [String] user_ip
2392
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2393
+ # @param [Google::Apis::RequestOptions] options
2394
+ # Request-specific options
2395
+ #
2396
+ # @yield [result, err] Result & error if block supplied
2397
+ # @yieldparam result [Google::Apis::ComputeAlpha::BackendServiceListUsable] parsed result object
2398
+ # @yieldparam err [StandardError] error object if request failed
2399
+ #
2400
+ # @return [Google::Apis::ComputeAlpha::BackendServiceListUsable]
2401
+ #
2402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2405
+ def list_backend_service_usable(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)
2406
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/listUsable', options)
2407
+ command.response_representation = Google::Apis::ComputeAlpha::BackendServiceListUsable::Representation
2408
+ command.response_class = Google::Apis::ComputeAlpha::BackendServiceListUsable
2409
+ command.params['project'] = project unless project.nil?
2410
+ command.query['filter'] = filter unless filter.nil?
2411
+ command.query['maxResults'] = max_results unless max_results.nil?
2412
+ command.query['orderBy'] = order_by unless order_by.nil?
2413
+ command.query['pageToken'] = page_token unless page_token.nil?
2414
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
2415
+ command.query['fields'] = fields unless fields.nil?
2416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2417
+ command.query['userIp'] = user_ip unless user_ip.nil?
2418
+ execute_or_queue_command(command, &block)
2419
+ end
2420
+
2332
2421
  # Patches the specified BackendService resource with the data included in the
2333
2422
  # request. For more information, see Backend services overview. This method
2334
2423
  # supports PATCH semantics and uses the JSON merge patch format and processing
@@ -21269,6 +21358,56 @@ module Google
21269
21358
  execute_or_queue_command(command, &block)
21270
21359
  end
21271
21360
 
21361
+ # Updates an association for the specified network firewall policy.
21362
+ # @param [String] project
21363
+ # Project ID for this request.
21364
+ # @param [String] firewall_policy
21365
+ # Name of the firewall policy to update.
21366
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
21367
+ # @param [String] request_id
21368
+ # An optional request ID to identify requests. Specify a unique request ID so
21369
+ # that if you must retry your request, the server will know to ignore the
21370
+ # request if it has already been completed. For example, consider a situation
21371
+ # where you make an initial request and the request times out. If you make the
21372
+ # request again with the same request ID, the server can check if original
21373
+ # operation with the same request ID was received, and if so, will ignore the
21374
+ # second request. This prevents clients from accidentally creating duplicate
21375
+ # commitments. The request ID must be a valid UUID with the exception that zero
21376
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
21377
+ # @param [String] fields
21378
+ # Selector specifying which fields to include in a partial response.
21379
+ # @param [String] quota_user
21380
+ # Available to use for quota purposes for server-side applications. Can be any
21381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21382
+ # @param [String] user_ip
21383
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21384
+ # @param [Google::Apis::RequestOptions] options
21385
+ # Request-specific options
21386
+ #
21387
+ # @yield [result, err] Result & error if block supplied
21388
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
21389
+ # @yieldparam err [StandardError] error object if request failed
21390
+ #
21391
+ # @return [Google::Apis::ComputeAlpha::Operation]
21392
+ #
21393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21396
+ def patch_network_firewall_policy_association(project, firewall_policy, firewall_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21397
+ command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchAssociation', options)
21398
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
21399
+ command.request_object = firewall_policy_association_object
21400
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
21401
+ command.response_class = Google::Apis::ComputeAlpha::Operation
21402
+ command.params['project'] = project unless project.nil?
21403
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
21404
+ command.query['requestId'] = request_id unless request_id.nil?
21405
+ command.query['fields'] = fields unless fields.nil?
21406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21407
+ command.query['userIp'] = user_ip unless user_ip.nil?
21408
+ execute_or_queue_command(command, &block)
21409
+ end
21410
+
21272
21411
  # Patches a rule of the specified priority.
21273
21412
  # @param [String] project
21274
21413
  # Project ID for this request.
@@ -33405,6 +33544,10 @@ module Google
33405
33544
  # @param [String] firewall_policy
33406
33545
  # Name of the firewall policy to update.
33407
33546
  # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
33547
+ # @param [String] associated_policy_to_be_replaced
33548
+ # Name of the firewall policy associated with the target network to swap
33549
+ # association with. This field is mutually exclusive with '
33550
+ # replace_existing_association'.
33408
33551
  # @param [Boolean] replace_existing_association
33409
33552
  # Indicates whether or not to replace it if an association already exists. This
33410
33553
  # is false by default, in which case an error will be returned if an association
@@ -33438,7 +33581,7 @@ module Google
33438
33581
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33439
33582
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33440
33583
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33441
- def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33584
+ def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, associated_policy_to_be_replaced: nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33442
33585
  command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
33443
33586
  command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
33444
33587
  command.request_object = firewall_policy_association_object
@@ -33447,6 +33590,7 @@ module Google
33447
33590
  command.params['project'] = project unless project.nil?
33448
33591
  command.params['region'] = region unless region.nil?
33449
33592
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
33593
+ command.query['associatedPolicyToBeReplaced'] = associated_policy_to_be_replaced unless associated_policy_to_be_replaced.nil?
33450
33594
  command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
33451
33595
  command.query['requestId'] = request_id unless request_id.nil?
33452
33596
  command.query['fields'] = fields unless fields.nil?
@@ -39011,6 +39155,59 @@ module Google
39011
39155
  execute_or_queue_command(command, &block)
39012
39156
  end
39013
39157
 
39158
+ # Deletes Route Policy
39159
+ # @param [String] project
39160
+ # Project ID for this request.
39161
+ # @param [String] region
39162
+ # Name of the region for this request.
39163
+ # @param [String] router
39164
+ # Name of the Router resource where Route Policy is defined.
39165
+ # @param [String] policy
39166
+ # The Policy name for this request. Name must conform to RFC1035
39167
+ # @param [String] request_id
39168
+ # An optional request ID to identify requests. Specify a unique request ID so
39169
+ # that if you must retry your request, the server will know to ignore the
39170
+ # request if it has already been completed. For example, consider a situation
39171
+ # where you make an initial request and the request times out. If you make the
39172
+ # request again with the same request ID, the server can check if original
39173
+ # operation with the same request ID was received, and if so, will ignore the
39174
+ # second request. This prevents clients from accidentally creating duplicate
39175
+ # commitments. The request ID must be a valid UUID with the exception that zero
39176
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
39177
+ # @param [String] fields
39178
+ # Selector specifying which fields to include in a partial response.
39179
+ # @param [String] quota_user
39180
+ # Available to use for quota purposes for server-side applications. Can be any
39181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39182
+ # @param [String] user_ip
39183
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39184
+ # @param [Google::Apis::RequestOptions] options
39185
+ # Request-specific options
39186
+ #
39187
+ # @yield [result, err] Result & error if block supplied
39188
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
39189
+ # @yieldparam err [StandardError] error object if request failed
39190
+ #
39191
+ # @return [Google::Apis::ComputeAlpha::Operation]
39192
+ #
39193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39196
+ def delete_router_route_policy(project, region, router, policy: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
39197
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy', options)
39198
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
39199
+ command.response_class = Google::Apis::ComputeAlpha::Operation
39200
+ command.params['project'] = project unless project.nil?
39201
+ command.params['region'] = region unless region.nil?
39202
+ command.params['router'] = router unless router.nil?
39203
+ command.query['policy'] = policy unless policy.nil?
39204
+ command.query['requestId'] = request_id unless request_id.nil?
39205
+ command.query['fields'] = fields unless fields.nil?
39206
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39207
+ command.query['userIp'] = user_ip unless user_ip.nil?
39208
+ execute_or_queue_command(command, &block)
39209
+ end
39210
+
39014
39211
  # Returns the specified Router resource.
39015
39212
  # @param [String] project
39016
39213
  # Project ID for this request.
@@ -39194,6 +39391,49 @@ module Google
39194
39391
  execute_or_queue_command(command, &block)
39195
39392
  end
39196
39393
 
39394
+ # Returns specified Route Policy
39395
+ # @param [String] project
39396
+ # Project ID for this request.
39397
+ # @param [String] region
39398
+ # Name of the region for this request.
39399
+ # @param [String] router
39400
+ # Name of the Router resource to query for Nat IP information. The name should
39401
+ # conform to RFC1035.
39402
+ # @param [String] policy
39403
+ # The Policy name for this request. Name must conform to RFC1035
39404
+ # @param [String] fields
39405
+ # Selector specifying which fields to include in a partial response.
39406
+ # @param [String] quota_user
39407
+ # Available to use for quota purposes for server-side applications. Can be any
39408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39409
+ # @param [String] user_ip
39410
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39411
+ # @param [Google::Apis::RequestOptions] options
39412
+ # Request-specific options
39413
+ #
39414
+ # @yield [result, err] Result & error if block supplied
39415
+ # @yieldparam result [Google::Apis::ComputeAlpha::RoutersGetRoutePolicyResponse] parsed result object
39416
+ # @yieldparam err [StandardError] error object if request failed
39417
+ #
39418
+ # @return [Google::Apis::ComputeAlpha::RoutersGetRoutePolicyResponse]
39419
+ #
39420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39423
+ def get_router_route_policy(project, region, router, policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
39424
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getRoutePolicy', options)
39425
+ command.response_representation = Google::Apis::ComputeAlpha::RoutersGetRoutePolicyResponse::Representation
39426
+ command.response_class = Google::Apis::ComputeAlpha::RoutersGetRoutePolicyResponse
39427
+ command.params['project'] = project unless project.nil?
39428
+ command.params['region'] = region unless region.nil?
39429
+ command.params['router'] = router unless router.nil?
39430
+ command.query['policy'] = policy unless policy.nil?
39431
+ command.query['fields'] = fields unless fields.nil?
39432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39433
+ command.query['userIp'] = user_ip unless user_ip.nil?
39434
+ execute_or_queue_command(command, &block)
39435
+ end
39436
+
39197
39437
  # Retrieves runtime information of the specified router.
39198
39438
  # @param [String] project
39199
39439
  # Project ID for this request.
@@ -39375,6 +39615,212 @@ module Google
39375
39615
  execute_or_queue_command(command, &block)
39376
39616
  end
39377
39617
 
39618
+ # Retrieves a list of router bgp routes available to the specified project.
39619
+ # @param [String] project
39620
+ # Project ID for this request.
39621
+ # @param [String] region
39622
+ # Name of the region for this request.
39623
+ # @param [String] router
39624
+ # Name or id of the resource for this request. Name should conform to RFC1035.
39625
+ # @param [String] address_family
39626
+ # (Required) limit results to this address family (either IPv4 or IPv6)
39627
+ # @param [String] destination_prefix
39628
+ # Limit results to destinations that are subnets of this CIDR range
39629
+ # @param [String] filter
39630
+ # A filter expression that filters resources listed in the response. Most
39631
+ # Compute resources support two types of filter expressions: expressions that
39632
+ # support regular expressions and expressions that follow API improvement
39633
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
39634
+ # field name, an operator, and the value that you want to use for filtering. The
39635
+ # value must be a string, a number, or a boolean. The operator must be either `=`
39636
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
39637
+ # Engine instances, you can exclude instances named `example-instance` by
39638
+ # specifying `name != example-instance`. The `:` operator can be used with
39639
+ # string fields to match substrings. For non-string fields it is equivalent to
39640
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
39641
+ # been defined. For example, to find all objects with `owner` label use: ```
39642
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
39643
+ # specify `scheduling.automaticRestart = false` to include instances only if
39644
+ # they are not scheduled for automatic restarts. You can use filtering on nested
39645
+ # fields to filter based on resource labels. To filter on multiple expressions,
39646
+ # provide each separate expression within parentheses. For example: ``` (
39647
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
39648
+ # default, each expression is an `AND` expression. However, you can include `AND`
39649
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
39650
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
39651
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
39652
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
39653
+ # expression with or without quotes or against multiple parenthesized
39654
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
39655
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
39656
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
39657
+ # regular expression using Google RE2 library syntax. The literal value must
39658
+ # match the entire field. For example, to filter for instances that do not end
39659
+ # with name "instance", you would use `name ne .*instance`.
39660
+ # @param [Fixnum] max_results
39661
+ # The maximum number of results per page that should be returned. If the number
39662
+ # of available results is larger than `maxResults`, Compute Engine returns a `
39663
+ # nextPageToken` that can be used to get the next page of results in subsequent
39664
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
39665
+ # @param [String] order_by
39666
+ # Sorts list results by a certain order. By default, results are returned in
39667
+ # alphanumerical order based on the resource name. You can also sort results in
39668
+ # descending order based on the creation timestamp using `orderBy="
39669
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
39670
+ # field in reverse chronological order (newest result first). Use this to sort
39671
+ # resources like operations so that the newest operation is returned first.
39672
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
39673
+ # @param [String] page_token
39674
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
39675
+ # by a previous list request to get the next page of results.
39676
+ # @param [String] peer
39677
+ # (Required) limit results to the BGP peer with the given name. Name should
39678
+ # conform to RFC1035.
39679
+ # @param [Boolean] policy_applied
39680
+ # When true, the method returns post-policy routes. Otherwise, it returns pre-
39681
+ # policy routes.
39682
+ # @param [Boolean] return_partial_success
39683
+ # Opt-in for partial success behavior which provides partial results in case of
39684
+ # failure. The default value is false.
39685
+ # @param [String] route_type
39686
+ # (Required) limit results to this type of route (either LEARNED or ADVERTISED)
39687
+ # @param [String] fields
39688
+ # Selector specifying which fields to include in a partial response.
39689
+ # @param [String] quota_user
39690
+ # Available to use for quota purposes for server-side applications. Can be any
39691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39692
+ # @param [String] user_ip
39693
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39694
+ # @param [Google::Apis::RequestOptions] options
39695
+ # Request-specific options
39696
+ #
39697
+ # @yield [result, err] Result & error if block supplied
39698
+ # @yieldparam result [Google::Apis::ComputeAlpha::RoutersListBgpRoutes] parsed result object
39699
+ # @yieldparam err [StandardError] error object if request failed
39700
+ #
39701
+ # @return [Google::Apis::ComputeAlpha::RoutersListBgpRoutes]
39702
+ #
39703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39706
+ 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)
39707
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listBgpRoutes', options)
39708
+ command.response_representation = Google::Apis::ComputeAlpha::RoutersListBgpRoutes::Representation
39709
+ command.response_class = Google::Apis::ComputeAlpha::RoutersListBgpRoutes
39710
+ command.params['project'] = project unless project.nil?
39711
+ command.params['region'] = region unless region.nil?
39712
+ command.params['router'] = router unless router.nil?
39713
+ command.query['addressFamily'] = address_family unless address_family.nil?
39714
+ command.query['destinationPrefix'] = destination_prefix unless destination_prefix.nil?
39715
+ command.query['filter'] = filter unless filter.nil?
39716
+ command.query['maxResults'] = max_results unless max_results.nil?
39717
+ command.query['orderBy'] = order_by unless order_by.nil?
39718
+ command.query['pageToken'] = page_token unless page_token.nil?
39719
+ command.query['peer'] = peer unless peer.nil?
39720
+ command.query['policyApplied'] = policy_applied unless policy_applied.nil?
39721
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
39722
+ command.query['routeType'] = route_type unless route_type.nil?
39723
+ command.query['fields'] = fields unless fields.nil?
39724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39725
+ command.query['userIp'] = user_ip unless user_ip.nil?
39726
+ execute_or_queue_command(command, &block)
39727
+ end
39728
+
39729
+ # Retrieves a list of router route policy subresources available to the
39730
+ # specified project.
39731
+ # @param [String] project
39732
+ # Project ID for this request.
39733
+ # @param [String] region
39734
+ # Name of the region for this request.
39735
+ # @param [String] router
39736
+ # Name or id of the resource for this request. Name should conform to RFC1035.
39737
+ # @param [String] filter
39738
+ # A filter expression that filters resources listed in the response. Most
39739
+ # Compute resources support two types of filter expressions: expressions that
39740
+ # support regular expressions and expressions that follow API improvement
39741
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
39742
+ # field name, an operator, and the value that you want to use for filtering. The
39743
+ # value must be a string, a number, or a boolean. The operator must be either `=`
39744
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
39745
+ # Engine instances, you can exclude instances named `example-instance` by
39746
+ # specifying `name != example-instance`. The `:` operator can be used with
39747
+ # string fields to match substrings. For non-string fields it is equivalent to
39748
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
39749
+ # been defined. For example, to find all objects with `owner` label use: ```
39750
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
39751
+ # specify `scheduling.automaticRestart = false` to include instances only if
39752
+ # they are not scheduled for automatic restarts. You can use filtering on nested
39753
+ # fields to filter based on resource labels. To filter on multiple expressions,
39754
+ # provide each separate expression within parentheses. For example: ``` (
39755
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
39756
+ # default, each expression is an `AND` expression. However, you can include `AND`
39757
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
39758
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
39759
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
39760
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
39761
+ # expression with or without quotes or against multiple parenthesized
39762
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
39763
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
39764
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
39765
+ # regular expression using Google RE2 library syntax. The literal value must
39766
+ # match the entire field. For example, to filter for instances that do not end
39767
+ # with name "instance", you would use `name ne .*instance`.
39768
+ # @param [Fixnum] max_results
39769
+ # The maximum number of results per page that should be returned. If the number
39770
+ # of available results is larger than `maxResults`, Compute Engine returns a `
39771
+ # nextPageToken` that can be used to get the next page of results in subsequent
39772
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
39773
+ # @param [String] order_by
39774
+ # Sorts list results by a certain order. By default, results are returned in
39775
+ # alphanumerical order based on the resource name. You can also sort results in
39776
+ # descending order based on the creation timestamp using `orderBy="
39777
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
39778
+ # field in reverse chronological order (newest result first). Use this to sort
39779
+ # resources like operations so that the newest operation is returned first.
39780
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
39781
+ # @param [String] page_token
39782
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
39783
+ # by a previous list request to get the next page of results.
39784
+ # @param [Boolean] return_partial_success
39785
+ # Opt-in for partial success behavior which provides partial results in case of
39786
+ # failure. The default value is false.
39787
+ # @param [String] fields
39788
+ # Selector specifying which fields to include in a partial response.
39789
+ # @param [String] quota_user
39790
+ # Available to use for quota purposes for server-side applications. Can be any
39791
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
39792
+ # @param [String] user_ip
39793
+ # Legacy name for parameter that has been superseded by `quotaUser`.
39794
+ # @param [Google::Apis::RequestOptions] options
39795
+ # Request-specific options
39796
+ #
39797
+ # @yield [result, err] Result & error if block supplied
39798
+ # @yieldparam result [Google::Apis::ComputeAlpha::RoutersListRoutePolicies] parsed result object
39799
+ # @yieldparam err [StandardError] error object if request failed
39800
+ #
39801
+ # @return [Google::Apis::ComputeAlpha::RoutersListRoutePolicies]
39802
+ #
39803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
39804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
39805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
39806
+ 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)
39807
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listRoutePolicies', options)
39808
+ command.response_representation = Google::Apis::ComputeAlpha::RoutersListRoutePolicies::Representation
39809
+ command.response_class = Google::Apis::ComputeAlpha::RoutersListRoutePolicies
39810
+ command.params['project'] = project unless project.nil?
39811
+ command.params['region'] = region unless region.nil?
39812
+ command.params['router'] = router unless router.nil?
39813
+ command.query['filter'] = filter unless filter.nil?
39814
+ command.query['maxResults'] = max_results unless max_results.nil?
39815
+ command.query['orderBy'] = order_by unless order_by.nil?
39816
+ command.query['pageToken'] = page_token unless page_token.nil?
39817
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
39818
+ command.query['fields'] = fields unless fields.nil?
39819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
39820
+ command.query['userIp'] = user_ip unless user_ip.nil?
39821
+ execute_or_queue_command(command, &block)
39822
+ end
39823
+
39378
39824
  # Patches the specified Router resource with the data included in the request.
39379
39825
  # This method supports PATCH semantics and uses JSON merge patch format and
39380
39826
  # processing rules.
@@ -39571,6 +40017,59 @@ module Google
39571
40017
  execute_or_queue_command(command, &block)
39572
40018
  end
39573
40019
 
40020
+ # Updates or creates new Route Policy
40021
+ # @param [String] project
40022
+ # Project ID for this request.
40023
+ # @param [String] region
40024
+ # Name of the region for this request.
40025
+ # @param [String] router
40026
+ # Name of the Router resource where Route Policy is defined.
40027
+ # @param [Google::Apis::ComputeAlpha::RoutePolicy] route_policy_object
40028
+ # @param [String] request_id
40029
+ # An optional request ID to identify requests. Specify a unique request ID so
40030
+ # that if you must retry your request, the server will know to ignore the
40031
+ # request if it has already been completed. For example, consider a situation
40032
+ # where you make an initial request and the request times out. If you make the
40033
+ # request again with the same request ID, the server can check if original
40034
+ # operation with the same request ID was received, and if so, will ignore the
40035
+ # second request. This prevents clients from accidentally creating duplicate
40036
+ # commitments. The request ID must be a valid UUID with the exception that zero
40037
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40038
+ # @param [String] fields
40039
+ # Selector specifying which fields to include in a partial response.
40040
+ # @param [String] quota_user
40041
+ # Available to use for quota purposes for server-side applications. Can be any
40042
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40043
+ # @param [String] user_ip
40044
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40045
+ # @param [Google::Apis::RequestOptions] options
40046
+ # Request-specific options
40047
+ #
40048
+ # @yield [result, err] Result & error if block supplied
40049
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
40050
+ # @yieldparam err [StandardError] error object if request failed
40051
+ #
40052
+ # @return [Google::Apis::ComputeAlpha::Operation]
40053
+ #
40054
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40055
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40056
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40057
+ 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)
40058
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy', options)
40059
+ command.request_representation = Google::Apis::ComputeAlpha::RoutePolicy::Representation
40060
+ command.request_object = route_policy_object
40061
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
40062
+ command.response_class = Google::Apis::ComputeAlpha::Operation
40063
+ command.params['project'] = project unless project.nil?
40064
+ command.params['region'] = region unless region.nil?
40065
+ command.params['router'] = router unless router.nil?
40066
+ command.query['requestId'] = request_id unless request_id.nil?
40067
+ command.query['fields'] = fields unless fields.nil?
40068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40069
+ command.query['userIp'] = user_ip unless user_ip.nil?
40070
+ execute_or_queue_command(command, &block)
40071
+ end
40072
+
39574
40073
  # Deletes the specified Route resource.
39575
40074
  # @param [String] project
39576
40075
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.75.0
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.75.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.77.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API Alpha