google-cloud-network_services-v1 2.6.1 → 2.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.
@@ -1205,6 +1205,494 @@ module Google
1205
1205
  raise ::Google::Cloud::Error.from_error(e)
1206
1206
  end
1207
1207
 
1208
+ ##
1209
+ # Lists `LbEdgeExtension` resources in a given project and location.
1210
+ #
1211
+ # @overload list_lb_edge_extensions(request, options = nil)
1212
+ # Pass arguments to `list_lb_edge_extensions` via a request object, either of type
1213
+ # {::Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest} or an equivalent Hash.
1214
+ #
1215
+ # @param request [::Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest, ::Hash]
1216
+ # A request object representing the call parameters. Required. To specify no
1217
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1218
+ # @param options [::Gapic::CallOptions, ::Hash]
1219
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1220
+ #
1221
+ # @overload list_lb_edge_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1222
+ # Pass arguments to `list_lb_edge_extensions` via keyword arguments. Note that at
1223
+ # least one keyword argument is required. To specify no parameters, or to keep all
1224
+ # the default parameter values, pass an empty Hash as a request object (see above).
1225
+ #
1226
+ # @param parent [::String]
1227
+ # Required. The project and location from which the `LbEdgeExtension`
1228
+ # resources are listed. These values are specified in the following format:
1229
+ # `projects/{project}/locations/{location}`.
1230
+ # @param page_size [::Integer]
1231
+ # Optional. Requested page size. The server might return fewer items than
1232
+ # requested. If unspecified, the server picks an appropriate default.
1233
+ # @param page_token [::String]
1234
+ # Optional. A token identifying a page of results that the server returns.
1235
+ # @param filter [::String]
1236
+ # Optional. Filtering results.
1237
+ # @param order_by [::String]
1238
+ # Optional. Hint about how to order the results.
1239
+ # @yield [result, operation] Access the result along with the TransportOperation object
1240
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>]
1241
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1242
+ #
1243
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>]
1244
+ #
1245
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1246
+ #
1247
+ # @example Basic example
1248
+ # require "google/cloud/network_services/v1"
1249
+ #
1250
+ # # Create a client object. The client can be reused for multiple calls.
1251
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1252
+ #
1253
+ # # Create a request. To set request fields, pass in keyword arguments.
1254
+ # request = Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest.new
1255
+ #
1256
+ # # Call the list_lb_edge_extensions method.
1257
+ # result = client.list_lb_edge_extensions request
1258
+ #
1259
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1260
+ # # over elements, and API calls will be issued to fetch pages as needed.
1261
+ # result.each do |item|
1262
+ # # Each element is of type ::Google::Cloud::NetworkServices::V1::LbEdgeExtension.
1263
+ # p item
1264
+ # end
1265
+ #
1266
+ def list_lb_edge_extensions request, options = nil
1267
+ raise ::ArgumentError, "request must be provided" if request.nil?
1268
+
1269
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest
1270
+
1271
+ # Converts hash and nil to an options object
1272
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1273
+
1274
+ # Customize the options with defaults
1275
+ call_metadata = @config.rpcs.list_lb_edge_extensions.metadata.to_h
1276
+
1277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1278
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1279
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1280
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1281
+ transports_version_send: [:rest]
1282
+
1283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1284
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1285
+
1286
+ options.apply_defaults timeout: @config.rpcs.list_lb_edge_extensions.timeout,
1287
+ metadata: call_metadata,
1288
+ retry_policy: @config.rpcs.list_lb_edge_extensions.retry_policy
1289
+
1290
+ options.apply_defaults timeout: @config.timeout,
1291
+ metadata: @config.metadata,
1292
+ retry_policy: @config.retry_policy
1293
+
1294
+ @dep_service_stub.list_lb_edge_extensions request, options do |result, operation|
1295
+ result = ::Gapic::Rest::PagedEnumerable.new @dep_service_stub, :list_lb_edge_extensions, "lb_edge_extensions", request, result, options
1296
+ yield result, operation if block_given?
1297
+ throw :response, result
1298
+ end
1299
+ rescue ::Gapic::Rest::Error => e
1300
+ raise ::Google::Cloud::Error.from_error(e)
1301
+ end
1302
+
1303
+ ##
1304
+ # Gets details of the specified `LbEdgeExtension` resource.
1305
+ #
1306
+ # @overload get_lb_edge_extension(request, options = nil)
1307
+ # Pass arguments to `get_lb_edge_extension` via a request object, either of type
1308
+ # {::Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest} or an equivalent Hash.
1309
+ #
1310
+ # @param request [::Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest, ::Hash]
1311
+ # A request object representing the call parameters. Required. To specify no
1312
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1313
+ # @param options [::Gapic::CallOptions, ::Hash]
1314
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1315
+ #
1316
+ # @overload get_lb_edge_extension(name: nil)
1317
+ # Pass arguments to `get_lb_edge_extension` via keyword arguments. Note that at
1318
+ # least one keyword argument is required. To specify no parameters, or to keep all
1319
+ # the default parameter values, pass an empty Hash as a request object (see above).
1320
+ #
1321
+ # @param name [::String]
1322
+ # Required. A name of the `LbEdgeExtension` resource to get. Must be in the
1323
+ # format
1324
+ # `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
1325
+ # @yield [result, operation] Access the result along with the TransportOperation object
1326
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::LbEdgeExtension]
1327
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1328
+ #
1329
+ # @return [::Google::Cloud::NetworkServices::V1::LbEdgeExtension]
1330
+ #
1331
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1332
+ #
1333
+ # @example Basic example
1334
+ # require "google/cloud/network_services/v1"
1335
+ #
1336
+ # # Create a client object. The client can be reused for multiple calls.
1337
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1338
+ #
1339
+ # # Create a request. To set request fields, pass in keyword arguments.
1340
+ # request = Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest.new
1341
+ #
1342
+ # # Call the get_lb_edge_extension method.
1343
+ # result = client.get_lb_edge_extension request
1344
+ #
1345
+ # # The returned object is of type Google::Cloud::NetworkServices::V1::LbEdgeExtension.
1346
+ # p result
1347
+ #
1348
+ def get_lb_edge_extension request, options = nil
1349
+ raise ::ArgumentError, "request must be provided" if request.nil?
1350
+
1351
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest
1352
+
1353
+ # Converts hash and nil to an options object
1354
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1355
+
1356
+ # Customize the options with defaults
1357
+ call_metadata = @config.rpcs.get_lb_edge_extension.metadata.to_h
1358
+
1359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1360
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1361
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1362
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1363
+ transports_version_send: [:rest]
1364
+
1365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1366
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1367
+
1368
+ options.apply_defaults timeout: @config.rpcs.get_lb_edge_extension.timeout,
1369
+ metadata: call_metadata,
1370
+ retry_policy: @config.rpcs.get_lb_edge_extension.retry_policy
1371
+
1372
+ options.apply_defaults timeout: @config.timeout,
1373
+ metadata: @config.metadata,
1374
+ retry_policy: @config.retry_policy
1375
+
1376
+ @dep_service_stub.get_lb_edge_extension request, options do |result, operation|
1377
+ yield result, operation if block_given?
1378
+ end
1379
+ rescue ::Gapic::Rest::Error => e
1380
+ raise ::Google::Cloud::Error.from_error(e)
1381
+ end
1382
+
1383
+ ##
1384
+ # Creates a new `LbEdgeExtension` resource in a given project and location.
1385
+ #
1386
+ # @overload create_lb_edge_extension(request, options = nil)
1387
+ # Pass arguments to `create_lb_edge_extension` via a request object, either of type
1388
+ # {::Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest} or an equivalent Hash.
1389
+ #
1390
+ # @param request [::Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest, ::Hash]
1391
+ # A request object representing the call parameters. Required. To specify no
1392
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1393
+ # @param options [::Gapic::CallOptions, ::Hash]
1394
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1395
+ #
1396
+ # @overload create_lb_edge_extension(parent: nil, lb_edge_extension_id: nil, lb_edge_extension: nil, request_id: nil)
1397
+ # Pass arguments to `create_lb_edge_extension` via keyword arguments. Note that at
1398
+ # least one keyword argument is required. To specify no parameters, or to keep all
1399
+ # the default parameter values, pass an empty Hash as a request object (see above).
1400
+ #
1401
+ # @param parent [::String]
1402
+ # Required. The parent resource of the `LbEdgeExtension` resource. Must be in
1403
+ # the format `projects/{project}/locations/{location}`.
1404
+ # @param lb_edge_extension_id [::String]
1405
+ # Required. User-provided ID of the `LbEdgeExtension` resource to be created.
1406
+ # @param lb_edge_extension [::Google::Cloud::NetworkServices::V1::LbEdgeExtension, ::Hash]
1407
+ # Required. `LbEdgeExtension` resource to be created.
1408
+ # @param request_id [::String]
1409
+ # Optional. An optional request ID to identify requests. Specify a unique
1410
+ # request ID so that if you must retry your request, the server can ignore
1411
+ # the request if it has already been completed. The server guarantees
1412
+ # that for 60 minutes since the first request.
1413
+ #
1414
+ # For example, consider a situation where you make an initial request and the
1415
+ # request times out. If you make the request again with the same request
1416
+ # ID, the server ignores the second request This prevents
1417
+ # clients from accidentally creating duplicate commitments.
1418
+ #
1419
+ # The request ID must be a valid UUID with the exception that zero UUID is
1420
+ # not supported (00000000-0000-0000-0000-000000000000).
1421
+ # @yield [result, operation] Access the result along with the TransportOperation object
1422
+ # @yieldparam result [::Gapic::Operation]
1423
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1424
+ #
1425
+ # @return [::Gapic::Operation]
1426
+ #
1427
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1428
+ #
1429
+ # @example Basic example
1430
+ # require "google/cloud/network_services/v1"
1431
+ #
1432
+ # # Create a client object. The client can be reused for multiple calls.
1433
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1434
+ #
1435
+ # # Create a request. To set request fields, pass in keyword arguments.
1436
+ # request = Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest.new
1437
+ #
1438
+ # # Call the create_lb_edge_extension method.
1439
+ # result = client.create_lb_edge_extension request
1440
+ #
1441
+ # # The returned object is of type Gapic::Operation. You can use it to
1442
+ # # check the status of an operation, cancel it, or wait for results.
1443
+ # # Here is how to wait for a response.
1444
+ # result.wait_until_done! timeout: 60
1445
+ # if result.response?
1446
+ # p result.response
1447
+ # else
1448
+ # puts "No response received."
1449
+ # end
1450
+ #
1451
+ def create_lb_edge_extension request, options = nil
1452
+ raise ::ArgumentError, "request must be provided" if request.nil?
1453
+
1454
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest
1455
+
1456
+ # Converts hash and nil to an options object
1457
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1458
+
1459
+ # Customize the options with defaults
1460
+ call_metadata = @config.rpcs.create_lb_edge_extension.metadata.to_h
1461
+
1462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1463
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1464
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1465
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1466
+ transports_version_send: [:rest]
1467
+
1468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1469
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
+
1471
+ options.apply_defaults timeout: @config.rpcs.create_lb_edge_extension.timeout,
1472
+ metadata: call_metadata,
1473
+ retry_policy: @config.rpcs.create_lb_edge_extension.retry_policy
1474
+
1475
+ options.apply_defaults timeout: @config.timeout,
1476
+ metadata: @config.metadata,
1477
+ retry_policy: @config.retry_policy
1478
+
1479
+ @dep_service_stub.create_lb_edge_extension request, options do |result, operation|
1480
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1481
+ yield result, operation if block_given?
1482
+ throw :response, result
1483
+ end
1484
+ rescue ::Gapic::Rest::Error => e
1485
+ raise ::Google::Cloud::Error.from_error(e)
1486
+ end
1487
+
1488
+ ##
1489
+ # Updates the parameters of the specified `LbEdgeExtension` resource.
1490
+ #
1491
+ # @overload update_lb_edge_extension(request, options = nil)
1492
+ # Pass arguments to `update_lb_edge_extension` via a request object, either of type
1493
+ # {::Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest} or an equivalent Hash.
1494
+ #
1495
+ # @param request [::Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest, ::Hash]
1496
+ # A request object representing the call parameters. Required. To specify no
1497
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1498
+ # @param options [::Gapic::CallOptions, ::Hash]
1499
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1500
+ #
1501
+ # @overload update_lb_edge_extension(update_mask: nil, lb_edge_extension: nil, request_id: nil)
1502
+ # Pass arguments to `update_lb_edge_extension` via keyword arguments. Note that at
1503
+ # least one keyword argument is required. To specify no parameters, or to keep all
1504
+ # the default parameter values, pass an empty Hash as a request object (see above).
1505
+ #
1506
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1507
+ # Optional. Used to specify the fields to be overwritten in the
1508
+ # `LbEdgeExtension` resource by the update.
1509
+ # The fields specified in the `update_mask` are relative to the resource, not
1510
+ # the full request. A field is overwritten if it is in the mask. If the
1511
+ # user does not specify a mask, then all fields are overwritten.
1512
+ # @param lb_edge_extension [::Google::Cloud::NetworkServices::V1::LbEdgeExtension, ::Hash]
1513
+ # Required. `LbEdgeExtension` resource being updated.
1514
+ # @param request_id [::String]
1515
+ # Optional. An optional request ID to identify requests. Specify a unique
1516
+ # request ID so that if you must retry your request, the server can ignore
1517
+ # the request if it has already been completed. The server guarantees
1518
+ # that for 60 minutes since the first request.
1519
+ #
1520
+ # For example, consider a situation where you make an initial request and the
1521
+ # request times out. If you make the request again with the same request
1522
+ # ID, the server ignores the second request This prevents
1523
+ # clients from accidentally creating duplicate commitments.
1524
+ #
1525
+ # The request ID must be a valid UUID with the exception that zero UUID is
1526
+ # not supported (00000000-0000-0000-0000-000000000000).
1527
+ # @yield [result, operation] Access the result along with the TransportOperation object
1528
+ # @yieldparam result [::Gapic::Operation]
1529
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1530
+ #
1531
+ # @return [::Gapic::Operation]
1532
+ #
1533
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1534
+ #
1535
+ # @example Basic example
1536
+ # require "google/cloud/network_services/v1"
1537
+ #
1538
+ # # Create a client object. The client can be reused for multiple calls.
1539
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1540
+ #
1541
+ # # Create a request. To set request fields, pass in keyword arguments.
1542
+ # request = Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest.new
1543
+ #
1544
+ # # Call the update_lb_edge_extension method.
1545
+ # result = client.update_lb_edge_extension request
1546
+ #
1547
+ # # The returned object is of type Gapic::Operation. You can use it to
1548
+ # # check the status of an operation, cancel it, or wait for results.
1549
+ # # Here is how to wait for a response.
1550
+ # result.wait_until_done! timeout: 60
1551
+ # if result.response?
1552
+ # p result.response
1553
+ # else
1554
+ # puts "No response received."
1555
+ # end
1556
+ #
1557
+ def update_lb_edge_extension request, options = nil
1558
+ raise ::ArgumentError, "request must be provided" if request.nil?
1559
+
1560
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest
1561
+
1562
+ # Converts hash and nil to an options object
1563
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1564
+
1565
+ # Customize the options with defaults
1566
+ call_metadata = @config.rpcs.update_lb_edge_extension.metadata.to_h
1567
+
1568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1569
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1570
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1571
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1572
+ transports_version_send: [:rest]
1573
+
1574
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1575
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1576
+
1577
+ options.apply_defaults timeout: @config.rpcs.update_lb_edge_extension.timeout,
1578
+ metadata: call_metadata,
1579
+ retry_policy: @config.rpcs.update_lb_edge_extension.retry_policy
1580
+
1581
+ options.apply_defaults timeout: @config.timeout,
1582
+ metadata: @config.metadata,
1583
+ retry_policy: @config.retry_policy
1584
+
1585
+ @dep_service_stub.update_lb_edge_extension request, options do |result, operation|
1586
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1587
+ yield result, operation if block_given?
1588
+ throw :response, result
1589
+ end
1590
+ rescue ::Gapic::Rest::Error => e
1591
+ raise ::Google::Cloud::Error.from_error(e)
1592
+ end
1593
+
1594
+ ##
1595
+ # Deletes the specified `LbEdgeExtension` resource.
1596
+ #
1597
+ # @overload delete_lb_edge_extension(request, options = nil)
1598
+ # Pass arguments to `delete_lb_edge_extension` via a request object, either of type
1599
+ # {::Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest} or an equivalent Hash.
1600
+ #
1601
+ # @param request [::Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest, ::Hash]
1602
+ # A request object representing the call parameters. Required. To specify no
1603
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1604
+ # @param options [::Gapic::CallOptions, ::Hash]
1605
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1606
+ #
1607
+ # @overload delete_lb_edge_extension(name: nil, request_id: nil)
1608
+ # Pass arguments to `delete_lb_edge_extension` via keyword arguments. Note that at
1609
+ # least one keyword argument is required. To specify no parameters, or to keep all
1610
+ # the default parameter values, pass an empty Hash as a request object (see above).
1611
+ #
1612
+ # @param name [::String]
1613
+ # Required. The name of the `LbEdgeExtension` resource to delete. Must be in
1614
+ # the format
1615
+ # `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
1616
+ # @param request_id [::String]
1617
+ # Optional. An optional request ID to identify requests. Specify a unique
1618
+ # request ID so that if you must retry your request, the server can ignore
1619
+ # the request if it has already been completed. The server guarantees
1620
+ # that for 60 minutes after the first request.
1621
+ #
1622
+ # For example, consider a situation where you make an initial request and the
1623
+ # request times out. If you make the request again with the same request
1624
+ # ID, the server ignores the second request This prevents
1625
+ # clients from accidentally creating duplicate commitments.
1626
+ #
1627
+ # The request ID must be a valid UUID with the exception that zero UUID is
1628
+ # not supported (00000000-0000-0000-0000-000000000000).
1629
+ # @yield [result, operation] Access the result along with the TransportOperation object
1630
+ # @yieldparam result [::Gapic::Operation]
1631
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1632
+ #
1633
+ # @return [::Gapic::Operation]
1634
+ #
1635
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1636
+ #
1637
+ # @example Basic example
1638
+ # require "google/cloud/network_services/v1"
1639
+ #
1640
+ # # Create a client object. The client can be reused for multiple calls.
1641
+ # client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new
1642
+ #
1643
+ # # Create a request. To set request fields, pass in keyword arguments.
1644
+ # request = Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest.new
1645
+ #
1646
+ # # Call the delete_lb_edge_extension method.
1647
+ # result = client.delete_lb_edge_extension request
1648
+ #
1649
+ # # The returned object is of type Gapic::Operation. You can use it to
1650
+ # # check the status of an operation, cancel it, or wait for results.
1651
+ # # Here is how to wait for a response.
1652
+ # result.wait_until_done! timeout: 60
1653
+ # if result.response?
1654
+ # p result.response
1655
+ # else
1656
+ # puts "No response received."
1657
+ # end
1658
+ #
1659
+ def delete_lb_edge_extension request, options = nil
1660
+ raise ::ArgumentError, "request must be provided" if request.nil?
1661
+
1662
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest
1663
+
1664
+ # Converts hash and nil to an options object
1665
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1666
+
1667
+ # Customize the options with defaults
1668
+ call_metadata = @config.rpcs.delete_lb_edge_extension.metadata.to_h
1669
+
1670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1671
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1672
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1673
+ gapic_version: ::Google::Cloud::NetworkServices::V1::VERSION,
1674
+ transports_version_send: [:rest]
1675
+
1676
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1677
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1678
+
1679
+ options.apply_defaults timeout: @config.rpcs.delete_lb_edge_extension.timeout,
1680
+ metadata: call_metadata,
1681
+ retry_policy: @config.rpcs.delete_lb_edge_extension.retry_policy
1682
+
1683
+ options.apply_defaults timeout: @config.timeout,
1684
+ metadata: @config.metadata,
1685
+ retry_policy: @config.retry_policy
1686
+
1687
+ @dep_service_stub.delete_lb_edge_extension request, options do |result, operation|
1688
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1689
+ yield result, operation if block_given?
1690
+ throw :response, result
1691
+ end
1692
+ rescue ::Gapic::Rest::Error => e
1693
+ raise ::Google::Cloud::Error.from_error(e)
1694
+ end
1695
+
1208
1696
  ##
1209
1697
  # Lists `AuthzExtension` resources in a given project and location.
1210
1698
  #
@@ -1900,6 +2388,31 @@ module Google
1900
2388
  #
1901
2389
  attr_reader :delete_lb_route_extension
1902
2390
  ##
2391
+ # RPC-specific configuration for `list_lb_edge_extensions`
2392
+ # @return [::Gapic::Config::Method]
2393
+ #
2394
+ attr_reader :list_lb_edge_extensions
2395
+ ##
2396
+ # RPC-specific configuration for `get_lb_edge_extension`
2397
+ # @return [::Gapic::Config::Method]
2398
+ #
2399
+ attr_reader :get_lb_edge_extension
2400
+ ##
2401
+ # RPC-specific configuration for `create_lb_edge_extension`
2402
+ # @return [::Gapic::Config::Method]
2403
+ #
2404
+ attr_reader :create_lb_edge_extension
2405
+ ##
2406
+ # RPC-specific configuration for `update_lb_edge_extension`
2407
+ # @return [::Gapic::Config::Method]
2408
+ #
2409
+ attr_reader :update_lb_edge_extension
2410
+ ##
2411
+ # RPC-specific configuration for `delete_lb_edge_extension`
2412
+ # @return [::Gapic::Config::Method]
2413
+ #
2414
+ attr_reader :delete_lb_edge_extension
2415
+ ##
1903
2416
  # RPC-specific configuration for `list_authz_extensions`
1904
2417
  # @return [::Gapic::Config::Method]
1905
2418
  #
@@ -1947,6 +2460,16 @@ module Google
1947
2460
  @update_lb_route_extension = ::Gapic::Config::Method.new update_lb_route_extension_config
1948
2461
  delete_lb_route_extension_config = parent_rpcs.delete_lb_route_extension if parent_rpcs.respond_to? :delete_lb_route_extension
1949
2462
  @delete_lb_route_extension = ::Gapic::Config::Method.new delete_lb_route_extension_config
2463
+ list_lb_edge_extensions_config = parent_rpcs.list_lb_edge_extensions if parent_rpcs.respond_to? :list_lb_edge_extensions
2464
+ @list_lb_edge_extensions = ::Gapic::Config::Method.new list_lb_edge_extensions_config
2465
+ get_lb_edge_extension_config = parent_rpcs.get_lb_edge_extension if parent_rpcs.respond_to? :get_lb_edge_extension
2466
+ @get_lb_edge_extension = ::Gapic::Config::Method.new get_lb_edge_extension_config
2467
+ create_lb_edge_extension_config = parent_rpcs.create_lb_edge_extension if parent_rpcs.respond_to? :create_lb_edge_extension
2468
+ @create_lb_edge_extension = ::Gapic::Config::Method.new create_lb_edge_extension_config
2469
+ update_lb_edge_extension_config = parent_rpcs.update_lb_edge_extension if parent_rpcs.respond_to? :update_lb_edge_extension
2470
+ @update_lb_edge_extension = ::Gapic::Config::Method.new update_lb_edge_extension_config
2471
+ delete_lb_edge_extension_config = parent_rpcs.delete_lb_edge_extension if parent_rpcs.respond_to? :delete_lb_edge_extension
2472
+ @delete_lb_edge_extension = ::Gapic::Config::Method.new delete_lb_edge_extension_config
1950
2473
  list_authz_extensions_config = parent_rpcs.list_authz_extensions if parent_rpcs.respond_to? :list_authz_extensions
1951
2474
  @list_authz_extensions = ::Gapic::Config::Method.new list_authz_extensions_config
1952
2475
  get_authz_extension_config = parent_rpcs.get_authz_extension if parent_rpcs.respond_to? :get_authz_extension