3.78.0 (latest) 3.77.0 3.76.0 3.75.0 3.74.0 3.73.0 3.72.0 3.71.0 3.70.0 3.69.0 3.68.0 3.67.0 3.66.0 3.65.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.54.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.42.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.28.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public abstract class PersistentResourceServiceClient

Reference documentation and code samples for the Vertex AI v1 API class PersistentResourceServiceClient.

PersistentResourceService client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PersistentResourceServiceClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[PersistentResourceServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClientImpl.md.txt)

## Namespace

[Google.Cloud.AIPlatform.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.md.txt)

## Assembly

Google.Cloud.AIPlatform.V1.dll

## Remarks

A service for managing Vertex AI's machine learning PersistentResource.

## Properties

### CreatePersistentResourceOperationsClient

    public virtual OperationsClient CreatePersistentResourceOperationsClient { get; }

The long-running operations client for `CreatePersistentResource`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default PersistentResourceService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IReadOnlyListstring` |   |

**Remarks** The default PersistentResourceService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

### DeletePersistentResourceOperationsClient

    public virtual OperationsClient DeletePersistentResourceOperationsClient { get; }

The long-running operations client for `DeletePersistentResource`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

### GrpcClient

    public virtual PersistentResourceService.PersistentResourceServiceClient GrpcClient { get; }

The underlying gRPC PersistentResourceService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PersistentResourceServicePersistentResourceServiceClient` |   |

### IAMPolicyClient

    public virtual IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IAMPolicyClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

### RebootPersistentResourceOperationsClient

    public virtual OperationsClient RebootPersistentResourceOperationsClient { get; }

The long-running operations client for `RebootPersistentResource`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceMetadata` |   |

### UpdatePersistentResourceOperationsClient

    public virtual OperationsClient UpdatePersistentResourceOperationsClient { get; }

The long-running operations client for `UpdatePersistentResource`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

## Methods

### Create()

    public static PersistentResourceServiceClient Create()

Synchronously creates a [PersistentResourceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[PersistentResourceServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClientBuilder.md.txt).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PersistentResourceServiceClient` | The created [PersistentResourceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt). |

### CreateAsync(CancellationToken)

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

Asynchronously creates a [PersistentResourceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[PersistentResourceServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClientBuilder.md.txt).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `CancellationToken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResourceServiceClient` | The task representing the created [PersistentResourceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt). |

### CreatePersistentResource(LocationName, PersistentResource, string, CallSettings)

    public virtual Operation<PersistentResource, CreatePersistentResourceOperationMetadata> CreatePersistentResource(LocationName parent, PersistentResource persistentResource, string persistentResourceId, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceCreatePersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = persistentResourceServiceClient.CreatePersistentResource(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceCreatePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResource(CreatePersistentResourceRequest, CallSettings)

    public virtual Operation<PersistentResource, CreatePersistentResourceOperationMetadata> CreatePersistentResource(CreatePersistentResourceRequest request, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreatePersistentResourceRequest` 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** |
| `OperationPersistentResourceCreatePersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
CreatePersistentResourceRequest request = new CreatePersistentResourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PersistentResource = new PersistentResource(),
    PersistentResourceId = "",
};
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = persistentResourceServiceClient.CreatePersistentResource(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceCreatePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResource(string, PersistentResource, string, CallSettings)

    public virtual Operation<PersistentResource, CreatePersistentResourceOperationMetadata> CreatePersistentResource(string parent, PersistentResource persistentResource, string persistentResourceId, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceCreatePersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = persistentResourceServiceClient.CreatePersistentResource(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceCreatePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(LocationName, PersistentResource, string, CallSettings)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(LocationName parent, PersistentResource persistentResource, string persistentResourceId, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(LocationName, PersistentResource, string, CancellationToken)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(LocationName parent, PersistentResource persistentResource, string persistentResourceId, CancellationToken cancellationToken)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(CreatePersistentResourceRequest, CallSettings)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(CreatePersistentResourceRequest request, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreatePersistentResourceRequest` 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** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePersistentResourceRequest request = new CreatePersistentResourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PersistentResource = new PersistentResource(),
    PersistentResourceId = "",
};
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(CreatePersistentResourceRequest, CancellationToken)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(CreatePersistentResourceRequest request, CancellationToken cancellationToken)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreatePersistentResourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePersistentResourceRequest request = new CreatePersistentResourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PersistentResource = new PersistentResource(),
    PersistentResourceId = "",
};
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(string, PersistentResource, string, CallSettings)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(string parent, PersistentResource persistentResource, string persistentResourceId, CallSettings callSettings = null)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### CreatePersistentResourceAsync(string, PersistentResource, string, CancellationToken)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> CreatePersistentResourceAsync(string parent, PersistentResource persistentResource, string persistentResourceId, CancellationToken cancellationToken)

Creates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}` |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to create. |
| `persistentResourceId` | `string` Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PersistentResource persistentResource = new PersistentResource();
string persistentResourceId = "";
// Make the request
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.CreatePersistentResourceAsync(parent, persistentResource, persistentResourceId);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, CreatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceCreatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResource(DeletePersistentResourceRequest, CallSettings)

    public virtual Operation<Empty, DeleteOperationMetadata> DeletePersistentResource(DeletePersistentResourceRequest request, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeletePersistentResourceRequest` 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** |
| `OperationEmptyDeleteOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
DeletePersistentResourceRequest request = new DeletePersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = persistentResourceServiceClient.DeletePersistentResource(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceDeletePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResource(PersistentResourceName, CallSettings)

    public virtual Operation<Empty, DeleteOperationMetadata> DeletePersistentResource(PersistentResourceName name, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyDeleteOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = persistentResourceServiceClient.DeletePersistentResource(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceDeletePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResource(string, CallSettings)

    public virtual Operation<Empty, DeleteOperationMetadata> DeletePersistentResource(string name, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyDeleteOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = persistentResourceServiceClient.DeletePersistentResource(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceDeletePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(DeletePersistentResourceRequest, CallSettings)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(DeletePersistentResourceRequest request, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeletePersistentResourceRequest` 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** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePersistentResourceRequest request = new DeletePersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(DeletePersistentResourceRequest, CancellationToken)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(DeletePersistentResourceRequest request, CancellationToken cancellationToken)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeletePersistentResourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePersistentResourceRequest request = new DeletePersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(PersistentResourceName, CallSettings)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(PersistentResourceName name, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(PersistentResourceName, CancellationToken)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(PersistentResourceName name, CancellationToken cancellationToken)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(string name, CallSettings callSettings = null)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### DeletePersistentResourceAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeletePersistentResourceAsync(string name, CancellationToken cancellationToken)

Deletes a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await persistentResourceServiceClient.DeletePersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceDeletePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
```

### GetPersistentResource(GetPersistentResourceRequest, CallSettings)

    public virtual PersistentResource GetPersistentResource(GetPersistentResourceRequest request, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetPersistentResourceRequest` 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** |
| `PersistentResource` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
GetPersistentResourceRequest request = new GetPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
PersistentResource response = persistentResourceServiceClient.GetPersistentResource(request);
```

### GetPersistentResource(PersistentResourceName, CallSettings)

    public virtual PersistentResource GetPersistentResource(PersistentResourceName name, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PersistentResource` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
PersistentResource response = persistentResourceServiceClient.GetPersistentResource(name);
```

### GetPersistentResource(string, CallSettings)

    public virtual PersistentResource GetPersistentResource(string name, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PersistentResource` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
PersistentResource response = persistentResourceServiceClient.GetPersistentResource(name);
```

### GetPersistentResourceAsync(GetPersistentResourceRequest, CallSettings)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(GetPersistentResourceRequest request, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetPersistentResourceRequest` 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** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
GetPersistentResourceRequest request = new GetPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(request);
```

### GetPersistentResourceAsync(GetPersistentResourceRequest, CancellationToken)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(GetPersistentResourceRequest request, CancellationToken cancellationToken)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetPersistentResourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
GetPersistentResourceRequest request = new GetPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(request);
```

### GetPersistentResourceAsync(PersistentResourceName, CallSettings)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(PersistentResourceName name, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(name);
```

### GetPersistentResourceAsync(PersistentResourceName, CancellationToken)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(PersistentResourceName name, CancellationToken cancellationToken)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(name);
```

### GetPersistentResourceAsync(string, CallSettings)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(string name, CallSettings callSettings = null)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(name);
```

### GetPersistentResourceAsync(string, CancellationToken)

    public virtual Task<PersistentResource> GetPersistentResourceAsync(string name, CancellationToken cancellationToken)

Gets a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPersistentResource` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
PersistentResource response = await persistentResourceServiceClient.GetPersistentResourceAsync(name);
```

### ListPersistentResources(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResources(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListPersistentResourcesResponsePersistentResource` | A pageable sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResources(parent);

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

### ListPersistentResources(ListPersistentResourcesRequest, CallSettings)

    public virtual PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResources(ListPersistentResourcesRequest request, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListPersistentResourcesRequest` 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** |
| `PagedEnumerableListPersistentResourcesResponsePersistentResource` | A pageable sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
ListPersistentResourcesRequest request = new ListPersistentResourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResources(request);

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

### ListPersistentResources(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListPersistentResourcesResponsePersistentResource` | A pageable sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResources(parent);

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

### ListPersistentResourcesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResourcesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListPersistentResourcesResponsePersistentResource` | A pageable asynchronous sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PersistentResource item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPersistentResourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PersistentResource 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<PersistentResource> 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 (PersistentResource 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;
```

### ListPersistentResourcesAsync(ListPersistentResourcesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResourcesAsync(ListPersistentResourcesRequest request, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListPersistentResourcesRequest` 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** |
| `PagedAsyncEnumerableListPersistentResourcesResponsePersistentResource` | A pageable asynchronous sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
ListPersistentResourcesRequest request = new ListPersistentResourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResourcesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PersistentResource item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPersistentResourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PersistentResource 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<PersistentResource> 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 (PersistentResource 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;
```

### ListPersistentResourcesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> ListPersistentResourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PersistentResources in a Location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}` |
| `pageToken` | `string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `int` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListPersistentResourcesResponsePersistentResource` | A pageable asynchronous sequence of [PersistentResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResource.md.txt) resources. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPersistentResourcesResponse, PersistentResource> response = persistentResourceServiceClient.ListPersistentResourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PersistentResource item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPersistentResourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PersistentResource 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<PersistentResource> 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 (PersistentResource 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;
```

### PollOnceCreatePersistentResource(string, CallSettings)

    public virtual Operation<PersistentResource, CreatePersistentResourceOperationMetadata> PollOnceCreatePersistentResource(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceCreatePersistentResourceOperationMetadata` | The result of polling the operation. |

### PollOnceCreatePersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<PersistentResource, CreatePersistentResourceOperationMetadata>> PollOnceCreatePersistentResourceAsync(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceCreatePersistentResourceOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeletePersistentResource(string, CallSettings)

    public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeletePersistentResource(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyDeleteOperationMetadata` | The result of polling the operation. |

### PollOnceDeletePersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeletePersistentResourceAsync(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyDeleteOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceRebootPersistentResource(string, CallSettings)

    public virtual Operation<PersistentResource, RebootPersistentResourceOperationMetadata> PollOnceRebootPersistentResource(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceRebootPersistentResourceOperationMetadata` | The result of polling the operation. |

### PollOnceRebootPersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> PollOnceRebootPersistentResourceAsync(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdatePersistentResource(string, CallSettings)

    public virtual Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> PollOnceUpdatePersistentResource(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceUpdatePersistentResourceOperationMetadata` | The result of polling the operation. |

### PollOnceUpdatePersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<PersistentResource, UpdatePersistentResourceOperationMetadata>> PollOnceUpdatePersistentResourceAsync(string operationName, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceUpdatePersistentResourceOperationMetadata` | A task representing the result of polling the operation. |

### RebootPersistentResource(PersistentResourceName, CallSettings)

    public virtual Operation<PersistentResource, RebootPersistentResourceOperationMetadata> RebootPersistentResource(PersistentResourceName name, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceRebootPersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = persistentResourceServiceClient.RebootPersistentResource(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceRebootPersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResource(RebootPersistentResourceRequest, CallSettings)

    public virtual Operation<PersistentResource, RebootPersistentResourceOperationMetadata> RebootPersistentResource(RebootPersistentResourceRequest request, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RebootPersistentResourceRequest` 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** |
| `OperationPersistentResourceRebootPersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
RebootPersistentResourceRequest request = new RebootPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = persistentResourceServiceClient.RebootPersistentResource(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceRebootPersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResource(string, CallSettings)

    public virtual Operation<PersistentResource, RebootPersistentResourceOperationMetadata> RebootPersistentResource(string name, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceRebootPersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = persistentResourceServiceClient.RebootPersistentResource(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceRebootPersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(PersistentResourceName, CallSettings)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(PersistentResourceName name, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(PersistentResourceName, CancellationToken)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(PersistentResourceName name, CancellationToken cancellationToken)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `PersistentResourceName` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResourceName name = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]");
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(RebootPersistentResourceRequest, CallSettings)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(RebootPersistentResourceRequest request, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RebootPersistentResourceRequest` 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** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
RebootPersistentResourceRequest request = new RebootPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(RebootPersistentResourceRequest, CancellationToken)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(RebootPersistentResourceRequest request, CancellationToken cancellationToken)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RebootPersistentResourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
RebootPersistentResourceRequest request = new RebootPersistentResourceRequest
{
    PersistentResourceName = PersistentResourceName.FromProjectLocationPersistentResource("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]"),
};
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(string, CallSettings)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(string name, CallSettings callSettings = null)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### RebootPersistentResourceAsync(string, CancellationToken)

    public virtual Task<Operation<PersistentResource, RebootPersistentResourceOperationMetadata>> RebootPersistentResourceAsync(string name, CancellationToken cancellationToken)

Reboots a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceRebootPersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/persistentResources/[PERSISTENT_RESOURCE]";
// Make the request
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> response = await persistentResourceServiceClient.RebootPersistentResourceAsync(name);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, RebootPersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceRebootPersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt#Google_Cloud_AIPlatform_V1_PersistentResourceServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt#Google_Cloud_AIPlatform_V1_PersistentResourceServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt#Google_Cloud_AIPlatform_V1_PersistentResourceServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest/Google.Cloud.AIPlatform.V1.PersistentResourceServiceClient.md.txt#Google_Cloud_AIPlatform_V1_PersistentResourceServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdatePersistentResource(PersistentResource, FieldMask, CallSettings)

    public virtual Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> UpdatePersistentResource(PersistentResource persistentResource, FieldMask updateMask, CallSettings callSettings = null)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to update. The PersistentResource's `name` field is used to identify the PersistentResource to update. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `updateMask` | `FieldMask` Required. Specify the fields to be overwritten in the PersistentResource by the update method. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationPersistentResourceUpdatePersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
PersistentResource persistentResource = new PersistentResource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = persistentResourceServiceClient.UpdatePersistentResource(persistentResource, updateMask);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceUpdatePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### UpdatePersistentResource(UpdatePersistentResourceRequest, CallSettings)

    public virtual Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> UpdatePersistentResource(UpdatePersistentResourceRequest request, CallSettings callSettings = null)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdatePersistentResourceRequest` 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** |
| `OperationPersistentResourceUpdatePersistentResourceOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = PersistentResourceServiceClient.Create();
// Initialize request argument(s)
UpdatePersistentResourceRequest request = new UpdatePersistentResourceRequest
{
    PersistentResource = new PersistentResource(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = persistentResourceServiceClient.UpdatePersistentResource(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = persistentResourceServiceClient.PollOnceUpdatePersistentResource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### UpdatePersistentResourceAsync(PersistentResource, FieldMask, CallSettings)

    public virtual Task<Operation<PersistentResource, UpdatePersistentResourceOperationMetadata>> UpdatePersistentResourceAsync(PersistentResource persistentResource, FieldMask updateMask, CallSettings callSettings = null)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to update. The PersistentResource's `name` field is used to identify the PersistentResource to update. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `updateMask` | `FieldMask` Required. Specify the fields to be overwritten in the PersistentResource by the update method. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceUpdatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResource persistentResource = new PersistentResource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.UpdatePersistentResourceAsync(persistentResource, updateMask);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceUpdatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### UpdatePersistentResourceAsync(PersistentResource, FieldMask, CancellationToken)

    public virtual Task<Operation<PersistentResource, UpdatePersistentResourceOperationMetadata>> UpdatePersistentResourceAsync(PersistentResource persistentResource, FieldMask updateMask, CancellationToken cancellationToken)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `persistentResource` | `PersistentResource` Required. The PersistentResource to update. The PersistentResource's `name` field is used to identify the PersistentResource to update. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` |
| `updateMask` | `FieldMask` Required. Specify the fields to be overwritten in the PersistentResource by the update method. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceUpdatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
PersistentResource persistentResource = new PersistentResource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.UpdatePersistentResourceAsync(persistentResource, updateMask);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceUpdatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### UpdatePersistentResourceAsync(UpdatePersistentResourceRequest, CallSettings)

    public virtual Task<Operation<PersistentResource, UpdatePersistentResourceOperationMetadata>> UpdatePersistentResourceAsync(UpdatePersistentResourceRequest request, CallSettings callSettings = null)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdatePersistentResourceRequest` 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** |
| `TaskOperationPersistentResourceUpdatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
UpdatePersistentResourceRequest request = new UpdatePersistentResourceRequest
{
    PersistentResource = new PersistentResource(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.UpdatePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceUpdatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```

### UpdatePersistentResourceAsync(UpdatePersistentResourceRequest, CancellationToken)

    public virtual Task<Operation<PersistentResource, UpdatePersistentResourceOperationMetadata>> UpdatePersistentResourceAsync(UpdatePersistentResourceRequest request, CancellationToken cancellationToken)

Updates a PersistentResource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdatePersistentResourceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationPersistentResourceUpdatePersistentResourceOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
PersistentResourceServiceClient persistentResourceServiceClient = await PersistentResourceServiceClient.CreateAsync();
// Initialize request argument(s)
UpdatePersistentResourceRequest request = new UpdatePersistentResourceRequest
{
    PersistentResource = new PersistentResource(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> response = await persistentResourceServiceClient.UpdatePersistentResourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PersistentResource 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
Operation<PersistentResource, UpdatePersistentResourceOperationMetadata> retrievedResponse = await persistentResourceServiceClient.PollOnceUpdatePersistentResourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PersistentResource retrievedResult = retrievedResponse.Result;
}
```