Compute Engine v1 API - Class UrlMaps.UrlMapsClient (3.0.0)

public class UrlMaps.UrlMapsClient : ClientBase<UrlMaps.UrlMapsClient>

Reference documentation and code samples for the Compute Engine v1 API class UrlMaps.UrlMapsClient.

Client for UrlMaps

Inheritance

object > ClientBase > ClientBaseUrlMapsUrlMapsClient > UrlMaps.UrlMapsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

UrlMapsClient()

protected UrlMapsClient()

Protected parameterless constructor to allow creation of test doubles.

UrlMapsClient(CallInvoker)

public UrlMapsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

UrlMapsClient(ChannelBase)

public UrlMapsClient(ChannelBase channel)

Creates a new client for UrlMaps

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

UrlMapsClient(ClientBaseConfiguration)

protected UrlMapsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListUrlMapsRequest, CallOptions)

public virtual UrlMapsAggregatedList AggregatedList(AggregatedListUrlMapsRequest request, CallOptions options)

Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListUrlMapsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
UrlMapsAggregatedList

The response received from the server.

AggregatedList(AggregatedListUrlMapsRequest, Metadata, DateTime?, CancellationToken)

public virtual UrlMapsAggregatedList AggregatedList(AggregatedListUrlMapsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListUrlMapsRequest

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
UrlMapsAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListUrlMapsRequest, CallOptions)

public virtual AsyncUnaryCall<UrlMapsAggregatedList> AggregatedListAsync(AggregatedListUrlMapsRequest request, CallOptions options)

Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListUrlMapsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallUrlMapsAggregatedList

The call object.

AggregatedListAsync(AggregatedListUrlMapsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UrlMapsAggregatedList> AggregatedListAsync(AggregatedListUrlMapsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListUrlMapsRequest

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
AsyncUnaryCallUrlMapsAggregatedList

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
Type Description
OperationsOperationsClient

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

Delete(DeleteUrlMapRequest, CallOptions)

public virtual Operation Delete(DeleteUrlMapRequest request, CallOptions options)

Deletes the specified UrlMap resource.

Parameters
Name Description
request DeleteUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified UrlMap resource.

Parameters
Name Description
request DeleteUrlMapRequest

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.

DeleteAsync(DeleteUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteUrlMapRequest request, CallOptions options)

Deletes the specified UrlMap resource.

Parameters
Name Description
request DeleteUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified UrlMap resource.

Parameters
Name Description
request DeleteUrlMapRequest

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.

Get(GetUrlMapRequest, CallOptions)

public virtual UrlMap Get(GetUrlMapRequest request, CallOptions options)

Returns the specified UrlMap resource.

Parameters
Name Description
request GetUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
UrlMap

The response received from the server.

Get(GetUrlMapRequest, Metadata, DateTime?, CancellationToken)

public virtual UrlMap Get(GetUrlMapRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified UrlMap resource.

Parameters
Name Description
request GetUrlMapRequest

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
UrlMap

The response received from the server.

GetAsync(GetUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<UrlMap> GetAsync(GetUrlMapRequest request, CallOptions options)

Returns the specified UrlMap resource.

Parameters
Name Description
request GetUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallUrlMap

The call object.

GetAsync(GetUrlMapRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UrlMap> GetAsync(GetUrlMapRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified UrlMap resource.

Parameters
Name Description
request GetUrlMapRequest

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
AsyncUnaryCallUrlMap

The call object.

Insert(InsertUrlMapRequest, CallOptions)

public virtual Operation Insert(InsertUrlMapRequest request, CallOptions options)

Creates a UrlMap resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Creates a UrlMap resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertUrlMapRequest

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.

InsertAsync(InsertUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertUrlMapRequest request, CallOptions options)

Creates a UrlMap resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Creates a UrlMap resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertUrlMapRequest

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.

InvalidateCache(InvalidateCacheUrlMapRequest, CallOptions)

public virtual Operation InvalidateCache(InvalidateCacheUrlMapRequest request, CallOptions options)

Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content.

Parameters
Name Description
request InvalidateCacheUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

InvalidateCache(InvalidateCacheUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content.

Parameters
Name Description
request InvalidateCacheUrlMapRequest

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.

InvalidateCacheAsync(InvalidateCacheUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InvalidateCacheAsync(InvalidateCacheUrlMapRequest request, CallOptions options)

Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content.

Parameters
Name Description
request InvalidateCacheUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InvalidateCacheAsync(InvalidateCacheUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content.

Parameters
Name Description
request InvalidateCacheUrlMapRequest

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.

List(ListUrlMapsRequest, CallOptions)

public virtual UrlMapList List(ListUrlMapsRequest request, CallOptions options)

Retrieves the list of UrlMap resources available to the specified project.

Parameters
Name Description
request ListUrlMapsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
UrlMapList

The response received from the server.

List(ListUrlMapsRequest, Metadata, DateTime?, CancellationToken)

public virtual UrlMapList List(ListUrlMapsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of UrlMap resources available to the specified project.

Parameters
Name Description
request ListUrlMapsRequest

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
UrlMapList

The response received from the server.

ListAsync(ListUrlMapsRequest, CallOptions)

public virtual AsyncUnaryCall<UrlMapList> ListAsync(ListUrlMapsRequest request, CallOptions options)

Retrieves the list of UrlMap resources available to the specified project.

Parameters
Name Description
request ListUrlMapsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallUrlMapList

The call object.

ListAsync(ListUrlMapsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UrlMapList> ListAsync(ListUrlMapsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of UrlMap resources available to the specified project.

Parameters
Name Description
request ListUrlMapsRequest

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
AsyncUnaryCallUrlMapList

The call object.

NewInstance(ClientBaseConfiguration)

protected override UrlMaps.UrlMapsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
UrlMapsUrlMapsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.UrlMaps.UrlMapsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchUrlMapRequest, CallOptions)

public virtual Operation Patch(PatchUrlMapRequest request, CallOptions options)

Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchUrlMapRequest

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.

PatchAsync(PatchUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchUrlMapRequest request, CallOptions options)

Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchUrlMapRequest

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.

Update(UpdateUrlMapRequest, CallOptions)

public virtual Operation Update(UpdateUrlMapRequest request, CallOptions options)

Updates the specified UrlMap resource with the data included in the request.

Parameters
Name Description
request UpdateUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified UrlMap resource with the data included in the request.

Parameters
Name Description
request UpdateUrlMapRequest

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.

UpdateAsync(UpdateUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateUrlMapRequest request, CallOptions options)

Updates the specified UrlMap resource with the data included in the request.

Parameters
Name Description
request UpdateUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateUrlMapRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified UrlMap resource with the data included in the request.

Parameters
Name Description
request UpdateUrlMapRequest

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.

Validate(ValidateUrlMapRequest, CallOptions)

public virtual UrlMapsValidateResponse Validate(ValidateUrlMapRequest request, CallOptions options)

Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.

Parameters
Name Description
request ValidateUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
UrlMapsValidateResponse

The response received from the server.

Validate(ValidateUrlMapRequest, Metadata, DateTime?, CancellationToken)

public virtual UrlMapsValidateResponse Validate(ValidateUrlMapRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.

Parameters
Name Description
request ValidateUrlMapRequest

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
UrlMapsValidateResponse

The response received from the server.

ValidateAsync(ValidateUrlMapRequest, CallOptions)

public virtual AsyncUnaryCall<UrlMapsValidateResponse> ValidateAsync(ValidateUrlMapRequest request, CallOptions options)

Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.

Parameters
Name Description
request ValidateUrlMapRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallUrlMapsValidateResponse

The call object.

ValidateAsync(ValidateUrlMapRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UrlMapsValidateResponse> ValidateAsync(ValidateUrlMapRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.

Parameters
Name Description
request ValidateUrlMapRequest

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
AsyncUnaryCallUrlMapsValidateResponse

The call object.