<?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 Platform data. */
|
|
const CLOUD_PLATFORM =
|
|
"https://www.googleapis.com/auth/cloud-platform";
|
|
|
|
public $folders_assets;
|
|
public $folders_sources;
|
|
public $folders_sources_findings;
|
|
public $organizations;
|
|
public $organizations_assets;
|
|
public $organizations_notificationConfigs;
|
|
public $organizations_operations;
|
|
public $organizations_sources;
|
|
public $organizations_sources_findings;
|
|
public $projects_assets;
|
|
public $projects_sources;
|
|
public $projects_sources_findings;
|
|
|
|
/**
|
|
* 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->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_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',
|
|
],
|
|
],
|
|
],'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 = 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_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_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',
|
|
],
|
|
],
|
|
],'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_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_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',
|
|
],
|
|
],
|
|
],'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',
|
|
],
|
|
],
|
|
],
|
|
]
|
|
]
|
|
);
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(SecurityCommandCenter::class, 'Google_Service_SecurityCommandCenter');
|