diff --git a/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php b/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php
index 35852f0c46a..993d200288e 100644
Binary files a/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php and b/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php differ
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_event_threat_detection_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_event_threat_detection_custom_module.php
index 0fed67980e7..50ecd584c10 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_event_threat_detection_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_event_threat_detection_custom_module.php
@@ -35,10 +35,10 @@
* default.
*
* @param string $formattedParent Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function create_event_threat_detection_custom_module_sample(string $formattedParent): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_security_health_analytics_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_security_health_analytics_custom_module.php
index 1aa61900ca4..b06b2f1af7c 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_security_health_analytics_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/create_security_health_analytics_custom_module.php
@@ -34,11 +34,12 @@
* SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
* parent. These modules are enabled by default.
*
- * @param string $formattedParent Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $formattedParent Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function create_security_health_analytics_custom_module_sample(string $formattedParent): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_event_threat_detection_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_event_threat_detection_custom_module.php
index b1888fdaf7b..e922d9c138b 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_event_threat_detection_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_event_threat_detection_custom_module.php
@@ -36,9 +36,9 @@
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::eventThreatDetectionCustomModuleName()} for help formatting this field.
*/
function delete_event_threat_detection_custom_module_sample(string $formattedName): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_security_health_analytics_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_security_health_analytics_custom_module.php
index d4d8073f88e..2a00edf4efa 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_security_health_analytics_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/delete_security_health_analytics_custom_module.php
@@ -36,9 +36,9 @@
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. Please see
* {@see SecurityCenterManagementClient::securityHealthAnalyticsCustomModuleName()} for help formatting this field.
*/
function delete_security_health_analytics_custom_module_sample(string $formattedName): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_event_threat_detection_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_event_threat_detection_custom_module.php
index f150ad16955..fe58910a54e 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_event_threat_detection_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_event_threat_detection_custom_module.php
@@ -41,9 +41,9 @@
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::effectiveEventThreatDetectionCustomModuleName()} for help formatting this field.
*/
function get_effective_event_threat_detection_custom_module_sample(string $formattedName): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_security_health_analytics_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_security_health_analytics_custom_module.php
index 244ac4b3325..4fce6bdac6f 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_security_health_analytics_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_effective_security_health_analytics_custom_module.php
@@ -31,14 +31,13 @@
/**
* Gets details of a single EffectiveSecurityHealthAnalyticsCustomModule.
*
- * @param string $formattedName The resource name of the SHA custom module.
+ * @param string $formattedName The full resource name of the custom module, specified in one of
+ * the following formats:
*
- * Its format is:
- *
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". Please see
- * {@see SecurityCenterManagementClient::effectiveSecurityHealthAnalyticsCustomModuleName()} for help formatting this field.
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * Please see {@see SecurityCenterManagementClient::effectiveSecurityHealthAnalyticsCustomModuleName()} for help formatting this field.
*/
function get_effective_security_health_analytics_custom_module_sample(string $formattedName): void
{
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_event_threat_detection_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_event_threat_detection_custom_module.php
index 9818dbfb72f..ed1a4f16a9b 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_event_threat_detection_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_event_threat_detection_custom_module.php
@@ -35,9 +35,9 @@
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::eventThreatDetectionCustomModuleName()} for help formatting this field.
*/
function get_event_threat_detection_custom_module_sample(string $formattedName): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_security_center_service.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_security_center_service.php
new file mode 100644
index 00000000000..a832f451e25
--- /dev/null
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/get_security_center_service.php
@@ -0,0 +1,89 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var SecurityCenterService $response */
+ $response = $securityCenterManagementClient->getSecurityCenterService($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = SecurityCenterManagementClient::securityCenterServiceName(
+ '[PROJECT]',
+ '[LOCATION]',
+ '[SERVICE]'
+ );
+
+ get_security_center_service_sample($formattedName);
+}
+// [END securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_sync]
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_event_threat_detection_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_event_threat_detection_custom_modules.php
index f1b6f6a939c..23c295c639b 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_event_threat_detection_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_event_threat_detection_custom_modules.php
@@ -34,10 +34,10 @@
* given Resource Manager parent and its descendants.
*
* @param string $formattedParent Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_descendant_event_threat_detection_custom_modules_sample(
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_security_health_analytics_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_security_health_analytics_custom_modules.php
index 8a0b48c2cd9..16b8fca809b 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_security_health_analytics_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_descendant_security_health_analytics_custom_modules.php
@@ -33,11 +33,12 @@
* Returns a list of all resident SecurityHealthAnalyticsCustomModules under
* the given CRM parent and all of the parent's CRM descendants.
*
- * @param string $formattedParent Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $formattedParent Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_descendant_security_health_analytics_custom_modules_sample(
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_event_threat_detection_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_event_threat_detection_custom_modules.php
index a8e26e0f959..033056c3a15 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_event_threat_detection_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_event_threat_detection_custom_modules.php
@@ -35,10 +35,10 @@
* parent along with modules inherited from its ancestors.
*
* @param string $formattedParent Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_effective_event_threat_detection_custom_modules_sample(
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_security_health_analytics_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_security_health_analytics_custom_modules.php
index d3c895e2dcf..e752bde456c 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_security_health_analytics_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_effective_security_health_analytics_custom_modules.php
@@ -35,11 +35,12 @@
* parent, and inherited modules, inherited from CRM ancestors (no
* descendants).
*
- * @param string $formattedParent Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * @param string $formattedParent Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_effective_security_health_analytics_custom_modules_sample(
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_event_threat_detection_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_event_threat_detection_custom_modules.php
index 88440cfc8cf..3d1de851247 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_event_threat_detection_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_event_threat_detection_custom_modules.php
@@ -35,10 +35,10 @@
* scope of the parent along with modules inherited from ancestors.
*
* @param string $formattedParent Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_event_threat_detection_custom_modules_sample(string $formattedParent): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_center_services.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_center_services.php
new file mode 100644
index 00000000000..ead3764fc0b
--- /dev/null
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_center_services.php
@@ -0,0 +1,86 @@
+setParent($formattedParent);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var PagedListResponse $response */
+ $response = $securityCenterManagementClient->listSecurityCenterServices($request);
+
+ /** @var SecurityCenterService $element */
+ foreach ($response as $element) {
+ printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
+ }
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = SecurityCenterManagementClient::organizationLocationName(
+ '[ORGANIZATION]',
+ '[LOCATION]'
+ );
+
+ list_security_center_services_sample($formattedParent);
+}
+// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_sync]
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_health_analytics_custom_modules.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_health_analytics_custom_modules.php
index c3973601135..345420db4ca 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_health_analytics_custom_modules.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/list_security_health_analytics_custom_modules.php
@@ -34,11 +34,12 @@
* parent. This includes resident modules defined at the scope of the parent,
* and inherited modules, inherited from CRM ancestors (no descendants).
*
- * @param string $formattedParent Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $formattedParent Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*/
function list_security_health_analytics_custom_modules_sample(string $formattedParent): void
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/update_security_center_service.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/update_security_center_service.php
new file mode 100644
index 00000000000..004b435f70f
--- /dev/null
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/update_security_center_service.php
@@ -0,0 +1,62 @@
+setSecurityCenterService($securityCenterService)
+ ->setUpdateMask($updateMask);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var SecurityCenterService $response */
+ $response = $securityCenterManagementClient->updateSecurityCenterService($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+// [END securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_sync]
diff --git a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/validate_event_threat_detection_custom_module.php b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/validate_event_threat_detection_custom_module.php
index bede785fcea..651855f64a1 100644
--- a/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/validate_event_threat_detection_custom_module.php
+++ b/SecurityCenterManagement/samples/V1/SecurityCenterManagementClient/validate_event_threat_detection_custom_module.php
@@ -35,7 +35,7 @@
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}". Please see
+ * * `organizations/{organization}/locations/{location}`. Please see
* {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
* @param string $rawText The raw text of the module's contents. Used to generate error
* messages.
diff --git a/SecurityCenterManagement/src/V1/Client/SecurityCenterManagementClient.php b/SecurityCenterManagement/src/V1/Client/SecurityCenterManagementClient.php
index 1ed9613cad2..6c12ef5c301 100644
--- a/SecurityCenterManagement/src/V1/Client/SecurityCenterManagementClient.php
+++ b/SecurityCenterManagement/src/V1/Client/SecurityCenterManagementClient.php
@@ -46,17 +46,21 @@
use Google\Cloud\SecurityCenterManagement\V1\GetEffectiveEventThreatDetectionCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetEffectiveSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetEventThreatDetectionCustomModuleRequest;
+use Google\Cloud\SecurityCenterManagement\V1\GetSecurityCenterServiceRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListDescendantEventThreatDetectionCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListDescendantSecurityHealthAnalyticsCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListEffectiveEventThreatDetectionCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListEffectiveSecurityHealthAnalyticsCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListEventThreatDetectionCustomModulesRequest;
+use Google\Cloud\SecurityCenterManagement\V1\ListSecurityCenterServicesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListSecurityHealthAnalyticsCustomModulesRequest;
+use Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService;
use Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule;
use Google\Cloud\SecurityCenterManagement\V1\SimulateSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\SimulateSecurityHealthAnalyticsCustomModuleResponse;
use Google\Cloud\SecurityCenterManagement\V1\UpdateEventThreatDetectionCustomModuleRequest;
+use Google\Cloud\SecurityCenterManagement\V1\UpdateSecurityCenterServiceRequest;
use Google\Cloud\SecurityCenterManagement\V1\UpdateSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ValidateEventThreatDetectionCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ValidateEventThreatDetectionCustomModuleResponse;
@@ -80,15 +84,18 @@
* @method PromiseInterface getEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface getEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface getEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface getSecurityCenterServiceAsync(GetSecurityCenterServiceRequest $request, array $optionalArgs = [])
* @method PromiseInterface getSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface listDescendantEventThreatDetectionCustomModulesAsync(ListDescendantEventThreatDetectionCustomModulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listDescendantSecurityHealthAnalyticsCustomModulesAsync(ListDescendantSecurityHealthAnalyticsCustomModulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listEffectiveEventThreatDetectionCustomModulesAsync(ListEffectiveEventThreatDetectionCustomModulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listEffectiveSecurityHealthAnalyticsCustomModulesAsync(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listEventThreatDetectionCustomModulesAsync(ListEventThreatDetectionCustomModulesRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface listSecurityCenterServicesAsync(ListSecurityCenterServicesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listSecurityHealthAnalyticsCustomModulesAsync(ListSecurityHealthAnalyticsCustomModulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface simulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface updateSecurityCenterServiceAsync(UpdateSecurityCenterServiceRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface validateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = [])
@@ -312,6 +319,25 @@ public static function folderLocationSecurityHealthAnalyticsCustomModuleName(
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * folder_location_service resource.
+ *
+ * @param string $folder
+ * @param string $location
+ * @param string $service
+ *
+ * @return string The formatted folder_location_service resource.
+ */
+ public static function folderLocationServiceName(string $folder, string $location, string $service): string
+ {
+ return self::getPathTemplate('folderLocationService')->render([
+ 'folder' => $folder,
+ 'location' => $location,
+ 'service' => $service,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a location
* resource.
@@ -435,6 +461,28 @@ public static function organizationLocationSecurityHealthAnalyticsCustomModuleNa
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * organization_location_service resource.
+ *
+ * @param string $organization
+ * @param string $location
+ * @param string $service
+ *
+ * @return string The formatted organization_location_service resource.
+ */
+ public static function organizationLocationServiceName(
+ string $organization,
+ string $location,
+ string $service
+ ): string {
+ return self::getPathTemplate('organizationLocationService')->render([
+ 'organization' => $organization,
+ 'location' => $location,
+ 'service' => $service,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* project_location_effective_event_threat_detection_custom_module resource.
@@ -523,6 +571,44 @@ public static function projectLocationSecurityHealthAnalyticsCustomModuleName(
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * project_location_service resource.
+ *
+ * @param string $project
+ * @param string $location
+ * @param string $service
+ *
+ * @return string The formatted project_location_service resource.
+ */
+ public static function projectLocationServiceName(string $project, string $location, string $service): string
+ {
+ return self::getPathTemplate('projectLocationService')->render([
+ 'project' => $project,
+ 'location' => $location,
+ 'service' => $service,
+ ]);
+ }
+
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * security_center_service resource.
+ *
+ * @param string $project
+ * @param string $location
+ * @param string $service
+ *
+ * @return string The formatted security_center_service resource.
+ */
+ public static function securityCenterServiceName(string $project, string $location, string $service): string
+ {
+ return self::getPathTemplate('securityCenterService')->render([
+ 'project' => $project,
+ 'location' => $location,
+ 'service' => $service,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* security_health_analytics_custom_module resource.
@@ -557,16 +643,20 @@ public static function securityHealthAnalyticsCustomModuleName(
* - folderLocationEffectiveSecurityHealthAnalyticsCustomModule: folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}
* - folderLocationEventThreatDetectionCustomModule: folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
* - folderLocationSecurityHealthAnalyticsCustomModule: folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
+ * - folderLocationService: folders/{folder}/locations/{location}/securityCenterServices/{service}
* - location: projects/{project}/locations/{location}
* - organizationLocation: organizations/{organization}/locations/{location}
* - organizationLocationEffectiveEventThreatDetectionCustomModule: organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}
* - organizationLocationEffectiveSecurityHealthAnalyticsCustomModule: organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}
* - organizationLocationEventThreatDetectionCustomModule: organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
* - organizationLocationSecurityHealthAnalyticsCustomModule: organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
+ * - organizationLocationService: organizations/{organization}/locations/{location}/securityCenterServices/{service}
* - projectLocationEffectiveEventThreatDetectionCustomModule: projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}
* - projectLocationEffectiveSecurityHealthAnalyticsCustomModule: projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}
* - projectLocationEventThreatDetectionCustomModule: projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
* - projectLocationSecurityHealthAnalyticsCustomModule: projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
+ * - projectLocationService: projects/{project}/locations/{location}/securityCenterServices/{service}
+ * - securityCenterService: projects/{project}/locations/{location}/securityCenterServices/{service}
* - securityHealthAnalyticsCustomModule: organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
*
* The optional $template argument can be supplied to specify a particular pattern,
@@ -880,6 +970,35 @@ public function getEventThreatDetectionCustomModule(
return $this->startApiCall('GetEventThreatDetectionCustomModule', $request, $callOptions)->wait();
}
+ /**
+ * Gets service settings for the specified Security Command Center service.
+ *
+ * The async variant is
+ * {@see SecurityCenterManagementClient::getSecurityCenterServiceAsync()} .
+ *
+ * @example samples/V1/SecurityCenterManagementClient/get_security_center_service.php
+ *
+ * @param GetSecurityCenterServiceRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return SecurityCenterService
+ *
+ * @throws ApiException Thrown if the API call fails.
+ */
+ public function getSecurityCenterService(
+ GetSecurityCenterServiceRequest $request,
+ array $callOptions = []
+ ): SecurityCenterService {
+ return $this->startApiCall('GetSecurityCenterService', $request, $callOptions)->wait();
+ }
+
/**
* Retrieves a SecurityHealthAnalyticsCustomModule.
*
@@ -1069,6 +1188,36 @@ public function listEventThreatDetectionCustomModules(
return $this->startApiCall('ListEventThreatDetectionCustomModules', $request, $callOptions);
}
+ /**
+ * Returns a list of all Security Command Center services for the given
+ * parent.
+ *
+ * The async variant is
+ * {@see SecurityCenterManagementClient::listSecurityCenterServicesAsync()} .
+ *
+ * @example samples/V1/SecurityCenterManagementClient/list_security_center_services.php
+ *
+ * @param ListSecurityCenterServicesRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return PagedListResponse
+ *
+ * @throws ApiException Thrown if the API call fails.
+ */
+ public function listSecurityCenterServices(
+ ListSecurityCenterServicesRequest $request,
+ array $callOptions = []
+ ): PagedListResponse {
+ return $this->startApiCall('ListSecurityCenterServices', $request, $callOptions);
+ }
+
/**
* Returns a list of all SecurityHealthAnalyticsCustomModules for the given
* parent. This includes resident modules defined at the scope of the parent,
@@ -1166,6 +1315,35 @@ public function updateEventThreatDetectionCustomModule(
return $this->startApiCall('UpdateEventThreatDetectionCustomModule', $request, $callOptions)->wait();
}
+ /**
+ * Updates a Security Command Center service using the given update mask.
+ *
+ * The async variant is
+ * {@see SecurityCenterManagementClient::updateSecurityCenterServiceAsync()} .
+ *
+ * @example samples/V1/SecurityCenterManagementClient/update_security_center_service.php
+ *
+ * @param UpdateSecurityCenterServiceRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return SecurityCenterService
+ *
+ * @throws ApiException Thrown if the API call fails.
+ */
+ public function updateSecurityCenterService(
+ UpdateSecurityCenterServiceRequest $request,
+ array $callOptions = []
+ ): SecurityCenterService {
+ return $this->startApiCall('UpdateSecurityCenterService', $request, $callOptions)->wait();
+ }
+
/**
* Updates the SecurityHealthAnalyticsCustomModule under the given name based
* on the given update mask. Updating the enablement state is supported on
diff --git a/SecurityCenterManagement/src/V1/CreateEventThreatDetectionCustomModuleRequest.php b/SecurityCenterManagement/src/V1/CreateEventThreatDetectionCustomModuleRequest.php
index d61da0e767b..f10cdbc6581 100644
--- a/SecurityCenterManagement/src/V1/CreateEventThreatDetectionCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/CreateEventThreatDetectionCustomModuleRequest.php
@@ -17,10 +17,10 @@ class CreateEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Int
{
/**
* Required. Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -48,10 +48,10 @@ class CreateEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Int
/**
* @param string $parent Required. Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule $eventThreatDetectionCustomModule Required. The module to create. The
* event_threat_detection_custom_module.name will be ignored and server
@@ -76,10 +76,10 @@ public static function build(string $parent, \Google\Cloud\SecurityCenterManagem
*
* @type string $parent
* Required. Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* @type \Google\Cloud\SecurityCenterManagement\V1\EventThreatDetectionCustomModule $event_threat_detection_custom_module
* Required. The module to create. The
* event_threat_detection_custom_module.name will be ignored and server
@@ -101,10 +101,10 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -116,10 +116,10 @@ public function getParent()
/**
* Required. Name of parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/CreateSecurityHealthAnalyticsCustomModuleRequest.php b/SecurityCenterManagement/src/V1/CreateSecurityHealthAnalyticsCustomModuleRequest.php
index cf77baa4b7e..582fa03482d 100644
--- a/SecurityCenterManagement/src/V1/CreateSecurityHealthAnalyticsCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/CreateSecurityHealthAnalyticsCustomModuleRequest.php
@@ -16,11 +16,11 @@
class CreateSecurityHealthAnalyticsCustomModuleRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -46,11 +46,12 @@ class CreateSecurityHealthAnalyticsCustomModuleRequest extends \Google\Protobuf\
protected $validate_only = false;
/**
- * @param string $parent Required. Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $parent Required. Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
* @param \Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule $securityHealthAnalyticsCustomModule Required. The resource being created
*
@@ -72,11 +73,11 @@ public static function build(string $parent, \Google\Cloud\SecurityCenterManagem
* Optional. Data for populating the Message object.
*
* @type string $parent
- * Required. Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* @type \Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule $security_health_analytics_custom_module
* Required. The resource being created
* @type bool $validate_only
@@ -96,11 +97,11 @@ public function __construct($data = NULL) {
}
/**
- * Required. Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -111,11 +112,11 @@ public function getParent()
}
/**
- * Required. Name of the parent for the module. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project of the
+ * module, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/DeleteEventThreatDetectionCustomModuleRequest.php b/SecurityCenterManagement/src/V1/DeleteEventThreatDetectionCustomModuleRequest.php
index 1fe6c7ad08c..4f08f7d5180 100644
--- a/SecurityCenterManagement/src/V1/DeleteEventThreatDetectionCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/DeleteEventThreatDetectionCustomModuleRequest.php
@@ -18,9 +18,9 @@ class DeleteEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Int
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -43,9 +43,9 @@ class DeleteEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Int
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::eventThreatDetectionCustomModuleName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\DeleteEventThreatDetectionCustomModuleRequest
@@ -67,9 +67,9 @@ public static function build(string $name): self
* @type string $name
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
* @type bool $validate_only
* Optional. When set to true, only validations (including IAM checks) will
* done for the request (module will not be deleted). An OK response indicates
@@ -88,9 +88,9 @@ public function __construct($data = NULL) {
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -103,9 +103,9 @@ public function getName()
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/DeleteSecurityHealthAnalyticsCustomModuleRequest.php b/SecurityCenterManagement/src/V1/DeleteSecurityHealthAnalyticsCustomModuleRequest.php
index 3c9ec160708..ccb2146822e 100644
--- a/SecurityCenterManagement/src/V1/DeleteSecurityHealthAnalyticsCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/DeleteSecurityHealthAnalyticsCustomModuleRequest.php
@@ -18,9 +18,9 @@ class DeleteSecurityHealthAnalyticsCustomModuleRequest extends \Google\Protobuf\
/**
* Required. The resource name of the SHA custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -43,9 +43,9 @@ class DeleteSecurityHealthAnalyticsCustomModuleRequest extends \Google\Protobuf\
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. Please see
* {@see SecurityCenterManagementClient::securityHealthAnalyticsCustomModuleName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\DeleteSecurityHealthAnalyticsCustomModuleRequest
@@ -67,9 +67,9 @@ public static function build(string $name): self
* @type string $name
* Required. The resource name of the SHA custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
* @type bool $validate_only
* Optional. When set to true, only validations (including IAM checks) will
* done for the request (module will not be deleted). An OK response indicates
@@ -88,9 +88,9 @@ public function __construct($data = NULL) {
/**
* Required. The resource name of the SHA custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -103,9 +103,9 @@ public function getName()
/**
* Required. The resource name of the SHA custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
- * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}".
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/EffectiveEventThreatDetectionCustomModule.php b/SecurityCenterManagement/src/V1/EffectiveEventThreatDetectionCustomModule.php
index 90256280eee..659b3cd6a15 100644
--- a/SecurityCenterManagement/src/V1/EffectiveEventThreatDetectionCustomModule.php
+++ b/SecurityCenterManagement/src/V1/EffectiveEventThreatDetectionCustomModule.php
@@ -24,9 +24,9 @@ class EffectiveEventThreatDetectionCustomModule extends \Google\Protobuf\Interna
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
@@ -72,9 +72,9 @@ class EffectiveEventThreatDetectionCustomModule extends \Google\Protobuf\Interna
* @type string $name
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
* @type \Google\Protobuf\Struct $config
* Output only. Config for the effective module.
* @type int $enablement_state
@@ -96,9 +96,9 @@ public function __construct($data = NULL) {
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
@@ -111,9 +111,9 @@ public function getName()
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/EffectiveSecurityHealthAnalyticsCustomModule.php b/SecurityCenterManagement/src/V1/EffectiveSecurityHealthAnalyticsCustomModule.php
index 87da6b3c67d..1345238cbc2 100644
--- a/SecurityCenterManagement/src/V1/EffectiveSecurityHealthAnalyticsCustomModule.php
+++ b/SecurityCenterManagement/src/V1/EffectiveSecurityHealthAnalyticsCustomModule.php
@@ -24,13 +24,11 @@
class EffectiveSecurityHealthAnalyticsCustomModule extends \Google\Protobuf\Internal\Message
{
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
@@ -64,13 +62,11 @@ class EffectiveSecurityHealthAnalyticsCustomModule extends \Google\Protobuf\Inte
* Optional. Data for populating the Message object.
*
* @type string $name
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
* @type \Google\Cloud\SecurityCenterManagement\V1\CustomConfig $custom_config
* Output only. The user-specified configuration for the module.
* @type int $enablement_state
@@ -88,13 +84,11 @@ public function __construct($data = NULL) {
}
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
@@ -105,13 +99,11 @@ public function getName()
}
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/EventThreatDetectionCustomModule.php b/SecurityCenterManagement/src/V1/EventThreatDetectionCustomModule.php
index 871499213c6..c6dc2492db7 100644
--- a/SecurityCenterManagement/src/V1/EventThreatDetectionCustomModule.php
+++ b/SecurityCenterManagement/src/V1/EventThreatDetectionCustomModule.php
@@ -20,9 +20,9 @@ class EventThreatDetectionCustomModule extends \Google\Protobuf\Internal\Message
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
@@ -91,9 +91,9 @@ class EventThreatDetectionCustomModule extends \Google\Protobuf\Internal\Message
* @type string $name
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
* @type \Google\Protobuf\Struct $config
* Optional. Config for the module. For the resident module, its config value
* is defined at this level. For the inherited module, its config value is
@@ -126,9 +126,9 @@ public function __construct($data = NULL) {
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
@@ -141,9 +141,9 @@ public function getName()
/**
* Identifier. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/GetEffectiveEventThreatDetectionCustomModuleRequest.php b/SecurityCenterManagement/src/V1/GetEffectiveEventThreatDetectionCustomModuleRequest.php
index 5cf9e623882..34bdee84cc9 100644
--- a/SecurityCenterManagement/src/V1/GetEffectiveEventThreatDetectionCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/GetEffectiveEventThreatDetectionCustomModuleRequest.php
@@ -18,9 +18,9 @@ class GetEffectiveEventThreatDetectionCustomModuleRequest extends \Google\Protob
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -31,9 +31,9 @@ class GetEffectiveEventThreatDetectionCustomModuleRequest extends \Google\Protob
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::effectiveEventThreatDetectionCustomModuleName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\GetEffectiveEventThreatDetectionCustomModuleRequest
@@ -55,9 +55,9 @@ public static function build(string $name): self
* @type string $name
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
* }
*/
public function __construct($data = NULL) {
@@ -68,9 +68,9 @@ public function __construct($data = NULL) {
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -83,9 +83,9 @@ public function getName()
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.php b/SecurityCenterManagement/src/V1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.php
index 01e20495ef1..e784437bc70 100644
--- a/SecurityCenterManagement/src/V1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.php
@@ -16,25 +16,24 @@
class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. The resource name of the SHA custom module.
- * Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+ * Required. The full resource name of the custom module, specified in one of
+ * the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
protected $name = '';
/**
- * @param string $name Required. The resource name of the SHA custom module.
+ * @param string $name Required. The full resource name of the custom module, specified in one of
+ * the following formats:
*
- * Its format is:
- *
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". Please see
- * {@see SecurityCenterManagementClient::effectiveSecurityHealthAnalyticsCustomModuleName()} for help formatting this field.
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * Please see {@see SecurityCenterManagementClient::effectiveSecurityHealthAnalyticsCustomModuleName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
*
@@ -53,11 +52,11 @@ public static function build(string $name): self
* Optional. Data for populating the Message object.
*
* @type string $name
- * Required. The resource name of the SHA custom module.
- * Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+ * Required. The full resource name of the custom module, specified in one of
+ * the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
* }
*/
public function __construct($data = NULL) {
@@ -66,11 +65,11 @@ public function __construct($data = NULL) {
}
/**
- * Required. The resource name of the SHA custom module.
- * Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+ * Required. The full resource name of the custom module, specified in one of
+ * the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -81,11 +80,11 @@ public function getName()
}
/**
- * Required. The resource name of the SHA custom module.
- * Its format is:
- * * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
- * * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+ * Required. The full resource name of the custom module, specified in one of
+ * the following formats:
+ * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+ * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/GetEventThreatDetectionCustomModuleRequest.php b/SecurityCenterManagement/src/V1/GetEventThreatDetectionCustomModuleRequest.php
index 12b0807bc26..e280d8f676f 100644
--- a/SecurityCenterManagement/src/V1/GetEventThreatDetectionCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/GetEventThreatDetectionCustomModuleRequest.php
@@ -18,9 +18,9 @@ class GetEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Intern
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -31,9 +31,9 @@ class GetEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\Intern
*
* Its format is:
*
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". Please see
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. Please see
* {@see SecurityCenterManagementClient::eventThreatDetectionCustomModuleName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\GetEventThreatDetectionCustomModuleRequest
@@ -55,9 +55,9 @@ public static function build(string $name): self
* @type string $name
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
* }
*/
public function __construct($data = NULL) {
@@ -68,9 +68,9 @@ public function __construct($data = NULL) {
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -83,9 +83,9 @@ public function getName()
/**
* Required. The resource name of the ETD custom module.
* Its format is:
- * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
- * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}".
+ * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
+ * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/GetSecurityCenterServiceRequest.php b/SecurityCenterManagement/src/V1/GetSecurityCenterServiceRequest.php
new file mode 100644
index 00000000000..d84834c4654
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/GetSecurityCenterServiceRequest.php
@@ -0,0 +1,135 @@
+google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest
+ */
+class GetSecurityCenterServiceRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The Security Command Center service to retrieve.
+ * Formats:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ protected $name = '';
+
+ /**
+ * @param string $name Required. The Security Command Center service to retrieve.
+ *
+ * Formats:
+ *
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ *
+ * The possible values for id {service} are:
+ *
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ * Please see {@see SecurityCenterManagementClient::securityCenterServiceName()} for help formatting this field.
+ *
+ * @return \Google\Cloud\SecurityCenterManagement\V1\GetSecurityCenterServiceRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The Security Command Center service to retrieve.
+ * Formats:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The Security Command Center service to retrieve.
+ * Formats:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The Security Command Center service to retrieve.
+ * Formats:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/SecurityCenterManagement/src/V1/ListDescendantEventThreatDetectionCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListDescendantEventThreatDetectionCustomModulesRequest.php
index c80385f93f5..6ea98488fc7 100644
--- a/SecurityCenterManagement/src/V1/ListDescendantEventThreatDetectionCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListDescendantEventThreatDetectionCustomModulesRequest.php
@@ -18,10 +18,10 @@ class ListDescendantEventThreatDetectionCustomModulesRequest extends \Google\Pro
{
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -43,10 +43,10 @@ class ListDescendantEventThreatDetectionCustomModulesRequest extends \Google\Pro
/**
* @param string $parent Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListDescendantEventThreatDetectionCustomModulesRequest
@@ -67,10 +67,10 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of modules to return. The service may return
* fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -86,10 +86,10 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -101,10 +101,10 @@ public function getParent()
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.php
index 8fb32db14c7..4db8d6b92e8 100644
--- a/SecurityCenterManagement/src/V1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.php
@@ -17,11 +17,11 @@
class ListDescendantSecurityHealthAnalyticsCustomModulesRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -41,11 +41,12 @@ class ListDescendantSecurityHealthAnalyticsCustomModulesRequest extends \Google\
protected $page_token = '';
/**
- * @param string $parent Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $parent Required. Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListDescendantSecurityHealthAnalyticsCustomModulesRequest
@@ -65,11 +66,11 @@ public static function build(string $parent): self
* Optional. Data for populating the Message object.
*
* @type string $parent
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of results to return in a single response.
* Default is 10, minimum is 1, maximum is 1000.
@@ -83,11 +84,11 @@ public function __construct($data = NULL) {
}
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -98,11 +99,11 @@ public function getParent()
}
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of the parent organization, folder, or project in which to
+ * list custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/ListEffectiveEventThreatDetectionCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListEffectiveEventThreatDetectionCustomModulesRequest.php
index 1de4b9f88c1..40094fd46ac 100644
--- a/SecurityCenterManagement/src/V1/ListEffectiveEventThreatDetectionCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListEffectiveEventThreatDetectionCustomModulesRequest.php
@@ -18,10 +18,10 @@ class ListEffectiveEventThreatDetectionCustomModulesRequest extends \Google\Prot
{
/**
* Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -42,10 +42,10 @@ class ListEffectiveEventThreatDetectionCustomModulesRequest extends \Google\Prot
/**
* @param string $parent Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListEffectiveEventThreatDetectionCustomModulesRequest
@@ -66,10 +66,10 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of results to return in a single response.
* Default is 10, minimum is 1, maximum is 1000.
@@ -84,10 +84,10 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -99,10 +99,10 @@ public function getParent()
/**
* Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.php
index d6469a51e01..4e8e3f4acea 100644
--- a/SecurityCenterManagement/src/V1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.php
@@ -17,11 +17,12 @@
class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * Required. Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -41,11 +42,12 @@ class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest extends \Google\P
protected $page_token = '';
/**
- * @param string $parent Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * @param string $parent Required. Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
@@ -65,11 +67,12 @@ public static function build(string $parent): self
* Optional. Data for populating the Message object.
*
* @type string $parent
- * Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * Required. Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of results to return in a single response.
* Default is 10, minimum is 1, maximum is 1000.
@@ -83,11 +86,12 @@ public function __construct($data = NULL) {
}
/**
- * Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * Required. Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -98,11 +102,12 @@ public function getParent()
}
/**
- * Required. Name of parent to list effective custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * Required. Name of parent to list effective custom modules. specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/ListEventThreatDetectionCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListEventThreatDetectionCustomModulesRequest.php
index d5503de8ec2..16e35944821 100644
--- a/SecurityCenterManagement/src/V1/ListEventThreatDetectionCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListEventThreatDetectionCustomModulesRequest.php
@@ -17,10 +17,10 @@ class ListEventThreatDetectionCustomModulesRequest extends \Google\Protobuf\Inte
{
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -47,10 +47,10 @@ class ListEventThreatDetectionCustomModulesRequest extends \Google\Protobuf\Inte
/**
* @param string $parent Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListEventThreatDetectionCustomModulesRequest
@@ -71,10 +71,10 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of modules to return. The service may return
* fewer than this value. If unspecified, at most 10 configs will be returned.
@@ -95,10 +95,10 @@ public function __construct($data = NULL) {
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -110,10 +110,10 @@ public function getParent()
/**
* Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
+ * `organizations/{organization}/locations/{location}`,
+ * `folders/{folder}/locations/{location}`,
* or
- * "projects/{project}/locations/{location}"
+ * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php
new file mode 100644
index 00000000000..c4a0cd81d3a
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php
@@ -0,0 +1,175 @@
+google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest
+ */
+class ListSecurityCenterServicesRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the parent to list Security Command Center services.
+ * Formats:
+ * * organizations/{organization}/locations/{location}
+ * * folders/{folder}/locations/{location}
+ * * projects/{project}/locations/{location}
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ protected $parent = '';
+ /**
+ * Optional. The maximum number of results to return in a single response.
+ * Default is 10, minimum is 1, maximum is 1000.
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $page_size = 0;
+ /**
+ * Optional. The value returned by the last call indicating a continuation.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $page_token = '';
+
+ /**
+ * @param string $parent Required. The name of the parent to list Security Command Center services.
+ *
+ * Formats:
+ *
+ * * organizations/{organization}/locations/{location}
+ * * folders/{folder}/locations/{location}
+ * * projects/{project}/locations/{location}
+ * Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
+ *
+ * @return \Google\Cloud\SecurityCenterManagement\V1\ListSecurityCenterServicesRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent): self
+ {
+ return (new self())
+ ->setParent($parent);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. The name of the parent to list Security Command Center services.
+ * Formats:
+ * * organizations/{organization}/locations/{location}
+ * * folders/{folder}/locations/{location}
+ * * projects/{project}/locations/{location}
+ * @type int $page_size
+ * Optional. The maximum number of results to return in a single response.
+ * Default is 10, minimum is 1, maximum is 1000.
+ * @type string $page_token
+ * Optional. The value returned by the last call indicating a continuation.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the parent to list Security Command Center services.
+ * Formats:
+ * * organizations/{organization}/locations/{location}
+ * * folders/{folder}/locations/{location}
+ * * projects/{project}/locations/{location}
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. The name of the parent to list Security Command Center services.
+ * Formats:
+ * * organizations/{organization}/locations/{location}
+ * * folders/{folder}/locations/{location}
+ * * projects/{project}/locations/{location}
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The maximum number of results to return in a single response.
+ * Default is 10, minimum is 1, maximum is 1000.
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * Optional. The maximum number of results to return in a single response.
+ * Default is 10, minimum is 1, maximum is 1000.
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The value returned by the last call indicating a continuation.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * Optional. The value returned by the last call indicating a continuation.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/SecurityCenterManagement/src/V1/ListSecurityCenterServicesResponse.php b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesResponse.php
new file mode 100644
index 00000000000..772555d3900
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesResponse.php
@@ -0,0 +1,101 @@
+google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse
+ */
+class ListSecurityCenterServicesResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The list of services.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1;
+ */
+ private $security_center_services;
+ /**
+ * A token identifying a page of results the server should return.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ protected $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type array<\Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService>|\Google\Protobuf\Internal\RepeatedField $security_center_services
+ * The list of services.
+ * @type string $next_page_token
+ * A token identifying a page of results the server should return.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The list of services.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getSecurityCenterServices()
+ {
+ return $this->security_center_services;
+ }
+
+ /**
+ * The list of services.
+ *
+ * Generated from protobuf field repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1;
+ * @param array<\Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setSecurityCenterServices($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService::class);
+ $this->security_center_services = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token identifying a page of results the server should return.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token identifying a page of results the server should return.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/SecurityCenterManagement/src/V1/ListSecurityHealthAnalyticsCustomModulesRequest.php b/SecurityCenterManagement/src/V1/ListSecurityHealthAnalyticsCustomModulesRequest.php
index 9ada583f692..2e52af07903 100644
--- a/SecurityCenterManagement/src/V1/ListSecurityHealthAnalyticsCustomModulesRequest.php
+++ b/SecurityCenterManagement/src/V1/ListSecurityHealthAnalyticsCustomModulesRequest.php
@@ -16,11 +16,11 @@
class ListSecurityHealthAnalyticsCustomModulesRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -40,11 +40,12 @@ class ListSecurityHealthAnalyticsCustomModulesRequest extends \Google\Protobuf\I
protected $page_token = '';
/**
- * @param string $parent Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * @param string $parent Required. Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ *
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* Please see {@see SecurityCenterManagementClient::organizationLocationName()} for help formatting this field.
*
* @return \Google\Cloud\SecurityCenterManagement\V1\ListSecurityHealthAnalyticsCustomModulesRequest
@@ -64,11 +65,11 @@ public static function build(string $parent): self
* Optional. Data for populating the Message object.
*
* @type string $parent
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
* @type int $page_size
* Optional. The maximum number of results to return in a single response.
* Default is 10, minimum is 1, maximum is 1000.
@@ -82,11 +83,11 @@ public function __construct($data = NULL) {
}
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -97,11 +98,11 @@ public function getParent()
}
/**
- * Required. Name of parent to list custom modules. Its format is
- * "organizations/{organization}/locations/{location}",
- * "folders/{folder}/locations/{location}",
- * or
- * "projects/{project}/locations/{location}"
+ * Required. Name of parent organization, folder, or project in which to list
+ * custom modules, specified in one of the following formats:
+ * * `organizations/{organization}/locations/{location}`
+ * * `folders/{folder}/locations/{location}`
+ * * `projects/{project}/locations/{location}`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/SecurityCenterService.php b/SecurityCenterManagement/src/V1/SecurityCenterService.php
new file mode 100644
index 00000000000..6482912da57
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/SecurityCenterService.php
@@ -0,0 +1,345 @@
+google.cloud.securitycentermanagement.v1.SecurityCenterService
+ */
+class SecurityCenterService extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Identifier. The name of the service.
+ * Its format is:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ */
+ protected $name = '';
+ /**
+ * Optional. The intended state of enablement for the service at its level of
+ * the resource hierarchy. A DISABLED state will override all module
+ * enablement_states to DISABLED.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $intended_enablement_state = 0;
+ /**
+ * Output only. The effective enablement state for the service at its level of
+ * the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an ancestor.
+ * This state may differ from the intended enablement state due to billing
+ * eligibility or onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $effective_enablement_state = 0;
+ /**
+ * Optional. The configurations including the state of enablement for the
+ * service's different modules. The absence of a module in the map implies its
+ * configuration is inherited from its parents.
+ *
+ * Generated from protobuf field map modules = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $modules;
+ /**
+ * Output only. The time the service was last updated. This could be due to an
+ * explicit user update or due to a side effect of another system change such
+ * as billing subscription expiry.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $update_time = null;
+ /**
+ * Optional. Additional service specific configuration. Not all services will
+ * utilize this field.
+ *
+ * Generated from protobuf field .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $service_config = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Identifier. The name of the service.
+ * Its format is:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ * @type int $intended_enablement_state
+ * Optional. The intended state of enablement for the service at its level of
+ * the resource hierarchy. A DISABLED state will override all module
+ * enablement_states to DISABLED.
+ * @type int $effective_enablement_state
+ * Output only. The effective enablement state for the service at its level of
+ * the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an ancestor.
+ * This state may differ from the intended enablement state due to billing
+ * eligibility or onboarding status.
+ * @type array|\Google\Protobuf\Internal\MapField $modules
+ * Optional. The configurations including the state of enablement for the
+ * service's different modules. The absence of a module in the map implies its
+ * configuration is inherited from its parents.
+ * @type \Google\Protobuf\Timestamp $update_time
+ * Output only. The time the service was last updated. This could be due to an
+ * explicit user update or due to a side effect of another system change such
+ * as billing subscription expiry.
+ * @type \Google\Protobuf\Struct $service_config
+ * Optional. Additional service specific configuration. Not all services will
+ * utilize this field.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Identifier. The name of the service.
+ * Its format is:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Identifier. The name of the service.
+ * Its format is:
+ * * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+ * * folders/{folder}/locations/{location}/securityCenterServices/{service}
+ * * projects/{project}/locations/{location}/securityCenterServices/{service}
+ * The possible values for id {service} are:
+ * * container-threat-detection
+ * * event-threat-detection
+ * * security-health-analytics
+ * * vm-threat-detection
+ * * web-security-scanner
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The intended state of enablement for the service at its level of
+ * the resource hierarchy. A DISABLED state will override all module
+ * enablement_states to DISABLED.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @return int
+ */
+ public function getIntendedEnablementState()
+ {
+ return $this->intended_enablement_state;
+ }
+
+ /**
+ * Optional. The intended state of enablement for the service at its level of
+ * the resource hierarchy. A DISABLED state will override all module
+ * enablement_states to DISABLED.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @param int $var
+ * @return $this
+ */
+ public function setIntendedEnablementState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService\EnablementState::class);
+ $this->intended_enablement_state = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The effective enablement state for the service at its level of
+ * the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an ancestor.
+ * This state may differ from the intended enablement state due to billing
+ * eligibility or onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getEffectiveEnablementState()
+ {
+ return $this->effective_enablement_state;
+ }
+
+ /**
+ * Output only. The effective enablement state for the service at its level of
+ * the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an ancestor.
+ * This state may differ from the intended enablement state due to billing
+ * eligibility or onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setEffectiveEnablementState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService\EnablementState::class);
+ $this->effective_enablement_state = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The configurations including the state of enablement for the
+ * service's different modules. The absence of a module in the map implies its
+ * configuration is inherited from its parents.
+ *
+ * Generated from protobuf field map modules = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Protobuf\Internal\MapField
+ */
+ public function getModules()
+ {
+ return $this->modules;
+ }
+
+ /**
+ * Optional. The configurations including the state of enablement for the
+ * service's different modules. The absence of a module in the map implies its
+ * configuration is inherited from its parents.
+ *
+ * Generated from protobuf field map modules = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @param array|\Google\Protobuf\Internal\MapField $var
+ * @return $this
+ */
+ public function setModules($var)
+ {
+ $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService\ModuleSettings::class);
+ $this->modules = $arr;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The time the service was last updated. This could be due to an
+ * explicit user update or due to a side effect of another system change such
+ * as billing subscription expiry.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getUpdateTime()
+ {
+ return $this->update_time;
+ }
+
+ public function hasUpdateTime()
+ {
+ return isset($this->update_time);
+ }
+
+ public function clearUpdateTime()
+ {
+ unset($this->update_time);
+ }
+
+ /**
+ * Output only. The time the service was last updated. This could be due to an
+ * explicit user update or due to a side effect of another system change such
+ * as billing subscription expiry.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setUpdateTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->update_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Additional service specific configuration. Not all services will
+ * utilize this field.
+ *
+ * Generated from protobuf field .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Protobuf\Struct|null
+ */
+ public function getServiceConfig()
+ {
+ return $this->service_config;
+ }
+
+ public function hasServiceConfig()
+ {
+ return isset($this->service_config);
+ }
+
+ public function clearServiceConfig()
+ {
+ unset($this->service_config);
+ }
+
+ /**
+ * Optional. Additional service specific configuration. Not all services will
+ * utilize this field.
+ *
+ * Generated from protobuf field .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Protobuf\Struct $var
+ * @return $this
+ */
+ public function setServiceConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
+ $this->service_config = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/SecurityCenterManagement/src/V1/SecurityCenterService/EnablementState.php b/SecurityCenterManagement/src/V1/SecurityCenterService/EnablementState.php
new file mode 100644
index 00000000000..7d9b56a0a30
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/SecurityCenterService/EnablementState.php
@@ -0,0 +1,71 @@
+google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState
+ */
+class EnablementState
+{
+ /**
+ * Default value. This value is unused.
+ *
+ * Generated from protobuf enum ENABLEMENT_STATE_UNSPECIFIED = 0;
+ */
+ const ENABLEMENT_STATE_UNSPECIFIED = 0;
+ /**
+ * State is inherited from the parent resource. Not a valid effective
+ * enablement state.
+ *
+ * Generated from protobuf enum INHERITED = 1;
+ */
+ const INHERITED = 1;
+ /**
+ * State is enabled.
+ *
+ * Generated from protobuf enum ENABLED = 2;
+ */
+ const ENABLED = 2;
+ /**
+ * State is disabled.
+ *
+ * Generated from protobuf enum DISABLED = 3;
+ */
+ const DISABLED = 3;
+
+ private static $valueToName = [
+ self::ENABLEMENT_STATE_UNSPECIFIED => 'ENABLEMENT_STATE_UNSPECIFIED',
+ self::INHERITED => 'INHERITED',
+ self::ENABLED => 'ENABLED',
+ self::DISABLED => 'DISABLED',
+ ];
+
+ 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);
+ }
+}
+
+
diff --git a/SecurityCenterManagement/src/V1/SecurityCenterService/ModuleSettings.php b/SecurityCenterManagement/src/V1/SecurityCenterService/ModuleSettings.php
new file mode 100644
index 00000000000..7b603e767c1
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/SecurityCenterService/ModuleSettings.php
@@ -0,0 +1,126 @@
+google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings
+ */
+class ModuleSettings extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. The intended state of enablement for the module at its level of
+ * the resource hierarchy.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $intended_enablement_state = 0;
+ /**
+ * Output only. The effective enablement state for the module at its level
+ * of the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an
+ * ancestor. This state may
+ * differ from the intended enablement state due to billing eligibility or
+ * onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $effective_enablement_state = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $intended_enablement_state
+ * Optional. The intended state of enablement for the module at its level of
+ * the resource hierarchy.
+ * @type int $effective_enablement_state
+ * Output only. The effective enablement state for the module at its level
+ * of the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an
+ * ancestor. This state may
+ * differ from the intended enablement state due to billing eligibility or
+ * onboarding status.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. The intended state of enablement for the module at its level of
+ * the resource hierarchy.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @return int
+ */
+ public function getIntendedEnablementState()
+ {
+ return $this->intended_enablement_state;
+ }
+
+ /**
+ * Optional. The intended state of enablement for the module at its level of
+ * the resource hierarchy.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @param int $var
+ * @return $this
+ */
+ public function setIntendedEnablementState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService\EnablementState::class);
+ $this->intended_enablement_state = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The effective enablement state for the module at its level
+ * of the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an
+ * ancestor. This state may
+ * differ from the intended enablement state due to billing eligibility or
+ * onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getEffectiveEnablementState()
+ {
+ return $this->effective_enablement_state;
+ }
+
+ /**
+ * Output only. The effective enablement state for the module at its level
+ * of the resource hierarchy. If the intended state is set to INHERITED, the
+ * effective state will be inherited from the enablement state of an
+ * ancestor. This state may
+ * differ from the intended enablement state due to billing eligibility or
+ * onboarding status.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setEffectiveEnablementState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService\EnablementState::class);
+ $this->effective_enablement_state = $var;
+
+ return $this;
+ }
+
+}
+
+
diff --git a/SecurityCenterManagement/src/V1/SecurityHealthAnalyticsCustomModule.php b/SecurityCenterManagement/src/V1/SecurityHealthAnalyticsCustomModule.php
index 368dacf75d3..db568064f32 100644
--- a/SecurityCenterManagement/src/V1/SecurityHealthAnalyticsCustomModule.php
+++ b/SecurityCenterManagement/src/V1/SecurityHealthAnalyticsCustomModule.php
@@ -20,15 +20,11 @@
class SecurityHealthAnalyticsCustomModule extends \Google\Protobuf\Internal\Message
{
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
- * The id {customModule} is server-generated and is not user settable.
- * It will be a numeric id containing 1-20 digits.
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
@@ -84,15 +80,11 @@ class SecurityHealthAnalyticsCustomModule extends \Google\Protobuf\Internal\Mess
* Optional. Data for populating the Message object.
*
* @type string $name
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
- * The id {customModule} is server-generated and is not user settable.
- * It will be a numeric id containing 1-20 digits.
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
* @type string $display_name
* Optional. The display name of the Security Health Analytics custom module.
* This display name becomes the finding category for all findings that are
@@ -120,15 +112,11 @@ public function __construct($data = NULL) {
}
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
- * The id {customModule} is server-generated and is not user settable.
- * It will be a numeric id containing 1-20 digits.
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
@@ -139,15 +127,11 @@ public function getName()
}
/**
- * Identifier. The resource name of the custom module.
- * Its format is
- * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
- * or
- * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
- * The id {customModule} is server-generated and is not user settable.
- * It will be a numeric id containing 1-20 digits.
+ * Identifier. The full resource name of the custom module, specified in one
+ * of the following formats:
+ * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+ * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/SimulatedFinding.php b/SecurityCenterManagement/src/V1/SimulatedFinding.php
index ba665bfb2ba..4ca02b40dcf 100644
--- a/SecurityCenterManagement/src/V1/SimulatedFinding.php
+++ b/SecurityCenterManagement/src/V1/SimulatedFinding.php
@@ -20,9 +20,9 @@ class SimulatedFinding extends \Google\Protobuf\Internal\Message
* Identifier. The [relative resource
* name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
* of the finding. Example:
- * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
- * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
- * "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
+ * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,
+ * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*/
@@ -32,7 +32,7 @@ class SimulatedFinding extends \Google\Protobuf\Internal\Message
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* This field is immutable after creation time.
* For example:
- * "organizations/{organization_id}/sources/{source_id}"
+ * `organizations/{organization_id}/sources/{source_id}`
*
* Generated from protobuf field string parent = 2;
*/
@@ -107,15 +107,15 @@ class SimulatedFinding extends \Google\Protobuf\Internal\Message
* Identifier. The [relative resource
* name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
* of the finding. Example:
- * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
- * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
- * "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
+ * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,
+ * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`.
* @type string $parent
* The relative resource name of the source the finding belongs to. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* This field is immutable after creation time.
* For example:
- * "organizations/{organization_id}/sources/{source_id}"
+ * `organizations/{organization_id}/sources/{source_id}`
* @type string $resource_name
* For findings on Google Cloud resources, the full resource
* name of the Google Cloud resource this finding is for. See:
@@ -158,9 +158,9 @@ public function __construct($data = NULL) {
* Identifier. The [relative resource
* name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
* of the finding. Example:
- * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
- * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
- * "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
+ * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,
+ * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @return string
@@ -174,9 +174,9 @@ public function getName()
* Identifier. The [relative resource
* name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
* of the finding. Example:
- * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
- * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}",
- * "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
+ * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`,
+ * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`,
+ * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
* @param string $var
@@ -195,7 +195,7 @@ public function setName($var)
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* This field is immutable after creation time.
* For example:
- * "organizations/{organization_id}/sources/{source_id}"
+ * `organizations/{organization_id}/sources/{source_id}`
*
* Generated from protobuf field string parent = 2;
* @return string
@@ -210,7 +210,7 @@ public function getParent()
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* This field is immutable after creation time.
* For example:
- * "organizations/{organization_id}/sources/{source_id}"
+ * `organizations/{organization_id}/sources/{source_id}`
*
* Generated from protobuf field string parent = 2;
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/UpdateSecurityCenterServiceRequest.php b/SecurityCenterManagement/src/V1/UpdateSecurityCenterServiceRequest.php
new file mode 100644
index 00000000000..1a92796d746
--- /dev/null
+++ b/SecurityCenterManagement/src/V1/UpdateSecurityCenterServiceRequest.php
@@ -0,0 +1,205 @@
+google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest
+ */
+class UpdateSecurityCenterServiceRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The updated service.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ protected $security_center_service = null;
+ /**
+ * Required. The list of fields to be updated. Possible values:
+ * * "intended_enablement_state"
+ * * "modules"
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ protected $update_mask = null;
+ /**
+ * Optional. When set to true, only validations (including IAM checks) will
+ * done for the request (service will not be updated). An OK response
+ * indicates the request is valid while an error response indicates the
+ * request is invalid. Note that a subsequent request to actually update the
+ * service could still fail because 1. the state could have changed (e.g. IAM
+ * permission lost) or
+ * 2. A failure occurred while trying to delete the module.
+ *
+ * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $validate_only = false;
+
+ /**
+ * @param \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService $securityCenterService Required. The updated service.
+ * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Possible values:
+ *
+ * * "intended_enablement_state"
+ * * "modules"
+ *
+ * @return \Google\Cloud\SecurityCenterManagement\V1\UpdateSecurityCenterServiceRequest
+ *
+ * @experimental
+ */
+ public static function build(\Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService $securityCenterService, \Google\Protobuf\FieldMask $updateMask): self
+ {
+ return (new self())
+ ->setSecurityCenterService($securityCenterService)
+ ->setUpdateMask($updateMask);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService $security_center_service
+ * Required. The updated service.
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * Required. The list of fields to be updated. Possible values:
+ * * "intended_enablement_state"
+ * * "modules"
+ * @type bool $validate_only
+ * Optional. When set to true, only validations (including IAM checks) will
+ * done for the request (service will not be updated). An OK response
+ * indicates the request is valid while an error response indicates the
+ * request is invalid. Note that a subsequent request to actually update the
+ * service could still fail because 1. the state could have changed (e.g. IAM
+ * permission lost) or
+ * 2. A failure occurred while trying to delete the module.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Securitycentermanagement\V1\SecurityCenterManagement::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The updated service.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService|null
+ */
+ public function getSecurityCenterService()
+ {
+ return $this->security_center_service;
+ }
+
+ public function hasSecurityCenterService()
+ {
+ return isset($this->security_center_service);
+ }
+
+ public function clearSecurityCenterService()
+ {
+ unset($this->security_center_service);
+ }
+
+ /**
+ * Required. The updated service.
+ *
+ * Generated from protobuf field .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService $var
+ * @return $this
+ */
+ public function setSecurityCenterService($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService::class);
+ $this->security_center_service = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The list of fields to be updated. Possible values:
+ * * "intended_enablement_state"
+ * * "modules"
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * Required. The list of fields to be updated. Possible values:
+ * * "intended_enablement_state"
+ * * "modules"
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. When set to true, only validations (including IAM checks) will
+ * done for the request (service will not be updated). An OK response
+ * indicates the request is valid while an error response indicates the
+ * request is invalid. Note that a subsequent request to actually update the
+ * service could still fail because 1. the state could have changed (e.g. IAM
+ * permission lost) or
+ * 2. A failure occurred while trying to delete the module.
+ *
+ * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return bool
+ */
+ public function getValidateOnly()
+ {
+ return $this->validate_only;
+ }
+
+ /**
+ * Optional. When set to true, only validations (including IAM checks) will
+ * done for the request (service will not be updated). An OK response
+ * indicates the request is valid while an error response indicates the
+ * request is invalid. Note that a subsequent request to actually update the
+ * service could still fail because 1. the state could have changed (e.g. IAM
+ * permission lost) or
+ * 2. A failure occurred while trying to delete the module.
+ *
+ * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param bool $var
+ * @return $this
+ */
+ public function setValidateOnly($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->validate_only = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/SecurityCenterManagement/src/V1/ValidateEventThreatDetectionCustomModuleRequest.php b/SecurityCenterManagement/src/V1/ValidateEventThreatDetectionCustomModuleRequest.php
index 17c5ea7528d..40ac0673ade 100644
--- a/SecurityCenterManagement/src/V1/ValidateEventThreatDetectionCustomModuleRequest.php
+++ b/SecurityCenterManagement/src/V1/ValidateEventThreatDetectionCustomModuleRequest.php
@@ -18,7 +18,7 @@ class ValidateEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\I
/**
* Required. Resource name of the parent to validate the Custom Module under.
* Its format is:
- * * "organizations/{organization}/locations/{location}".
+ * * `organizations/{organization}/locations/{location}`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -46,7 +46,7 @@ class ValidateEventThreatDetectionCustomModuleRequest extends \Google\Protobuf\I
* @type string $parent
* Required. Resource name of the parent to validate the Custom Module under.
* Its format is:
- * * "organizations/{organization}/locations/{location}".
+ * * `organizations/{organization}/locations/{location}`.
* @type string $raw_text
* Required. The raw text of the module's contents. Used to generate error
* messages.
@@ -62,7 +62,7 @@ public function __construct($data = NULL) {
/**
* Required. Resource name of the parent to validate the Custom Module under.
* Its format is:
- * * "organizations/{organization}/locations/{location}".
+ * * `organizations/{organization}/locations/{location}`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -75,7 +75,7 @@ public function getParent()
/**
* Required. Resource name of the parent to validate the Custom Module under.
* Its format is:
- * * "organizations/{organization}/locations/{location}".
+ * * `organizations/{organization}/locations/{location}`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/SecurityCenterManagement/src/V1/gapic_metadata.json b/SecurityCenterManagement/src/V1/gapic_metadata.json
index bcffad6c658..b7aad2f739f 100644
--- a/SecurityCenterManagement/src/V1/gapic_metadata.json
+++ b/SecurityCenterManagement/src/V1/gapic_metadata.json
@@ -45,6 +45,11 @@
"getEventThreatDetectionCustomModule"
]
},
+ "GetSecurityCenterService": {
+ "methods": [
+ "getSecurityCenterService"
+ ]
+ },
"GetSecurityHealthAnalyticsCustomModule": {
"methods": [
"getSecurityHealthAnalyticsCustomModule"
@@ -75,6 +80,11 @@
"listEventThreatDetectionCustomModules"
]
},
+ "ListSecurityCenterServices": {
+ "methods": [
+ "listSecurityCenterServices"
+ ]
+ },
"ListSecurityHealthAnalyticsCustomModules": {
"methods": [
"listSecurityHealthAnalyticsCustomModules"
@@ -90,6 +100,11 @@
"updateEventThreatDetectionCustomModule"
]
},
+ "UpdateSecurityCenterService": {
+ "methods": [
+ "updateSecurityCenterService"
+ ]
+ },
"UpdateSecurityHealthAnalyticsCustomModule": {
"methods": [
"updateSecurityHealthAnalyticsCustomModule"
diff --git a/SecurityCenterManagement/src/V1/resources/security_center_management_client_config.json b/SecurityCenterManagement/src/V1/resources/security_center_management_client_config.json
index 03100e57b50..cefc5439973 100644
--- a/SecurityCenterManagement/src/V1/resources/security_center_management_client_config.json
+++ b/SecurityCenterManagement/src/V1/resources/security_center_management_client_config.json
@@ -74,6 +74,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "GetSecurityCenterService": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "no_retry_codes",
+ "retry_params_name": "no_retry_params"
+ },
"GetSecurityHealthAnalyticsCustomModule": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -104,6 +109,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "ListSecurityCenterServices": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "no_retry_codes",
+ "retry_params_name": "no_retry_params"
+ },
"ListSecurityHealthAnalyticsCustomModules": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -119,6 +129,11 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "UpdateSecurityCenterService": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "no_retry_codes",
+ "retry_params_name": "no_retry_params"
+ },
"UpdateSecurityHealthAnalyticsCustomModule": {
"timeout_millis": 60000,
"retry_codes_name": "no_retry_1_codes",
diff --git a/SecurityCenterManagement/src/V1/resources/security_center_management_descriptor_config.php b/SecurityCenterManagement/src/V1/resources/security_center_management_descriptor_config.php
index 1e8bae692e0..840299f2b1b 100644
--- a/SecurityCenterManagement/src/V1/resources/security_center_management_descriptor_config.php
+++ b/SecurityCenterManagement/src/V1/resources/security_center_management_descriptor_config.php
@@ -107,6 +107,18 @@
],
],
],
+ 'GetSecurityCenterService' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetSecurityHealthAnalyticsCustomModule' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule',
@@ -219,6 +231,26 @@
],
],
],
+ 'ListSecurityCenterServices' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getSecurityCenterServices',
+ ],
+ 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
+ 'responseType' => 'Google\Cloud\SecurityCenterManagement\V1\ListSecurityCenterServicesResponse',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListSecurityHealthAnalyticsCustomModules' => [
'pageStreaming' => [
'requestPageTokenGetMethod' => 'getPageToken',
@@ -264,6 +296,19 @@
],
],
],
+ 'UpdateSecurityCenterService' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService',
+ 'headerParams' => [
+ [
+ 'keyName' => 'security_center_service.name',
+ 'fieldAccessors' => [
+ 'getSecurityCenterService',
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'UpdateSecurityHealthAnalyticsCustomModule' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule',
@@ -332,16 +377,20 @@
'folderLocationEffectiveSecurityHealthAnalyticsCustomModule' => 'folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}',
'folderLocationEventThreatDetectionCustomModule' => 'folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}',
'folderLocationSecurityHealthAnalyticsCustomModule' => 'folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}',
+ 'folderLocationService' => 'folders/{folder}/locations/{location}/securityCenterServices/{service}',
'location' => 'projects/{project}/locations/{location}',
'organizationLocation' => 'organizations/{organization}/locations/{location}',
'organizationLocationEffectiveEventThreatDetectionCustomModule' => 'organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}',
'organizationLocationEffectiveSecurityHealthAnalyticsCustomModule' => 'organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}',
'organizationLocationEventThreatDetectionCustomModule' => 'organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}',
'organizationLocationSecurityHealthAnalyticsCustomModule' => 'organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}',
+ 'organizationLocationService' => 'organizations/{organization}/locations/{location}/securityCenterServices/{service}',
'projectLocationEffectiveEventThreatDetectionCustomModule' => 'projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}',
'projectLocationEffectiveSecurityHealthAnalyticsCustomModule' => 'projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}',
'projectLocationEventThreatDetectionCustomModule' => 'projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}',
'projectLocationSecurityHealthAnalyticsCustomModule' => 'projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}',
+ 'projectLocationService' => 'projects/{project}/locations/{location}/securityCenterServices/{service}',
+ 'securityCenterService' => 'projects/{project}/locations/{location}/securityCenterServices/{service}',
'securityHealthAnalyticsCustomModule' => 'organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}',
],
],
diff --git a/SecurityCenterManagement/src/V1/resources/security_center_management_rest_client_config.php b/SecurityCenterManagement/src/V1/resources/security_center_management_rest_client_config.php
index a3546e1c614..545daa6979b 100644
--- a/SecurityCenterManagement/src/V1/resources/security_center_management_rest_client_config.php
+++ b/SecurityCenterManagement/src/V1/resources/security_center_management_rest_client_config.php
@@ -200,6 +200,27 @@
],
],
],
+ 'GetSecurityCenterService' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{name=projects/*/locations/*/securityCenterServices/*}',
+ 'additionalBindings' => [
+ [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{name=folders/*/locations/*/securityCenterServices/*}',
+ ],
+ [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{name=organizations/*/locations/*/securityCenterServices/*}',
+ ],
+ ],
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetSecurityHealthAnalyticsCustomModule' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=projects/*/locations/*/securityHealthAnalyticsCustomModules/*}',
@@ -326,6 +347,27 @@
],
],
],
+ 'ListSecurityCenterServices' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/securityCenterServices',
+ 'additionalBindings' => [
+ [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/securityCenterServices',
+ ],
+ [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/securityCenterServices',
+ ],
+ ],
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListSecurityHealthAnalyticsCustomModules' => [
'method' => 'get',
'uriTemplate' => '/v1/{parent=projects/*/locations/*}/securityHealthAnalyticsCustomModules',
@@ -405,6 +447,40 @@
'update_mask',
],
],
+ 'UpdateSecurityCenterService' => [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1/{security_center_service.name=projects/*/locations/*/securityCenterServices/*}',
+ 'body' => 'security_center_service',
+ 'additionalBindings' => [
+ [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1/{security_center_service.name=folders/*/locations/*/securityCenterServices/*}',
+ 'body' => 'security_center_service',
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
+ [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1/{security_center_service.name=organizations/*/locations/*/securityCenterServices/*}',
+ 'body' => 'security_center_service',
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
+ ],
+ 'placeholders' => [
+ 'security_center_service.name' => [
+ 'getters' => [
+ 'getSecurityCenterService',
+ 'getName',
+ ],
+ ],
+ ],
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
'UpdateSecurityHealthAnalyticsCustomModule' => [
'method' => 'patch',
'uriTemplate' => '/v1/{security_health_analytics_custom_module.name=projects/*/locations/*/securityHealthAnalyticsCustomModules/*}',
diff --git a/SecurityCenterManagement/tests/Unit/V1/Client/SecurityCenterManagementClientTest.php b/SecurityCenterManagement/tests/Unit/V1/Client/SecurityCenterManagementClientTest.php
index e8573745e66..860d42e0855 100644
--- a/SecurityCenterManagement/tests/Unit/V1/Client/SecurityCenterManagementClientTest.php
+++ b/SecurityCenterManagement/tests/Unit/V1/Client/SecurityCenterManagementClientTest.php
@@ -42,6 +42,7 @@
use Google\Cloud\SecurityCenterManagement\V1\GetEffectiveEventThreatDetectionCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetEffectiveSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetEventThreatDetectionCustomModuleRequest;
+use Google\Cloud\SecurityCenterManagement\V1\GetSecurityCenterServiceRequest;
use Google\Cloud\SecurityCenterManagement\V1\GetSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListDescendantEventThreatDetectionCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListDescendantEventThreatDetectionCustomModulesResponse;
@@ -53,13 +54,17 @@
use Google\Cloud\SecurityCenterManagement\V1\ListEffectiveSecurityHealthAnalyticsCustomModulesResponse;
use Google\Cloud\SecurityCenterManagement\V1\ListEventThreatDetectionCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListEventThreatDetectionCustomModulesResponse;
+use Google\Cloud\SecurityCenterManagement\V1\ListSecurityCenterServicesRequest;
+use Google\Cloud\SecurityCenterManagement\V1\ListSecurityCenterServicesResponse;
use Google\Cloud\SecurityCenterManagement\V1\ListSecurityHealthAnalyticsCustomModulesRequest;
use Google\Cloud\SecurityCenterManagement\V1\ListSecurityHealthAnalyticsCustomModulesResponse;
+use Google\Cloud\SecurityCenterManagement\V1\SecurityCenterService;
use Google\Cloud\SecurityCenterManagement\V1\SecurityHealthAnalyticsCustomModule;
use Google\Cloud\SecurityCenterManagement\V1\SimulateSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\SimulateSecurityHealthAnalyticsCustomModuleRequest\SimulatedResource;
use Google\Cloud\SecurityCenterManagement\V1\SimulateSecurityHealthAnalyticsCustomModuleResponse;
use Google\Cloud\SecurityCenterManagement\V1\UpdateEventThreatDetectionCustomModuleRequest;
+use Google\Cloud\SecurityCenterManagement\V1\UpdateSecurityCenterServiceRequest;
use Google\Cloud\SecurityCenterManagement\V1\UpdateSecurityHealthAnalyticsCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ValidateEventThreatDetectionCustomModuleRequest;
use Google\Cloud\SecurityCenterManagement\V1\ValidateEventThreatDetectionCustomModuleResponse;
@@ -658,6 +663,74 @@ public function getEventThreatDetectionCustomModuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function getSecurityCenterServiceTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $expectedResponse = new SecurityCenterService();
+ $expectedResponse->setName($name2);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->securityCenterServiceName('[PROJECT]', '[LOCATION]', '[SERVICE]');
+ $request = (new GetSecurityCenterServiceRequest())->setName($formattedName);
+ $response = $gapicClient->getSecurityCenterService($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame(
+ '/google.cloud.securitycentermanagement.v1.SecurityCenterManagement/GetSecurityCenterService',
+ $actualFuncCall
+ );
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getSecurityCenterServiceExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->securityCenterServiceName('[PROJECT]', '[LOCATION]', '[SERVICE]');
+ $request = (new GetSecurityCenterServiceRequest())->setName($formattedName);
+ try {
+ $gapicClient->getSecurityCenterService($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function getSecurityHealthAnalyticsCustomModuleTest()
{
@@ -1112,6 +1185,80 @@ public function listEventThreatDetectionCustomModulesExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function listSecurityCenterServicesTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $securityCenterServicesElement = new SecurityCenterService();
+ $securityCenterServices = [$securityCenterServicesElement];
+ $expectedResponse = new ListSecurityCenterServicesResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setSecurityCenterServices($securityCenterServices);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $request = (new ListSecurityCenterServicesRequest())->setParent($formattedParent);
+ $response = $gapicClient->listSecurityCenterServices($request);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getSecurityCenterServices()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame(
+ '/google.cloud.securitycentermanagement.v1.SecurityCenterManagement/ListSecurityCenterServices',
+ $actualFuncCall
+ );
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function listSecurityCenterServicesExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $request = (new ListSecurityCenterServicesRequest())->setParent($formattedParent);
+ try {
+ $gapicClient->listSecurityCenterServices($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function listSecurityHealthAnalyticsCustomModulesTest()
{
@@ -1356,6 +1503,82 @@ public function updateEventThreatDetectionCustomModuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateSecurityCenterServiceTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $expectedResponse = new SecurityCenterService();
+ $expectedResponse->setName($name);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $securityCenterService = new SecurityCenterService();
+ $updateMask = new FieldMask();
+ $request = (new UpdateSecurityCenterServiceRequest())
+ ->setSecurityCenterService($securityCenterService)
+ ->setUpdateMask($updateMask);
+ $response = $gapicClient->updateSecurityCenterService($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame(
+ '/google.cloud.securitycentermanagement.v1.SecurityCenterManagement/UpdateSecurityCenterService',
+ $actualFuncCall
+ );
+ $actualValue = $actualRequestObject->getSecurityCenterService();
+ $this->assertProtobufEquals($securityCenterService, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateSecurityCenterServiceExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode(
+ [
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ],
+ JSON_PRETTY_PRINT
+ );
+ $transport->addResponse(null, $status);
+ // Mock request
+ $securityCenterService = new SecurityCenterService();
+ $updateMask = new FieldMask();
+ $request = (new UpdateSecurityCenterServiceRequest())
+ ->setSecurityCenterService($securityCenterService)
+ ->setUpdateMask($updateMask);
+ try {
+ $gapicClient->updateSecurityCenterService($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateSecurityHealthAnalyticsCustomModuleTest()
{