Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -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\SecurityPosture;
class AssetDetails extends \Google\Model
{
/**
* @var string
*/
public $asset;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAsset($asset)
{
$this->asset = $asset;
}
/**
* @return string
*/
public function getAsset()
{
return $this->asset;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetDetails::class, 'Google_Service_SecurityPosture_AssetDetails');

View File

@@ -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\SecurityPosture;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_SecurityPosture_CancelOperationRequest');

View File

@@ -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\SecurityPosture;
class ComplianceStandard extends \Google\Model
{
/**
* @var string
*/
public $control;
/**
* @var string
*/
public $standard;
/**
* @param string
*/
public function setControl($control)
{
$this->control = $control;
}
/**
* @return string
*/
public function getControl()
{
return $this->control;
}
/**
* @param string
*/
public function setStandard($standard)
{
$this->standard = $standard;
}
/**
* @return string
*/
public function getStandard()
{
return $this->standard;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceStandard::class, 'Google_Service_SecurityPosture_ComplianceStandard');

View File

@@ -0,0 +1,90 @@
<?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\SecurityPosture;
class Constraint extends \Google\Model
{
protected $orgPolicyConstraintType = OrgPolicyConstraint::class;
protected $orgPolicyConstraintDataType = '';
protected $orgPolicyConstraintCustomType = OrgPolicyConstraintCustom::class;
protected $orgPolicyConstraintCustomDataType = '';
protected $securityHealthAnalyticsCustomModuleType = SecurityHealthAnalyticsCustomModule::class;
protected $securityHealthAnalyticsCustomModuleDataType = '';
protected $securityHealthAnalyticsModuleType = SecurityHealthAnalyticsModule::class;
protected $securityHealthAnalyticsModuleDataType = '';
/**
* @param OrgPolicyConstraint
*/
public function setOrgPolicyConstraint(OrgPolicyConstraint $orgPolicyConstraint)
{
$this->orgPolicyConstraint = $orgPolicyConstraint;
}
/**
* @return OrgPolicyConstraint
*/
public function getOrgPolicyConstraint()
{
return $this->orgPolicyConstraint;
}
/**
* @param OrgPolicyConstraintCustom
*/
public function setOrgPolicyConstraintCustom(OrgPolicyConstraintCustom $orgPolicyConstraintCustom)
{
$this->orgPolicyConstraintCustom = $orgPolicyConstraintCustom;
}
/**
* @return OrgPolicyConstraintCustom
*/
public function getOrgPolicyConstraintCustom()
{
return $this->orgPolicyConstraintCustom;
}
/**
* @param SecurityHealthAnalyticsCustomModule
*/
public function setSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule $securityHealthAnalyticsCustomModule)
{
$this->securityHealthAnalyticsCustomModule = $securityHealthAnalyticsCustomModule;
}
/**
* @return SecurityHealthAnalyticsCustomModule
*/
public function getSecurityHealthAnalyticsCustomModule()
{
return $this->securityHealthAnalyticsCustomModule;
}
/**
* @param SecurityHealthAnalyticsModule
*/
public function setSecurityHealthAnalyticsModule(SecurityHealthAnalyticsModule $securityHealthAnalyticsModule)
{
$this->securityHealthAnalyticsModule = $securityHealthAnalyticsModule;
}
/**
* @return SecurityHealthAnalyticsModule
*/
public function getSecurityHealthAnalyticsModule()
{
return $this->securityHealthAnalyticsModule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Constraint::class, 'Google_Service_SecurityPosture_Constraint');

View File

@@ -0,0 +1,42 @@
<?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\SecurityPosture;
class CreateIaCValidationReportRequest extends \Google\Model
{
protected $iacType = IaC::class;
protected $iacDataType = '';
/**
* @param IaC
*/
public function setIac(IaC $iac)
{
$this->iac = $iac;
}
/**
* @return IaC
*/
public function getIac()
{
return $this->iac;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateIaCValidationReportRequest::class, 'Google_Service_SecurityPosture_CreateIaCValidationReportRequest');

View File

@@ -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\SecurityPosture;
class CustomConfig extends \Google\Model
{
protected $customOutputType = CustomOutputSpec::class;
protected $customOutputDataType = '';
/**
* @var string
*/
public $description;
protected $predicateType = Expr::class;
protected $predicateDataType = '';
/**
* @var string
*/
public $recommendation;
protected $resourceSelectorType = ResourceSelector::class;
protected $resourceSelectorDataType = '';
/**
* @var string
*/
public $severity;
/**
* @param CustomOutputSpec
*/
public function setCustomOutput(CustomOutputSpec $customOutput)
{
$this->customOutput = $customOutput;
}
/**
* @return CustomOutputSpec
*/
public function getCustomOutput()
{
return $this->customOutput;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param Expr
*/
public function setPredicate(Expr $predicate)
{
$this->predicate = $predicate;
}
/**
* @return Expr
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* @param string
*/
public function setRecommendation($recommendation)
{
$this->recommendation = $recommendation;
}
/**
* @return string
*/
public function getRecommendation()
{
return $this->recommendation;
}
/**
* @param ResourceSelector
*/
public function setResourceSelector(ResourceSelector $resourceSelector)
{
$this->resourceSelector = $resourceSelector;
}
/**
* @return ResourceSelector
*/
public function getResourceSelector()
{
return $this->resourceSelector;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomConfig::class, 'Google_Service_SecurityPosture_CustomConfig');

View File

@@ -0,0 +1,43 @@
<?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\SecurityPosture;
class CustomOutputSpec extends \Google\Collection
{
protected $collection_key = 'properties';
protected $propertiesType = Property::class;
protected $propertiesDataType = 'array';
/**
* @param Property[]
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return Property[]
*/
public function getProperties()
{
return $this->properties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomOutputSpec::class, 'Google_Service_SecurityPosture_CustomOutputSpec');

View File

@@ -0,0 +1,98 @@
<?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\SecurityPosture;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
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_SecurityPosture_Expr');

View File

@@ -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\SecurityPosture;
class ExtractPostureRequest extends \Google\Model
{
/**
* @var string
*/
public $postureId;
/**
* @var string
*/
public $workload;
/**
* @param string
*/
public function setPostureId($postureId)
{
$this->postureId = $postureId;
}
/**
* @return string
*/
public function getPostureId()
{
return $this->postureId;
}
/**
* @param string
*/
public function setWorkload($workload)
{
$this->workload = $workload;
}
/**
* @return string
*/
public function getWorkload()
{
return $this->workload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtractPostureRequest::class, 'Google_Service_SecurityPosture_ExtractPostureRequest');

View File

@@ -0,0 +1,171 @@
<?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\SecurityPosture;
class GoogleCloudSecuritypostureV1CustomConstraint extends \Google\Collection
{
protected $collection_key = 'resourceTypes';
/**
* @var string
*/
public $actionType;
/**
* @var string
*/
public $condition;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $methodTypes;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $resourceTypes;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setActionType($actionType)
{
$this->actionType = $actionType;
}
/**
* @return string
*/
public function getActionType()
{
return $this->actionType;
}
/**
* @param string
*/
public function setCondition($condition)
{
$this->condition = $condition;
}
/**
* @return string
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setMethodTypes($methodTypes)
{
$this->methodTypes = $methodTypes;
}
/**
* @return string[]
*/
public function getMethodTypes()
{
return $this->methodTypes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setResourceTypes($resourceTypes)
{
$this->resourceTypes = $resourceTypes;
}
/**
* @return string[]
*/
public function getResourceTypes()
{
return $this->resourceTypes;
}
/**
* @param string
*/
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(GoogleCloudSecuritypostureV1CustomConstraint::class, 'Google_Service_SecurityPosture_GoogleCloudSecuritypostureV1CustomConstraint');

View File

@@ -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\SecurityPosture;
class GoogleCloudSecuritypostureV1PolicyRule extends \Google\Model
{
/**
* @var bool
*/
public $allowAll;
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var bool
*/
public $denyAll;
/**
* @var bool
*/
public $enforce;
/**
* @var array[]
*/
public $parameters;
protected $resourceTypesType = ResourceTypes::class;
protected $resourceTypesDataType = '';
protected $valuesType = GoogleCloudSecuritypostureV1PolicyRuleStringValues::class;
protected $valuesDataType = '';
/**
* @param bool
*/
public function setAllowAll($allowAll)
{
$this->allowAll = $allowAll;
}
/**
* @return bool
*/
public function getAllowAll()
{
return $this->allowAll;
}
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param bool
*/
public function setDenyAll($denyAll)
{
$this->denyAll = $denyAll;
}
/**
* @return bool
*/
public function getDenyAll()
{
return $this->denyAll;
}
/**
* @param bool
*/
public function setEnforce($enforce)
{
$this->enforce = $enforce;
}
/**
* @return bool
*/
public function getEnforce()
{
return $this->enforce;
}
/**
* @param array[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return array[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param ResourceTypes
*/
public function setResourceTypes(ResourceTypes $resourceTypes)
{
$this->resourceTypes = $resourceTypes;
}
/**
* @return ResourceTypes
*/
public function getResourceTypes()
{
return $this->resourceTypes;
}
/**
* @param GoogleCloudSecuritypostureV1PolicyRuleStringValues
*/
public function setValues(GoogleCloudSecuritypostureV1PolicyRuleStringValues $values)
{
$this->values = $values;
}
/**
* @return GoogleCloudSecuritypostureV1PolicyRuleStringValues
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritypostureV1PolicyRule::class, 'Google_Service_SecurityPosture_GoogleCloudSecuritypostureV1PolicyRule');

View File

@@ -0,0 +1,63 @@
<?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\SecurityPosture;
class GoogleCloudSecuritypostureV1PolicyRuleStringValues extends \Google\Collection
{
protected $collection_key = 'deniedValues';
/**
* @var string[]
*/
public $allowedValues;
/**
* @var string[]
*/
public $deniedValues;
/**
* @param string[]
*/
public function setAllowedValues($allowedValues)
{
$this->allowedValues = $allowedValues;
}
/**
* @return string[]
*/
public function getAllowedValues()
{
return $this->allowedValues;
}
/**
* @param string[]
*/
public function setDeniedValues($deniedValues)
{
$this->deniedValues = $deniedValues;
}
/**
* @return string[]
*/
public function getDeniedValues()
{
return $this->deniedValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudSecuritypostureV1PolicyRuleStringValues::class, 'Google_Service_SecurityPosture_GoogleCloudSecuritypostureV1PolicyRuleStringValues');

View File

@@ -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\SecurityPosture;
class IaC extends \Google\Model
{
/**
* @var string
*/
public $tfPlan;
/**
* @param string
*/
public function setTfPlan($tfPlan)
{
$this->tfPlan = $tfPlan;
}
/**
* @return string
*/
public function getTfPlan()
{
return $this->tfPlan;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IaC::class, 'Google_Service_SecurityPosture_IaC');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class IaCValidationReport extends \Google\Collection
{
protected $collection_key = 'violations';
/**
* @var string
*/
public $note;
protected $violationsType = Violation::class;
protected $violationsDataType = 'array';
/**
* @param string
*/
public function setNote($note)
{
$this->note = $note;
}
/**
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* @param Violation[]
*/
public function setViolations($violations)
{
$this->violations = $violations;
}
/**
* @return Violation[]
*/
public function getViolations()
{
return $this->violations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IaCValidationReport::class, 'Google_Service_SecurityPosture_IaCValidationReport');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_SecurityPosture_ListLocationsResponse');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_SecurityPosture_ListOperationsResponse');

View File

@@ -0,0 +1,79 @@
<?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\SecurityPosture;
class ListPostureDeploymentsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $postureDeploymentsType = PostureDeployment::class;
protected $postureDeploymentsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PostureDeployment[]
*/
public function setPostureDeployments($postureDeployments)
{
$this->postureDeployments = $postureDeployments;
}
/**
* @return PostureDeployment[]
*/
public function getPostureDeployments()
{
return $this->postureDeployments;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPostureDeploymentsResponse::class, 'Google_Service_SecurityPosture_ListPostureDeploymentsResponse');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class ListPostureRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'revisions';
/**
* @var string
*/
public $nextPageToken;
protected $revisionsType = Posture::class;
protected $revisionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Posture[]
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return Posture[]
*/
public function getRevisions()
{
return $this->revisions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPostureRevisionsResponse::class, 'Google_Service_SecurityPosture_ListPostureRevisionsResponse');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class ListPostureTemplatesResponse extends \Google\Collection
{
protected $collection_key = 'postureTemplates';
/**
* @var string
*/
public $nextPageToken;
protected $postureTemplatesType = PostureTemplate::class;
protected $postureTemplatesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PostureTemplate[]
*/
public function setPostureTemplates($postureTemplates)
{
$this->postureTemplates = $postureTemplates;
}
/**
* @return PostureTemplate[]
*/
public function getPostureTemplates()
{
return $this->postureTemplates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPostureTemplatesResponse::class, 'Google_Service_SecurityPosture_ListPostureTemplatesResponse');

View File

@@ -0,0 +1,79 @@
<?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\SecurityPosture;
class ListPosturesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $posturesType = Posture::class;
protected $posturesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Posture[]
*/
public function setPostures($postures)
{
$this->postures = $postures;
}
/**
* @return Posture[]
*/
public function getPostures()
{
return $this->postures;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPosturesResponse::class, 'Google_Service_SecurityPosture_ListPosturesResponse');

View File

@@ -0,0 +1,79 @@
<?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\SecurityPosture;
class ListReportsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $reportsType = Report::class;
protected $reportsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Report[]
*/
public function setReports($reports)
{
$this->reports = $reports;
}
/**
* @return Report[]
*/
public function getReports()
{
return $this->reports;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReportsResponse::class, 'Google_Service_SecurityPosture_ListReportsResponse');

View File

@@ -0,0 +1,116 @@
<?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\SecurityPosture;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @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(Location::class, 'Google_Service_SecurityPosture_Location');

View File

@@ -0,0 +1,114 @@
<?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\SecurityPosture;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_SecurityPosture_Operation');

View File

@@ -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\SecurityPosture;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $errorMessage;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_SecurityPosture_OperationMetadata');

View File

@@ -0,0 +1,61 @@
<?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\SecurityPosture;
class OrgPolicyConstraint extends \Google\Collection
{
protected $collection_key = 'policyRules';
/**
* @var string
*/
public $cannedConstraintId;
protected $policyRulesType = GoogleCloudSecuritypostureV1PolicyRule::class;
protected $policyRulesDataType = 'array';
/**
* @param string
*/
public function setCannedConstraintId($cannedConstraintId)
{
$this->cannedConstraintId = $cannedConstraintId;
}
/**
* @return string
*/
public function getCannedConstraintId()
{
return $this->cannedConstraintId;
}
/**
* @param GoogleCloudSecuritypostureV1PolicyRule[]
*/
public function setPolicyRules($policyRules)
{
$this->policyRules = $policyRules;
}
/**
* @return GoogleCloudSecuritypostureV1PolicyRule[]
*/
public function getPolicyRules()
{
return $this->policyRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrgPolicyConstraint::class, 'Google_Service_SecurityPosture_OrgPolicyConstraint');

View File

@@ -0,0 +1,59 @@
<?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\SecurityPosture;
class OrgPolicyConstraintCustom extends \Google\Collection
{
protected $collection_key = 'policyRules';
protected $customConstraintType = GoogleCloudSecuritypostureV1CustomConstraint::class;
protected $customConstraintDataType = '';
protected $policyRulesType = GoogleCloudSecuritypostureV1PolicyRule::class;
protected $policyRulesDataType = 'array';
/**
* @param GoogleCloudSecuritypostureV1CustomConstraint
*/
public function setCustomConstraint(GoogleCloudSecuritypostureV1CustomConstraint $customConstraint)
{
$this->customConstraint = $customConstraint;
}
/**
* @return GoogleCloudSecuritypostureV1CustomConstraint
*/
public function getCustomConstraint()
{
return $this->customConstraint;
}
/**
* @param GoogleCloudSecuritypostureV1PolicyRule[]
*/
public function setPolicyRules($policyRules)
{
$this->policyRules = $policyRules;
}
/**
* @return GoogleCloudSecuritypostureV1PolicyRule[]
*/
public function getPolicyRules()
{
return $this->policyRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrgPolicyConstraintCustom::class, 'Google_Service_SecurityPosture_OrgPolicyConstraintCustom');

View File

@@ -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\SecurityPosture;
class Policy extends \Google\Collection
{
protected $collection_key = 'complianceStandards';
protected $complianceStandardsType = ComplianceStandard::class;
protected $complianceStandardsDataType = 'array';
protected $constraintType = Constraint::class;
protected $constraintDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $policyId;
/**
* @param ComplianceStandard[]
*/
public function setComplianceStandards($complianceStandards)
{
$this->complianceStandards = $complianceStandards;
}
/**
* @return ComplianceStandard[]
*/
public function getComplianceStandards()
{
return $this->complianceStandards;
}
/**
* @param Constraint
*/
public function setConstraint(Constraint $constraint)
{
$this->constraint = $constraint;
}
/**
* @return Constraint
*/
public function getConstraint()
{
return $this->constraint;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_SecurityPosture_Policy');

View File

@@ -0,0 +1,99 @@
<?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\SecurityPosture;
class PolicyDetails extends \Google\Collection
{
protected $collection_key = 'complianceStandards';
/**
* @var string[]
*/
public $complianceStandards;
/**
* @var string
*/
public $constraint;
/**
* @var string
*/
public $constraintType;
/**
* @var string
*/
public $description;
/**
* @param string[]
*/
public function setComplianceStandards($complianceStandards)
{
$this->complianceStandards = $complianceStandards;
}
/**
* @return string[]
*/
public function getComplianceStandards()
{
return $this->complianceStandards;
}
/**
* @param string
*/
public function setConstraint($constraint)
{
$this->constraint = $constraint;
}
/**
* @return string
*/
public function getConstraint()
{
return $this->constraint;
}
/**
* @param string
*/
public function setConstraintType($constraintType)
{
$this->constraintType = $constraintType;
}
/**
* @return string
*/
public function getConstraintType()
{
return $this->constraintType;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyDetails::class, 'Google_Service_SecurityPosture_PolicyDetails');

View File

@@ -0,0 +1,79 @@
<?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\SecurityPosture;
class PolicySet extends \Google\Collection
{
protected $collection_key = 'policies';
/**
* @var string
*/
public $description;
protected $policiesType = Policy::class;
protected $policiesDataType = 'array';
/**
* @var string
*/
public $policySetId;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param Policy[]
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return Policy[]
*/
public function getPolicies()
{
return $this->policies;
}
/**
* @param string
*/
public function setPolicySetId($policySetId)
{
$this->policySetId = $policySetId;
}
/**
* @return string
*/
public function getPolicySetId()
{
return $this->policySetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicySet::class, 'Google_Service_SecurityPosture_PolicySet');

View File

@@ -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\SecurityPosture;
class Posture extends \Google\Collection
{
protected $collection_key = 'policySets';
/**
* @var string[]
*/
public $annotations;
/**
* @var string[]
*/
public $categories;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
protected $policySetsType = PolicySet::class;
protected $policySetsDataType = 'array';
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $revisionId;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return string[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PolicySet[]
*/
public function setPolicySets($policySets)
{
$this->policySets = $policySets;
}
/**
* @return PolicySet[]
*/
public function getPolicySets()
{
return $this->policySets;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
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(Posture::class, 'Google_Service_SecurityPosture_Posture');

View File

@@ -0,0 +1,297 @@
<?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\SecurityPosture;
class PostureDeployment extends \Google\Collection
{
protected $collection_key = 'categories';
/**
* @var string[]
*/
public $annotations;
/**
* @var string[]
*/
public $categories;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $desiredPostureId;
/**
* @var string
*/
public $desiredPostureRevisionId;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $failureMessage;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $postureId;
/**
* @var string
*/
public $postureRevisionId;
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $targetResource;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return string[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDesiredPostureId($desiredPostureId)
{
$this->desiredPostureId = $desiredPostureId;
}
/**
* @return string
*/
public function getDesiredPostureId()
{
return $this->desiredPostureId;
}
/**
* @param string
*/
public function setDesiredPostureRevisionId($desiredPostureRevisionId)
{
$this->desiredPostureRevisionId = $desiredPostureRevisionId;
}
/**
* @return string
*/
public function getDesiredPostureRevisionId()
{
return $this->desiredPostureRevisionId;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setFailureMessage($failureMessage)
{
$this->failureMessage = $failureMessage;
}
/**
* @return string
*/
public function getFailureMessage()
{
return $this->failureMessage;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPostureId($postureId)
{
$this->postureId = $postureId;
}
/**
* @return string
*/
public function getPostureId()
{
return $this->postureId;
}
/**
* @param string
*/
public function setPostureRevisionId($postureRevisionId)
{
$this->postureRevisionId = $postureRevisionId;
}
/**
* @return string
*/
public function getPostureRevisionId()
{
return $this->postureRevisionId;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTargetResource($targetResource)
{
$this->targetResource = $targetResource;
}
/**
* @return string
*/
public function getTargetResource()
{
return $this->targetResource;
}
/**
* @param string
*/
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(PostureDeployment::class, 'Google_Service_SecurityPosture_PostureDeployment');

View File

@@ -0,0 +1,116 @@
<?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\SecurityPosture;
class PostureDetails extends \Google\Model
{
/**
* @var string
*/
public $policySet;
/**
* @var string
*/
public $posture;
/**
* @var string
*/
public $postureDeployment;
/**
* @var string
*/
public $postureDeploymentTargetResource;
/**
* @var string
*/
public $postureRevisionId;
/**
* @param string
*/
public function setPolicySet($policySet)
{
$this->policySet = $policySet;
}
/**
* @return string
*/
public function getPolicySet()
{
return $this->policySet;
}
/**
* @param string
*/
public function setPosture($posture)
{
$this->posture = $posture;
}
/**
* @return string
*/
public function getPosture()
{
return $this->posture;
}
/**
* @param string
*/
public function setPostureDeployment($postureDeployment)
{
$this->postureDeployment = $postureDeployment;
}
/**
* @return string
*/
public function getPostureDeployment()
{
return $this->postureDeployment;
}
/**
* @param string
*/
public function setPostureDeploymentTargetResource($postureDeploymentTargetResource)
{
$this->postureDeploymentTargetResource = $postureDeploymentTargetResource;
}
/**
* @return string
*/
public function getPostureDeploymentTargetResource()
{
return $this->postureDeploymentTargetResource;
}
/**
* @param string
*/
public function setPostureRevisionId($postureRevisionId)
{
$this->postureRevisionId = $postureRevisionId;
}
/**
* @return string
*/
public function getPostureRevisionId()
{
return $this->postureRevisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostureDetails::class, 'Google_Service_SecurityPosture_PostureDetails');

View File

@@ -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\SecurityPosture;
class PostureTemplate extends \Google\Collection
{
protected $collection_key = 'policySets';
/**
* @var string[]
*/
public $categories;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $name;
protected $policySetsType = PolicySet::class;
protected $policySetsDataType = 'array';
/**
* @var string
*/
public $revisionId;
/**
* @var string
*/
public $state;
/**
* @param string[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return string[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PolicySet[]
*/
public function setPolicySets($policySets)
{
$this->policySets = $policySets;
}
/**
* @return PolicySet[]
*/
public function getPolicySets()
{
return $this->policySets;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostureTemplate::class, 'Google_Service_SecurityPosture_PostureTemplate');

View File

@@ -0,0 +1,60 @@
<?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\SecurityPosture;
class Property extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $valueExpressionType = Expr::class;
protected $valueExpressionDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Expr
*/
public function setValueExpression(Expr $valueExpression)
{
$this->valueExpression = $valueExpression;
}
/**
* @return Expr
*/
public function getValueExpression()
{
return $this->valueExpression;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Property::class, 'Google_Service_SecurityPosture_Property');

View File

@@ -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\SecurityPosture;
class Report extends \Google\Model
{
/**
* @var string
*/
public $createTime;
protected $iacValidationReportType = IaCValidationReport::class;
protected $iacValidationReportDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param IaCValidationReport
*/
public function setIacValidationReport(IaCValidationReport $iacValidationReport)
{
$this->iacValidationReport = $iacValidationReport;
}
/**
* @return IaCValidationReport
*/
public function getIacValidationReport()
{
return $this->iacValidationReport;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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(Report::class, 'Google_Service_SecurityPosture_Report');

View File

@@ -0,0 +1,33 @@
<?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\SecurityPosture\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $organizations = $securitypostureService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_SecurityPosture_Resource_Organizations');

View File

@@ -0,0 +1,33 @@
<?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\SecurityPosture\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $locations = $securitypostureService->organizations_locations;
* </code>
*/
class OrganizationsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocations::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocations');

View File

@@ -0,0 +1,114 @@
<?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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\CancelOperationRequest;
use Google\Service\SecurityPosture\ListOperationsResponse;
use Google\Service\SecurityPosture\Operation;
use Google\Service\SecurityPosture\SecuritypostureEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $operations = $securitypostureService->organizations_locations_operations;
* </code>
*/
class OrganizationsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return SecuritypostureEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], SecuritypostureEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return SecuritypostureEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SecuritypostureEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOrganizationsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsOperations::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocationsOperations');

View File

@@ -0,0 +1,149 @@
<?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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\ListPostureDeploymentsResponse;
use Google\Service\SecurityPosture\Operation;
use Google\Service\SecurityPosture\PostureDeployment;
/**
* The "postureDeployments" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $postureDeployments = $securitypostureService->organizations_locations_postureDeployments;
* </code>
*/
class OrganizationsLocationsPostureDeployments extends \Google\Service\Resource
{
/**
* Creates a new PostureDeployment in a given project and location.
* (postureDeployments.create)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param PostureDeployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string postureDeploymentId Required. An identifier for the posture
* deployment.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, PostureDeployment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a PostureDeployment. (postureDeployments.delete)
*
* @param string $name Required. The name of the posture deployment, in the
* format `organizations/{organization}/locations/global/postureDeployments/{pos
* ture_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. An opaque identifier for the current version
* of the posture deployment. If you provide this value, then it must match the
* existing value. If the values don't match, then the request fails with an
* ABORTED error. If you omit this value, then the posture deployment is deleted
* regardless of its current `etag` value.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details for a PostureDeployment. (postureDeployments.get)
*
* @param string $name Required. The name of the PostureDeployment, in the
* format `organizations/{organization}/locations/global/postureDeployments/{pos
* ture_deployment_id}`.
* @param array $optParams Optional parameters.
* @return PostureDeployment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PostureDeployment::class);
}
/**
* Lists every PostureDeployment in a project and location.
* (postureDeployments.listOrganizationsLocationsPostureDeployments)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter to apply to the list of postures,
* in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
* @opt_param int pageSize Optional. The maximum number of posture deployments
* to return. The default value is `500`. If you exceed the maximum value of
* `1000`, then the service uses the maximum value.
* @opt_param string pageToken Optional. A pagination token returned from a
* previous request to list posture deployments. Provide this token to retrieve
* the next page of results.
* @return ListPostureDeploymentsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsPostureDeployments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPostureDeploymentsResponse::class);
}
/**
* Updates an existing PostureDeployment. To prevent concurrent updates from
* overwriting each other, always follow the read-modify-write pattern when you
* update a posture deployment: 1. Call GetPostureDeployment to get the current
* version of the deployment. 2. Update the fields in the deployment as needed.
* 3. Call UpdatePostureDeployment to update the deployment. Ensure that your
* request includes the `etag` value from the GetPostureDeployment response.
* **Important:** If you omit the `etag` when you call UpdatePostureDeployment,
* then the updated deployment unconditionally overwrites the existing
* deployment. (postureDeployments.patch)
*
* @param string $name Required. Identifier. The name of the posture deployment,
* in the format `organizations/{organization}/locations/global/postureDeploymen
* ts/{deployment_id}`.
* @param PostureDeployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The fields in the PostureDeployment to
* update. You can update only the following fields: *
* PostureDeployment.posture_id * PostureDeployment.posture_revision_id
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, PostureDeployment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsPostureDeployments::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocationsPostureDeployments');

View File

@@ -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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\ListPostureTemplatesResponse;
use Google\Service\SecurityPosture\PostureTemplate;
/**
* The "postureTemplates" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $postureTemplates = $securitypostureService->organizations_locations_postureTemplates;
* </code>
*/
class OrganizationsLocationsPostureTemplates extends \Google\Service\Resource
{
/**
* Gets a single revision of a PostureTemplate. (postureTemplates.get)
*
* @param string $name Required. The name of the PostureTemplate, in the format
* `organizations/{organization}/locations/global/postureTemplates/{posture_temp
* late}`.
* @param array $optParams Optional parameters.
*
* @opt_param string revisionId Optional. The posture template revision to
* retrieve. If not specified, the most recently updated revision is retrieved.
* @return PostureTemplate
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PostureTemplate::class);
}
/**
* Lists every PostureTemplate in a given organization and location.
* (postureTemplates.listOrganizationsLocationsPostureTemplates)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter to apply to the list of postures,
* in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
* @opt_param int pageSize Optional. The maximum number of posture templates to
* return. The default value is `500`. If you exceed the maximum value of
* `1000`, then the service uses the maximum value.
* @opt_param string pageToken Optional. A pagination token returned from a
* previous request to list posture templates. Provide this token to retrieve
* the next page of results.
* @return ListPostureTemplatesResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsPostureTemplates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPostureTemplatesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsPostureTemplates::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocationsPostureTemplates');

View File

@@ -0,0 +1,195 @@
<?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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\ExtractPostureRequest;
use Google\Service\SecurityPosture\ListPostureRevisionsResponse;
use Google\Service\SecurityPosture\ListPosturesResponse;
use Google\Service\SecurityPosture\Operation;
use Google\Service\SecurityPosture\Posture;
/**
* The "postures" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $postures = $securitypostureService->organizations_locations_postures;
* </code>
*/
class OrganizationsLocationsPostures extends \Google\Service\Resource
{
/**
* Creates a new Posture. (postures.create)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param Posture $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string postureId Required. An identifier for the posture.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Posture $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes all revisions of a Posture. You can only delete a posture if none of
* its revisions are deployed. (postures.delete)
*
* @param string $name Required. The name of the Posture, in the format
* `organizations/{organization}/locations/global/postures/{posture_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. An opaque identifier for the current version
* of the posture. If you provide this value, then it must match the existing
* value. If the values don't match, then the request fails with an ABORTED
* error. If you omit this value, then the posture is deleted regardless of its
* current `etag` value.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Extracts existing policies from an organization, folder, or project, and
* applies them to another organization, folder, or project as a Posture. If the
* other organization, folder, or project already has a posture, then the result
* of the long-running operation is an ALREADY_EXISTS error. (postures.extract)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param ExtractPostureRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function extract($parent, ExtractPostureRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('extract', [$params], Operation::class);
}
/**
* Gets a single revision of a Posture. (postures.get)
*
* @param string $name Required. The name of the Posture, in the format
* `organizations/{organization}/locations/global/postures/{posture_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string revisionId Optional. The posture revision to retrieve. If
* not specified, the most recently updated revision is retrieved.
* @return Posture
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Posture::class);
}
/**
* Lists the most recent revisions of all Posture resources in a specified
* organization and location. (postures.listOrganizationsLocationsPostures)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter to apply to the list of postures,
* in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of postures to return. The default
* value is `500`. If you exceed the maximum value of `1000`, then the service
* uses the maximum value.
* @opt_param string pageToken A pagination token returned from a previous
* request to list postures. Provide this token to retrieve the next page of
* results.
* @return ListPosturesResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsPostures($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPosturesResponse::class);
}
/**
* Lists all revisions of a single Posture. (postures.listRevisions)
*
* @param string $name Required. The name of the Posture, in the format
* `organizations/{organization}/locations/global/postures/{posture_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of posture revisions to
* return. The default value is `500`. If you exceed the maximum value of
* `1000`, then the service uses the maximum value.
* @opt_param string pageToken Optional. A pagination token from a previous
* request to list posture revisions. Provide this token to retrieve the next
* page of results.
* @return ListPostureRevisionsResponse
* @throws \Google\Service\Exception
*/
public function listRevisions($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('listRevisions', [$params], ListPostureRevisionsResponse::class);
}
/**
* Updates a revision of an existing Posture. If the posture revision that you
* update is currently deployed, then a new revision of the posture is created.
* To prevent concurrent updates from overwriting each other, always follow the
* read-modify-write pattern when you update a posture: 1. Call GetPosture to
* get the current version of the posture. 2. Update the fields in the posture
* as needed. 3. Call UpdatePosture to update the posture. Ensure that your
* request includes the `etag` value from the GetPosture response.
* **Important:** If you omit the `etag` when you call UpdatePosture, then the
* updated posture unconditionally overwrites the existing posture.
* (postures.patch)
*
* @param string $name Required. Identifier. The name of the posture, in the
* format `organizations/{organization}/locations/global/postures/{posture_id}`.
* @param Posture $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string revisionId Required. The revision ID of the posture to
* update. If the posture revision that you update is currently deployed, then a
* new revision of the posture is created.
* @opt_param string updateMask Required. The fields in the Posture to update.
* You can update only the following fields: * Posture.description *
* Posture.policy_sets * Posture.state
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Posture $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsPostures::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocationsPostures');

View File

@@ -0,0 +1,97 @@
<?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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\CreateIaCValidationReportRequest;
use Google\Service\SecurityPosture\ListReportsResponse;
use Google\Service\SecurityPosture\Operation;
use Google\Service\SecurityPosture\Report;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $reports = $securitypostureService->organizations_locations_reports;
* </code>
*/
class OrganizationsLocationsReports extends \Google\Service\Resource
{
/**
* Validates a specified infrastructure-as-code (IaC) configuration, and creates
* a Report with the validation results. Only Terraform configurations are
* supported. Only modified assets are validated.
* (reports.createIaCValidationReport)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param CreateIaCValidationReportRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createIaCValidationReport($parent, CreateIaCValidationReportRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createIaCValidationReport', [$params], Operation::class);
}
/**
* Gets details for a Report. (reports.get)
*
* @param string $name Required. The name of the report, in the format
* `organizations/{organization}/locations/global/reports/{report_id}`.
* @param array $optParams Optional parameters.
* @return Report
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Report::class);
}
/**
* Lists every Report in a given organization and location.
* (reports.listOrganizationsLocationsReports)
*
* @param string $parent Required. The parent resource name, in the format
* `organizations/{organization}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter to apply to the list of reports,
* in the format defined in [AIP-160: Filtering](https://google.aip.dev/160).
* @opt_param int pageSize Optional. The maximum number of reports to return.
* The default value is `500`. If you exceed the maximum value of `1000`, then
* the service uses the maximum value.
* @opt_param string pageToken Optional. A pagination token returned from a
* previous request to list reports. Provide this token to retrieve the next
* page of results.
* @return ListReportsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsReports($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReportsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsReports::class, 'Google_Service_SecurityPosture_Resource_OrganizationsLocationsReports');

View File

@@ -0,0 +1,33 @@
<?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\SecurityPosture\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $projects = $securitypostureService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_SecurityPosture_Resource_Projects');

View File

@@ -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\SecurityPosture\Resource;
use Google\Service\SecurityPosture\ListLocationsResponse;
use Google\Service\SecurityPosture\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $securitypostureService = new Google\Service\SecurityPosture(...);
* $locations = $securitypostureService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_SecurityPosture_Resource_ProjectsLocations');

View File

@@ -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\SecurityPosture;
class ResourceSelector extends \Google\Collection
{
protected $collection_key = 'resourceTypes';
/**
* @var string[]
*/
public $resourceTypes;
/**
* @param string[]
*/
public function setResourceTypes($resourceTypes)
{
$this->resourceTypes = $resourceTypes;
}
/**
* @return string[]
*/
public function getResourceTypes()
{
return $this->resourceTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceSelector::class, 'Google_Service_SecurityPosture_ResourceSelector');

View File

@@ -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\SecurityPosture;
class ResourceTypes extends \Google\Collection
{
protected $collection_key = 'included';
/**
* @var string[]
*/
public $included;
/**
* @param string[]
*/
public function setIncluded($included)
{
$this->included = $included;
}
/**
* @return string[]
*/
public function getIncluded()
{
return $this->included;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceTypes::class, 'Google_Service_SecurityPosture_ResourceTypes');

View File

@@ -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\SecurityPosture;
class SecurityHealthAnalyticsCustomModule extends \Google\Model
{
protected $configType = CustomConfig::class;
protected $configDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $moduleEnablementState;
/**
* @param CustomConfig
*/
public function setConfig(CustomConfig $config)
{
$this->config = $config;
}
/**
* @return CustomConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setModuleEnablementState($moduleEnablementState)
{
$this->moduleEnablementState = $moduleEnablementState;
}
/**
* @return string
*/
public function getModuleEnablementState()
{
return $this->moduleEnablementState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecurityHealthAnalyticsCustomModule::class, 'Google_Service_SecurityPosture_SecurityHealthAnalyticsCustomModule');

View File

@@ -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\SecurityPosture;
class SecurityHealthAnalyticsModule extends \Google\Model
{
/**
* @var string
*/
public $moduleEnablementState;
/**
* @var string
*/
public $moduleName;
/**
* @param string
*/
public function setModuleEnablementState($moduleEnablementState)
{
$this->moduleEnablementState = $moduleEnablementState;
}
/**
* @return string
*/
public function getModuleEnablementState()
{
return $this->moduleEnablementState;
}
/**
* @param string
*/
public function setModuleName($moduleName)
{
$this->moduleName = $moduleName;
}
/**
* @return string
*/
public function getModuleName()
{
return $this->moduleName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecurityHealthAnalyticsModule::class, 'Google_Service_SecurityPosture_SecurityHealthAnalyticsModule');

View File

@@ -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\SecurityPosture;
class SecuritypostureEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecuritypostureEmpty::class, 'Google_Service_SecurityPosture_SecuritypostureEmpty');

View File

@@ -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\SecurityPosture;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_SecurityPosture_Status');

View File

@@ -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\SecurityPosture;
class Violation extends \Google\Model
{
/**
* @var string
*/
public $assetId;
/**
* @var string
*/
public $nextSteps;
/**
* @var string
*/
public $policyId;
/**
* @var string
*/
public $severity;
protected $violatedAssetType = AssetDetails::class;
protected $violatedAssetDataType = '';
protected $violatedPolicyType = PolicyDetails::class;
protected $violatedPolicyDataType = '';
protected $violatedPostureType = PostureDetails::class;
protected $violatedPostureDataType = '';
/**
* @param string
*/
public function setAssetId($assetId)
{
$this->assetId = $assetId;
}
/**
* @return string
*/
public function getAssetId()
{
return $this->assetId;
}
/**
* @param string
*/
public function setNextSteps($nextSteps)
{
$this->nextSteps = $nextSteps;
}
/**
* @return string
*/
public function getNextSteps()
{
return $this->nextSteps;
}
/**
* @param string
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string
*/
public function getPolicyId()
{
return $this->policyId;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param AssetDetails
*/
public function setViolatedAsset(AssetDetails $violatedAsset)
{
$this->violatedAsset = $violatedAsset;
}
/**
* @return AssetDetails
*/
public function getViolatedAsset()
{
return $this->violatedAsset;
}
/**
* @param PolicyDetails
*/
public function setViolatedPolicy(PolicyDetails $violatedPolicy)
{
$this->violatedPolicy = $violatedPolicy;
}
/**
* @return PolicyDetails
*/
public function getViolatedPolicy()
{
return $this->violatedPolicy;
}
/**
* @param PostureDetails
*/
public function setViolatedPosture(PostureDetails $violatedPosture)
{
$this->violatedPosture = $violatedPosture;
}
/**
* @return PostureDetails
*/
public function getViolatedPosture()
{
return $this->violatedPosture;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Violation::class, 'Google_Service_SecurityPosture_Violation');