# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::DepService::Rest::Client (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::DepService::Rest::Client.

REST client for the DepService service.


<br />

Service describing handlers for resources.

## Inherits

- Object

## Includes

- [Google::Cloud::NetworkServices::V1::DepService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the DepService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration "Google::Cloud::NetworkServices::V1::DepService::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all DepService clients
::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the DepService Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client#Google__Cloud__NetworkServices__V1__DepService__Rest__Client_configure_class_ "Google::Cloud::NetworkServices::V1::DepService::Rest::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration "Google::Cloud::NetworkServices::V1::DepService::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration))

### #create_authz_extension

    def create_authz_extension(request, options = nil) -> ::Gapic::Operation
    def create_authz_extension(parent: nil, authz_extension_id: nil, authz_extension: nil, request_id: nil) -> ::Gapic::Operation

Creates a new `AuthzExtension` resource in a given project
and location.
**Overloads**

    def create_authz_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_authz_extension` via a request object, either of type [CreateAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateAuthzExtensionRequest "Google::Cloud::NetworkServices::V1::CreateAuthzExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::CreateAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateAuthzExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_authz_extension(parent: nil, authz_extension_id: nil, authz_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `create_authz_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent resource of the `AuthzExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
- **authz_extension_id** (::String) --- Required. User-provided ID of the `AuthzExtension` resource to be created.
- **authz_extension** ([::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension), ::Hash) --- Required. `AuthzExtension` resource to be created.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::CreateAuthzExtensionRequest.new

# Call the create_authz_extension method.
result = client.create_authz_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #create_lb_edge_extension

    def create_lb_edge_extension(request, options = nil) -> ::Gapic::Operation
    def create_lb_edge_extension(parent: nil, lb_edge_extension_id: nil, lb_edge_extension: nil, request_id: nil) -> ::Gapic::Operation

Creates a new `LbEdgeExtension` resource in a given project and location.
**Overloads**

    def create_lb_edge_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_lb_edge_extension` via a request object, either of type [CreateLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbEdgeExtensionRequest "Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbEdgeExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_lb_edge_extension(parent: nil, lb_edge_extension_id: nil, lb_edge_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `create_lb_edge_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
- **lb_edge_extension_id** (::String) --- Required. User-provided ID of the `LbEdgeExtension` resource to be created.
- **lb_edge_extension** ([::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension), ::Hash) --- Required. `LbEdgeExtension` resource to be created.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::CreateLbEdgeExtensionRequest.new

# Call the create_lb_edge_extension method.
result = client.create_lb_edge_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #create_lb_route_extension

    def create_lb_route_extension(request, options = nil) -> ::Gapic::Operation
    def create_lb_route_extension(parent: nil, lb_route_extension_id: nil, lb_route_extension: nil, request_id: nil) -> ::Gapic::Operation

Creates a new `LbRouteExtension` resource in a given project and location.
**Overloads**

    def create_lb_route_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_lb_route_extension` via a request object, either of type [CreateLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbRouteExtensionRequest "Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbRouteExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_lb_route_extension(parent: nil, lb_route_extension_id: nil, lb_route_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `create_lb_route_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
- **lb_route_extension_id** (::String) --- Required. User-provided ID of the `LbRouteExtension` resource to be created.
- **lb_route_extension** ([::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension), ::Hash) --- Required. `LbRouteExtension` resource to be created.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::CreateLbRouteExtensionRequest.new

# Call the create_lb_route_extension method.
result = client.create_lb_route_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #create_lb_traffic_extension

    def create_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation
    def create_lb_traffic_extension(parent: nil, lb_traffic_extension_id: nil, lb_traffic_extension: nil, request_id: nil) -> ::Gapic::Operation

Creates a new `LbTrafficExtension` resource in a given project and
location.
**Overloads**

    def create_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_lb_traffic_extension` via a request object, either of type [CreateLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbTrafficExtensionRequest "Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateLbTrafficExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_lb_traffic_extension(parent: nil, lb_traffic_extension_id: nil, lb_traffic_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `create_lb_traffic_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
- **lb_traffic_extension_id** (::String) --- Required. User-provided ID of the `LbTrafficExtension` resource to be created.
- **lb_traffic_extension** ([::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension), ::Hash) --- Required. `LbTrafficExtension` resource to be created.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::CreateLbTrafficExtensionRequest.new

# Call the create_lb_traffic_extension method.
result = client.create_lb_traffic_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_authz_extension

    def delete_authz_extension(request, options = nil) -> ::Gapic::Operation
    def delete_authz_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Deletes the specified `AuthzExtension` resource.
**Overloads**

    def delete_authz_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_authz_extension` via a request object, either of type [Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteAuthzExtensionRequest "Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteAuthzExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_authz_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `delete_authz_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the `AuthzExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest.new

# Call the delete_authz_extension method.
result = client.delete_authz_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_lb_edge_extension

    def delete_lb_edge_extension(request, options = nil) -> ::Gapic::Operation
    def delete_lb_edge_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Deletes the specified `LbEdgeExtension` resource.
**Overloads**

    def delete_lb_edge_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_edge_extension` via a request object, either of type [Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbEdgeExtensionRequest "Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbEdgeExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_lb_edge_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_edge_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::DeleteLbEdgeExtensionRequest.new

# Call the delete_lb_edge_extension method.
result = client.delete_lb_edge_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_lb_route_extension

    def delete_lb_route_extension(request, options = nil) -> ::Gapic::Operation
    def delete_lb_route_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Deletes the specified `LbRouteExtension` resource.
**Overloads**

    def delete_lb_route_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_route_extension` via a request object, either of type [Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbRouteExtensionRequest "Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbRouteExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_lb_route_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_route_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the `LbRouteExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::DeleteLbRouteExtensionRequest.new

# Call the delete_lb_route_extension method.
result = client.delete_lb_route_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_lb_traffic_extension

    def delete_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation
    def delete_lb_traffic_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Deletes the specified `LbTrafficExtension` resource.
**Overloads**

    def delete_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_traffic_extension` via a request object, either of type [Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbTrafficExtensionRequest "Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteLbTrafficExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_lb_traffic_extension(name: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `delete_lb_traffic_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::DeleteLbTrafficExtensionRequest.new

# Call the delete_lb_traffic_extension method.
result = client.delete_lb_traffic_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #get_authz_extension

    def get_authz_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::AuthzExtension
    def get_authz_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::AuthzExtension

Gets details of the specified `AuthzExtension` resource.
**Overloads**

    def get_authz_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::AuthzExtension

Pass arguments to `get_authz_extension` via a request object, either of type [GetAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetAuthzExtensionRequest "Google::Cloud::NetworkServices::V1::GetAuthzExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::GetAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetAuthzExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_authz_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::AuthzExtension

Pass arguments to `get_authz_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. A name of the `AuthzExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::GetAuthzExtensionRequest.new

# Call the get_authz_extension method.
result = client.get_authz_extension request

# The returned object is of type Google::Cloud::NetworkServices::V1::AuthzExtension.
p result
```

### #get_lb_edge_extension

    def get_lb_edge_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbEdgeExtension
    def get_lb_edge_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbEdgeExtension

Gets details of the specified `LbEdgeExtension` resource.
**Overloads**

    def get_lb_edge_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbEdgeExtension

Pass arguments to `get_lb_edge_extension` via a request object, either of type [GetLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbEdgeExtensionRequest "Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbEdgeExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_lb_edge_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbEdgeExtension

Pass arguments to `get_lb_edge_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. A name of the `LbEdgeExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::GetLbEdgeExtensionRequest.new

# Call the get_lb_edge_extension method.
result = client.get_lb_edge_extension request

# The returned object is of type Google::Cloud::NetworkServices::V1::LbEdgeExtension.
p result
```

### #get_lb_route_extension

    def get_lb_route_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbRouteExtension
    def get_lb_route_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbRouteExtension

Gets details of the specified `LbRouteExtension` resource.
**Overloads**

    def get_lb_route_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbRouteExtension

Pass arguments to `get_lb_route_extension` via a request object, either of type [GetLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbRouteExtensionRequest "Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbRouteExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_lb_route_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbRouteExtension

Pass arguments to `get_lb_route_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. A name of the `LbRouteExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::GetLbRouteExtensionRequest.new

# Call the get_lb_route_extension method.
result = client.get_lb_route_extension request

# The returned object is of type Google::Cloud::NetworkServices::V1::LbRouteExtension.
p result
```

### #get_lb_traffic_extension

    def get_lb_traffic_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbTrafficExtension
    def get_lb_traffic_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbTrafficExtension

Gets details of the specified `LbTrafficExtension` resource.
**Overloads**

    def get_lb_traffic_extension(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::LbTrafficExtension

Pass arguments to `get_lb_traffic_extension` via a request object, either of type [GetLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbTrafficExtensionRequest "Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetLbTrafficExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_lb_traffic_extension(name: nil) -> ::Google::Cloud::NetworkServices::V1::LbTrafficExtension

Pass arguments to `get_lb_traffic_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. A name of the `LbTrafficExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::GetLbTrafficExtensionRequest.new

# Call the get_lb_traffic_extension method.
result = client.get_lb_traffic_extension request

# The returned object is of type Google::Cloud::NetworkServices::V1::LbTrafficExtension.
p result
```

### #iam_policy_client

    def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::Client

Get the associated client for mix-in of the IAMPolicy.
**Returns**

- (Google::Iam::V1::IAMPolicy::Rest::Client)

### #initialize

    def initialize() { |config| ... } -> Client

Create a new DepService REST client object.
**Yields**

- (config) --- Configure the DepService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_authz_extensions

    def list_authz_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AuthzExtension>
    def list_authz_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AuthzExtension>

Lists `AuthzExtension` resources in a given project and location.
**Overloads**

    def list_authz_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AuthzExtension>

Pass arguments to `list_authz_extensions` via a request object, either of type [ListAuthzExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListAuthzExtensionsRequest "Google::Cloud::NetworkServices::V1::ListAuthzExtensionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListAuthzExtensionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_authz_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AuthzExtension>

Pass arguments to `list_authz_extensions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The project and location from which the `AuthzExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`.
- **page_size** (::Integer) --- Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
- **page_token** (::String) --- Optional. A token identifying a page of results that the server returns.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint about how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::ListAuthzExtensionsRequest.new

# Call the list_authz_extensions method.
result = client.list_authz_extensions request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::NetworkServices::V1::AuthzExtension.
  p item
end
```

### #list_lb_edge_extensions

    def list_lb_edge_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>
    def list_lb_edge_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>

Lists `LbEdgeExtension` resources in a given project and location.
**Overloads**

    def list_lb_edge_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>

Pass arguments to `list_lb_edge_extensions` via a request object, either of type [ListLbEdgeExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbEdgeExtensionsRequest "Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbEdgeExtensionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_lb_edge_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbEdgeExtension>

Pass arguments to `list_lb_edge_extensions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The project and location from which the `LbEdgeExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`.
- **page_size** (::Integer) --- Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
- **page_token** (::String) --- Optional. A token identifying a page of results that the server returns.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint about how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::ListLbEdgeExtensionsRequest.new

# Call the list_lb_edge_extensions method.
result = client.list_lb_edge_extensions request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::NetworkServices::V1::LbEdgeExtension.
  p item
end
```

### #list_lb_route_extensions

    def list_lb_route_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbRouteExtension>
    def list_lb_route_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbRouteExtension>

Lists `LbRouteExtension` resources in a given project and location.
**Overloads**

    def list_lb_route_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbRouteExtension>

Pass arguments to `list_lb_route_extensions` via a request object, either of type [ListLbRouteExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbRouteExtensionsRequest "Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbRouteExtensionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_lb_route_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbRouteExtension>

Pass arguments to `list_lb_route_extensions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The project and location from which the `LbRouteExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`.
- **page_size** (::Integer) --- Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
- **page_token** (::String) --- Optional. A token identifying a page of results that the server returns.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint about how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::ListLbRouteExtensionsRequest.new

# Call the list_lb_route_extensions method.
result = client.list_lb_route_extensions request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::NetworkServices::V1::LbRouteExtension.
  p item
end
```

### #list_lb_traffic_extensions

    def list_lb_traffic_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbTrafficExtension>
    def list_lb_traffic_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbTrafficExtension>

Lists `LbTrafficExtension` resources in a given project and location.
**Overloads**

    def list_lb_traffic_extensions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbTrafficExtension>

Pass arguments to `list_lb_traffic_extensions` via a request object, either of type [ListLbTrafficExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbTrafficExtensionsRequest "Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListLbTrafficExtensionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_lb_traffic_extensions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::LbTrafficExtension>

Pass arguments to `list_lb_traffic_extensions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The project and location from which the `LbTrafficExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`.
- **page_size** (::Integer) --- Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
- **page_token** (::String) --- Optional. A token identifying a page of results that the server returns.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint about how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::ListLbTrafficExtensionsRequest.new

# Call the list_lb_traffic_extensions method.
result = client.list_lb_traffic_extensions request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::NetworkServices::V1::LbTrafficExtension.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Rest::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Rest::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #operations_client

    def operations_client() -> ::Google::Cloud::NetworkServices::V1::DepService::Rest::Operations

Get the associated client for long-running operations.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::DepService::Rest::Operations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DepService-Rest-Operations))

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_authz_extension

    def update_authz_extension(request, options = nil) -> ::Gapic::Operation
    def update_authz_extension(update_mask: nil, authz_extension: nil, request_id: nil) -> ::Gapic::Operation

Updates the parameters of the specified `AuthzExtension`
resource.
**Overloads**

    def update_authz_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `update_authz_extension` via a request object, either of type [UpdateAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateAuthzExtensionRequest "Google::Cloud::NetworkServices::V1::UpdateAuthzExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateAuthzExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateAuthzExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_authz_extension(update_mask: nil, authz_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `update_authz_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- Required. Used to specify the fields to be overwritten in the `AuthzExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
- **authz_extension** ([::Google::Cloud::NetworkServices::V1::AuthzExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AuthzExtension), ::Hash) --- Required. `AuthzExtension` resource being updated.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::UpdateAuthzExtensionRequest.new

# Call the update_authz_extension method.
result = client.update_authz_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #update_lb_edge_extension

    def update_lb_edge_extension(request, options = nil) -> ::Gapic::Operation
    def update_lb_edge_extension(update_mask: nil, lb_edge_extension: nil, request_id: nil) -> ::Gapic::Operation

Updates the parameters of the specified `LbEdgeExtension` resource.
**Overloads**

    def update_lb_edge_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `update_lb_edge_extension` via a request object, either of type [UpdateLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbEdgeExtensionRequest "Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbEdgeExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_lb_edge_extension(update_mask: nil, lb_edge_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `update_lb_edge_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
- **lb_edge_extension** ([::Google::Cloud::NetworkServices::V1::LbEdgeExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbEdgeExtension), ::Hash) --- Required. `LbEdgeExtension` resource being updated.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::UpdateLbEdgeExtensionRequest.new

# Call the update_lb_edge_extension method.
result = client.update_lb_edge_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #update_lb_route_extension

    def update_lb_route_extension(request, options = nil) -> ::Gapic::Operation
    def update_lb_route_extension(update_mask: nil, lb_route_extension: nil, request_id: nil) -> ::Gapic::Operation

Updates the parameters of the specified `LbRouteExtension` resource.
**Overloads**

    def update_lb_route_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `update_lb_route_extension` via a request object, either of type [UpdateLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbRouteExtensionRequest "Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbRouteExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_lb_route_extension(update_mask: nil, lb_route_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `update_lb_route_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
- **lb_route_extension** ([::Google::Cloud::NetworkServices::V1::LbRouteExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbRouteExtension), ::Hash) --- Required. `LbRouteExtension` resource being updated.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::UpdateLbRouteExtensionRequest.new

# Call the update_lb_route_extension method.
result = client.update_lb_route_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #update_lb_traffic_extension

    def update_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation
    def update_lb_traffic_extension(update_mask: nil, lb_traffic_extension: nil, request_id: nil) -> ::Gapic::Operation

Updates the parameters of the specified `LbTrafficExtension` resource.
**Overloads**

    def update_lb_traffic_extension(request, options = nil) -> ::Gapic::Operation

Pass arguments to `update_lb_traffic_extension` via a request object, either of type [UpdateLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbTrafficExtensionRequest "Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateLbTrafficExtensionRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_lb_traffic_extension(update_mask: nil, lb_traffic_extension: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `update_lb_traffic_extension` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
- **lb_traffic_extension** ([::Google::Cloud::NetworkServices::V1::LbTrafficExtension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-LbTrafficExtension), ::Hash) --- Required. `LbTrafficExtension` resource being updated.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request.


  For example, consider a situation where you make an initial request and the
  request times out. If you make the request again with the same request
  ID, the server ignores the second request This prevents
  clients from accidentally creating duplicate commitments.

  The request ID must be a valid UUID with the exception that zero UUID is
  not supported (00000000-0000-0000-0000-000000000000).
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Operation)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/network_services/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::NetworkServices::V1::DepService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::NetworkServices::V1::UpdateLbTrafficExtensionRequest.new

# Call the update_lb_traffic_extension method.
result = client.update_lb_traffic_extension request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```