Network Services v1beta1 API - Class NetworkServices.NetworkServicesClient (1.0.0-beta01)

public class NetworkServices.NetworkServicesClient : ClientBase<NetworkServices.NetworkServicesClient>

Reference documentation and code samples for the Network Services v1beta1 API class NetworkServices.NetworkServicesClient.

Client for NetworkServices

Inheritance

object > ClientBase > ClientBaseNetworkServicesNetworkServicesClient > NetworkServices.NetworkServicesClient

Namespace

Google.Cloud.NetworkServices.V1Beta1

Assembly

Google.Cloud.NetworkServices.V1Beta1.dll

Constructors

NetworkServicesClient()

protected NetworkServicesClient()

Protected parameterless constructor to allow creation of test doubles.

NetworkServicesClient(CallInvoker)

public NetworkServicesClient(CallInvoker callInvoker)

Creates a new client for NetworkServices that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

NetworkServicesClient(ChannelBase)

public NetworkServicesClient(ChannelBase channel)

Creates a new client for NetworkServices

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

NetworkServicesClient(ClientBaseConfiguration)

protected NetworkServicesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateEndpointPolicy(CreateEndpointPolicyRequest, CallOptions)

public virtual Operation CreateEndpointPolicy(CreateEndpointPolicyRequest request, CallOptions options)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateEndpointPolicy(CreateEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation CreateEndpointPolicy(CreateEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

CreateEndpointPolicyAsync(CreateEndpointPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateEndpointPolicyAsync(CreateEndpointPolicyRequest request, CallOptions options)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateEndpointPolicyAsync(CreateEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> CreateEndpointPolicyAsync(CreateEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
Type Description
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

DeleteEndpointPolicy(DeleteEndpointPolicyRequest, CallOptions)

public virtual Operation DeleteEndpointPolicy(DeleteEndpointPolicyRequest request, CallOptions options)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeleteEndpointPolicy(DeleteEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DeleteEndpointPolicy(DeleteEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest request, CallOptions options)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetEndpointPolicy(GetEndpointPolicyRequest, CallOptions)

public virtual EndpointPolicy GetEndpointPolicy(GetEndpointPolicyRequest request, CallOptions options)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
EndpointPolicy

The response received from the server.

GetEndpointPolicy(GetEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual EndpointPolicy GetEndpointPolicy(GetEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
EndpointPolicy

The response received from the server.

GetEndpointPolicyAsync(GetEndpointPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<EndpointPolicy> GetEndpointPolicyAsync(GetEndpointPolicyRequest request, CallOptions options)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEndpointPolicy

The call object.

GetEndpointPolicyAsync(GetEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<EndpointPolicy> GetEndpointPolicyAsync(GetEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEndpointPolicy

The call object.

ListEndpointPolicies(ListEndpointPoliciesRequest, CallOptions)

public virtual ListEndpointPoliciesResponse ListEndpointPolicies(ListEndpointPoliciesRequest request, CallOptions options)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListEndpointPoliciesResponse

The response received from the server.

ListEndpointPolicies(ListEndpointPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListEndpointPoliciesResponse ListEndpointPolicies(ListEndpointPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListEndpointPoliciesResponse

The response received from the server.

ListEndpointPoliciesAsync(ListEndpointPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<ListEndpointPoliciesResponse> ListEndpointPoliciesAsync(ListEndpointPoliciesRequest request, CallOptions options)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListEndpointPoliciesResponse

The call object.

ListEndpointPoliciesAsync(ListEndpointPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListEndpointPoliciesResponse> ListEndpointPoliciesAsync(ListEndpointPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListEndpointPoliciesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override NetworkServices.NetworkServicesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
NetworkServicesNetworkServicesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.NetworkServices.V1Beta1.NetworkServices.NetworkServicesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateEndpointPolicy(UpdateEndpointPolicyRequest, CallOptions)

public virtual Operation UpdateEndpointPolicy(UpdateEndpointPolicyRequest request, CallOptions options)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

UpdateEndpointPolicy(UpdateEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpdateEndpointPolicy(UpdateEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest request, CallOptions options)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.