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,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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2AlternatePolicySpec extends \Google\Model
{
/**
* @var string
*/
public $launch;
protected $specType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $specDataType = '';
/**
* @param string
*/
public function setLaunch($launch)
{
$this->launch = $launch;
}
/**
* @return string
*/
public function getLaunch()
{
return $this->launch;
}
/**
* @param GoogleCloudOrgpolicyV2PolicySpec
*/
public function setSpec(GoogleCloudOrgpolicyV2PolicySpec $spec)
{
$this->spec = $spec;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpec
*/
public function getSpec()
{
return $this->spec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2AlternatePolicySpec::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2AlternatePolicySpec');

View File

@@ -0,0 +1,166 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2Constraint extends \Google\Model
{
protected $booleanConstraintType = GoogleCloudOrgpolicyV2ConstraintBooleanConstraint::class;
protected $booleanConstraintDataType = '';
/**
* @var string
*/
public $constraintDefault;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
protected $listConstraintType = GoogleCloudOrgpolicyV2ConstraintListConstraint::class;
protected $listConstraintDataType = '';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $supportsDryRun;
/**
* @var bool
*/
public $supportsSimulation;
/**
* @param GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
*/
public function setBooleanConstraint(GoogleCloudOrgpolicyV2ConstraintBooleanConstraint $booleanConstraint)
{
$this->booleanConstraint = $booleanConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
*/
public function getBooleanConstraint()
{
return $this->booleanConstraint;
}
/**
* @param string
*/
public function setConstraintDefault($constraintDefault)
{
$this->constraintDefault = $constraintDefault;
}
/**
* @return string
*/
public function getConstraintDefault()
{
return $this->constraintDefault;
}
/**
* @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 GoogleCloudOrgpolicyV2ConstraintListConstraint
*/
public function setListConstraint(GoogleCloudOrgpolicyV2ConstraintListConstraint $listConstraint)
{
$this->listConstraint = $listConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintListConstraint
*/
public function getListConstraint()
{
return $this->listConstraint;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setSupportsDryRun($supportsDryRun)
{
$this->supportsDryRun = $supportsDryRun;
}
/**
* @return bool
*/
public function getSupportsDryRun()
{
return $this->supportsDryRun;
}
/**
* @param bool
*/
public function setSupportsSimulation($supportsSimulation)
{
$this->supportsSimulation = $supportsSimulation;
}
/**
* @return bool
*/
public function getSupportsSimulation()
{
return $this->supportsSimulation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2Constraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2Constraint');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint extends \Google\Model
{
protected $customConstraintDefinitionType = GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition::class;
protected $customConstraintDefinitionDataType = '';
/**
* @param GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
*/
public function setCustomConstraintDefinition(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition $customConstraintDefinition)
{
$this->customConstraintDefinition = $customConstraintDefinition;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
*/
public function getCustomConstraintDefinition()
{
return $this->customConstraintDefinition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2ConstraintBooleanConstraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintBooleanConstraint');

View File

@@ -0,0 +1,115 @@
<?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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition extends \Google\Collection
{
protected $collection_key = 'resourceTypes';
/**
* @var string
*/
public $actionType;
/**
* @var string
*/
public $condition;
/**
* @var string[]
*/
public $methodTypes;
protected $parametersType = GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter::class;
protected $parametersDataType = 'map';
/**
* @var string[]
*/
public $resourceTypes;
/**
* @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 setMethodTypes($methodTypes)
{
$this->methodTypes = $methodTypes;
}
/**
* @return string[]
*/
public function getMethodTypes()
{
return $this->methodTypes;
}
/**
* @param GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @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(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter extends \Google\Model
{
/**
* @var array
*/
public $defaultValue;
/**
* @var string
*/
public $item;
protected $metadataType = GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $validValuesExpr;
/**
* @param array
*/
public function setDefaultValue($defaultValue)
{
$this->defaultValue = $defaultValue;
}
/**
* @return array
*/
public function getDefaultValue()
{
return $this->defaultValue;
}
/**
* @param string
*/
public function setItem($item)
{
$this->item = $item;
}
/**
* @return string
*/
public function getItem()
{
return $this->item;
}
/**
* @param GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
*/
public function setMetadata(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValidValuesExpr($validValuesExpr)
{
$this->validValuesExpr = $validValuesExpr;
}
/**
* @return string
*/
public function getValidValuesExpr()
{
return $this->validValuesExpr;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @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(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint extends \Google\Collection
{
protected $collection_key = 'resourceTypes';
/**
* @var string
*/
public $actionType;
/**
* @var string
*/
public $condition;
/**
* @var string[]
*/
public $methodTypes;
/**
* @var string[]
*/
public $resourceTypes;
/**
* @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 setMethodTypes($methodTypes)
{
$this->methodTypes = $methodTypes;
}
/**
* @return string[]
*/
public function getMethodTypes()
{
return $this->methodTypes;
}
/**
* @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(GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint extends \Google\Collection
{
protected $collection_key = 'resourceTypes';
/**
* @var string
*/
public $actionType;
/**
* @var string
*/
public $condition;
/**
* @var string[]
*/
public $methodTypes;
/**
* @var string[]
*/
public $resourceTypes;
/**
* @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 setMethodTypes($methodTypes)
{
$this->methodTypes = $methodTypes;
}
/**
* @return string[]
*/
public function getMethodTypes()
{
return $this->methodTypes;
}
/**
* @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(GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ConstraintListConstraint extends \Google\Model
{
/**
* @var bool
*/
public $supportsIn;
/**
* @var bool
*/
public $supportsUnder;
/**
* @param bool
*/
public function setSupportsIn($supportsIn)
{
$this->supportsIn = $supportsIn;
}
/**
* @return bool
*/
public function getSupportsIn()
{
return $this->supportsIn;
}
/**
* @param bool
*/
public function setSupportsUnder($supportsUnder)
{
$this->supportsUnder = $supportsUnder;
}
/**
* @return bool
*/
public function getSupportsUnder()
{
return $this->supportsUnder;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2ConstraintListConstraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ConstraintListConstraint');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2CustomConstraint 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(GoogleCloudOrgpolicyV2CustomConstraint::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2CustomConstraint');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ListConstraintsResponse extends \Google\Collection
{
protected $collection_key = 'constraints';
protected $constraintsType = GoogleCloudOrgpolicyV2Constraint::class;
protected $constraintsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudOrgpolicyV2Constraint[]
*/
public function setConstraints($constraints)
{
$this->constraints = $constraints;
}
/**
* @return GoogleCloudOrgpolicyV2Constraint[]
*/
public function getConstraints()
{
return $this->constraints;
}
/**
* @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(GoogleCloudOrgpolicyV2ListConstraintsResponse::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ListConstraintsResponse');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ListCustomConstraintsResponse extends \Google\Collection
{
protected $collection_key = 'customConstraints';
protected $customConstraintsType = GoogleCloudOrgpolicyV2CustomConstraint::class;
protected $customConstraintsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudOrgpolicyV2CustomConstraint[]
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return GoogleCloudOrgpolicyV2CustomConstraint[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* @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(GoogleCloudOrgpolicyV2ListCustomConstraintsResponse::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ListCustomConstraintsResponse');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2ListPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'policies';
/**
* @var string
*/
public $nextPageToken;
protected $policiesType = GoogleCloudOrgpolicyV2Policy::class;
protected $policiesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudOrgpolicyV2Policy[]
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return GoogleCloudOrgpolicyV2Policy[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2ListPoliciesResponse::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2ListPoliciesResponse');

View File

@@ -0,0 +1,110 @@
<?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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2Policy extends \Google\Model
{
protected $alternateType = GoogleCloudOrgpolicyV2AlternatePolicySpec::class;
protected $alternateDataType = '';
protected $dryRunSpecType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $dryRunSpecDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
protected $specType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $specDataType = '';
/**
* @param GoogleCloudOrgpolicyV2AlternatePolicySpec
*/
public function setAlternate(GoogleCloudOrgpolicyV2AlternatePolicySpec $alternate)
{
$this->alternate = $alternate;
}
/**
* @return GoogleCloudOrgpolicyV2AlternatePolicySpec
*/
public function getAlternate()
{
return $this->alternate;
}
/**
* @param GoogleCloudOrgpolicyV2PolicySpec
*/
public function setDryRunSpec(GoogleCloudOrgpolicyV2PolicySpec $dryRunSpec)
{
$this->dryRunSpec = $dryRunSpec;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpec
*/
public function getDryRunSpec()
{
return $this->dryRunSpec;
}
/**
* @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 GoogleCloudOrgpolicyV2PolicySpec
*/
public function setSpec(GoogleCloudOrgpolicyV2PolicySpec $spec)
{
$this->spec = $spec;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpec
*/
public function getSpec()
{
return $this->spec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2Policy::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2Policy');

View File

@@ -0,0 +1,115 @@
<?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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2PolicySpec extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $inheritFromParent;
/**
* @var bool
*/
public $reset;
protected $rulesType = GoogleCloudOrgpolicyV2PolicySpecPolicyRule::class;
protected $rulesDataType = 'array';
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setInheritFromParent($inheritFromParent)
{
$this->inheritFromParent = $inheritFromParent;
}
/**
* @return bool
*/
public function getInheritFromParent()
{
return $this->inheritFromParent;
}
/**
* @param bool
*/
public function setReset($reset)
{
$this->reset = $reset;
}
/**
* @return bool
*/
public function getReset()
{
return $this->reset;
}
/**
* @param GoogleCloudOrgpolicyV2PolicySpecPolicyRule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpecPolicyRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* @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(GoogleCloudOrgpolicyV2PolicySpec::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2PolicySpec');

View File

@@ -0,0 +1,130 @@
<?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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2PolicySpecPolicyRule extends \Google\Model
{
/**
* @var bool
*/
public $allowAll;
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* @var bool
*/
public $denyAll;
/**
* @var bool
*/
public $enforce;
/**
* @var array[]
*/
public $parameters;
protected $valuesType = GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::class;
protected $valuesDataType = '';
/**
* @param bool
*/
public function setAllowAll($allowAll)
{
$this->allowAll = $allowAll;
}
/**
* @return bool
*/
public function getAllowAll()
{
return $this->allowAll;
}
/**
* @param GoogleTypeExpr
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
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 GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
*/
public function setValues(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues $values)
{
$this->values = $values;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2PolicySpecPolicyRule::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2PolicySpecPolicyRule');

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\OrgPolicyAPI;
class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues 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(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::class, 'Google_Service_OrgPolicyAPI_GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues');

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

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\OrgPolicyAPI;
class GoogleTypeExpr 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(GoogleTypeExpr::class, 'Google_Service_OrgPolicyAPI_GoogleTypeExpr');

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\OrgPolicyAPI\Resource;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $folders = $orgpolicyService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_OrgPolicyAPI_Resource_Folders');

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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListConstraintsResponse;
/**
* The "constraints" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $constraints = $orgpolicyService->folders_constraints;
* </code>
*/
class FoldersConstraints extends \Google\Service\Resource
{
/**
* Lists constraints that could be applied on the specified resource.
* (constraints.listFoldersConstraints)
*
* @param string $parent Required. The Google Cloud resource that parents the
* constraint. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListConstraintsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersConstraints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListConstraintsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersConstraints::class, 'Google_Service_OrgPolicyAPI_Resource_FoldersConstraints');

View File

@@ -0,0 +1,175 @@
<?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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListPoliciesResponse;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2Policy;
use Google\Service\OrgPolicyAPI\GoogleProtobufEmpty;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $policies = $orgpolicyService->folders_policies;
* </code>
*/
class FoldersPolicies extends \Google\Service\Resource
{
/**
* Creates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy
* already exists on the given Google Cloud resource. (policies.create)
*
* @param string $parent Required. The Google Cloud resource that will parent
* the new policy. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Deletes a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not
* exist. (policies.delete)
*
* @param string $name Required. Name of the policy to delete. See the policy
* entry for naming rules.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of policy. If an etag is
* provided and does not match the current etag of the policy, deletion will be
* blocked and an ABORTED error will be returned.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
* policy during read-modify-write. (policies.get)
*
* @param string $name Required. Resource name of the policy. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Gets the effective policy on a resource. This is the result of merging
* policies in the resource hierarchy and evaluating conditions. The returned
* policy will not have an `etag` or `condition` set because it is an evaluated
* policy across multiple resources. Subtrees of Resource Manager resource
* hierarchy with 'under:' prefix will not be expanded.
* (policies.getEffectivePolicy)
*
* @param string $name Required. The effective policy to compute. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function getEffectivePolicy($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEffectivePolicy', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Retrieves all of the policies that exist on a particular resource.
* (policies.listFoldersPolicies)
*
* @param string $parent Required. The target Google Cloud resource that parents
* the set of constraints and policies that will be returned from this call.
* Must be in one of the following forms: * `projects/{project_number}` *
* `projects/{project_id}` * `folders/{folder_id}` *
* `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listFoldersPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListPoliciesResponse::class);
}
/**
* Updates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
* supplied in the request does not match the persisted etag of the policy Note:
* the supplied policy will perform a full overwrite of all fields.
* (policies.patch)
*
* @param string $name Immutable. The resource name of the policy. Must be one
* of the following forms, where `constraint_name` is the name of the constraint
* which this policy configures: *
* `projects/{project_number}/policies/{constraint_name}` *
* `folders/{folder_id}/policies/{constraint_name}` *
* `organizations/{organization_id}/policies/{constraint_name}` For example,
* `projects/123/policies/compute.disableSerialPortAccess`. Note:
* `projects/{project_id}/policies/{constraint_name}` is also an acceptable name
* for API requests, but responses will return the name using the equivalent
* project number.
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask used to specify the fields to be
* overwritten in the policy by the set. The fields specified in the update_mask
* are relative to the policy, not the full request.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersPolicies::class, 'Google_Service_OrgPolicyAPI_Resource_FoldersPolicies');

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\OrgPolicyAPI\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $organizations = $orgpolicyService->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_OrgPolicyAPI_Resource_Organizations');

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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListConstraintsResponse;
/**
* The "constraints" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $constraints = $orgpolicyService->organizations_constraints;
* </code>
*/
class OrganizationsConstraints extends \Google\Service\Resource
{
/**
* Lists constraints that could be applied on the specified resource.
* (constraints.listOrganizationsConstraints)
*
* @param string $parent Required. The Google Cloud resource that parents the
* constraint. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListConstraintsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsConstraints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListConstraintsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsConstraints::class, 'Google_Service_OrgPolicyAPI_Resource_OrganizationsConstraints');

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2CustomConstraint;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListCustomConstraintsResponse;
use Google\Service\OrgPolicyAPI\GoogleProtobufEmpty;
/**
* The "customConstraints" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $customConstraints = $orgpolicyService->organizations_customConstraints;
* </code>
*/
class OrganizationsCustomConstraints extends \Google\Service\Resource
{
/**
* Creates a custom constraint. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint
* already exists on the given organization. (customConstraints.create)
*
* @param string $parent Required. Must be in the following form: *
* `organizations/{organization_id}`
* @param GoogleCloudOrgpolicyV2CustomConstraint $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2CustomConstraint
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudOrgpolicyV2CustomConstraint $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudOrgpolicyV2CustomConstraint::class);
}
/**
* Deletes a custom constraint. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint does not exist.
* (customConstraints.delete)
*
* @param string $name Required. Name of the custom constraint to delete. See
* the custom constraint entry for naming rules.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a custom constraint. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist.
* (customConstraints.get)
*
* @param string $name Required. Resource name of the custom constraint. See the
* custom constraint entry for naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2CustomConstraint
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudOrgpolicyV2CustomConstraint::class);
}
/**
* Retrieves all of the custom constraints that exist on a particular
* organization resource. (customConstraints.listOrganizationsCustomConstraints)
*
* @param string $parent Required. The target Google Cloud resource that parents
* the set of custom constraints that will be returned from this call. Must be
* in one of the following forms: * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsCustomConstraints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListCustomConstraintsResponse::class);
}
/**
* Updates a custom constraint. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the
* supplied policy will perform a full overwrite of all fields.
* (customConstraints.patch)
*
* @param string $name Immutable. Name of the constraint. This is unique within
* the organization. Format of the name should be *
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The
* max length is 70 characters and the minimum length is 1. Note that the prefix
* `organizations/{organization_id}/customConstraints/` is not counted.
* @param GoogleCloudOrgpolicyV2CustomConstraint $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2CustomConstraint
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudOrgpolicyV2CustomConstraint $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudOrgpolicyV2CustomConstraint::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsCustomConstraints::class, 'Google_Service_OrgPolicyAPI_Resource_OrganizationsCustomConstraints');

View File

@@ -0,0 +1,175 @@
<?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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListPoliciesResponse;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2Policy;
use Google\Service\OrgPolicyAPI\GoogleProtobufEmpty;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $policies = $orgpolicyService->organizations_policies;
* </code>
*/
class OrganizationsPolicies extends \Google\Service\Resource
{
/**
* Creates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy
* already exists on the given Google Cloud resource. (policies.create)
*
* @param string $parent Required. The Google Cloud resource that will parent
* the new policy. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Deletes a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not
* exist. (policies.delete)
*
* @param string $name Required. Name of the policy to delete. See the policy
* entry for naming rules.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of policy. If an etag is
* provided and does not match the current etag of the policy, deletion will be
* blocked and an ABORTED error will be returned.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
* policy during read-modify-write. (policies.get)
*
* @param string $name Required. Resource name of the policy. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Gets the effective policy on a resource. This is the result of merging
* policies in the resource hierarchy and evaluating conditions. The returned
* policy will not have an `etag` or `condition` set because it is an evaluated
* policy across multiple resources. Subtrees of Resource Manager resource
* hierarchy with 'under:' prefix will not be expanded.
* (policies.getEffectivePolicy)
*
* @param string $name Required. The effective policy to compute. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function getEffectivePolicy($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEffectivePolicy', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Retrieves all of the policies that exist on a particular resource.
* (policies.listOrganizationsPolicies)
*
* @param string $parent Required. The target Google Cloud resource that parents
* the set of constraints and policies that will be returned from this call.
* Must be in one of the following forms: * `projects/{project_number}` *
* `projects/{project_id}` * `folders/{folder_id}` *
* `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListPoliciesResponse::class);
}
/**
* Updates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
* supplied in the request does not match the persisted etag of the policy Note:
* the supplied policy will perform a full overwrite of all fields.
* (policies.patch)
*
* @param string $name Immutable. The resource name of the policy. Must be one
* of the following forms, where `constraint_name` is the name of the constraint
* which this policy configures: *
* `projects/{project_number}/policies/{constraint_name}` *
* `folders/{folder_id}/policies/{constraint_name}` *
* `organizations/{organization_id}/policies/{constraint_name}` For example,
* `projects/123/policies/compute.disableSerialPortAccess`. Note:
* `projects/{project_id}/policies/{constraint_name}` is also an acceptable name
* for API requests, but responses will return the name using the equivalent
* project number.
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask used to specify the fields to be
* overwritten in the policy by the set. The fields specified in the update_mask
* are relative to the policy, not the full request.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsPolicies::class, 'Google_Service_OrgPolicyAPI_Resource_OrganizationsPolicies');

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\OrgPolicyAPI\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $projects = $orgpolicyService->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_OrgPolicyAPI_Resource_Projects');

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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListConstraintsResponse;
/**
* The "constraints" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $constraints = $orgpolicyService->projects_constraints;
* </code>
*/
class ProjectsConstraints extends \Google\Service\Resource
{
/**
* Lists constraints that could be applied on the specified resource.
* (constraints.listProjectsConstraints)
*
* @param string $parent Required. The Google Cloud resource that parents the
* constraint. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListConstraintsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsConstraints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListConstraintsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsConstraints::class, 'Google_Service_OrgPolicyAPI_Resource_ProjectsConstraints');

View File

@@ -0,0 +1,175 @@
<?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\OrgPolicyAPI\Resource;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2ListPoliciesResponse;
use Google\Service\OrgPolicyAPI\GoogleCloudOrgpolicyV2Policy;
use Google\Service\OrgPolicyAPI\GoogleProtobufEmpty;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $orgpolicyService = new Google\Service\OrgPolicyAPI(...);
* $policies = $orgpolicyService->projects_policies;
* </code>
*/
class ProjectsPolicies extends \Google\Service\Resource
{
/**
* Creates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy
* already exists on the given Google Cloud resource. (policies.create)
*
* @param string $parent Required. The Google Cloud resource that will parent
* the new policy. Must be in one of the following forms: *
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}`
* * `organizations/{organization_id}`
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Deletes a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not
* exist. (policies.delete)
*
* @param string $name Required. Name of the policy to delete. See the policy
* entry for naming rules.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of policy. If an etag is
* provided and does not match the current etag of the policy, deletion will be
* blocked and an ABORTED error will be returned.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
* policy during read-modify-write. (policies.get)
*
* @param string $name Required. Resource name of the policy. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Gets the effective policy on a resource. This is the result of merging
* policies in the resource hierarchy and evaluating conditions. The returned
* policy will not have an `etag` or `condition` set because it is an evaluated
* policy across multiple resources. Subtrees of Resource Manager resource
* hierarchy with 'under:' prefix will not be expanded.
* (policies.getEffectivePolicy)
*
* @param string $name Required. The effective policy to compute. See Policy for
* naming requirements.
* @param array $optParams Optional parameters.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function getEffectivePolicy($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEffectivePolicy', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
/**
* Retrieves all of the policies that exist on a particular resource.
* (policies.listProjectsPolicies)
*
* @param string $parent Required. The target Google Cloud resource that parents
* the set of constraints and policies that will be returned from this call.
* Must be in one of the following forms: * `projects/{project_number}` *
* `projects/{project_id}` * `folders/{folder_id}` *
* `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Size of the pages to be returned. This is currently
* unsupported and will be ignored. The server may at any point start using this
* field to limit page size.
* @opt_param string pageToken Page token used to retrieve the next page. This
* is currently unsupported and will be ignored. The server may at any point
* start using this field.
* @return GoogleCloudOrgpolicyV2ListPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudOrgpolicyV2ListPoliciesResponse::class);
}
/**
* Updates a policy. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
* supplied in the request does not match the persisted etag of the policy Note:
* the supplied policy will perform a full overwrite of all fields.
* (policies.patch)
*
* @param string $name Immutable. The resource name of the policy. Must be one
* of the following forms, where `constraint_name` is the name of the constraint
* which this policy configures: *
* `projects/{project_number}/policies/{constraint_name}` *
* `folders/{folder_id}/policies/{constraint_name}` *
* `organizations/{organization_id}/policies/{constraint_name}` For example,
* `projects/123/policies/compute.disableSerialPortAccess`. Note:
* `projects/{project_id}/policies/{constraint_name}` is also an acceptable name
* for API requests, but responses will return the name using the equivalent
* project number.
* @param GoogleCloudOrgpolicyV2Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask used to specify the fields to be
* overwritten in the policy by the set. The fields specified in the update_mask
* are relative to the policy, not the full request.
* @return GoogleCloudOrgpolicyV2Policy
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudOrgpolicyV2Policy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudOrgpolicyV2Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPolicies::class, 'Google_Service_OrgPolicyAPI_Resource_ProjectsPolicies');