1.2.0 (latest) 1.1.0 1.0.0

    public abstract class ApiHubDiscoveryClient

Reference documentation and code samples for the API hub v1 API class ApiHubDiscoveryClient.

ApiHubDiscovery client wrapper, for convenient use.

## Inheritance

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

## 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

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

## Namespace

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

## Assembly

Google.Cloud.ApiHub.V1.dll

## Remarks

This service exposes methods used to manage DiscoveredApiObservations
and DiscoveredApiOperations.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default ApiHubDiscovery scopes.

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

**Remarks** The default ApiHubDiscovery scopes are:

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

<br />

### GrpcClient

    public virtual ApiHubDiscovery.ApiHubDiscoveryClient GrpcClient { get; }

The underlying gRPC ApiHubDiscovery client

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

### 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` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

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

## Methods

### Create()

    public static ApiHubDiscoveryClient Create()

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

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

### CreateAsync(CancellationToken)

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

Asynchronously creates a [ApiHubDiscoveryClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [ApiHubDiscoveryClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClientBuilder.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** |
| `TaskApiHubDiscoveryClient` | The task representing the created [ApiHubDiscoveryClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt). |

### GetDiscoveredApiObservation(DiscoveredApiObservationName, CallSettings)

    public virtual DiscoveredApiObservation GetDiscoveredApiObservation(DiscoveredApiObservationName name, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiObservationName` Required. The name of the DiscoveredApiObservation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
DiscoveredApiObservationName name = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]");
// Make the request
DiscoveredApiObservation response = apiHubDiscoveryClient.GetDiscoveredApiObservation(name);
```

### GetDiscoveredApiObservation(GetDiscoveredApiObservationRequest, CallSettings)

    public virtual DiscoveredApiObservation GetDiscoveredApiObservation(GetDiscoveredApiObservationRequest request, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
GetDiscoveredApiObservationRequest request = new GetDiscoveredApiObservationRequest
{
    DiscoveredApiObservationName = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]"),
};
// Make the request
DiscoveredApiObservation response = apiHubDiscoveryClient.GetDiscoveredApiObservation(request);
```

### GetDiscoveredApiObservation(string, CallSettings)

    public virtual DiscoveredApiObservation GetDiscoveredApiObservation(string name, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the DiscoveredApiObservation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]";
// Make the request
DiscoveredApiObservation response = apiHubDiscoveryClient.GetDiscoveredApiObservation(name);
```

### GetDiscoveredApiObservationAsync(DiscoveredApiObservationName, CallSettings)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(DiscoveredApiObservationName name, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiObservationName` Required. The name of the DiscoveredApiObservation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
DiscoveredApiObservationName name = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]");
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(name);
```

### GetDiscoveredApiObservationAsync(DiscoveredApiObservationName, CancellationToken)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(DiscoveredApiObservationName name, CancellationToken cancellationToken)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiObservationName` Required. The name of the DiscoveredApiObservation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
DiscoveredApiObservationName name = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]");
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(name);
```

### GetDiscoveredApiObservationAsync(GetDiscoveredApiObservationRequest, CallSettings)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(GetDiscoveredApiObservationRequest request, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveredApiObservationRequest request = new GetDiscoveredApiObservationRequest
{
    DiscoveredApiObservationName = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]"),
};
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(request);
```

### GetDiscoveredApiObservationAsync(GetDiscoveredApiObservationRequest, CancellationToken)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(GetDiscoveredApiObservationRequest request, CancellationToken cancellationToken)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveredApiObservationRequest request = new GetDiscoveredApiObservationRequest
{
    DiscoveredApiObservationName = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]"),
};
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(request);
```

### GetDiscoveredApiObservationAsync(string, CallSettings)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(string name, CallSettings callSettings = null)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the DiscoveredApiObservation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]";
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(name);
```

### GetDiscoveredApiObservationAsync(string, CancellationToken)

    public virtual Task<DiscoveredApiObservation> GetDiscoveredApiObservationAsync(string name, CancellationToken cancellationToken)

Gets a DiscoveredAPIObservation in a given project, location and
ApiObservation.

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

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]";
// Make the request
DiscoveredApiObservation response = await apiHubDiscoveryClient.GetDiscoveredApiObservationAsync(name);
```

### GetDiscoveredApiOperation(DiscoveredApiOperationName, CallSettings)

    public virtual DiscoveredApiOperation GetDiscoveredApiOperation(DiscoveredApiOperationName name, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiOperationName` Required. The name of the DiscoveredApiOperation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
DiscoveredApiOperationName name = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]");
// Make the request
DiscoveredApiOperation response = apiHubDiscoveryClient.GetDiscoveredApiOperation(name);
```

### GetDiscoveredApiOperation(GetDiscoveredApiOperationRequest, CallSettings)

    public virtual DiscoveredApiOperation GetDiscoveredApiOperation(GetDiscoveredApiOperationRequest request, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
GetDiscoveredApiOperationRequest request = new GetDiscoveredApiOperationRequest
{
    DiscoveredApiOperationName = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]"),
};
// Make the request
DiscoveredApiOperation response = apiHubDiscoveryClient.GetDiscoveredApiOperation(request);
```

### GetDiscoveredApiOperation(string, CallSettings)

    public virtual DiscoveredApiOperation GetDiscoveredApiOperation(string name, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the DiscoveredApiOperation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]/discoveredApiOperations/[DISCOVERED_API_OPERATION]";
// Make the request
DiscoveredApiOperation response = apiHubDiscoveryClient.GetDiscoveredApiOperation(name);
```

### GetDiscoveredApiOperationAsync(DiscoveredApiOperationName, CallSettings)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(DiscoveredApiOperationName name, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiOperationName` Required. The name of the DiscoveredApiOperation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
DiscoveredApiOperationName name = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]");
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(name);
```

### GetDiscoveredApiOperationAsync(DiscoveredApiOperationName, CancellationToken)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(DiscoveredApiOperationName name, CancellationToken cancellationToken)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `DiscoveredApiOperationName` Required. The name of the DiscoveredApiOperation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
DiscoveredApiOperationName name = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]");
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(name);
```

### GetDiscoveredApiOperationAsync(GetDiscoveredApiOperationRequest, CallSettings)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(GetDiscoveredApiOperationRequest request, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveredApiOperationRequest request = new GetDiscoveredApiOperationRequest
{
    DiscoveredApiOperationName = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]"),
};
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(request);
```

### GetDiscoveredApiOperationAsync(GetDiscoveredApiOperationRequest, CancellationToken)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(GetDiscoveredApiOperationRequest request, CancellationToken cancellationToken)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
GetDiscoveredApiOperationRequest request = new GetDiscoveredApiOperationRequest
{
    DiscoveredApiOperationName = DiscoveredApiOperationName.FromProjectLocationDiscoveredApiObservationDiscoveredApiOperation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]", "[DISCOVERED_API_OPERATION]"),
};
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(request);
```

### GetDiscoveredApiOperationAsync(string, CallSettings)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(string name, CallSettings callSettings = null)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the DiscoveredApiOperation to retrieve. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]/discoveredApiOperations/[DISCOVERED_API_OPERATION]";
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(name);
```

### GetDiscoveredApiOperationAsync(string, CancellationToken)

    public virtual Task<DiscoveredApiOperation> GetDiscoveredApiOperationAsync(string name, CancellationToken cancellationToken)

Gets a DiscoveredAPIOperation in a given project, location,
ApiObservation and ApiOperation.

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

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]/discoveredApiOperations/[DISCOVERED_API_OPERATION]";
// Make the request
DiscoveredApiOperation response = await apiHubDiscoveryClient.GetDiscoveredApiOperationAsync(name);
```

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

    public virtual PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservations(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent, which owns this collection of ApiObservations. 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** |
| `PagedEnumerableListDiscoveredApiObservationsResponseDiscoveredApiObservation` | A pageable sequence of [DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservations(parent);

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

### ListDiscoveredApiObservations(ListDiscoveredApiObservationsRequest, CallSettings)

    public virtual PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservations(ListDiscoveredApiObservationsRequest request, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
ListDiscoveredApiObservationsRequest request = new ListDiscoveredApiObservationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservations(request);

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

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

    public virtual PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of ApiObservations. 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** |
| `PagedEnumerableListDiscoveredApiObservationsResponseDiscoveredApiObservation` | A pageable sequence of [DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservations(parent);

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

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

    public virtual PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservationsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The parent, which owns this collection of ApiObservations. 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** |
| `PagedAsyncEnumerableListDiscoveredApiObservationsResponseDiscoveredApiObservation` | A pageable asynchronous sequence of [DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiObservation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

### ListDiscoveredApiObservationsAsync(ListDiscoveredApiObservationsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservationsAsync(ListDiscoveredApiObservationsRequest request, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
ListDiscoveredApiObservationsRequest request = new ListDiscoveredApiObservationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiObservation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

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

    public virtual PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> ListDiscoveredApiObservationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIObservations in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of ApiObservations. 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** |
| `PagedAsyncEnumerableListDiscoveredApiObservationsResponseDiscoveredApiObservation` | A pageable asynchronous sequence of [DiscoveredApiObservation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiObservation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> response = apiHubDiscoveryClient.ListDiscoveredApiObservationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiObservation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

### ListDiscoveredApiOperations(DiscoveredApiObservationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperations(DiscoveredApiObservationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `DiscoveredApiObservationName` Required. The parent, which owns this collection of DiscoveredApiOperations. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `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** |
| `PagedEnumerableListDiscoveredApiOperationsResponseDiscoveredApiOperation` | A pageable sequence of [DiscoveredApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiOperation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
DiscoveredApiObservationName parent = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]");
// Make the request
PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperations(parent);

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

### ListDiscoveredApiOperations(ListDiscoveredApiOperationsRequest, CallSettings)

    public virtual PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperations(ListDiscoveredApiOperationsRequest request, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
ListDiscoveredApiOperationsRequest request = new ListDiscoveredApiOperationsRequest
{
    ParentAsDiscoveredApiObservationName = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]"),
};
// Make the request
PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperations(request);

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

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

    public virtual PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of DiscoveredApiOperations. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `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** |
| `PagedEnumerableListDiscoveredApiOperationsResponseDiscoveredApiOperation` | A pageable sequence of [DiscoveredApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiOperation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = ApiHubDiscoveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]";
// Make the request
PagedEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperations(parent);

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

### ListDiscoveredApiOperationsAsync(DiscoveredApiObservationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperationsAsync(DiscoveredApiObservationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `DiscoveredApiObservationName` Required. The parent, which owns this collection of DiscoveredApiOperations. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `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** |
| `PagedAsyncEnumerableListDiscoveredApiOperationsResponseDiscoveredApiOperation` | A pageable asynchronous sequence of [DiscoveredApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiOperation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
DiscoveredApiObservationName parent = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]");
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiOperation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

### ListDiscoveredApiOperationsAsync(ListDiscoveredApiOperationsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperationsAsync(ListDiscoveredApiOperationsRequest request, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

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

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
ListDiscoveredApiOperationsRequest request = new ListDiscoveredApiOperationsRequest
{
    ParentAsDiscoveredApiObservationName = DiscoveredApiObservationName.FromProjectLocationDiscoveredApiObservation("[PROJECT]", "[LOCATION]", "[DISCOVERED_API_OBSERVATION]"),
};
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiOperation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

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

    public virtual PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> ListDiscoveredApiOperationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the DiscoveredAPIOperations in a given project, location and
ApiObservation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of DiscoveredApiOperations. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation} |
| `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** |
| `PagedAsyncEnumerableListDiscoveredApiOperationsResponseDiscoveredApiOperation` | A pageable asynchronous sequence of [DiscoveredApiOperation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DiscoveredApiOperation.md.txt) resources. |

**Example**

```cs
// Create client
ApiHubDiscoveryClient apiHubDiscoveryClient = await ApiHubDiscoveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/discoveredApiObservations/[DISCOVERED_API_OBSERVATION]";
// Make the request
PagedAsyncEnumerable<ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> response = apiHubDiscoveryClient.ListDiscoveredApiOperationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DiscoveredApiOperation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

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

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubDiscoveryClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubDiscoveryClient_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.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubDiscoveryClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiHubDiscoveryClient.md.txt#Google_Cloud_ApiHub_V1_ApiHubDiscoveryClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.