# Google Cloud Security Compliance V1 Client - Class ConfigClient (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class ConfigClient.

Service Description: Config Service manages compliance frameworks, cloud controls, and their
configurations.

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

Many parameters require resource names to be formatted in a particular way. To
assist with these names, this class includes a format method for each type of
name, and additionally a parseName method to extract the individual identifiers
contained within formatted names that are returned by the API.

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1 \\ 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\CloudSecurityCompliance\V1\ConfigClient; $creds = new ServiceAccountCredentials($scopes, $json); $options = new ConfigClient(['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'. |

### createCloudControl

Creates a custom cloud control in a given parent
resource.

You can't create built-in cloud controls because those are managed by
Google.

The async variant is [ConfigClient::createCloudControlAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__createCloudControlAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CreateCloudControlRequest` 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-securitycompliance/latest/V1.CloudControl` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\CloudControl;
    use Google\Cloud\CloudSecurityCompliance\V1\CreateCloudControlRequest;

    /**
     * @param string $formattedParent  The parent resource name, in one of the following formats:
     *                                 - `organizations/{organization}/locations/{location}`.
     *                                 - `projects/{project}/locations/{location}`.
     *
     *                                 The only supported location is `global`. Please see
     *                                 {@see ConfigClient::organizationLocationName()} for help formatting this field.
     * @param string $cloudControlId   The identifier for the cloud control, which is the last segment
     *                                 of the cloud control name. The format is
     *                                 `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
     * @param string $cloudControlName Identifier. The name of the cloud control, in either of the
     *                                 formats:
     *                                 `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
     *                                 or
     *                                 `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
     *
     *                                 The only supported location is `global`.
     */
    function create_cloud_control_sample(
        string $formattedParent,
        string $cloudControlId,
        string $cloudControlName
    ): void {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $cloudControl = (new CloudControl())
            ->setName($cloudControlName);
        $request = (new CreateCloudControlRequest())
            ->setParent($formattedParent)
            ->setCloudControlId($cloudControlId)
            ->setCloudControl($cloudControl);

        // Call the API and handle any network failures.
        try {
            /** @var CloudControl $response */
            $response = $configClient->createCloudControl($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
    {
        $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');
        $cloudControlId = '[CLOUD_CONTROL_ID]';
        $cloudControlName = '[NAME]';

        create_cloud_control_sample($formattedParent, $cloudControlId, $cloudControlName);
    }

### createFramework

Creates a custom framework in a given parent resource.

You can't create built-in frameworks because those are managed by
Google.

The async variant is [ConfigClient::createFrameworkAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__createFrameworkAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CreateFrameworkRequest` 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-securitycompliance/latest/V1.Framework` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkRequest;
    use Google\Cloud\CloudSecurityCompliance\V1\Framework;

    /**
     * @param string $formattedParent The parent resource name, in one of the following formats:
     *                                - `organizations/{organization}/locations/{location}`
     *                                - `projects/{project}/locations/{location}`.
     *
     *                                The only supported location is `global`. Please see
     *                                {@see ConfigClient::organizationLocationName()} for help formatting this field.
     * @param string $frameworkId     The identifier (ID) of the framework. The ID is not the full name
     *                                of the framework; it's the last part of the full name of the framework.
     * @param string $frameworkName   Identifier. The name of the framework, in one of the following
     *                                formats:
     *                                `organizations/{organization}/locations/{location}/frameworks/{framework}`
     *                                or
     *                                `projects/{project}/locations/{location}/frameworks/{framework}`.
     *
     *                                The only supported location is `global`.
     */
    function create_framework_sample(
        string $formattedParent,
        string $frameworkId,
        string $frameworkName
    ): void {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $framework = (new Framework())
            ->setName($frameworkName);
        $request = (new CreateFrameworkRequest())
            ->setParent($formattedParent)
            ->setFrameworkId($frameworkId)
            ->setFramework($framework);

        // Call the API and handle any network failures.
        try {
            /** @var Framework $response */
            $response = $configClient->createFramework($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
    {
        $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');
        $frameworkId = '[FRAMEWORK_ID]';
        $frameworkName = '[NAME]';

        create_framework_sample($formattedParent, $frameworkId, $frameworkName);
    }

### deleteCloudControl

Deletes a custom cloud control, including all its
major and minor revisions. Consider the following:

- You can't delete built-in cloud controls. You can only delete cloud controls with type `CUSTOM`.
- You can't delete cloud controls if any of the versions are referenced by a framework.
- You can't restore a deleted cloud control. This action is permanent.

The async variant is [ConfigClient::deleteCloudControlAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__deleteCloudControlAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.DeleteCloudControlRequest` 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. |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\DeleteCloudControlRequest;

    /**
     * @param string $formattedName The name of the cloud control to delete, in one of the following
     *                              formats:
     *                              `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
     *                              or
     *                              `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
     *
     *                              The only supported location is `global`. Please see
     *                              {@see ConfigClient::cloudControlName()} for help formatting this field.
     */
    function delete_cloud_control_sample(string $formattedName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new DeleteCloudControlRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            $configClient->deleteCloudControl($request);
            printf('Call completed successfully.' . PHP_EOL);
        } 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
    {
        $formattedName = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]');

        delete_cloud_control_sample($formattedName);
    }

### deleteFramework

Deletes a custom framework, including all its major and
minor revisions. Consider the following:

- You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`.
- You can't delete frameworks that are deployed to a resource.
- You can't restore a deleted framework. This action is permanent.

The async variant is [ConfigClient::deleteFrameworkAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__deleteFrameworkAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.DeleteFrameworkRequest` 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. |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\DeleteFrameworkRequest;

    /**
     * @param string $formattedName The name of the resource, in one of the following formats:
     *                              `organizations/{organization}/locations/{location}/frameworks/{framework}`
     *                              or
     *                              `projects/{project}/locations/{location}/frameworks/{framework}`.
     *
     *                              The only supported location is `global`. Please see
     *                              {@see ConfigClient::frameworkName()} for help formatting this field.
     */
    function delete_framework_sample(string $formattedName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new DeleteFrameworkRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            $configClient->deleteFramework($request);
            printf('Call completed successfully.' . PHP_EOL);
        } 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
    {
        $formattedName = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]');

        delete_framework_sample($formattedName);
    }

### getCloudControl

Gets details about a cloud control.

This method retrieves the latest major version of a cloud control that
you identify by name.

By default, the latest major version of the cloud control is returned.
To retrieve a specific major version, include `major_revision_id` in
the request.

The async variant is [ConfigClient::getCloudControlAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__getCloudControlAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.GetCloudControlRequest` 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-securitycompliance/latest/V1.CloudControl` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\CloudControl;
    use Google\Cloud\CloudSecurityCompliance\V1\GetCloudControlRequest;

    /**
     * @param string $formattedName The name of the cloud control to retrieve, in one of the
     *                              following formats:
     *                              `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
     *                              or
     *                              `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
     *
     *                              The only supported location is `global`. Please see
     *                              {@see ConfigClient::cloudControlName()} for help formatting this field.
     */
    function get_cloud_control_sample(string $formattedName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new GetCloudControlRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            /** @var CloudControl $response */
            $response = $configClient->getCloudControl($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
    {
        $formattedName = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]');

        get_cloud_control_sample($formattedName);
    }

### getFramework

Gets details about a framework.

This method retrieves the latest major version of the framework.

To retrieve a specific major version, include `major_revision_id` in
the request.

The async variant is [ConfigClient::getFrameworkAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__getFrameworkAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.GetFrameworkRequest` 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-securitycompliance/latest/V1.Framework` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\Framework;
    use Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkRequest;

    /**
     * @param string $formattedName The name of the framework to retrieve, in one of the following
     *                              formats:
     *                              `organizations/{organization}/locations/{location}/frameworks/{framework}`
     *                              or
     *                              `projects/{project}/locations/{location}/frameworks/{framework}`.
     *
     *                              The only supported location is `global`. Please see
     *                              {@see ConfigClient::frameworkName()} for help formatting this field.
     */
    function get_framework_sample(string $formattedName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new GetFrameworkRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            /** @var Framework $response */
            $response = $configClient->getFramework($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
    {
        $formattedName = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]');

        get_framework_sample($formattedName);
    }

### listCloudControls

Lists the cloud controls (both built-in and custom) that are available
in a given parent resource. The latest major version of each cloud control
is returned.

This method supports pagination.

The async variant is [ConfigClient::listCloudControlsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__listCloudControlsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.ListCloudControlsRequest` 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\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\CloudControl;
    use Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlsRequest;

    /**
     * @param string $formattedParent The parent resource name, in one of the following formats:
     *                                - `organizations/{organization}/locations/{location}`
     *                                - `projects/{project}/locations/{location}`.
     *
     *                                The only supported location is `global`. Please see
     *                                {@see ConfigClient::organizationLocationName()} for help formatting this field.
     */
    function list_cloud_controls_sample(string $formattedParent): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new ListCloudControlsRequest())
            ->setParent($formattedParent);

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

            /** @var CloudControl $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
    {
        $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');

        list_cloud_controls_sample($formattedParent);
    }

### listFrameworks

Lists the frameworks (both built-in and custom) that are available within
the parent resource. The latest major version of each framework is
returned.

This method supports pagination.

The async variant is [ConfigClient::listFrameworksAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__listFrameworksAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.ListFrameworksRequest` 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\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\Framework;
    use Google\Cloud\CloudSecurityCompliance\V1\ListFrameworksRequest;

    /**
     * @param string $formattedParent The parent resource name, in one of the following formats:
     *                                - `organizations/{organization}/locations/{location}`
     *                                - `projects/{project}/locations/{location}`.
     *
     *                                The only supported location is `global`. Please see
     *                                {@see ConfigClient::organizationLocationName()} for help formatting this field.
     */
    function list_frameworks_sample(string $formattedParent): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = (new ListFrameworksRequest())
            ->setParent($formattedParent);

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

            /** @var Framework $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
    {
        $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]');

        list_frameworks_sample($formattedParent);
    }

### updateCloudControl

Updates a custom cloud control.

This method allows for partial updates of a cloud control. Use the
`update_mask` to specify which fields to update. Consider the following:

- If you provide an `update_mask`, only the fields that are specified in the mask are updated.
- If you don't provide an `update_mask`, all the fields that are present in the request's `cloud_control` body are used to overwrite the existing resource.

You can only update cloud controls with the `CUSTOM` type.
A successful update creates a new version of the cloud control.

The async variant is [ConfigClient::updateCloudControlAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__updateCloudControlAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.UpdateCloudControlRequest` 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-securitycompliance/latest/V1.CloudControl` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\CloudControl;
    use Google\Cloud\CloudSecurityCompliance\V1\UpdateCloudControlRequest;

    /**
     * @param string $cloudControlName Identifier. The name of the cloud control, in either of the
     *                                 formats:
     *                                 `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
     *                                 or
     *                                 `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
     *
     *                                 The only supported location is `global`.
     */
    function update_cloud_control_sample(string $cloudControlName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $cloudControl = (new CloudControl())
            ->setName($cloudControlName);
        $request = (new UpdateCloudControlRequest())
            ->setCloudControl($cloudControl);

        // Call the API and handle any network failures.
        try {
            /** @var CloudControl $response */
            $response = $configClient->updateCloudControl($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
    {
        $cloudControlName = '[NAME]';

        update_cloud_control_sample($cloudControlName);
    }

### updateFramework

Updates a custom framework.

This method allows for partial updates of a framework. Use the
`update_mask` to specify which fields to update. Consider the following:

- If you provide an `update_mask`, only the fields that are specified in the mask are updated.
- If you don't provide an `update_mask`, all the fields that are present in the request's `framework` body are used to overwrite the existing resource.

You can only update frameworks with the `CUSTOM` type.
A successful update creates a new version of the framework.

The async variant is [ConfigClient::updateFrameworkAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__updateFrameworkAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.UpdateFrameworkRequest` 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-securitycompliance/latest/V1.Framework` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\CloudSecurityCompliance\V1\Framework;
    use Google\Cloud\CloudSecurityCompliance\V1\UpdateFrameworkRequest;

    /**
     * @param string $frameworkName Identifier. The name of the framework, in one of the following
     *                              formats:
     *                              `organizations/{organization}/locations/{location}/frameworks/{framework}`
     *                              or
     *                              `projects/{project}/locations/{location}/frameworks/{framework}`.
     *
     *                              The only supported location is `global`.
     */
    function update_framework_sample(string $frameworkName): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $framework = (new Framework())
            ->setName($frameworkName);
        $request = (new UpdateFrameworkRequest())
            ->setFramework($framework);

        // Call the API and handle any network failures.
        try {
            /** @var Framework $response */
            $response = $configClient->updateFramework($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
    {
        $frameworkName = '[NAME]';

        update_framework_sample($frameworkName);
    }

### getLocation

Gets information about a location.

The async variant is [ConfigClient::getLocationAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__getLocationAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.GetLocationRequest.html` 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/common-protos/latest/Cloud.Location.Location.html` |   |

**Example**

    use Google\ApiCore\ApiException;
    use Google\Cloud\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\Location\GetLocationRequest;
    use Google\Cloud\Location\Location;

    /**
     * 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 get_location_sample(): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = new GetLocationRequest();

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

### listLocations

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in
the [ListLocationsRequest.name](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.ListLocationsRequest.html#_Google_Cloud_Location_ListLocationsRequest__getName__) field: \*
*Global locations* *: If `name` is empty, the method lists the
public locations available to all projects. \* \*\*Project-specific
locations* \*: If `name` follows the format
`projects/{project}`, the method lists locations visible to that
specific project. This includes public, private, or other
project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is
passed as the `name` field. For direct service calls, the resource
name is
incorporated into the request path based on the specific service
implementation and version.

The async variant is [ConfigClient::listLocationsAsync()](https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.Client.ConfigClient#_Google_Cloud_CloudSecurityCompliance_V1_Client_ConfigClient__listLocationsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.ListLocationsRequest.html` 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\CloudSecurityCompliance\V1\Client\ConfigClient;
    use Google\Cloud\Location\ListLocationsRequest;
    use Google\Cloud\Location\Location;

    /**
     * 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 list_locations_sample(): void
    {
        // Create a client.
        $configClient = new ConfigClient();

        // Prepare the request message.
        $request = new ListLocationsRequest();

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

            /** @var Location $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());
        }
    }

### createCloudControlAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CreateCloudControlRequest` |
| `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-securitycompliance/latest/V1.CloudControl>` |   |

### createFrameworkAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CreateFrameworkRequest` |
| `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-securitycompliance/latest/V1.Framework>` |   |

### deleteCloudControlAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.DeleteCloudControlRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<void>` |   |

### deleteFrameworkAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.DeleteFrameworkRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<void>` |   |

### getCloudControlAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.GetCloudControlRequest` |
| `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-securitycompliance/latest/V1.CloudControl>` |   |

### getFrameworkAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.GetFrameworkRequest` |
| `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-securitycompliance/latest/V1.Framework>` |   |

### listCloudControlsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.ListCloudControlsRequest` |
| `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>` |   |

### listFrameworksAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.ListFrameworksRequest` |
| `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>` |   |

### updateCloudControlAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.UpdateCloudControlRequest` |
| `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-securitycompliance/latest/V1.CloudControl>` |   |

### updateFrameworkAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.UpdateFrameworkRequest` |
| `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-securitycompliance/latest/V1.Framework>` |   |

### getLocationAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.GetLocationRequest.html` |
| `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/common-protos/latest/Cloud.Location.Location.html>` |   |

### listLocationsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.ListLocationsRequest.html` |
| `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>` |   |

### static::cloudControlName

Formats a string containing the fully-qualified path to represent a
cloud_control resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organization` | `string` |
| `location` | `string` |
| `cloudControl` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted cloud_control resource. |

### static::frameworkName

Formats a string containing the fully-qualified path to represent a framework
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organization` | `string` |
| `location` | `string` |
| `framework` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted framework resource. |

### static::locationName

Formats a string containing the fully-qualified path to represent a location
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `location` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted location resource. |

### static::organizationLocationName

Formats a string containing the fully-qualified path to represent a
organization_location resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organization` | `string` |
| `location` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted organization_location resource. |

### static::organizationLocationCloudControlName

Formats a string containing the fully-qualified path to represent a
organization_location_cloud_control resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organization` | `string` |
| `location` | `string` |
| `cloudControl` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted organization_location_cloud_control resource. |

### static::organizationLocationFrameworkName

Formats a string containing the fully-qualified path to represent a
organization_location_framework resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `organization` | `string` |
| `location` | `string` |
| `framework` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted organization_location_framework resource. |

### static::projectLocationCloudControlName

Formats a string containing the fully-qualified path to represent a
project_location_cloud_control resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `location` | `string` |
| `cloudControl` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted project_location_cloud_control resource. |

### static::projectLocationFrameworkName

Formats a string containing the fully-qualified path to represent a
project_location_framework resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` |
| `location` | `string` |
| `framework` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted project_location_framework resource. |

### static::parseName

Parses a formatted name string and returns an associative array of the components in the name.

The following name formats are supported:
Template: Pattern

- cloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
- framework: organizations/{organization}/locations/{location}/frameworks/{framework}
- location: projects/{project}/locations/{location}
- organizationLocation: organizations/{organization}/locations/{location}
- organizationLocationCloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
- organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework}
- projectLocationCloudControl: projects/{project}/locations/{location}/cloudControls/{cloud_control}
- projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework}

The optional $template argument can be supplied to specify a particular pattern,
and must match one of the templates listed above. If no $template argument is
provided, or if the $template argument does not match one of the templates
listed, then parseName will check each of the supported templates, and return
the first match.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `formattedName` | `string` The formatted name string |
| `template` | `?string` Optional name of template to match |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` | An associative array from name component IDs to component values. |