# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::NetworkServices::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::NetworkServices::Rest::Client.

REST client for the NetworkServices service.


<br />

Service describing handlers for resources.

## Inherits

- Object

## Includes

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

## Methods

### .configure

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

Configure the NetworkServices Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-NetworkServices-Rest-Client-Configuration "Google::Cloud::NetworkServices::V1::NetworkServices::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-NetworkServices-Rest-Client-Configuration))
**Returns**

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

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

### #configure

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

Configure the NetworkServices 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-NetworkServices-Rest-Client#Google__Cloud__NetworkServices__V1__NetworkServices__Rest__Client_configure_class_ "Google::Cloud::NetworkServices::V1::NetworkServices::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-NetworkServices-Rest-Client-Configuration "Google::Cloud::NetworkServices::V1::NetworkServices::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-NetworkServices-Rest-Client-Configuration))
**Returns**

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

### #create_agent_gateway

    def create_agent_gateway(request, options = nil) -> ::Gapic::Operation
    def create_agent_gateway(parent: nil, agent_gateway_id: nil, agent_gateway: nil) -> ::Gapic::Operation

Creates a new AgentGateway in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateAgentGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateAgentGatewayRequest), ::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_agent_gateway(parent: nil, agent_gateway_id: nil, agent_gateway: nil) -> ::Gapic::Operation

Pass arguments to `create_agent_gateway` 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 AgentGateway. Must be in the format `projects/*/locations/*`.
- **agent_gateway_id** (::String) --- Required. Short name of the AgentGateway resource to be created.
- **agent_gateway** ([::Google::Cloud::NetworkServices::V1::AgentGateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway), ::Hash) --- Required. AgentGateway resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_agent_gateway method.
result = client.create_agent_gateway 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_endpoint_policy

    def create_endpoint_policy(request, options = nil) -> ::Gapic::Operation
    def create_endpoint_policy(parent: nil, endpoint_policy_id: nil, endpoint_policy: nil) -> ::Gapic::Operation

Creates a new EndpointPolicy in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateEndpointPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateEndpointPolicyRequest), ::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_endpoint_policy(parent: nil, endpoint_policy_id: nil, endpoint_policy: nil) -> ::Gapic::Operation

Pass arguments to `create_endpoint_policy` 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 EndpointPolicy. Must be in the format `projects/*/locations/*`.
- **endpoint_policy_id** (::String) --- Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".
- **endpoint_policy** ([::Google::Cloud::NetworkServices::V1::EndpointPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-EndpointPolicy), ::Hash) --- Required. EndpointPolicy resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_endpoint_policy method.
result = client.create_endpoint_policy 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_gateway

    def create_gateway(request, options = nil) -> ::Gapic::Operation
    def create_gateway(parent: nil, gateway_id: nil, gateway: nil) -> ::Gapic::Operation

Creates a new Gateway in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateGatewayRequest), ::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_gateway(parent: nil, gateway_id: nil, gateway: nil) -> ::Gapic::Operation

Pass arguments to `create_gateway` 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 Gateway. Must be in the format `projects/*/locations/*`.
- **gateway_id** (::String) --- Required. Short name of the Gateway resource to be created.
- **gateway** ([::Google::Cloud::NetworkServices::V1::Gateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Gateway), ::Hash) --- Required. Gateway resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_gateway method.
result = client.create_gateway 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_grpc_route

    def create_grpc_route(request, options = nil) -> ::Gapic::Operation
    def create_grpc_route(parent: nil, grpc_route_id: nil, grpc_route: nil) -> ::Gapic::Operation

Creates a new GrpcRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateGrpcRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateGrpcRouteRequest), ::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_grpc_route(parent: nil, grpc_route_id: nil, grpc_route: nil) -> ::Gapic::Operation

Pass arguments to `create_grpc_route` 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 GrpcRoute. Must be in the format `projects/*/locations/*`.
- **grpc_route_id** (::String) --- Required. Short name of the GrpcRoute resource to be created.
- **grpc_route** ([::Google::Cloud::NetworkServices::V1::GrpcRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute), ::Hash) --- Required. GrpcRoute resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_grpc_route method.
result = client.create_grpc_route 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_http_route

    def create_http_route(request, options = nil) -> ::Gapic::Operation
    def create_http_route(parent: nil, http_route_id: nil, http_route: nil, request_id: nil) -> ::Gapic::Operation

Creates a new HttpRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateHttpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateHttpRouteRequest), ::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_http_route(parent: nil, http_route_id: nil, http_route: nil, request_id: nil) -> ::Gapic::Operation

Pass arguments to `create_http_route` 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 HttpRoute. Must be in the format `projects/*/locations/*`.
- **http_route_id** (::String) --- Required. Short name of the HttpRoute resource to be created.
- **http_route** ([::Google::Cloud::NetworkServices::V1::HttpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute), ::Hash) --- Required. HttpRoute resource to be created.
- **request_id** (::String) --- Optional. Idempotent request UUID.
**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::NetworkServices::Rest::Client.new

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

# Call the create_http_route method.
result = client.create_http_route 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_mesh

    def create_mesh(request, options = nil) -> ::Gapic::Operation
    def create_mesh(parent: nil, mesh_id: nil, mesh: nil) -> ::Gapic::Operation

Creates a new Mesh in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateMeshRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateMeshRequest), ::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_mesh(parent: nil, mesh_id: nil, mesh: nil) -> ::Gapic::Operation

Pass arguments to `create_mesh` 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 Mesh. Must be in the format `projects/*/locations/*`.
- **mesh_id** (::String) --- Required. Short name of the Mesh resource to be created.
- **mesh** ([::Google::Cloud::NetworkServices::V1::Mesh](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Mesh), ::Hash) --- Required. Mesh resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_mesh method.
result = client.create_mesh 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_service_binding

    def create_service_binding(request, options = nil) -> ::Gapic::Operation
    def create_service_binding(parent: nil, service_binding_id: nil, service_binding: nil) -> ::Gapic::Operation

Creates a new ServiceBinding in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateServiceBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateServiceBindingRequest), ::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_service_binding(parent: nil, service_binding_id: nil, service_binding: nil) -> ::Gapic::Operation

Pass arguments to `create_service_binding` 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 ServiceBinding. Must be in the format `projects/*/locations/*`.
- **service_binding_id** (::String) --- Required. Short name of the ServiceBinding resource to be created.
- **service_binding** ([::Google::Cloud::NetworkServices::V1::ServiceBinding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceBinding), ::Hash) --- Required. ServiceBinding resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_service_binding method.
result = client.create_service_binding 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_service_lb_policy

    def create_service_lb_policy(request, options = nil) -> ::Gapic::Operation
    def create_service_lb_policy(parent: nil, service_lb_policy_id: nil, service_lb_policy: nil) -> ::Gapic::Operation

Creates a new ServiceLbPolicy in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateServiceLbPolicyRequest), ::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_service_lb_policy(parent: nil, service_lb_policy_id: nil, service_lb_policy: nil) -> ::Gapic::Operation

Pass arguments to `create_service_lb_policy` 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 ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`.
- **service_lb_policy_id** (::String) --- Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name}
- **service_lb_policy** ([::Google::Cloud::NetworkServices::V1::ServiceLbPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceLbPolicy), ::Hash) --- Required. ServiceLbPolicy resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_service_lb_policy method.
result = client.create_service_lb_policy 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_tcp_route

    def create_tcp_route(request, options = nil) -> ::Gapic::Operation
    def create_tcp_route(parent: nil, tcp_route_id: nil, tcp_route: nil) -> ::Gapic::Operation

Creates a new TcpRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateTcpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateTcpRouteRequest), ::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_tcp_route(parent: nil, tcp_route_id: nil, tcp_route: nil) -> ::Gapic::Operation

Pass arguments to `create_tcp_route` 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 TcpRoute. Must be in the format `projects/*/locations/*`.
- **tcp_route_id** (::String) --- Required. Short name of the TcpRoute resource to be created.
- **tcp_route** ([::Google::Cloud::NetworkServices::V1::TcpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TcpRoute), ::Hash) --- Required. TcpRoute resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_tcp_route method.
result = client.create_tcp_route 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_tls_route

    def create_tls_route(request, options = nil) -> ::Gapic::Operation
    def create_tls_route(parent: nil, tls_route_id: nil, tls_route: nil) -> ::Gapic::Operation

Creates a new TlsRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateTlsRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateTlsRouteRequest), ::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_tls_route(parent: nil, tls_route_id: nil, tls_route: nil) -> ::Gapic::Operation

Pass arguments to `create_tls_route` 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 TlsRoute. Must be in the format `projects/*/locations/*`.
- **tls_route_id** (::String) --- Required. Short name of the TlsRoute resource to be created.
- **tls_route** ([::Google::Cloud::NetworkServices::V1::TlsRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute), ::Hash) --- Required. TlsRoute resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_tls_route method.
result = client.create_tls_route 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_wasm_plugin

    def create_wasm_plugin(request, options = nil) -> ::Gapic::Operation
    def create_wasm_plugin(parent: nil, wasm_plugin_id: nil, wasm_plugin: nil) -> ::Gapic::Operation

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateWasmPluginRequest), ::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_wasm_plugin(parent: nil, wasm_plugin_id: nil, wasm_plugin: nil) -> ::Gapic::Operation

Pass arguments to `create_wasm_plugin` 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 `WasmPlugin` resource. Must be in the format `projects/{project}/locations/global`.
- **wasm_plugin_id** (::String) --- Required. User-provided ID of the `WasmPlugin` resource to be created.
- **wasm_plugin** ([::Google::Cloud::NetworkServices::V1::WasmPlugin](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin), ::Hash) --- Required. `WasmPlugin` resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_wasm_plugin method.
result = client.create_wasm_plugin 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_wasm_plugin_version

    def create_wasm_plugin_version(request, options = nil) -> ::Gapic::Operation
    def create_wasm_plugin_version(parent: nil, wasm_plugin_version_id: nil, wasm_plugin_version: nil) -> ::Gapic::Operation

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-CreateWasmPluginVersionRequest), ::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_wasm_plugin_version(parent: nil, wasm_plugin_version_id: nil, wasm_plugin_version: nil) -> ::Gapic::Operation

Pass arguments to `create_wasm_plugin_version` 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 `WasmPluginVersion` resource. Must be in the format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
- **wasm_plugin_version_id** (::String) --- Required. User-provided ID of the `WasmPluginVersion` resource to be created.
- **wasm_plugin_version** ([::Google::Cloud::NetworkServices::V1::WasmPluginVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPluginVersion), ::Hash) --- Required. `WasmPluginVersion` resource to be created.
**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::NetworkServices::Rest::Client.new

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

# Call the create_wasm_plugin_version method.
result = client.create_wasm_plugin_version 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_agent_gateway

    def delete_agent_gateway(request, options = nil) -> ::Gapic::Operation
    def delete_agent_gateway(name: nil, etag: nil) -> ::Gapic::Operation

Deletes a single AgentGateway.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteAgentGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteAgentGatewayRequest), ::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_agent_gateway(name: nil, etag: nil) -> ::Gapic::Operation

Pass arguments to `delete_agent_gateway` 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. A name of the AgentGateway to delete. Must be in the format `projects/*/locations/*/agentGateways/*`.
- **etag** (::String) --- Optional. The etag of the AgentGateway to delete.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_agent_gateway method.
result = client.delete_agent_gateway 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_endpoint_policy

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

Deletes a single EndpointPolicy.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteEndpointPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteEndpointPolicyRequest), ::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_endpoint_policy(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_endpoint_policy` 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 EndpointPolicy to delete. Must be in the format `projects/*/locations/*/endpointPolicies/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_endpoint_policy method.
result = client.delete_endpoint_policy 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_gateway

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

Deletes a single Gateway.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteGatewayRequest), ::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_gateway(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_gateway` 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 Gateway to delete. Must be in the format `projects/*/locations/*/gateways/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_gateway method.
result = client.delete_gateway 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_grpc_route

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

Deletes a single GrpcRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteGrpcRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteGrpcRouteRequest), ::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_grpc_route(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_grpc_route` 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 GrpcRoute to delete. Must be in the format `projects/*/locations/*/grpcRoutes/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_grpc_route method.
result = client.delete_grpc_route 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_http_route

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

Deletes a single HttpRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteHttpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteHttpRouteRequest), ::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_http_route(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_http_route` 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 HttpRoute to delete. Must be in the format `projects/*/locations/*/httpRoutes/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_http_route method.
result = client.delete_http_route 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_mesh

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

Deletes a single Mesh.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteMeshRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteMeshRequest), ::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_mesh(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_mesh` 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 Mesh to delete. Must be in the format `projects/*/locations/*/meshes/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_mesh method.
result = client.delete_mesh 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_service_binding

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

Deletes a single ServiceBinding.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteServiceBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteServiceBindingRequest), ::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_service_binding(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_service_binding` 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 ServiceBinding to delete. Must be in the format `projects/*/locations/*/serviceBindings/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_service_binding method.
result = client.delete_service_binding 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_service_lb_policy

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

Deletes a single ServiceLbPolicy.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteServiceLbPolicyRequest), ::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_service_lb_policy(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_service_lb_policy` 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 ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_service_lb_policy method.
result = client.delete_service_lb_policy 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_tcp_route

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

Deletes a single TcpRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteTcpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteTcpRouteRequest), ::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_tcp_route(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_tcp_route` 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 TcpRoute to delete. Must be in the format `projects/*/locations/*/tcpRoutes/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_tcp_route method.
result = client.delete_tcp_route 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_tls_route

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

Deletes a single TlsRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteTlsRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteTlsRouteRequest), ::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_tls_route(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_tls_route` 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 TlsRoute to delete. Must be in the format `projects/*/locations/*/tlsRoutes/*`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_tls_route method.
result = client.delete_tls_route 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_wasm_plugin

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

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteWasmPluginRequest), ::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_wasm_plugin(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_wasm_plugin` 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 `WasmPlugin` resource to delete. Must be in the format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_wasm_plugin method.
result = client.delete_wasm_plugin 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_wasm_plugin_version

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

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-DeleteWasmPluginVersionRequest), ::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_wasm_plugin_version(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_wasm_plugin_version` 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 `WasmPluginVersion` resource to delete. Must be in the format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
**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::NetworkServices::Rest::Client.new

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

# Call the delete_wasm_plugin_version method.
result = client.delete_wasm_plugin_version 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_agent_gateway

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

Gets details of a single AgentGateway.
**Overloads**

    def get_agent_gateway(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::AgentGateway

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetAgentGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetAgentGatewayRequest), ::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_agent_gateway(name: nil) -> ::Google::Cloud::NetworkServices::V1::AgentGateway

Pass arguments to `get_agent_gateway` 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 AgentGateway to get. Must be in the format `projects/*/locations/*/agentGateways/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::AgentGateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_endpoint_policy

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

Gets details of a single EndpointPolicy.
**Overloads**

    def get_endpoint_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicy

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetEndpointPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetEndpointPolicyRequest), ::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_endpoint_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicy

Pass arguments to `get_endpoint_policy` 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 EndpointPolicy to get. Must be in the format `projects/*/locations/*/endpointPolicies/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::EndpointPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-EndpointPolicy))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_gateway

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

Gets details of a single Gateway.
**Overloads**

    def get_gateway(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Gateway

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetGatewayRequest), ::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_gateway(name: nil) -> ::Google::Cloud::NetworkServices::V1::Gateway

Pass arguments to `get_gateway` 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 Gateway to get. Must be in the format `projects/*/locations/*/gateways/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::Gateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Gateway))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_gateway_route_view

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

Get a single RouteView of a Gateway.
**Overloads**

    def get_gateway_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteView

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetGatewayRouteViewRequest), ::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_gateway_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteView

Pass arguments to `get_gateway_route_view` 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. Name of the GatewayRouteView resource. Formats: projects/{project}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::GatewayRouteView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GatewayRouteView))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_grpc_route

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

Gets details of a single GrpcRoute.
**Overloads**

    def get_grpc_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetGrpcRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetGrpcRouteRequest), ::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_grpc_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute

Pass arguments to `get_grpc_route` 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 GrpcRoute to get. Must be in the format `projects/*/locations/*/grpcRoutes/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::GrpcRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_http_route

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

Gets details of a single HttpRoute.
**Overloads**

    def get_http_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::HttpRoute

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetHttpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetHttpRouteRequest), ::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_http_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::HttpRoute

Pass arguments to `get_http_route` 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 HttpRoute to get. Must be in the format `projects/*/locations/*/httpRoutes/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::HttpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_mesh

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

Gets details of a single Mesh.
**Overloads**

    def get_mesh(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Mesh

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetMeshRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetMeshRequest), ::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_mesh(name: nil) -> ::Google::Cloud::NetworkServices::V1::Mesh

Pass arguments to `get_mesh` 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 Mesh to get. Must be in the format `projects/*/locations/*/meshes/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::Mesh](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Mesh))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_mesh_route_view

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

Get a single RouteView of a Mesh.
**Overloads**

    def get_mesh_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteView

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetMeshRouteViewRequest), ::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_mesh_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteView

Pass arguments to `get_mesh_route_view` 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. Name of the MeshRouteView resource. Format: projects/{project}/locations/{location}/meshes/{mesh}/routeViews/{route_view}
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::MeshRouteView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-MeshRouteView))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_service_binding

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

Gets details of a single ServiceBinding.
**Overloads**

    def get_service_binding(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBinding

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetServiceBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetServiceBindingRequest), ::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_service_binding(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBinding

Pass arguments to `get_service_binding` 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 ServiceBinding to get. Must be in the format `projects/*/locations/*/serviceBindings/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::ServiceBinding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceBinding))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_service_lb_policy

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

Gets details of a single ServiceLbPolicy.
**Overloads**

    def get_service_lb_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetServiceLbPolicyRequest), ::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_service_lb_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy

Pass arguments to `get_service_lb_policy` 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 ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::ServiceLbPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceLbPolicy))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_tcp_route

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

Gets details of a single TcpRoute.
**Overloads**

    def get_tcp_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TcpRoute

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetTcpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetTcpRouteRequest), ::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_tcp_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TcpRoute

Pass arguments to `get_tcp_route` 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 TcpRoute to get. Must be in the format `projects/*/locations/*/tcpRoutes/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::TcpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TcpRoute))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_tls_route

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

Gets details of a single TlsRoute.
**Overloads**

    def get_tls_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TlsRoute

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetTlsRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetTlsRouteRequest), ::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_tls_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TlsRoute

Pass arguments to `get_tls_route` 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 TlsRoute to get. Must be in the format `projects/*/locations/*/tlsRoutes/*`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::TlsRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_wasm_plugin

    def get_wasm_plugin(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin
    def get_wasm_plugin(name: nil, view: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin

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

    def get_wasm_plugin(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetWasmPluginRequest), ::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_wasm_plugin(name: nil, view: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin

Pass arguments to `get_wasm_plugin` 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. A name of the `WasmPlugin` resource to get. Must be in the format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
- **view** ([::Google::Cloud::NetworkServices::V1::WasmPluginView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPluginView)) --- Determines how much data must be returned in the response. See [AIP-157](https://google.aip.dev/157).
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::WasmPlugin](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin))
**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::NetworkServices::Rest::Client.new

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

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

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

### #get_wasm_plugin_version

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

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

    def get_wasm_plugin_version(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersion

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

- **request** ([::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GetWasmPluginVersionRequest), ::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_wasm_plugin_version(name: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersion

Pass arguments to `get_wasm_plugin_version` 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 `WasmPluginVersion` resource to get. Must be in the format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
**Yields**

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

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

- ([::Google::Cloud::NetworkServices::V1::WasmPluginVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPluginVersion))
**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::NetworkServices::Rest::Client.new

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

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

# The returned object is of type Google::Cloud::NetworkServices::V1::WasmPluginVersion.
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 NetworkServices REST client object.
**Yields**

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

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

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

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

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

### #list_agent_gateways

    def list_agent_gateways(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AgentGateway>
    def list_agent_gateways(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AgentGateway>

Lists AgentGateways in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListAgentGatewaysRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListAgentGatewaysRequest), ::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_agent_gateways(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::AgentGateway>

Pass arguments to `list_agent_gateways` 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 AgentGateways should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Optional. Maximum number of AgentGateways to return per call.
- **page_token** (::String) --- Optional. The value returned by the last `ListAgentGatewaysResponse` Indicates that this is a continuation of a prior `ListAgentGateways` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::AgentGateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_agent_gateways method.
result = client.list_agent_gateways 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::AgentGateway.
  p item
end
```

### #list_endpoint_policies

    def list_endpoint_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>
    def list_endpoint_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>

Lists EndpointPolicies in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListEndpointPoliciesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListEndpointPoliciesRequest), ::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_endpoint_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>

Pass arguments to `list_endpoint_policies` 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 EndpointPolicies should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of EndpointPolicies to return per call.
- **page_token** (::String) --- The value returned by the last `ListEndpointPoliciesResponse` Indicates that this is a continuation of a prior `ListEndpointPolicies` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::EndpointPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-EndpointPolicy)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_endpoint_policies method.
result = client.list_endpoint_policies 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::EndpointPolicy.
  p item
end
```

### #list_gateway_route_views

    def list_gateway_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>
    def list_gateway_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>

Lists RouteViews
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListGatewayRouteViewsRequest), ::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_gateway_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>

Pass arguments to `list_gateway_route_views` 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 Gateway to which a Route is associated. Formats: projects/{project}/locations/{location}/gateways/{gateway}
- **page_size** (::Integer) --- Maximum number of GatewayRouteViews to return per call.
- **page_token** (::String) --- The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next page of data.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::GatewayRouteView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GatewayRouteView)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_gateway_route_views method.
result = client.list_gateway_route_views 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::GatewayRouteView.
  p item
end
```

### #list_gateways

    def list_gateways(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>
    def list_gateways(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>

Lists Gateways in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListGatewaysRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListGatewaysRequest), ::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_gateways(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>

Pass arguments to `list_gateways` 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 Gateways should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of Gateways to return per call.
- **page_token** (::String) --- The value returned by the last `ListGatewaysResponse` Indicates that this is a continuation of a prior `ListGateways` call, and that the system should return the next page of data.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::Gateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Gateway)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_gateways method.
result = client.list_gateways 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::Gateway.
  p item
end
```

### #list_grpc_routes

    def list_grpc_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>
    def list_grpc_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>

Lists GrpcRoutes in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListGrpcRoutesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListGrpcRoutesRequest), ::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_grpc_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>

Pass arguments to `list_grpc_routes` 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 GrpcRoutes should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of GrpcRoutes to return per call.
- **page_token** (::String) --- The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior `ListGrpcRoutes` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::GrpcRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_grpc_routes method.
result = client.list_grpc_routes 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::GrpcRoute.
  p item
end
```

### #list_http_routes

    def list_http_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>
    def list_http_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>

Lists HttpRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListHttpRoutesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListHttpRoutesRequest), ::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_http_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>

Pass arguments to `list_http_routes` 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 HttpRoutes should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of HttpRoutes to return per call.
- **page_token** (::String) --- The value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a prior `ListHttpRoutes` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- **filter** (::String) --- Optional. Filter expression to restrict the list.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::HttpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_http_routes method.
result = client.list_http_routes 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::HttpRoute.
  p item
end
```

### #list_mesh_route_views

    def list_mesh_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>
    def list_mesh_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>

Lists RouteViews
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListMeshRouteViewsRequest), ::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_mesh_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>

Pass arguments to `list_mesh_route_views` 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 Mesh to which a Route is associated. Format: projects/{project}/locations/{location}/meshes/{mesh}
- **page_size** (::Integer) --- Maximum number of MeshRouteViews to return per call.
- **page_token** (::String) --- The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior `ListMeshRouteViews` call, and that the system should return the next page of data.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::MeshRouteView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-MeshRouteView)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_mesh_route_views method.
result = client.list_mesh_route_views 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::MeshRouteView.
  p item
end
```

### #list_meshes

    def list_meshes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>
    def list_meshes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>

Lists Meshes in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListMeshesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListMeshesRequest), ::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_meshes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>

Pass arguments to `list_meshes` 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 Meshes should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of Meshes to return per call.
- **page_token** (::String) --- The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a prior `ListMeshes` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::Mesh](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Mesh)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_meshes method.
result = client.list_meshes 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::Mesh.
  p item
end
```

### #list_service_bindings

    def list_service_bindings(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>
    def list_service_bindings(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>

Lists ServiceBinding in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListServiceBindingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListServiceBindingsRequest), ::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_service_bindings(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>

Pass arguments to `list_service_bindings` 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 ServiceBindings should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of ServiceBindings to return per call.
- **page_token** (::String) --- The value returned by the last `ListServiceBindingsResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::ServiceBinding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceBinding)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_service_bindings method.
result = client.list_service_bindings 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::ServiceBinding.
  p item
end
```

### #list_service_lb_policies

    def list_service_lb_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>
    def list_service_lb_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>

Lists ServiceLbPolicies in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListServiceLbPoliciesRequest), ::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_service_lb_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>

Pass arguments to `list_service_lb_policies` 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 ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.
- **page_size** (::Integer) --- Maximum number of ServiceLbPolicies to return per call.
- **page_token** (::String) --- The value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::ServiceLbPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceLbPolicy)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_service_lb_policies method.
result = client.list_service_lb_policies 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::ServiceLbPolicy.
  p item
end
```

### #list_tcp_routes

    def list_tcp_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>
    def list_tcp_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>

Lists TcpRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListTcpRoutesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListTcpRoutesRequest), ::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_tcp_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>

Pass arguments to `list_tcp_routes` 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 TcpRoutes should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of TcpRoutes to return per call.
- **page_token** (::String) --- The value returned by the last `ListTcpRoutesResponse` Indicates that this is a continuation of a prior `ListTcpRoutes` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::TcpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TcpRoute)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_tcp_routes method.
result = client.list_tcp_routes 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::TcpRoute.
  p item
end
```

### #list_tls_routes

    def list_tls_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>
    def list_tls_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>

Lists TlsRoute in a given project and location.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListTlsRoutesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListTlsRoutesRequest), ::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_tls_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>

Pass arguments to `list_tls_routes` 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 TlsRoutes should be listed, specified in the format `projects/*/locations/*`.
- **page_size** (::Integer) --- Maximum number of TlsRoutes to return per call.
- **page_token** (::String) --- The value returned by the last `ListTlsRoutesResponse` Indicates that this is a continuation of a prior `ListTlsRoutes` call, and that the system should return the next page of data.
- **return_partial_success** (::Boolean) --- Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::TlsRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_tls_routes method.
result = client.list_tls_routes 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::TlsRoute.
  p item
end
```

### #list_wasm_plugin_versions

    def list_wasm_plugin_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>
    def list_wasm_plugin_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListWasmPluginVersionsRequest), ::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_wasm_plugin_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>

Pass arguments to `list_wasm_plugin_versions` 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 `WasmPlugin` resource whose `WasmPluginVersion`s are listed, specified in the following format: `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
- **page_size** (::Integer) --- Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
- **page_token** (::String) --- The value returned by the last `ListWasmPluginVersionsResponse` call. Indicates that this is a continuation of a prior `ListWasmPluginVersions` call, and that the next page of data is to be returned.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::WasmPluginVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPluginVersion)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_wasm_plugin_versions method.
result = client.list_wasm_plugin_versions 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::WasmPluginVersion.
  p item
end
```

### #list_wasm_plugins

    def list_wasm_plugins(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>
    def list_wasm_plugins(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ListWasmPluginsRequest), ::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_wasm_plugins(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>

Pass arguments to `list_wasm_plugins` 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 `WasmPlugin` resources are listed, specified in the following format: `projects/{project}/locations/global`.
- **page_size** (::Integer) --- Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
- **page_token** (::String) --- The value returned by the last `ListWasmPluginsResponse` call. Indicates that this is a continuation of a prior `ListWasmPlugins` call, and that the next page of data is to be returned.
**Yields**

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

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

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::NetworkServices::V1::WasmPlugin](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin)\>)
**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::NetworkServices::Rest::Client.new

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

# Call the list_wasm_plugins method.
result = client.list_wasm_plugins 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::WasmPlugin.
  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::NetworkServices::Rest::Operations

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

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

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_agent_gateway

    def update_agent_gateway(request, options = nil) -> ::Gapic::Operation
    def update_agent_gateway(update_mask: nil, agent_gateway: nil) -> ::Gapic::Operation

Updates the parameters of a single AgentGateway.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateAgentGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateAgentGatewayRequest), ::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_agent_gateway(update_mask: nil, agent_gateway: nil) -> ::Gapic::Operation

Pass arguments to `update_agent_gateway` 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. Field mask is used to specify the fields to be overwritten in the AgentGateway resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **agent_gateway** ([::Google::Cloud::NetworkServices::V1::AgentGateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway), ::Hash) --- Required. Updated AgentGateway resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_agent_gateway method.
result = client.update_agent_gateway 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_endpoint_policy

    def update_endpoint_policy(request, options = nil) -> ::Gapic::Operation
    def update_endpoint_policy(update_mask: nil, endpoint_policy: nil) -> ::Gapic::Operation

Updates the parameters of a single EndpointPolicy.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateEndpointPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateEndpointPolicyRequest), ::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_endpoint_policy(update_mask: nil, endpoint_policy: nil) -> ::Gapic::Operation

Pass arguments to `update_endpoint_policy` 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. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **endpoint_policy** ([::Google::Cloud::NetworkServices::V1::EndpointPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-EndpointPolicy), ::Hash) --- Required. Updated EndpointPolicy resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_endpoint_policy method.
result = client.update_endpoint_policy 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_gateway

    def update_gateway(request, options = nil) -> ::Gapic::Operation
    def update_gateway(update_mask: nil, gateway: nil) -> ::Gapic::Operation

Updates the parameters of a single Gateway.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateGatewayRequest), ::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_gateway(update_mask: nil, gateway: nil) -> ::Gapic::Operation

Pass arguments to `update_gateway` 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. Field mask is used to specify the fields to be overwritten in the Gateway resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **gateway** ([::Google::Cloud::NetworkServices::V1::Gateway](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Gateway), ::Hash) --- Required. Updated Gateway resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_gateway method.
result = client.update_gateway 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_grpc_route

    def update_grpc_route(request, options = nil) -> ::Gapic::Operation
    def update_grpc_route(update_mask: nil, grpc_route: nil) -> ::Gapic::Operation

Updates the parameters of a single GrpcRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateGrpcRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateGrpcRouteRequest), ::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_grpc_route(update_mask: nil, grpc_route: nil) -> ::Gapic::Operation

Pass arguments to `update_grpc_route` 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. Field mask is used to specify the fields to be overwritten in the GrpcRoute resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **grpc_route** ([::Google::Cloud::NetworkServices::V1::GrpcRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute), ::Hash) --- Required. Updated GrpcRoute resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_grpc_route method.
result = client.update_grpc_route 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_http_route

    def update_http_route(request, options = nil) -> ::Gapic::Operation
    def update_http_route(update_mask: nil, http_route: nil) -> ::Gapic::Operation

Updates the parameters of a single HttpRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateHttpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateHttpRouteRequest), ::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_http_route(update_mask: nil, http_route: nil) -> ::Gapic::Operation

Pass arguments to `update_http_route` 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. Field mask is used to specify the fields to be overwritten in the HttpRoute resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **http_route** ([::Google::Cloud::NetworkServices::V1::HttpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute), ::Hash) --- Required. Updated HttpRoute resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_http_route method.
result = client.update_http_route 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_mesh

    def update_mesh(request, options = nil) -> ::Gapic::Operation
    def update_mesh(update_mask: nil, mesh: nil) -> ::Gapic::Operation

Updates the parameters of a single Mesh.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateMeshRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateMeshRequest), ::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_mesh(update_mask: nil, mesh: nil) -> ::Gapic::Operation

Pass arguments to `update_mesh` 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. Field mask is used to specify the fields to be overwritten in the Mesh resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **mesh** ([::Google::Cloud::NetworkServices::V1::Mesh](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-Mesh), ::Hash) --- Required. Updated Mesh resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_mesh method.
result = client.update_mesh 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_service_binding

    def update_service_binding(request, options = nil) -> ::Gapic::Operation
    def update_service_binding(update_mask: nil, service_binding: nil) -> ::Gapic::Operation

Updates the parameters of a single ServiceBinding.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateServiceBindingRequest), ::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_service_binding(update_mask: nil, service_binding: nil) -> ::Gapic::Operation

Pass arguments to `update_service_binding` 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. Field mask is used to specify the fields to be overwritten in the ServiceBinding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **service_binding** ([::Google::Cloud::NetworkServices::V1::ServiceBinding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceBinding), ::Hash) --- Required. Updated ServiceBinding resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_service_binding method.
result = client.update_service_binding 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_service_lb_policy

    def update_service_lb_policy(request, options = nil) -> ::Gapic::Operation
    def update_service_lb_policy(update_mask: nil, service_lb_policy: nil) -> ::Gapic::Operation

Updates the parameters of a single ServiceLbPolicy.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateServiceLbPolicyRequest), ::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_service_lb_policy(update_mask: nil, service_lb_policy: nil) -> ::Gapic::Operation

Pass arguments to `update_service_lb_policy` 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. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **service_lb_policy** ([::Google::Cloud::NetworkServices::V1::ServiceLbPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-ServiceLbPolicy), ::Hash) --- Required. Updated ServiceLbPolicy resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_service_lb_policy method.
result = client.update_service_lb_policy 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_tcp_route

    def update_tcp_route(request, options = nil) -> ::Gapic::Operation
    def update_tcp_route(update_mask: nil, tcp_route: nil) -> ::Gapic::Operation

Updates the parameters of a single TcpRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateTcpRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateTcpRouteRequest), ::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_tcp_route(update_mask: nil, tcp_route: nil) -> ::Gapic::Operation

Pass arguments to `update_tcp_route` 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. Field mask is used to specify the fields to be overwritten in the TcpRoute resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **tcp_route** ([::Google::Cloud::NetworkServices::V1::TcpRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TcpRoute), ::Hash) --- Required. Updated TcpRoute resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_tcp_route method.
result = client.update_tcp_route 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_tls_route

    def update_tls_route(request, options = nil) -> ::Gapic::Operation
    def update_tls_route(update_mask: nil, tls_route: nil) -> ::Gapic::Operation

Updates the parameters of a single TlsRoute.
**Overloads**

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateTlsRouteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateTlsRouteRequest), ::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_tls_route(update_mask: nil, tls_route: nil) -> ::Gapic::Operation

Pass arguments to `update_tls_route` 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. Field mask is used to specify the fields to be overwritten in the TlsRoute resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- **tls_route** ([::Google::Cloud::NetworkServices::V1::TlsRoute](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute), ::Hash) --- Required. Updated TlsRoute resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_tls_route method.
result = client.update_tls_route 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_wasm_plugin

    def update_wasm_plugin(request, options = nil) -> ::Gapic::Operation
    def update_wasm_plugin(update_mask: nil, wasm_plugin: nil) -> ::Gapic::Operation

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

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

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

- **request** ([::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-UpdateWasmPluginRequest), ::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_wasm_plugin(update_mask: nil, wasm_plugin: nil) -> ::Gapic::Operation

Pass arguments to `update_wasm_plugin` 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 `WasmPlugin` resource by the update. The fields specified in the `update_mask` field are relative to the resource, not the full request. An omitted `update_mask` field is treated as an implied `update_mask` field equivalent to all fields that are populated (that have a non-empty value). The `update_mask` field supports a special value `*`, which means that each field in the given `WasmPlugin` resource (including the empty ones) replaces the current value.
- **wasm_plugin** ([::Google::Cloud::NetworkServices::V1::WasmPlugin](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin), ::Hash) --- Required. Updated `WasmPlugin` resource.
**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::NetworkServices::Rest::Client.new

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

# Call the update_wasm_plugin method.
result = client.update_wasm_plugin 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
```