public abstract class RegionSecurityPoliciesClientRegionSecurityPolicies client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The RegionSecurityPolicies API.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the RegionSecurityPolicies 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 RegionSecurityPolicies scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyList<String> |
|
The default RegionSecurityPolicies scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual RegionSecurityPolicies.RegionSecurityPoliciesClient GrpcClient { get; }The underlying gRPC RegionSecurityPolicies client
| Property Value | |
|---|---|
| Type | Description |
RegionSecurityPolicies.RegionSecurityPoliciesClient |
|
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 |
|
Methods
Create()
public static RegionSecurityPoliciesClient Create()Synchronously creates a RegionSecurityPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionSecurityPoliciesClientBuilder.
| Returns | |
|---|---|
| Type | Description |
RegionSecurityPoliciesClient |
The created RegionSecurityPoliciesClient. |
CreateAsync(CancellationToken)
public static Task<RegionSecurityPoliciesClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))Asynchronously creates a RegionSecurityPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionSecurityPoliciesClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
Task<RegionSecurityPoliciesClient> |
The task representing the created RegionSecurityPoliciesClient. |
Delete(DeleteRegionSecurityPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteRegionSecurityPolicyRequest request, CallSettings callSettings = null)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
DeleteRegionSecurityPolicyRequest request = new DeleteRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.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 = regionSecurityPoliciesClient.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, String, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string region, string securityPolicy, CallSettings callSettings = null)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.Delete(project, region, securityPolicy);
// 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 = regionSecurityPoliciesClient.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(DeleteRegionSecurityPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionSecurityPolicyRequest request, CallSettings callSettings = null)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionSecurityPolicyRequest request = new DeleteRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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(DeleteRegionSecurityPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionSecurityPolicyRequest request, CancellationToken cancellationToken)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionSecurityPolicyRequest request = new DeleteRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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, String, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string securityPolicy, CallSettings callSettings = null)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.DeleteAsync(project, region, securityPolicy);
// 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 regionSecurityPoliciesClient.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, String, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string securityPolicy, CancellationToken cancellationToken)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.DeleteAsync(project, region, securityPolicy);
// 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 regionSecurityPoliciesClient.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(GetRegionSecurityPolicyRequest, CallSettings)
public virtual SecurityPolicy Get(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityPolicy |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
GetRegionSecurityPolicyRequest request = new GetRegionSecurityPolicyRequest
{
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
SecurityPolicy response = regionSecurityPoliciesClient.Get(request);
Get(String, String, String, CallSettings)
public virtual SecurityPolicy Get(string project, string region, string securityPolicy, CallSettings callSettings = null)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to get. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SecurityPolicy |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
SecurityPolicy response = regionSecurityPoliciesClient.Get(project, region, securityPolicy);
GetAsync(GetRegionSecurityPolicyRequest, CallSettings)
public virtual Task<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<SecurityPolicy> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionSecurityPolicyRequest request = new GetRegionSecurityPolicyRequest
{
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
SecurityPolicy response = await regionSecurityPoliciesClient.GetAsync(request);
GetAsync(GetRegionSecurityPolicyRequest, CancellationToken)
public virtual Task<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, CancellationToken cancellationToken)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<SecurityPolicy> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionSecurityPolicyRequest request = new GetRegionSecurityPolicyRequest
{
Region = "",
SecurityPolicy = "",
Project = "",
};
// Make the request
SecurityPolicy response = await regionSecurityPoliciesClient.GetAsync(request);
GetAsync(String, String, String, CallSettings)
public virtual Task<SecurityPolicy> GetAsync(string project, string region, string securityPolicy, CallSettings callSettings = null)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to get. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<SecurityPolicy> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
SecurityPolicy response = await regionSecurityPoliciesClient.GetAsync(project, region, securityPolicy);
GetAsync(String, String, String, CancellationToken)
public virtual Task<SecurityPolicy> GetAsync(string project, string region, string securityPolicy, CancellationToken cancellationToken)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to get. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<SecurityPolicy> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
// Make the request
SecurityPolicy response = await regionSecurityPoliciesClient.GetAsync(project, region, securityPolicy);
Insert(InsertRegionSecurityPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertRegionSecurityPolicyRequest request, CallSettings callSettings = null)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
InsertRegionSecurityPolicyRequest request = new InsertRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
ValidateOnly = false,
};
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.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 = regionSecurityPoliciesClient.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, String, SecurityPolicy, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, string region, SecurityPolicy securityPolicyResource, CallSettings callSettings = null)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.Insert(project, region, securityPolicyResource);
// 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 = regionSecurityPoliciesClient.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(InsertRegionSecurityPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionSecurityPolicyRequest request, CallSettings callSettings = null)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionSecurityPolicyRequest request = new InsertRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
ValidateOnly = false,
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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(InsertRegionSecurityPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionSecurityPolicyRequest request, CancellationToken cancellationToken)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionSecurityPolicyRequest request = new InsertRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
ValidateOnly = false,
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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, String, SecurityPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, SecurityPolicy securityPolicyResource, CallSettings callSettings = null)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.InsertAsync(project, region, securityPolicyResource);
// 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 regionSecurityPoliciesClient.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, String, SecurityPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, SecurityPolicy securityPolicyResource, CancellationToken cancellationToken)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.InsertAsync(project, region, securityPolicyResource);
// 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 regionSecurityPoliciesClient.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(ListRegionSecurityPoliciesRequest, CallSettings)
public virtual PagedEnumerable<SecurityPolicyList, SecurityPolicy> List(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)List all the policies that have been configured for the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSecurityPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<SecurityPolicyList, SecurityPolicy> |
A pageable sequence of SecurityPolicy resources. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
ListRegionSecurityPoliciesRequest request = new ListRegionSecurityPoliciesRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<SecurityPolicyList, SecurityPolicy> response = regionSecurityPoliciesClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityPolicy 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 (SecurityPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityPolicy 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<SecurityPolicy> 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 (SecurityPolicy 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, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<SecurityPolicyList, SecurityPolicy> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all the policies that have been configured for the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
pageToken |
StringThe 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<SecurityPolicyList, SecurityPolicy> |
A pageable sequence of SecurityPolicy resources. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<SecurityPolicyList, SecurityPolicy> response = regionSecurityPoliciesClient.List(project, region);
// Iterate over all response items, lazily performing RPCs as required
foreach (SecurityPolicy 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 (SecurityPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityPolicy 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<SecurityPolicy> 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 (SecurityPolicy 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(ListRegionSecurityPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> ListAsync(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)List all the policies that have been configured for the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSecurityPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> |
A pageable asynchronous sequence of SecurityPolicy resources. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
ListRegionSecurityPoliciesRequest request = new ListRegionSecurityPoliciesRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> response = regionSecurityPoliciesClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityPolicy 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((SecurityPolicyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityPolicy 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<SecurityPolicy> 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 (SecurityPolicy 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, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all the policies that have been configured for the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
pageToken |
StringThe 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> |
A pageable asynchronous sequence of SecurityPolicy resources. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> response = regionSecurityPoliciesClient.ListAsync(project, region);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((SecurityPolicy 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((SecurityPolicyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (SecurityPolicy 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<SecurityPolicy> 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 (SecurityPolicy 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(PatchRegionSecurityPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchRegionSecurityPolicyRequest request, CallSettings callSettings = null)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
PatchRegionSecurityPolicyRequest request = new PatchRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.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 = regionSecurityPoliciesClient.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, String, SecurityPolicy, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string region, string securityPolicy, SecurityPolicy securityPolicyResource, CallSettings callSettings = null)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to update. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = RegionSecurityPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionSecurityPoliciesClient.Patch(project, region, securityPolicy, securityPolicyResource);
// 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 = regionSecurityPoliciesClient.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(PatchRegionSecurityPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionSecurityPolicyRequest request, CallSettings callSettings = null)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionSecurityPolicyRequest request = new PatchRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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(PatchRegionSecurityPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionSecurityPolicyRequest request, CancellationToken cancellationToken)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionSecurityPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionSecurityPolicyRequest request = new PatchRegionSecurityPolicyRequest
{
RequestId = "",
Region = "",
SecurityPolicy = "",
SecurityPolicyResource = new SecurityPolicy(),
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.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 regionSecurityPoliciesClient.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, String, SecurityPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string securityPolicy, SecurityPolicy securityPolicyResource, CallSettings callSettings = null)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to update. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.PatchAsync(project, region, securityPolicy, securityPolicyResource);
// 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 regionSecurityPoliciesClient.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, String, SecurityPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string securityPolicy, SecurityPolicy securityPolicyResource, CancellationToken cancellationToken)Patches the specified policy with the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
StringProject ID for this request. |
region |
StringName of the region scoping this request. |
securityPolicy |
StringName of the security policy to update. |
securityPolicyResource |
SecurityPolicyThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
// Create client
RegionSecurityPoliciesClient regionSecurityPoliciesClient = await RegionSecurityPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string securityPolicy = "";
SecurityPolicy securityPolicyResource = new SecurityPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionSecurityPoliciesClient.PatchAsync(project, region, securityPolicy, securityPolicyResource);
// 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 regionSecurityPoliciesClient.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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
StringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A task representing the result of polling the operation. |
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.