3020 lines
94 KiB
PHP
Executable File
3020 lines
94 KiB
PHP
Executable File
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service;
|
|
|
|
use Google\Client;
|
|
|
|
/**
|
|
* Service definition for SecurityCommandCenter (v1).
|
|
*
|
|
* <p>
|
|
* Security Command Center API provides access to temporal views of assets and
|
|
* findings within an organization.</p>
|
|
*
|
|
* <p>
|
|
* For more information about this service, see the API
|
|
* <a href="https://cloud.google.com/security-command-center" target="_blank">Documentation</a>
|
|
* </p>
|
|
*
|
|
* @author Google, Inc.
|
|
*/
|
|
class SecurityCommandCenter extends \Google\Service
|
|
{
|
|
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
|
const CLOUD_PLATFORM =
|
|
"https://www.googleapis.com/auth/cloud-platform";
|
|
|
|
public $folders_assets;
|
|
public $folders_bigQueryExports;
|
|
public $folders_eventThreatDetectionSettings;
|
|
public $folders_eventThreatDetectionSettings_customModules;
|
|
public $folders_eventThreatDetectionSettings_effectiveCustomModules;
|
|
public $folders_findings;
|
|
public $folders_locations_muteConfigs;
|
|
public $folders_muteConfigs;
|
|
public $folders_notificationConfigs;
|
|
public $folders_securityHealthAnalyticsSettings_customModules;
|
|
public $folders_securityHealthAnalyticsSettings_effectiveCustomModules;
|
|
public $folders_sources;
|
|
public $folders_sources_findings;
|
|
public $folders_sources_findings_externalSystems;
|
|
public $organizations;
|
|
public $organizations_assets;
|
|
public $organizations_bigQueryExports;
|
|
public $organizations_eventThreatDetectionSettings;
|
|
public $organizations_eventThreatDetectionSettings_customModules;
|
|
public $organizations_eventThreatDetectionSettings_effectiveCustomModules;
|
|
public $organizations_findings;
|
|
public $organizations_locations_muteConfigs;
|
|
public $organizations_muteConfigs;
|
|
public $organizations_notificationConfigs;
|
|
public $organizations_operations;
|
|
public $organizations_resourceValueConfigs;
|
|
public $organizations_securityHealthAnalyticsSettings_customModules;
|
|
public $organizations_securityHealthAnalyticsSettings_effectiveCustomModules;
|
|
public $organizations_simulations;
|
|
public $organizations_simulations_attackExposureResults_attackPaths;
|
|
public $organizations_simulations_attackExposureResults_valuedResources;
|
|
public $organizations_simulations_attackPaths;
|
|
public $organizations_simulations_valuedResources;
|
|
public $organizations_simulations_valuedResources_attackPaths;
|
|
public $organizations_sources;
|
|
public $organizations_sources_findings;
|
|
public $organizations_sources_findings_externalSystems;
|
|
public $projects_assets;
|
|
public $projects_bigQueryExports;
|
|
public $projects_eventThreatDetectionSettings;
|
|
public $projects_eventThreatDetectionSettings_customModules;
|
|
public $projects_eventThreatDetectionSettings_effectiveCustomModules;
|
|
public $projects_findings;
|
|
public $projects_locations_muteConfigs;
|
|
public $projects_muteConfigs;
|
|
public $projects_notificationConfigs;
|
|
public $projects_securityHealthAnalyticsSettings_customModules;
|
|
public $projects_securityHealthAnalyticsSettings_effectiveCustomModules;
|
|
public $projects_sources;
|
|
public $projects_sources_findings;
|
|
public $projects_sources_findings_externalSystems;
|
|
public $rootUrlTemplate;
|
|
|
|
/**
|
|
* Constructs the internal representation of the SecurityCommandCenter
|
|
* service.
|
|
*
|
|
* @param Client|array $clientOrConfig The client used to deliver requests, or a
|
|
* config array to pass to a new Client instance.
|
|
* @param string $rootUrl The root URL used for requests to the service.
|
|
*/
|
|
public function __construct($clientOrConfig = [], $rootUrl = null)
|
|
{
|
|
parent::__construct($clientOrConfig);
|
|
$this->rootUrl = $rootUrl ?: 'https://securitycenter.googleapis.com/';
|
|
$this->rootUrlTemplate = $rootUrl ?: 'https://securitycenter.UNIVERSE_DOMAIN/';
|
|
$this->servicePath = '';
|
|
$this->batchPath = 'batch';
|
|
$this->version = 'v1';
|
|
$this->serviceName = 'securitycenter';
|
|
|
|
$this->folders_assets = new SecurityCommandCenter\Resource\FoldersAssets(
|
|
$this,
|
|
$this->serviceName,
|
|
'assets',
|
|
[
|
|
'methods' => [
|
|
'group' => [
|
|
'path' => 'v1/{+parent}/assets:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/assets',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_bigQueryExports = new SecurityCommandCenter\Resource\FoldersBigQueryExports(
|
|
$this,
|
|
$this->serviceName,
|
|
'bigQueryExports',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'bigQueryExportId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_eventThreatDetectionSettings = new SecurityCommandCenter\Resource\FoldersEventThreatDetectionSettings(
|
|
$this,
|
|
$this->serviceName,
|
|
'eventThreatDetectionSettings',
|
|
[
|
|
'methods' => [
|
|
'validateCustomModule' => [
|
|
'path' => 'v1/{+parent}:validateCustomModule',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_eventThreatDetectionSettings_customModules = new SecurityCommandCenter\Resource\FoldersEventThreatDetectionSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_eventThreatDetectionSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\FoldersEventThreatDetectionSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_findings = new SecurityCommandCenter\Resource\FoldersFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'bulkMute' => [
|
|
'path' => 'v1/{+parent}/findings:bulkMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_locations_muteConfigs = new SecurityCommandCenter\Resource\FoldersLocationsMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_muteConfigs = new SecurityCommandCenter\Resource\FoldersMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'muteConfigId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_notificationConfigs = new SecurityCommandCenter\Resource\FoldersNotificationConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'notificationConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'configId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_securityHealthAnalyticsSettings_customModules = new SecurityCommandCenter\Resource\FoldersSecurityHealthAnalyticsSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'simulate' => [
|
|
'path' => 'v1/{+parent}/customModules:simulate',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_securityHealthAnalyticsSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\FoldersSecurityHealthAnalyticsSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_sources = new SecurityCommandCenter\Resource\FoldersSources(
|
|
$this,
|
|
$this->serviceName,
|
|
'sources',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/sources',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_sources_findings = new SecurityCommandCenter\Resource\FoldersSourcesFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'group' => [
|
|
'path' => 'v1/{+parent}/findings:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/findings',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'setMute' => [
|
|
'path' => 'v1/{+name}:setMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'setState' => [
|
|
'path' => 'v1/{+name}:setState',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->folders_sources_findings_externalSystems = new SecurityCommandCenter\Resource\FoldersSourcesFindingsExternalSystems(
|
|
$this,
|
|
$this->serviceName,
|
|
'externalSystems',
|
|
[
|
|
'methods' => [
|
|
'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations = new SecurityCommandCenter\Resource\Organizations(
|
|
$this,
|
|
$this->serviceName,
|
|
'organizations',
|
|
[
|
|
'methods' => [
|
|
'getOrganizationSettings' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'updateOrganizationSettings' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_assets = new SecurityCommandCenter\Resource\OrganizationsAssets(
|
|
$this,
|
|
$this->serviceName,
|
|
'assets',
|
|
[
|
|
'methods' => [
|
|
'group' => [
|
|
'path' => 'v1/{+parent}/assets:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/assets',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'runDiscovery' => [
|
|
'path' => 'v1/{+parent}/assets:runDiscovery',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_bigQueryExports = new SecurityCommandCenter\Resource\OrganizationsBigQueryExports(
|
|
$this,
|
|
$this->serviceName,
|
|
'bigQueryExports',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'bigQueryExportId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_eventThreatDetectionSettings = new SecurityCommandCenter\Resource\OrganizationsEventThreatDetectionSettings(
|
|
$this,
|
|
$this->serviceName,
|
|
'eventThreatDetectionSettings',
|
|
[
|
|
'methods' => [
|
|
'validateCustomModule' => [
|
|
'path' => 'v1/{+parent}:validateCustomModule',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_eventThreatDetectionSettings_customModules = new SecurityCommandCenter\Resource\OrganizationsEventThreatDetectionSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_eventThreatDetectionSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\OrganizationsEventThreatDetectionSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_findings = new SecurityCommandCenter\Resource\OrganizationsFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'bulkMute' => [
|
|
'path' => 'v1/{+parent}/findings:bulkMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_locations_muteConfigs = new SecurityCommandCenter\Resource\OrganizationsLocationsMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_muteConfigs = new SecurityCommandCenter\Resource\OrganizationsMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'muteConfigId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_notificationConfigs = new SecurityCommandCenter\Resource\OrganizationsNotificationConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'notificationConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'configId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_operations = new SecurityCommandCenter\Resource\OrganizationsOperations(
|
|
$this,
|
|
$this->serviceName,
|
|
'operations',
|
|
[
|
|
'methods' => [
|
|
'cancel' => [
|
|
'path' => 'v1/{+name}:cancel',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_resourceValueConfigs = new SecurityCommandCenter\Resource\OrganizationsResourceValueConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'resourceValueConfigs',
|
|
[
|
|
'methods' => [
|
|
'batchCreate' => [
|
|
'path' => 'v1/{+parent}/resourceValueConfigs:batchCreate',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/resourceValueConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_securityHealthAnalyticsSettings_customModules = new SecurityCommandCenter\Resource\OrganizationsSecurityHealthAnalyticsSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'simulate' => [
|
|
'path' => 'v1/{+parent}/customModules:simulate',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_securityHealthAnalyticsSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\OrganizationsSecurityHealthAnalyticsSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations = new SecurityCommandCenter\Resource\OrganizationsSimulations(
|
|
$this,
|
|
$this->serviceName,
|
|
'simulations',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations_attackExposureResults_attackPaths = new SecurityCommandCenter\Resource\OrganizationsSimulationsAttackExposureResultsAttackPaths(
|
|
$this,
|
|
$this->serviceName,
|
|
'attackPaths',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/attackPaths',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations_attackExposureResults_valuedResources = new SecurityCommandCenter\Resource\OrganizationsSimulationsAttackExposureResultsValuedResources(
|
|
$this,
|
|
$this->serviceName,
|
|
'valuedResources',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/valuedResources',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations_attackPaths = new SecurityCommandCenter\Resource\OrganizationsSimulationsAttackPaths(
|
|
$this,
|
|
$this->serviceName,
|
|
'attackPaths',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/attackPaths',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations_valuedResources = new SecurityCommandCenter\Resource\OrganizationsSimulationsValuedResources(
|
|
$this,
|
|
$this->serviceName,
|
|
'valuedResources',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/valuedResources',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_simulations_valuedResources_attackPaths = new SecurityCommandCenter\Resource\OrganizationsSimulationsValuedResourcesAttackPaths(
|
|
$this,
|
|
$this->serviceName,
|
|
'attackPaths',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/attackPaths',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_sources = new SecurityCommandCenter\Resource\OrganizationsSources(
|
|
$this,
|
|
$this->serviceName,
|
|
'sources',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/sources',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'getIamPolicy' => [
|
|
'path' => 'v1/{+resource}:getIamPolicy',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'resource' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/sources',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'setIamPolicy' => [
|
|
'path' => 'v1/{+resource}:setIamPolicy',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'resource' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'testIamPermissions' => [
|
|
'path' => 'v1/{+resource}:testIamPermissions',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'resource' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_sources_findings = new SecurityCommandCenter\Resource\OrganizationsSourcesFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/findings',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'findingId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'group' => [
|
|
'path' => 'v1/{+parent}/findings:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/findings',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'setMute' => [
|
|
'path' => 'v1/{+name}:setMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'setState' => [
|
|
'path' => 'v1/{+name}:setState',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->organizations_sources_findings_externalSystems = new SecurityCommandCenter\Resource\OrganizationsSourcesFindingsExternalSystems(
|
|
$this,
|
|
$this->serviceName,
|
|
'externalSystems',
|
|
[
|
|
'methods' => [
|
|
'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_assets = new SecurityCommandCenter\Resource\ProjectsAssets(
|
|
$this,
|
|
$this->serviceName,
|
|
'assets',
|
|
[
|
|
'methods' => [
|
|
'group' => [
|
|
'path' => 'v1/{+parent}/assets:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/assets',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_bigQueryExports = new SecurityCommandCenter\Resource\ProjectsBigQueryExports(
|
|
$this,
|
|
$this->serviceName,
|
|
'bigQueryExports',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'bigQueryExportId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/bigQueryExports',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_eventThreatDetectionSettings = new SecurityCommandCenter\Resource\ProjectsEventThreatDetectionSettings(
|
|
$this,
|
|
$this->serviceName,
|
|
'eventThreatDetectionSettings',
|
|
[
|
|
'methods' => [
|
|
'validateCustomModule' => [
|
|
'path' => 'v1/{+parent}:validateCustomModule',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_eventThreatDetectionSettings_customModules = new SecurityCommandCenter\Resource\ProjectsEventThreatDetectionSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_eventThreatDetectionSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\ProjectsEventThreatDetectionSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_findings = new SecurityCommandCenter\Resource\ProjectsFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'bulkMute' => [
|
|
'path' => 'v1/{+parent}/findings:bulkMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_locations_muteConfigs = new SecurityCommandCenter\Resource\ProjectsLocationsMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_muteConfigs = new SecurityCommandCenter\Resource\ProjectsMuteConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'muteConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'muteConfigId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/muteConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_notificationConfigs = new SecurityCommandCenter\Resource\ProjectsNotificationConfigs(
|
|
$this,
|
|
$this->serviceName,
|
|
'notificationConfigs',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'configId' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/notificationConfigs',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_securityHealthAnalyticsSettings_customModules = new SecurityCommandCenter\Resource\ProjectsSecurityHealthAnalyticsSettingsCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'customModules',
|
|
[
|
|
'methods' => [
|
|
'create' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'delete' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'DELETE',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/customModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'listDescendant' => [
|
|
'path' => 'v1/{+parent}/customModules:listDescendant',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'simulate' => [
|
|
'path' => 'v1/{+parent}/customModules:simulate',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_securityHealthAnalyticsSettings_effectiveCustomModules = new SecurityCommandCenter\Resource\ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules(
|
|
$this,
|
|
$this->serviceName,
|
|
'effectiveCustomModules',
|
|
[
|
|
'methods' => [
|
|
'get' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/effectiveCustomModules',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_sources = new SecurityCommandCenter\Resource\ProjectsSources(
|
|
$this,
|
|
$this->serviceName,
|
|
'sources',
|
|
[
|
|
'methods' => [
|
|
'list' => [
|
|
'path' => 'v1/{+parent}/sources',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_sources_findings = new SecurityCommandCenter\Resource\ProjectsSourcesFindings(
|
|
$this,
|
|
$this->serviceName,
|
|
'findings',
|
|
[
|
|
'methods' => [
|
|
'group' => [
|
|
'path' => 'v1/{+parent}/findings:group',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'list' => [
|
|
'path' => 'v1/{+parent}/findings',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => [
|
|
'parent' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'compareDuration' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'fieldMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'filter' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'orderBy' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'pageSize' => [
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
],
|
|
'pageToken' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'readTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],'setMute' => [
|
|
'path' => 'v1/{+name}:setMute',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'setState' => [
|
|
'path' => 'v1/{+name}:setState',
|
|
'httpMethod' => 'POST',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
],
|
|
],'updateSecurityMarks' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'startTime' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
$this->projects_sources_findings_externalSystems = new SecurityCommandCenter\Resource\ProjectsSourcesFindingsExternalSystems(
|
|
$this,
|
|
$this->serviceName,
|
|
'externalSystems',
|
|
[
|
|
'methods' => [
|
|
'patch' => [
|
|
'path' => 'v1/{+name}',
|
|
'httpMethod' => 'PATCH',
|
|
'parameters' => [
|
|
'name' => [
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'updateMask' => [
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(SecurityCommandCenter::class, 'Google_Service_SecurityCommandCenter');
|