gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,308 @@
<?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\SecurityCommandCenter;
class Access extends \Google\Collection
{
protected $collection_key = 'serviceAccountDelegationInfo';
/**
* Caller's IP address, such as "1.1.1.1".
*
* @var string
*/
public $callerIp;
protected $callerIpGeoType = Geolocation::class;
protected $callerIpGeoDataType = '';
/**
* The method that the service account called, e.g. "SetIamPolicy".
*
* @var string
*/
public $methodName;
/**
* Associated email, such as "foo@google.com". The email address of the
* authenticated user or a service account acting on behalf of a third party
* principal making the request. For third party identity callers, the
* `principal_subject` field is populated instead of this field. For privacy
* reasons, the principal email address is sometimes redacted. For more
* information, see [Caller identities in audit
* logs](https://cloud.google.com/logging/docs/audit#user-id).
*
* @var string
*/
public $principalEmail;
/**
* A string that represents the principal_subject that is associated with the
* identity. Unlike `principal_email`, `principal_subject` supports principals
* that aren't associated with email addresses, such as third party
* principals. For most identities, the format is
* `principal://iam.googleapis.com/{identity pool name}/subject/{subject}`.
* Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD,
* still use the legacy format `serviceAccount:{identity pool
* name}[{subject}]`.
*
* @var string
*/
public $principalSubject;
protected $serviceAccountDelegationInfoType = ServiceAccountDelegationInfo::class;
protected $serviceAccountDelegationInfoDataType = 'array';
/**
* The name of the service account key that was used to create or exchange
* credentials when authenticating the service account that made the request.
* This is a scheme-less URI full resource name. For example: "//iam.googleapi
* s.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}".
*
* @var string
*/
public $serviceAccountKeyName;
/**
* This is the API service that the service account made a call to, e.g.
* "iam.googleapis.com"
*
* @var string
*/
public $serviceName;
/**
* The caller's user agent string associated with the finding.
*
* @var string
*/
public $userAgent;
/**
* Type of user agent associated with the finding. For example, an operating
* system shell or an embedded or standalone application.
*
* @var string
*/
public $userAgentFamily;
/**
* A string that represents a username. The username provided depends on the
* type of the finding and is likely not an IAM principal. For example, this
* can be a system username if the finding is related to a virtual machine, or
* it can be an application login username.
*
* @var string
*/
public $userName;
/**
* Caller's IP address, such as "1.1.1.1".
*
* @param string $callerIp
*/
public function setCallerIp($callerIp)
{
$this->callerIp = $callerIp;
}
/**
* @return string
*/
public function getCallerIp()
{
return $this->callerIp;
}
/**
* The caller IP's geolocation, which identifies where the call came from.
*
* @param Geolocation $callerIpGeo
*/
public function setCallerIpGeo(Geolocation $callerIpGeo)
{
$this->callerIpGeo = $callerIpGeo;
}
/**
* @return Geolocation
*/
public function getCallerIpGeo()
{
return $this->callerIpGeo;
}
/**
* The method that the service account called, e.g. "SetIamPolicy".
*
* @param string $methodName
*/
public function setMethodName($methodName)
{
$this->methodName = $methodName;
}
/**
* @return string
*/
public function getMethodName()
{
return $this->methodName;
}
/**
* Associated email, such as "foo@google.com". The email address of the
* authenticated user or a service account acting on behalf of a third party
* principal making the request. For third party identity callers, the
* `principal_subject` field is populated instead of this field. For privacy
* reasons, the principal email address is sometimes redacted. For more
* information, see [Caller identities in audit
* logs](https://cloud.google.com/logging/docs/audit#user-id).
*
* @param string $principalEmail
*/
public function setPrincipalEmail($principalEmail)
{
$this->principalEmail = $principalEmail;
}
/**
* @return string
*/
public function getPrincipalEmail()
{
return $this->principalEmail;
}
/**
* A string that represents the principal_subject that is associated with the
* identity. Unlike `principal_email`, `principal_subject` supports principals
* that aren't associated with email addresses, such as third party
* principals. For most identities, the format is
* `principal://iam.googleapis.com/{identity pool name}/subject/{subject}`.
* Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD,
* still use the legacy format `serviceAccount:{identity pool
* name}[{subject}]`.
*
* @param string $principalSubject
*/
public function setPrincipalSubject($principalSubject)
{
$this->principalSubject = $principalSubject;
}
/**
* @return string
*/
public function getPrincipalSubject()
{
return $this->principalSubject;
}
/**
* The identity delegation history of an authenticated service account that
* made the request. The `serviceAccountDelegationInfo[]` object contains
* information about the real authorities that try to access Google Cloud
* resources by delegating on a service account. When multiple authorities are
* present, they are guaranteed to be sorted based on the original ordering of
* the identity delegation events.
*
* @param ServiceAccountDelegationInfo[] $serviceAccountDelegationInfo
*/
public function setServiceAccountDelegationInfo($serviceAccountDelegationInfo)
{
$this->serviceAccountDelegationInfo = $serviceAccountDelegationInfo;
}
/**
* @return ServiceAccountDelegationInfo[]
*/
public function getServiceAccountDelegationInfo()
{
return $this->serviceAccountDelegationInfo;
}
/**
* The name of the service account key that was used to create or exchange
* credentials when authenticating the service account that made the request.
* This is a scheme-less URI full resource name. For example: "//iam.googleapi
* s.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}".
*
* @param string $serviceAccountKeyName
*/
public function setServiceAccountKeyName($serviceAccountKeyName)
{
$this->serviceAccountKeyName = $serviceAccountKeyName;
}
/**
* @return string
*/
public function getServiceAccountKeyName()
{
return $this->serviceAccountKeyName;
}
/**
* This is the API service that the service account made a call to, e.g.
* "iam.googleapis.com"
*
* @param string $serviceName
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
/**
* The caller's user agent string associated with the finding.
*
* @param string $userAgent
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
/**
* Type of user agent associated with the finding. For example, an operating
* system shell or an embedded or standalone application.
*
* @param string $userAgentFamily
*/
public function setUserAgentFamily($userAgentFamily)
{
$this->userAgentFamily = $userAgentFamily;
}
/**
* @return string
*/
public function getUserAgentFamily()
{
return $this->userAgentFamily;
}
/**
* A string that represents a username. The username provided depends on the
* type of the finding and is likely not an IAM principal. For example, this
* can be a system username if the finding is related to a virtual machine, or
* it can be an application login username.
*
* @param string $userName
*/
public function setUserName($userName)
{
$this->userName = $userName;
}
/**
* @return string
*/
public function getUserName()
{
return $this->userName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Access::class, 'Google_Service_SecurityCommandCenter_Access');
@@ -0,0 +1,186 @@
<?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\SecurityCommandCenter;
class AccessReview extends \Google\Model
{
/**
* The API group of the resource. "*" means all.
*
* @var string
*/
public $group;
/**
* The name of the resource being requested. Empty means all.
*
* @var string
*/
public $name;
/**
* Namespace of the action being requested. Currently, there is no distinction
* between no namespace and all namespaces. Both are represented by ""
* (empty).
*
* @var string
*/
public $ns;
/**
* The optional resource type requested. "*" means all.
*
* @var string
*/
public $resource;
/**
* The optional subresource type.
*
* @var string
*/
public $subresource;
/**
* A Kubernetes resource API verb, like get, list, watch, create, update,
* delete, proxy. "*" means all.
*
* @var string
*/
public $verb;
/**
* The API version of the resource. "*" means all.
*
* @var string
*/
public $version;
/**
* The API group of the resource. "*" means all.
*
* @param string $group
*/
public function setGroup($group)
{
$this->group = $group;
}
/**
* @return string
*/
public function getGroup()
{
return $this->group;
}
/**
* The name of the resource being requested. Empty means all.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Namespace of the action being requested. Currently, there is no distinction
* between no namespace and all namespaces. Both are represented by ""
* (empty).
*
* @param string $ns
*/
public function setNs($ns)
{
$this->ns = $ns;
}
/**
* @return string
*/
public function getNs()
{
return $this->ns;
}
/**
* The optional resource type requested. "*" means all.
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* The optional subresource type.
*
* @param string $subresource
*/
public function setSubresource($subresource)
{
$this->subresource = $subresource;
}
/**
* @return string
*/
public function getSubresource()
{
return $this->subresource;
}
/**
* A Kubernetes resource API verb, like get, list, watch, create, update,
* delete, proxy. "*" means all.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
/**
* The API version of the resource. "*" means all.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessReview::class, 'Google_Service_SecurityCommandCenter_AccessReview');
@@ -0,0 +1,44 @@
<?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\SecurityCommandCenter;
class AdaptiveProtection extends \Google\Model
{
/**
* A score of 0 means that there is low confidence that the detected event is
* an actual attack. A score of 1 means that there is high confidence that the
* detected event is an attack. See the [Adaptive Protection
* documentation](https://cloud.google.com/armor/docs/adaptive-protection-
* overview#configure-alert-tuning) for further explanation.
*
* @var
*/
public $confidence;
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
public function getConfidence()
{
return $this->confidence;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdaptiveProtection::class, 'Google_Service_SecurityCommandCenter_AdaptiveProtection');
@@ -0,0 +1,68 @@
<?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\SecurityCommandCenter;
class AdcApplication extends \Google\Model
{
protected $attributesType = GoogleCloudSecuritycenterV1ResourceApplicationAttributes::class;
protected $attributesDataType = '';
/**
* The resource name of an ADC Application. Format: projects/{project}/locatio
* ns/{location}/spaces/{space}/applications/{application}
*
* @var string
*/
public $name;
/**
* Consumer provided attributes for the AppHub application.
*
* @param GoogleCloudSecuritycenterV1ResourceApplicationAttributes $attributes
*/
public function setAttributes(GoogleCloudSecuritycenterV1ResourceApplicationAttributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return GoogleCloudSecuritycenterV1ResourceApplicationAttributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* The resource name of an ADC Application. Format: projects/{project}/locatio
* ns/{location}/spaces/{space}/applications/{application}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdcApplication::class, 'Google_Service_SecurityCommandCenter_AdcApplication');
@@ -0,0 +1,52 @@
<?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\SecurityCommandCenter;
class AdcApplicationTemplateRevision extends \Google\Model
{
/**
* The resource name of an ADC Application Template Revision. Format: projects
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
* ation_template}/revisions/{revision}
*
* @var string
*/
public $name;
/**
* The resource name of an ADC Application Template Revision. Format: projects
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
* ation_template}/revisions/{revision}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdcApplicationTemplateRevision::class, 'Google_Service_SecurityCommandCenter_AdcApplicationTemplateRevision');
@@ -0,0 +1,52 @@
<?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\SecurityCommandCenter;
class AdcSharedTemplateRevision extends \Google\Model
{
/**
* The resource name of an ADC Shared Template Revision. Format: projects/{pro
* ject}/locations/{location}/spaces/{space}/applicationTemplates/{application
* _template}/revisions/{revision}
*
* @var string
*/
public $name;
/**
* The resource name of an ADC Shared Template Revision. Format: projects/{pro
* ject}/locations/{location}/spaces/{space}/applicationTemplates/{application
* _template}/revisions/{revision}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdcSharedTemplateRevision::class, 'Google_Service_SecurityCommandCenter_AdcSharedTemplateRevision');
@@ -0,0 +1,48 @@
<?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\SecurityCommandCenter;
class AffectedResources extends \Google\Model
{
/**
* The count of resources affected by the finding.
*
* @var string
*/
public $count;
/**
* The count of resources affected by the finding.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AffectedResources::class, 'Google_Service_SecurityCommandCenter_AffectedResources');
@@ -0,0 +1,132 @@
<?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\SecurityCommandCenter;
class AgentDataAccessEvent extends \Google\Model
{
/**
* The operation is unspecified.
*/
public const OPERATION_OPERATION_UNSPECIFIED = 'OPERATION_UNSPECIFIED';
/**
* Represents a read operation.
*/
public const OPERATION_READ = 'READ';
/**
* Represents a move operation.
*/
public const OPERATION_MOVE = 'MOVE';
/**
* Represents a copy operation.
*/
public const OPERATION_COPY = 'COPY';
/**
* Unique identifier for data access event.
*
* @var string
*/
public $eventId;
/**
* Timestamp of data access event.
*
* @var string
*/
public $eventTime;
/**
* The operation performed by the principal to access the data.
*
* @var string
*/
public $operation;
/**
* The agent principal that accessed the data.
*
* @var string
*/
public $principalSubject;
/**
* Unique identifier for data access event.
*
* @param string $eventId
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* Timestamp of data access event.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* The operation performed by the principal to access the data.
*
* Accepted values: OPERATION_UNSPECIFIED, READ, MOVE, COPY
*
* @param self::OPERATION_* $operation
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return self::OPERATION_*
*/
public function getOperation()
{
return $this->operation;
}
/**
* The agent principal that accessed the data.
*
* @param string $principalSubject
*/
public function setPrincipalSubject($principalSubject)
{
$this->principalSubject = $principalSubject;
}
/**
* @return string
*/
public function getPrincipalSubject()
{
return $this->principalSubject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentDataAccessEvent::class, 'Google_Service_SecurityCommandCenter_AgentDataAccessEvent');
@@ -0,0 +1,225 @@
<?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\SecurityCommandCenter;
class AiModel extends \Google\Model
{
/**
* Unspecified deployment platform.
*/
public const DEPLOYMENT_PLATFORM_DEPLOYMENT_PLATFORM_UNSPECIFIED = 'DEPLOYMENT_PLATFORM_UNSPECIFIED';
/**
* Vertex AI.
*/
public const DEPLOYMENT_PLATFORM_VERTEX_AI = 'VERTEX_AI';
/**
* Google Kubernetes Engine.
*/
public const DEPLOYMENT_PLATFORM_GKE = 'GKE';
/**
* Google Compute Engine.
*/
public const DEPLOYMENT_PLATFORM_GCE = 'GCE';
/**
* Fine tuned model.
*/
public const DEPLOYMENT_PLATFORM_FINE_TUNED_MODEL = 'FINE_TUNED_MODEL';
/**
* The platform on which the model is deployed.
*
* @var string
*/
public $deploymentPlatform;
/**
* The user defined display name of model. Ex. baseline-classification-model
*
* @var string
*/
public $displayName;
/**
* The domain of the model, for example, “image-classification”.
*
* @var string
*/
public $domain;
/**
* The name of the model library, for example, “transformers”.
*
* @var string
*/
public $library;
/**
* The region in which the model is used, for example, “us-central1”.
*
* @var string
*/
public $location;
/**
* The name of the AI model, for example, "gemini:1.0.0".
*
* @var string
*/
public $name;
/**
* The publisher of the model, for example, “google” or “nvidia”.
*
* @var string
*/
public $publisher;
/**
* The purpose of the model, for example, "Inteference" or "Training".
*
* @var string
*/
public $usageCategory;
/**
* The platform on which the model is deployed.
*
* Accepted values: DEPLOYMENT_PLATFORM_UNSPECIFIED, VERTEX_AI, GKE, GCE,
* FINE_TUNED_MODEL
*
* @param self::DEPLOYMENT_PLATFORM_* $deploymentPlatform
*/
public function setDeploymentPlatform($deploymentPlatform)
{
$this->deploymentPlatform = $deploymentPlatform;
}
/**
* @return self::DEPLOYMENT_PLATFORM_*
*/
public function getDeploymentPlatform()
{
return $this->deploymentPlatform;
}
/**
* The user defined display name of model. Ex. baseline-classification-model
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The domain of the model, for example, “image-classification”.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* The name of the model library, for example, “transformers”.
*
* @param string $library
*/
public function setLibrary($library)
{
$this->library = $library;
}
/**
* @return string
*/
public function getLibrary()
{
return $this->library;
}
/**
* The region in which the model is used, for example, “us-central1”.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The name of the AI model, for example, "gemini:1.0.0".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The publisher of the model, for example, “google” or “nvidia”.
*
* @param string $publisher
*/
public function setPublisher($publisher)
{
$this->publisher = $publisher;
}
/**
* @return string
*/
public function getPublisher()
{
return $this->publisher;
}
/**
* The purpose of the model, for example, "Inteference" or "Training".
*
* @param string $usageCategory
*/
public function setUsageCategory($usageCategory)
{
$this->usageCategory = $usageCategory;
}
/**
* @return string
*/
public function getUsageCategory()
{
return $this->usageCategory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AiModel::class, 'Google_Service_SecurityCommandCenter_AiModel');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class Allowed extends \Google\Collection
{
protected $collection_key = 'ipRules';
protected $ipRulesType = IpRule::class;
protected $ipRulesDataType = 'array';
/**
* Optional. Optional list of allowed IP rules.
*
* @param IpRule[] $ipRules
*/
public function setIpRules($ipRules)
{
$this->ipRules = $ipRules;
}
/**
* @return IpRule[]
*/
public function getIpRules()
{
return $this->ipRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Allowed::class, 'Google_Service_SecurityCommandCenter_Allowed');
@@ -0,0 +1,74 @@
<?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\SecurityCommandCenter;
class Application extends \Google\Model
{
/**
* The base URI that identifies the network location of the application in
* which the vulnerability was detected. For example, `http://example.com`.
*
* @var string
*/
public $baseUri;
/**
* The full URI with payload that can be used to reproduce the vulnerability.
* For example, `http://example.com?p=aMmYgI6H`.
*
* @var string
*/
public $fullUri;
/**
* The base URI that identifies the network location of the application in
* which the vulnerability was detected. For example, `http://example.com`.
*
* @param string $baseUri
*/
public function setBaseUri($baseUri)
{
$this->baseUri = $baseUri;
}
/**
* @return string
*/
public function getBaseUri()
{
return $this->baseUri;
}
/**
* The full URI with payload that can be used to reproduce the vulnerability.
* For example, `http://example.com?p=aMmYgI6H`.
*
* @param string $fullUri
*/
public function setFullUri($fullUri)
{
$this->fullUri = $fullUri;
}
/**
* @return string
*/
public function getFullUri()
{
return $this->fullUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Application::class, 'Google_Service_SecurityCommandCenter_Application');
@@ -0,0 +1,67 @@
<?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\SecurityCommandCenter;
class ArtifactGuardPolicies extends \Google\Collection
{
protected $collection_key = 'failingPolicies';
protected $failingPoliciesType = ArtifactGuardPolicy::class;
protected $failingPoliciesDataType = 'array';
/**
* The ID of the resource that has policies configured for it.
*
* @var string
*/
public $resourceId;
/**
* A list of failing policies.
*
* @param ArtifactGuardPolicy[] $failingPolicies
*/
public function setFailingPolicies($failingPolicies)
{
$this->failingPolicies = $failingPolicies;
}
/**
* @return ArtifactGuardPolicy[]
*/
public function getFailingPolicies()
{
return $this->failingPolicies;
}
/**
* The ID of the resource that has policies configured for it.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactGuardPolicies::class, 'Google_Service_SecurityCommandCenter_ArtifactGuardPolicies');
@@ -0,0 +1,106 @@
<?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\SecurityCommandCenter;
class ArtifactGuardPolicy extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const TYPE_ARTIFACT_GUARD_POLICY_TYPE_UNSPECIFIED = 'ARTIFACT_GUARD_POLICY_TYPE_UNSPECIFIED';
/**
* Vulnerability type.
*/
public const TYPE_VULNERABILITY = 'VULNERABILITY';
/**
* The reason for the policy failure, for example, "severity=HIGH AND
* max_vuln_count=2".
*
* @var string
*/
public $failureReason;
/**
* The ID of the failing policy, for example,
* "organizations/3392779/locations/global/policies/prod-policy".
*
* @var string
*/
public $policyId;
/**
* The type of the policy evaluation.
*
* @var string
*/
public $type;
/**
* The reason for the policy failure, for example, "severity=HIGH AND
* max_vuln_count=2".
*
* @param string $failureReason
*/
public function setFailureReason($failureReason)
{
$this->failureReason = $failureReason;
}
/**
* @return string
*/
public function getFailureReason()
{
return $this->failureReason;
}
/**
* The ID of the failing policy, for example,
* "organizations/3392779/locations/global/policies/prod-policy".
*
* @param string $policyId
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string
*/
public function getPolicyId()
{
return $this->policyId;
}
/**
* The type of the policy evaluation.
*
* Accepted values: ARTIFACT_GUARD_POLICY_TYPE_UNSPECIFIED, VULNERABILITY
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactGuardPolicy::class, 'Google_Service_SecurityCommandCenter_ArtifactGuardPolicy');
@@ -0,0 +1,209 @@
<?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\SecurityCommandCenter;
class Asset extends \Google\Model
{
/**
* The canonical name of the resource. It's either
* "organizations/{organization_id}/assets/{asset_id}",
* "folders/{folder_id}/assets/{asset_id}" or
* "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
* ancestor of the resource.
*
* @var string
*/
public $canonicalName;
/**
* The time at which the asset was created in Security Command Center.
*
* @var string
*/
public $createTime;
protected $iamPolicyType = IamPolicy::class;
protected $iamPolicyDataType = '';
/**
* The relative resource name of this asset. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* Example: "organizations/{organization_id}/assets/{asset_id}".
*
* @var string
*/
public $name;
/**
* Resource managed properties. These properties are managed and defined by
* the Google Cloud resource and cannot be modified by the user.
*
* @var array[]
*/
public $resourceProperties;
protected $securityCenterPropertiesType = SecurityCenterProperties::class;
protected $securityCenterPropertiesDataType = '';
protected $securityMarksType = SecurityMarks::class;
protected $securityMarksDataType = '';
/**
* The time at which the asset was last updated or added in Cloud SCC.
*
* @var string
*/
public $updateTime;
/**
* The canonical name of the resource. It's either
* "organizations/{organization_id}/assets/{asset_id}",
* "folders/{folder_id}/assets/{asset_id}" or
* "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
* ancestor of the resource.
*
* @param string $canonicalName
*/
public function setCanonicalName($canonicalName)
{
$this->canonicalName = $canonicalName;
}
/**
* @return string
*/
public function getCanonicalName()
{
return $this->canonicalName;
}
/**
* The time at which the asset was created in Security Command Center.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Cloud IAM Policy information associated with the Google Cloud resource
* described by the Security Command Center asset. This information is managed
* and defined by the Google Cloud resource and cannot be modified by the
* user.
*
* @param IamPolicy $iamPolicy
*/
public function setIamPolicy(IamPolicy $iamPolicy)
{
$this->iamPolicy = $iamPolicy;
}
/**
* @return IamPolicy
*/
public function getIamPolicy()
{
return $this->iamPolicy;
}
/**
* The relative resource name of this asset. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name
* Example: "organizations/{organization_id}/assets/{asset_id}".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Resource managed properties. These properties are managed and defined by
* the Google Cloud resource and cannot be modified by the user.
*
* @param array[] $resourceProperties
*/
public function setResourceProperties($resourceProperties)
{
$this->resourceProperties = $resourceProperties;
}
/**
* @return array[]
*/
public function getResourceProperties()
{
return $this->resourceProperties;
}
/**
* Security Command Center managed properties. These properties are managed by
* Security Command Center and cannot be modified by the user.
*
* @param SecurityCenterProperties $securityCenterProperties
*/
public function setSecurityCenterProperties(SecurityCenterProperties $securityCenterProperties)
{
$this->securityCenterProperties = $securityCenterProperties;
}
/**
* @return SecurityCenterProperties
*/
public function getSecurityCenterProperties()
{
return $this->securityCenterProperties;
}
/**
* User specified security marks. These marks are entirely managed by the user
* and come from the SecurityMarks resource that belongs to the asset.
*
* @param SecurityMarks $securityMarks
*/
public function setSecurityMarks(SecurityMarks $securityMarks)
{
$this->securityMarks = $securityMarks;
}
/**
* @return SecurityMarks
*/
public function getSecurityMarks()
{
return $this->securityMarks;
}
/**
* The time at which the asset was last updated or added in Cloud SCC.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Asset::class, 'Google_Service_SecurityCommandCenter_Asset');
@@ -0,0 +1,112 @@
<?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\SecurityCommandCenter;
class AssetDiscoveryConfig extends \Google\Collection
{
/**
* Unspecified. Setting the mode with this value will disable
* inclusion/exclusion filtering for Asset Discovery.
*/
public const INCLUSION_MODE_INCLUSION_MODE_UNSPECIFIED = 'INCLUSION_MODE_UNSPECIFIED';
/**
* Asset Discovery will capture only the resources within the projects
* specified. All other resources will be ignored.
*/
public const INCLUSION_MODE_INCLUDE_ONLY = 'INCLUDE_ONLY';
/**
* Asset Discovery will ignore all resources under the projects specified. All
* other resources will be retrieved.
*/
public const INCLUSION_MODE_EXCLUDE = 'EXCLUDE';
protected $collection_key = 'projectIds';
/**
* The folder ids to use for filtering asset discovery. It consists of only
* digits, e.g., 756619654966.
*
* @var string[]
*/
public $folderIds;
/**
* The mode to use for filtering asset discovery.
*
* @var string
*/
public $inclusionMode;
/**
* The project ids to use for filtering asset discovery.
*
* @var string[]
*/
public $projectIds;
/**
* The folder ids to use for filtering asset discovery. It consists of only
* digits, e.g., 756619654966.
*
* @param string[] $folderIds
*/
public function setFolderIds($folderIds)
{
$this->folderIds = $folderIds;
}
/**
* @return string[]
*/
public function getFolderIds()
{
return $this->folderIds;
}
/**
* The mode to use for filtering asset discovery.
*
* Accepted values: INCLUSION_MODE_UNSPECIFIED, INCLUDE_ONLY, EXCLUDE
*
* @param self::INCLUSION_MODE_* $inclusionMode
*/
public function setInclusionMode($inclusionMode)
{
$this->inclusionMode = $inclusionMode;
}
/**
* @return self::INCLUSION_MODE_*
*/
public function getInclusionMode()
{
return $this->inclusionMode;
}
/**
* The project ids to use for filtering asset discovery.
*
* @param string[] $projectIds
*/
public function setProjectIds($projectIds)
{
$this->projectIds = $projectIds;
}
/**
* @return string[]
*/
public function getProjectIds()
{
return $this->projectIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetDiscoveryConfig::class, 'Google_Service_SecurityCommandCenter_AssetDiscoveryConfig');
@@ -0,0 +1,80 @@
<?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\SecurityCommandCenter;
class AssociatedFinding extends \Google\Model
{
/**
* @var string
*/
public $canonicalFindingName;
/**
* @var string
*/
public $findingCategory;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCanonicalFindingName($canonicalFindingName)
{
$this->canonicalFindingName = $canonicalFindingName;
}
/**
* @return string
*/
public function getCanonicalFindingName()
{
return $this->canonicalFindingName;
}
/**
* @param string
*/
public function setFindingCategory($findingCategory)
{
$this->findingCategory = $findingCategory;
}
/**
* @return string
*/
public function getFindingCategory()
{
return $this->findingCategory;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssociatedFinding::class, 'Google_Service_SecurityCommandCenter_AssociatedFinding');
@@ -0,0 +1,146 @@
<?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\SecurityCommandCenter;
class Attack extends \Google\Model
{
/**
* Type of attack, for example, 'SYN-flood', 'NTP-udp', or 'CHARGEN-udp'.
*
* @var string
*/
public $classification;
/**
* Total BPS (bytes per second) volume of attack. Deprecated - refer to
* volume_bps_long instead.
*
* @deprecated
* @var int
*/
public $volumeBps;
/**
* Total BPS (bytes per second) volume of attack.
*
* @var string
*/
public $volumeBpsLong;
/**
* Total PPS (packets per second) volume of attack. Deprecated - refer to
* volume_pps_long instead.
*
* @deprecated
* @var int
*/
public $volumePps;
/**
* Total PPS (packets per second) volume of attack.
*
* @var string
*/
public $volumePpsLong;
/**
* Type of attack, for example, 'SYN-flood', 'NTP-udp', or 'CHARGEN-udp'.
*
* @param string $classification
*/
public function setClassification($classification)
{
$this->classification = $classification;
}
/**
* @return string
*/
public function getClassification()
{
return $this->classification;
}
/**
* Total BPS (bytes per second) volume of attack. Deprecated - refer to
* volume_bps_long instead.
*
* @deprecated
* @param int $volumeBps
*/
public function setVolumeBps($volumeBps)
{
$this->volumeBps = $volumeBps;
}
/**
* @deprecated
* @return int
*/
public function getVolumeBps()
{
return $this->volumeBps;
}
/**
* Total BPS (bytes per second) volume of attack.
*
* @param string $volumeBpsLong
*/
public function setVolumeBpsLong($volumeBpsLong)
{
$this->volumeBpsLong = $volumeBpsLong;
}
/**
* @return string
*/
public function getVolumeBpsLong()
{
return $this->volumeBpsLong;
}
/**
* Total PPS (packets per second) volume of attack. Deprecated - refer to
* volume_pps_long instead.
*
* @deprecated
* @param int $volumePps
*/
public function setVolumePps($volumePps)
{
$this->volumePps = $volumePps;
}
/**
* @deprecated
* @return int
*/
public function getVolumePps()
{
return $this->volumePps;
}
/**
* Total PPS (packets per second) volume of attack.
*
* @param string $volumePpsLong
*/
public function setVolumePpsLong($volumePpsLong)
{
$this->volumePpsLong = $volumePpsLong;
}
/**
* @return string
*/
public function getVolumePpsLong()
{
return $this->volumePpsLong;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attack::class, 'Google_Service_SecurityCommandCenter_Attack');
@@ -0,0 +1,200 @@
<?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\SecurityCommandCenter;
class AttackExposure extends \Google\Model
{
/**
* The state is not specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The attack exposure has been calculated.
*/
public const STATE_CALCULATED = 'CALCULATED';
/**
* The attack exposure has not been calculated.
*/
public const STATE_NOT_CALCULATED = 'NOT_CALCULATED';
/**
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score. Example:
* `organizations/123/simulations/456/attackExposureResults/789`
*
* @var string
*/
public $attackExposureResult;
/**
* The number of high value resources that are exposed as a result of this
* finding.
*
* @var int
*/
public $exposedHighValueResourcesCount;
/**
* The number of high value resources that are exposed as a result of this
* finding.
*
* @var int
*/
public $exposedLowValueResourcesCount;
/**
* The number of medium value resources that are exposed as a result of this
* finding.
*
* @var int
*/
public $exposedMediumValueResourcesCount;
/**
* The most recent time the attack exposure was updated on this finding.
*
* @var string
*/
public $latestCalculationTime;
/**
* A number between 0 (inclusive) and infinity that represents how important
* this finding is to remediate. The higher the score, the more important it
* is to remediate.
*
* @var
*/
public $score;
/**
* What state this AttackExposure is in. This captures whether or not an
* attack exposure has been calculated or not.
*
* @var string
*/
public $state;
/**
* The resource name of the attack path simulation result that contains the
* details regarding this attack exposure score. Example:
* `organizations/123/simulations/456/attackExposureResults/789`
*
* @param string $attackExposureResult
*/
public function setAttackExposureResult($attackExposureResult)
{
$this->attackExposureResult = $attackExposureResult;
}
/**
* @return string
*/
public function getAttackExposureResult()
{
return $this->attackExposureResult;
}
/**
* The number of high value resources that are exposed as a result of this
* finding.
*
* @param int $exposedHighValueResourcesCount
*/
public function setExposedHighValueResourcesCount($exposedHighValueResourcesCount)
{
$this->exposedHighValueResourcesCount = $exposedHighValueResourcesCount;
}
/**
* @return int
*/
public function getExposedHighValueResourcesCount()
{
return $this->exposedHighValueResourcesCount;
}
/**
* The number of high value resources that are exposed as a result of this
* finding.
*
* @param int $exposedLowValueResourcesCount
*/
public function setExposedLowValueResourcesCount($exposedLowValueResourcesCount)
{
$this->exposedLowValueResourcesCount = $exposedLowValueResourcesCount;
}
/**
* @return int
*/
public function getExposedLowValueResourcesCount()
{
return $this->exposedLowValueResourcesCount;
}
/**
* The number of medium value resources that are exposed as a result of this
* finding.
*
* @param int $exposedMediumValueResourcesCount
*/
public function setExposedMediumValueResourcesCount($exposedMediumValueResourcesCount)
{
$this->exposedMediumValueResourcesCount = $exposedMediumValueResourcesCount;
}
/**
* @return int
*/
public function getExposedMediumValueResourcesCount()
{
return $this->exposedMediumValueResourcesCount;
}
/**
* The most recent time the attack exposure was updated on this finding.
*
* @param string $latestCalculationTime
*/
public function setLatestCalculationTime($latestCalculationTime)
{
$this->latestCalculationTime = $latestCalculationTime;
}
/**
* @return string
*/
public function getLatestCalculationTime()
{
return $this->latestCalculationTime;
}
public function setScore($score)
{
$this->score = $score;
}
public function getScore()
{
return $this->score;
}
/**
* What state this AttackExposure is in. This captures whether or not an
* attack exposure has been calculated or not.
*
* Accepted values: STATE_UNSPECIFIED, CALCULATED, NOT_CALCULATED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttackExposure::class, 'Google_Service_SecurityCommandCenter_AttackExposure');
@@ -0,0 +1,87 @@
<?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\SecurityCommandCenter;
class AttackPath extends \Google\Collection
{
protected $collection_key = 'pathNodes';
protected $edgesType = AttackPathEdge::class;
protected $edgesDataType = 'array';
/**
* The attack path name, for example,
* `organizations/12/simulation/34/valuedResources/56/attackPaths/78`
*
* @var string
*/
public $name;
protected $pathNodesType = AttackPathNode::class;
protected $pathNodesDataType = 'array';
/**
* A list of the edges between nodes in this attack path.
*
* @param AttackPathEdge[] $edges
*/
public function setEdges($edges)
{
$this->edges = $edges;
}
/**
* @return AttackPathEdge[]
*/
public function getEdges()
{
return $this->edges;
}
/**
* The attack path name, for example,
* `organizations/12/simulation/34/valuedResources/56/attackPaths/78`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A list of nodes that exist in this attack path.
*
* @param AttackPathNode[] $pathNodes
*/
public function setPathNodes($pathNodes)
{
$this->pathNodes = $pathNodes;
}
/**
* @return AttackPathNode[]
*/
public function getPathNodes()
{
return $this->pathNodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttackPath::class, 'Google_Service_SecurityCommandCenter_AttackPath');
@@ -0,0 +1,70 @@
<?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\SecurityCommandCenter;
class AttackPathEdge extends \Google\Model
{
/**
* The attack node uuid of the destination node.
*
* @var string
*/
public $destination;
/**
* The attack node uuid of the source node.
*
* @var string
*/
public $source;
/**
* The attack node uuid of the destination node.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* The attack node uuid of the source node.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttackPathEdge::class, 'Google_Service_SecurityCommandCenter_AttackPathEdge');
@@ -0,0 +1,157 @@
<?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\SecurityCommandCenter;
class AttackPathNode extends \Google\Collection
{
protected $collection_key = 'attackSteps';
protected $associatedFindingsType = PathNodeAssociatedFinding::class;
protected $associatedFindingsDataType = 'array';
protected $attackStepsType = AttackStepNode::class;
protected $attackStepsDataType = 'array';
/**
* Human-readable name of this resource.
*
* @var string
*/
public $displayName;
/**
* The name of the resource at this point in the attack path. The format of
* the name follows the Cloud Asset Inventory [resource name
* format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
*
* @var string
*/
public $resource;
/**
* The [supported resource type](https://cloud.google.com/asset-
* inventory/docs/supported-asset-types)
*
* @var string
*/
public $resourceType;
/**
* Unique id of the attack path node.
*
* @var string
*/
public $uuid;
/**
* The findings associated with this node in the attack path.
*
* @param PathNodeAssociatedFinding[] $associatedFindings
*/
public function setAssociatedFindings($associatedFindings)
{
$this->associatedFindings = $associatedFindings;
}
/**
* @return PathNodeAssociatedFinding[]
*/
public function getAssociatedFindings()
{
return $this->associatedFindings;
}
/**
* A list of attack step nodes that exist in this attack path node.
*
* @param AttackStepNode[] $attackSteps
*/
public function setAttackSteps($attackSteps)
{
$this->attackSteps = $attackSteps;
}
/**
* @return AttackStepNode[]
*/
public function getAttackSteps()
{
return $this->attackSteps;
}
/**
* Human-readable name of this resource.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The name of the resource at this point in the attack path. The format of
* the name follows the Cloud Asset Inventory [resource name
* format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* The [supported resource type](https://cloud.google.com/asset-
* inventory/docs/supported-asset-types)
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* Unique id of the attack path node.
*
* @param string $uuid
*/
public function setUuid($uuid)
{
$this->uuid = $uuid;
}
/**
* @return string
*/
public function getUuid()
{
return $this->uuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttackPathNode::class, 'Google_Service_SecurityCommandCenter_AttackPathNode');
@@ -0,0 +1,159 @@
<?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\SecurityCommandCenter;
class AttackStepNode extends \Google\Model
{
/**
* Type not specified
*/
public const TYPE_NODE_TYPE_UNSPECIFIED = 'NODE_TYPE_UNSPECIFIED';
/**
* Incoming edge joined with AND
*/
public const TYPE_NODE_TYPE_AND = 'NODE_TYPE_AND';
/**
* Incoming edge joined with OR
*/
public const TYPE_NODE_TYPE_OR = 'NODE_TYPE_OR';
/**
* Incoming edge is defense
*/
public const TYPE_NODE_TYPE_DEFENSE = 'NODE_TYPE_DEFENSE';
/**
* Incoming edge is attacker
*/
public const TYPE_NODE_TYPE_ATTACKER = 'NODE_TYPE_ATTACKER';
/**
* Attack step description
*
* @var string
*/
public $description;
/**
* User friendly name of the attack step
*
* @var string
*/
public $displayName;
/**
* Attack step labels for metadata
*
* @var string[]
*/
public $labels;
/**
* Attack step type. Can be either AND, OR or DEFENSE
*
* @var string
*/
public $type;
/**
* Unique ID for one Node
*
* @var string
*/
public $uuid;
/**
* Attack step description
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* User friendly name of the attack step
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Attack step labels for metadata
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Attack step type. Can be either AND, OR or DEFENSE
*
* Accepted values: NODE_TYPE_UNSPECIFIED, NODE_TYPE_AND, NODE_TYPE_OR,
* NODE_TYPE_DEFENSE, NODE_TYPE_ATTACKER
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Unique ID for one Node
*
* @param string $uuid
*/
public function setUuid($uuid)
{
$this->uuid = $uuid;
}
/**
* @return string
*/
public function getUuid()
{
return $this->uuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttackStepNode::class, 'Google_Service_SecurityCommandCenter_AttackStepNode');
@@ -0,0 +1,71 @@
<?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\SecurityCommandCenter;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_SecurityCommandCenter_AuditConfig');
@@ -0,0 +1,91 @@
<?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\SecurityCommandCenter;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_SecurityCommandCenter_AuditLogConfig');
@@ -0,0 +1,70 @@
<?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\SecurityCommandCenter;
class AwsAccount extends \Google\Model
{
/**
* The unique identifier (ID) of the account, containing exactly 12 digits.
*
* @var string
*/
public $id;
/**
* The friendly name of this account.
*
* @var string
*/
public $name;
/**
* The unique identifier (ID) of the account, containing exactly 12 digits.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The friendly name of this account.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsAccount::class, 'Google_Service_SecurityCommandCenter_AwsAccount');
@@ -0,0 +1,82 @@
<?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\SecurityCommandCenter;
class AwsMetadata extends \Google\Collection
{
protected $collection_key = 'organizationalUnits';
protected $accountType = AwsAccount::class;
protected $accountDataType = '';
protected $organizationType = AwsOrganization::class;
protected $organizationDataType = '';
protected $organizationalUnitsType = AwsOrganizationalUnit::class;
protected $organizationalUnitsDataType = 'array';
/**
* The AWS account associated with the resource.
*
* @param AwsAccount $account
*/
public function setAccount(AwsAccount $account)
{
$this->account = $account;
}
/**
* @return AwsAccount
*/
public function getAccount()
{
return $this->account;
}
/**
* The AWS organization associated with the resource.
*
* @param AwsOrganization $organization
*/
public function setOrganization(AwsOrganization $organization)
{
$this->organization = $organization;
}
/**
* @return AwsOrganization
*/
public function getOrganization()
{
return $this->organization;
}
/**
* A list of AWS organizational units associated with the resource, ordered
* from lowest level (closest to the account) to highest level.
*
* @param AwsOrganizationalUnit[] $organizationalUnits
*/
public function setOrganizationalUnits($organizationalUnits)
{
$this->organizationalUnits = $organizationalUnits;
}
/**
* @return AwsOrganizationalUnit[]
*/
public function getOrganizationalUnits()
{
return $this->organizationalUnits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsMetadata::class, 'Google_Service_SecurityCommandCenter_AwsMetadata');
@@ -0,0 +1,52 @@
<?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\SecurityCommandCenter;
class AwsOrganization extends \Google\Model
{
/**
* The unique identifier (ID) for the organization. The regex pattern for an
* organization ID string requires "o-" followed by from 10 to 32 lowercase
* letters or digits.
*
* @var string
*/
public $id;
/**
* The unique identifier (ID) for the organization. The regex pattern for an
* organization ID string requires "o-" followed by from 10 to 32 lowercase
* letters or digits.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsOrganization::class, 'Google_Service_SecurityCommandCenter_AwsOrganization');
@@ -0,0 +1,78 @@
<?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\SecurityCommandCenter;
class AwsOrganizationalUnit extends \Google\Model
{
/**
* The unique identifier (ID) associated with this OU. The regex pattern for
* an organizational unit ID string requires "ou-" followed by from 4 to 32
* lowercase letters or digits (the ID of the root that contains the OU). This
* string is followed by a second "-" dash and from 8 to 32 additional
* lowercase letters or digits. For example, "ou-ab12-cd34ef56".
*
* @var string
*/
public $id;
/**
* The friendly name of the OU.
*
* @var string
*/
public $name;
/**
* The unique identifier (ID) associated with this OU. The regex pattern for
* an organizational unit ID string requires "ou-" followed by from 4 to 32
* lowercase letters or digits (the ID of the root that contains the OU). This
* string is followed by a second "-" dash and from 8 to 32 additional
* lowercase letters or digits. For example, "ou-ab12-cd34ef56".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The friendly name of the OU.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsOrganizationalUnit::class, 'Google_Service_SecurityCommandCenter_AwsOrganizationalUnit');
@@ -0,0 +1,72 @@
<?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\SecurityCommandCenter;
class AzureManagementGroup extends \Google\Model
{
/**
* The display name of the Azure management group.
*
* @var string
*/
public $displayName;
/**
* The UUID of the Azure management group, for example,
* `20000000-0001-0000-0000-000000000000`.
*
* @var string
*/
public $id;
/**
* The display name of the Azure management group.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The UUID of the Azure management group, for example,
* `20000000-0001-0000-0000-000000000000`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureManagementGroup::class, 'Google_Service_SecurityCommandCenter_AzureManagementGroup');
@@ -0,0 +1,100 @@
<?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\SecurityCommandCenter;
class AzureMetadata extends \Google\Collection
{
protected $collection_key = 'managementGroups';
protected $managementGroupsType = AzureManagementGroup::class;
protected $managementGroupsDataType = 'array';
protected $resourceGroupType = AzureResourceGroup::class;
protected $resourceGroupDataType = '';
protected $subscriptionType = AzureSubscription::class;
protected $subscriptionDataType = '';
protected $tenantType = AzureTenant::class;
protected $tenantDataType = '';
/**
* A list of Azure management groups associated with the resource, ordered
* from lowest level (closest to the subscription) to highest level.
*
* @param AzureManagementGroup[] $managementGroups
*/
public function setManagementGroups($managementGroups)
{
$this->managementGroups = $managementGroups;
}
/**
* @return AzureManagementGroup[]
*/
public function getManagementGroups()
{
return $this->managementGroups;
}
/**
* The Azure resource group associated with the resource.
*
* @param AzureResourceGroup $resourceGroup
*/
public function setResourceGroup(AzureResourceGroup $resourceGroup)
{
$this->resourceGroup = $resourceGroup;
}
/**
* @return AzureResourceGroup
*/
public function getResourceGroup()
{
return $this->resourceGroup;
}
/**
* The Azure subscription associated with the resource.
*
* @param AzureSubscription $subscription
*/
public function setSubscription(AzureSubscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return AzureSubscription
*/
public function getSubscription()
{
return $this->subscription;
}
/**
* The Azure Entra tenant associated with the resource.
*
* @param AzureTenant $tenant
*/
public function setTenant(AzureTenant $tenant)
{
$this->tenant = $tenant;
}
/**
* @return AzureTenant
*/
public function getTenant()
{
return $this->tenant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureMetadata::class, 'Google_Service_SecurityCommandCenter_AzureMetadata');
@@ -0,0 +1,70 @@
<?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\SecurityCommandCenter;
class AzureResourceGroup extends \Google\Model
{
/**
* The ID of the Azure resource group.
*
* @var string
*/
public $id;
/**
* The name of the Azure resource group. This is not a UUID.
*
* @var string
*/
public $name;
/**
* The ID of the Azure resource group.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The name of the Azure resource group. This is not a UUID.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureResourceGroup::class, 'Google_Service_SecurityCommandCenter_AzureResourceGroup');
@@ -0,0 +1,72 @@
<?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\SecurityCommandCenter;
class AzureSubscription extends \Google\Model
{
/**
* The display name of the Azure subscription.
*
* @var string
*/
public $displayName;
/**
* The UUID of the Azure subscription, for example,
* `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
*
* @var string
*/
public $id;
/**
* The display name of the Azure subscription.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The UUID of the Azure subscription, for example,
* `291bba3f-e0a5-47bc-a099-3bdcb2a50a05`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureSubscription::class, 'Google_Service_SecurityCommandCenter_AzureSubscription');
@@ -0,0 +1,72 @@
<?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\SecurityCommandCenter;
class AzureTenant extends \Google\Model
{
/**
* The display name of the Azure tenant.
*
* @var string
*/
public $displayName;
/**
* The ID of the Microsoft Entra tenant, for example,
* "a11aaa11-aa11-1aa1-11aa-1aaa11a".
*
* @var string
*/
public $id;
/**
* The display name of the Azure tenant.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The ID of the Microsoft Entra tenant, for example,
* "a11aaa11-aa11-1aa1-11aa-1aaa11a".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureTenant::class, 'Google_Service_SecurityCommandCenter_AzureTenant');
@@ -0,0 +1,301 @@
<?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\SecurityCommandCenter;
class BackupDisasterRecovery extends \Google\Collection
{
protected $collection_key = 'policyOptions';
/**
* The name of the Backup and DR appliance that captures, moves, and manages
* the lifecycle of backup data. For example, `backup-server-57137`.
*
* @var string
*/
public $appliance;
/**
* The names of Backup and DR applications. An application is a VM, database,
* or file system on a managed host monitored by a backup and recovery
* appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
* `centos7-01-vol02`.
*
* @var string[]
*/
public $applications;
/**
* The timestamp at which the Backup and DR backup was created.
*
* @var string
*/
public $backupCreateTime;
/**
* The name of a Backup and DR template which comprises one or more backup
* policies. See the [Backup and DR
* documentation](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/backup-plan#temp) for more information. For example,
* `snap-ov`.
*
* @var string
*/
public $backupTemplate;
/**
* The backup type of the Backup and DR image. For example, `Snapshot`,
* `Remote Snapshot`, `OnVault`.
*
* @var string
*/
public $backupType;
/**
* The name of a Backup and DR host, which is managed by the backup and
* recovery appliance and known to the management console. The host can be of
* type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
* system, etc.), vCenter, or an ESX server. See the [Backup and DR
* documentation on hosts](https://cloud.google.com/backup-disaster-
* recovery/docs/configuration/manage-hosts-and-their-applications) for more
* information. For example, `centos7-01`.
*
* @var string
*/
public $host;
/**
* The names of Backup and DR policies that are associated with a template and
* that define when to run a backup, how frequently to run a backup, and how
* long to retain the backup image. For example, `onvaults`.
*
* @var string[]
*/
public $policies;
/**
* The names of Backup and DR advanced policy options of a policy applying to
* an application. See the [Backup and DR documentation on policy
* options](https://cloud.google.com/backup-disaster-recovery/docs/create-
* plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.
*
* @var string[]
*/
public $policyOptions;
/**
* The name of the Backup and DR resource profile that specifies the storage
* media for backups of application and VM data. See the [Backup and DR
* documentation on profiles](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/backup-plan#profile). For example, `GCP`.
*
* @var string
*/
public $profile;
/**
* The name of the Backup and DR storage pool that the backup and recovery
* appliance is storing data in. The storage pool could be of type Cloud,
* Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
* storage pools](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.
*
* @var string
*/
public $storagePool;
/**
* The name of the Backup and DR appliance that captures, moves, and manages
* the lifecycle of backup data. For example, `backup-server-57137`.
*
* @param string $appliance
*/
public function setAppliance($appliance)
{
$this->appliance = $appliance;
}
/**
* @return string
*/
public function getAppliance()
{
return $this->appliance;
}
/**
* The names of Backup and DR applications. An application is a VM, database,
* or file system on a managed host monitored by a backup and recovery
* appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
* `centos7-01-vol02`.
*
* @param string[] $applications
*/
public function setApplications($applications)
{
$this->applications = $applications;
}
/**
* @return string[]
*/
public function getApplications()
{
return $this->applications;
}
/**
* The timestamp at which the Backup and DR backup was created.
*
* @param string $backupCreateTime
*/
public function setBackupCreateTime($backupCreateTime)
{
$this->backupCreateTime = $backupCreateTime;
}
/**
* @return string
*/
public function getBackupCreateTime()
{
return $this->backupCreateTime;
}
/**
* The name of a Backup and DR template which comprises one or more backup
* policies. See the [Backup and DR
* documentation](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/backup-plan#temp) for more information. For example,
* `snap-ov`.
*
* @param string $backupTemplate
*/
public function setBackupTemplate($backupTemplate)
{
$this->backupTemplate = $backupTemplate;
}
/**
* @return string
*/
public function getBackupTemplate()
{
return $this->backupTemplate;
}
/**
* The backup type of the Backup and DR image. For example, `Snapshot`,
* `Remote Snapshot`, `OnVault`.
*
* @param string $backupType
*/
public function setBackupType($backupType)
{
$this->backupType = $backupType;
}
/**
* @return string
*/
public function getBackupType()
{
return $this->backupType;
}
/**
* The name of a Backup and DR host, which is managed by the backup and
* recovery appliance and known to the management console. The host can be of
* type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
* system, etc.), vCenter, or an ESX server. See the [Backup and DR
* documentation on hosts](https://cloud.google.com/backup-disaster-
* recovery/docs/configuration/manage-hosts-and-their-applications) for more
* information. For example, `centos7-01`.
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* The names of Backup and DR policies that are associated with a template and
* that define when to run a backup, how frequently to run a backup, and how
* long to retain the backup image. For example, `onvaults`.
*
* @param string[] $policies
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return string[]
*/
public function getPolicies()
{
return $this->policies;
}
/**
* The names of Backup and DR advanced policy options of a policy applying to
* an application. See the [Backup and DR documentation on policy
* options](https://cloud.google.com/backup-disaster-recovery/docs/create-
* plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.
*
* @param string[] $policyOptions
*/
public function setPolicyOptions($policyOptions)
{
$this->policyOptions = $policyOptions;
}
/**
* @return string[]
*/
public function getPolicyOptions()
{
return $this->policyOptions;
}
/**
* The name of the Backup and DR resource profile that specifies the storage
* media for backups of application and VM data. See the [Backup and DR
* documentation on profiles](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/backup-plan#profile). For example, `GCP`.
*
* @param string $profile
*/
public function setProfile($profile)
{
$this->profile = $profile;
}
/**
* @return string
*/
public function getProfile()
{
return $this->profile;
}
/**
* The name of the Backup and DR storage pool that the backup and recovery
* appliance is storing data in. The storage pool could be of type Cloud,
* Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
* storage pools](https://cloud.google.com/backup-disaster-
* recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupDisasterRecovery::class, 'Google_Service_SecurityCommandCenter_BackupDisasterRecovery');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class BatchCreateResourceValueConfigsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreateResourceValueConfigRequest::class;
protected $requestsDataType = 'array';
/**
* Required. The resource value configs to be created.
*
* @param CreateResourceValueConfigRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreateResourceValueConfigRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateResourceValueConfigsRequest::class, 'Google_Service_SecurityCommandCenter_BatchCreateResourceValueConfigsRequest');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class BatchCreateResourceValueConfigsResponse extends \Google\Collection
{
protected $collection_key = 'resourceValueConfigs';
protected $resourceValueConfigsType = GoogleCloudSecuritycenterV1ResourceValueConfig::class;
protected $resourceValueConfigsDataType = 'array';
/**
* The resource value configs created
*
* @param GoogleCloudSecuritycenterV1ResourceValueConfig[] $resourceValueConfigs
*/
public function setResourceValueConfigs($resourceValueConfigs)
{
$this->resourceValueConfigs = $resourceValueConfigs;
}
/**
* @return GoogleCloudSecuritycenterV1ResourceValueConfig[]
*/
public function getResourceValueConfigs()
{
return $this->resourceValueConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateResourceValueConfigsResponse::class, 'Google_Service_SecurityCommandCenter_BatchCreateResourceValueConfigsResponse');
@@ -0,0 +1,50 @@
<?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\SecurityCommandCenter;
class BigQueryDestination extends \Google\Model
{
/**
* Required. The relative resource name of the destination dataset, in the
* form projects/{projectId}/datasets/{datasetId}.
*
* @var string
*/
public $dataset;
/**
* Required. The relative resource name of the destination dataset, in the
* form projects/{projectId}/datasets/{datasetId}.
*
* @param string $dataset
*/
public function setDataset($dataset)
{
$this->dataset = $dataset;
}
/**
* @return string
*/
public function getDataset()
{
return $this->dataset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryDestination::class, 'Google_Service_SecurityCommandCenter_BigQueryDestination');
@@ -0,0 +1,216 @@
<?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\SecurityCommandCenter;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_SecurityCommandCenter_Binding');
@@ -0,0 +1,133 @@
<?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\SecurityCommandCenter;
class BulkMuteFindingsRequest extends \Google\Model
{
/**
* Unused.
*/
public const MUTE_STATE_MUTE_STATE_UNSPECIFIED = 'MUTE_STATE_UNSPECIFIED';
/**
* Matching findings will be muted (default).
*/
public const MUTE_STATE_MUTED = 'MUTED';
/**
* Matching findings will have their mute state cleared.
*/
public const MUTE_STATE_UNDEFINED = 'UNDEFINED';
/**
* Expression that identifies findings that should be updated. The expression
* is a list of zero or more restrictions combined via logical operators `AND`
* and `OR`. Parentheses are supported, and `OR` has higher precedence than
* `AND`. Restrictions have the form ` ` and may have a `-` character in front
* of them to indicate negation. The fields map to those defined in the
* corresponding resource. The supported operators are: * `=` for all value
* types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
* matching, for strings. The supported value types are: * string literals in
* quotes. * integer literals without quotes. * boolean literals `true` and
* `false` without quotes.
*
* @var string
*/
public $filter;
/**
* This can be a mute configuration name or any identifier for mute/unmute of
* findings based on the filter.
*
* @deprecated
* @var string
*/
public $muteAnnotation;
/**
* Optional. All findings matching the given filter will have their mute state
* set to this value. The default value is `MUTED`. Setting this to
* `UNDEFINED` will clear the mute state on all matching findings.
*
* @var string
*/
public $muteState;
/**
* Expression that identifies findings that should be updated. The expression
* is a list of zero or more restrictions combined via logical operators `AND`
* and `OR`. Parentheses are supported, and `OR` has higher precedence than
* `AND`. Restrictions have the form ` ` and may have a `-` character in front
* of them to indicate negation. The fields map to those defined in the
* corresponding resource. The supported operators are: * `=` for all value
* types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
* matching, for strings. The supported value types are: * string literals in
* quotes. * integer literals without quotes. * boolean literals `true` and
* `false` without quotes.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* This can be a mute configuration name or any identifier for mute/unmute of
* findings based on the filter.
*
* @deprecated
* @param string $muteAnnotation
*/
public function setMuteAnnotation($muteAnnotation)
{
$this->muteAnnotation = $muteAnnotation;
}
/**
* @deprecated
* @return string
*/
public function getMuteAnnotation()
{
return $this->muteAnnotation;
}
/**
* Optional. All findings matching the given filter will have their mute state
* set to this value. The default value is `MUTED`. Setting this to
* `UNDEFINED` will clear the mute state on all matching findings.
*
* Accepted values: MUTE_STATE_UNSPECIFIED, MUTED, UNDEFINED
*
* @param self::MUTE_STATE_* $muteState
*/
public function setMuteState($muteState)
{
$this->muteState = $muteState;
}
/**
* @return self::MUTE_STATE_*
*/
public function getMuteState()
{
return $this->muteState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BulkMuteFindingsRequest::class, 'Google_Service_SecurityCommandCenter_BulkMuteFindingsRequest');
@@ -0,0 +1,44 @@
<?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\SecurityCommandCenter;
class CelPolicySpec extends \Google\Model
{
/**
* @var string
*/
public $spec;
/**
* @param string
*/
public function setSpec($spec)
{
$this->spec = $spec;
}
/**
* @return string
*/
public function getSpec()
{
return $this->spec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CelPolicySpec::class, 'Google_Service_SecurityCommandCenter_CelPolicySpec');
@@ -0,0 +1,53 @@
<?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\SecurityCommandCenter;
class Chokepoint extends \Google\Collection
{
protected $collection_key = 'relatedFindings';
/**
* List of resource names of findings associated with this chokepoint. For
* example, organizations/123/sources/456/findings/789. This list will have at
* most 100 findings.
*
* @var string[]
*/
public $relatedFindings;
/**
* List of resource names of findings associated with this chokepoint. For
* example, organizations/123/sources/456/findings/789. This list will have at
* most 100 findings.
*
* @param string[] $relatedFindings
*/
public function setRelatedFindings($relatedFindings)
{
$this->relatedFindings = $relatedFindings;
}
/**
* @return string[]
*/
public function getRelatedFindings()
{
return $this->relatedFindings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Chokepoint::class, 'Google_Service_SecurityCommandCenter_Chokepoint');
@@ -0,0 +1,155 @@
<?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\SecurityCommandCenter;
class CloudArmor extends \Google\Model
{
protected $adaptiveProtectionType = AdaptiveProtection::class;
protected $adaptiveProtectionDataType = '';
protected $attackType = Attack::class;
protected $attackDataType = '';
/**
* Duration of attack from the start until the current moment (updated every 5
* minutes).
*
* @var string
*/
public $duration;
protected $requestsType = Requests::class;
protected $requestsDataType = '';
protected $securityPolicyType = SecurityPolicy::class;
protected $securityPolicyDataType = '';
/**
* Distinguish between volumetric & protocol DDoS attack and application layer
* attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS attacks, or "L_7"
* for Layer 7 DDoS attacks.
*
* @var string
*/
public $threatVector;
/**
* Information about potential Layer 7 DDoS attacks identified by [Google
* Cloud Armor Adaptive
* Protection](https://cloud.google.com/armor/docs/adaptive-protection-
* overview).
*
* @param AdaptiveProtection $adaptiveProtection
*/
public function setAdaptiveProtection(AdaptiveProtection $adaptiveProtection)
{
$this->adaptiveProtection = $adaptiveProtection;
}
/**
* @return AdaptiveProtection
*/
public function getAdaptiveProtection()
{
return $this->adaptiveProtection;
}
/**
* Information about DDoS attack volume and classification.
*
* @param Attack $attack
*/
public function setAttack(Attack $attack)
{
$this->attack = $attack;
}
/**
* @return Attack
*/
public function getAttack()
{
return $this->attack;
}
/**
* Duration of attack from the start until the current moment (updated every 5
* minutes).
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Information about incoming requests evaluated by [Google Cloud Armor
* security policies](https://cloud.google.com/armor/docs/security-policy-
* overview).
*
* @param Requests $requests
*/
public function setRequests(Requests $requests)
{
$this->requests = $requests;
}
/**
* @return Requests
*/
public function getRequests()
{
return $this->requests;
}
/**
* Information about the [Google Cloud Armor security
* policy](https://cloud.google.com/armor/docs/security-policy-overview)
* relevant to the finding.
*
* @param SecurityPolicy $securityPolicy
*/
public function setSecurityPolicy(SecurityPolicy $securityPolicy)
{
$this->securityPolicy = $securityPolicy;
}
/**
* @return SecurityPolicy
*/
public function getSecurityPolicy()
{
return $this->securityPolicy;
}
/**
* Distinguish between volumetric & protocol DDoS attack and application layer
* attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS attacks, or "L_7"
* for Layer 7 DDoS attacks.
*
* @param string $threatVector
*/
public function setThreatVector($threatVector)
{
$this->threatVector = $threatVector;
}
/**
* @return string
*/
public function getThreatVector()
{
return $this->threatVector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudArmor::class, 'Google_Service_SecurityCommandCenter_CloudArmor');
@@ -0,0 +1,128 @@
<?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\SecurityCommandCenter;
class CloudControl extends \Google\Model
{
/**
* Unspecified.
*/
public const TYPE_CLOUD_CONTROL_TYPE_UNSPECIFIED = 'CLOUD_CONTROL_TYPE_UNSPECIFIED';
/**
* Built in Cloud Control.
*/
public const TYPE_BUILT_IN = 'BUILT_IN';
/**
* Custom Cloud Control.
*/
public const TYPE_CUSTOM = 'CUSTOM';
/**
* Name of the CloudControl associated with the finding.
*
* @var string
*/
public $cloudControlName;
/**
* Policy type of the CloudControl
*
* @var string
*/
public $policyType;
/**
* Type of cloud control.
*
* @var string
*/
public $type;
/**
* Version of the Cloud Control
*
* @var int
*/
public $version;
/**
* Name of the CloudControl associated with the finding.
*
* @param string $cloudControlName
*/
public function setCloudControlName($cloudControlName)
{
$this->cloudControlName = $cloudControlName;
}
/**
* @return string
*/
public function getCloudControlName()
{
return $this->cloudControlName;
}
/**
* Policy type of the CloudControl
*
* @param string $policyType
*/
public function setPolicyType($policyType)
{
$this->policyType = $policyType;
}
/**
* @return string
*/
public function getPolicyType()
{
return $this->policyType;
}
/**
* Type of cloud control.
*
* Accepted values: CLOUD_CONTROL_TYPE_UNSPECIFIED, BUILT_IN, CUSTOM
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Version of the Cloud Control
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudControl::class, 'Google_Service_SecurityCommandCenter_CloudControl');
@@ -0,0 +1,106 @@
<?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\SecurityCommandCenter;
class CloudDlpDataProfile extends \Google\Collection
{
/**
* Unspecified parent type.
*/
public const PARENT_TYPE_PARENT_TYPE_UNSPECIFIED = 'PARENT_TYPE_UNSPECIFIED';
/**
* Organization-level configurations.
*/
public const PARENT_TYPE_ORGANIZATION = 'ORGANIZATION';
/**
* Project-level configurations.
*/
public const PARENT_TYPE_PROJECT = 'PROJECT';
protected $collection_key = 'infoTypes';
/**
* Name of the data profile, for example,
* `projects/123/locations/europe/tableProfiles/8383929`.
*
* @var string
*/
public $dataProfile;
protected $infoTypesType = InfoType::class;
protected $infoTypesDataType = 'array';
/**
* The resource hierarchy level at which the data profile was generated.
*
* @var string
*/
public $parentType;
/**
* Name of the data profile, for example,
* `projects/123/locations/europe/tableProfiles/8383929`.
*
* @param string $dataProfile
*/
public function setDataProfile($dataProfile)
{
$this->dataProfile = $dataProfile;
}
/**
* @return string
*/
public function getDataProfile()
{
return $this->dataProfile;
}
/**
* Type of information detected by SDP. Info type includes name, version and
* sensitivity of the detected information type.
*
* @param InfoType[] $infoTypes
*/
public function setInfoTypes($infoTypes)
{
$this->infoTypes = $infoTypes;
}
/**
* @return InfoType[]
*/
public function getInfoTypes()
{
return $this->infoTypes;
}
/**
* The resource hierarchy level at which the data profile was generated.
*
* Accepted values: PARENT_TYPE_UNSPECIFIED, ORGANIZATION, PROJECT
*
* @param self::PARENT_TYPE_* $parentType
*/
public function setParentType($parentType)
{
$this->parentType = $parentType;
}
/**
* @return self::PARENT_TYPE_*
*/
public function getParentType()
{
return $this->parentType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudDlpDataProfile::class, 'Google_Service_SecurityCommandCenter_CloudDlpDataProfile');
@@ -0,0 +1,122 @@
<?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\SecurityCommandCenter;
class CloudDlpInspection extends \Google\Model
{
/**
* Whether Cloud DLP scanned the complete resource or a sampled subset.
*
* @var bool
*/
public $fullScan;
/**
* The type of information (or
* *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
* for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
*
* @var string
*/
public $infoType;
/**
* The number of times Cloud DLP found this infoType within this job and
* resource.
*
* @var string
*/
public $infoTypeCount;
/**
* Name of the inspection job, for example,
* `projects/123/locations/europe/dlpJobs/i-8383929`.
*
* @var string
*/
public $inspectJob;
/**
* Whether Cloud DLP scanned the complete resource or a sampled subset.
*
* @param bool $fullScan
*/
public function setFullScan($fullScan)
{
$this->fullScan = $fullScan;
}
/**
* @return bool
*/
public function getFullScan()
{
return $this->fullScan;
}
/**
* The type of information (or
* *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
* for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
*
* @param string $infoType
*/
public function setInfoType($infoType)
{
$this->infoType = $infoType;
}
/**
* @return string
*/
public function getInfoType()
{
return $this->infoType;
}
/**
* The number of times Cloud DLP found this infoType within this job and
* resource.
*
* @param string $infoTypeCount
*/
public function setInfoTypeCount($infoTypeCount)
{
$this->infoTypeCount = $infoTypeCount;
}
/**
* @return string
*/
public function getInfoTypeCount()
{
return $this->infoTypeCount;
}
/**
* Name of the inspection job, for example,
* `projects/123/locations/europe/dlpJobs/i-8383929`.
*
* @param string $inspectJob
*/
public function setInspectJob($inspectJob)
{
$this->inspectJob = $inspectJob;
}
/**
* @return string
*/
public function getInspectJob()
{
return $this->inspectJob;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudDlpInspection::class, 'Google_Service_SecurityCommandCenter_CloudDlpInspection');
@@ -0,0 +1,122 @@
<?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\SecurityCommandCenter;
class CloudLoggingEntry extends \Google\Model
{
/**
* A unique identifier for the log entry.
*
* @var string
*/
public $insertId;
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of
* the log to which this log entry belongs). For example:
* `cloudresourcemanager.googleapis.com/activity`. Note that this field is not
* URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
*
* @var string
*/
public $logId;
/**
* The organization, folder, or project of the monitored resource that
* produced this log entry.
*
* @var string
*/
public $resourceContainer;
/**
* The time the event described by the log entry occurred.
*
* @var string
*/
public $timestamp;
/**
* A unique identifier for the log entry.
*
* @param string $insertId
*/
public function setInsertId($insertId)
{
$this->insertId = $insertId;
}
/**
* @return string
*/
public function getInsertId()
{
return $this->insertId;
}
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of
* the log to which this log entry belongs). For example:
* `cloudresourcemanager.googleapis.com/activity`. Note that this field is not
* URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
*
* @param string $logId
*/
public function setLogId($logId)
{
$this->logId = $logId;
}
/**
* @return string
*/
public function getLogId()
{
return $this->logId;
}
/**
* The organization, folder, or project of the monitored resource that
* produced this log entry.
*
* @param string $resourceContainer
*/
public function setResourceContainer($resourceContainer)
{
$this->resourceContainer = $resourceContainer;
}
/**
* @return string
*/
public function getResourceContainer()
{
return $this->resourceContainer;
}
/**
* The time the event described by the log entry occurred.
*
* @param string $timestamp
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudLoggingEntry::class, 'Google_Service_SecurityCommandCenter_CloudLoggingEntry');
@@ -0,0 +1,95 @@
<?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\SecurityCommandCenter;
class Compliance extends \Google\Collection
{
protected $collection_key = 'ids';
/**
* Policies within the standard or benchmark, for example, A.12.4.1
*
* @var string[]
*/
public $ids;
/**
* Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
* OWASP.
*
* @var string
*/
public $standard;
/**
* Version of the standard or benchmark, for example, 1.1
*
* @var string
*/
public $version;
/**
* Policies within the standard or benchmark, for example, A.12.4.1
*
* @param string[] $ids
*/
public function setIds($ids)
{
$this->ids = $ids;
}
/**
* @return string[]
*/
public function getIds()
{
return $this->ids;
}
/**
* Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
* OWASP.
*
* @param string $standard
*/
public function setStandard($standard)
{
$this->standard = $standard;
}
/**
* @return string
*/
public function getStandard()
{
return $this->standard;
}
/**
* Version of the standard or benchmark, for example, 1.1
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Compliance::class, 'Google_Service_SecurityCommandCenter_Compliance');
@@ -0,0 +1,87 @@
<?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\SecurityCommandCenter;
class ComplianceDetails extends \Google\Collection
{
protected $collection_key = 'frameworks';
protected $cloudControlType = CloudControl::class;
protected $cloudControlDataType = '';
/**
* Cloud Control Deployments associated with the finding. For example, organiz
* ations/123/locations/global/cloudControlDeployments/deploymentIdentifier
*
* @var string[]
*/
public $cloudControlDeploymentNames;
protected $frameworksType = Framework::class;
protected $frameworksDataType = 'array';
/**
* CloudControl associated with the finding
*
* @param CloudControl $cloudControl
*/
public function setCloudControl(CloudControl $cloudControl)
{
$this->cloudControl = $cloudControl;
}
/**
* @return CloudControl
*/
public function getCloudControl()
{
return $this->cloudControl;
}
/**
* Cloud Control Deployments associated with the finding. For example, organiz
* ations/123/locations/global/cloudControlDeployments/deploymentIdentifier
*
* @param string[] $cloudControlDeploymentNames
*/
public function setCloudControlDeploymentNames($cloudControlDeploymentNames)
{
$this->cloudControlDeploymentNames = $cloudControlDeploymentNames;
}
/**
* @return string[]
*/
public function getCloudControlDeploymentNames()
{
return $this->cloudControlDeploymentNames;
}
/**
* Details of Frameworks associated with the finding
*
* @param Framework[] $frameworks
*/
public function setFrameworks($frameworks)
{
$this->frameworks = $frameworks;
}
/**
* @return Framework[]
*/
public function getFrameworks()
{
return $this->frameworks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceDetails::class, 'Google_Service_SecurityCommandCenter_ComplianceDetails');
@@ -0,0 +1,170 @@
<?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\SecurityCommandCenter;
class ComplianceSnapshot extends \Google\Model
{
/**
* @var string
*/
public $category;
/**
* @var string
*/
public $cloudProvider;
/**
* @var string
*/
public $complianceStandard;
/**
* @var string
*/
public $complianceVersion;
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $leafContainerResource;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $snapshotTime;
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setCloudProvider($cloudProvider)
{
$this->cloudProvider = $cloudProvider;
}
/**
* @return string
*/
public function getCloudProvider()
{
return $this->cloudProvider;
}
/**
* @param string
*/
public function setComplianceStandard($complianceStandard)
{
$this->complianceStandard = $complianceStandard;
}
/**
* @return string
*/
public function getComplianceStandard()
{
return $this->complianceStandard;
}
/**
* @param string
*/
public function setComplianceVersion($complianceVersion)
{
$this->complianceVersion = $complianceVersion;
}
/**
* @return string
*/
public function getComplianceVersion()
{
return $this->complianceVersion;
}
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setLeafContainerResource($leafContainerResource)
{
$this->leafContainerResource = $leafContainerResource;
}
/**
* @return string
*/
public function getLeafContainerResource()
{
return $this->leafContainerResource;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSnapshotTime($snapshotTime)
{
$this->snapshotTime = $snapshotTime;
}
/**
* @return string
*/
public function getSnapshotTime()
{
return $this->snapshotTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceSnapshot::class, 'Google_Service_SecurityCommandCenter_ComplianceSnapshot');
@@ -0,0 +1,166 @@
<?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\SecurityCommandCenter;
class Connection extends \Google\Model
{
/**
* Unspecified protocol (not HOPOPT).
*/
public const PROTOCOL_PROTOCOL_UNSPECIFIED = 'PROTOCOL_UNSPECIFIED';
/**
* Internet Control Message Protocol.
*/
public const PROTOCOL_ICMP = 'ICMP';
/**
* Transmission Control Protocol.
*/
public const PROTOCOL_TCP = 'TCP';
/**
* User Datagram Protocol.
*/
public const PROTOCOL_UDP = 'UDP';
/**
* Generic Routing Encapsulation.
*/
public const PROTOCOL_GRE = 'GRE';
/**
* Encap Security Payload.
*/
public const PROTOCOL_ESP = 'ESP';
/**
* Destination IP address. Not present for sockets that are listening and not
* connected.
*
* @var string
*/
public $destinationIp;
/**
* Destination port. Not present for sockets that are listening and not
* connected.
*
* @var int
*/
public $destinationPort;
/**
* IANA Internet Protocol Number such as TCP(6) and UDP(17).
*
* @var string
*/
public $protocol;
/**
* Source IP address.
*
* @var string
*/
public $sourceIp;
/**
* Source port.
*
* @var int
*/
public $sourcePort;
/**
* Destination IP address. Not present for sockets that are listening and not
* connected.
*
* @param string $destinationIp
*/
public function setDestinationIp($destinationIp)
{
$this->destinationIp = $destinationIp;
}
/**
* @return string
*/
public function getDestinationIp()
{
return $this->destinationIp;
}
/**
* Destination port. Not present for sockets that are listening and not
* connected.
*
* @param int $destinationPort
*/
public function setDestinationPort($destinationPort)
{
$this->destinationPort = $destinationPort;
}
/**
* @return int
*/
public function getDestinationPort()
{
return $this->destinationPort;
}
/**
* IANA Internet Protocol Number such as TCP(6) and UDP(17).
*
* Accepted values: PROTOCOL_UNSPECIFIED, ICMP, TCP, UDP, GRE, ESP
*
* @param self::PROTOCOL_* $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return self::PROTOCOL_*
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* Source IP address.
*
* @param string $sourceIp
*/
public function setSourceIp($sourceIp)
{
$this->sourceIp = $sourceIp;
}
/**
* @return string
*/
public function getSourceIp()
{
return $this->sourceIp;
}
/**
* Source port.
*
* @param int $sourcePort
*/
public function setSourcePort($sourcePort)
{
$this->sourcePort = $sourcePort;
}
/**
* @return int
*/
public function getSourcePort()
{
return $this->sourcePort;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connection::class, 'Google_Service_SecurityCommandCenter_Connection');
@@ -0,0 +1,48 @@
<?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\SecurityCommandCenter;
class Contact extends \Google\Model
{
/**
* An email address. For example, "`person123@company.com`".
*
* @var string
*/
public $email;
/**
* An email address. For example, "`person123@company.com`".
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Contact::class, 'Google_Service_SecurityCommandCenter_Contact');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class ContactDetails extends \Google\Collection
{
protected $collection_key = 'contacts';
protected $contactsType = Contact::class;
protected $contactsDataType = 'array';
/**
* A list of contacts
*
* @param Contact[] $contacts
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return Contact[]
*/
public function getContacts()
{
return $this->contacts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactDetails::class, 'Google_Service_SecurityCommandCenter_ContactDetails');
@@ -0,0 +1,137 @@
<?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\SecurityCommandCenter;
class Container extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* The time that the container was created.
*
* @var string
*/
public $createTime;
/**
* Optional container image ID, if provided by the container runtime. Uniquely
* identifies the container image launched using a container image digest.
*
* @var string
*/
public $imageId;
protected $labelsType = Label::class;
protected $labelsDataType = 'array';
/**
* Name of the container.
*
* @var string
*/
public $name;
/**
* Container image URI provided when configuring a pod or container. This
* string can identify a container image version using mutable tags.
*
* @var string
*/
public $uri;
/**
* The time that the container was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional container image ID, if provided by the container runtime. Uniquely
* identifies the container image launched using a container image digest.
*
* @param string $imageId
*/
public function setImageId($imageId)
{
$this->imageId = $imageId;
}
/**
* @return string
*/
public function getImageId()
{
return $this->imageId;
}
/**
* Container labels, as provided by the container runtime.
*
* @param Label[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return Label[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Name of the container.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Container image URI provided when configuring a pod or container. This
* string can identify a container image version using mutable tags.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Container::class, 'Google_Service_SecurityCommandCenter_Container');
@@ -0,0 +1,70 @@
<?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\SecurityCommandCenter;
class Control extends \Google\Model
{
/**
* Name of the Control
*
* @var string
*/
public $controlName;
/**
* Display name of the control. For example, AU-02.
*
* @var string
*/
public $displayName;
/**
* Name of the Control
*
* @param string $controlName
*/
public function setControlName($controlName)
{
$this->controlName = $controlName;
}
/**
* @return string
*/
public function getControlName()
{
return $this->controlName;
}
/**
* Display name of the control. For example, AU-02.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Control::class, 'Google_Service_SecurityCommandCenter_Control');
@@ -0,0 +1,66 @@
<?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\SecurityCommandCenter;
class CreateResourceValueConfigRequest extends \Google\Model
{
/**
* Required. Resource name of the new ResourceValueConfig's parent.
*
* @var string
*/
public $parent;
protected $resourceValueConfigType = GoogleCloudSecuritycenterV1ResourceValueConfig::class;
protected $resourceValueConfigDataType = '';
/**
* Required. Resource name of the new ResourceValueConfig's parent.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The resource value config being created.
*
* @param GoogleCloudSecuritycenterV1ResourceValueConfig $resourceValueConfig
*/
public function setResourceValueConfig(GoogleCloudSecuritycenterV1ResourceValueConfig $resourceValueConfig)
{
$this->resourceValueConfig = $resourceValueConfig;
}
/**
* @return GoogleCloudSecuritycenterV1ResourceValueConfig
*/
public function getResourceValueConfig()
{
return $this->resourceValueConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateResourceValueConfigRequest::class, 'Google_Service_SecurityCommandCenter_CreateResourceValueConfigRequest');
@@ -0,0 +1,112 @@
<?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\SecurityCommandCenter;
class CustomModuleValidationError extends \Google\Model
{
/**
* A description of the error, suitable for human consumption. Required.
*
* @var string
*/
public $description;
protected $endType = Position::class;
protected $endDataType = '';
/**
* The path, in RFC 8901 JSON Pointer format, to the field that failed
* validation. This may be left empty if no specific field is affected.
*
* @var string
*/
public $fieldPath;
protected $startType = Position::class;
protected $startDataType = '';
/**
* A description of the error, suitable for human consumption. Required.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The end position of the error in the uploaded text version of the module.
* This field may be omitted if no specific position applies, or if one could
* not be computed.
*
* @param Position $end
*/
public function setEnd(Position $end)
{
$this->end = $end;
}
/**
* @return Position
*/
public function getEnd()
{
return $this->end;
}
/**
* The path, in RFC 8901 JSON Pointer format, to the field that failed
* validation. This may be left empty if no specific field is affected.
*
* @param string $fieldPath
*/
public function setFieldPath($fieldPath)
{
$this->fieldPath = $fieldPath;
}
/**
* @return string
*/
public function getFieldPath()
{
return $this->fieldPath;
}
/**
* The initial position of the error in the uploaded text version of the
* module. This field may be omitted if no specific position applies, or if
* one could not be computed.
*
* @param Position $start
*/
public function setStart(Position $start)
{
$this->start = $start;
}
/**
* @return Position
*/
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomModuleValidationError::class, 'Google_Service_SecurityCommandCenter_CustomModuleValidationError');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class CustomModuleValidationErrors extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = CustomModuleValidationError::class;
protected $errorsDataType = 'array';
/**
* The list of errors.
*
* @param CustomModuleValidationError[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return CustomModuleValidationError[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomModuleValidationErrors::class, 'Google_Service_SecurityCommandCenter_CustomModuleValidationErrors');
@@ -0,0 +1,296 @@
<?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\SecurityCommandCenter;
class Cve extends \Google\Collection
{
/**
* Invalid or empty value.
*/
public const EXPLOITATION_ACTIVITY_EXPLOITATION_ACTIVITY_UNSPECIFIED = 'EXPLOITATION_ACTIVITY_UNSPECIFIED';
/**
* Exploitation has been reported or confirmed to widely occur.
*/
public const EXPLOITATION_ACTIVITY_WIDE = 'WIDE';
/**
* Limited reported or confirmed exploitation activities.
*/
public const EXPLOITATION_ACTIVITY_CONFIRMED = 'CONFIRMED';
/**
* Exploit is publicly available.
*/
public const EXPLOITATION_ACTIVITY_AVAILABLE = 'AVAILABLE';
/**
* No known exploitation activity, but has a high potential for exploitation.
*/
public const EXPLOITATION_ACTIVITY_ANTICIPATED = 'ANTICIPATED';
/**
* No known exploitation activity.
*/
public const EXPLOITATION_ACTIVITY_NO_KNOWN = 'NO_KNOWN';
/**
* Invalid or empty value.
*/
public const IMPACT_RISK_RATING_UNSPECIFIED = 'RISK_RATING_UNSPECIFIED';
/**
* Exploitation would have little to no security impact.
*/
public const IMPACT_LOW = 'LOW';
/**
* Exploitation would enable attackers to perform activities, or could allow
* attackers to have a direct impact, but would require additional steps.
*/
public const IMPACT_MEDIUM = 'MEDIUM';
/**
* Exploitation would enable attackers to have a notable direct impact without
* needing to overcome any major mitigating factors.
*/
public const IMPACT_HIGH = 'HIGH';
/**
* Exploitation would fundamentally undermine the security of affected
* systems, enable actors to perform significant attacks with minimal effort,
* with little to no mitigating factors to overcome.
*/
public const IMPACT_CRITICAL = 'CRITICAL';
protected $collection_key = 'references';
protected $cvssv3Type = Cvssv3::class;
protected $cvssv3DataType = '';
/**
* Date the first publicly available exploit or PoC was released.
*
* @var string
*/
public $exploitReleaseDate;
/**
* The exploitation activity of the vulnerability in the wild.
*
* @var string
*/
public $exploitationActivity;
/**
* Date of the earliest known exploitation.
*
* @var string
*/
public $firstExploitationDate;
/**
* The unique identifier for the vulnerability. e.g. CVE-2021-34527
*
* @var string
*/
public $id;
/**
* The potential impact of the vulnerability if it was to be exploited.
*
* @var string
*/
public $impact;
/**
* Whether or not the vulnerability has been observed in the wild.
*
* @var bool
*/
public $observedInTheWild;
protected $referencesType = Reference::class;
protected $referencesDataType = 'array';
/**
* Whether upstream fix is available for the CVE.
*
* @var bool
*/
public $upstreamFixAvailable;
/**
* Whether or not the vulnerability was zero day when the finding was
* published.
*
* @var bool
*/
public $zeroDay;
/**
* Describe Common Vulnerability Scoring System specified at
* https://www.first.org/cvss/v3.1/specification-document
*
* @param Cvssv3 $cvssv3
*/
public function setCvssv3(Cvssv3 $cvssv3)
{
$this->cvssv3 = $cvssv3;
}
/**
* @return Cvssv3
*/
public function getCvssv3()
{
return $this->cvssv3;
}
/**
* Date the first publicly available exploit or PoC was released.
*
* @param string $exploitReleaseDate
*/
public function setExploitReleaseDate($exploitReleaseDate)
{
$this->exploitReleaseDate = $exploitReleaseDate;
}
/**
* @return string
*/
public function getExploitReleaseDate()
{
return $this->exploitReleaseDate;
}
/**
* The exploitation activity of the vulnerability in the wild.
*
* Accepted values: EXPLOITATION_ACTIVITY_UNSPECIFIED, WIDE, CONFIRMED,
* AVAILABLE, ANTICIPATED, NO_KNOWN
*
* @param self::EXPLOITATION_ACTIVITY_* $exploitationActivity
*/
public function setExploitationActivity($exploitationActivity)
{
$this->exploitationActivity = $exploitationActivity;
}
/**
* @return self::EXPLOITATION_ACTIVITY_*
*/
public function getExploitationActivity()
{
return $this->exploitationActivity;
}
/**
* Date of the earliest known exploitation.
*
* @param string $firstExploitationDate
*/
public function setFirstExploitationDate($firstExploitationDate)
{
$this->firstExploitationDate = $firstExploitationDate;
}
/**
* @return string
*/
public function getFirstExploitationDate()
{
return $this->firstExploitationDate;
}
/**
* The unique identifier for the vulnerability. e.g. CVE-2021-34527
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The potential impact of the vulnerability if it was to be exploited.
*
* Accepted values: RISK_RATING_UNSPECIFIED, LOW, MEDIUM, HIGH, CRITICAL
*
* @param self::IMPACT_* $impact
*/
public function setImpact($impact)
{
$this->impact = $impact;
}
/**
* @return self::IMPACT_*
*/
public function getImpact()
{
return $this->impact;
}
/**
* Whether or not the vulnerability has been observed in the wild.
*
* @param bool $observedInTheWild
*/
public function setObservedInTheWild($observedInTheWild)
{
$this->observedInTheWild = $observedInTheWild;
}
/**
* @return bool
*/
public function getObservedInTheWild()
{
return $this->observedInTheWild;
}
/**
* Additional information about the CVE. e.g. https://cve.mitre.org/cgi-
* bin/cvename.cgi?name=CVE-2021-34527
*
* @param Reference[] $references
*/
public function setReferences($references)
{
$this->references = $references;
}
/**
* @return Reference[]
*/
public function getReferences()
{
return $this->references;
}
/**
* Whether upstream fix is available for the CVE.
*
* @param bool $upstreamFixAvailable
*/
public function setUpstreamFixAvailable($upstreamFixAvailable)
{
$this->upstreamFixAvailable = $upstreamFixAvailable;
}
/**
* @return bool
*/
public function getUpstreamFixAvailable()
{
return $this->upstreamFixAvailable;
}
/**
* Whether or not the vulnerability was zero day when the finding was
* published.
*
* @param bool $zeroDay
*/
public function setZeroDay($zeroDay)
{
$this->zeroDay = $zeroDay;
}
/**
* @return bool
*/
public function getZeroDay()
{
return $this->zeroDay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cve::class, 'Google_Service_SecurityCommandCenter_Cve');
@@ -0,0 +1,399 @@
<?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\SecurityCommandCenter;
class Cvssv3 extends \Google\Model
{
/**
* Invalid value.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_UNSPECIFIED = 'ATTACK_COMPLEXITY_UNSPECIFIED';
/**
* Specialized access conditions or extenuating circumstances do not exist. An
* attacker can expect repeatable success when attacking the vulnerable
* component.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_LOW = 'ATTACK_COMPLEXITY_LOW';
/**
* A successful attack depends on conditions beyond the attacker's control.
* That is, a successful attack cannot be accomplished at will, but requires
* the attacker to invest in some measurable amount of effort in preparation
* or execution against the vulnerable component before a successful attack
* can be expected.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_HIGH = 'ATTACK_COMPLEXITY_HIGH';
/**
* Invalid value.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_UNSPECIFIED = 'ATTACK_VECTOR_UNSPECIFIED';
/**
* The vulnerable component is bound to the network stack and the set of
* possible attackers extends beyond the other options listed below, up to and
* including the entire Internet.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_NETWORK = 'ATTACK_VECTOR_NETWORK';
/**
* The vulnerable component is bound to the network stack, but the attack is
* limited at the protocol level to a logically adjacent topology.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_ADJACENT = 'ATTACK_VECTOR_ADJACENT';
/**
* The vulnerable component is not bound to the network stack and the
* attacker's path is via read/write/execute capabilities.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_LOCAL = 'ATTACK_VECTOR_LOCAL';
/**
* The attack requires the attacker to physically touch or manipulate the
* vulnerable component.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_PHYSICAL = 'ATTACK_VECTOR_PHYSICAL';
/**
* Invalid value.
*/
public const AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact.
*/
public const AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact.
*/
public const AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact.
*/
public const AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Invalid value.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Invalid value.
*/
public const INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact.
*/
public const INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact.
*/
public const INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact.
*/
public const INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Invalid value.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_UNSPECIFIED = 'PRIVILEGES_REQUIRED_UNSPECIFIED';
/**
* The attacker is unauthorized prior to attack, and therefore does not
* require any access to settings or files of the vulnerable system to carry
* out an attack.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_NONE = 'PRIVILEGES_REQUIRED_NONE';
/**
* The attacker requires privileges that provide basic user capabilities that
* could normally affect only settings and files owned by a user.
* Alternatively, an attacker with Low privileges has the ability to access
* only non-sensitive resources.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_LOW = 'PRIVILEGES_REQUIRED_LOW';
/**
* The attacker requires privileges that provide significant (e.g.,
* administrative) control over the vulnerable component allowing access to
* component-wide settings and files.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_HIGH = 'PRIVILEGES_REQUIRED_HIGH';
/**
* Invalid value.
*/
public const SCOPE_SCOPE_UNSPECIFIED = 'SCOPE_UNSPECIFIED';
/**
* An exploited vulnerability can only affect resources managed by the same
* security authority.
*/
public const SCOPE_SCOPE_UNCHANGED = 'SCOPE_UNCHANGED';
/**
* An exploited vulnerability can affect resources beyond the security scope
* managed by the security authority of the vulnerable component.
*/
public const SCOPE_SCOPE_CHANGED = 'SCOPE_CHANGED';
/**
* Invalid value.
*/
public const USER_INTERACTION_USER_INTERACTION_UNSPECIFIED = 'USER_INTERACTION_UNSPECIFIED';
/**
* The vulnerable system can be exploited without interaction from any user.
*/
public const USER_INTERACTION_USER_INTERACTION_NONE = 'USER_INTERACTION_NONE';
/**
* Successful exploitation of this vulnerability requires a user to take some
* action before the vulnerability can be exploited.
*/
public const USER_INTERACTION_USER_INTERACTION_REQUIRED = 'USER_INTERACTION_REQUIRED';
/**
* This metric describes the conditions beyond the attacker's control that
* must exist in order to exploit the vulnerability.
*
* @var string
*/
public $attackComplexity;
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments. This metric
* reflects the context by which vulnerability exploitation is possible.
*
* @var string
*/
public $attackVector;
/**
* This metric measures the impact to the availability of the impacted
* component resulting from a successfully exploited vulnerability.
*
* @var string
*/
public $availabilityImpact;
/**
* The base score is a function of the base metric scores.
*
* @var
*/
public $baseScore;
/**
* This metric measures the impact to the confidentiality of the information
* resources managed by a software component due to a successfully exploited
* vulnerability.
*
* @var string
*/
public $confidentialityImpact;
/**
* This metric measures the impact to integrity of a successfully exploited
* vulnerability.
*
* @var string
*/
public $integrityImpact;
/**
* This metric describes the level of privileges an attacker must possess
* before successfully exploiting the vulnerability.
*
* @var string
*/
public $privilegesRequired;
/**
* The Scope metric captures whether a vulnerability in one vulnerable
* component impacts resources in components beyond its security scope.
*
* @var string
*/
public $scope;
/**
* This metric captures the requirement for a human user, other than the
* attacker, to participate in the successful compromise of the vulnerable
* component.
*
* @var string
*/
public $userInteraction;
/**
* This metric describes the conditions beyond the attacker's control that
* must exist in order to exploit the vulnerability.
*
* Accepted values: ATTACK_COMPLEXITY_UNSPECIFIED, ATTACK_COMPLEXITY_LOW,
* ATTACK_COMPLEXITY_HIGH
*
* @param self::ATTACK_COMPLEXITY_* $attackComplexity
*/
public function setAttackComplexity($attackComplexity)
{
$this->attackComplexity = $attackComplexity;
}
/**
* @return self::ATTACK_COMPLEXITY_*
*/
public function getAttackComplexity()
{
return $this->attackComplexity;
}
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments. This metric
* reflects the context by which vulnerability exploitation is possible.
*
* Accepted values: ATTACK_VECTOR_UNSPECIFIED, ATTACK_VECTOR_NETWORK,
* ATTACK_VECTOR_ADJACENT, ATTACK_VECTOR_LOCAL, ATTACK_VECTOR_PHYSICAL
*
* @param self::ATTACK_VECTOR_* $attackVector
*/
public function setAttackVector($attackVector)
{
$this->attackVector = $attackVector;
}
/**
* @return self::ATTACK_VECTOR_*
*/
public function getAttackVector()
{
return $this->attackVector;
}
/**
* This metric measures the impact to the availability of the impacted
* component resulting from a successfully exploited vulnerability.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE
*
* @param self::AVAILABILITY_IMPACT_* $availabilityImpact
*/
public function setAvailabilityImpact($availabilityImpact)
{
$this->availabilityImpact = $availabilityImpact;
}
/**
* @return self::AVAILABILITY_IMPACT_*
*/
public function getAvailabilityImpact()
{
return $this->availabilityImpact;
}
public function setBaseScore($baseScore)
{
$this->baseScore = $baseScore;
}
public function getBaseScore()
{
return $this->baseScore;
}
/**
* This metric measures the impact to the confidentiality of the information
* resources managed by a software component due to a successfully exploited
* vulnerability.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE
*
* @param self::CONFIDENTIALITY_IMPACT_* $confidentialityImpact
*/
public function setConfidentialityImpact($confidentialityImpact)
{
$this->confidentialityImpact = $confidentialityImpact;
}
/**
* @return self::CONFIDENTIALITY_IMPACT_*
*/
public function getConfidentialityImpact()
{
return $this->confidentialityImpact;
}
/**
* This metric measures the impact to integrity of a successfully exploited
* vulnerability.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE
*
* @param self::INTEGRITY_IMPACT_* $integrityImpact
*/
public function setIntegrityImpact($integrityImpact)
{
$this->integrityImpact = $integrityImpact;
}
/**
* @return self::INTEGRITY_IMPACT_*
*/
public function getIntegrityImpact()
{
return $this->integrityImpact;
}
/**
* This metric describes the level of privileges an attacker must possess
* before successfully exploiting the vulnerability.
*
* Accepted values: PRIVILEGES_REQUIRED_UNSPECIFIED, PRIVILEGES_REQUIRED_NONE,
* PRIVILEGES_REQUIRED_LOW, PRIVILEGES_REQUIRED_HIGH
*
* @param self::PRIVILEGES_REQUIRED_* $privilegesRequired
*/
public function setPrivilegesRequired($privilegesRequired)
{
$this->privilegesRequired = $privilegesRequired;
}
/**
* @return self::PRIVILEGES_REQUIRED_*
*/
public function getPrivilegesRequired()
{
return $this->privilegesRequired;
}
/**
* The Scope metric captures whether a vulnerability in one vulnerable
* component impacts resources in components beyond its security scope.
*
* Accepted values: SCOPE_UNSPECIFIED, SCOPE_UNCHANGED, SCOPE_CHANGED
*
* @param self::SCOPE_* $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return self::SCOPE_*
*/
public function getScope()
{
return $this->scope;
}
/**
* This metric captures the requirement for a human user, other than the
* attacker, to participate in the successful compromise of the vulnerable
* component.
*
* Accepted values: USER_INTERACTION_UNSPECIFIED, USER_INTERACTION_NONE,
* USER_INTERACTION_REQUIRED
*
* @param self::USER_INTERACTION_* $userInteraction
*/
public function setUserInteraction($userInteraction)
{
$this->userInteraction = $userInteraction;
}
/**
* @return self::USER_INTERACTION_*
*/
public function getUserInteraction()
{
return $this->userInteraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cvssv3::class, 'Google_Service_SecurityCommandCenter_Cvssv3');
@@ -0,0 +1,68 @@
<?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\SecurityCommandCenter;
class Cwe extends \Google\Collection
{
protected $collection_key = 'references';
/**
* The CWE identifier, e.g. CWE-94
*
* @var string
*/
public $id;
protected $referencesType = Reference::class;
protected $referencesDataType = 'array';
/**
* The CWE identifier, e.g. CWE-94
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Any reference to the details on the CWE, for example,
* https://cwe.mitre.org/data/definitions/94.html
*
* @param Reference[] $references
*/
public function setReferences($references)
{
$this->references = $references;
}
/**
* @return Reference[]
*/
public function getReferences()
{
return $this->references;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cwe::class, 'Google_Service_SecurityCommandCenter_Cwe');
@@ -0,0 +1,134 @@
<?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\SecurityCommandCenter;
class DataAccessEvent extends \Google\Model
{
/**
* The operation is unspecified.
*/
public const OPERATION_OPERATION_UNSPECIFIED = 'OPERATION_UNSPECIFIED';
/**
* Represents a read operation.
*/
public const OPERATION_READ = 'READ';
/**
* Represents a move operation.
*/
public const OPERATION_MOVE = 'MOVE';
/**
* Represents a copy operation.
*/
public const OPERATION_COPY = 'COPY';
/**
* Unique identifier for data access event.
*
* @var string
*/
public $eventId;
/**
* Timestamp of data access event.
*
* @var string
*/
public $eventTime;
/**
* The operation performed by the principal to access the data.
*
* @var string
*/
public $operation;
/**
* The email address of the principal that accessed the data. The principal
* could be a user account, service account, Google group, or other.
*
* @var string
*/
public $principalEmail;
/**
* Unique identifier for data access event.
*
* @param string $eventId
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* Timestamp of data access event.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* The operation performed by the principal to access the data.
*
* Accepted values: OPERATION_UNSPECIFIED, READ, MOVE, COPY
*
* @param self::OPERATION_* $operation
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return self::OPERATION_*
*/
public function getOperation()
{
return $this->operation;
}
/**
* The email address of the principal that accessed the data. The principal
* could be a user account, service account, Google group, or other.
*
* @param string $principalEmail
*/
public function setPrincipalEmail($principalEmail)
{
$this->principalEmail = $principalEmail;
}
/**
* @return string
*/
public function getPrincipalEmail()
{
return $this->principalEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataAccessEvent::class, 'Google_Service_SecurityCommandCenter_DataAccessEvent');
@@ -0,0 +1,156 @@
<?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\SecurityCommandCenter;
class DataFlowEvent extends \Google\Model
{
/**
* The operation is unspecified.
*/
public const OPERATION_OPERATION_UNSPECIFIED = 'OPERATION_UNSPECIFIED';
/**
* Represents a read operation.
*/
public const OPERATION_READ = 'READ';
/**
* Represents a move operation.
*/
public const OPERATION_MOVE = 'MOVE';
/**
* Represents a copy operation.
*/
public const OPERATION_COPY = 'COPY';
/**
* Unique identifier for data flow event.
*
* @var string
*/
public $eventId;
/**
* Timestamp of data flow event.
*
* @var string
*/
public $eventTime;
/**
* The operation performed by the principal for the data flow event.
*
* @var string
*/
public $operation;
/**
* The email address of the principal that initiated the data flow event. The
* principal could be a user account, service account, Google group, or other.
*
* @var string
*/
public $principalEmail;
/**
* Non-compliant location of the principal or the data destination.
*
* @var string
*/
public $violatedLocation;
/**
* Unique identifier for data flow event.
*
* @param string $eventId
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* Timestamp of data flow event.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* The operation performed by the principal for the data flow event.
*
* Accepted values: OPERATION_UNSPECIFIED, READ, MOVE, COPY
*
* @param self::OPERATION_* $operation
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return self::OPERATION_*
*/
public function getOperation()
{
return $this->operation;
}
/**
* The email address of the principal that initiated the data flow event. The
* principal could be a user account, service account, Google group, or other.
*
* @param string $principalEmail
*/
public function setPrincipalEmail($principalEmail)
{
$this->principalEmail = $principalEmail;
}
/**
* @return string
*/
public function getPrincipalEmail()
{
return $this->principalEmail;
}
/**
* Non-compliant location of the principal or the data destination.
*
* @param string $violatedLocation
*/
public function setViolatedLocation($violatedLocation)
{
$this->violatedLocation = $violatedLocation;
}
/**
* @return string
*/
public function getViolatedLocation()
{
return $this->violatedLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataFlowEvent::class, 'Google_Service_SecurityCommandCenter_DataFlowEvent');
@@ -0,0 +1,184 @@
<?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\SecurityCommandCenter;
class DataRetentionDeletionEvent extends \Google\Model
{
/**
* Unspecified event type.
*/
public const EVENT_TYPE_EVENT_TYPE_UNSPECIFIED = 'EVENT_TYPE_UNSPECIFIED';
/**
* Deprecated: This field is pending removal. Use
* EVENT_TYPE_MAX_TTL_FROM_CREATION or
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION instead.
*
* @deprecated
*/
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_EXCEEDED = 'EVENT_TYPE_MAX_TTL_EXCEEDED';
/**
* Max TTL from the asset's creation time.
*/
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_FROM_CREATION = 'EVENT_TYPE_MAX_TTL_FROM_CREATION';
/**
* Max TTL from the asset's last modification time.
*/
public const EVENT_TYPE_EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION = 'EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION';
/**
* Min TTL from the asset's creation time.
*/
public const EVENT_TYPE_EVENT_TYPE_MIN_TTL_FROM_CREATION = 'EVENT_TYPE_MIN_TTL_FROM_CREATION';
/**
* Number of objects that violated the policy for this resource. If the number
* is less than 1,000, then the value of this field is the exact number. If
* the number of objects that violated the policy is greater than or equal to
* 1,000, then the value of this field is 1000.
*
* @var string
*/
public $dataObjectCount;
/**
* Timestamp indicating when the event was detected.
*
* @var string
*/
public $eventDetectionTime;
/**
* Type of the DRD event.
*
* @var string
*/
public $eventType;
/**
* Maximum duration of retention allowed from the DRD control. This comes from
* the DRD control where users set a max TTL for their data. For example,
* suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.
* However, an object in that bucket is 100 days old. In this case, a
* DataRetentionDeletionEvent will be generated for that Cloud Storage bucket,
* and the max_retention_allowed is 90 days.
*
* @var string
*/
public $maxRetentionAllowed;
/**
* Min duration of retention allowed from the DSPM retention control. This
* field is only populated when event type is set to
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
*
* @var string
*/
public $minRetentionAllowed;
/**
* Number of objects that violated the policy for this resource. If the number
* is less than 1,000, then the value of this field is the exact number. If
* the number of objects that violated the policy is greater than or equal to
* 1,000, then the value of this field is 1000.
*
* @param string $dataObjectCount
*/
public function setDataObjectCount($dataObjectCount)
{
$this->dataObjectCount = $dataObjectCount;
}
/**
* @return string
*/
public function getDataObjectCount()
{
return $this->dataObjectCount;
}
/**
* Timestamp indicating when the event was detected.
*
* @param string $eventDetectionTime
*/
public function setEventDetectionTime($eventDetectionTime)
{
$this->eventDetectionTime = $eventDetectionTime;
}
/**
* @return string
*/
public function getEventDetectionTime()
{
return $this->eventDetectionTime;
}
/**
* Type of the DRD event.
*
* Accepted values: EVENT_TYPE_UNSPECIFIED, EVENT_TYPE_MAX_TTL_EXCEEDED,
* EVENT_TYPE_MAX_TTL_FROM_CREATION,
* EVENT_TYPE_MAX_TTL_FROM_LAST_MODIFICATION, EVENT_TYPE_MIN_TTL_FROM_CREATION
*
* @param self::EVENT_TYPE_* $eventType
*/
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
/**
* @return self::EVENT_TYPE_*
*/
public function getEventType()
{
return $this->eventType;
}
/**
* Maximum duration of retention allowed from the DRD control. This comes from
* the DRD control where users set a max TTL for their data. For example,
* suppose that a user sets the max TTL for a Cloud Storage bucket to 90 days.
* However, an object in that bucket is 100 days old. In this case, a
* DataRetentionDeletionEvent will be generated for that Cloud Storage bucket,
* and the max_retention_allowed is 90 days.
*
* @param string $maxRetentionAllowed
*/
public function setMaxRetentionAllowed($maxRetentionAllowed)
{
$this->maxRetentionAllowed = $maxRetentionAllowed;
}
/**
* @return string
*/
public function getMaxRetentionAllowed()
{
return $this->maxRetentionAllowed;
}
/**
* Min duration of retention allowed from the DSPM retention control. This
* field is only populated when event type is set to
* EVENT_TYPE_MIN_TTL_FROM_CREATION.
*
* @param string $minRetentionAllowed
*/
public function setMinRetentionAllowed($minRetentionAllowed)
{
$this->minRetentionAllowed = $minRetentionAllowed;
}
/**
* @return string
*/
public function getMinRetentionAllowed()
{
return $this->minRetentionAllowed;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataRetentionDeletionEvent::class, 'Google_Service_SecurityCommandCenter_DataRetentionDeletionEvent');
@@ -0,0 +1,179 @@
<?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\SecurityCommandCenter;
class Database extends \Google\Collection
{
protected $collection_key = 'grantees';
/**
* The human-readable name of the database that the user connected to.
*
* @var string
*/
public $displayName;
/**
* The target usernames, roles, or groups of an SQL privilege grant, which is
* not an IAM policy change.
*
* @var string[]
*/
public $grantees;
/**
* Some database resources may not have the [full resource
* name](https://google.aip.dev/122#full-resource-names) populated because
* these resource types are not yet supported by Cloud Asset Inventory (e.g.
* Cloud SQL databases). In these cases only the display name will be
* provided. The [full resource name](https://google.aip.dev/122#full-
* resource-names) of the database that the user connected to, if it is
* supported by Cloud Asset Inventory.
*
* @var string
*/
public $name;
/**
* The SQL statement that is associated with the database access.
*
* @var string
*/
public $query;
/**
* The username used to connect to the database. The username might not be an
* IAM principal and does not have a set format.
*
* @var string
*/
public $userName;
/**
* The version of the database, for example, POSTGRES_14. See [the complete
* list](https://cloud.google.com/sql/docs/mysql/admin-
* api/rest/v1/SqlDatabaseVersion).
*
* @var string
*/
public $version;
/**
* The human-readable name of the database that the user connected to.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The target usernames, roles, or groups of an SQL privilege grant, which is
* not an IAM policy change.
*
* @param string[] $grantees
*/
public function setGrantees($grantees)
{
$this->grantees = $grantees;
}
/**
* @return string[]
*/
public function getGrantees()
{
return $this->grantees;
}
/**
* Some database resources may not have the [full resource
* name](https://google.aip.dev/122#full-resource-names) populated because
* these resource types are not yet supported by Cloud Asset Inventory (e.g.
* Cloud SQL databases). In these cases only the display name will be
* provided. The [full resource name](https://google.aip.dev/122#full-
* resource-names) of the database that the user connected to, if it is
* supported by Cloud Asset Inventory.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The SQL statement that is associated with the database access.
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
/**
* The username used to connect to the database. The username might not be an
* IAM principal and does not have a set format.
*
* @param string $userName
*/
public function setUserName($userName)
{
$this->userName = $userName;
}
/**
* @return string
*/
public function getUserName()
{
return $this->userName;
}
/**
* The version of the database, for example, POSTGRES_14. See [the complete
* list](https://cloud.google.com/sql/docs/mysql/admin-
* api/rest/v1/SqlDatabaseVersion).
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Database::class, 'Google_Service_SecurityCommandCenter_Database');
@@ -0,0 +1,96 @@
<?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\SecurityCommandCenter;
class Dataset extends \Google\Model
{
/**
* The user defined display name of dataset, e.g. plants-dataset
*
* @var string
*/
public $displayName;
/**
* Resource name of the dataset, e.g.
* projects/{project}/locations/{location}/datasets/2094040236064505856
*
* @var string
*/
public $name;
/**
* Data source, such as BigQuery source URI, e.g. bq://scc-nexus-
* test.AIPPtest.gsod
*
* @var string
*/
public $source;
/**
* The user defined display name of dataset, e.g. plants-dataset
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Resource name of the dataset, e.g.
* projects/{project}/locations/{location}/datasets/2094040236064505856
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Data source, such as BigQuery source URI, e.g. bq://scc-nexus-
* test.AIPPtest.gsod
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dataset::class, 'Google_Service_SecurityCommandCenter_Dataset');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class Denied extends \Google\Collection
{
protected $collection_key = 'ipRules';
protected $ipRulesType = IpRule::class;
protected $ipRulesDataType = 'array';
/**
* Optional. Optional list of denied IP rules.
*
* @param IpRule[] $ipRules
*/
public function setIpRules($ipRules)
{
$this->ipRules = $ipRules;
}
/**
* @return IpRule[]
*/
public function getIpRules()
{
return $this->ipRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Denied::class, 'Google_Service_SecurityCommandCenter_Denied');
@@ -0,0 +1,62 @@
<?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\SecurityCommandCenter;
class Detection extends \Google\Model
{
/**
* The name of the binary associated with the memory hash signature detection.
*
* @var string
*/
public $binary;
/**
* The percentage of memory page hashes in the signature that were matched.
*
* @var
*/
public $percentPagesMatched;
/**
* The name of the binary associated with the memory hash signature detection.
*
* @param string $binary
*/
public function setBinary($binary)
{
$this->binary = $binary;
}
/**
* @return string
*/
public function getBinary()
{
return $this->binary;
}
public function setPercentPagesMatched($percentPagesMatched)
{
$this->percentPagesMatched = $percentPagesMatched;
}
public function getPercentPagesMatched()
{
return $this->percentPagesMatched;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Detection::class, 'Google_Service_SecurityCommandCenter_Detection');
@@ -0,0 +1,170 @@
<?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\SecurityCommandCenter;
class DiscoveredWorkload extends \Google\Model
{
/**
* Unspecified confidence level.
*/
public const CONFIDENCE_CONFIDENCE_UNSPECIFIED = 'CONFIDENCE_UNSPECIFIED';
/**
* High confidence in detection of a workload.
*/
public const CONFIDENCE_CONFIDENCE_HIGH = 'CONFIDENCE_HIGH';
/**
* Unspecified workload type
*/
public const WORKLOAD_TYPE_WORKLOAD_TYPE_UNSPECIFIED = 'WORKLOAD_TYPE_UNSPECIFIED';
/**
* A workload of type MCP Server
*/
public const WORKLOAD_TYPE_MCP_SERVER = 'MCP_SERVER';
/**
* A workload of type AI Inference
*/
public const WORKLOAD_TYPE_AI_INFERENCE = 'AI_INFERENCE';
/**
* A workload of type LLM Agent
*/
public const WORKLOAD_TYPE_AGENT = 'AGENT';
/**
* The confidence in detection of this workload.
*
* @var string
*/
public $confidence;
/**
* A boolean flag set to true if associated hardware strongly predicts the
* workload type.
*
* @var bool
*/
public $detectedRelevantHardware;
/**
* A boolean flag set to true if associated keywords strongly predict the
* workload type.
*
* @var bool
*/
public $detectedRelevantKeywords;
/**
* A boolean flag set to true if installed packages strongly predict the
* workload type.
*
* @var bool
*/
public $detectedRelevantPackages;
/**
* The type of workload.
*
* @var string
*/
public $workloadType;
/**
* The confidence in detection of this workload.
*
* Accepted values: CONFIDENCE_UNSPECIFIED, CONFIDENCE_HIGH
*
* @param self::CONFIDENCE_* $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return self::CONFIDENCE_*
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* A boolean flag set to true if associated hardware strongly predicts the
* workload type.
*
* @param bool $detectedRelevantHardware
*/
public function setDetectedRelevantHardware($detectedRelevantHardware)
{
$this->detectedRelevantHardware = $detectedRelevantHardware;
}
/**
* @return bool
*/
public function getDetectedRelevantHardware()
{
return $this->detectedRelevantHardware;
}
/**
* A boolean flag set to true if associated keywords strongly predict the
* workload type.
*
* @param bool $detectedRelevantKeywords
*/
public function setDetectedRelevantKeywords($detectedRelevantKeywords)
{
$this->detectedRelevantKeywords = $detectedRelevantKeywords;
}
/**
* @return bool
*/
public function getDetectedRelevantKeywords()
{
return $this->detectedRelevantKeywords;
}
/**
* A boolean flag set to true if installed packages strongly predict the
* workload type.
*
* @param bool $detectedRelevantPackages
*/
public function setDetectedRelevantPackages($detectedRelevantPackages)
{
$this->detectedRelevantPackages = $detectedRelevantPackages;
}
/**
* @return bool
*/
public function getDetectedRelevantPackages()
{
return $this->detectedRelevantPackages;
}
/**
* The type of workload.
*
* Accepted values: WORKLOAD_TYPE_UNSPECIFIED, MCP_SERVER, AI_INFERENCE, AGENT
*
* @param self::WORKLOAD_TYPE_* $workloadType
*/
public function setWorkloadType($workloadType)
{
$this->workloadType = $workloadType;
}
/**
* @return self::WORKLOAD_TYPE_*
*/
public function getWorkloadType()
{
return $this->workloadType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveredWorkload::class, 'Google_Service_SecurityCommandCenter_DiscoveredWorkload');
@@ -0,0 +1,52 @@
<?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\SecurityCommandCenter;
class Disk extends \Google\Model
{
/**
* The name of the disk, for example,
* "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-
* id}/disks/{disk-id}".
*
* @var string
*/
public $name;
/**
* The name of the disk, for example,
* "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-
* id}/disks/{disk-id}".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Disk::class, 'Google_Service_SecurityCommandCenter_Disk');
@@ -0,0 +1,74 @@
<?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\SecurityCommandCenter;
class DiskPath extends \Google\Model
{
/**
* UUID of the partition (format
* https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
*
* @var string
*/
public $partitionUuid;
/**
* Relative path of the file in the partition as a JSON encoded string.
* Example: /home/user1/executable_file.sh
*
* @var string
*/
public $relativePath;
/**
* UUID of the partition (format
* https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
*
* @param string $partitionUuid
*/
public function setPartitionUuid($partitionUuid)
{
$this->partitionUuid = $partitionUuid;
}
/**
* @return string
*/
public function getPartitionUuid()
{
return $this->partitionUuid;
}
/**
* Relative path of the file in the partition as a JSON encoded string.
* Example: /home/user1/executable_file.sh
*
* @param string $relativePath
*/
public function setRelativePath($relativePath)
{
$this->relativePath = $relativePath;
}
/**
* @return string
*/
public function getRelativePath()
{
return $this->relativePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskPath::class, 'Google_Service_SecurityCommandCenter_DiskPath');
@@ -0,0 +1,76 @@
<?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\SecurityCommandCenter;
class DynamicMuteRecord extends \Google\Model
{
/**
* When the dynamic mute rule first matched the finding.
*
* @var string
*/
public $matchTime;
/**
* The relative resource name of the mute rule, represented by a mute config,
* that created this record, for example
* `organizations/123/muteConfigs/mymuteconfig` or
* `organizations/123/locations/global/muteConfigs/mymuteconfig`.
*
* @var string
*/
public $muteConfig;
/**
* When the dynamic mute rule first matched the finding.
*
* @param string $matchTime
*/
public function setMatchTime($matchTime)
{
$this->matchTime = $matchTime;
}
/**
* @return string
*/
public function getMatchTime()
{
return $this->matchTime;
}
/**
* The relative resource name of the mute rule, represented by a mute config,
* that created this record, for example
* `organizations/123/muteConfigs/mymuteconfig` or
* `organizations/123/locations/global/muteConfigs/mymuteconfig`.
*
* @param string $muteConfig
*/
public function setMuteConfig($muteConfig)
{
$this->muteConfig = $muteConfig;
}
/**
* @return string
*/
public function getMuteConfig()
{
return $this->muteConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicMuteRecord::class, 'Google_Service_SecurityCommandCenter_DynamicMuteRecord');
@@ -0,0 +1,62 @@
<?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\SecurityCommandCenter;
class Edge extends \Google\Model
{
/**
* @var string
*/
public $destination;
/**
* @var string
*/
public $source;
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Edge::class, 'Google_Service_SecurityCommandCenter_Edge');
@@ -0,0 +1,223 @@
<?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\SecurityCommandCenter;
class EffectiveEventThreatDetectionCustomModule extends \Google\Model
{
/**
* Unspecified cloud provider.
*/
public const CLOUD_PROVIDER_CLOUD_PROVIDER_UNSPECIFIED = 'CLOUD_PROVIDER_UNSPECIFIED';
/**
* Google Cloud.
*/
public const CLOUD_PROVIDER_GOOGLE_CLOUD_PLATFORM = 'GOOGLE_CLOUD_PLATFORM';
/**
* Amazon Web Services.
*/
public const CLOUD_PROVIDER_AMAZON_WEB_SERVICES = 'AMAZON_WEB_SERVICES';
/**
* Microsoft Azure.
*/
public const CLOUD_PROVIDER_MICROSOFT_AZURE = 'MICROSOFT_AZURE';
/**
* Unspecified enablement state.
*/
public const ENABLEMENT_STATE_ENABLEMENT_STATE_UNSPECIFIED = 'ENABLEMENT_STATE_UNSPECIFIED';
/**
* The module is enabled at the given level.
*/
public const ENABLEMENT_STATE_ENABLED = 'ENABLED';
/**
* The module is disabled at the given level.
*/
public const ENABLEMENT_STATE_DISABLED = 'DISABLED';
/**
* The cloud provider of the custom module.
*
* @var string
*/
public $cloudProvider;
/**
* Output only. Config for the effective module.
*
* @var array[]
*/
public $config;
/**
* Output only. The description for the module.
*
* @var string
*/
public $description;
/**
* Output only. The human readable name to be displayed for the module.
*
* @var string
*/
public $displayName;
/**
* Output only. The effective state of enablement for the module at the given
* level of the hierarchy.
*
* @var string
*/
public $enablementState;
/**
* Output only. The resource name of the effective ETD custom module. Its
* format is: * `organizations/{organization}/eventThreatDetectionSettings/eff
* ectiveCustomModules/{module}`. * `folders/{folder}/eventThreatDetectionSett
* ings/effectiveCustomModules/{module}`. * `projects/{project}/eventThreatDet
* ectionSettings/effectiveCustomModules/{module}`.
*
* @var string
*/
public $name;
/**
* Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
*
* @var string
*/
public $type;
/**
* The cloud provider of the custom module.
*
* Accepted values: CLOUD_PROVIDER_UNSPECIFIED, GOOGLE_CLOUD_PLATFORM,
* AMAZON_WEB_SERVICES, MICROSOFT_AZURE
*
* @param self::CLOUD_PROVIDER_* $cloudProvider
*/
public function setCloudProvider($cloudProvider)
{
$this->cloudProvider = $cloudProvider;
}
/**
* @return self::CLOUD_PROVIDER_*
*/
public function getCloudProvider()
{
return $this->cloudProvider;
}
/**
* Output only. Config for the effective module.
*
* @param array[] $config
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return array[]
*/
public function getConfig()
{
return $this->config;
}
/**
* Output only. The description for the module.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The human readable name to be displayed for the module.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The effective state of enablement for the module at the given
* level of the hierarchy.
*
* Accepted values: ENABLEMENT_STATE_UNSPECIFIED, ENABLED, DISABLED
*
* @param self::ENABLEMENT_STATE_* $enablementState
*/
public function setEnablementState($enablementState)
{
$this->enablementState = $enablementState;
}
/**
* @return self::ENABLEMENT_STATE_*
*/
public function getEnablementState()
{
return $this->enablementState;
}
/**
* Output only. The resource name of the effective ETD custom module. Its
* format is: * `organizations/{organization}/eventThreatDetectionSettings/eff
* ectiveCustomModules/{module}`. * `folders/{folder}/eventThreatDetectionSett
* ings/effectiveCustomModules/{module}`. * `projects/{project}/eventThreatDet
* ectionSettings/effectiveCustomModules/{module}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EffectiveEventThreatDetectionCustomModule::class, 'Google_Service_SecurityCommandCenter_EffectiveEventThreatDetectionCustomModule');
@@ -0,0 +1,70 @@
<?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\SecurityCommandCenter;
class EnvironmentVariable extends \Google\Model
{
/**
* Environment variable name as a JSON encoded string.
*
* @var string
*/
public $name;
/**
* Environment variable value as a JSON encoded string.
*
* @var string
*/
public $val;
/**
* Environment variable name as a JSON encoded string.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Environment variable value as a JSON encoded string.
*
* @param string $val
*/
public function setVal($val)
{
$this->val = $val;
}
/**
* @return string
*/
public function getVal()
{
return $this->val;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentVariable::class, 'Google_Service_SecurityCommandCenter_EnvironmentVariable');
@@ -0,0 +1,299 @@
<?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\SecurityCommandCenter;
class EventThreatDetectionCustomModule extends \Google\Model
{
/**
* Unspecified cloud provider.
*/
public const CLOUD_PROVIDER_CLOUD_PROVIDER_UNSPECIFIED = 'CLOUD_PROVIDER_UNSPECIFIED';
/**
* Google Cloud.
*/
public const CLOUD_PROVIDER_GOOGLE_CLOUD_PLATFORM = 'GOOGLE_CLOUD_PLATFORM';
/**
* Amazon Web Services (AWS).
*/
public const CLOUD_PROVIDER_AMAZON_WEB_SERVICES = 'AMAZON_WEB_SERVICES';
/**
* Microsoft Azure.
*/
public const CLOUD_PROVIDER_MICROSOFT_AZURE = 'MICROSOFT_AZURE';
/**
* Unspecified enablement state.
*/
public const ENABLEMENT_STATE_ENABLEMENT_STATE_UNSPECIFIED = 'ENABLEMENT_STATE_UNSPECIFIED';
/**
* The module is enabled at the given level.
*/
public const ENABLEMENT_STATE_ENABLED = 'ENABLED';
/**
* The module is disabled at the given level.
*/
public const ENABLEMENT_STATE_DISABLED = 'DISABLED';
/**
* When the enablement state is inherited.
*/
public const ENABLEMENT_STATE_INHERITED = 'INHERITED';
/**
* Output only. The closest ancestor module that this module inherits the
* enablement state from. The format is the same as the
* EventThreatDetectionCustomModule resource name.
*
* @var string
*/
public $ancestorModule;
/**
* The cloud provider of the custom module.
*
* @var string
*/
public $cloudProvider;
/**
* Config for the module. For the resident module, its config value is defined
* at this level. For the inherited module, its config value is inherited from
* the ancestor module.
*
* @var array[]
*/
public $config;
/**
* The description for the module.
*
* @var string
*/
public $description;
/**
* The human readable name to be displayed for the module.
*
* @var string
*/
public $displayName;
/**
* The state of enablement for the module at the given level of the hierarchy.
*
* @var string
*/
public $enablementState;
/**
* Output only. The editor the module was last updated by.
*
* @var string
*/
public $lastEditor;
/**
* Immutable. The resource name of the Event Threat Detection custom module.
* Its format is: * `organizations/{organization}/eventThreatDetectionSettings
* /customModules/{module}`. *
* `folders/{folder}/eventThreatDetectionSettings/customModules/{module}`. *
* `projects/{project}/eventThreatDetectionSettings/customModules/{module}`.
*
* @var string
*/
public $name;
/**
* Type for the module. e.g. CONFIGURABLE_BAD_IP.
*
* @var string
*/
public $type;
/**
* Output only. The time the module was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The closest ancestor module that this module inherits the
* enablement state from. The format is the same as the
* EventThreatDetectionCustomModule resource name.
*
* @param string $ancestorModule
*/
public function setAncestorModule($ancestorModule)
{
$this->ancestorModule = $ancestorModule;
}
/**
* @return string
*/
public function getAncestorModule()
{
return $this->ancestorModule;
}
/**
* The cloud provider of the custom module.
*
* Accepted values: CLOUD_PROVIDER_UNSPECIFIED, GOOGLE_CLOUD_PLATFORM,
* AMAZON_WEB_SERVICES, MICROSOFT_AZURE
*
* @param self::CLOUD_PROVIDER_* $cloudProvider
*/
public function setCloudProvider($cloudProvider)
{
$this->cloudProvider = $cloudProvider;
}
/**
* @return self::CLOUD_PROVIDER_*
*/
public function getCloudProvider()
{
return $this->cloudProvider;
}
/**
* Config for the module. For the resident module, its config value is defined
* at this level. For the inherited module, its config value is inherited from
* the ancestor module.
*
* @param array[] $config
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return array[]
*/
public function getConfig()
{
return $this->config;
}
/**
* The description for the module.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The human readable name to be displayed for the module.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The state of enablement for the module at the given level of the hierarchy.
*
* Accepted values: ENABLEMENT_STATE_UNSPECIFIED, ENABLED, DISABLED, INHERITED
*
* @param self::ENABLEMENT_STATE_* $enablementState
*/
public function setEnablementState($enablementState)
{
$this->enablementState = $enablementState;
}
/**
* @return self::ENABLEMENT_STATE_*
*/
public function getEnablementState()
{
return $this->enablementState;
}
/**
* Output only. The editor the module was last updated by.
*
* @param string $lastEditor
*/
public function setLastEditor($lastEditor)
{
$this->lastEditor = $lastEditor;
}
/**
* @return string
*/
public function getLastEditor()
{
return $this->lastEditor;
}
/**
* Immutable. The resource name of the Event Threat Detection custom module.
* Its format is: * `organizations/{organization}/eventThreatDetectionSettings
* /customModules/{module}`. *
* `folders/{folder}/eventThreatDetectionSettings/customModules/{module}`. *
* `projects/{project}/eventThreatDetectionSettings/customModules/{module}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Type for the module. e.g. CONFIGURABLE_BAD_IP.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The time the module was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventThreatDetectionCustomModule::class, 'Google_Service_SecurityCommandCenter_EventThreatDetectionCustomModule');
@@ -0,0 +1,81 @@
<?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\SecurityCommandCenter;
class ExfilResource extends \Google\Collection
{
protected $collection_key = 'components';
/**
* Subcomponents of the asset that was exfiltrated, like URIs used during
* exfiltration, table names, databases, and filenames. For example, multiple
* tables might have been exfiltrated from the same Cloud SQL instance, or
* multiple files might have been exfiltrated from the same Cloud Storage
* bucket.
*
* @var string[]
*/
public $components;
/**
* The resource's [full resource name](https://cloud.google.com/apis/design/re
* source_names#full_resource_name).
*
* @var string
*/
public $name;
/**
* Subcomponents of the asset that was exfiltrated, like URIs used during
* exfiltration, table names, databases, and filenames. For example, multiple
* tables might have been exfiltrated from the same Cloud SQL instance, or
* multiple files might have been exfiltrated from the same Cloud Storage
* bucket.
*
* @param string[] $components
*/
public function setComponents($components)
{
$this->components = $components;
}
/**
* @return string[]
*/
public function getComponents()
{
return $this->components;
}
/**
* The resource's [full resource name](https://cloud.google.com/apis/design/re
* source_names#full_resource_name).
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExfilResource::class, 'Google_Service_SecurityCommandCenter_ExfilResource');
@@ -0,0 +1,88 @@
<?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\SecurityCommandCenter;
class Exfiltration extends \Google\Collection
{
protected $collection_key = 'targets';
protected $sourcesType = ExfilResource::class;
protected $sourcesDataType = 'array';
protected $targetsType = ExfilResource::class;
protected $targetsDataType = 'array';
/**
* Total exfiltrated bytes processed for the entire job.
*
* @var string
*/
public $totalExfiltratedBytes;
/**
* If there are multiple sources, then the data is considered "joined" between
* them. For instance, BigQuery can join multiple tables, and each table would
* be considered a source.
*
* @param ExfilResource[] $sources
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return ExfilResource[]
*/
public function getSources()
{
return $this->sources;
}
/**
* If there are multiple targets, each target would get a complete copy of the
* "joined" source data.
*
* @param ExfilResource[] $targets
*/
public function setTargets($targets)
{
$this->targets = $targets;
}
/**
* @return ExfilResource[]
*/
public function getTargets()
{
return $this->targets;
}
/**
* Total exfiltrated bytes processed for the entire job.
*
* @param string $totalExfiltratedBytes
*/
public function setTotalExfiltratedBytes($totalExfiltratedBytes)
{
$this->totalExfiltratedBytes = $totalExfiltratedBytes;
}
/**
* @return string
*/
public function getTotalExfiltratedBytes()
{
return $this->totalExfiltratedBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Exfiltration::class, 'Google_Service_SecurityCommandCenter_Exfiltration');
@@ -0,0 +1,66 @@
<?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\SecurityCommandCenter;
class ExportFindingsMetadata extends \Google\Model
{
protected $bigQueryDestinationType = BigQueryDestination::class;
protected $bigQueryDestinationDataType = '';
/**
* Optional. Timestamp at which export was started
*
* @var string
*/
public $exportStartTime;
/**
* Required. The destination BigQuery dataset to export findings to.
*
* @param BigQueryDestination $bigQueryDestination
*/
public function setBigQueryDestination(BigQueryDestination $bigQueryDestination)
{
$this->bigQueryDestination = $bigQueryDestination;
}
/**
* @return BigQueryDestination
*/
public function getBigQueryDestination()
{
return $this->bigQueryDestination;
}
/**
* Optional. Timestamp at which export was started
*
* @param string $exportStartTime
*/
public function setExportStartTime($exportStartTime)
{
$this->exportStartTime = $exportStartTime;
}
/**
* @return string
*/
public function getExportStartTime()
{
return $this->exportStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportFindingsMetadata::class, 'Google_Service_SecurityCommandCenter_ExportFindingsMetadata');
@@ -0,0 +1,25 @@
<?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\SecurityCommandCenter;
class ExportFindingsResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportFindingsResponse::class, 'Google_Service_SecurityCommandCenter_ExportFindingsResponse');
@@ -0,0 +1,122 @@
<?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\SecurityCommandCenter;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_SecurityCommandCenter_Expr');
@@ -0,0 +1,523 @@
<?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\SecurityCommandCenter;
class ExternalExposure extends \Google\Collection
{
protected $collection_key = 'httpResponse';
/**
* The full resource name of the load balancer backend bucket, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendBuckets/{name}"
*
* @var string
*/
public $backendBucket;
/**
* The full resource name of load balancer backend service, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendServices/{name}".
*
* @var string
*/
public $backendService;
/**
* The name and version of the exposed web application, for example, "Jenkins
* 2.184".
*
* @var string
*/
public $exposedApplication;
/**
* The resource which is running the exposed service, for example,
* "//compute.googleapis.com/projects/{project-
* id}/zones/{zone}/instances/{instance}.”
*
* @var string
*/
public $exposedEndpoint;
/**
* The name and version of the service, for example, "Jupyter Notebook
* 6.14.0".
*
* @var string
*/
public $exposedService;
/**
* The full resource name of the forwarding rule, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/forwardingRules/{forwarding-rule-name}".
*
* @var string
*/
public $forwardingRule;
/**
* Hostname of the exposed application, for example, "https://test-
* app.a.run.app/"
*
* @var string
*/
public $hostnameUri;
protected $httpResponseType = HttpResponse::class;
protected $httpResponseDataType = 'array';
/**
* The full resource name of the instance group, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/instanceGroups/{name}".
*
* @var string
*/
public $instanceGroup;
/**
* The full resource name of load balancer backend service in the internal
* project having resource exposed via PSC, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendServices/{name}".
*
* @var string
*/
public $internalBackendService;
/**
* The full resource name of the load balancer firewall policy, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{policy-name}".
*
* @var string
*/
public $loadBalancerFirewallPolicy;
/**
* The full resource name of the network endpoint group, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/networkEndpointGroups/{name}".
*
* @var string
*/
public $networkEndpointGroup;
/**
* The full resource name of the network ingress firewall policy, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{name}".
*
* @var string
*/
public $networkIngressFirewallPolicy;
/**
* Private IP address of the exposed endpoint.
*
* @var string
*/
public $privateIpAddress;
/**
* Port number associated with private IP address.
*
* @var string
*/
public $privatePort;
/**
* The full resource name of the PSC (Private Service Connect) network
* attachment that network interface controller is attached to, for example,
* "//compute.googleapis.com/projects/{project-
* id}/regions/{region}/networkAttachments/{name}"
*
* @var string
*/
public $pscNetworkAttachment;
/**
* The full resource name of the PSC (Private Service Connect) service
* attachment that the load balancer network endpoint group targets, for
* example, "//compute.googleapis.com/projects/{project-
* id}/regions/{region}/serviceAttachments/{name}"
*
* @var string
*/
public $pscServiceAttachment;
/**
* Public IP address of the exposed endpoint.
*
* @var string
*/
public $publicIpAddress;
/**
* Public port number of the exposed endpoint.
*
* @var string
*/
public $publicPort;
/**
* The full resource name of the firewall policy of the exposed service, for
* example, "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{policy-name}".
*
* @var string
*/
public $serviceFirewallPolicy;
/**
* The full resource name of the load balancer backend bucket, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendBuckets/{name}"
*
* @param string $backendBucket
*/
public function setBackendBucket($backendBucket)
{
$this->backendBucket = $backendBucket;
}
/**
* @return string
*/
public function getBackendBucket()
{
return $this->backendBucket;
}
/**
* The full resource name of load balancer backend service, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendServices/{name}".
*
* @param string $backendService
*/
public function setBackendService($backendService)
{
$this->backendService = $backendService;
}
/**
* @return string
*/
public function getBackendService()
{
return $this->backendService;
}
/**
* The name and version of the exposed web application, for example, "Jenkins
* 2.184".
*
* @param string $exposedApplication
*/
public function setExposedApplication($exposedApplication)
{
$this->exposedApplication = $exposedApplication;
}
/**
* @return string
*/
public function getExposedApplication()
{
return $this->exposedApplication;
}
/**
* The resource which is running the exposed service, for example,
* "//compute.googleapis.com/projects/{project-
* id}/zones/{zone}/instances/{instance}.”
*
* @param string $exposedEndpoint
*/
public function setExposedEndpoint($exposedEndpoint)
{
$this->exposedEndpoint = $exposedEndpoint;
}
/**
* @return string
*/
public function getExposedEndpoint()
{
return $this->exposedEndpoint;
}
/**
* The name and version of the service, for example, "Jupyter Notebook
* 6.14.0".
*
* @param string $exposedService
*/
public function setExposedService($exposedService)
{
$this->exposedService = $exposedService;
}
/**
* @return string
*/
public function getExposedService()
{
return $this->exposedService;
}
/**
* The full resource name of the forwarding rule, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/forwardingRules/{forwarding-rule-name}".
*
* @param string $forwardingRule
*/
public function setForwardingRule($forwardingRule)
{
$this->forwardingRule = $forwardingRule;
}
/**
* @return string
*/
public function getForwardingRule()
{
return $this->forwardingRule;
}
/**
* Hostname of the exposed application, for example, "https://test-
* app.a.run.app/"
*
* @param string $hostnameUri
*/
public function setHostnameUri($hostnameUri)
{
$this->hostnameUri = $hostnameUri;
}
/**
* @return string
*/
public function getHostnameUri()
{
return $this->hostnameUri;
}
/**
* The http response returned by the web application.
*
* @param HttpResponse[] $httpResponse
*/
public function setHttpResponse($httpResponse)
{
$this->httpResponse = $httpResponse;
}
/**
* @return HttpResponse[]
*/
public function getHttpResponse()
{
return $this->httpResponse;
}
/**
* The full resource name of the instance group, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/instanceGroups/{name}".
*
* @param string $instanceGroup
*/
public function setInstanceGroup($instanceGroup)
{
$this->instanceGroup = $instanceGroup;
}
/**
* @return string
*/
public function getInstanceGroup()
{
return $this->instanceGroup;
}
/**
* The full resource name of load balancer backend service in the internal
* project having resource exposed via PSC, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/backendServices/{name}".
*
* @param string $internalBackendService
*/
public function setInternalBackendService($internalBackendService)
{
$this->internalBackendService = $internalBackendService;
}
/**
* @return string
*/
public function getInternalBackendService()
{
return $this->internalBackendService;
}
/**
* The full resource name of the load balancer firewall policy, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{policy-name}".
*
* @param string $loadBalancerFirewallPolicy
*/
public function setLoadBalancerFirewallPolicy($loadBalancerFirewallPolicy)
{
$this->loadBalancerFirewallPolicy = $loadBalancerFirewallPolicy;
}
/**
* @return string
*/
public function getLoadBalancerFirewallPolicy()
{
return $this->loadBalancerFirewallPolicy;
}
/**
* The full resource name of the network endpoint group, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/networkEndpointGroups/{name}".
*
* @param string $networkEndpointGroup
*/
public function setNetworkEndpointGroup($networkEndpointGroup)
{
$this->networkEndpointGroup = $networkEndpointGroup;
}
/**
* @return string
*/
public function getNetworkEndpointGroup()
{
return $this->networkEndpointGroup;
}
/**
* The full resource name of the network ingress firewall policy, for example,
* "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{name}".
*
* @param string $networkIngressFirewallPolicy
*/
public function setNetworkIngressFirewallPolicy($networkIngressFirewallPolicy)
{
$this->networkIngressFirewallPolicy = $networkIngressFirewallPolicy;
}
/**
* @return string
*/
public function getNetworkIngressFirewallPolicy()
{
return $this->networkIngressFirewallPolicy;
}
/**
* Private IP address of the exposed endpoint.
*
* @param string $privateIpAddress
*/
public function setPrivateIpAddress($privateIpAddress)
{
$this->privateIpAddress = $privateIpAddress;
}
/**
* @return string
*/
public function getPrivateIpAddress()
{
return $this->privateIpAddress;
}
/**
* Port number associated with private IP address.
*
* @param string $privatePort
*/
public function setPrivatePort($privatePort)
{
$this->privatePort = $privatePort;
}
/**
* @return string
*/
public function getPrivatePort()
{
return $this->privatePort;
}
/**
* The full resource name of the PSC (Private Service Connect) network
* attachment that network interface controller is attached to, for example,
* "//compute.googleapis.com/projects/{project-
* id}/regions/{region}/networkAttachments/{name}"
*
* @param string $pscNetworkAttachment
*/
public function setPscNetworkAttachment($pscNetworkAttachment)
{
$this->pscNetworkAttachment = $pscNetworkAttachment;
}
/**
* @return string
*/
public function getPscNetworkAttachment()
{
return $this->pscNetworkAttachment;
}
/**
* The full resource name of the PSC (Private Service Connect) service
* attachment that the load balancer network endpoint group targets, for
* example, "//compute.googleapis.com/projects/{project-
* id}/regions/{region}/serviceAttachments/{name}"
*
* @param string $pscServiceAttachment
*/
public function setPscServiceAttachment($pscServiceAttachment)
{
$this->pscServiceAttachment = $pscServiceAttachment;
}
/**
* @return string
*/
public function getPscServiceAttachment()
{
return $this->pscServiceAttachment;
}
/**
* Public IP address of the exposed endpoint.
*
* @param string $publicIpAddress
*/
public function setPublicIpAddress($publicIpAddress)
{
$this->publicIpAddress = $publicIpAddress;
}
/**
* @return string
*/
public function getPublicIpAddress()
{
return $this->publicIpAddress;
}
/**
* Public port number of the exposed endpoint.
*
* @param string $publicPort
*/
public function setPublicPort($publicPort)
{
$this->publicPort = $publicPort;
}
/**
* @return string
*/
public function getPublicPort()
{
return $this->publicPort;
}
/**
* The full resource name of the firewall policy of the exposed service, for
* example, "//compute.googleapis.com/projects/{project-
* id}/global/firewallPolicies/{policy-name}".
*
* @param string $serviceFirewallPolicy
*/
public function setServiceFirewallPolicy($serviceFirewallPolicy)
{
$this->serviceFirewallPolicy = $serviceFirewallPolicy;
}
/**
* @return string
*/
public function getServiceFirewallPolicy()
{
return $this->serviceFirewallPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalExposure::class, 'Google_Service_SecurityCommandCenter_ExternalExposure');
@@ -0,0 +1,75 @@
<?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\SecurityCommandCenter;
class FileOperation extends \Google\Model
{
/**
* The operation is unspecified.
*/
public const TYPE_OPERATION_TYPE_UNSPECIFIED = 'OPERATION_TYPE_UNSPECIFIED';
/**
* Represents an open operation.
*/
public const TYPE_OPEN = 'OPEN';
/**
* Represents a read operation.
*/
public const TYPE_READ = 'READ';
/**
* Represents a rename operation.
*/
public const TYPE_RENAME = 'RENAME';
/**
* Represents a write operation.
*/
public const TYPE_WRITE = 'WRITE';
/**
* Represents an execute operation.
*/
public const TYPE_EXECUTE = 'EXECUTE';
/**
* The type of the operation
*
* @var string
*/
public $type;
/**
* The type of the operation
*
* Accepted values: OPERATION_TYPE_UNSPECIFIED, OPEN, READ, RENAME, WRITE,
* EXECUTE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileOperation::class, 'Google_Service_SecurityCommandCenter_FileOperation');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,72 @@
<?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\SecurityCommandCenter;
class Folder extends \Google\Model
{
/**
* Full resource name of this folder. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
* @var string
*/
public $resourceFolder;
/**
* The user defined display name for this folder.
*
* @var string
*/
public $resourceFolderDisplayName;
/**
* Full resource name of this folder. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
* @param string $resourceFolder
*/
public function setResourceFolder($resourceFolder)
{
$this->resourceFolder = $resourceFolder;
}
/**
* @return string
*/
public function getResourceFolder()
{
return $this->resourceFolder;
}
/**
* The user defined display name for this folder.
*
* @param string $resourceFolderDisplayName
*/
public function setResourceFolderDisplayName($resourceFolderDisplayName)
{
$this->resourceFolderDisplayName = $resourceFolderDisplayName;
}
/**
* @return string
*/
public function getResourceFolderDisplayName()
{
return $this->resourceFolderDisplayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folder::class, 'Google_Service_SecurityCommandCenter_Folder');
@@ -0,0 +1,159 @@
<?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\SecurityCommandCenter;
class Framework extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const TYPE_FRAMEWORK_TYPE_UNSPECIFIED = 'FRAMEWORK_TYPE_UNSPECIFIED';
/**
* The framework is a built-in framework if it is created and managed by GCP.
*/
public const TYPE_FRAMEWORK_TYPE_BUILT_IN = 'FRAMEWORK_TYPE_BUILT_IN';
/**
* The framework is a custom framework if it is created and managed by the
* user.
*/
public const TYPE_FRAMEWORK_TYPE_CUSTOM = 'FRAMEWORK_TYPE_CUSTOM';
protected $collection_key = 'controls';
/**
* Category of the framework associated with the finding. E.g. Security
* Benchmark, or Assured Workloads
*
* @var string[]
*/
public $category;
protected $controlsType = Control::class;
protected $controlsDataType = 'array';
/**
* Display name of the framework. For a standard framework, this will look
* like e.g. PCI DSS 3.2.1, whereas for a custom framework it can be a user
* defined string like MyFramework
*
* @var string
*/
public $displayName;
/**
* Name of the framework associated with the finding
*
* @var string
*/
public $name;
/**
* Type of the framework associated with the finding, to specify whether the
* framework is built-in (pre-defined and immutable) or a custom framework
* defined by the customer (equivalent to security posture)
*
* @var string
*/
public $type;
/**
* Category of the framework associated with the finding. E.g. Security
* Benchmark, or Assured Workloads
*
* @param string[] $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string[]
*/
public function getCategory()
{
return $this->category;
}
/**
* The controls associated with the framework.
*
* @param Control[] $controls
*/
public function setControls($controls)
{
$this->controls = $controls;
}
/**
* @return Control[]
*/
public function getControls()
{
return $this->controls;
}
/**
* Display name of the framework. For a standard framework, this will look
* like e.g. PCI DSS 3.2.1, whereas for a custom framework it can be a user
* defined string like MyFramework
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Name of the framework associated with the finding
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Type of the framework associated with the finding, to specify whether the
* framework is built-in (pre-defined and immutable) or a custom framework
* defined by the customer (equivalent to security posture)
*
* Accepted values: FRAMEWORK_TYPE_UNSPECIFIED, FRAMEWORK_TYPE_BUILT_IN,
* FRAMEWORK_TYPE_CUSTOM
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Framework::class, 'Google_Service_SecurityCommandCenter_Framework');
@@ -0,0 +1,157 @@
<?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\SecurityCommandCenter;
class GcpMetadata extends \Google\Collection
{
protected $collection_key = 'folders';
protected $foldersType = GoogleCloudSecuritycenterV2Folder::class;
protected $foldersDataType = 'array';
/**
* The name of the organization that the resource belongs to.
*
* @var string
*/
public $organization;
/**
* The full resource name of resource's parent.
*
* @var string
*/
public $parent;
/**
* The human readable name of resource's parent.
*
* @var string
*/
public $parentDisplayName;
/**
* The full resource name of project that the resource belongs to.
*
* @var string
*/
public $project;
/**
* The project ID that the resource belongs to.
*
* @var string
*/
public $projectDisplayName;
/**
* Output only. Contains a Folder message for each folder in the assets
* ancestry. The first folder is the deepest nested folder, and the last
* folder is the folder directly under the Organization.
*
* @param GoogleCloudSecuritycenterV2Folder[] $folders
*/
public function setFolders($folders)
{
$this->folders = $folders;
}
/**
* @return GoogleCloudSecuritycenterV2Folder[]
*/
public function getFolders()
{
return $this->folders;
}
/**
* The name of the organization that the resource belongs to.
*
* @param string $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return string
*/
public function getOrganization()
{
return $this->organization;
}
/**
* The full resource name of resource's parent.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* The human readable name of resource's parent.
*
* @param string $parentDisplayName
*/
public function setParentDisplayName($parentDisplayName)
{
$this->parentDisplayName = $parentDisplayName;
}
/**
* @return string
*/
public function getParentDisplayName()
{
return $this->parentDisplayName;
}
/**
* The full resource name of project that the resource belongs to.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* The project ID that the resource belongs to.
*
* @param string $projectDisplayName
*/
public function setProjectDisplayName($projectDisplayName)
{
$this->projectDisplayName = $projectDisplayName;
}
/**
* @return string
*/
public function getProjectDisplayName()
{
return $this->projectDisplayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcpMetadata::class, 'Google_Service_SecurityCommandCenter_GcpMetadata');
@@ -0,0 +1,48 @@
<?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\SecurityCommandCenter;
class Geolocation extends \Google\Model
{
/**
* A CLDR.
*
* @var string
*/
public $regionCode;
/**
* A CLDR.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Geolocation::class, 'Google_Service_SecurityCommandCenter_Geolocation');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`.
*
* @param GetPolicyOptions $options
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_SecurityCommandCenter_GetIamPolicyRequest');
@@ -0,0 +1,68 @@
<?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\SecurityCommandCenter;
class GetPolicyOptions extends \Google\Model
{
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $requestedPolicyVersion;
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $requestedPolicyVersion
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_SecurityCommandCenter_GetPolicyOptions');
@@ -0,0 +1,250 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1BigQueryExport extends \Google\Model
{
/**
* Output only. The time at which the BigQuery export was created. This field
* is set by the server and will be ignored if provided on export on creation.
*
* @var string
*/
public $createTime;
/**
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery Dataset
* unique ID must contain only letters (a-z, A-Z), numbers (0-9), or
* underscores (_).
*
* @var string
*/
public $dataset;
/**
* The description of the export (max of 1024 characters).
*
* @var string
*/
public $description;
/**
* Expression that defines the filter to apply across create/update events of
* findings. The expression is a list of zero or more restrictions combined
* via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
* has higher precedence than `AND`. Restrictions have the form ` ` and may
* have a `-` character in front of them to indicate negation. The fields map
* to those defined in the corresponding resource. The supported operators
* are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer values.
* * `:`, meaning substring matching, for strings. The supported value types
* are: * string literals in quotes. * integer literals without quotes. *
* boolean literals `true` and `false` without quotes.
*
* @var string
*/
public $filter;
/**
* Output only. Email address of the user who last edited the BigQuery export.
* This field is set by the server and will be ignored if provided on export
* creation or update.
*
* @var string
*/
public $mostRecentEditor;
/**
* The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* Example format:
* "organizations/{organization_id}/bigQueryExports/{export_id}" Example
* format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format:
* "projects/{project_id}/bigQueryExports/{export_id}" This field is provided
* in responses, and is ignored when provided in create requests.
*
* @var string
*/
public $name;
/**
* Output only. The service account that needs permission to create table and
* upload data to the BigQuery dataset.
*
* @var string
*/
public $principal;
/**
* Output only. The most recent time at which the BigQuery export was updated.
* This field is set by the server and will be ignored if provided on export
* creation or update.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time at which the BigQuery export was created. This field
* is set by the server and will be ignored if provided on export on creation.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The dataset to write findings' updates to. Its format is
* "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery Dataset
* unique ID must contain only letters (a-z, A-Z), numbers (0-9), or
* underscores (_).
*
* @param string $dataset
*/
public function setDataset($dataset)
{
$this->dataset = $dataset;
}
/**
* @return string
*/
public function getDataset()
{
return $this->dataset;
}
/**
* The description of the export (max of 1024 characters).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Expression that defines the filter to apply across create/update events of
* findings. The expression is a list of zero or more restrictions combined
* via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
* has higher precedence than `AND`. Restrictions have the form ` ` and may
* have a `-` character in front of them to indicate negation. The fields map
* to those defined in the corresponding resource. The supported operators
* are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer values.
* * `:`, meaning substring matching, for strings. The supported value types
* are: * string literals in quotes. * integer literals without quotes. *
* boolean literals `true` and `false` without quotes.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* Output only. Email address of the user who last edited the BigQuery export.
* This field is set by the server and will be ignored if provided on export
* creation or update.
*
* @param string $mostRecentEditor
*/
public function setMostRecentEditor($mostRecentEditor)
{
$this->mostRecentEditor = $mostRecentEditor;
}
/**
* @return string
*/
public function getMostRecentEditor()
{
return $this->mostRecentEditor;
}
/**
* The relative resource name of this export. See:
* https://cloud.google.com/apis/design/resource_names#relative_resource_name.
* Example format:
* "organizations/{organization_id}/bigQueryExports/{export_id}" Example
* format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format:
* "projects/{project_id}/bigQueryExports/{export_id}" This field is provided
* in responses, and is ignored when provided in create requests.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The service account that needs permission to create table and
* upload data to the BigQuery dataset.
*
* @param string $principal
*/
public function setPrincipal($principal)
{
$this->principal = $principal;
}
/**
* @return string
*/
public function getPrincipal()
{
return $this->principal;
}
/**
* Output only. The most recent time at which the BigQuery export was updated.
* This field is set by the server and will be ignored if provided on export
* creation or update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1BigQueryExport::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1BigQueryExport');
@@ -0,0 +1,108 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1Binding extends \Google\Collection
{
protected $collection_key = 'subjects';
/**
* Name for the binding.
*
* @var string
*/
public $name;
/**
* Namespace for the binding.
*
* @var string
*/
public $ns;
protected $roleType = Role::class;
protected $roleDataType = '';
protected $subjectsType = Subject::class;
protected $subjectsDataType = 'array';
/**
* Name for the binding.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Namespace for the binding.
*
* @param string $ns
*/
public function setNs($ns)
{
$this->ns = $ns;
}
/**
* @return string
*/
public function getNs()
{
return $this->ns;
}
/**
* The Role or ClusterRole referenced by the binding.
*
* @param Role $role
*/
public function setRole(Role $role)
{
$this->role = $role;
}
/**
* @return Role
*/
public function getRole()
{
return $this->role;
}
/**
* Represents one or more subjects that are bound to the role. Not always
* available for PATCH requests.
*
* @param Subject[] $subjects
*/
public function setSubjects($subjects)
{
$this->subjects = $subjects;
}
/**
* @return Subject[]
*/
public function getSubjects()
{
return $this->subjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1Binding::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1Binding');
@@ -0,0 +1,25 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1BulkMuteFindingsResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1BulkMuteFindingsResponse::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1BulkMuteFindingsResponse');
@@ -0,0 +1,180 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1CustomConfig extends \Google\Model
{
/**
* Unspecified severity.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Critical severity.
*/
public const SEVERITY_CRITICAL = 'CRITICAL';
/**
* High severity.
*/
public const SEVERITY_HIGH = 'HIGH';
/**
* Medium severity.
*/
public const SEVERITY_MEDIUM = 'MEDIUM';
/**
* Low severity.
*/
public const SEVERITY_LOW = 'LOW';
protected $customOutputType = GoogleCloudSecuritycenterV1CustomOutputSpec::class;
protected $customOutputDataType = '';
/**
* Text that describes the vulnerability or misconfiguration that the custom
* module detects. This explanation is returned with each finding instance to
* help investigators understand the detected issue. The text must be enclosed
* in quotation marks.
*
* @var string
*/
public $description;
protected $predicateType = Expr::class;
protected $predicateDataType = '';
/**
* An explanation of the recommended steps that security teams can take to
* resolve the detected issue. This explanation is returned with each finding
* generated by this module in the `nextSteps` property of the finding JSON.
*
* @var string
*/
public $recommendation;
protected $resourceSelectorType = GoogleCloudSecuritycenterV1ResourceSelector::class;
protected $resourceSelectorDataType = '';
/**
* The severity to assign to findings generated by the module.
*
* @var string
*/
public $severity;
/**
* Custom output properties.
*
* @param GoogleCloudSecuritycenterV1CustomOutputSpec $customOutput
*/
public function setCustomOutput(GoogleCloudSecuritycenterV1CustomOutputSpec $customOutput)
{
$this->customOutput = $customOutput;
}
/**
* @return GoogleCloudSecuritycenterV1CustomOutputSpec
*/
public function getCustomOutput()
{
return $this->customOutput;
}
/**
* Text that describes the vulnerability or misconfiguration that the custom
* module detects. This explanation is returned with each finding instance to
* help investigators understand the detected issue. The text must be enclosed
* in quotation marks.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The CEL expression to evaluate to produce findings. When the expression
* evaluates to true against a resource, a finding is generated.
*
* @param Expr $predicate
*/
public function setPredicate(Expr $predicate)
{
$this->predicate = $predicate;
}
/**
* @return Expr
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* An explanation of the recommended steps that security teams can take to
* resolve the detected issue. This explanation is returned with each finding
* generated by this module in the `nextSteps` property of the finding JSON.
*
* @param string $recommendation
*/
public function setRecommendation($recommendation)
{
$this->recommendation = $recommendation;
}
/**
* @return string
*/
public function getRecommendation()
{
return $this->recommendation;
}
/**
* The resource types that the custom module operates on. Each custom module
* can specify up to 5 resource types.
*
* @param GoogleCloudSecuritycenterV1ResourceSelector $resourceSelector
*/
public function setResourceSelector(GoogleCloudSecuritycenterV1ResourceSelector $resourceSelector)
{
$this->resourceSelector = $resourceSelector;
}
/**
* @return GoogleCloudSecuritycenterV1ResourceSelector
*/
public function getResourceSelector()
{
return $this->resourceSelector;
}
/**
* The severity to assign to findings generated by the module.
*
* Accepted values: SEVERITY_UNSPECIFIED, CRITICAL, HIGH, MEDIUM, LOW
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1CustomConfig::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1CustomConfig');
@@ -0,0 +1,45 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1CustomOutputSpec extends \Google\Collection
{
protected $collection_key = 'properties';
protected $propertiesType = GoogleCloudSecuritycenterV1Property::class;
protected $propertiesDataType = 'array';
/**
* A list of custom output properties to add to the finding.
*
* @param GoogleCloudSecuritycenterV1Property[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return GoogleCloudSecuritycenterV1Property[]
*/
public function getProperties()
{
return $this->properties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1CustomOutputSpec::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1CustomOutputSpec');
@@ -0,0 +1,179 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule extends \Google\Model
{
/**
* Unspecified cloud provider.
*/
public const CLOUD_PROVIDER_CLOUD_PROVIDER_UNSPECIFIED = 'CLOUD_PROVIDER_UNSPECIFIED';
/**
* Google Cloud.
*/
public const CLOUD_PROVIDER_GOOGLE_CLOUD_PLATFORM = 'GOOGLE_CLOUD_PLATFORM';
/**
* Amazon Web Services.
*/
public const CLOUD_PROVIDER_AMAZON_WEB_SERVICES = 'AMAZON_WEB_SERVICES';
/**
* Microsoft Azure.
*/
public const CLOUD_PROVIDER_MICROSOFT_AZURE = 'MICROSOFT_AZURE';
/**
* Unspecified enablement state.
*/
public const ENABLEMENT_STATE_ENABLEMENT_STATE_UNSPECIFIED = 'ENABLEMENT_STATE_UNSPECIFIED';
/**
* The module is enabled at the given level.
*/
public const ENABLEMENT_STATE_ENABLED = 'ENABLED';
/**
* The module is disabled at the given level.
*/
public const ENABLEMENT_STATE_DISABLED = 'DISABLED';
/**
* The cloud provider of the custom module.
*
* @var string
*/
public $cloudProvider;
protected $customConfigType = GoogleCloudSecuritycenterV1CustomConfig::class;
protected $customConfigDataType = '';
/**
* Output only. The display name for the custom module. The name must be
* between 1 and 128 characters, start with a lowercase letter, and contain
* alphanumeric characters or underscores only.
*
* @var string
*/
public $displayName;
/**
* Output only. The effective state of enablement for the module at the given
* level of the hierarchy.
*
* @var string
*/
public $enablementState;
/**
* Output only. The resource name of the custom module. Its format is "organiz
* ations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModule
* s/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/eff
* ectiveCustomModules/{customModule}", or "projects/{project}/securityHealthA
* nalyticsSettings/effectiveCustomModules/{customModule}"
*
* @var string
*/
public $name;
/**
* The cloud provider of the custom module.
*
* Accepted values: CLOUD_PROVIDER_UNSPECIFIED, GOOGLE_CLOUD_PLATFORM,
* AMAZON_WEB_SERVICES, MICROSOFT_AZURE
*
* @param self::CLOUD_PROVIDER_* $cloudProvider
*/
public function setCloudProvider($cloudProvider)
{
$this->cloudProvider = $cloudProvider;
}
/**
* @return self::CLOUD_PROVIDER_*
*/
public function getCloudProvider()
{
return $this->cloudProvider;
}
/**
* Output only. The user-specified configuration for the module.
*
* @param GoogleCloudSecuritycenterV1CustomConfig $customConfig
*/
public function setCustomConfig(GoogleCloudSecuritycenterV1CustomConfig $customConfig)
{
$this->customConfig = $customConfig;
}
/**
* @return GoogleCloudSecuritycenterV1CustomConfig
*/
public function getCustomConfig()
{
return $this->customConfig;
}
/**
* Output only. The display name for the custom module. The name must be
* between 1 and 128 characters, start with a lowercase letter, and contain
* alphanumeric characters or underscores only.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The effective state of enablement for the module at the given
* level of the hierarchy.
*
* Accepted values: ENABLEMENT_STATE_UNSPECIFIED, ENABLED, DISABLED
*
* @param self::ENABLEMENT_STATE_* $enablementState
*/
public function setEnablementState($enablementState)
{
$this->enablementState = $enablementState;
}
/**
* @return self::ENABLEMENT_STATE_*
*/
public function getEnablementState()
{
return $this->enablementState;
}
/**
* Output only. The resource name of the custom module. Its format is "organiz
* ations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModule
* s/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/eff
* ectiveCustomModules/{customModule}", or "projects/{project}/securityHealthA
* nalyticsSettings/effectiveCustomModules/{customModule}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule');
@@ -0,0 +1,135 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1ExposedResource extends \Google\Collection
{
protected $collection_key = 'methods';
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $methods;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $resource;
/**
* @var string
*/
public $resourceType;
/**
* @var string
*/
public $resourceValue;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setMethods($methods)
{
$this->methods = $methods;
}
/**
* @return string[]
*/
public function getMethods()
{
return $this->methods;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* @param string
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* @param string
*/
public function setResourceValue($resourceValue)
{
$this->resourceValue = $resourceValue;
}
/**
* @return string
*/
public function getResourceValue()
{
return $this->resourceValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1ExposedResource::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1ExposedResource');
@@ -0,0 +1,93 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1ExposurePath extends \Google\Collection
{
protected $collection_key = 'pathNodes';
protected $edgesType = Edge::class;
protected $edgesDataType = 'array';
protected $exposedResourceType = GoogleCloudSecuritycenterV1ExposedResource::class;
protected $exposedResourceDataType = '';
/**
* @var string
*/
public $name;
protected $pathNodesType = PathNode::class;
protected $pathNodesDataType = 'array';
/**
* @param Edge[]
*/
public function setEdges($edges)
{
$this->edges = $edges;
}
/**
* @return Edge[]
*/
public function getEdges()
{
return $this->edges;
}
/**
* @param GoogleCloudSecuritycenterV1ExposedResource
*/
public function setExposedResource(GoogleCloudSecuritycenterV1ExposedResource $exposedResource)
{
$this->exposedResource = $exposedResource;
}
/**
* @return GoogleCloudSecuritycenterV1ExposedResource
*/
public function getExposedResource()
{
return $this->exposedResource;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PathNode[]
*/
public function setPathNodes($pathNodes)
{
$this->pathNodes = $pathNodes;
}
/**
* @return PathNode[]
*/
public function getPathNodes()
{
return $this->pathNodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1ExposurePath::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1ExposurePath');
@@ -0,0 +1,278 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1ExternalSystem extends \Google\Collection
{
protected $collection_key = 'assignees';
/**
* References primary/secondary etc assignees in the external system.
*
* @var string[]
*/
public $assignees;
/**
* The time when the case was closed, as reported by the external system.
*
* @var string
*/
public $caseCloseTime;
/**
* The time when the case was created, as reported by the external system.
*
* @var string
*/
public $caseCreateTime;
/**
* The priority of the finding's corresponding case in the external system.
*
* @var string
*/
public $casePriority;
/**
* The SLA of the finding's corresponding case in the external system.
*
* @var string
*/
public $caseSla;
/**
* The link to the finding's corresponding case in the external system.
*
* @var string
*/
public $caseUri;
/**
* The time when the case was last updated, as reported by the external
* system.
*
* @var string
*/
public $externalSystemUpdateTime;
/**
* The identifier that's used to track the finding's corresponding case in the
* external system.
*
* @var string
*/
public $externalUid;
/**
* Full resource name of the external system, for example:
* "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
* "folders/1234/sources/5678/findings/123456/externalSystems/jira",
* "projects/1234/sources/5678/findings/123456/externalSystems/jira"
*
* @var string
*/
public $name;
/**
* The most recent status of the finding's corresponding case, as reported by
* the external system.
*
* @var string
*/
public $status;
protected $ticketInfoType = TicketInfo::class;
protected $ticketInfoDataType = '';
/**
* References primary/secondary etc assignees in the external system.
*
* @param string[] $assignees
*/
public function setAssignees($assignees)
{
$this->assignees = $assignees;
}
/**
* @return string[]
*/
public function getAssignees()
{
return $this->assignees;
}
/**
* The time when the case was closed, as reported by the external system.
*
* @param string $caseCloseTime
*/
public function setCaseCloseTime($caseCloseTime)
{
$this->caseCloseTime = $caseCloseTime;
}
/**
* @return string
*/
public function getCaseCloseTime()
{
return $this->caseCloseTime;
}
/**
* The time when the case was created, as reported by the external system.
*
* @param string $caseCreateTime
*/
public function setCaseCreateTime($caseCreateTime)
{
$this->caseCreateTime = $caseCreateTime;
}
/**
* @return string
*/
public function getCaseCreateTime()
{
return $this->caseCreateTime;
}
/**
* The priority of the finding's corresponding case in the external system.
*
* @param string $casePriority
*/
public function setCasePriority($casePriority)
{
$this->casePriority = $casePriority;
}
/**
* @return string
*/
public function getCasePriority()
{
return $this->casePriority;
}
/**
* The SLA of the finding's corresponding case in the external system.
*
* @param string $caseSla
*/
public function setCaseSla($caseSla)
{
$this->caseSla = $caseSla;
}
/**
* @return string
*/
public function getCaseSla()
{
return $this->caseSla;
}
/**
* The link to the finding's corresponding case in the external system.
*
* @param string $caseUri
*/
public function setCaseUri($caseUri)
{
$this->caseUri = $caseUri;
}
/**
* @return string
*/
public function getCaseUri()
{
return $this->caseUri;
}
/**
* The time when the case was last updated, as reported by the external
* system.
*
* @param string $externalSystemUpdateTime
*/
public function setExternalSystemUpdateTime($externalSystemUpdateTime)
{
$this->externalSystemUpdateTime = $externalSystemUpdateTime;
}
/**
* @return string
*/
public function getExternalSystemUpdateTime()
{
return $this->externalSystemUpdateTime;
}
/**
* The identifier that's used to track the finding's corresponding case in the
* external system.
*
* @param string $externalUid
*/
public function setExternalUid($externalUid)
{
$this->externalUid = $externalUid;
}
/**
* @return string
*/
public function getExternalUid()
{
return $this->externalUid;
}
/**
* Full resource name of the external system, for example:
* "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
* "folders/1234/sources/5678/findings/123456/externalSystems/jira",
* "projects/1234/sources/5678/findings/123456/externalSystems/jira"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The most recent status of the finding's corresponding case, as reported by
* the external system.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Information about the ticket, if any, that is being used to track the
* resolution of the issue that is identified by this finding.
*
* @param TicketInfo $ticketInfo
*/
public function setTicketInfo(TicketInfo $ticketInfo)
{
$this->ticketInfo = $ticketInfo;
}
/**
* @return TicketInfo
*/
public function getTicketInfo()
{
return $this->ticketInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1ExternalSystem::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1ExternalSystem');
@@ -0,0 +1,300 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1MuteConfig extends \Google\Model
{
/**
* Unused.
*/
public const TYPE_MUTE_CONFIG_TYPE_UNSPECIFIED = 'MUTE_CONFIG_TYPE_UNSPECIFIED';
/**
* A static mute config, which sets the static mute state of future matching
* findings to muted. Once the static mute state has been set, finding or
* config modifications will not affect the state.
*/
public const TYPE_STATIC = 'STATIC';
/**
* A dynamic mute config, which is applied to existing and future matching
* findings, setting their dynamic mute state to "muted". If the config is
* updated or deleted, or a matching finding is updated, such that the finding
* doesn't match the config, the config will be removed from the finding, and
* the finding's dynamic mute state may become "unmuted" (unless other configs
* still match).
*/
public const TYPE_DYNAMIC = 'DYNAMIC';
/**
* Output only. The time at which the mute config was created. This field is
* set by the server and will be ignored if provided on config creation.
*
* @var string
*/
public $createTime;
/**
* A description of the mute config.
*
* @var string
*/
public $description;
/**
* The human readable name to be displayed for the mute config.
*
* @deprecated
* @var string
*/
public $displayName;
/**
* Optional. The expiry of the mute config. Only applicable for dynamic
* configs. If the expiry is set, when the config expires, it is removed from
* all findings.
*
* @var string
*/
public $expiryTime;
/**
* Required. An expression that defines the filter to apply across
* create/update events of findings. While creating a filter string, be
* mindful of the scope in which the mute configuration is being created.
* E.g., If a filter contains project = X but is created under the project = Y
* scope, it might not match any findings. The following field and operator
* combinations are supported: * severity: `=`, `:` * category: `=`, `:` *
* resource.name: `=`, `:` * resource.project_name: `=`, `:` *
* resource.project_display_name: `=`, `:` * resource.folders.resource_folder:
* `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name:
* `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` *
* indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*
* @var string
*/
public $filter;
/**
* Output only. Email address of the user who last edited the mute config.
* This field is set by the server and will be ignored if provided on config
* creation or update.
*
* @var string
*/
public $mostRecentEditor;
/**
* This field will be ignored if provided on config creation. Format
* `organizations/{organization}/muteConfigs/{mute_config}`
* `folders/{folder}/muteConfigs/{mute_config}`
* `projects/{project}/muteConfigs/{mute_config}`
* `organizations/{organization}/locations/global/muteConfigs/{mute_config}`
* `folders/{folder}/locations/global/muteConfigs/{mute_config}`
* `projects/{project}/locations/global/muteConfigs/{mute_config}`
*
* @var string
*/
public $name;
/**
* Optional. The type of the mute config, which determines what type of mute
* state the config affects. The static mute state takes precedence over the
* dynamic mute state. Immutable after creation. STATIC by default if not set
* during creation.
*
* @var string
*/
public $type;
/**
* Output only. The most recent time at which the mute config was updated.
* This field is set by the server and will be ignored if provided on config
* creation or update.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time at which the mute config was created. This field is
* set by the server and will be ignored if provided on config creation.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* A description of the mute config.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The human readable name to be displayed for the mute config.
*
* @deprecated
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @deprecated
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. The expiry of the mute config. Only applicable for dynamic
* configs. If the expiry is set, when the config expires, it is removed from
* all findings.
*
* @param string $expiryTime
*/
public function setExpiryTime($expiryTime)
{
$this->expiryTime = $expiryTime;
}
/**
* @return string
*/
public function getExpiryTime()
{
return $this->expiryTime;
}
/**
* Required. An expression that defines the filter to apply across
* create/update events of findings. While creating a filter string, be
* mindful of the scope in which the mute configuration is being created.
* E.g., If a filter contains project = X but is created under the project = Y
* scope, it might not match any findings. The following field and operator
* combinations are supported: * severity: `=`, `:` * category: `=`, `:` *
* resource.name: `=`, `:` * resource.project_name: `=`, `:` *
* resource.project_display_name: `=`, `:` * resource.folders.resource_folder:
* `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name:
* `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` *
* indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* Output only. Email address of the user who last edited the mute config.
* This field is set by the server and will be ignored if provided on config
* creation or update.
*
* @param string $mostRecentEditor
*/
public function setMostRecentEditor($mostRecentEditor)
{
$this->mostRecentEditor = $mostRecentEditor;
}
/**
* @return string
*/
public function getMostRecentEditor()
{
return $this->mostRecentEditor;
}
/**
* This field will be ignored if provided on config creation. Format
* `organizations/{organization}/muteConfigs/{mute_config}`
* `folders/{folder}/muteConfigs/{mute_config}`
* `projects/{project}/muteConfigs/{mute_config}`
* `organizations/{organization}/locations/global/muteConfigs/{mute_config}`
* `folders/{folder}/locations/global/muteConfigs/{mute_config}`
* `projects/{project}/locations/global/muteConfigs/{mute_config}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The type of the mute config, which determines what type of mute
* state the config affects. The static mute state takes precedence over the
* dynamic mute state. Immutable after creation. STATIC by default if not set
* during creation.
*
* Accepted values: MUTE_CONFIG_TYPE_UNSPECIFIED, STATIC, DYNAMIC
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The most recent time at which the mute config was updated.
* This field is set by the server and will be ignored if provided on config
* creation or update.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1MuteConfig::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1MuteConfig');
@@ -0,0 +1,84 @@
<?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\SecurityCommandCenter;
class GoogleCloudSecuritycenterV1NotificationMessage extends \Google\Model
{
protected $findingType = Finding::class;
protected $findingDataType = '';
/**
* Name of the notification config that generated current notification.
*
* @var string
*/
public $notificationConfigName;
protected $resourceType = GoogleCloudSecuritycenterV1Resource::class;
protected $resourceDataType = '';
/**
* If it's a Finding based notification config, this field will be populated.
*
* @param Finding $finding
*/
public function setFinding(Finding $finding)
{
$this->finding = $finding;
}
/**
* @return Finding
*/
public function getFinding()
{
return $this->finding;
}
/**
* Name of the notification config that generated current notification.
*
* @param string $notificationConfigName
*/
public function setNotificationConfigName($notificationConfigName)
{
$this->notificationConfigName = $notificationConfigName;
}
/**
* @return string
*/
public function getNotificationConfigName()
{
return $this->notificationConfigName;
}
/**
* The Cloud resource tied to this notification's Finding.
*
* @param GoogleCloudSecuritycenterV1Resource $resource
*/
public function setResource(GoogleCloudSecuritycenterV1Resource $resource)
{
$this->resource = $resource;
}
/**
* @return GoogleCloudSecuritycenterV1Resource
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritycenterV1NotificationMessage::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV1NotificationMessage');

Some files were not shown because too many files have changed in this diff Show More