diff --git a/SecurityCenter/metadata/V2/BigqueryExport.php b/SecurityCenter/metadata/V2/BigqueryExport.php
index b3bd3445ab67..7cb61bdba227 100644
--- a/SecurityCenter/metadata/V2/BigqueryExport.php
+++ b/SecurityCenter/metadata/V2/BigqueryExport.php
@@ -19,10 +19,10 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'
-
-4google/cloud/securitycenter/v2/bigquery_export.protogoogle.cloud.securitycenter.v2google/api/resource.protogoogle/protobuf/timestamp.proto"
-BigQueryExport
-name (
+
+4google/cloud/securitycenter/v2/bigquery_export.protogoogle.cloud.securitycenter.v2google/api/resource.protogoogle/protobuf/timestamp.proto"
+BigQueryExport
+name ( BA
description (
filter (
dataset ( 4
diff --git a/SecurityCenter/metadata/V2/Finding.php b/SecurityCenter/metadata/V2/Finding.php
index ce87104095b8..db08fd18a472 100644
Binary files a/SecurityCenter/metadata/V2/Finding.php and b/SecurityCenter/metadata/V2/Finding.php differ
diff --git a/SecurityCenter/metadata/V2/MitreAttack.php b/SecurityCenter/metadata/V2/MitreAttack.php
index 61d429ac69c1..cbf3c915fd90 100644
Binary files a/SecurityCenter/metadata/V2/MitreAttack.php and b/SecurityCenter/metadata/V2/MitreAttack.php differ
diff --git a/SecurityCenter/metadata/V2/MuteConfig.php b/SecurityCenter/metadata/V2/MuteConfig.php
index 6b092319f8dd..cfac4e23b502 100644
Binary files a/SecurityCenter/metadata/V2/MuteConfig.php and b/SecurityCenter/metadata/V2/MuteConfig.php differ
diff --git a/SecurityCenter/metadata/V2/NotificationConfig.php b/SecurityCenter/metadata/V2/NotificationConfig.php
index 8493156c21bb..e54e75bba0c1 100644
Binary files a/SecurityCenter/metadata/V2/NotificationConfig.php and b/SecurityCenter/metadata/V2/NotificationConfig.php differ
diff --git a/SecurityCenter/metadata/V2/ResourceValueConfig.php b/SecurityCenter/metadata/V2/ResourceValueConfig.php
index 8b11b3f6e653..47c26bef68ad 100644
Binary files a/SecurityCenter/metadata/V2/ResourceValueConfig.php and b/SecurityCenter/metadata/V2/ResourceValueConfig.php differ
diff --git a/SecurityCenter/metadata/V2/SecuritycenterService.php b/SecurityCenter/metadata/V2/SecuritycenterService.php
index b0afb9ba07b8..2dcdcefa8de6 100644
Binary files a/SecurityCenter/metadata/V2/SecuritycenterService.php and b/SecurityCenter/metadata/V2/SecuritycenterService.php differ
diff --git a/SecurityCenter/metadata/V2/Vulnerability.php b/SecurityCenter/metadata/V2/Vulnerability.php
index 91fca7d9ea31..1bc7524830e1 100644
Binary files a/SecurityCenter/metadata/V2/Vulnerability.php and b/SecurityCenter/metadata/V2/Vulnerability.php differ
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/batch_create_resource_value_configs.php b/SecurityCenter/samples/V2/SecurityCenterClient/batch_create_resource_value_configs.php
index f2258fa62849..281c4612caa1 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/batch_create_resource_value_configs.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/batch_create_resource_value_configs.php
@@ -34,29 +34,22 @@
* Creates a ResourceValueConfig for an organization. Maps user's tags to
* difference resource values for use by the attack path simulation.
*
- * @param string $formattedParent Resource name of the new ResourceValueConfig's parent.
- * The parent field in the CreateResourceValueConfigRequest
- * messages must either be empty or match this field. Please see
- * {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
- * @param string $formattedRequestsParent Resource name of the new ResourceValueConfig's parent. Please see
- * {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
- * @param string $requestsResourceValueConfigTagValuesElement Tag values combined with AND
to check against.
- * Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
- * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
+ * @param string $formattedParent Resource name of the new ResourceValueConfig's parent.
+ * The parent field in the CreateResourceValueConfigRequest
+ * messages must either be empty or match this field. Please see
+ * {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
+ * @param string $formattedRequestsParent Resource name of the new ResourceValueConfig's parent. Please see
+ * {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*/
function batch_create_resource_value_configs_sample(
string $formattedParent,
- string $formattedRequestsParent,
- string $requestsResourceValueConfigTagValuesElement
+ string $formattedRequestsParent
): void {
// Create a client.
$securityCenterClient = new SecurityCenterClient();
// Prepare the request message.
- $requestsResourceValueConfigTagValues = [$requestsResourceValueConfigTagValuesElement,];
- $requestsResourceValueConfig = (new ResourceValueConfig())
- ->setTagValues($requestsResourceValueConfigTagValues);
+ $requestsResourceValueConfig = new ResourceValueConfig();
$createResourceValueConfigRequest = (new CreateResourceValueConfigRequest())
->setParent($formattedRequestsParent)
->setResourceValueConfig($requestsResourceValueConfig);
@@ -91,12 +84,7 @@ function callSample(): void
'[ORGANIZATION]',
'[LOCATION]'
);
- $requestsResourceValueConfigTagValuesElement = '[TAG_VALUES]';
- batch_create_resource_value_configs_sample(
- $formattedParent,
- $formattedRequestsParent,
- $requestsResourceValueConfigTagValuesElement
- );
+ batch_create_resource_value_configs_sample($formattedParent, $formattedRequestsParent);
}
// [END securitycenter_v2_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync]
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/create_big_query_export.php b/SecurityCenter/samples/V2/SecurityCenterClient/create_big_query_export.php
index deac9b2687cd..289bd1397a78 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/create_big_query_export.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/create_big_query_export.php
@@ -32,9 +32,9 @@
* Creates a BigQuery export.
*
* @param string $formattedParent The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param string $bigQueryExportId Unique identifier provided by the client within the parent scope.
* It must consist of only lowercase letters, numbers, and hyphens, must start
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/create_mute_config.php b/SecurityCenter/samples/V2/SecurityCenterClient/create_mute_config.php
index 397847206476..299d3b4c4ecd 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/create_mute_config.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/create_mute_config.php
@@ -33,9 +33,9 @@
* Creates a mute config.
*
* @param string $formattedParent Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param string $muteConfigFilter An expression that defines the filter to apply across
* create/update events of findings. While creating a filter string, be
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/create_notification_config.php b/SecurityCenter/samples/V2/SecurityCenterClient/create_notification_config.php
index 773db97e5540..56b0c7c4d50e 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/create_notification_config.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/create_notification_config.php
@@ -32,9 +32,9 @@
* Creates a notification config.
*
* @param string $formattedParent Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param string $configId Required.
* Unique identifier provided by the client within the parent scope.
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/create_source.php b/SecurityCenter/samples/V2/SecurityCenterClient/create_source.php
index 5bf33ef01ff3..7590e812bc20 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/create_source.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/create_source.php
@@ -32,7 +32,7 @@
* Creates a source.
*
* @param string $formattedParent Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]". Please see
+ * `organizations/[organization_id]`. Please see
* {@see SecurityCenterClient::organizationName()} for help formatting this field.
*/
function create_source_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/get_simulation.php b/SecurityCenter/samples/V2/SecurityCenterClient/get_simulation.php
index 323b8e239677..6d1fbe6eaa2a 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/get_simulation.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/get_simulation.php
@@ -35,8 +35,8 @@
* @param string $formattedName The organization name or simulation name of this simulation
*
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
* Please see {@see SecurityCenterClient::simulationName()} for help formatting this field.
*/
function get_simulation_sample(string $formattedName): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/get_source.php b/SecurityCenter/samples/V2/SecurityCenterClient/get_source.php
index d9edaa9e9ff7..55c4f661ae27 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/get_source.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/get_source.php
@@ -32,7 +32,7 @@
* Gets a source.
*
* @param string $formattedName Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]". Please see
+ * `organizations/[organization_id]/source/[source_id]`. Please see
* {@see SecurityCenterClient::sourceName()} for help formatting this field.
*/
function get_source_sample(string $formattedName): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/get_valued_resource.php b/SecurityCenter/samples/V2/SecurityCenterClient/get_valued_resource.php
index 56b54dd0da66..45add923b48b 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/get_valued_resource.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/get_valued_resource.php
@@ -34,7 +34,7 @@
* @param string $formattedName The name of this valued resource
*
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* Please see {@see SecurityCenterClient::valuedResourceName()} for help formatting this field.
*/
function get_valued_resource_sample(string $formattedName): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_attack_paths.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_attack_paths.php
index c73ae4482d56..081b90cb6038 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_attack_paths.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_attack_paths.php
@@ -36,10 +36,10 @@
* @param string $formattedParent Name of parent to list attack paths.
*
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* Please see {@see SecurityCenterClient::organizationValuedResourceName()} for help formatting this field.
*/
function list_attack_paths_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_big_query_exports.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_big_query_exports.php
index 98209ecb6106..9bdb8e081e34 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_big_query_exports.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_big_query_exports.php
@@ -37,9 +37,9 @@
* within the folder are returned.
*
* @param string $formattedParent The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*/
function list_big_query_exports_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_mute_configs.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_mute_configs.php
index c9f315f496ee..115670ab58bd 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_mute_configs.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_mute_configs.php
@@ -34,11 +34,11 @@
* global.
*
* @param string $formattedParent The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]". Please see
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*/
function list_mute_configs_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_resource_value_configs.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_resource_value_configs.php
index 63ea9e8e6697..3183e4943470 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_resource_value_configs.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_resource_value_configs.php
@@ -34,7 +34,7 @@
*
* @param string $formattedParent The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
* Please see {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*/
function list_resource_value_configs_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_sources.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_sources.php
index 47b9882c05dd..7433d3b72adb 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_sources.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_sources.php
@@ -33,8 +33,8 @@
* Lists all sources belonging to an organization.
*
* @param string $formattedParent Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]". Please see
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`. Please see
* {@see SecurityCenterClient::projectName()} for help formatting this field.
*/
function list_sources_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/list_valued_resources.php b/SecurityCenter/samples/V2/SecurityCenterClient/list_valued_resources.php
index b3732d2b7a53..74f15e7fdd67 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/list_valued_resources.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/list_valued_resources.php
@@ -35,9 +35,9 @@
* @param string $formattedParent Name of parent to list exposed resources.
*
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
* Please see {@see SecurityCenterClient::simulationName()} for help formatting this field.
*/
function list_valued_resources_sample(string $formattedParent): void
diff --git a/SecurityCenter/samples/V2/SecurityCenterClient/update_resource_value_config.php b/SecurityCenter/samples/V2/SecurityCenterClient/update_resource_value_config.php
index 88655d00e356..d49884bd7356 100644
--- a/SecurityCenter/samples/V2/SecurityCenterClient/update_resource_value_config.php
+++ b/SecurityCenter/samples/V2/SecurityCenterClient/update_resource_value_config.php
@@ -31,20 +31,19 @@
/**
* Updates an existing ResourceValueConfigs with new rules.
*
- * @param string $resourceValueConfigTagValuesElement Tag values combined with AND
to check against.
- * Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
- * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
+ * 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 update_resource_value_config_sample(string $resourceValueConfigTagValuesElement): void
+function update_resource_value_config_sample(): void
{
// Create a client.
$securityCenterClient = new SecurityCenterClient();
// Prepare the request message.
- $resourceValueConfigTagValues = [$resourceValueConfigTagValuesElement,];
- $resourceValueConfig = (new ResourceValueConfig())
- ->setTagValues($resourceValueConfigTagValues);
+ $resourceValueConfig = new ResourceValueConfig();
$request = (new UpdateResourceValueConfigRequest())
->setResourceValueConfig($resourceValueConfig);
@@ -57,20 +56,4 @@ function update_resource_value_config_sample(string $resourceValueConfigTagValue
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
-{
- $resourceValueConfigTagValuesElement = '[TAG_VALUES]';
-
- update_resource_value_config_sample($resourceValueConfigTagValuesElement);
-}
// [END securitycenter_v2_generated_SecurityCenter_UpdateResourceValueConfig_sync]
diff --git a/SecurityCenter/src/V2/AttackExposure.php b/SecurityCenter/src/V2/AttackExposure.php
index 0406bb57fe01..f4ac5597b159 100644
--- a/SecurityCenter/src/V2/AttackExposure.php
+++ b/SecurityCenter/src/V2/AttackExposure.php
@@ -32,7 +32,7 @@ class AttackExposure extends \Google\Protobuf\Internal\Message
/**
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score.
- * Example: organizations/123/simulations/456/attackExposureResults/789
+ * Example: `organizations/123/simulations/456/attackExposureResults/789`
*
* Generated from protobuf field string attack_exposure_result = 3;
*/
@@ -81,7 +81,7 @@ class AttackExposure extends \Google\Protobuf\Internal\Message
* @type string $attack_exposure_result
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score.
- * Example: organizations/123/simulations/456/attackExposureResults/789
+ * Example: `organizations/123/simulations/456/attackExposureResults/789`
* @type int $state
* Output only. What state this AttackExposure is in. This captures whether or
* not an attack exposure has been calculated or not.
@@ -170,7 +170,7 @@ public function setLatestCalculationTime($var)
/**
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score.
- * Example: organizations/123/simulations/456/attackExposureResults/789
+ * Example: `organizations/123/simulations/456/attackExposureResults/789`
*
* Generated from protobuf field string attack_exposure_result = 3;
* @return string
@@ -183,7 +183,7 @@ public function getAttackExposureResult()
/**
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score.
- * Example: organizations/123/simulations/456/attackExposureResults/789
+ * Example: `organizations/123/simulations/456/attackExposureResults/789`
*
* Generated from protobuf field string attack_exposure_result = 3;
* @param string $var
diff --git a/SecurityCenter/src/V2/AttackPath/AttackPathNode.php b/SecurityCenter/src/V2/AttackPath/AttackPathNode.php
index bb5f5b9d7030..7e3ab2a0704d 100644
--- a/SecurityCenter/src/V2/AttackPath/AttackPathNode.php
+++ b/SecurityCenter/src/V2/AttackPath/AttackPathNode.php
@@ -19,14 +19,14 @@ class AttackPathNode extends \Google\Protobuf\Internal\Message
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
- * format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
+ * format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
*
* Generated from protobuf field string resource = 1;
*/
private $resource = '';
/**
* The [supported resource
- * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
+ * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
*
* Generated from protobuf field string resource_type = 2;
*/
@@ -66,10 +66,10 @@ class AttackPathNode extends \Google\Protobuf\Internal\Message
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
- * format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
+ * format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
* @type string $resource_type
* The [supported resource
- * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
+ * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
* @type string $display_name
* Human-readable name of this resource.
* @type array<\Google\Cloud\SecurityCenter\V2\AttackPath\AttackPathNode\PathNodeAssociatedFinding>|\Google\Protobuf\Internal\RepeatedField $associated_findings
@@ -89,7 +89,7 @@ public function __construct($data = NULL) {
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
- * format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
+ * format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
*
* Generated from protobuf field string resource = 1;
* @return string
@@ -103,7 +103,7 @@ public function getResource()
* The name of the resource at this point in the attack path.
* The format of the name follows the Cloud Asset Inventory [resource
* name
- * format]("https://cloud.google.com/asset-inventory/docs/resource-name-format")
+ * format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
*
* Generated from protobuf field string resource = 1;
* @param string $var
@@ -119,7 +119,7 @@ public function setResource($var)
/**
* The [supported resource
- * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
+ * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
*
* Generated from protobuf field string resource_type = 2;
* @return string
@@ -131,7 +131,7 @@ public function getResourceType()
/**
* The [supported resource
- * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types")
+ * type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
*
* Generated from protobuf field string resource_type = 2;
* @param string $var
diff --git a/SecurityCenter/src/V2/AttackPath/AttackPathNode/PathNodeAssociatedFinding.php b/SecurityCenter/src/V2/AttackPath/AttackPathNode/PathNodeAssociatedFinding.php
index 9723c776e05e..bb2cd7a72881 100644
--- a/SecurityCenter/src/V2/AttackPath/AttackPathNode/PathNodeAssociatedFinding.php
+++ b/SecurityCenter/src/V2/AttackPath/AttackPathNode/PathNodeAssociatedFinding.php
@@ -17,7 +17,7 @@ class PathNodeAssociatedFinding extends \Google\Protobuf\Internal\Message
{
/**
* Canonical name of the associated findings. Example:
- * organizations/123/sources/456/findings/789
+ * `organizations/123/sources/456/findings/789`
*
* Generated from protobuf field string canonical_finding = 1;
*/
@@ -43,7 +43,7 @@ class PathNodeAssociatedFinding extends \Google\Protobuf\Internal\Message
*
* @type string $canonical_finding
* Canonical name of the associated findings. Example:
- * organizations/123/sources/456/findings/789
+ * `organizations/123/sources/456/findings/789`
* @type string $finding_category
* The additional taxonomy group within findings from a given source.
* @type string $name
@@ -57,7 +57,7 @@ public function __construct($data = NULL) {
/**
* Canonical name of the associated findings. Example:
- * organizations/123/sources/456/findings/789
+ * `organizations/123/sources/456/findings/789`
*
* Generated from protobuf field string canonical_finding = 1;
* @return string
@@ -69,7 +69,7 @@ public function getCanonicalFinding()
/**
* Canonical name of the associated findings. Example:
- * organizations/123/sources/456/findings/789
+ * `organizations/123/sources/456/findings/789`
*
* Generated from protobuf field string canonical_finding = 1;
* @param string $var
diff --git a/SecurityCenter/src/V2/AzureMetadata/AzureManagementGroup.php b/SecurityCenter/src/V2/AzureMetadata/AzureManagementGroup.php
index 3c5e0ce771bf..2d201dfa34b3 100644
--- a/SecurityCenter/src/V2/AzureMetadata/AzureManagementGroup.php
+++ b/SecurityCenter/src/V2/AzureMetadata/AzureManagementGroup.php
@@ -17,7 +17,7 @@ class AzureManagementGroup extends \Google\Protobuf\Internal\Message
{
/**
* The UUID of the Azure management group, for example,
- * "20000000-0001-0000-0000-000000000000".
+ * `20000000-0001-0000-0000-000000000000`.
*
* Generated from protobuf field string id = 1;
*/
@@ -37,7 +37,7 @@ class AzureManagementGroup extends \Google\Protobuf\Internal\Message
*
* @type string $id
* The UUID of the Azure management group, for example,
- * "20000000-0001-0000-0000-000000000000".
+ * `20000000-0001-0000-0000-000000000000`.
* @type string $display_name
* The display name of the Azure management group.
* }
@@ -49,7 +49,7 @@ public function __construct($data = NULL) {
/**
* The UUID of the Azure management group, for example,
- * "20000000-0001-0000-0000-000000000000".
+ * `20000000-0001-0000-0000-000000000000`.
*
* Generated from protobuf field string id = 1;
* @return string
@@ -61,7 +61,7 @@ public function getId()
/**
* The UUID of the Azure management group, for example,
- * "20000000-0001-0000-0000-000000000000".
+ * `20000000-0001-0000-0000-000000000000`.
*
* Generated from protobuf field string id = 1;
* @param string $var
diff --git a/SecurityCenter/src/V2/AzureMetadata/AzureSubscription.php b/SecurityCenter/src/V2/AzureMetadata/AzureSubscription.php
index 574fc4fbc544..efdbc2c33662 100644
--- a/SecurityCenter/src/V2/AzureMetadata/AzureSubscription.php
+++ b/SecurityCenter/src/V2/AzureMetadata/AzureSubscription.php
@@ -17,7 +17,7 @@ class AzureSubscription extends \Google\Protobuf\Internal\Message
{
/**
* The UUID of the Azure subscription, for example,
- * "291bba3f-e0a5-47bc-a099-3bdcb2a50a05".
+ * `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
*
* Generated from protobuf field string id = 1;
*/
@@ -37,7 +37,7 @@ class AzureSubscription extends \Google\Protobuf\Internal\Message
*
* @type string $id
* The UUID of the Azure subscription, for example,
- * "291bba3f-e0a5-47bc-a099-3bdcb2a50a05".
+ * `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
* @type string $display_name
* The display name of the Azure subscription.
* }
@@ -49,7 +49,7 @@ public function __construct($data = NULL) {
/**
* The UUID of the Azure subscription, for example,
- * "291bba3f-e0a5-47bc-a099-3bdcb2a50a05".
+ * `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
*
* Generated from protobuf field string id = 1;
* @return string
@@ -61,7 +61,7 @@ public function getId()
/**
* The UUID of the Azure subscription, for example,
- * "291bba3f-e0a5-47bc-a099-3bdcb2a50a05".
+ * `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
*
* Generated from protobuf field string id = 1;
* @param string $var
diff --git a/SecurityCenter/src/V2/BigQueryExport.php b/SecurityCenter/src/V2/BigQueryExport.php
index f39b6fa08879..b39102da8ba4 100644
--- a/SecurityCenter/src/V2/BigQueryExport.php
+++ b/SecurityCenter/src/V2/BigQueryExport.php
@@ -16,7 +16,7 @@
class BigQueryExport extends \Google\Protobuf\Internal\Message
{
/**
- * The relative resource name of this export. See:
+ * Identifier. The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* The following list shows some examples:
* +
@@ -27,7 +27,7 @@ class BigQueryExport extends \Google\Protobuf\Internal\Message
* This field is provided in responses, and is ignored when provided in create
* requests.
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
private $name = '';
/**
@@ -59,7 +59,7 @@ class BigQueryExport extends \Google\Protobuf\Internal\Message
/**
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]".
- * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers
+ * BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers
* (0-9), or underscores (_).
*
* Generated from protobuf field string dataset = 4;
@@ -104,7 +104,7 @@ class BigQueryExport extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * The relative resource name of this export. See:
+ * Identifier. The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* The following list shows some examples:
* +
@@ -135,7 +135,7 @@ class BigQueryExport extends \Google\Protobuf\Internal\Message
* @type string $dataset
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]".
- * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers
+ * BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers
* (0-9), or underscores (_).
* @type \Google\Protobuf\Timestamp $create_time
* Output only. The time at which the BigQuery export was created.
@@ -160,7 +160,7 @@ public function __construct($data = NULL) {
}
/**
- * The relative resource name of this export. See:
+ * Identifier. The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* The following list shows some examples:
* +
@@ -171,7 +171,7 @@ public function __construct($data = NULL) {
* This field is provided in responses, and is ignored when provided in create
* requests.
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -180,7 +180,7 @@ public function getName()
}
/**
- * The relative resource name of this export. See:
+ * Identifier. The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* The following list shows some examples:
* +
@@ -191,7 +191,7 @@ public function getName()
* This field is provided in responses, and is ignored when provided in create
* requests.
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
@@ -286,7 +286,7 @@ public function setFilter($var)
/**
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]".
- * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers
+ * BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers
* (0-9), or underscores (_).
*
* Generated from protobuf field string dataset = 4;
@@ -300,7 +300,7 @@ public function getDataset()
/**
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]".
- * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers
+ * BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers
* (0-9), or underscores (_).
*
* Generated from protobuf field string dataset = 4;
diff --git a/SecurityCenter/src/V2/BulkMuteFindingsRequest.php b/SecurityCenter/src/V2/BulkMuteFindingsRequest.php
index 38b4d0cd078b..8f8eb0cfbba6 100644
--- a/SecurityCenter/src/V2/BulkMuteFindingsRequest.php
+++ b/SecurityCenter/src/V2/BulkMuteFindingsRequest.php
@@ -53,6 +53,14 @@ class BulkMuteFindingsRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string filter = 2;
*/
private $filter = '';
+ /**
+ * Optional. All findings matching the given filter will have their mute state
+ * set to this value. The default value is `MUTED`. Setting this to
+ * `UNDEFINED` will clear the mute state on all matching findings.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteState mute_state = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $mute_state = 0;
/**
* @param string $parent Required. The parent, at which bulk action needs to be applied. If no
@@ -108,6 +116,10 @@ public static function build(string $parent): self
* * string literals in quotes.
* * integer literals without quotes.
* * boolean literals `true` and `false` without quotes.
+ * @type int $mute_state
+ * Optional. All findings matching the given filter will have their mute state
+ * set to this value. The default value is `MUTED`. Setting this to
+ * `UNDEFINED` will clear the mute state on all matching findings.
* }
*/
public function __construct($data = NULL) {
@@ -211,5 +223,35 @@ public function setFilter($var)
return $this;
}
+ /**
+ * Optional. All findings matching the given filter will have their mute state
+ * set to this value. The default value is `MUTED`. Setting this to
+ * `UNDEFINED` will clear the mute state on all matching findings.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteState mute_state = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return int
+ */
+ public function getMuteState()
+ {
+ return $this->mute_state;
+ }
+
+ /**
+ * Optional. All findings matching the given filter will have their mute state
+ * set to this value. The default value is `MUTED`. Setting this to
+ * `UNDEFINED` will clear the mute state on all matching findings.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteState mute_state = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param int $var
+ * @return $this
+ */
+ public function setMuteState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenter\V2\BulkMuteFindingsRequest\MuteState::class);
+ $this->mute_state = $var;
+
+ return $this;
+ }
+
}
diff --git a/SecurityCenter/src/V2/BulkMuteFindingsRequest/MuteState.php b/SecurityCenter/src/V2/BulkMuteFindingsRequest/MuteState.php
new file mode 100644
index 000000000000..dca8f2e47425
--- /dev/null
+++ b/SecurityCenter/src/V2/BulkMuteFindingsRequest/MuteState.php
@@ -0,0 +1,64 @@
+google.cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteState
+ */
+class MuteState
+{
+ /**
+ * Unused.
+ *
+ * Generated from protobuf enum MUTE_STATE_UNSPECIFIED = 0;
+ */
+ const MUTE_STATE_UNSPECIFIED = 0;
+ /**
+ * Matching findings will be muted (default).
+ *
+ * Generated from protobuf enum MUTED = 1;
+ */
+ const MUTED = 1;
+ /**
+ * Matching findings will have their mute state cleared.
+ *
+ * Generated from protobuf enum UNDEFINED = 2;
+ */
+ const UNDEFINED = 2;
+
+ private static $valueToName = [
+ self::MUTE_STATE_UNSPECIFIED => 'MUTE_STATE_UNSPECIFIED',
+ self::MUTED => 'MUTED',
+ self::UNDEFINED => 'UNDEFINED',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(MuteState::class, \Google\Cloud\SecurityCenter\V2\BulkMuteFindingsRequest_MuteState::class);
+
diff --git a/SecurityCenter/src/V2/CreateBigQueryExportRequest.php b/SecurityCenter/src/V2/CreateBigQueryExportRequest.php
index ab4e7326045d..f7f84e6b27f6 100644
--- a/SecurityCenter/src/V2/CreateBigQueryExportRequest.php
+++ b/SecurityCenter/src/V2/CreateBigQueryExportRequest.php
@@ -17,9 +17,9 @@ class CreateBigQueryExportRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -42,9 +42,9 @@ class CreateBigQueryExportRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenter\V2\BigQueryExport $bigQueryExport Required. The BigQuery export being created.
* @param string $bigQueryExportId Required. Unique identifier provided by the client within the parent scope.
@@ -72,9 +72,9 @@ public static function build(string $parent, \Google\Cloud\SecurityCenter\V2\Big
*
* @type string $parent
* Required. The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
* @type \Google\Cloud\SecurityCenter\V2\BigQueryExport $big_query_export
* Required. The BigQuery export being created.
* @type string $big_query_export_id
@@ -91,9 +91,9 @@ public function __construct($data = NULL) {
/**
* Required. The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -105,9 +105,9 @@ public function getParent()
/**
* Required. The name of the parent resource of the new BigQuery export. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/CreateMuteConfigRequest.php b/SecurityCenter/src/V2/CreateMuteConfigRequest.php
index 60ba038c1096..6023891af271 100644
--- a/SecurityCenter/src/V2/CreateMuteConfigRequest.php
+++ b/SecurityCenter/src/V2/CreateMuteConfigRequest.php
@@ -17,9 +17,9 @@ class CreateMuteConfigRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -42,9 +42,9 @@ class CreateMuteConfigRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenter\V2\MuteConfig $muteConfig Required. The mute config being created.
* @param string $muteConfigId Required. Unique identifier provided by the client within the parent scope.
@@ -72,9 +72,9 @@ public static function build(string $parent, \Google\Cloud\SecurityCenter\V2\Mut
*
* @type string $parent
* Required. Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
* @type \Google\Cloud\SecurityCenter\V2\MuteConfig $mute_config
* Required. The mute config being created.
* @type string $mute_config_id
@@ -91,9 +91,9 @@ public function __construct($data = NULL) {
/**
* Required. Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -105,9 +105,9 @@ public function getParent()
/**
* Required. Resource name of the new mute configs's parent. Its format is
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/CreateNotificationConfigRequest.php b/SecurityCenter/src/V2/CreateNotificationConfigRequest.php
index 6325b5810447..11c87bf68e93 100644
--- a/SecurityCenter/src/V2/CreateNotificationConfigRequest.php
+++ b/SecurityCenter/src/V2/CreateNotificationConfigRequest.php
@@ -17,9 +17,9 @@ class CreateNotificationConfigRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -44,9 +44,9 @@ class CreateNotificationConfigRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenter\V2\NotificationConfig $notificationConfig Required. The notification config being created. The name and the service
* account will be ignored as they are both output only fields on this
@@ -76,9 +76,9 @@ public static function build(string $parent, \Google\Cloud\SecurityCenter\V2\Not
*
* @type string $parent
* Required. Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
* @type string $config_id
* Required.
* Unique identifier provided by the client within the parent scope.
@@ -97,9 +97,9 @@ public function __construct($data = NULL) {
/**
* Required. Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -111,9 +111,9 @@ public function getParent()
/**
* Required. Resource name of the new notification config's parent. Its format
- * is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/CreateSourceRequest.php b/SecurityCenter/src/V2/CreateSourceRequest.php
index a78011590a6c..9951dfea8c60 100644
--- a/SecurityCenter/src/V2/CreateSourceRequest.php
+++ b/SecurityCenter/src/V2/CreateSourceRequest.php
@@ -17,7 +17,7 @@ class CreateSourceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]".
+ * `organizations/[organization_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -32,7 +32,7 @@ class CreateSourceRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]". Please see
+ * `organizations/[organization_id]`. Please see
* {@see SecurityCenterClient::organizationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenter\V2\Source $source Required. The Source being created, only the display_name and description
* will be used. All other fields will be ignored.
@@ -56,7 +56,7 @@ public static function build(string $parent, \Google\Cloud\SecurityCenter\V2\Sou
*
* @type string $parent
* Required. Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]".
+ * `organizations/[organization_id]`.
* @type \Google\Cloud\SecurityCenter\V2\Source $source
* Required. The Source being created, only the display_name and description
* will be used. All other fields will be ignored.
@@ -69,7 +69,7 @@ public function __construct($data = NULL) {
/**
* Required. Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]".
+ * `organizations/[organization_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -81,7 +81,7 @@ public function getParent()
/**
* Required. Resource name of the new source's parent. Its format should be
- * "organizations/[organization_id]".
+ * `organizations/[organization_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/Cve.php b/SecurityCenter/src/V2/Cve.php
index 4feee5414f75..6b5652527735 100644
--- a/SecurityCenter/src/V2/Cve.php
+++ b/SecurityCenter/src/V2/Cve.php
@@ -69,6 +69,12 @@ class Cve extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool zero_day = 8;
*/
private $zero_day = false;
+ /**
+ * Date the first publicly available exploit or PoC was released.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp exploit_release_date = 9;
+ */
+ private $exploit_release_date = null;
/**
* Constructor.
@@ -95,6 +101,8 @@ class Cve extends \Google\Protobuf\Internal\Message
* @type bool $zero_day
* Whether or not the vulnerability was zero day when the finding was
* published.
+ * @type \Google\Protobuf\Timestamp $exploit_release_date
+ * Date the first publicly available exploit or PoC was released.
* }
*/
public function __construct($data = NULL) {
@@ -326,5 +334,41 @@ public function setZeroDay($var)
return $this;
}
+ /**
+ * Date the first publicly available exploit or PoC was released.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp exploit_release_date = 9;
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getExploitReleaseDate()
+ {
+ return $this->exploit_release_date;
+ }
+
+ public function hasExploitReleaseDate()
+ {
+ return isset($this->exploit_release_date);
+ }
+
+ public function clearExploitReleaseDate()
+ {
+ unset($this->exploit_release_date);
+ }
+
+ /**
+ * Date the first publicly available exploit or PoC was released.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp exploit_release_date = 9;
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setExploitReleaseDate($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->exploit_release_date = $var;
+
+ return $this;
+ }
+
}
diff --git a/SecurityCenter/src/V2/Finding.php b/SecurityCenter/src/V2/Finding.php
index baf0e8c66dab..b9650f5cf626 100644
--- a/SecurityCenter/src/V2/Finding.php
+++ b/SecurityCenter/src/V2/Finding.php
@@ -156,6 +156,12 @@ class Finding extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.securitycenter.v2.Finding.Mute mute = 15;
*/
private $mute = 0;
+ /**
+ * Output only. The mute information regarding this finding.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo mute_info = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $mute_info = null;
/**
* The class of the finding.
*
@@ -502,6 +508,8 @@ class Finding extends \Google\Protobuf\Internal\Message
* Indicates the mute state of a finding (either muted, unmuted
* or undefined). Unlike other attributes of a finding, a finding provider
* shouldn't set the value of mute.
+ * @type \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo $mute_info
+ * Output only. The mute information regarding this finding.
* @type int $finding_class
* The class of the finding.
* @type \Google\Cloud\SecurityCenter\V2\Indicator $indicator
@@ -1104,6 +1112,42 @@ public function setMute($var)
return $this;
}
+ /**
+ * Output only. The mute information regarding this finding.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo mute_info = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo|null
+ */
+ public function getMuteInfo()
+ {
+ return $this->mute_info;
+ }
+
+ public function hasMuteInfo()
+ {
+ return isset($this->mute_info);
+ }
+
+ public function clearMuteInfo()
+ {
+ unset($this->mute_info);
+ }
+
+ /**
+ * Output only. The mute information regarding this finding.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo mute_info = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo $var
+ * @return $this
+ */
+ public function setMuteInfo($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo::class);
+ $this->mute_info = $var;
+
+ return $this;
+ }
+
/**
* The class of the finding.
*
diff --git a/SecurityCenter/src/V2/Finding/MuteInfo.php b/SecurityCenter/src/V2/Finding/MuteInfo.php
new file mode 100644
index 000000000000..976b5661af23
--- /dev/null
+++ b/SecurityCenter/src/V2/Finding/MuteInfo.php
@@ -0,0 +1,119 @@
+google.cloud.securitycenter.v2.Finding.MuteInfo
+ */
+class MuteInfo extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * If set, the static mute applied to this finding. Static mutes override
+ * dynamic mutes. If unset, there is no static mute.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo.StaticMute static_mute = 1;
+ */
+ private $static_mute = null;
+ /**
+ * The list of dynamic mute rules that currently match the finding.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycenter.v2.Finding.MuteInfo.DynamicMuteRecord dynamic_mute_records = 2;
+ */
+ private $dynamic_mute_records;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\StaticMute $static_mute
+ * If set, the static mute applied to this finding. Static mutes override
+ * dynamic mutes. If unset, there is no static mute.
+ * @type array<\Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\DynamicMuteRecord>|\Google\Protobuf\Internal\RepeatedField $dynamic_mute_records
+ * The list of dynamic mute rules that currently match the finding.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycenter\V2\Finding::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * If set, the static mute applied to this finding. Static mutes override
+ * dynamic mutes. If unset, there is no static mute.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo.StaticMute static_mute = 1;
+ * @return \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\StaticMute|null
+ */
+ public function getStaticMute()
+ {
+ return $this->static_mute;
+ }
+
+ public function hasStaticMute()
+ {
+ return isset($this->static_mute);
+ }
+
+ public function clearStaticMute()
+ {
+ unset($this->static_mute);
+ }
+
+ /**
+ * If set, the static mute applied to this finding. Static mutes override
+ * dynamic mutes. If unset, there is no static mute.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.MuteInfo.StaticMute static_mute = 1;
+ * @param \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\StaticMute $var
+ * @return $this
+ */
+ public function setStaticMute($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\StaticMute::class);
+ $this->static_mute = $var;
+
+ return $this;
+ }
+
+ /**
+ * The list of dynamic mute rules that currently match the finding.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycenter.v2.Finding.MuteInfo.DynamicMuteRecord dynamic_mute_records = 2;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getDynamicMuteRecords()
+ {
+ return $this->dynamic_mute_records;
+ }
+
+ /**
+ * The list of dynamic mute rules that currently match the finding.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycenter.v2.Finding.MuteInfo.DynamicMuteRecord dynamic_mute_records = 2;
+ * @param array<\Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\DynamicMuteRecord>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setDynamicMuteRecords($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenter\V2\Finding\MuteInfo\DynamicMuteRecord::class);
+ $this->dynamic_mute_records = $arr;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(MuteInfo::class, \Google\Cloud\SecurityCenter\V2\Finding_MuteInfo::class);
+
diff --git a/SecurityCenter/src/V2/Finding/MuteInfo/DynamicMuteRecord.php b/SecurityCenter/src/V2/Finding/MuteInfo/DynamicMuteRecord.php
new file mode 100644
index 000000000000..917b45d6e907
--- /dev/null
+++ b/SecurityCenter/src/V2/Finding/MuteInfo/DynamicMuteRecord.php
@@ -0,0 +1,126 @@
+google.cloud.securitycenter.v2.Finding.MuteInfo.DynamicMuteRecord
+ */
+class DynamicMuteRecord extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The relative resource name of the mute rule, represented by a mute
+ * config, that created this record, for example
+ * `organizations/123/muteConfigs/mymuteconfig` or
+ * `organizations/123/locations/global/muteConfigs/mymuteconfig`.
+ *
+ * Generated from protobuf field string mute_config = 1;
+ */
+ private $mute_config = '';
+ /**
+ * When the dynamic mute rule first matched the finding.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp match_time = 2;
+ */
+ private $match_time = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $mute_config
+ * The relative resource name of the mute rule, represented by a mute
+ * config, that created this record, for example
+ * `organizations/123/muteConfigs/mymuteconfig` or
+ * `organizations/123/locations/global/muteConfigs/mymuteconfig`.
+ * @type \Google\Protobuf\Timestamp $match_time
+ * When the dynamic mute rule first matched the finding.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycenter\V2\Finding::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The relative resource name of the mute rule, represented by a mute
+ * config, that created this record, for example
+ * `organizations/123/muteConfigs/mymuteconfig` or
+ * `organizations/123/locations/global/muteConfigs/mymuteconfig`.
+ *
+ * Generated from protobuf field string mute_config = 1;
+ * @return string
+ */
+ public function getMuteConfig()
+ {
+ return $this->mute_config;
+ }
+
+ /**
+ * The relative resource name of the mute rule, represented by a mute
+ * config, that created this record, for example
+ * `organizations/123/muteConfigs/mymuteconfig` or
+ * `organizations/123/locations/global/muteConfigs/mymuteconfig`.
+ *
+ * Generated from protobuf field string mute_config = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setMuteConfig($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->mute_config = $var;
+
+ return $this;
+ }
+
+ /**
+ * When the dynamic mute rule first matched the finding.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp match_time = 2;
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getMatchTime()
+ {
+ return $this->match_time;
+ }
+
+ public function hasMatchTime()
+ {
+ return isset($this->match_time);
+ }
+
+ public function clearMatchTime()
+ {
+ unset($this->match_time);
+ }
+
+ /**
+ * When the dynamic mute rule first matched the finding.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp match_time = 2;
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setMatchTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->match_time = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(DynamicMuteRecord::class, \Google\Cloud\SecurityCenter\V2\Finding_MuteInfo_DynamicMuteRecord::class);
+
diff --git a/SecurityCenter/src/V2/Finding/MuteInfo/StaticMute.php b/SecurityCenter/src/V2/Finding/MuteInfo/StaticMute.php
new file mode 100644
index 000000000000..756228ccc748
--- /dev/null
+++ b/SecurityCenter/src/V2/Finding/MuteInfo/StaticMute.php
@@ -0,0 +1,120 @@
+google.cloud.securitycenter.v2.Finding.MuteInfo.StaticMute
+ */
+class StaticMute extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The static mute state. If the value is `MUTED` or `UNMUTED`, then the
+ * finding's overall mute state will have the same value.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.Mute state = 1;
+ */
+ private $state = 0;
+ /**
+ * When the static mute was applied.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp apply_time = 2;
+ */
+ private $apply_time = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $state
+ * The static mute state. If the value is `MUTED` or `UNMUTED`, then the
+ * finding's overall mute state will have the same value.
+ * @type \Google\Protobuf\Timestamp $apply_time
+ * When the static mute was applied.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycenter\V2\Finding::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The static mute state. If the value is `MUTED` or `UNMUTED`, then the
+ * finding's overall mute state will have the same value.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.Mute state = 1;
+ * @return int
+ */
+ public function getState()
+ {
+ return $this->state;
+ }
+
+ /**
+ * The static mute state. If the value is `MUTED` or `UNMUTED`, then the
+ * finding's overall mute state will have the same value.
+ *
+ * Generated from protobuf field .google.cloud.securitycenter.v2.Finding.Mute state = 1;
+ * @param int $var
+ * @return $this
+ */
+ public function setState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenter\V2\Finding\Mute::class);
+ $this->state = $var;
+
+ return $this;
+ }
+
+ /**
+ * When the static mute was applied.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp apply_time = 2;
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getApplyTime()
+ {
+ return $this->apply_time;
+ }
+
+ public function hasApplyTime()
+ {
+ return isset($this->apply_time);
+ }
+
+ public function clearApplyTime()
+ {
+ unset($this->apply_time);
+ }
+
+ /**
+ * When the static mute was applied.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp apply_time = 2;
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setApplyTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->apply_time = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(StaticMute::class, \Google\Cloud\SecurityCenter\V2\Finding_MuteInfo_StaticMute::class);
+
diff --git a/SecurityCenter/src/V2/GetSimulationRequest.php b/SecurityCenter/src/V2/GetSimulationRequest.php
index 0777b82be83d..34d1ff92b0f2 100644
--- a/SecurityCenter/src/V2/GetSimulationRequest.php
+++ b/SecurityCenter/src/V2/GetSimulationRequest.php
@@ -20,8 +20,8 @@ class GetSimulationRequest extends \Google\Protobuf\Internal\Message
/**
* Required. The organization name or simulation name of this simulation
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -31,8 +31,8 @@ class GetSimulationRequest extends \Google\Protobuf\Internal\Message
* @param string $name Required. The organization name or simulation name of this simulation
*
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
* Please see {@see SecurityCenterClient::simulationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\GetSimulationRequest
@@ -54,8 +54,8 @@ public static function build(string $name): self
* @type string $name
* Required. The organization name or simulation name of this simulation
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
* }
*/
public function __construct($data = NULL) {
@@ -66,8 +66,8 @@ public function __construct($data = NULL) {
/**
* Required. The organization name or simulation name of this simulation
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -80,8 +80,8 @@ public function getName()
/**
* Required. The organization name or simulation name of this simulation
* Valid format:
- * "organizations/{organization}/simulations/latest"
- * "organizations/{organization}/simulations/{simulation}"
+ * `organizations/{organization}/simulations/latest`
+ * `organizations/{organization}/simulations/{simulation}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/GetSourceRequest.php b/SecurityCenter/src/V2/GetSourceRequest.php
index e0c3a1f4137e..1beb6daf00ac 100644
--- a/SecurityCenter/src/V2/GetSourceRequest.php
+++ b/SecurityCenter/src/V2/GetSourceRequest.php
@@ -17,7 +17,7 @@ class GetSourceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]".
+ * `organizations/[organization_id]/source/[source_id]`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -25,7 +25,7 @@ class GetSourceRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $name Required. Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]". Please see
+ * `organizations/[organization_id]/source/[source_id]`. Please see
* {@see SecurityCenterClient::sourceName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\GetSourceRequest
@@ -46,7 +46,7 @@ public static function build(string $name): self
*
* @type string $name
* Required. Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]".
+ * `organizations/[organization_id]/source/[source_id]`.
* }
*/
public function __construct($data = NULL) {
@@ -56,7 +56,7 @@ public function __construct($data = NULL) {
/**
* Required. Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]".
+ * `organizations/[organization_id]/source/[source_id]`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -68,7 +68,7 @@ public function getName()
/**
* Required. Relative resource name of the source. Its format is
- * "organizations/[organization_id]/source/[source_id]".
+ * `organizations/[organization_id]/source/[source_id]`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/GetValuedResourceRequest.php b/SecurityCenter/src/V2/GetValuedResourceRequest.php
index 16aa612c4b12..f35da2ff0948 100644
--- a/SecurityCenter/src/V2/GetValuedResourceRequest.php
+++ b/SecurityCenter/src/V2/GetValuedResourceRequest.php
@@ -18,7 +18,7 @@ class GetValuedResourceRequest extends \Google\Protobuf\Internal\Message
/**
* Required. The name of this valued resource
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -28,7 +28,7 @@ class GetValuedResourceRequest extends \Google\Protobuf\Internal\Message
* @param string $name Required. The name of this valued resource
*
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* Please see {@see SecurityCenterClient::valuedResourceName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\GetValuedResourceRequest
@@ -50,7 +50,7 @@ public static function build(string $name): self
* @type string $name
* Required. The name of this valued resource
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* }
*/
public function __construct($data = NULL) {
@@ -61,7 +61,7 @@ public function __construct($data = NULL) {
/**
* Required. The name of this valued resource
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -74,7 +74,7 @@ public function getName()
/**
* Required. The name of this valued resource
* Valid format:
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListAttackPathsRequest.php b/SecurityCenter/src/V2/ListAttackPathsRequest.php
index cb5f28d84547..90dea926fb13 100644
--- a/SecurityCenter/src/V2/ListAttackPathsRequest.php
+++ b/SecurityCenter/src/V2/ListAttackPathsRequest.php
@@ -19,10 +19,10 @@ class ListAttackPathsRequest extends \Google\Protobuf\Internal\Message
/**
* Required. Name of parent to list attack paths.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -55,10 +55,10 @@ class ListAttackPathsRequest extends \Google\Protobuf\Internal\Message
* @param string $parent Required. Name of parent to list attack paths.
*
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* Please see {@see SecurityCenterClient::organizationValuedResourceName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListAttackPathsRequest
@@ -80,10 +80,10 @@ public static function build(string $parent): self
* @type string $parent
* Required. Name of parent to list attack paths.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
* @type string $filter
* The filter expression that filters the attack path in the response.
* Supported fields:
@@ -105,10 +105,10 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent to list attack paths.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -121,10 +121,10 @@ public function getParent()
/**
* Required. Name of parent to list attack paths.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
- * "organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListBigQueryExportsRequest.php b/SecurityCenter/src/V2/ListBigQueryExportsRequest.php
index 4da995e007d0..1992c858e24a 100644
--- a/SecurityCenter/src/V2/ListBigQueryExportsRequest.php
+++ b/SecurityCenter/src/V2/ListBigQueryExportsRequest.php
@@ -18,9 +18,9 @@ class ListBigQueryExportsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -46,9 +46,9 @@ class ListBigQueryExportsRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]". Please see
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListBigQueryExportsRequest
@@ -69,9 +69,9 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
* @type int $page_size
* The maximum number of configs to return. The service may return fewer than
* this value.
@@ -91,9 +91,9 @@ public function __construct($data = NULL) {
/**
* Required. The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -105,9 +105,9 @@ public function getParent()
/**
* Required. The parent, which owns the collection of BigQuery exports. Its
- * format is "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]", or
- * "projects/[project_id]/locations/[location_id]".
+ * format is `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`, or
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListFindingsResponse/ListFindingsResult/Resource.php b/SecurityCenter/src/V2/ListFindingsResponse/ListFindingsResult/Resource.php
index e58fdf65c499..54e79fde4355 100644
--- a/SecurityCenter/src/V2/ListFindingsResponse/ListFindingsResult/Resource.php
+++ b/SecurityCenter/src/V2/ListFindingsResponse/ListFindingsResult/Resource.php
@@ -62,13 +62,13 @@ class Resource extends \Google\Protobuf\Internal\Message
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
@@ -106,13 +106,13 @@ class Resource extends \Google\Protobuf\Internal\Message
* @type string $resource_path_string
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
* }
*/
@@ -411,13 +411,13 @@ public function setResourcePath($var)
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
@@ -431,13 +431,13 @@ public function getResourcePathString()
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
diff --git a/SecurityCenter/src/V2/ListMuteConfigsRequest.php b/SecurityCenter/src/V2/ListMuteConfigsRequest.php
index d00ebe21ff89..d048837e18c4 100644
--- a/SecurityCenter/src/V2/ListMuteConfigsRequest.php
+++ b/SecurityCenter/src/V2/ListMuteConfigsRequest.php
@@ -19,11 +19,11 @@ class ListMuteConfigsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -49,11 +49,11 @@ class ListMuteConfigsRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]". Please see
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`. Please see
* {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListMuteConfigsRequest
@@ -74,11 +74,11 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`.
* @type int $page_size
* The maximum number of configs to return. The service may return fewer than
* this value.
@@ -98,11 +98,11 @@ public function __construct($data = NULL) {
/**
* Required. The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -114,11 +114,11 @@ public function getParent()
/**
* Required. The parent, which owns the collection of mute configs. Its format
- * is "organizations/[organization_id]", "folders/[folder_id]",
- * "projects/[project_id]",
- * "organizations/[organization_id]/locations/[location_id]",
- * "folders/[folder_id]/locations/[location_id]",
- * "projects/[project_id]/locations/[location_id]".
+ * is `organizations/[organization_id]", "folders/[folder_id]`,
+ * `projects/[project_id]`,
+ * `organizations/[organization_id]/locations/[location_id]`,
+ * `folders/[folder_id]/locations/[location_id]`,
+ * `projects/[project_id]/locations/[location_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListResourceValueConfigsRequest.php b/SecurityCenter/src/V2/ListResourceValueConfigsRequest.php
index ae84858e7c34..d843f09587f0 100644
--- a/SecurityCenter/src/V2/ListResourceValueConfigsRequest.php
+++ b/SecurityCenter/src/V2/ListResourceValueConfigsRequest.php
@@ -18,7 +18,7 @@ class ListResourceValueConfigsRequest extends \Google\Protobuf\Internal\Message
/**
* Required. The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -47,7 +47,7 @@ class ListResourceValueConfigsRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
* Please see {@see SecurityCenterClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListResourceValueConfigsRequest
@@ -69,7 +69,7 @@ public static function build(string $parent): self
* @type string $parent
* Required. The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
* @type int $page_size
* The maximum number of configs to return. The service may return fewer than
* this value.
@@ -92,7 +92,7 @@ public function __construct($data = NULL) {
/**
* Required. The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -105,7 +105,7 @@ public function getParent()
/**
* Required. The parent, which owns the collection of resource value configs.
* Its format is
- * "organizations/[organization_id]"
+ * `organizations/[organization_id]`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListSourcesRequest.php b/SecurityCenter/src/V2/ListSourcesRequest.php
index 92cee94261f4..70e46a11de96 100644
--- a/SecurityCenter/src/V2/ListSourcesRequest.php
+++ b/SecurityCenter/src/V2/ListSourcesRequest.php
@@ -17,8 +17,8 @@ class ListSourcesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]".
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -41,8 +41,8 @@ class ListSourcesRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]". Please see
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`. Please see
* {@see SecurityCenterClient::projectName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListSourcesRequest
@@ -63,8 +63,8 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]".
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`.
* @type string $page_token
* The value returned by the last `ListSourcesResponse`; indicates
* that this is a continuation of a prior `ListSources` call, and
@@ -81,8 +81,8 @@ public function __construct($data = NULL) {
/**
* Required. Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]".
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -94,8 +94,8 @@ public function getParent()
/**
* Required. Resource name of the parent of sources to list. Its format should
- * be "organizations/[organization_id]", "folders/[folder_id]", or
- * "projects/[project_id]".
+ * be `organizations/[organization_id]`, `folders/[folder_id]`, or
+ * `projects/[project_id]`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/ListValuedResourcesRequest.php b/SecurityCenter/src/V2/ListValuedResourcesRequest.php
index a6f05d94156e..914c67d7a66b 100644
--- a/SecurityCenter/src/V2/ListValuedResourcesRequest.php
+++ b/SecurityCenter/src/V2/ListValuedResourcesRequest.php
@@ -18,9 +18,9 @@ class ListValuedResourcesRequest extends \Google\Protobuf\Internal\Message
/**
* Required. Name of parent to list exposed resources.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -69,9 +69,9 @@ class ListValuedResourcesRequest extends \Google\Protobuf\Internal\Message
* @param string $parent Required. Name of parent to list exposed resources.
*
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
* Please see {@see SecurityCenterClient::simulationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenter\V2\ListValuedResourcesRequest
@@ -93,9 +93,9 @@ public static function build(string $parent): self
* @type string $parent
* Required. Name of parent to list exposed resources.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
* @type string $filter
* The filter expression that filters the valued resources in the response.
* Supported fields:
@@ -129,9 +129,9 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent to list exposed resources.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -144,9 +144,9 @@ public function getParent()
/**
* Required. Name of parent to list exposed resources.
* Valid formats:
- * "organizations/{organization}",
- * "organizations/{organization}/simulations/{simulation}"
- * "organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}"
+ * `organizations/{organization}`,
+ * `organizations/{organization}/simulations/{simulation}`
+ * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenter/src/V2/MitreAttack/Technique.php b/SecurityCenter/src/V2/MitreAttack/Technique.php
index 158c67ead96a..efbbbfc11cce 100644
--- a/SecurityCenter/src/V2/MitreAttack/Technique.php
+++ b/SecurityCenter/src/V2/MitreAttack/Technique.php
@@ -9,7 +9,7 @@
/**
* MITRE ATT&CK techniques that can be referenced by SCC findings.
* See: https://attack.mitre.org/techniques/enterprise/
- * Next ID: 63
+ * Next ID: 65
*
* Protobuf type google.cloud.securitycenter.v2.MitreAttack.Technique
*/
@@ -75,6 +75,12 @@ class Technique
* Generated from protobuf enum PYTHON = 59;
*/
const PYTHON = 59;
+ /**
+ * T1068
+ *
+ * Generated from protobuf enum EXPLOITATION_FOR_PRIVILEGE_ESCALATION = 63;
+ */
+ const EXPLOITATION_FOR_PRIVILEGE_ESCALATION = 63;
/**
* T1069
*
@@ -87,6 +93,12 @@ class Technique
* Generated from protobuf enum CLOUD_GROUPS = 19;
*/
const CLOUD_GROUPS = 19;
+ /**
+ * T1070.004
+ *
+ * Generated from protobuf enum INDICATOR_REMOVAL_FILE_DELETION = 64;
+ */
+ const INDICATOR_REMOVAL_FILE_DELETION = 64;
/**
* T1071
*
@@ -370,7 +382,7 @@ class Technique
*/
const SCANNING_IP_BLOCKS = 2;
/**
- * T1613
+ * T1609
*
* Generated from protobuf enum CONTAINER_ADMINISTRATION_COMMAND = 60;
*/
@@ -405,8 +417,10 @@ class Technique
self::COMMAND_AND_SCRIPTING_INTERPRETER => 'COMMAND_AND_SCRIPTING_INTERPRETER',
self::UNIX_SHELL => 'UNIX_SHELL',
self::PYTHON => 'PYTHON',
+ self::EXPLOITATION_FOR_PRIVILEGE_ESCALATION => 'EXPLOITATION_FOR_PRIVILEGE_ESCALATION',
self::PERMISSION_GROUPS_DISCOVERY => 'PERMISSION_GROUPS_DISCOVERY',
self::CLOUD_GROUPS => 'CLOUD_GROUPS',
+ self::INDICATOR_REMOVAL_FILE_DELETION => 'INDICATOR_REMOVAL_FILE_DELETION',
self::APPLICATION_LAYER_PROTOCOL => 'APPLICATION_LAYER_PROTOCOL',
self::DNS => 'DNS',
self::SOFTWARE_DEPLOYMENT_TOOLS => 'SOFTWARE_DEPLOYMENT_TOOLS',
diff --git a/SecurityCenter/src/V2/MuteConfig.php b/SecurityCenter/src/V2/MuteConfig.php
index e66317ce6896..6e54394c519a 100644
--- a/SecurityCenter/src/V2/MuteConfig.php
+++ b/SecurityCenter/src/V2/MuteConfig.php
@@ -17,8 +17,8 @@
class MuteConfig extends \Google\Protobuf\Internal\Message
{
/**
- * This field will be ignored if provided on config creation. The following
- * list shows some examples of the format:
+ * Identifier. This field will be ignored if provided on config creation. The
+ * following list shows some examples of the format:
* + `organizations/{organization}/muteConfigs/{mute_config}`
* +
* `organizations/{organization}locations/{location}//muteConfigs/{mute_config}`
@@ -27,7 +27,7 @@ class MuteConfig extends \Google\Protobuf\Internal\Message
* + `projects/{project}/muteConfigs/{mute_config}`
* + `projects/{project}/locations/{location}/muteConfigs/{mute_config}`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
private $name = '';
/**
@@ -90,6 +90,14 @@ class MuteConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.securitycenter.v2.MuteConfig.MuteConfigType type = 8 [(.google.api.field_behavior) = REQUIRED];
*/
private $type = 0;
+ /**
+ * Optional. The expiry of the mute config. Only applicable for dynamic
+ * configs. If the expiry is set, when the config expires, it is removed from
+ * all findings.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 9 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $expiry_time = null;
/**
* Constructor.
@@ -98,8 +106,8 @@ class MuteConfig extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * This field will be ignored if provided on config creation. The following
- * list shows some examples of the format:
+ * Identifier. This field will be ignored if provided on config creation. The
+ * following list shows some examples of the format:
* + `organizations/{organization}/muteConfigs/{mute_config}`
* +
* `organizations/{organization}locations/{location}//muteConfigs/{mute_config}`
@@ -143,6 +151,10 @@ class MuteConfig extends \Google\Protobuf\Internal\Message
* @type int $type
* Required. The type of the mute config, which determines what type of mute
* state the config affects. Immutable after creation.
+ * @type \Google\Protobuf\Timestamp $expiry_time
+ * Optional. The expiry of the mute config. Only applicable for dynamic
+ * configs. If the expiry is set, when the config expires, it is removed from
+ * all findings.
* }
*/
public function __construct($data = NULL) {
@@ -151,8 +163,8 @@ public function __construct($data = NULL) {
}
/**
- * This field will be ignored if provided on config creation. The following
- * list shows some examples of the format:
+ * Identifier. This field will be ignored if provided on config creation. The
+ * following list shows some examples of the format:
* + `organizations/{organization}/muteConfigs/{mute_config}`
* +
* `organizations/{organization}locations/{location}//muteConfigs/{mute_config}`
@@ -161,7 +173,7 @@ public function __construct($data = NULL) {
* + `projects/{project}/muteConfigs/{mute_config}`
* + `projects/{project}/locations/{location}/muteConfigs/{mute_config}`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -170,8 +182,8 @@ public function getName()
}
/**
- * This field will be ignored if provided on config creation. The following
- * list shows some examples of the format:
+ * Identifier. This field will be ignored if provided on config creation. The
+ * following list shows some examples of the format:
* + `organizations/{organization}/muteConfigs/{mute_config}`
* +
* `organizations/{organization}locations/{location}//muteConfigs/{mute_config}`
@@ -180,7 +192,7 @@ public function getName()
* + `projects/{project}/muteConfigs/{mute_config}`
* + `projects/{project}/locations/{location}/muteConfigs/{mute_config}`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
@@ -416,5 +428,45 @@ public function setType($var)
return $this;
}
+ /**
+ * Optional. The expiry of the mute config. Only applicable for dynamic
+ * configs. If the expiry is set, when the config expires, it is removed from
+ * all findings.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getExpiryTime()
+ {
+ return $this->expiry_time;
+ }
+
+ public function hasExpiryTime()
+ {
+ return isset($this->expiry_time);
+ }
+
+ public function clearExpiryTime()
+ {
+ unset($this->expiry_time);
+ }
+
+ /**
+ * Optional. The expiry of the mute config. Only applicable for dynamic
+ * configs. If the expiry is set, when the config expires, it is removed from
+ * all findings.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setExpiryTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->expiry_time = $var;
+
+ return $this;
+ }
+
}
diff --git a/SecurityCenter/src/V2/MuteConfig/MuteConfigType.php b/SecurityCenter/src/V2/MuteConfig/MuteConfigType.php
index c78c97ba5b5c..d7313bfb469f 100644
--- a/SecurityCenter/src/V2/MuteConfig/MuteConfigType.php
+++ b/SecurityCenter/src/V2/MuteConfig/MuteConfigType.php
@@ -27,10 +27,22 @@ class MuteConfigType
* Generated from protobuf enum STATIC = 1;
*/
const PBSTATIC = 1;
+ /**
+ * A dynamic mute config, which is applied to existing and future matching
+ * findings, setting their dynamic mute state to "muted". If the config is
+ * updated or deleted, or a matching finding is updated, such that the
+ * finding doesn't match the config, the config will be removed from the
+ * finding, and the finding's dynamic mute state may become "unmuted"
+ * (unless other configs still match).
+ *
+ * Generated from protobuf enum DYNAMIC = 2;
+ */
+ const DYNAMIC = 2;
private static $valueToName = [
self::MUTE_CONFIG_TYPE_UNSPECIFIED => 'MUTE_CONFIG_TYPE_UNSPECIFIED',
self::PBSTATIC => 'STATIC',
+ self::DYNAMIC => 'DYNAMIC',
];
public static function name($value)
diff --git a/SecurityCenter/src/V2/NotificationConfig.php b/SecurityCenter/src/V2/NotificationConfig.php
index f4c14c3725bb..26ec10f8b83b 100644
--- a/SecurityCenter/src/V2/NotificationConfig.php
+++ b/SecurityCenter/src/V2/NotificationConfig.php
@@ -18,7 +18,7 @@
class NotificationConfig extends \Google\Protobuf\Internal\Message
{
/**
- * The relative resource name of this notification config. See:
+ * Identifier. The relative resource name of this notification config. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* The following list shows some examples:
* +
@@ -28,7 +28,7 @@ class NotificationConfig extends \Google\Protobuf\Internal\Message
* +
* `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
private $name = '';
/**
@@ -60,7 +60,7 @@ class NotificationConfig extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * The relative resource name of this notification config. See:
+ * Identifier. The relative resource name of this notification config. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* The following list shows some examples:
* +
@@ -87,7 +87,7 @@ public function __construct($data = NULL) {
}
/**
- * The relative resource name of this notification config. See:
+ * Identifier. The relative resource name of this notification config. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* The following list shows some examples:
* +
@@ -97,7 +97,7 @@ public function __construct($data = NULL) {
* +
* `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -106,7 +106,7 @@ public function getName()
}
/**
- * The relative resource name of this notification config. See:
+ * Identifier. The relative resource name of this notification config. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* The following list shows some examples:
* +
@@ -116,7 +116,7 @@ public function getName()
* +
* `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
diff --git a/SecurityCenter/src/V2/Resource.php b/SecurityCenter/src/V2/Resource.php
index d7d3bb43b652..702e17308e4f 100644
--- a/SecurityCenter/src/V2/Resource.php
+++ b/SecurityCenter/src/V2/Resource.php
@@ -61,13 +61,13 @@ class Resource extends \Google\Protobuf\Internal\Message
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
@@ -105,13 +105,13 @@ class Resource extends \Google\Protobuf\Internal\Message
* @type string $resource_path_string
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
* }
*/
@@ -410,13 +410,13 @@ public function setResourcePath($var)
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
@@ -430,13 +430,13 @@ public function getResourcePathString()
/**
* A string representation of the resource path.
* For Google Cloud, it has the format of
- * organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
+ * `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
* where there can be any number of folders.
* For AWS, it has the format of
- * org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
+ * `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
* where there can be any number of organizational units.
* For Azure, it has the format of
- * mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
+ * `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
* where there can be any number of management groups.
*
* Generated from protobuf field string resource_path_string = 11;
diff --git a/SecurityCenter/src/V2/ResourceValueConfig.php b/SecurityCenter/src/V2/ResourceValueConfig.php
index e1a33c514f09..8f0948bfc1e7 100644
--- a/SecurityCenter/src/V2/ResourceValueConfig.php
+++ b/SecurityCenter/src/V2/ResourceValueConfig.php
@@ -17,30 +17,31 @@
class ResourceValueConfig extends \Google\Protobuf\Internal\Message
{
/**
- * Name for the resource value configuration
+ * Identifier. Name for the resource value configuration
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
private $name = '';
/**
* Resource value level this expression represents
- * Only required when there is no SDP mapping in the request
+ * Only required when there is no Sensitive Data Protection mapping in the
+ * request
*
* Generated from protobuf field .google.cloud.securitycenter.v2.ResourceValue resource_value = 2;
*/
private $resource_value = 0;
/**
- * Required. Tag values combined with AND
to check against.
+ * Tag values combined with `AND` to check against.
* Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
+ * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*
- * Generated from protobuf field repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field repeated string tag_values = 3;
*/
private $tag_values;
/**
* Apply resource_value only to resources that match resource_type.
- * resource_type will be checked with AND
of other resources.
+ * resource_type will be checked with `AND` of other resources.
* For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
* will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
*
@@ -50,16 +51,15 @@ class ResourceValueConfig extends \Google\Protobuf\Internal\Message
/**
* Project or folder to scope this configuration to.
* For example, "project/456" would apply this configuration only to resources
- * in "project/456" scope will be checked with AND
of other
- * resources.
+ * in "project/456" scope and will be checked with `AND` of other resources.
*
* Generated from protobuf field string scope = 5;
*/
private $scope = '';
/**
- * List of resource labels to search for, evaluated with AND
.
+ * List of resource labels to search for, evaluated with `AND`.
* For example, "resource_labels_selector": {"key": "value", "env": "prod"}
- * will match resources with labels "key": "value" AND
"env":
+ * will match resources with labels "key": "value" `AND` "env":
* "prod"
* https://cloud.google.com/resource-manager/docs/creating-managing-labels
*
@@ -107,29 +107,29 @@ class ResourceValueConfig extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Name for the resource value configuration
+ * Identifier. Name for the resource value configuration
* @type int $resource_value
* Resource value level this expression represents
- * Only required when there is no SDP mapping in the request
+ * Only required when there is no Sensitive Data Protection mapping in the
+ * request
* @type array|\Google\Protobuf\Internal\RepeatedField $tag_values
- * Required. Tag values combined with AND
to check against.
+ * Tag values combined with `AND` to check against.
* Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
+ * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
* @type string $resource_type
* Apply resource_value only to resources that match resource_type.
- * resource_type will be checked with AND
of other resources.
+ * resource_type will be checked with `AND` of other resources.
* For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
* will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
* @type string $scope
* Project or folder to scope this configuration to.
* For example, "project/456" would apply this configuration only to resources
- * in "project/456" scope will be checked with AND
of other
- * resources.
+ * in "project/456" scope and will be checked with `AND` of other resources.
* @type array|\Google\Protobuf\Internal\MapField $resource_labels_selector
- * List of resource labels to search for, evaluated with AND
.
+ * List of resource labels to search for, evaluated with `AND`.
* For example, "resource_labels_selector": {"key": "value", "env": "prod"}
- * will match resources with labels "key": "value" AND
"env":
+ * will match resources with labels "key": "value" `AND` "env":
* "prod"
* https://cloud.google.com/resource-manager/docs/creating-managing-labels
* @type string $description
@@ -153,9 +153,9 @@ public function __construct($data = NULL) {
}
/**
- * Name for the resource value configuration
+ * Identifier. Name for the resource value configuration
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -164,9 +164,9 @@ public function getName()
}
/**
- * Name for the resource value configuration
+ * Identifier. Name for the resource value configuration
*
- * Generated from protobuf field string name = 1;
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
@@ -180,7 +180,8 @@ public function setName($var)
/**
* Resource value level this expression represents
- * Only required when there is no SDP mapping in the request
+ * Only required when there is no Sensitive Data Protection mapping in the
+ * request
*
* Generated from protobuf field .google.cloud.securitycenter.v2.ResourceValue resource_value = 2;
* @return int
@@ -192,7 +193,8 @@ public function getResourceValue()
/**
* Resource value level this expression represents
- * Only required when there is no SDP mapping in the request
+ * Only required when there is no Sensitive Data Protection mapping in the
+ * request
*
* Generated from protobuf field .google.cloud.securitycenter.v2.ResourceValue resource_value = 2;
* @param int $var
@@ -207,12 +209,12 @@ public function setResourceValue($var)
}
/**
- * Required. Tag values combined with AND
to check against.
+ * Tag values combined with `AND` to check against.
* Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
+ * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*
- * Generated from protobuf field repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field repeated string tag_values = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTagValues()
@@ -221,12 +223,12 @@ public function getTagValues()
}
/**
- * Required. Tag values combined with AND
to check against.
+ * Tag values combined with `AND` to check against.
* Values in the form "tagValues/123"
- * Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
+ * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
* https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*
- * Generated from protobuf field repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field repeated string tag_values = 3;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
@@ -240,7 +242,7 @@ public function setTagValues($var)
/**
* Apply resource_value only to resources that match resource_type.
- * resource_type will be checked with AND
of other resources.
+ * resource_type will be checked with `AND` of other resources.
* For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
* will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
*
@@ -254,7 +256,7 @@ public function getResourceType()
/**
* Apply resource_value only to resources that match resource_type.
- * resource_type will be checked with AND
of other resources.
+ * resource_type will be checked with `AND` of other resources.
* For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
* will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
*
@@ -273,8 +275,7 @@ public function setResourceType($var)
/**
* Project or folder to scope this configuration to.
* For example, "project/456" would apply this configuration only to resources
- * in "project/456" scope will be checked with AND
of other
- * resources.
+ * in "project/456" scope and will be checked with `AND` of other resources.
*
* Generated from protobuf field string scope = 5;
* @return string
@@ -287,8 +288,7 @@ public function getScope()
/**
* Project or folder to scope this configuration to.
* For example, "project/456" would apply this configuration only to resources
- * in "project/456" scope will be checked with AND
of other
- * resources.
+ * in "project/456" scope and will be checked with `AND` of other resources.
*
* Generated from protobuf field string scope = 5;
* @param string $var
@@ -303,9 +303,9 @@ public function setScope($var)
}
/**
- * List of resource labels to search for, evaluated with AND
.
+ * List of resource labels to search for, evaluated with `AND`.
* For example, "resource_labels_selector": {"key": "value", "env": "prod"}
- * will match resources with labels "key": "value" AND
"env":
+ * will match resources with labels "key": "value" `AND` "env":
* "prod"
* https://cloud.google.com/resource-manager/docs/creating-managing-labels
*
@@ -318,9 +318,9 @@ public function getResourceLabelsSelector()
}
/**
- * List of resource labels to search for, evaluated with AND
.
+ * List of resource labels to search for, evaluated with `AND`.
* For example, "resource_labels_selector": {"key": "value", "env": "prod"}
- * will match resources with labels "key": "value" AND
"env":
+ * will match resources with labels "key": "value" `AND` "env":
* "prod"
* https://cloud.google.com/resource-manager/docs/creating-managing-labels
*
diff --git a/SecurityCenter/src/V2/Simulation.php b/SecurityCenter/src/V2/Simulation.php
index ce32484bc932..c4aefb8a2263 100644
--- a/SecurityCenter/src/V2/Simulation.php
+++ b/SecurityCenter/src/V2/Simulation.php
@@ -17,7 +17,7 @@ class Simulation extends \Google\Protobuf\Internal\Message
{
/**
* Full resource name of the Simulation:
- * organizations/123/simulations/456
+ * `organizations/123/simulations/456`
*
* Generated from protobuf field string name = 1;
*/
@@ -50,7 +50,7 @@ class Simulation extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Full resource name of the Simulation:
- * organizations/123/simulations/456
+ * `organizations/123/simulations/456`
* @type \Google\Protobuf\Timestamp $create_time
* Output only. Time simulation was created
* @type array<\Google\Cloud\SecurityCenter\V2\ResourceValueConfigMetadata>|\Google\Protobuf\Internal\RepeatedField $resource_value_configs_metadata
@@ -67,7 +67,7 @@ public function __construct($data = NULL) {
/**
* Full resource name of the Simulation:
- * organizations/123/simulations/456
+ * `organizations/123/simulations/456`
*
* Generated from protobuf field string name = 1;
* @return string
@@ -79,7 +79,7 @@ public function getName()
/**
* Full resource name of the Simulation:
- * organizations/123/simulations/456
+ * `organizations/123/simulations/456`
*
* Generated from protobuf field string name = 1;
* @param string $var
diff --git a/SecurityCenter/tests/Unit/V2/Client/SecurityCenterClientTest.php b/SecurityCenter/tests/Unit/V2/Client/SecurityCenterClientTest.php
index b3717581d42b..222709479b00 100644
--- a/SecurityCenter/tests/Unit/V2/Client/SecurityCenterClientTest.php
+++ b/SecurityCenter/tests/Unit/V2/Client/SecurityCenterClientTest.php
@@ -2930,8 +2930,6 @@ public function updateResourceValueConfigTest()
$transport->addResponse($expectedResponse);
// Mock request
$resourceValueConfig = new ResourceValueConfig();
- $resourceValueConfigTagValues = [];
- $resourceValueConfig->setTagValues($resourceValueConfigTagValues);
$request = (new UpdateResourceValueConfigRequest())
->setResourceValueConfig($resourceValueConfig);
$response = $gapicClient->updateResourceValueConfig($request);
@@ -2966,8 +2964,6 @@ public function updateResourceValueConfigExceptionTest()
$transport->addResponse(null, $status);
// Mock request
$resourceValueConfig = new ResourceValueConfig();
- $resourceValueConfigTagValues = [];
- $resourceValueConfig->setTagValues($resourceValueConfigTagValues);
$request = (new UpdateResourceValueConfigRequest())
->setResourceValueConfig($resourceValueConfig);
try {
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
index 6c6bc1b42034..26438e7a39d8 100644
--- a/phpstan.neon.dist
+++ b/phpstan.neon.dist
@@ -12,8 +12,6 @@ parameters:
# Ignore Monolog3 for now, as these tests run using Monolog2
- Logging/src/LogMessageProcessor/MonologV3MessageProcessor.php
- Logging/src/LogMessageProcessor/MonologV3MessageProcessor.php
- # Ignore CloudDeployGrpcClient.php because it has a method name conflict
- - Deploy/src/V1/CloudDeployGrpcClient.php
ignoreErrors:
# Problems with legacy namespaces (I'm not sure why these are throwing errors)
- '#^Class Google\\[A-Za-z1-9\\]+_[A-Za-z1-9_]+ not found\.$#'