public abstract class PublicDelegatedPrefixesClient
Reference documentation and code samples for the Compute Engine v1 API class PublicDelegatedPrefixesClient.
PublicDelegatedPrefixes client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The PublicDelegatedPrefixes API.
Properties
AnnounceOperationsClient
public virtual OperationsClient AnnounceOperationsClient { get; }
The long-running operations client for Announce
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default PublicDelegatedPrefixes scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default PublicDelegatedPrefixes scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual PublicDelegatedPrefixes.PublicDelegatedPrefixesClient GrpcClient { get; }
The underlying gRPC PublicDelegatedPrefixes client
Property Value | |
---|---|
Type | Description |
PublicDelegatedPrefixesPublicDelegatedPrefixesClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
WithdrawOperationsClient
public virtual OperationsClient WithdrawOperationsClient { get; }
The long-running operations client for Withdraw
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request | AggregatedListPublicDelegatedPrefixesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerablePublicDelegatedPrefixAggregatedListKeyValuePairstringPublicDelegatedPrefixesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
AggregatedListPublicDelegatedPrefixesRequest request = new AggregatedListPublicDelegatedPrefixesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
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, int?, 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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerablePublicDelegatedPrefixAggregatedListKeyValuePairstringPublicDelegatedPrefixesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// 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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request | AggregatedListPublicDelegatedPrefixesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerablePublicDelegatedPrefixAggregatedListKeyValuePairstringPublicDelegatedPrefixesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListPublicDelegatedPrefixesRequest request = new AggregatedListPublicDelegatedPrefixesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
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, int?, 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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerablePublicDelegatedPrefixAggregatedListKeyValuePairstringPublicDelegatedPrefixesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// 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;
Announce(AnnouncePublicDelegatedPrefixeRequest, CallSettings)
public virtual Operation<Operation, Operation> Announce(AnnouncePublicDelegatedPrefixeRequest request, CallSettings callSettings = null)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | AnnouncePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
AnnouncePublicDelegatedPrefixeRequest request = new AnnouncePublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.Announce(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.PollOnceAnnounce(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;
}
Announce(string, string, string, CallSettings)
public virtual Operation<Operation, Operation> Announce(string project, string region, string publicDelegatedPrefix, CallSettings callSettings = null)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// 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.Announce(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.PollOnceAnnounce(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;
}
AnnounceAsync(AnnouncePublicDelegatedPrefixeRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> AnnounceAsync(AnnouncePublicDelegatedPrefixeRequest request, CallSettings callSettings = null)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | AnnouncePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
AnnouncePublicDelegatedPrefixeRequest request = new AnnouncePublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.AnnounceAsync(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.PollOnceAnnounceAsync(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;
}
AnnounceAsync(AnnouncePublicDelegatedPrefixeRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AnnounceAsync(AnnouncePublicDelegatedPrefixeRequest request, CancellationToken cancellationToken)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | AnnouncePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
AnnouncePublicDelegatedPrefixeRequest request = new AnnouncePublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.AnnounceAsync(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.PollOnceAnnounceAsync(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;
}
AnnounceAsync(string, string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> AnnounceAsync(string project, string region, string publicDelegatedPrefix, CallSettings callSettings = null)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// 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.AnnounceAsync(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.PollOnceAnnounceAsync(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;
}
AnnounceAsync(string, string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AnnounceAsync(string project, string region, string publicDelegatedPrefix, CancellationToken cancellationToken)
Announces the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// 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.AnnounceAsync(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.PollOnceAnnounceAsync(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;
}
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 | |
---|---|
Type | Description |
PublicDelegatedPrefixesClient | The created PublicDelegatedPrefixesClient. |
CreateAsync(CancellationToken)
public static Task<PublicDelegatedPrefixesClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a PublicDelegatedPrefixesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use PublicDelegatedPrefixesClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskPublicDelegatedPrefixesClient | 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 | |
---|---|
Name | Description |
request | DeletePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeletePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | DeletePublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PublicDelegatedPrefix | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PublicDelegatedPrefix | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPublicDelegatedPrefix | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPublicDelegatedPrefix | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPublicDelegatedPrefix | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to return. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPublicDelegatedPrefix | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | InsertPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | InsertPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | InsertPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | ListPublicDelegatedPrefixesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerablePublicDelegatedPrefixListPublicDelegatedPrefix | A pageable sequence of PublicDelegatedPrefix resources. |
// 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, int?, 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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerablePublicDelegatedPrefixListPublicDelegatedPrefix | A pageable sequence of PublicDelegatedPrefix resources. |
// 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 | |
---|---|
Name | Description |
request | ListPublicDelegatedPrefixesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerablePublicDelegatedPrefixListPublicDelegatedPrefix | A pageable asynchronous sequence of PublicDelegatedPrefix resources. |
// 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, int?, 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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region of this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerablePublicDelegatedPrefixListPublicDelegatedPrefix | A pageable asynchronous sequence of PublicDelegatedPrefix resources. |
// 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 | |
---|---|
Name | Description |
request | PatchPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region for this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to patch. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | PatchPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
request | PatchPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region for this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to patch. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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 | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string Name of the region for this request. |
publicDelegatedPrefix | string Name of the PublicDelegatedPrefix resource to patch. |
publicDelegatedPrefixResource | PublicDelegatedPrefix The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
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;
}
PollOnceAnnounce(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceAnnounce(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Announce
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceAnnounceAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceAnnounceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
Announce
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceDeleteAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceInsert(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceInsertAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOncePatch(string, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOncePatchAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceWithdraw(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceWithdraw(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Withdraw
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceWithdrawAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceWithdrawAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
Withdraw
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
Withdraw(WithdrawPublicDelegatedPrefixeRequest, CallSettings)
public virtual Operation<Operation, Operation> Withdraw(WithdrawPublicDelegatedPrefixeRequest request, CallSettings callSettings = null)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | WithdrawPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = PublicDelegatedPrefixesClient.Create();
// Initialize request argument(s)
WithdrawPublicDelegatedPrefixeRequest request = new WithdrawPublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = publicDelegatedPrefixesClient.Withdraw(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.PollOnceWithdraw(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;
}
Withdraw(string, string, string, CallSettings)
public virtual Operation<Operation, Operation> Withdraw(string project, string region, string publicDelegatedPrefix, CallSettings callSettings = null)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// 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.Withdraw(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.PollOnceWithdraw(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;
}
WithdrawAsync(WithdrawPublicDelegatedPrefixeRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> WithdrawAsync(WithdrawPublicDelegatedPrefixeRequest request, CallSettings callSettings = null)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | WithdrawPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
WithdrawPublicDelegatedPrefixeRequest request = new WithdrawPublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.WithdrawAsync(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.PollOnceWithdrawAsync(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;
}
WithdrawAsync(WithdrawPublicDelegatedPrefixeRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> WithdrawAsync(WithdrawPublicDelegatedPrefixeRequest request, CancellationToken cancellationToken)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
request | WithdrawPublicDelegatedPrefixeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = await PublicDelegatedPrefixesClient.CreateAsync();
// Initialize request argument(s)
WithdrawPublicDelegatedPrefixeRequest request = new WithdrawPublicDelegatedPrefixeRequest
{
RequestId = "",
Region = "",
PublicDelegatedPrefix = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await publicDelegatedPrefixesClient.WithdrawAsync(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.PollOnceWithdrawAsync(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;
}
WithdrawAsync(string, string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> WithdrawAsync(string project, string region, string publicDelegatedPrefix, CallSettings callSettings = null)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// 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.WithdrawAsync(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.PollOnceWithdrawAsync(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;
}
WithdrawAsync(string, string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> WithdrawAsync(string project, string region, string publicDelegatedPrefix, CancellationToken cancellationToken)
Withdraws the specified PublicDelegatedPrefix in the given region.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
region | string The name of the region where the public delegated prefix is located. It should comply with RFC1035. |
publicDelegatedPrefix | string The name of the public delegated prefix. It should comply with RFC1035. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// 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.WithdrawAsync(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.PollOnceWithdrawAsync(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;
}