Compute Engine v1 API - Class PublicDelegatedPrefixesClient (2.5.0)

public abstract class PublicDelegatedPrefixesClient

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

PublicDelegatedPrefixes client wrapper, for convenient use.

Inheritance

Object > PublicDelegatedPrefixesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The PublicDelegatedPrefixes API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the PublicDelegatedPrefixes 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 PublicDelegatedPrefixes scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual PublicDelegatedPrefixes.PublicDelegatedPrefixesClient GrpcClient { get; }

The underlying gRPC PublicDelegatedPrefixes client

Property Value
TypeDescription
PublicDelegatedPrefixes.PublicDelegatedPrefixesClient

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(AggregatedListPublicDelegatedPrefixesRequest, CallSettings)

public virtual PagedEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> AggregatedList(AggregatedListPublicDelegatedPrefixesRequest request, CallSettings callSettings = null)

Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.

Parameters
NameDescription
requestAggregatedListPublicDelegatedPrefixesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<String, PublicDelegatedPrefixesScopedList>>

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

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
AggregatedListPublicDelegatedPrefixesRequest request = new AggregatedListPublicDelegatedPrefixesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> response = publicDelegatedPrefixesClient.AggregatedList(request);

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

AggregatedList(String, String, Nullable<Int32>, CallSettings)

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

Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.

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.

pageSizeNullable<Int32>

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
PagedEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<String, PublicDelegatedPrefixesScopedList>>

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

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> response = publicDelegatedPrefixesClient.AggregatedList(project);

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

public virtual PagedAsyncEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> AggregatedListAsync(AggregatedListPublicDelegatedPrefixesRequest request, CallSettings callSettings = null)

Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.

Parameters
NameDescription
requestAggregatedListPublicDelegatedPrefixesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<String, PublicDelegatedPrefixesScopedList>>

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

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListPublicDelegatedPrefixesRequest request = new AggregatedListPublicDelegatedPrefixesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> response = publicDelegatedPrefixesClient.AggregatedListAsync(request);

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

AggregatedListAsync(String, String, Nullable<Int32>, CallSettings)

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

Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.

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.

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<String, PublicDelegatedPrefixesScopedList>>

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

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<PublicDelegatedPrefixAggregatedList, KeyValuePair<string, PublicDelegatedPrefixesScopedList>> response = publicDelegatedPrefixesClient.AggregatedListAsync(project);

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

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

Returns
TypeDescription
PublicDelegatedPrefixesClient

The created PublicDelegatedPrefixesClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<PublicDelegatedPrefixesClient>

The task representing the created PublicDelegatedPrefixesClient.

Delete(DeletePublicDelegatedPrefixeRequest, CallSettings)

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

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
requestDeletePublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
DeletePublicDelegatedPrefixeRequest request = new DeletePublicDelegatedPrefixeRequest
{
    RequestId = "",
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.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 = publicDelegatedPrefixesClient.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 publicDelegatedPrefix, CallSettings callSettings = null)

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

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

// 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 = publicDelegatedPrefixesClient.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(DeletePublicDelegatedPrefixeRequest, CallSettings)

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

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
requestDeletePublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

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

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
requestDeletePublicDelegatedPrefixeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

// 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 publicDelegatedPrefixesClient.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 publicDelegatedPrefix, CancellationToken cancellationToken)

Deletes the specified PublicDelegatedPrefix in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

// 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 publicDelegatedPrefixesClient.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(GetPublicDelegatedPrefixeRequest, CallSettings)

public virtual PublicDelegatedPrefix Get(GetPublicDelegatedPrefixeRequest request, CallSettings callSettings = null)

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
requestGetPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PublicDelegatedPrefix

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
GetPublicDelegatedPrefixeRequest request = new GetPublicDelegatedPrefixeRequest
{
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
PublicDelegatedPrefix response = publicDelegatedPrefixesClient.Get(request);

Get(String, String, String, CallSettings)

public virtual PublicDelegatedPrefix Get(string project, string region, string publicDelegatedPrefix, CallSettings callSettings = null)

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PublicDelegatedPrefix

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
// Make the request
PublicDelegatedPrefix response = publicDelegatedPrefixesClient.Get(project, region, publicDelegatedPrefix);

GetAsync(GetPublicDelegatedPrefixeRequest, CallSettings)

public virtual Task<PublicDelegatedPrefix> GetAsync(GetPublicDelegatedPrefixeRequest request, CallSettings callSettings = null)

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
requestGetPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PublicDelegatedPrefix>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
GetPublicDelegatedPrefixeRequest request = new GetPublicDelegatedPrefixeRequest
{
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
PublicDelegatedPrefix response = await publicDelegatedPrefixesClient.GetAsync(request);

GetAsync(GetPublicDelegatedPrefixeRequest, CancellationToken)

public virtual Task<PublicDelegatedPrefix> GetAsync(GetPublicDelegatedPrefixeRequest request, CancellationToken cancellationToken)

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
requestGetPublicDelegatedPrefixeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<PublicDelegatedPrefix>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
GetPublicDelegatedPrefixeRequest request = new GetPublicDelegatedPrefixeRequest
{
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
PublicDelegatedPrefix response = await publicDelegatedPrefixesClient.GetAsync(request);

GetAsync(String, String, String, CallSettings)

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

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PublicDelegatedPrefix>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
// Make the request
PublicDelegatedPrefix response = await publicDelegatedPrefixesClient.GetAsync(project, region, publicDelegatedPrefix);

GetAsync(String, String, String, CancellationToken)

public virtual Task<PublicDelegatedPrefix> GetAsync(string project, string region, string publicDelegatedPrefix, CancellationToken cancellationToken)

Returns the specified PublicDelegatedPrefix resource in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to return.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<PublicDelegatedPrefix>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
// Make the request
PublicDelegatedPrefix response = await publicDelegatedPrefixesClient.GetAsync(project, region, publicDelegatedPrefix);

Insert(InsertPublicDelegatedPrefixeRequest, CallSettings)

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

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
requestInsertPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
InsertPublicDelegatedPrefixeRequest request = new InsertPublicDelegatedPrefixeRequest
{
    RequestId = "",
    PublicDelegatedPrefixResource = new PublicDelegatedPrefix(),
    Region = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.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 = publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CallSettings)

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

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.Insert(project, region, publicDelegatedPrefixResource);

// 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 = publicDelegatedPrefixesClient.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(InsertPublicDelegatedPrefixeRequest, CallSettings)

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

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
requestInsertPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

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

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
requestInsertPublicDelegatedPrefixeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
InsertPublicDelegatedPrefixeRequest request = new InsertPublicDelegatedPrefixeRequest
{
    RequestId = "",
    PublicDelegatedPrefixResource = new PublicDelegatedPrefix(),
    Region = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.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 publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CallSettings)

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

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.InsertAsync(project, region, publicDelegatedPrefixResource);

// 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 publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, PublicDelegatedPrefix publicDelegatedPrefixResource, CancellationToken cancellationToken)

Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.InsertAsync(project, region, publicDelegatedPrefixResource);

// 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 publicDelegatedPrefixesClient.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(ListPublicDelegatedPrefixesRequest, CallSettings)

public virtual PagedEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> List(ListPublicDelegatedPrefixesRequest request, CallSettings callSettings = null)

Lists the PublicDelegatedPrefixes for a project in the given region.

Parameters
NameDescription
requestListPublicDelegatedPrefixesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix>

A pageable sequence of PublicDelegatedPrefix resources.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
ListPublicDelegatedPrefixesRequest request = new ListPublicDelegatedPrefixesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> response = publicDelegatedPrefixesClient.List(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (PublicDelegatedPrefix 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 (PublicDelegatedPrefixList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PublicDelegatedPrefix 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<PublicDelegatedPrefix> 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 (PublicDelegatedPrefix 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<PublicDelegatedPrefixList, PublicDelegatedPrefix> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the PublicDelegatedPrefixes for a project in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix>

A pageable sequence of PublicDelegatedPrefix resources.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> response = publicDelegatedPrefixesClient.List(project, region);

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

public virtual PagedAsyncEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> ListAsync(ListPublicDelegatedPrefixesRequest request, CallSettings callSettings = null)

Lists the PublicDelegatedPrefixes for a project in the given region.

Parameters
NameDescription
requestListPublicDelegatedPrefixesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix>

A pageable asynchronous sequence of PublicDelegatedPrefix resources.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
ListPublicDelegatedPrefixesRequest request = new ListPublicDelegatedPrefixesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> response = publicDelegatedPrefixesClient.ListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PublicDelegatedPrefix 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((PublicDelegatedPrefixList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PublicDelegatedPrefix 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<PublicDelegatedPrefix> 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 (PublicDelegatedPrefix 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<PublicDelegatedPrefixList, PublicDelegatedPrefix> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the PublicDelegatedPrefixes for a project in the given region.

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region of this request.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix>

A pageable asynchronous sequence of PublicDelegatedPrefix resources.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<PublicDelegatedPrefixList, PublicDelegatedPrefix> response = publicDelegatedPrefixesClient.ListAsync(project, region);

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

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

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

Parameters
NameDescription
requestPatchPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
PatchPublicDelegatedPrefixeRequest request = new PatchPublicDelegatedPrefixeRequest
{
    RequestId = "",
    PublicDelegatedPrefixResource = new PublicDelegatedPrefix(),
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.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 = publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CallSettings)

public virtual Operation<Operation, Operation> Patch(string project, string region, string publicDelegatedPrefix, PublicDelegatedPrefix publicDelegatedPrefixResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to patch.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, Operation>

The RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.Patch(project, region, publicDelegatedPrefix, publicDelegatedPrefixResource);

// 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 = publicDelegatedPrefixesClient.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(PatchPublicDelegatedPrefixeRequest, CallSettings)

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

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

Parameters
NameDescription
requestPatchPublicDelegatedPrefixeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
requestPatchPublicDelegatedPrefixeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
PatchPublicDelegatedPrefixeRequest request = new PatchPublicDelegatedPrefixeRequest
{
    RequestId = "",
    PublicDelegatedPrefixResource = new PublicDelegatedPrefix(),
    Region = "",
    PublicDelegatedPrefix = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.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 publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string publicDelegatedPrefix, PublicDelegatedPrefix publicDelegatedPrefixResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to patch.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.PatchAsync(project, region, publicDelegatedPrefix, publicDelegatedPrefixResource);

// 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 publicDelegatedPrefixesClient.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, PublicDelegatedPrefix, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string publicDelegatedPrefix, PublicDelegatedPrefix publicDelegatedPrefixResource, CancellationToken cancellationToken)

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

Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

publicDelegatedPrefixString

Name of the PublicDelegatedPrefix resource to patch.

publicDelegatedPrefixResourcePublicDelegatedPrefix

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Example
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string publicDelegatedPrefix = "";
PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix();
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.PatchAsync(project, region, publicDelegatedPrefix, publicDelegatedPrefixResource);

// 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 publicDelegatedPrefixesClient.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
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
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
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
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
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
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
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
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
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
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
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
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.