# Google Cloud Database Center V1beta Client - Class DatabaseCenterClient (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class DatabaseCenterClient.

Service Description: DatabaseCenter contains methods to query fleet view for database resources.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods.

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta \\ Client

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `array|https://docs.cloud.google.com/php/docs/reference/gax/latest/Options.ClientOptions.html` Optional. Options for configuring the service API wrapper. |
| `↳ apiEndpoint` | `string` The address of the API remote host. May optionally include the port, formatted as " |
| `↳ credentials` | `https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html|https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html` This option should only be used with a pre-constructed [Google\\Auth\\FetchAuthTokenInterface](https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html) or [Google\\ApiCore\\CredentialsWrapper](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html) object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored. **Important** : If you are providing a path to a credentials file, or a decoded credentials file as a PHP array, this usage is now DEPRECATED. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. It is recommended to create the credentials explicitly `use Google\Auth\Credentials\ServiceAccountCredentials; use Google\Cloud\DatabaseCenter\V1beta\DatabaseCenterClient; $creds = new ServiceAccountCredentials($scopes, $json); $options = new DatabaseCenterClient(['credentials' => $creds]);` <https://cloud.google.com/docs/authentication/external/externally-sourced-credentials> |
| `↳ credentialsConfig` | `array` Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see [Google\\ApiCore\\CredentialsWrapper::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html#_Google_ApiCore_CredentialsWrapper__build__) . |
| `↳ disableRetries` | `bool` Determines whether or not retries defined by the client configuration should be disabled. Defaults to `false`. |
| `↳ clientConfig` | `string|array` Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder. |
| `↳ transport` | `string|https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html` The transport used for executing network requests. May be either the string `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. *Advanced usage* : Additionally, it is possible to pass in an already instantiated [Google\\ApiCore\\Transport\\TransportInterface](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html) object. Note that when this object is provided, any settings in $transportConfig, and any $apiEndpoint setting, will be ignored. |
| `↳ transportConfig` | `array` Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = \[ 'grpc' =\> \[...\], 'rest' =\> \[...\], \]; See the [Google\\ApiCore\\Transport\\GrpcTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.GrpcTransport.html#_Google_ApiCore_Transport_GrpcTransport__build__) and [Google\\ApiCore\\Transport\\RestTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.RestTransport.html#_Google_ApiCore_Transport_RestTransport__build__) methods for the supported options. |
| `↳ clientCertSource` | `callable` A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS. |
| `↳ logger` | `false|Psr\Log\LoggerInterface` A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the 'GOOGLE_SDK_PHP_LOGGING' environment flag |
| `↳ universeDomain` | `string` The service domain for the client. Defaults to 'googleapis.com'. |

### aggregateFleet

AggregateFleet provides statistics about the fleet grouped by various
fields.

The async variant is [DatabaseCenterClient::aggregateFleetAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__aggregateFleetAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateFleetRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRequest;
    use Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization. The search
     *                       is limited to the resources within the `scope`.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g.,
     *                       "organizations/123456")
     */
    function aggregate_fleet_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new AggregateFleetRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $databaseCenterClient->aggregateFleet($request);

            /** @var AggregateFleetRow $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        aggregate_fleet_sample($parent);
    }

### aggregateIssueStats

AggregateIssueStats provides database resource issues statistics.

The async variant is [DatabaseCenterClient::aggregateIssueStatsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__aggregateIssueStatsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateIssueStatsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateIssueStatsResponse` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\DatabaseCenter\V1beta\AggregateIssueStatsRequest;
    use Google\Cloud\DatabaseCenter\V1beta\AggregateIssueStatsResponse;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization. The search
     *                       is limited to the resources within the `scope`.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
     */
    function aggregate_issue_stats_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new AggregateIssueStatsRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var AggregateIssueStatsResponse $response */
            $response = $databaseCenterClient->aggregateIssueStats($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        aggregate_issue_stats_sample($parent);
    }

### aggregateQueryStats

AggregateQueryStats provides database resource query execution statistics.

The async variant is [DatabaseCenterClient::aggregateQueryStatsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__aggregateQueryStatsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateQueryStatsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\DatabaseCenter\V1beta\AggregateQueryStatsRequest;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;
    use Google\Cloud\DatabaseCenter\V1beta\QueryStatsInfo;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization. The search
     *                       is limited to the resources within the `parent`.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
     */
    function aggregate_query_stats_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new AggregateQueryStatsRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $databaseCenterClient->aggregateQueryStats($request);

            /** @var QueryStatsInfo $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        aggregate_query_stats_sample($parent);
    }

### queryDatabaseResourceGroups

QueryDatabaseResourceGroups returns paginated results of database groups.

The async variant is
[DatabaseCenterClient::queryDatabaseResourceGroupsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__queryDatabaseResourceGroupsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryDatabaseResourceGroupsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;
    use Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup;
    use Google\Cloud\DatabaseCenter\V1beta\QueryDatabaseResourceGroupsRequest;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization. The search
     *                       is limited to the resources within the `scope`.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
     */
    function query_database_resource_groups_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new QueryDatabaseResourceGroupsRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $databaseCenterClient->queryDatabaseResourceGroups($request);

            /** @var DatabaseResourceGroup $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        query_database_resource_groups_sample($parent);
    }

### queryIssues

QueryIssues provides a list of issues and recommendations
that a user has access to and that are within the requested scope.

The async variant is [DatabaseCenterClient::queryIssuesAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__queryIssuesAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryIssuesRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;
    use Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue;
    use Google\Cloud\DatabaseCenter\V1beta\QueryIssuesRequest;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization. The list
     *                       is limited to the one attached to resources within the `scope` that a user
     *                       has access to.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
     */
    function query_issues_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new QueryIssuesRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $databaseCenterClient->queryIssues($request);

            /** @var DatabaseResourceIssue $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        query_issues_sample($parent);
    }

### queryProducts

QueryProducts provides a list of all possible products which can be used to
filter database resources.

The async variant is [DatabaseCenterClient::queryProductsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Client.DatabaseCenterClient#_Google_Cloud_DatabaseCenter_V1beta_Client_DatabaseCenterClient__queryProductsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryProductsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\DatabaseCenter\V1beta\Client\DatabaseCenterClient;
    use Google\Cloud\DatabaseCenter\V1beta\Product;
    use Google\Cloud\DatabaseCenter\V1beta\QueryProductsRequest;

    /**
     * @param string $parent Parent can be a project, a folder, or an organization.
     *
     *                       The allowed values are:
     *
     *                       * projects/{PROJECT_ID}/locations/{LOCATION}
     *                       (e.g.,"projects/foo-bar/locations/us-central1")
     *                       * projects/{PROJECT_NUMBER}/locations/{LOCATION}
     *                       (e.g.,"projects/12345678/locations/us-central1")
     *                       * folders/{FOLDER_NUMBER}/locations/{LOCATION}
     *                       (e.g.,"folders/1234567/locations/us-central1")
     *                       * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION}
     *                       (e.g.,"organizations/123456/locations/us-central1")
     *                       * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
     *                       * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
     *                       * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
     *                       * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
     */
    function query_products_sample(string $parent): void
    {
        // Create a client.
        $databaseCenterClient = new DatabaseCenterClient();

        // Prepare the request message.
        $request = (new QueryProductsRequest())
            ->setParent($parent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $databaseCenterClient->queryProducts($request);

            /** @var Product $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $parent = '[PARENT]';

        query_products_sample($parent);
    }

### aggregateFleetAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateFleetRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |

### aggregateIssueStatsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateIssueStatsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateIssueStatsResponse>` |   |

### aggregateQueryStatsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.AggregateQueryStatsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |

### queryDatabaseResourceGroupsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryDatabaseResourceGroupsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |

### queryIssuesAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryIssuesRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |

### queryProductsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.QueryProductsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |