google-apis-networkservices_v1 0.35.0 → 0.37.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/networkservices_v1/classes.rb +499 -1
- data/lib/google/apis/networkservices_v1/gem_version.rb +3 -3
- data/lib/google/apis/networkservices_v1/representations.rb +186 -0
- data/lib/google/apis/networkservices_v1/service.rb +750 -0
- metadata +7 -7
@@ -1446,6 +1446,454 @@ module Google
|
|
1446
1446
|
execute_or_queue_command(command, &block)
|
1447
1447
|
end
|
1448
1448
|
|
1449
|
+
# Creates a new `LbRouteExtension` resource in a given project and location.
|
1450
|
+
# @param [String] parent
|
1451
|
+
# Required. The parent resource of the `LbRouteExtension` resource. Must be in
|
1452
|
+
# the format `projects/`project`/locations/`location``.
|
1453
|
+
# @param [Google::Apis::NetworkservicesV1::LbRouteExtension] lb_route_extension_object
|
1454
|
+
# @param [String] lb_route_extension_id
|
1455
|
+
# Required. User-provided ID of the `LbRouteExtension` resource to be created.
|
1456
|
+
# @param [String] request_id
|
1457
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1458
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1459
|
+
# request if it has already been completed. The server guarantees that for at
|
1460
|
+
# least 60 minutes since the first request. For example, consider a situation
|
1461
|
+
# where you make an initial request and the request times out. If you make the
|
1462
|
+
# request again with the same request ID, the server can check if original
|
1463
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1464
|
+
# request. This prevents clients from accidentally creating duplicate
|
1465
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1466
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1467
|
+
# @param [String] fields
|
1468
|
+
# Selector specifying which fields to include in a partial response.
|
1469
|
+
# @param [String] quota_user
|
1470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1472
|
+
# @param [Google::Apis::RequestOptions] options
|
1473
|
+
# Request-specific options
|
1474
|
+
#
|
1475
|
+
# @yield [result, err] Result & error if block supplied
|
1476
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1477
|
+
# @yieldparam err [StandardError] error object if request failed
|
1478
|
+
#
|
1479
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1480
|
+
#
|
1481
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1482
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1483
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1484
|
+
def create_project_location_lb_route_extension(parent, lb_route_extension_object = nil, lb_route_extension_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1485
|
+
command = make_simple_command(:post, 'v1/{+parent}/lbRouteExtensions', options)
|
1486
|
+
command.request_representation = Google::Apis::NetworkservicesV1::LbRouteExtension::Representation
|
1487
|
+
command.request_object = lb_route_extension_object
|
1488
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1489
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1490
|
+
command.params['parent'] = parent unless parent.nil?
|
1491
|
+
command.query['lbRouteExtensionId'] = lb_route_extension_id unless lb_route_extension_id.nil?
|
1492
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1493
|
+
command.query['fields'] = fields unless fields.nil?
|
1494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1495
|
+
execute_or_queue_command(command, &block)
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# Deletes the specified `LbRouteExtension` resource.
|
1499
|
+
# @param [String] name
|
1500
|
+
# Required. The name of the `LbRouteExtension` resource to delete. Must be in
|
1501
|
+
# the format `projects/`project`/locations/`location`/lbRouteExtensions/`
|
1502
|
+
# lb_route_extension``.
|
1503
|
+
# @param [String] request_id
|
1504
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1505
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1506
|
+
# request if it has already been completed. The server guarantees that for at
|
1507
|
+
# least 60 minutes after the first request. For example, consider a situation
|
1508
|
+
# where you make an initial request and the request times out. If you make the
|
1509
|
+
# request again with the same request ID, the server can check if original
|
1510
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1511
|
+
# request. This prevents clients from accidentally creating duplicate
|
1512
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1513
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1514
|
+
# @param [String] fields
|
1515
|
+
# Selector specifying which fields to include in a partial response.
|
1516
|
+
# @param [String] quota_user
|
1517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1519
|
+
# @param [Google::Apis::RequestOptions] options
|
1520
|
+
# Request-specific options
|
1521
|
+
#
|
1522
|
+
# @yield [result, err] Result & error if block supplied
|
1523
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1524
|
+
# @yieldparam err [StandardError] error object if request failed
|
1525
|
+
#
|
1526
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1527
|
+
#
|
1528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1531
|
+
def delete_project_location_lb_route_extension(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1532
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1533
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1534
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1535
|
+
command.params['name'] = name unless name.nil?
|
1536
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1537
|
+
command.query['fields'] = fields unless fields.nil?
|
1538
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1539
|
+
execute_or_queue_command(command, &block)
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Gets details of the specified `LbRouteExtension` resource.
|
1543
|
+
# @param [String] name
|
1544
|
+
# Required. A name of the `LbRouteExtension` resource to get. Must be in the
|
1545
|
+
# format `projects/`project`/locations/`location`/lbRouteExtensions/`
|
1546
|
+
# lb_route_extension``.
|
1547
|
+
# @param [String] fields
|
1548
|
+
# Selector specifying which fields to include in a partial response.
|
1549
|
+
# @param [String] quota_user
|
1550
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1551
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1552
|
+
# @param [Google::Apis::RequestOptions] options
|
1553
|
+
# Request-specific options
|
1554
|
+
#
|
1555
|
+
# @yield [result, err] Result & error if block supplied
|
1556
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::LbRouteExtension] parsed result object
|
1557
|
+
# @yieldparam err [StandardError] error object if request failed
|
1558
|
+
#
|
1559
|
+
# @return [Google::Apis::NetworkservicesV1::LbRouteExtension]
|
1560
|
+
#
|
1561
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1562
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1563
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1564
|
+
def get_project_location_lb_route_extension(name, fields: nil, quota_user: nil, options: nil, &block)
|
1565
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1566
|
+
command.response_representation = Google::Apis::NetworkservicesV1::LbRouteExtension::Representation
|
1567
|
+
command.response_class = Google::Apis::NetworkservicesV1::LbRouteExtension
|
1568
|
+
command.params['name'] = name unless name.nil?
|
1569
|
+
command.query['fields'] = fields unless fields.nil?
|
1570
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1571
|
+
execute_or_queue_command(command, &block)
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Lists `LbRouteExtension` resources in a given project and location.
|
1575
|
+
# @param [String] parent
|
1576
|
+
# Required. The project and location from which the `LbRouteExtension` resources
|
1577
|
+
# are listed, specified in the following format: `projects/`project`/locations/`
|
1578
|
+
# location``.
|
1579
|
+
# @param [String] filter
|
1580
|
+
# Optional. Filtering results.
|
1581
|
+
# @param [String] order_by
|
1582
|
+
# Optional. Hint for how to order the results.
|
1583
|
+
# @param [Fixnum] page_size
|
1584
|
+
# Optional. Requested page size. The server might return fewer items than
|
1585
|
+
# requested. If unspecified, the server picks an appropriate default.
|
1586
|
+
# @param [String] page_token
|
1587
|
+
# Optional. A token identifying a page of results that the server returns.
|
1588
|
+
# @param [String] fields
|
1589
|
+
# Selector specifying which fields to include in a partial response.
|
1590
|
+
# @param [String] quota_user
|
1591
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1592
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1593
|
+
# @param [Google::Apis::RequestOptions] options
|
1594
|
+
# Request-specific options
|
1595
|
+
#
|
1596
|
+
# @yield [result, err] Result & error if block supplied
|
1597
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListLbRouteExtensionsResponse] parsed result object
|
1598
|
+
# @yieldparam err [StandardError] error object if request failed
|
1599
|
+
#
|
1600
|
+
# @return [Google::Apis::NetworkservicesV1::ListLbRouteExtensionsResponse]
|
1601
|
+
#
|
1602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1605
|
+
def list_project_location_lb_route_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1606
|
+
command = make_simple_command(:get, 'v1/{+parent}/lbRouteExtensions', options)
|
1607
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListLbRouteExtensionsResponse::Representation
|
1608
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListLbRouteExtensionsResponse
|
1609
|
+
command.params['parent'] = parent unless parent.nil?
|
1610
|
+
command.query['filter'] = filter unless filter.nil?
|
1611
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1612
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1613
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1614
|
+
command.query['fields'] = fields unless fields.nil?
|
1615
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1616
|
+
execute_or_queue_command(command, &block)
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
# Updates the parameters of the specified `LbRouteExtension` resource.
|
1620
|
+
# @param [String] name
|
1621
|
+
# Required. Identifier. Name of the `LbRouteExtension` resource in the following
|
1622
|
+
# format: `projects/`project`/locations/`location`/lbRouteExtensions/`
|
1623
|
+
# lb_route_extension``.
|
1624
|
+
# @param [Google::Apis::NetworkservicesV1::LbRouteExtension] lb_route_extension_object
|
1625
|
+
# @param [String] request_id
|
1626
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1627
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1628
|
+
# request if it has already been completed. The server guarantees that for at
|
1629
|
+
# least 60 minutes since the first request. For example, consider a situation
|
1630
|
+
# where you make an initial request and the request times out. If you make the
|
1631
|
+
# request again with the same request ID, the server can check if original
|
1632
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1633
|
+
# request. This prevents clients from accidentally creating duplicate
|
1634
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1635
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1636
|
+
# @param [String] update_mask
|
1637
|
+
# Required. Used to specify the fields to be overwritten in the `
|
1638
|
+
# LbRouteExtension` resource by the update. The fields specified in the
|
1639
|
+
# update_mask are relative to the resource, not the full request. A field is
|
1640
|
+
# overwritten if it is in the mask. If the user does not specify a mask, then
|
1641
|
+
# all fields are overwritten.
|
1642
|
+
# @param [String] fields
|
1643
|
+
# Selector specifying which fields to include in a partial response.
|
1644
|
+
# @param [String] quota_user
|
1645
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1646
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1647
|
+
# @param [Google::Apis::RequestOptions] options
|
1648
|
+
# Request-specific options
|
1649
|
+
#
|
1650
|
+
# @yield [result, err] Result & error if block supplied
|
1651
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1652
|
+
# @yieldparam err [StandardError] error object if request failed
|
1653
|
+
#
|
1654
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1655
|
+
#
|
1656
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1657
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1658
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1659
|
+
def patch_project_location_lb_route_extension(name, lb_route_extension_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1660
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1661
|
+
command.request_representation = Google::Apis::NetworkservicesV1::LbRouteExtension::Representation
|
1662
|
+
command.request_object = lb_route_extension_object
|
1663
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1664
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1665
|
+
command.params['name'] = name unless name.nil?
|
1666
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1667
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1668
|
+
command.query['fields'] = fields unless fields.nil?
|
1669
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1670
|
+
execute_or_queue_command(command, &block)
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
# Creates a new `LbTrafficExtension` resource in a given project and location.
|
1674
|
+
# @param [String] parent
|
1675
|
+
# Required. The parent resource of the `LbTrafficExtension` resource. Must be in
|
1676
|
+
# the format `projects/`project`/locations/`location``.
|
1677
|
+
# @param [Google::Apis::NetworkservicesV1::LbTrafficExtension] lb_traffic_extension_object
|
1678
|
+
# @param [String] lb_traffic_extension_id
|
1679
|
+
# Required. User-provided ID of the `LbTrafficExtension` resource to be created.
|
1680
|
+
# @param [String] request_id
|
1681
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1682
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1683
|
+
# request if it has already been completed. The server guarantees that for at
|
1684
|
+
# least 60 minutes since the first request. For example, consider a situation
|
1685
|
+
# where you make an initial request and the request times out. If you make the
|
1686
|
+
# request again with the same request ID, the server can check if original
|
1687
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1688
|
+
# request. This prevents clients from accidentally creating duplicate
|
1689
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1690
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1691
|
+
# @param [String] fields
|
1692
|
+
# Selector specifying which fields to include in a partial response.
|
1693
|
+
# @param [String] quota_user
|
1694
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1695
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1696
|
+
# @param [Google::Apis::RequestOptions] options
|
1697
|
+
# Request-specific options
|
1698
|
+
#
|
1699
|
+
# @yield [result, err] Result & error if block supplied
|
1700
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1701
|
+
# @yieldparam err [StandardError] error object if request failed
|
1702
|
+
#
|
1703
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1704
|
+
#
|
1705
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1706
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1707
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1708
|
+
def create_project_location_lb_traffic_extension(parent, lb_traffic_extension_object = nil, lb_traffic_extension_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1709
|
+
command = make_simple_command(:post, 'v1/{+parent}/lbTrafficExtensions', options)
|
1710
|
+
command.request_representation = Google::Apis::NetworkservicesV1::LbTrafficExtension::Representation
|
1711
|
+
command.request_object = lb_traffic_extension_object
|
1712
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1713
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1714
|
+
command.params['parent'] = parent unless parent.nil?
|
1715
|
+
command.query['lbTrafficExtensionId'] = lb_traffic_extension_id unless lb_traffic_extension_id.nil?
|
1716
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1717
|
+
command.query['fields'] = fields unless fields.nil?
|
1718
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1719
|
+
execute_or_queue_command(command, &block)
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
# Deletes the specified `LbTrafficExtension` resource.
|
1723
|
+
# @param [String] name
|
1724
|
+
# Required. The name of the `LbTrafficExtension` resource to delete. Must be in
|
1725
|
+
# the format `projects/`project`/locations/`location`/lbTrafficExtensions/`
|
1726
|
+
# lb_traffic_extension``.
|
1727
|
+
# @param [String] request_id
|
1728
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1729
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1730
|
+
# request if it has already been completed. The server guarantees that for at
|
1731
|
+
# least 60 minutes after the first request. For example, consider a situation
|
1732
|
+
# where you make an initial request and the request times out. If you make the
|
1733
|
+
# request again with the same request ID, the server can check if original
|
1734
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1735
|
+
# request. This prevents clients from accidentally creating duplicate
|
1736
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1737
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1738
|
+
# @param [String] fields
|
1739
|
+
# Selector specifying which fields to include in a partial response.
|
1740
|
+
# @param [String] quota_user
|
1741
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1742
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1743
|
+
# @param [Google::Apis::RequestOptions] options
|
1744
|
+
# Request-specific options
|
1745
|
+
#
|
1746
|
+
# @yield [result, err] Result & error if block supplied
|
1747
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1748
|
+
# @yieldparam err [StandardError] error object if request failed
|
1749
|
+
#
|
1750
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1751
|
+
#
|
1752
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1753
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1754
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1755
|
+
def delete_project_location_lb_traffic_extension(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1756
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1757
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1758
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1759
|
+
command.params['name'] = name unless name.nil?
|
1760
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1761
|
+
command.query['fields'] = fields unless fields.nil?
|
1762
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1763
|
+
execute_or_queue_command(command, &block)
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
# Gets details of the specified `LbTrafficExtension` resource.
|
1767
|
+
# @param [String] name
|
1768
|
+
# Required. A name of the `LbTrafficExtension` resource to get. Must be in the
|
1769
|
+
# format `projects/`project`/locations/`location`/lbTrafficExtensions/`
|
1770
|
+
# lb_traffic_extension``.
|
1771
|
+
# @param [String] fields
|
1772
|
+
# Selector specifying which fields to include in a partial response.
|
1773
|
+
# @param [String] quota_user
|
1774
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1775
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1776
|
+
# @param [Google::Apis::RequestOptions] options
|
1777
|
+
# Request-specific options
|
1778
|
+
#
|
1779
|
+
# @yield [result, err] Result & error if block supplied
|
1780
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::LbTrafficExtension] parsed result object
|
1781
|
+
# @yieldparam err [StandardError] error object if request failed
|
1782
|
+
#
|
1783
|
+
# @return [Google::Apis::NetworkservicesV1::LbTrafficExtension]
|
1784
|
+
#
|
1785
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1786
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1787
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1788
|
+
def get_project_location_lb_traffic_extension(name, fields: nil, quota_user: nil, options: nil, &block)
|
1789
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1790
|
+
command.response_representation = Google::Apis::NetworkservicesV1::LbTrafficExtension::Representation
|
1791
|
+
command.response_class = Google::Apis::NetworkservicesV1::LbTrafficExtension
|
1792
|
+
command.params['name'] = name unless name.nil?
|
1793
|
+
command.query['fields'] = fields unless fields.nil?
|
1794
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1795
|
+
execute_or_queue_command(command, &block)
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
# Lists `LbTrafficExtension` resources in a given project and location.
|
1799
|
+
# @param [String] parent
|
1800
|
+
# Required. The project and location from which the `LbTrafficExtension`
|
1801
|
+
# resources are listed, specified in the following format: `projects/`project`/
|
1802
|
+
# locations/`location``.
|
1803
|
+
# @param [String] filter
|
1804
|
+
# Optional. Filtering results.
|
1805
|
+
# @param [String] order_by
|
1806
|
+
# Optional. Hint for how to order the results.
|
1807
|
+
# @param [Fixnum] page_size
|
1808
|
+
# Optional. Requested page size. The server might return fewer items than
|
1809
|
+
# requested. If unspecified, the server picks an appropriate default.
|
1810
|
+
# @param [String] page_token
|
1811
|
+
# Optional. A token identifying a page of results that the server returns.
|
1812
|
+
# @param [String] fields
|
1813
|
+
# Selector specifying which fields to include in a partial response.
|
1814
|
+
# @param [String] quota_user
|
1815
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1816
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1817
|
+
# @param [Google::Apis::RequestOptions] options
|
1818
|
+
# Request-specific options
|
1819
|
+
#
|
1820
|
+
# @yield [result, err] Result & error if block supplied
|
1821
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListLbTrafficExtensionsResponse] parsed result object
|
1822
|
+
# @yieldparam err [StandardError] error object if request failed
|
1823
|
+
#
|
1824
|
+
# @return [Google::Apis::NetworkservicesV1::ListLbTrafficExtensionsResponse]
|
1825
|
+
#
|
1826
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1827
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1828
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1829
|
+
def list_project_location_lb_traffic_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1830
|
+
command = make_simple_command(:get, 'v1/{+parent}/lbTrafficExtensions', options)
|
1831
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListLbTrafficExtensionsResponse::Representation
|
1832
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListLbTrafficExtensionsResponse
|
1833
|
+
command.params['parent'] = parent unless parent.nil?
|
1834
|
+
command.query['filter'] = filter unless filter.nil?
|
1835
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1836
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1837
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1838
|
+
command.query['fields'] = fields unless fields.nil?
|
1839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1840
|
+
execute_or_queue_command(command, &block)
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
# Updates the parameters of the specified `LbTrafficExtension` resource.
|
1844
|
+
# @param [String] name
|
1845
|
+
# Required. Identifier. Name of the `LbTrafficExtension` resource in the
|
1846
|
+
# following format: `projects/`project`/locations/`location`/lbTrafficExtensions/
|
1847
|
+
# `lb_traffic_extension``.
|
1848
|
+
# @param [Google::Apis::NetworkservicesV1::LbTrafficExtension] lb_traffic_extension_object
|
1849
|
+
# @param [String] request_id
|
1850
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1851
|
+
# request ID so that if you must retry your request, the server can ignore the
|
1852
|
+
# request if it has already been completed. The server guarantees that for at
|
1853
|
+
# least 60 minutes since the first request. For example, consider a situation
|
1854
|
+
# where you make an initial request and the request times out. If you make the
|
1855
|
+
# request again with the same request ID, the server can check if original
|
1856
|
+
# operation with the same request ID was received, and if so, ignores the second
|
1857
|
+
# request. This prevents clients from accidentally creating duplicate
|
1858
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1859
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1860
|
+
# @param [String] update_mask
|
1861
|
+
# Required. Used to specify the fields to be overwritten in the `
|
1862
|
+
# LbTrafficExtension` resource by the update. The fields specified in the
|
1863
|
+
# update_mask are relative to the resource, not the full request. A field is
|
1864
|
+
# overwritten if it is in the mask. If the user does not specify a mask, then
|
1865
|
+
# all fields are overwritten.
|
1866
|
+
# @param [String] fields
|
1867
|
+
# Selector specifying which fields to include in a partial response.
|
1868
|
+
# @param [String] quota_user
|
1869
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1870
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1871
|
+
# @param [Google::Apis::RequestOptions] options
|
1872
|
+
# Request-specific options
|
1873
|
+
#
|
1874
|
+
# @yield [result, err] Result & error if block supplied
|
1875
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
1876
|
+
# @yieldparam err [StandardError] error object if request failed
|
1877
|
+
#
|
1878
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
1879
|
+
#
|
1880
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1881
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1882
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1883
|
+
def patch_project_location_lb_traffic_extension(name, lb_traffic_extension_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1884
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1885
|
+
command.request_representation = Google::Apis::NetworkservicesV1::LbTrafficExtension::Representation
|
1886
|
+
command.request_object = lb_traffic_extension_object
|
1887
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1888
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1889
|
+
command.params['name'] = name unless name.nil?
|
1890
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1891
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1892
|
+
command.query['fields'] = fields unless fields.nil?
|
1893
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1894
|
+
execute_or_queue_command(command, &block)
|
1895
|
+
end
|
1896
|
+
|
1449
1897
|
# Creates a new Mesh in a given project and location.
|
1450
1898
|
# @param [String] parent
|
1451
1899
|
# Required. The parent resource of the Mesh. Must be in the format `projects/*/
|
@@ -2149,6 +2597,308 @@ module Google
|
|
2149
2597
|
execute_or_queue_command(command, &block)
|
2150
2598
|
end
|
2151
2599
|
|
2600
|
+
# Creates a new ServiceLbPolicy in a given project and location.
|
2601
|
+
# @param [String] parent
|
2602
|
+
# Required. The parent resource of the ServiceLbPolicy. Must be in the format `
|
2603
|
+
# projects/`project`/locations/`location``.
|
2604
|
+
# @param [Google::Apis::NetworkservicesV1::ServiceLbPolicy] service_lb_policy_object
|
2605
|
+
# @param [String] service_lb_policy_id
|
2606
|
+
# Required. Short name of the ServiceLbPolicy resource to be created. E.g. for
|
2607
|
+
# resource name `projects/`project`/locations/`location`/serviceLbPolicies/`
|
2608
|
+
# service_lb_policy_name``. the id is value of `service_lb_policy_name`
|
2609
|
+
# @param [String] fields
|
2610
|
+
# Selector specifying which fields to include in a partial response.
|
2611
|
+
# @param [String] quota_user
|
2612
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2613
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2614
|
+
# @param [Google::Apis::RequestOptions] options
|
2615
|
+
# Request-specific options
|
2616
|
+
#
|
2617
|
+
# @yield [result, err] Result & error if block supplied
|
2618
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
2619
|
+
# @yieldparam err [StandardError] error object if request failed
|
2620
|
+
#
|
2621
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
2622
|
+
#
|
2623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2626
|
+
def create_project_location_service_lb_policy(parent, service_lb_policy_object = nil, service_lb_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2627
|
+
command = make_simple_command(:post, 'v1/{+parent}/serviceLbPolicies', options)
|
2628
|
+
command.request_representation = Google::Apis::NetworkservicesV1::ServiceLbPolicy::Representation
|
2629
|
+
command.request_object = service_lb_policy_object
|
2630
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
2631
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
2632
|
+
command.params['parent'] = parent unless parent.nil?
|
2633
|
+
command.query['serviceLbPolicyId'] = service_lb_policy_id unless service_lb_policy_id.nil?
|
2634
|
+
command.query['fields'] = fields unless fields.nil?
|
2635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2636
|
+
execute_or_queue_command(command, &block)
|
2637
|
+
end
|
2638
|
+
|
2639
|
+
# Deletes a single ServiceLbPolicy.
|
2640
|
+
# @param [String] name
|
2641
|
+
# Required. A name of the ServiceLbPolicy to delete. Must be in the format `
|
2642
|
+
# projects/`project`/locations/`location`/serviceLbPolicies/*`.
|
2643
|
+
# @param [String] fields
|
2644
|
+
# Selector specifying which fields to include in a partial response.
|
2645
|
+
# @param [String] quota_user
|
2646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2648
|
+
# @param [Google::Apis::RequestOptions] options
|
2649
|
+
# Request-specific options
|
2650
|
+
#
|
2651
|
+
# @yield [result, err] Result & error if block supplied
|
2652
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
2653
|
+
# @yieldparam err [StandardError] error object if request failed
|
2654
|
+
#
|
2655
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
2656
|
+
#
|
2657
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2658
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2659
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2660
|
+
def delete_project_location_service_lb_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
2661
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2662
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
2663
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
2664
|
+
command.params['name'] = name unless name.nil?
|
2665
|
+
command.query['fields'] = fields unless fields.nil?
|
2666
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2667
|
+
execute_or_queue_command(command, &block)
|
2668
|
+
end
|
2669
|
+
|
2670
|
+
# Gets details of a single ServiceLbPolicy.
|
2671
|
+
# @param [String] name
|
2672
|
+
# Required. A name of the ServiceLbPolicy to get. Must be in the format `
|
2673
|
+
# projects/`project`/locations/`location`/serviceLbPolicies/*`.
|
2674
|
+
# @param [String] fields
|
2675
|
+
# Selector specifying which fields to include in a partial response.
|
2676
|
+
# @param [String] quota_user
|
2677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2679
|
+
# @param [Google::Apis::RequestOptions] options
|
2680
|
+
# Request-specific options
|
2681
|
+
#
|
2682
|
+
# @yield [result, err] Result & error if block supplied
|
2683
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ServiceLbPolicy] parsed result object
|
2684
|
+
# @yieldparam err [StandardError] error object if request failed
|
2685
|
+
#
|
2686
|
+
# @return [Google::Apis::NetworkservicesV1::ServiceLbPolicy]
|
2687
|
+
#
|
2688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2691
|
+
def get_project_location_service_lb_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
2692
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2693
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ServiceLbPolicy::Representation
|
2694
|
+
command.response_class = Google::Apis::NetworkservicesV1::ServiceLbPolicy
|
2695
|
+
command.params['name'] = name unless name.nil?
|
2696
|
+
command.query['fields'] = fields unless fields.nil?
|
2697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2698
|
+
execute_or_queue_command(command, &block)
|
2699
|
+
end
|
2700
|
+
|
2701
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2702
|
+
# resource exists and does not have a policy set.
|
2703
|
+
# @param [String] resource
|
2704
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2705
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2706
|
+
# appropriate value for this field.
|
2707
|
+
# @param [Fixnum] options_requested_policy_version
|
2708
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2709
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2710
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2711
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2712
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2713
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2714
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2715
|
+
# bindings, the response uses version 1. To learn which resources support
|
2716
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2717
|
+
# google.com/iam/help/conditions/resource-policies).
|
2718
|
+
# @param [String] fields
|
2719
|
+
# Selector specifying which fields to include in a partial response.
|
2720
|
+
# @param [String] quota_user
|
2721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2723
|
+
# @param [Google::Apis::RequestOptions] options
|
2724
|
+
# Request-specific options
|
2725
|
+
#
|
2726
|
+
# @yield [result, err] Result & error if block supplied
|
2727
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
2728
|
+
# @yieldparam err [StandardError] error object if request failed
|
2729
|
+
#
|
2730
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
2731
|
+
#
|
2732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2735
|
+
def get_project_location_service_lb_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2736
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
2737
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
2738
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
2739
|
+
command.params['resource'] = resource unless resource.nil?
|
2740
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2741
|
+
command.query['fields'] = fields unless fields.nil?
|
2742
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2743
|
+
execute_or_queue_command(command, &block)
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
# Lists ServiceLbPolicies in a given project and location.
|
2747
|
+
# @param [String] parent
|
2748
|
+
# Required. The project and location from which the ServiceLbPolicies should be
|
2749
|
+
# listed, specified in the format `projects/`project`/locations/`location``.
|
2750
|
+
# @param [Fixnum] page_size
|
2751
|
+
# Maximum number of ServiceLbPolicies to return per call.
|
2752
|
+
# @param [String] page_token
|
2753
|
+
# The value returned by the last `ListServiceLbPoliciesResponse` Indicates that
|
2754
|
+
# this is a continuation of a prior `ListRouters` call, and that the system
|
2755
|
+
# should return the next page of data.
|
2756
|
+
# @param [String] fields
|
2757
|
+
# Selector specifying which fields to include in a partial response.
|
2758
|
+
# @param [String] quota_user
|
2759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2761
|
+
# @param [Google::Apis::RequestOptions] options
|
2762
|
+
# Request-specific options
|
2763
|
+
#
|
2764
|
+
# @yield [result, err] Result & error if block supplied
|
2765
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListServiceLbPoliciesResponse] parsed result object
|
2766
|
+
# @yieldparam err [StandardError] error object if request failed
|
2767
|
+
#
|
2768
|
+
# @return [Google::Apis::NetworkservicesV1::ListServiceLbPoliciesResponse]
|
2769
|
+
#
|
2770
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2771
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2772
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2773
|
+
def list_project_location_service_lb_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2774
|
+
command = make_simple_command(:get, 'v1/{+parent}/serviceLbPolicies', options)
|
2775
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListServiceLbPoliciesResponse::Representation
|
2776
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListServiceLbPoliciesResponse
|
2777
|
+
command.params['parent'] = parent unless parent.nil?
|
2778
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2779
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2780
|
+
command.query['fields'] = fields unless fields.nil?
|
2781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2782
|
+
execute_or_queue_command(command, &block)
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
# Updates the parameters of a single ServiceLbPolicy.
|
2786
|
+
# @param [String] name
|
2787
|
+
# Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
|
2788
|
+
# project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
|
2789
|
+
# @param [Google::Apis::NetworkservicesV1::ServiceLbPolicy] service_lb_policy_object
|
2790
|
+
# @param [String] update_mask
|
2791
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
2792
|
+
# ServiceLbPolicy resource by the update. The fields specified in the
|
2793
|
+
# update_mask are relative to the resource, not the full request. A field will
|
2794
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
2795
|
+
# all fields will be overwritten.
|
2796
|
+
# @param [String] fields
|
2797
|
+
# Selector specifying which fields to include in a partial response.
|
2798
|
+
# @param [String] quota_user
|
2799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2801
|
+
# @param [Google::Apis::RequestOptions] options
|
2802
|
+
# Request-specific options
|
2803
|
+
#
|
2804
|
+
# @yield [result, err] Result & error if block supplied
|
2805
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
2806
|
+
# @yieldparam err [StandardError] error object if request failed
|
2807
|
+
#
|
2808
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
2809
|
+
#
|
2810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2813
|
+
def patch_project_location_service_lb_policy(name, service_lb_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2814
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2815
|
+
command.request_representation = Google::Apis::NetworkservicesV1::ServiceLbPolicy::Representation
|
2816
|
+
command.request_object = service_lb_policy_object
|
2817
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
2818
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
2819
|
+
command.params['name'] = name unless name.nil?
|
2820
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2821
|
+
command.query['fields'] = fields unless fields.nil?
|
2822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2823
|
+
execute_or_queue_command(command, &block)
|
2824
|
+
end
|
2825
|
+
|
2826
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2827
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2828
|
+
# PERMISSION_DENIED` errors.
|
2829
|
+
# @param [String] resource
|
2830
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2831
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2832
|
+
# appropriate value for this field.
|
2833
|
+
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
2834
|
+
# @param [String] fields
|
2835
|
+
# Selector specifying which fields to include in a partial response.
|
2836
|
+
# @param [String] quota_user
|
2837
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2838
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2839
|
+
# @param [Google::Apis::RequestOptions] options
|
2840
|
+
# Request-specific options
|
2841
|
+
#
|
2842
|
+
# @yield [result, err] Result & error if block supplied
|
2843
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
2844
|
+
# @yieldparam err [StandardError] error object if request failed
|
2845
|
+
#
|
2846
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
2847
|
+
#
|
2848
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2849
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2850
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2851
|
+
def set_service_lb_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2852
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
2853
|
+
command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
|
2854
|
+
command.request_object = set_iam_policy_request_object
|
2855
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
2856
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
2857
|
+
command.params['resource'] = resource unless resource.nil?
|
2858
|
+
command.query['fields'] = fields unless fields.nil?
|
2859
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2860
|
+
execute_or_queue_command(command, &block)
|
2861
|
+
end
|
2862
|
+
|
2863
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2864
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2865
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2866
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2867
|
+
# This operation may "fail open" without warning.
|
2868
|
+
# @param [String] resource
|
2869
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2870
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2871
|
+
# appropriate value for this field.
|
2872
|
+
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2873
|
+
# @param [String] fields
|
2874
|
+
# Selector specifying which fields to include in a partial response.
|
2875
|
+
# @param [String] quota_user
|
2876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2878
|
+
# @param [Google::Apis::RequestOptions] options
|
2879
|
+
# Request-specific options
|
2880
|
+
#
|
2881
|
+
# @yield [result, err] Result & error if block supplied
|
2882
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
|
2883
|
+
# @yieldparam err [StandardError] error object if request failed
|
2884
|
+
#
|
2885
|
+
# @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
|
2886
|
+
#
|
2887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2890
|
+
def test_service_lb_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2891
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
2892
|
+
command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
|
2893
|
+
command.request_object = test_iam_permissions_request_object
|
2894
|
+
command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
|
2895
|
+
command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
|
2896
|
+
command.params['resource'] = resource unless resource.nil?
|
2897
|
+
command.query['fields'] = fields unless fields.nil?
|
2898
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2899
|
+
execute_or_queue_command(command, &block)
|
2900
|
+
end
|
2901
|
+
|
2152
2902
|
# Creates a new TcpRoute in a given project and location.
|
2153
2903
|
# @param [String] parent
|
2154
2904
|
# Required. The parent resource of the TcpRoute. Must be in the format `projects/
|