Compute Engine v1 API - Class NetworkEdgeSecurityServicesClient (2.10.0)

public abstract class NetworkEdgeSecurityServicesClient

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

NetworkEdgeSecurityServices client wrapper, for convenient use.

Inheritance

object > NetworkEdgeSecurityServicesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The NetworkEdgeSecurityServices API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the NetworkEdgeSecurityServices service, which is a host of "compute.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default NetworkEdgeSecurityServices scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual NetworkEdgeSecurityServices.NetworkEdgeSecurityServicesClient GrpcClient { get; }

The underlying gRPC NetworkEdgeSecurityServices client

Property Value
TypeDescription
NetworkEdgeSecurityServicesNetworkEdgeSecurityServicesClient

InsertOperationsClient

public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient

PatchOperationsClient

public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

AggregatedList(AggregatedListNetworkEdgeSecurityServicesRequest, CallSettings)

public virtual PagedEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> AggregatedList(AggregatedListNetworkEdgeSecurityServicesRequest request, CallSettings callSettings = null)

Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.

Parameters
NameDescription
requestAggregatedListNetworkEdgeSecurityServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNetworkEdgeSecurityServiceAggregatedListKeyValuePairstringNetworkEdgeSecurityServicesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
AggregatedListNetworkEdgeSecurityServicesRequest request = new AggregatedListNetworkEdgeSecurityServicesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> response = networkEdgeSecurityServicesClient.AggregatedList(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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 (NetworkEdgeSecurityServiceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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, NetworkEdgeSecurityServicesScopedList>> 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, NetworkEdgeSecurityServicesScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

AggregatedList(string, string, int?, CallSettings)

public virtual PagedEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.

Parameters
NameDescription
projectstring

Name of the project scoping this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNetworkEdgeSecurityServiceAggregatedListKeyValuePairstringNetworkEdgeSecurityServicesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> response = networkEdgeSecurityServicesClient.AggregatedList(project);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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 (NetworkEdgeSecurityServiceAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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, NetworkEdgeSecurityServicesScopedList>> 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, NetworkEdgeSecurityServicesScopedList> 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(AggregatedListNetworkEdgeSecurityServicesRequest, CallSettings)

public virtual PagedAsyncEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> AggregatedListAsync(AggregatedListNetworkEdgeSecurityServicesRequest request, CallSettings callSettings = null)

Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.

Parameters
NameDescription
requestAggregatedListNetworkEdgeSecurityServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNetworkEdgeSecurityServiceAggregatedListKeyValuePairstringNetworkEdgeSecurityServicesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListNetworkEdgeSecurityServicesRequest request = new AggregatedListNetworkEdgeSecurityServicesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> response = networkEdgeSecurityServicesClient.AggregatedListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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((NetworkEdgeSecurityServiceAggregatedList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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, NetworkEdgeSecurityServicesScopedList>> 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, NetworkEdgeSecurityServicesScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

AggregatedListAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.

Parameters
NameDescription
projectstring

Name of the project scoping this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNetworkEdgeSecurityServiceAggregatedListKeyValuePairstringNetworkEdgeSecurityServicesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<NetworkEdgeSecurityServiceAggregatedList, KeyValuePair<string, NetworkEdgeSecurityServicesScopedList>> response = networkEdgeSecurityServicesClient.AggregatedListAsync(project);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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((NetworkEdgeSecurityServiceAggregatedList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NetworkEdgeSecurityServicesScopedList> 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, NetworkEdgeSecurityServicesScopedList>> 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, NetworkEdgeSecurityServicesScopedList> 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 NetworkEdgeSecurityServicesClient Create()

Synchronously creates a NetworkEdgeSecurityServicesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkEdgeSecurityServicesClientBuilder.

Returns
TypeDescription
NetworkEdgeSecurityServicesClient

The created NetworkEdgeSecurityServicesClient.

CreateAsync(CancellationToken)

public static Task<NetworkEdgeSecurityServicesClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a NetworkEdgeSecurityServicesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkEdgeSecurityServicesClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskNetworkEdgeSecurityServicesClient

The task representing the created NetworkEdgeSecurityServicesClient.

Delete(DeleteNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Operation<Operation, Operation> Delete(DeleteNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Deletes the specified service.

Parameters
NameDescription
requestDeleteNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
DeleteNetworkEdgeSecurityServiceRequest request = new DeleteNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.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 = networkEdgeSecurityServicesClient.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 networkEdgeSecurityService, CallSettings callSettings = null)

Deletes the specified service.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.Delete(project, region, networkEdgeSecurityService);

// 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 = networkEdgeSecurityServicesClient.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(DeleteNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Deletes the specified service.

Parameters
NameDescription
requestDeleteNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkEdgeSecurityServiceRequest request = new DeleteNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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(DeleteNetworkEdgeSecurityServiceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkEdgeSecurityServiceRequest request, CancellationToken cancellationToken)

Deletes the specified service.

Parameters
NameDescription
requestDeleteNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkEdgeSecurityServiceRequest request = new DeleteNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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 networkEdgeSecurityService, CallSettings callSettings = null)

Deletes the specified service.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.DeleteAsync(project, region, networkEdgeSecurityService);

// 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 networkEdgeSecurityServicesClient.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 networkEdgeSecurityService, CancellationToken cancellationToken)

Deletes the specified service.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.DeleteAsync(project, region, networkEdgeSecurityService);

// 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 networkEdgeSecurityServicesClient.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(GetNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual NetworkEdgeSecurityService Get(GetNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
requestGetNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NetworkEdgeSecurityService

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
GetNetworkEdgeSecurityServiceRequest request = new GetNetworkEdgeSecurityServiceRequest
{
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
NetworkEdgeSecurityService response = networkEdgeSecurityServicesClient.Get(request);

Get(string, string, string, CallSettings)

public virtual NetworkEdgeSecurityService Get(string project, string region, string networkEdgeSecurityService, CallSettings callSettings = null)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NetworkEdgeSecurityService

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
NetworkEdgeSecurityService response = networkEdgeSecurityServicesClient.Get(project, region, networkEdgeSecurityService);

GetAsync(GetNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Task<NetworkEdgeSecurityService> GetAsync(GetNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
requestGetNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNetworkEdgeSecurityService

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
GetNetworkEdgeSecurityServiceRequest request = new GetNetworkEdgeSecurityServiceRequest
{
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
NetworkEdgeSecurityService response = await networkEdgeSecurityServicesClient.GetAsync(request);

GetAsync(GetNetworkEdgeSecurityServiceRequest, CancellationToken)

public virtual Task<NetworkEdgeSecurityService> GetAsync(GetNetworkEdgeSecurityServiceRequest request, CancellationToken cancellationToken)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
requestGetNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNetworkEdgeSecurityService

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
GetNetworkEdgeSecurityServiceRequest request = new GetNetworkEdgeSecurityServiceRequest
{
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
};
// Make the request
NetworkEdgeSecurityService response = await networkEdgeSecurityServicesClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

public virtual Task<NetworkEdgeSecurityService> GetAsync(string project, string region, string networkEdgeSecurityService, CallSettings callSettings = null)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNetworkEdgeSecurityService

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
NetworkEdgeSecurityService response = await networkEdgeSecurityServicesClient.GetAsync(project, region, networkEdgeSecurityService);

GetAsync(string, string, string, CancellationToken)

public virtual Task<NetworkEdgeSecurityService> GetAsync(string project, string region, string networkEdgeSecurityService, CancellationToken cancellationToken)

Gets a specified NetworkEdgeSecurityService.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNetworkEdgeSecurityService

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
// Make the request
NetworkEdgeSecurityService response = await networkEdgeSecurityServicesClient.GetAsync(project, region, networkEdgeSecurityService);

Insert(InsertNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Operation<Operation, Operation> Insert(InsertNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
InsertNetworkEdgeSecurityServiceRequest request = new InsertNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    ValidateOnly = false,
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
};
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.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 = networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CallSettings)

public virtual Operation<Operation, Operation> Insert(string project, string region, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CallSettings callSettings = null)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.Insert(project, region, networkEdgeSecurityServiceResource);

// 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 = networkEdgeSecurityServicesClient.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(InsertNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
InsertNetworkEdgeSecurityServiceRequest request = new InsertNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    ValidateOnly = false,
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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(InsertNetworkEdgeSecurityServiceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkEdgeSecurityServiceRequest request, CancellationToken cancellationToken)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
InsertNetworkEdgeSecurityServiceRequest request = new InsertNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    ValidateOnly = false,
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CallSettings callSettings = null)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.InsertAsync(project, region, networkEdgeSecurityServiceResource);

// 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 networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CancellationToken cancellationToken)

Creates a new service in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.InsertAsync(project, region, networkEdgeSecurityServiceResource);

// 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 networkEdgeSecurityServicesClient.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;
}

Patch(PatchNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Operation<Operation, Operation> Patch(PatchNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
PatchNetworkEdgeSecurityServiceRequest request = new PatchNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Paths = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
    UpdateMask = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.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 = networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CallSettings)

public virtual Operation<Operation, Operation> Patch(string project, string region, string networkEdgeSecurityService, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CallSettings callSettings = null)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to update.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = NetworkEdgeSecurityServicesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = networkEdgeSecurityServicesClient.Patch(project, region, networkEdgeSecurityService, networkEdgeSecurityServiceResource);

// 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 = networkEdgeSecurityServicesClient.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(PatchNetworkEdgeSecurityServiceRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkEdgeSecurityServiceRequest request, CallSettings callSettings = null)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
PatchNetworkEdgeSecurityServiceRequest request = new PatchNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Paths = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
    UpdateMask = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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(PatchNetworkEdgeSecurityServiceRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkEdgeSecurityServiceRequest request, CancellationToken cancellationToken)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchNetworkEdgeSecurityServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
PatchNetworkEdgeSecurityServiceRequest request = new PatchNetworkEdgeSecurityServiceRequest
{
    RequestId = "",
    Paths = "",
    Region = "",
    NetworkEdgeSecurityService = "",
    Project = "",
    NetworkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(),
    UpdateMask = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.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 networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string networkEdgeSecurityService, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CallSettings callSettings = null)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to update.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.PatchAsync(project, region, networkEdgeSecurityService, networkEdgeSecurityServiceResource);

// 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 networkEdgeSecurityServicesClient.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, NetworkEdgeSecurityService, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string networkEdgeSecurityService, NetworkEdgeSecurityService networkEdgeSecurityServiceResource, CancellationToken cancellationToken)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkEdgeSecurityServicestring

Name of the network edge security service to update.

networkEdgeSecurityServiceResourceNetworkEdgeSecurityService

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = await NetworkEdgeSecurityServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string networkEdgeSecurityService = "";
NetworkEdgeSecurityService networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService();
// Make the request
lro::Operation<Operation, Operation> response = await networkEdgeSecurityServicesClient.PatchAsync(project, region, networkEdgeSecurityService, networkEdgeSecurityServiceResource);

// 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 networkEdgeSecurityServicesClient.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
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Delete .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceInsert(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of Insert.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceInsertAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Insert .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOncePatch(string, CallSettings)

public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of Patch.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOncePatchAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Patch .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

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
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

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.