google-apis-compute_v1 0.6.0 → 0.7.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.
@@ -6172,6 +6172,267 @@ module Google
6172
6172
  execute_or_queue_command(command, &block)
6173
6173
  end
6174
6174
 
6175
+ # Deletes the specified global PublicDelegatedPrefix.
6176
+ # @param [String] project
6177
+ # Project ID for this request.
6178
+ # @param [String] public_delegated_prefix
6179
+ # Name of the PublicDelegatedPrefix resource to delete.
6180
+ # @param [String] request_id
6181
+ # An optional request ID to identify requests. Specify a unique request ID so
6182
+ # that if you must retry your request, the server will know to ignore the
6183
+ # request if it has already been completed.
6184
+ # For example, consider a situation where you make an initial request and the
6185
+ # request times out. If you make the request again with the same request ID, the
6186
+ # server can check if original operation with the same request ID was received,
6187
+ # and if so, will ignore the second request. This prevents clients from
6188
+ # accidentally creating duplicate commitments.
6189
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6190
+ # supported (00000000-0000-0000-0000-000000000000).
6191
+ # @param [String] fields
6192
+ # Selector specifying which fields to include in a partial response.
6193
+ # @param [String] quota_user
6194
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6195
+ # characters.
6196
+ # @param [String] user_ip
6197
+ # Deprecated. Please use quotaUser instead.
6198
+ # @param [Google::Apis::RequestOptions] options
6199
+ # Request-specific options
6200
+ #
6201
+ # @yield [result, err] Result & error if block supplied
6202
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6203
+ # @yieldparam err [StandardError] error object if request failed
6204
+ #
6205
+ # @return [Google::Apis::ComputeV1::Operation]
6206
+ #
6207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6210
+ def delete_global_public_delegated_prefix(project, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6211
+ command = make_simple_command(:delete, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6212
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6213
+ command.response_class = Google::Apis::ComputeV1::Operation
6214
+ command.params['project'] = project unless project.nil?
6215
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6216
+ command.query['requestId'] = request_id unless request_id.nil?
6217
+ command.query['fields'] = fields unless fields.nil?
6218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6219
+ command.query['userIp'] = user_ip unless user_ip.nil?
6220
+ execute_or_queue_command(command, &block)
6221
+ end
6222
+
6223
+ # Returns the specified global PublicDelegatedPrefix resource.
6224
+ # @param [String] project
6225
+ # Project ID for this request.
6226
+ # @param [String] public_delegated_prefix
6227
+ # Name of the PublicDelegatedPrefix resource to return.
6228
+ # @param [String] fields
6229
+ # Selector specifying which fields to include in a partial response.
6230
+ # @param [String] quota_user
6231
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6232
+ # characters.
6233
+ # @param [String] user_ip
6234
+ # Deprecated. Please use quotaUser instead.
6235
+ # @param [Google::Apis::RequestOptions] options
6236
+ # Request-specific options
6237
+ #
6238
+ # @yield [result, err] Result & error if block supplied
6239
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefix] parsed result object
6240
+ # @yieldparam err [StandardError] error object if request failed
6241
+ #
6242
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefix]
6243
+ #
6244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6247
+ def get_global_public_delegated_prefix(project, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6248
+ command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6249
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6250
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefix
6251
+ command.params['project'] = project unless project.nil?
6252
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6253
+ command.query['fields'] = fields unless fields.nil?
6254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6255
+ command.query['userIp'] = user_ip unless user_ip.nil?
6256
+ execute_or_queue_command(command, &block)
6257
+ end
6258
+
6259
+ # Creates a global PublicDelegatedPrefix in the specified project using the
6260
+ # parameters that are included in the request.
6261
+ # @param [String] project
6262
+ # Project ID for this request.
6263
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
6264
+ # @param [String] request_id
6265
+ # An optional request ID to identify requests. Specify a unique request ID so
6266
+ # that if you must retry your request, the server will know to ignore the
6267
+ # request if it has already been completed.
6268
+ # For example, consider a situation where you make an initial request and the
6269
+ # request times out. If you make the request again with the same request ID, the
6270
+ # server can check if original operation with the same request ID was received,
6271
+ # and if so, will ignore the second request. This prevents clients from
6272
+ # accidentally creating duplicate commitments.
6273
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6274
+ # supported (00000000-0000-0000-0000-000000000000).
6275
+ # @param [String] fields
6276
+ # Selector specifying which fields to include in a partial response.
6277
+ # @param [String] quota_user
6278
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6279
+ # characters.
6280
+ # @param [String] user_ip
6281
+ # Deprecated. Please use quotaUser instead.
6282
+ # @param [Google::Apis::RequestOptions] options
6283
+ # Request-specific options
6284
+ #
6285
+ # @yield [result, err] Result & error if block supplied
6286
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6287
+ # @yieldparam err [StandardError] error object if request failed
6288
+ #
6289
+ # @return [Google::Apis::ComputeV1::Operation]
6290
+ #
6291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6294
+ def insert_global_public_delegated_prefix(project, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6295
+ command = make_simple_command(:post, 'projects/{project}/global/publicDelegatedPrefixes', options)
6296
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6297
+ command.request_object = public_delegated_prefix_object
6298
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6299
+ command.response_class = Google::Apis::ComputeV1::Operation
6300
+ command.params['project'] = project unless project.nil?
6301
+ command.query['requestId'] = request_id unless request_id.nil?
6302
+ command.query['fields'] = fields unless fields.nil?
6303
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6304
+ command.query['userIp'] = user_ip unless user_ip.nil?
6305
+ execute_or_queue_command(command, &block)
6306
+ end
6307
+
6308
+ # Lists the global PublicDelegatedPrefixes for a project.
6309
+ # @param [String] project
6310
+ # Project ID for this request.
6311
+ # @param [String] filter
6312
+ # A filter expression that filters resources listed in the response. The
6313
+ # expression must specify the field name, a comparison operator, and the value
6314
+ # that you want to use for filtering. The value must be a string, a number, or a
6315
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
6316
+ # For example, if you are filtering Compute Engine instances, you can exclude
6317
+ # instances named `example-instance` by specifying `name != example-instance`.
6318
+ # You can also filter nested fields. For example, you could specify `scheduling.
6319
+ # automaticRestart = false` to include instances only if they are not scheduled
6320
+ # for automatic restarts. You can use filtering on nested fields to filter based
6321
+ # on resource labels.
6322
+ # To filter on multiple expressions, provide each separate expression within
6323
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
6324
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
6325
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
6326
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
6327
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
6328
+ # @param [Fixnum] max_results
6329
+ # The maximum number of results per page that should be returned. If the number
6330
+ # of available results is larger than `maxResults`, Compute Engine returns a `
6331
+ # nextPageToken` that can be used to get the next page of results in subsequent
6332
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
6333
+ # @param [String] order_by
6334
+ # Sorts list results by a certain order. By default, results are returned in
6335
+ # alphanumerical order based on the resource name.
6336
+ # You can also sort results in descending order based on the creation timestamp
6337
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
6338
+ # creationTimestamp` field in reverse chronological order (newest result first).
6339
+ # Use this to sort resources like operations so that the newest operation is
6340
+ # returned first.
6341
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
6342
+ # @param [String] page_token
6343
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
6344
+ # by a previous list request to get the next page of results.
6345
+ # @param [Boolean] return_partial_success
6346
+ # Opt-in for partial success behavior which provides partial results in case of
6347
+ # failure. The default value is false.
6348
+ # @param [String] fields
6349
+ # Selector specifying which fields to include in a partial response.
6350
+ # @param [String] quota_user
6351
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6352
+ # characters.
6353
+ # @param [String] user_ip
6354
+ # Deprecated. Please use quotaUser instead.
6355
+ # @param [Google::Apis::RequestOptions] options
6356
+ # Request-specific options
6357
+ #
6358
+ # @yield [result, err] Result & error if block supplied
6359
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixList] parsed result object
6360
+ # @yieldparam err [StandardError] error object if request failed
6361
+ #
6362
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixList]
6363
+ #
6364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6367
+ def list_global_public_delegated_prefixes(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)
6368
+ command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes', options)
6369
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixList::Representation
6370
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixList
6371
+ command.params['project'] = project unless project.nil?
6372
+ command.query['filter'] = filter unless filter.nil?
6373
+ command.query['maxResults'] = max_results unless max_results.nil?
6374
+ command.query['orderBy'] = order_by unless order_by.nil?
6375
+ command.query['pageToken'] = page_token unless page_token.nil?
6376
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
6377
+ command.query['fields'] = fields unless fields.nil?
6378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6379
+ command.query['userIp'] = user_ip unless user_ip.nil?
6380
+ execute_or_queue_command(command, &block)
6381
+ end
6382
+
6383
+ # Patches the specified global PublicDelegatedPrefix resource with the data
6384
+ # included in the request. This method supports PATCH semantics and uses JSON
6385
+ # merge patch format and processing rules.
6386
+ # @param [String] project
6387
+ # Project ID for this request.
6388
+ # @param [String] public_delegated_prefix
6389
+ # Name of the PublicDelegatedPrefix resource to patch.
6390
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
6391
+ # @param [String] request_id
6392
+ # An optional request ID to identify requests. Specify a unique request ID so
6393
+ # that if you must retry your request, the server will know to ignore the
6394
+ # request if it has already been completed.
6395
+ # For example, consider a situation where you make an initial request and the
6396
+ # request times out. If you make the request again with the same request ID, the
6397
+ # server can check if original operation with the same request ID was received,
6398
+ # and if so, will ignore the second request. This prevents clients from
6399
+ # accidentally creating duplicate commitments.
6400
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6401
+ # supported (00000000-0000-0000-0000-000000000000).
6402
+ # @param [String] fields
6403
+ # Selector specifying which fields to include in a partial response.
6404
+ # @param [String] quota_user
6405
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6406
+ # characters.
6407
+ # @param [String] user_ip
6408
+ # Deprecated. Please use quotaUser instead.
6409
+ # @param [Google::Apis::RequestOptions] options
6410
+ # Request-specific options
6411
+ #
6412
+ # @yield [result, err] Result & error if block supplied
6413
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6414
+ # @yieldparam err [StandardError] error object if request failed
6415
+ #
6416
+ # @return [Google::Apis::ComputeV1::Operation]
6417
+ #
6418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6421
+ def patch_global_public_delegated_prefix(project, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6422
+ command = make_simple_command(:patch, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6423
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6424
+ command.request_object = public_delegated_prefix_object
6425
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6426
+ command.response_class = Google::Apis::ComputeV1::Operation
6427
+ command.params['project'] = project unless project.nil?
6428
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6429
+ command.query['requestId'] = request_id unless request_id.nil?
6430
+ command.query['fields'] = fields unless fields.nil?
6431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6432
+ command.query['userIp'] = user_ip unless user_ip.nil?
6433
+ execute_or_queue_command(command, &block)
6434
+ end
6435
+
6175
6436
  # Retrieves the list of all HealthCheck resources, regional and global,
6176
6437
  # available to the specified project.
6177
6438
  # @param [String] project
@@ -17141,6 +17402,627 @@ module Google
17141
17402
  execute_or_queue_command(command, &block)
17142
17403
  end
17143
17404
 
17405
+ # Deletes the specified PublicAdvertisedPrefix
17406
+ # @param [String] project
17407
+ # Project ID for this request.
17408
+ # @param [String] public_advertised_prefix
17409
+ # Name of the PublicAdvertisedPrefix resource to delete.
17410
+ # @param [String] request_id
17411
+ # An optional request ID to identify requests. Specify a unique request ID so
17412
+ # that if you must retry your request, the server will know to ignore the
17413
+ # request if it has already been completed.
17414
+ # For example, consider a situation where you make an initial request and the
17415
+ # request times out. If you make the request again with the same request ID, the
17416
+ # server can check if original operation with the same request ID was received,
17417
+ # and if so, will ignore the second request. This prevents clients from
17418
+ # accidentally creating duplicate commitments.
17419
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17420
+ # supported (00000000-0000-0000-0000-000000000000).
17421
+ # @param [String] fields
17422
+ # Selector specifying which fields to include in a partial response.
17423
+ # @param [String] quota_user
17424
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17425
+ # characters.
17426
+ # @param [String] user_ip
17427
+ # Deprecated. Please use quotaUser instead.
17428
+ # @param [Google::Apis::RequestOptions] options
17429
+ # Request-specific options
17430
+ #
17431
+ # @yield [result, err] Result & error if block supplied
17432
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17433
+ # @yieldparam err [StandardError] error object if request failed
17434
+ #
17435
+ # @return [Google::Apis::ComputeV1::Operation]
17436
+ #
17437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17440
+ def delete_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17441
+ command = make_simple_command(:delete, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17442
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17443
+ command.response_class = Google::Apis::ComputeV1::Operation
17444
+ command.params['project'] = project unless project.nil?
17445
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17446
+ command.query['requestId'] = request_id unless request_id.nil?
17447
+ command.query['fields'] = fields unless fields.nil?
17448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17449
+ command.query['userIp'] = user_ip unless user_ip.nil?
17450
+ execute_or_queue_command(command, &block)
17451
+ end
17452
+
17453
+ # Returns the specified PublicAdvertisedPrefix resource.
17454
+ # @param [String] project
17455
+ # Project ID for this request.
17456
+ # @param [String] public_advertised_prefix
17457
+ # Name of the PublicAdvertisedPrefix resource to return.
17458
+ # @param [String] fields
17459
+ # Selector specifying which fields to include in a partial response.
17460
+ # @param [String] quota_user
17461
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17462
+ # characters.
17463
+ # @param [String] user_ip
17464
+ # Deprecated. Please use quotaUser instead.
17465
+ # @param [Google::Apis::RequestOptions] options
17466
+ # Request-specific options
17467
+ #
17468
+ # @yield [result, err] Result & error if block supplied
17469
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefix] parsed result object
17470
+ # @yieldparam err [StandardError] error object if request failed
17471
+ #
17472
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefix]
17473
+ #
17474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17477
+ def get_public_advertised_prefix(project, public_advertised_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17478
+ command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17479
+ command.response_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17480
+ command.response_class = Google::Apis::ComputeV1::PublicAdvertisedPrefix
17481
+ command.params['project'] = project unless project.nil?
17482
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17483
+ command.query['fields'] = fields unless fields.nil?
17484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17485
+ command.query['userIp'] = user_ip unless user_ip.nil?
17486
+ execute_or_queue_command(command, &block)
17487
+ end
17488
+
17489
+ # Creates a PublicAdvertisedPrefix in the specified project using the parameters
17490
+ # that are included in the request.
17491
+ # @param [String] project
17492
+ # Project ID for this request.
17493
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17494
+ # @param [String] request_id
17495
+ # An optional request ID to identify requests. Specify a unique request ID so
17496
+ # that if you must retry your request, the server will know to ignore the
17497
+ # request if it has already been completed.
17498
+ # For example, consider a situation where you make an initial request and the
17499
+ # request times out. If you make the request again with the same request ID, the
17500
+ # server can check if original operation with the same request ID was received,
17501
+ # and if so, will ignore the second request. This prevents clients from
17502
+ # accidentally creating duplicate commitments.
17503
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17504
+ # supported (00000000-0000-0000-0000-000000000000).
17505
+ # @param [String] fields
17506
+ # Selector specifying which fields to include in a partial response.
17507
+ # @param [String] quota_user
17508
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17509
+ # characters.
17510
+ # @param [String] user_ip
17511
+ # Deprecated. Please use quotaUser instead.
17512
+ # @param [Google::Apis::RequestOptions] options
17513
+ # Request-specific options
17514
+ #
17515
+ # @yield [result, err] Result & error if block supplied
17516
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17517
+ # @yieldparam err [StandardError] error object if request failed
17518
+ #
17519
+ # @return [Google::Apis::ComputeV1::Operation]
17520
+ #
17521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17524
+ def insert_public_advertised_prefix(project, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17525
+ command = make_simple_command(:post, 'projects/{project}/global/publicAdvertisedPrefixes', options)
17526
+ command.request_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17527
+ command.request_object = public_advertised_prefix_object
17528
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17529
+ command.response_class = Google::Apis::ComputeV1::Operation
17530
+ command.params['project'] = project unless project.nil?
17531
+ command.query['requestId'] = request_id unless request_id.nil?
17532
+ command.query['fields'] = fields unless fields.nil?
17533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17534
+ command.query['userIp'] = user_ip unless user_ip.nil?
17535
+ execute_or_queue_command(command, &block)
17536
+ end
17537
+
17538
+ # Lists the PublicAdvertisedPrefixes for a project.
17539
+ # @param [String] project
17540
+ # Project ID for this request.
17541
+ # @param [String] filter
17542
+ # A filter expression that filters resources listed in the response. The
17543
+ # expression must specify the field name, a comparison operator, and the value
17544
+ # that you want to use for filtering. The value must be a string, a number, or a
17545
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17546
+ # For example, if you are filtering Compute Engine instances, you can exclude
17547
+ # instances named `example-instance` by specifying `name != example-instance`.
17548
+ # You can also filter nested fields. For example, you could specify `scheduling.
17549
+ # automaticRestart = false` to include instances only if they are not scheduled
17550
+ # for automatic restarts. You can use filtering on nested fields to filter based
17551
+ # on resource labels.
17552
+ # To filter on multiple expressions, provide each separate expression within
17553
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17554
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17555
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17556
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17557
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17558
+ # @param [Fixnum] max_results
17559
+ # The maximum number of results per page that should be returned. If the number
17560
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17561
+ # nextPageToken` that can be used to get the next page of results in subsequent
17562
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17563
+ # @param [String] order_by
17564
+ # Sorts list results by a certain order. By default, results are returned in
17565
+ # alphanumerical order based on the resource name.
17566
+ # You can also sort results in descending order based on the creation timestamp
17567
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17568
+ # creationTimestamp` field in reverse chronological order (newest result first).
17569
+ # Use this to sort resources like operations so that the newest operation is
17570
+ # returned first.
17571
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17572
+ # @param [String] page_token
17573
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17574
+ # by a previous list request to get the next page of results.
17575
+ # @param [Boolean] return_partial_success
17576
+ # Opt-in for partial success behavior which provides partial results in case of
17577
+ # failure. The default value is false.
17578
+ # @param [String] fields
17579
+ # Selector specifying which fields to include in a partial response.
17580
+ # @param [String] quota_user
17581
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17582
+ # characters.
17583
+ # @param [String] user_ip
17584
+ # Deprecated. Please use quotaUser instead.
17585
+ # @param [Google::Apis::RequestOptions] options
17586
+ # Request-specific options
17587
+ #
17588
+ # @yield [result, err] Result & error if block supplied
17589
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefixList] parsed result object
17590
+ # @yieldparam err [StandardError] error object if request failed
17591
+ #
17592
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefixList]
17593
+ #
17594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17597
+ def list_public_advertised_prefixes(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)
17598
+ command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes', options)
17599
+ command.response_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefixList::Representation
17600
+ command.response_class = Google::Apis::ComputeV1::PublicAdvertisedPrefixList
17601
+ command.params['project'] = project unless project.nil?
17602
+ command.query['filter'] = filter unless filter.nil?
17603
+ command.query['maxResults'] = max_results unless max_results.nil?
17604
+ command.query['orderBy'] = order_by unless order_by.nil?
17605
+ command.query['pageToken'] = page_token unless page_token.nil?
17606
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17607
+ command.query['fields'] = fields unless fields.nil?
17608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17609
+ command.query['userIp'] = user_ip unless user_ip.nil?
17610
+ execute_or_queue_command(command, &block)
17611
+ end
17612
+
17613
+ # Patches the specified Router resource with the data included in the request.
17614
+ # This method supports PATCH semantics and uses JSON merge patch format and
17615
+ # processing rules.
17616
+ # @param [String] project
17617
+ # Project ID for this request.
17618
+ # @param [String] public_advertised_prefix
17619
+ # Name of the PublicAdvertisedPrefix resource to patch.
17620
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17621
+ # @param [String] request_id
17622
+ # An optional request ID to identify requests. Specify a unique request ID so
17623
+ # that if you must retry your request, the server will know to ignore the
17624
+ # request if it has already been completed.
17625
+ # For example, consider a situation where you make an initial request and the
17626
+ # request times out. If you make the request again with the same request ID, the
17627
+ # server can check if original operation with the same request ID was received,
17628
+ # and if so, will ignore the second request. This prevents clients from
17629
+ # accidentally creating duplicate commitments.
17630
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17631
+ # supported (00000000-0000-0000-0000-000000000000).
17632
+ # @param [String] fields
17633
+ # Selector specifying which fields to include in a partial response.
17634
+ # @param [String] quota_user
17635
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17636
+ # characters.
17637
+ # @param [String] user_ip
17638
+ # Deprecated. Please use quotaUser instead.
17639
+ # @param [Google::Apis::RequestOptions] options
17640
+ # Request-specific options
17641
+ #
17642
+ # @yield [result, err] Result & error if block supplied
17643
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17644
+ # @yieldparam err [StandardError] error object if request failed
17645
+ #
17646
+ # @return [Google::Apis::ComputeV1::Operation]
17647
+ #
17648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17651
+ def patch_public_advertised_prefix(project, public_advertised_prefix, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17652
+ command = make_simple_command(:patch, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17653
+ command.request_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17654
+ command.request_object = public_advertised_prefix_object
17655
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17656
+ command.response_class = Google::Apis::ComputeV1::Operation
17657
+ command.params['project'] = project unless project.nil?
17658
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17659
+ command.query['requestId'] = request_id unless request_id.nil?
17660
+ command.query['fields'] = fields unless fields.nil?
17661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17662
+ command.query['userIp'] = user_ip unless user_ip.nil?
17663
+ execute_or_queue_command(command, &block)
17664
+ end
17665
+
17666
+ # Lists all PublicDelegatedPrefix resources owned by the specific project across
17667
+ # all scopes.
17668
+ # @param [String] project
17669
+ # Name of the project scoping this request.
17670
+ # @param [String] filter
17671
+ # A filter expression that filters resources listed in the response. The
17672
+ # expression must specify the field name, a comparison operator, and the value
17673
+ # that you want to use for filtering. The value must be a string, a number, or a
17674
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17675
+ # For example, if you are filtering Compute Engine instances, you can exclude
17676
+ # instances named `example-instance` by specifying `name != example-instance`.
17677
+ # You can also filter nested fields. For example, you could specify `scheduling.
17678
+ # automaticRestart = false` to include instances only if they are not scheduled
17679
+ # for automatic restarts. You can use filtering on nested fields to filter based
17680
+ # on resource labels.
17681
+ # To filter on multiple expressions, provide each separate expression within
17682
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17683
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17684
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17685
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17686
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17687
+ # @param [Boolean] include_all_scopes
17688
+ # Indicates whether every visible scope for each scope type (zone, region,
17689
+ # global) should be included in the response. For new resource types added after
17690
+ # this field, the flag has no effect as new resource types will always include
17691
+ # every visible scope for each scope type in response. For resource types which
17692
+ # predate this field, if this flag is omitted or false, only scopes of the scope
17693
+ # types where the resource type is expected to be found will be included.
17694
+ # @param [Fixnum] max_results
17695
+ # The maximum number of results per page that should be returned. If the number
17696
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17697
+ # nextPageToken` that can be used to get the next page of results in subsequent
17698
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17699
+ # @param [String] order_by
17700
+ # Sorts list results by a certain order. By default, results are returned in
17701
+ # alphanumerical order based on the resource name.
17702
+ # You can also sort results in descending order based on the creation timestamp
17703
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17704
+ # creationTimestamp` field in reverse chronological order (newest result first).
17705
+ # Use this to sort resources like operations so that the newest operation is
17706
+ # returned first.
17707
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17708
+ # @param [String] page_token
17709
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17710
+ # by a previous list request to get the next page of results.
17711
+ # @param [Boolean] return_partial_success
17712
+ # Opt-in for partial success behavior which provides partial results in case of
17713
+ # failure. The default value is false.
17714
+ # @param [String] fields
17715
+ # Selector specifying which fields to include in a partial response.
17716
+ # @param [String] quota_user
17717
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17718
+ # characters.
17719
+ # @param [String] user_ip
17720
+ # Deprecated. Please use quotaUser instead.
17721
+ # @param [Google::Apis::RequestOptions] options
17722
+ # Request-specific options
17723
+ #
17724
+ # @yield [result, err] Result & error if block supplied
17725
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList] parsed result object
17726
+ # @yieldparam err [StandardError] error object if request failed
17727
+ #
17728
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList]
17729
+ #
17730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17733
+ def aggregated_public_delegated_prefix_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17734
+ command = make_simple_command(:get, 'projects/{project}/aggregated/publicDelegatedPrefixes', options)
17735
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList::Representation
17736
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList
17737
+ command.params['project'] = project unless project.nil?
17738
+ command.query['filter'] = filter unless filter.nil?
17739
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
17740
+ command.query['maxResults'] = max_results unless max_results.nil?
17741
+ command.query['orderBy'] = order_by unless order_by.nil?
17742
+ command.query['pageToken'] = page_token unless page_token.nil?
17743
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17744
+ command.query['fields'] = fields unless fields.nil?
17745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17746
+ command.query['userIp'] = user_ip unless user_ip.nil?
17747
+ execute_or_queue_command(command, &block)
17748
+ end
17749
+
17750
+ # Deletes the specified PublicDelegatedPrefix in the given region.
17751
+ # @param [String] project
17752
+ # Project ID for this request.
17753
+ # @param [String] region
17754
+ # Name of the region of this request.
17755
+ # @param [String] public_delegated_prefix
17756
+ # Name of the PublicDelegatedPrefix resource to delete.
17757
+ # @param [String] request_id
17758
+ # An optional request ID to identify requests. Specify a unique request ID so
17759
+ # that if you must retry your request, the server will know to ignore the
17760
+ # request if it has already been completed.
17761
+ # For example, consider a situation where you make an initial request and the
17762
+ # request times out. If you make the request again with the same request ID, the
17763
+ # server can check if original operation with the same request ID was received,
17764
+ # and if so, will ignore the second request. This prevents clients from
17765
+ # accidentally creating duplicate commitments.
17766
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17767
+ # supported (00000000-0000-0000-0000-000000000000).
17768
+ # @param [String] fields
17769
+ # Selector specifying which fields to include in a partial response.
17770
+ # @param [String] quota_user
17771
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17772
+ # characters.
17773
+ # @param [String] user_ip
17774
+ # Deprecated. Please use quotaUser instead.
17775
+ # @param [Google::Apis::RequestOptions] options
17776
+ # Request-specific options
17777
+ #
17778
+ # @yield [result, err] Result & error if block supplied
17779
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17780
+ # @yieldparam err [StandardError] error object if request failed
17781
+ #
17782
+ # @return [Google::Apis::ComputeV1::Operation]
17783
+ #
17784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17787
+ def delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17788
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
17789
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17790
+ command.response_class = Google::Apis::ComputeV1::Operation
17791
+ command.params['project'] = project unless project.nil?
17792
+ command.params['region'] = region unless region.nil?
17793
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17794
+ command.query['requestId'] = request_id unless request_id.nil?
17795
+ command.query['fields'] = fields unless fields.nil?
17796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17797
+ command.query['userIp'] = user_ip unless user_ip.nil?
17798
+ execute_or_queue_command(command, &block)
17799
+ end
17800
+
17801
+ # Returns the specified PublicDelegatedPrefix resource in the given region.
17802
+ # @param [String] project
17803
+ # Project ID for this request.
17804
+ # @param [String] region
17805
+ # Name of the region of this request.
17806
+ # @param [String] public_delegated_prefix
17807
+ # Name of the PublicDelegatedPrefix resource to return.
17808
+ # @param [String] fields
17809
+ # Selector specifying which fields to include in a partial response.
17810
+ # @param [String] quota_user
17811
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17812
+ # characters.
17813
+ # @param [String] user_ip
17814
+ # Deprecated. Please use quotaUser instead.
17815
+ # @param [Google::Apis::RequestOptions] options
17816
+ # Request-specific options
17817
+ #
17818
+ # @yield [result, err] Result & error if block supplied
17819
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefix] parsed result object
17820
+ # @yieldparam err [StandardError] error object if request failed
17821
+ #
17822
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefix]
17823
+ #
17824
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17825
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17826
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17827
+ def get_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17828
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
17829
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
17830
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefix
17831
+ command.params['project'] = project unless project.nil?
17832
+ command.params['region'] = region unless region.nil?
17833
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17834
+ command.query['fields'] = fields unless fields.nil?
17835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17836
+ command.query['userIp'] = user_ip unless user_ip.nil?
17837
+ execute_or_queue_command(command, &block)
17838
+ end
17839
+
17840
+ # Creates a PublicDelegatedPrefix in the specified project in the given region
17841
+ # using the parameters that are included in the request.
17842
+ # @param [String] project
17843
+ # Project ID for this request.
17844
+ # @param [String] region
17845
+ # Name of the region of this request.
17846
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
17847
+ # @param [String] request_id
17848
+ # An optional request ID to identify requests. Specify a unique request ID so
17849
+ # that if you must retry your request, the server will know to ignore the
17850
+ # request if it has already been completed.
17851
+ # For example, consider a situation where you make an initial request and the
17852
+ # request times out. If you make the request again with the same request ID, the
17853
+ # server can check if original operation with the same request ID was received,
17854
+ # and if so, will ignore the second request. This prevents clients from
17855
+ # accidentally creating duplicate commitments.
17856
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17857
+ # supported (00000000-0000-0000-0000-000000000000).
17858
+ # @param [String] fields
17859
+ # Selector specifying which fields to include in a partial response.
17860
+ # @param [String] quota_user
17861
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17862
+ # characters.
17863
+ # @param [String] user_ip
17864
+ # Deprecated. Please use quotaUser instead.
17865
+ # @param [Google::Apis::RequestOptions] options
17866
+ # Request-specific options
17867
+ #
17868
+ # @yield [result, err] Result & error if block supplied
17869
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17870
+ # @yieldparam err [StandardError] error object if request failed
17871
+ #
17872
+ # @return [Google::Apis::ComputeV1::Operation]
17873
+ #
17874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17877
+ def insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17878
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
17879
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
17880
+ command.request_object = public_delegated_prefix_object
17881
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17882
+ command.response_class = Google::Apis::ComputeV1::Operation
17883
+ command.params['project'] = project unless project.nil?
17884
+ command.params['region'] = region unless region.nil?
17885
+ command.query['requestId'] = request_id unless request_id.nil?
17886
+ command.query['fields'] = fields unless fields.nil?
17887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17888
+ command.query['userIp'] = user_ip unless user_ip.nil?
17889
+ execute_or_queue_command(command, &block)
17890
+ end
17891
+
17892
+ # Lists the PublicDelegatedPrefixes for a project in the given region.
17893
+ # @param [String] project
17894
+ # Project ID for this request.
17895
+ # @param [String] region
17896
+ # Name of the region of this request.
17897
+ # @param [String] filter
17898
+ # A filter expression that filters resources listed in the response. The
17899
+ # expression must specify the field name, a comparison operator, and the value
17900
+ # that you want to use for filtering. The value must be a string, a number, or a
17901
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17902
+ # For example, if you are filtering Compute Engine instances, you can exclude
17903
+ # instances named `example-instance` by specifying `name != example-instance`.
17904
+ # You can also filter nested fields. For example, you could specify `scheduling.
17905
+ # automaticRestart = false` to include instances only if they are not scheduled
17906
+ # for automatic restarts. You can use filtering on nested fields to filter based
17907
+ # on resource labels.
17908
+ # To filter on multiple expressions, provide each separate expression within
17909
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17910
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17911
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17912
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17913
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17914
+ # @param [Fixnum] max_results
17915
+ # The maximum number of results per page that should be returned. If the number
17916
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17917
+ # nextPageToken` that can be used to get the next page of results in subsequent
17918
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17919
+ # @param [String] order_by
17920
+ # Sorts list results by a certain order. By default, results are returned in
17921
+ # alphanumerical order based on the resource name.
17922
+ # You can also sort results in descending order based on the creation timestamp
17923
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17924
+ # creationTimestamp` field in reverse chronological order (newest result first).
17925
+ # Use this to sort resources like operations so that the newest operation is
17926
+ # returned first.
17927
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17928
+ # @param [String] page_token
17929
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17930
+ # by a previous list request to get the next page of results.
17931
+ # @param [Boolean] return_partial_success
17932
+ # Opt-in for partial success behavior which provides partial results in case of
17933
+ # failure. The default value is false.
17934
+ # @param [String] fields
17935
+ # Selector specifying which fields to include in a partial response.
17936
+ # @param [String] quota_user
17937
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17938
+ # characters.
17939
+ # @param [String] user_ip
17940
+ # Deprecated. Please use quotaUser instead.
17941
+ # @param [Google::Apis::RequestOptions] options
17942
+ # Request-specific options
17943
+ #
17944
+ # @yield [result, err] Result & error if block supplied
17945
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixList] parsed result object
17946
+ # @yieldparam err [StandardError] error object if request failed
17947
+ #
17948
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixList]
17949
+ #
17950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17953
+ def list_public_delegated_prefixes(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)
17954
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
17955
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixList::Representation
17956
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixList
17957
+ command.params['project'] = project unless project.nil?
17958
+ command.params['region'] = region unless region.nil?
17959
+ command.query['filter'] = filter unless filter.nil?
17960
+ command.query['maxResults'] = max_results unless max_results.nil?
17961
+ command.query['orderBy'] = order_by unless order_by.nil?
17962
+ command.query['pageToken'] = page_token unless page_token.nil?
17963
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17964
+ command.query['fields'] = fields unless fields.nil?
17965
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17966
+ command.query['userIp'] = user_ip unless user_ip.nil?
17967
+ execute_or_queue_command(command, &block)
17968
+ end
17969
+
17970
+ # Patches the specified PublicDelegatedPrefix resource with the data included in
17971
+ # the request. This method supports PATCH semantics and uses JSON merge patch
17972
+ # format and processing rules.
17973
+ # @param [String] project
17974
+ # Project ID for this request.
17975
+ # @param [String] region
17976
+ # Name of the region for this request.
17977
+ # @param [String] public_delegated_prefix
17978
+ # Name of the PublicDelegatedPrefix resource to patch.
17979
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
17980
+ # @param [String] request_id
17981
+ # An optional request ID to identify requests. Specify a unique request ID so
17982
+ # that if you must retry your request, the server will know to ignore the
17983
+ # request if it has already been completed.
17984
+ # For example, consider a situation where you make an initial request and the
17985
+ # request times out. If you make the request again with the same request ID, the
17986
+ # server can check if original operation with the same request ID was received,
17987
+ # and if so, will ignore the second request. This prevents clients from
17988
+ # accidentally creating duplicate commitments.
17989
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17990
+ # supported (00000000-0000-0000-0000-000000000000).
17991
+ # @param [String] fields
17992
+ # Selector specifying which fields to include in a partial response.
17993
+ # @param [String] quota_user
17994
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17995
+ # characters.
17996
+ # @param [String] user_ip
17997
+ # Deprecated. Please use quotaUser instead.
17998
+ # @param [Google::Apis::RequestOptions] options
17999
+ # Request-specific options
18000
+ #
18001
+ # @yield [result, err] Result & error if block supplied
18002
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18003
+ # @yieldparam err [StandardError] error object if request failed
18004
+ #
18005
+ # @return [Google::Apis::ComputeV1::Operation]
18006
+ #
18007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18010
+ def patch_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18011
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
18012
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
18013
+ command.request_object = public_delegated_prefix_object
18014
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18015
+ command.response_class = Google::Apis::ComputeV1::Operation
18016
+ command.params['project'] = project unless project.nil?
18017
+ command.params['region'] = region unless region.nil?
18018
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
18019
+ command.query['requestId'] = request_id unless request_id.nil?
18020
+ command.query['fields'] = fields unless fields.nil?
18021
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18022
+ command.query['userIp'] = user_ip unless user_ip.nil?
18023
+ execute_or_queue_command(command, &block)
18024
+ end
18025
+
17144
18026
  # Deletes the specified autoscaler.
17145
18027
  # @param [String] project
17146
18028
  # Project ID for this request.