public abstract 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 |
IReadOnlyList<String> |
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 |
TargetHttpProxies.TargetHttpProxiesClient |
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 |
PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<String, TargetHttpProxiesScopedList>> | 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, Nullable<Int32>, 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 | Nullable<Int32> 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 |
PagedEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<String, TargetHttpProxiesScopedList>> | 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 |
PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<String, TargetHttpProxiesScopedList>> | 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, Nullable<Int32>, 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 | Nullable<Int32> 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 |
PagedAsyncEnumerable<TargetHttpProxyAggregatedList, KeyValuePair<String, TargetHttpProxiesScopedList>> | 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(CancellationToken))
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 |
Task<TargetHttpProxiesClient> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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. Gets a list of available target HTTP proxies by making a list() request.
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. Gets a list of available target HTTP proxies by making a list() request.
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. Gets a list of available target HTTP proxies by making a list() request.
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 |
Task<TargetHttpProxy> | 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. Gets a list of available target HTTP proxies by making a list() request.
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 |
Task<TargetHttpProxy> | 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. Gets a list of available target HTTP proxies by making a list() request.
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 |
Task<TargetHttpProxy> | 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. Gets a list of available target HTTP proxies by making a list() request.
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 |
Task<TargetHttpProxy> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> | 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, Nullable<Int32>, 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 | Nullable<Int32> 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 |
PagedEnumerable<TargetHttpProxyList, TargetHttpProxy> | 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 |
PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> | 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, Nullable<Int32>, 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 | Nullable<Int32> 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 |
PagedAsyncEnumerable<TargetHttpProxyList, TargetHttpProxy> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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.