public abstract class TargetHttpProxiesClient
Reference documentation and code samples for the Compute Engine v1 API class TargetHttpProxiesClient.
TargetHttpProxies client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The TargetHttpProxies API.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the TargetHttpProxies service, which is a host of "compute.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default TargetHttpProxies scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default TargetHttpProxies scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual TargetHttpProxies.TargetHttpProxiesClient GrpcClient { get; }
The underlying gRPC TargetHttpProxies client
Property Value | |
---|---|
Type | Description |
TargetHttpProxiesTargetHttpProxiesClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
SetUrlMapOperationsClient
public virtual OperationsClient SetUrlMapOperationsClient { get; }
The long-running operations client for SetUrlMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AggregatedList(AggregatedListTargetHttpProxiesRequest, CallSettings)
public virtual PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> AggregatedList(AggregatedListTargetHttpProxiesRequest request, CallSettings callSettings = null)
Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetHttpProxiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableTargetHttpProxyAggregatedListKeyValuePairstringTargetHttpProxiesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
AggregatedListTargetHttpProxiesRequest request = new AggregatedListTargetHttpProxiesRequest
{
OrderBy = "",
Project = "",
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> response = targetHttpProxiesClient.AggregatedList(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (TargetHttpProxyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, TargetHttpProxiesScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedList(string, string, int?, CallSettings)
public virtual PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableTargetHttpProxyAggregatedListKeyValuePairstringTargetHttpProxiesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> response = targetHttpProxiesClient.AggregatedList(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (TargetHttpProxyAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, TargetHttpProxiesScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedListAsync(AggregatedListTargetHttpProxiesRequest, CallSettings)
public virtual PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> AggregatedListAsync(AggregatedListTargetHttpProxiesRequest request, CallSettings callSettings = null)
Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetHttpProxiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableTargetHttpProxyAggregatedListKeyValuePairstringTargetHttpProxiesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListTargetHttpProxiesRequest request = new AggregatedListTargetHttpProxiesRequest
{
OrderBy = "",
Project = "",
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> response = targetHttpProxiesClient.AggregatedListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, TargetHttpProxiesScopedList> item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((TargetHttpProxyAggregatedList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, TargetHttpProxiesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AggregatedListAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableTargetHttpProxyAggregatedListKeyValuePairstringTargetHttpProxiesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<string, TargetHttpProxiesScopedList>> response = targetHttpProxiesClient.AggregatedListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, TargetHttpProxiesScopedList> item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((TargetHttpProxyAggregatedList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, TargetHttpProxiesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, TargetHttpProxiesScopedList> item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Create()
public static TargetHttpProxiesClient Create()
Synchronously creates a TargetHttpProxiesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TargetHttpProxiesClientBuilder.
Returns | |
---|---|
Type | Description |
TargetHttpProxiesClient | The created TargetHttpProxiesClient. |
CreateAsync(CancellationToken)
public static Task<TargetHttpProxiesClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a TargetHttpProxiesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TargetHttpProxiesClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskTargetHttpProxiesClient | The task representing the created TargetHttpProxiesClient. |
Delete(DeleteTargetHttpProxyRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteTargetHttpProxyRequest request, CallSettings callSettings = null)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
DeleteTargetHttpProxyRequest request = new DeleteTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Delete(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Delete(string, string, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string targetHttpProxy, CallSettings callSettings = null)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Delete(project, targetHttpProxy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteTargetHttpProxyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteTargetHttpProxyRequest request, CallSettings callSettings = null)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetHttpProxyRequest request = new DeleteTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteTargetHttpProxyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteTargetHttpProxyRequest request, CancellationToken cancellationToken)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetHttpProxyRequest request = new DeleteTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string targetHttpProxy, CallSettings callSettings = null)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.DeleteAsync(project, targetHttpProxy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string targetHttpProxy, CancellationToken cancellationToken)
Deletes the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.DeleteAsync(project, targetHttpProxy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Get(GetTargetHttpProxyRequest, CallSettings)
public virtual TargetHttpProxy Get(GetTargetHttpProxyRequest request, CallSettings callSettings = null)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | GetTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TargetHttpProxy | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
GetTargetHttpProxyRequest request = new GetTargetHttpProxyRequest
{
TargetHttpProxy = "",
Project = "",
};
// Make the request
TargetHttpProxy response = targetHttpProxiesClient.Get(request);
Get(string, string, CallSettings)
public virtual TargetHttpProxy Get(string project, string targetHttpProxy, CallSettings callSettings = null)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TargetHttpProxy | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
TargetHttpProxy response = targetHttpProxiesClient.Get(project, targetHttpProxy);
GetAsync(GetTargetHttpProxyRequest, CallSettings)
public virtual Task<TargetHttpProxy> GetAsync(GetTargetHttpProxyRequest request, CallSettings callSettings = null)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | GetTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTargetHttpProxy | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
GetTargetHttpProxyRequest request = new GetTargetHttpProxyRequest
{
TargetHttpProxy = "",
Project = "",
};
// Make the request
TargetHttpProxy response = await targetHttpProxiesClient.GetAsync(request);
GetAsync(GetTargetHttpProxyRequest, CancellationToken)
public virtual Task<TargetHttpProxy> GetAsync(GetTargetHttpProxyRequest request, CancellationToken cancellationToken)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
request | GetTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTargetHttpProxy | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
GetTargetHttpProxyRequest request = new GetTargetHttpProxyRequest
{
TargetHttpProxy = "",
Project = "",
};
// Make the request
TargetHttpProxy response = await targetHttpProxiesClient.GetAsync(request);
GetAsync(string, string, CallSettings)
public virtual Task<TargetHttpProxy> GetAsync(string project, string targetHttpProxy, CallSettings callSettings = null)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTargetHttpProxy | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
TargetHttpProxy response = await targetHttpProxiesClient.GetAsync(project, targetHttpProxy);
GetAsync(string, string, CancellationToken)
public virtual Task<TargetHttpProxy> GetAsync(string project, string targetHttpProxy, CancellationToken cancellationToken)
Returns the specified TargetHttpProxy resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to return. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTargetHttpProxy | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
// Make the request
TargetHttpProxy response = await targetHttpProxiesClient.GetAsync(project, targetHttpProxy);
Insert(InsertTargetHttpProxyRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertTargetHttpProxyRequest request, CallSettings callSettings = null)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
InsertTargetHttpProxyRequest request = new InsertTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Insert(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Insert(string, TargetHttpProxy, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, TargetHttpProxy targetHttpProxyResource, CallSettings callSettings = null)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Insert(project, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertTargetHttpProxyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertTargetHttpProxyRequest request, CallSettings callSettings = null)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
InsertTargetHttpProxyRequest request = new InsertTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertTargetHttpProxyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertTargetHttpProxyRequest request, CancellationToken cancellationToken)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
InsertTargetHttpProxyRequest request = new InsertTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, TargetHttpProxy, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, TargetHttpProxy targetHttpProxyResource, CallSettings callSettings = null)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.InsertAsync(project, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, TargetHttpProxy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, TargetHttpProxy targetHttpProxyResource, CancellationToken cancellationToken)
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.InsertAsync(project, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
List(ListTargetHttpProxiesRequest, CallSettings)
public virtual PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> List(ListTargetHttpProxiesRequest request, CallSettings callSettings = null)
Retrieves the list of TargetHttpProxy resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListTargetHttpProxiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableTargetHttpProxyListTargetHttpProxy | A pageable sequence of TargetHttpProxy resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
ListTargetHttpProxiesRequest request = new ListTargetHttpProxiesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> response = targetHttpProxiesClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (TargetHttpProxy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (TargetHttpProxyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetHttpProxy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetHttpProxy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetHttpProxy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(string, string, int?, CallSettings)
public virtual PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> List(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of TargetHttpProxy resources available to the specified project.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableTargetHttpProxyListTargetHttpProxy | A pageable sequence of TargetHttpProxy resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> response = targetHttpProxiesClient.List(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (TargetHttpProxy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (TargetHttpProxyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetHttpProxy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetHttpProxy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetHttpProxy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(ListTargetHttpProxiesRequest, CallSettings)
public virtual PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> ListAsync(ListTargetHttpProxiesRequest request, CallSettings callSettings = null)
Retrieves the list of TargetHttpProxy resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListTargetHttpProxiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableTargetHttpProxyListTargetHttpProxy | A pageable asynchronous sequence of TargetHttpProxy resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
ListTargetHttpProxiesRequest request = new ListTargetHttpProxiesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> response = targetHttpProxiesClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetHttpProxy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((TargetHttpProxyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetHttpProxy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetHttpProxy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetHttpProxy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> ListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of TargetHttpProxy resources available to the specified project.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableTargetHttpProxyListTargetHttpProxy | A pageable asynchronous sequence of TargetHttpProxy resources. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> response = targetHttpProxiesClient.ListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TargetHttpProxy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((TargetHttpProxyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TargetHttpProxy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TargetHttpProxy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TargetHttpProxy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Patch(PatchTargetHttpProxyRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchTargetHttpProxyRequest request, CallSettings callSettings = null)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
PatchTargetHttpProxyRequest request = new PatchTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Patch(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Patch(string, string, TargetHttpProxy, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string targetHttpProxy, TargetHttpProxy targetHttpProxyResource, CallSettings callSettings = null)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to patch. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.Patch(project, targetHttpProxy, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchTargetHttpProxyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchTargetHttpProxyRequest request, CallSettings callSettings = null)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
PatchTargetHttpProxyRequest request = new PatchTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchTargetHttpProxyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchTargetHttpProxyRequest request, CancellationToken cancellationToken)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
PatchTargetHttpProxyRequest request = new PatchTargetHttpProxyRequest
{
TargetHttpProxyResource = new TargetHttpProxy(),
RequestId = "",
TargetHttpProxy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, TargetHttpProxy, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string targetHttpProxy, TargetHttpProxy targetHttpProxyResource, CallSettings callSettings = null)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to patch. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.PatchAsync(project, targetHttpProxy, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, TargetHttpProxy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string targetHttpProxy, TargetHttpProxy targetHttpProxyResource, CancellationToken cancellationToken)
Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy resource to patch. |
targetHttpProxyResource | TargetHttpProxy The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
TargetHttpProxy targetHttpProxyResource = new TargetHttpProxy();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.PatchAsync(project, targetHttpProxy, targetHttpProxyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceDeleteAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceInsert(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceInsertAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOncePatch(string, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOncePatchAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceSetUrlMap(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceSetUrlMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SetUrlMap
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceSetUrlMapAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceSetUrlMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SetUrlMap
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
SetUrlMap(SetUrlMapTargetHttpProxyRequest, CallSettings)
public virtual Operation<Operation, Operation> SetUrlMap(SetUrlMapTargetHttpProxyRequest request, CallSettings callSettings = null)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
request | SetUrlMapTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
SetUrlMapTargetHttpProxyRequest request = new SetUrlMapTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
UrlMapReferenceResource = new UrlMapReference(),
};
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.SetUrlMap(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceSetUrlMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetUrlMap(string, string, UrlMapReference, CallSettings)
public virtual Operation<Operation, Operation> SetUrlMap(string project, string targetHttpProxy, UrlMapReference urlMapReferenceResource, CallSettings callSettings = null)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy to set a URL map for. |
urlMapReferenceResource | UrlMapReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
UrlMapReference urlMapReferenceResource = new UrlMapReference();
// Make the request
lro::Operation<Operation, Operation> response = targetHttpProxiesClient.SetUrlMap(project, targetHttpProxy, urlMapReferenceResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceSetUrlMap(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetUrlMapAsync(SetUrlMapTargetHttpProxyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> SetUrlMapAsync(SetUrlMapTargetHttpProxyRequest request, CallSettings callSettings = null)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
request | SetUrlMapTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
SetUrlMapTargetHttpProxyRequest request = new SetUrlMapTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
UrlMapReferenceResource = new UrlMapReference(),
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.SetUrlMapAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceSetUrlMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetUrlMapAsync(SetUrlMapTargetHttpProxyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> SetUrlMapAsync(SetUrlMapTargetHttpProxyRequest request, CancellationToken cancellationToken)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
request | SetUrlMapTargetHttpProxyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
SetUrlMapTargetHttpProxyRequest request = new SetUrlMapTargetHttpProxyRequest
{
RequestId = "",
TargetHttpProxy = "",
Project = "",
UrlMapReferenceResource = new UrlMapReference(),
};
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.SetUrlMapAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceSetUrlMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetUrlMapAsync(string, string, UrlMapReference, CallSettings)
public virtual Task<Operation<Operation, Operation>> SetUrlMapAsync(string project, string targetHttpProxy, UrlMapReference urlMapReferenceResource, CallSettings callSettings = null)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy to set a URL map for. |
urlMapReferenceResource | UrlMapReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
UrlMapReference urlMapReferenceResource = new UrlMapReference();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.SetUrlMapAsync(project, targetHttpProxy, urlMapReferenceResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceSetUrlMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetUrlMapAsync(string, string, UrlMapReference, CancellationToken)
public virtual Task<Operation<Operation, Operation>> SetUrlMapAsync(string project, string targetHttpProxy, UrlMapReference urlMapReferenceResource, CancellationToken cancellationToken)
Changes the URL map for TargetHttpProxy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
targetHttpProxy | string Name of the TargetHttpProxy to set a URL map for. |
urlMapReferenceResource | UrlMapReference The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
TargetHttpProxiesClient targetHttpProxiesClient = await TargetHttpProxiesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string targetHttpProxy = "";
UrlMapReference urlMapReferenceResource = new UrlMapReference();
// Make the request
lro::Operation<Operation, Operation> response = await targetHttpProxiesClient.SetUrlMapAsync(project, targetHttpProxy, urlMapReferenceResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await targetHttpProxiesClient.PollOnceSetUrlMapAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.